{"action":"created","comment":{"url":"https://api.github.com/repos/travelapp/backend/pulls/comments/44963908","id":44963908,"diff_hunk":"@@ -0,0 +1,30 @@\n+!function e(t,n,r){function o(i,s){if(!n[i]){if(!t[i]){var u=\"function\"==typeof require&&require;if(!s&&u)return u(i,!0);if(a)return a(i,!0);var c=new Error(\"Cannot find module '\"+i+\"'\");throw c.code=\"MODULE_NOT_FOUND\",c}var l=n[i]={exports:{}};t[i][0].call(l.exports,function(e){var n=t[i][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[i].exports}for(var a=\"function\"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t){\"use strict\";var n=e(\"../../api/Api\"),r=e(\"../../utilities/singularize\");t.exports={init:function(e,t){return e.createActions(function(){var e=r(t);this.create=function(r){var o=this;return new Promise(function(a,i){o.actions.startRequestLoading(),n.resource.create({format:r.format,payload:r.payload,resource:t,done:function(t){o.dispatch(t[e]),a(t)},fail:function(e){i(e)},always:function(){o.actions.endRequestLoading()}})})},this[\"delete\"]=function(e){var r=this;return new Promise(function(o,a){r.actions.startRequestLoading(),n.resource[\"delete\"]({format:e.format,id:e.object.id,resource:t,done:function(t){r.dispatch(e.object),o(t)},fail:function(e){a(e)},always:function(){r.actions.endRequestLoading()}})})},this.index=function(e){e||(e={});var r=this;return new Promise(function(o,a){r.actions.startRequestLoading(),n.resource.index({format:e.format,query:e.query,resource:t,done:function(e){r.dispatch(e[t]),o(e)},fail:function(e){a(e)},always:function(){r.actions.endRequestLoading()}})})},this.show=function(r){var o=this;return new Promise(function(a,i){o.actions.startRequestLoading(),n.resource.show({format:r.format,id:r.object.id,resource:t,done:function(t){o.dispatch(t[e]),a(i)},fail:function(e){i(e)},always:function(){o.actions.endRequestLoading()}})})},this.update=function(e){var r=this;return new Promise(function(o,a){r.actions.startRequestLoading(),n.resource.update({format:e.format,id:e.object.id,payload:e.payload,resource:t,done:function(t){r.dispatch(e.payload),o(t)},fail:function(e){a(e)},always:function(){r.actions.endRequestLoading()}})})},this.endRequestLoading=function(){this.dispatch(!1)},this.startRequestLoading=function(){this.dispatch(!0)},this.updateAttributes=function(e){this.dispatch(e)}})}}},{\"../../api/Api\":2,\"../../utilities/singularize\":6}],2:[function(e,t){\"use strict\";var n=e(\"./Resource\"),r={};r.resource=n,t.exports=r},{\"./Resource\":3}],3:[function(e,t){\"use strict\";var n={\"X-Travel-API-Key\":BootstrapData.get(\"api\").api_key,\"X-Travel-OAuth-Token\":BootstrapData.get(\"api\").access_token},r=function(e,t){var r=\"/api/v1/\"+t.resource;t.format&&(r+=\"?_format=\"+t.format),$.ajax({contentType:\"application/json\",data:t.data,headers:n,method:e,url:r}).done(function(e){t.done&&t.done(e)}).fail(function(e){t.fail&&t.fail(e)}).always(function(){t.always&&t.always()})},o={create:function(e){e.data=JSON.stringify(e.payload),r(\"POST\",e)},\"delete\":function(e){e.resource=[e.resource,e.id].join(\"/\"),r(\"DELETE\",e)},index:function(e){e.data=e.query,r(\"GET\",e)},show:function(e){e.resource=[e.resource,e.id].join(\"/\"),r(\"GET\",e)},update:function(e){e.data=JSON.stringify(e.payload),e.resource=[e.resource,e.id].join(\"/\"),r(\"PUT\",e)}};t.exports=o},{}],4:[function(e,t){const n=e(\"../alt\"),r=e(\"../../../../actions/shared/SimpleActions\");t.exports=r.init(n,\"cart_items\")},{\"../../../../actions/shared/SimpleActions\":1,\"../alt\":5}],5:[function(e,t){\"use strict\";var n=e(\"alt\");t.exports=new n},{alt:8}],6:[function(e,t){\"use strict\";t.exports=function(e){var t=e.length;return\"ies\"===e.slice(t-3,t)?e.slice(0,t-3)+\"y\":e.slice(0,t-1)}},{}],7:[function(e,t,n){\"use strict\";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t[\"default\"]=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function a(e,t,n,r,o){var a=l.uid(e._actionsRegistry,t+\".\"+n);e._actionsRegistry[a]=1;var i={id:a,namespace:t,name:n},s=new p(e,a,r,o,i),c=function(t){return e.dispatch(a,t,i)},d=function(){s.dispatched=!1;var t=s._dispatch.apply(s,arguments);return s.dispatched||void 0===t||u.isPromise(t)||(u.isFunction(t)?t(c,e):c(t)),s.dispatched||void 0!==t||\"undefined\"!=typeof console&&console.warn(\"An action was called but nothing was dispatched\"),t};d.defer=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];setTimeout(function(){s._dispatch.apply(null,t)})},d.id=a,d.data=i;var f=e.actions[t],h=l.uid(f,n);return f[h]=d,d}Object.defineProperty(n,\"__esModule\",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n[\"default\"]=a;var s=e(\"../../utils/functions\"),u=r(s),c=e(\"../utils/AltUtils\"),l=r(c),p=function(){function e(t,n,r,a,i){o(this,e),this.id=n,this._dispatch=r.bind(this),this.actions=a,this.actionDetails=i,this.alt=t}return i(e,[{key:\"dispatch\",value:function(e){this.dispatched=!0,this.alt.dispatch(this.id,e,this.actionDetails)}}]),e}();t.exports=n[\"default\"]},{\"../../utils/functions\":18,\"../utils/AltUtils\":12}],8:[function(e,t,n){\"use strict\";function r(e){return e&&e.__esModule?e:{\"default\":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t[\"default\"]=e,t}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}Object.defineProperty(n,\"__esModule\",{value:!0});var u=Function.prototype.bind,c=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if(\"value\"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(i)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=a,n=i,r=!0}},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=e(\"flux\"),d=e(\"./utils/StateFunctions\"),f=o(d),h=e(\"../utils/functions\"),v=o(h),m=e(\"./store\"),g=o(m),y=e(\"./utils/AltUtils\"),b=o(y),C=e(\"./actions\"),E=r(C),_=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];s(this,e),this.config=t,this.serialize=t.serialize||JSON.stringify,this.deserialize=t.deserialize||JSON.parse,this.dispatcher=t.dispatcher||new p.Dispatcher,this.batchingFunction=t.batchingFunction||function(e){return e()},this.actions={global:{}},this.stores={},this.storeTransforms=t.storeTransforms||[],this.trapAsync=!1,this._actionsRegistry={},this._initSnapshot={},this._lastSnapshot={}}return l(e,[{key:\"dispatch\",value:function(e,t,n){var r=this;this.batchingFunction(function(){var o=Math.random().toString(18).substr(2,16);return e.id&&e.dispatch?b.dispatch(o,e,t,r):r.dispatcher.dispatch({id:o,action:e,data:t,details:n})})}},{key:\"createUnsavedStore\",value:function(e){var t=e.displayName||\"\";g.createStoreConfig(this.config,e);for(var n=g.transformStore(this.storeTransforms,e),r=arguments.length,o=Array(r>1?r-1:0),a=1;r>a;a++)o[a-1]=arguments[a];return v.isFunction(n)?g.createStoreFromClass.apply(g,[this,n,t].concat(o)):g.createStoreFromObject(this,n,t)}},{key:\"createStore\",value:function(e,n){var r=n||e.displayName||e.name||\"\";g.createStoreConfig(this.config,e);var o=g.transformStore(this.storeTransforms,e);t.hot&&delete this.stores[r],(this.stores[r]||!r)&&(b.warn(this.stores[r]?\"A store named \"+r+\" already exists, double check your store names or pass in your own custom identifier for each store\":\"Store name was not specified\"),r=b.uid(this.stores,r));for(var a=arguments.length,i=Array(a>2?a-2:0),s=2;a>s;s++)i[s-2]=arguments[s];var u=v.isFunction(o)?g.createStoreFromClass.apply(g,[this,o,r].concat(i)):g.createStoreFromObject(this,o,r);return this.stores[r]=u,f.saveInitialSnapshot(this,r),u}},{key:\"generateActions\",value:function(){for(var e={name:\"global\"},t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return this.createActions(n.reduce(function(e,t){return e[t]=b.dispatchIdentity,e},e))}},{key:\"createAction\",value:function(e,t,n){return E[\"default\"](this,\"global\",e,t,n)}},{key:\"createActions\",value:function(e){var t=arguments,n=this,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o={},p=b.uid(this._actionsRegistry,e.displayName||e.name||\"Unknown\");if(v.isFunction(e)){var d,f,h;!function(){v.assign(o,b.getInternalMethods(e,!0));var n=function(e){function t(){s(this,t);for(var e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];c(Object.getPrototypeOf(t.prototype),\"constructor\",this).apply(this,n)}return i(t,e),l(t,[{key:\"generateActions\",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];t.forEach(function(e){o[e]=b.dispatchIdentity})}}]),t}(e);for(d=t.length,f=Array(d>2?d-2:0),h=2;d>h;h++)f[h-2]=t[h];v.assign(o,new(u.apply(n,[null].concat(a(f)))))}()}else v.assign(o,e);return this.actions[p]=this.actions[p]||{},v.eachObject(function(e,t){if(v.isFunction(t)){r[e]=E[\"default\"](n,p,e,t,r);var o=b.formatAsConstant(e);r[o]=r[e].id}},[o]),r}},{key:\"takeSnapshot\",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=f.snapshot(this,t);return v.assign(this._lastSnapshot,r),this.serialize(r)}},{key:\"rollback\",value:function(){f.setAppState(this,this.serialize(this._lastSnapshot),function(e){e.lifecycle(\"rollback\"),e.emitChange()})}},{key:\"recycle\",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t.length?f.filterSnapshots(this,this._initSnapshot,t):this._initSnapshot;f.setAppState(this,this.serialize(r),function(e){e.lifecycle(\"init\"),e.emitChange()})}},{key:\"flush\",value:function(){var e=this.serialize(f.snapshot(this));return this.recycle(),e}},{key:\"bootstrap\",value:function(e){f.setAppState(this,e,function(e,t){e.lifecycle(\"bootstrap\",t),e.emitChange()})}},{key:\"prepare\",value:function(e,t){var n={};if(!e.displayName)throw new ReferenceError(\"Store provided does not have a name\");return n[e.displayName]=t,this.serialize(n)}},{key:\"addActions\",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];this.actions[e]=Array.isArray(t)?this.generateActions.apply(this,t):this.createActions.apply(this,[t].concat(r))}},{key:\"addStore\",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];this.createStore.apply(this,[t,e].concat(r))}},{key:\"getActions\",value:function(e){return this.actions[e]}},{key:\"getStore\",value:function(e){return this.stores[e]}}],[{key:\"debug\",value:function(e,t){var n=\"alt.js.org\";return\"undefined\"!=typeof window&&(window[n]=window[n]||[],window[n].push({name:e,alt:t})),t}}]),e}();n[\"default\"]=_,t.exports=n[\"default\"]},{\"../utils/functions\":18,\"./actions\":7,\"./store\":11,\"./utils/AltUtils\":12,\"./utils/StateFunctions\":13,flux:14}],9:[function(e,t,n){\"use strict\";function r(e){return e&&e.__esModule?e:{\"default\":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t[\"default\"]=e,t}function a(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}Object.defineProperty(n,\"__esModule\",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=e(\"../../utils/functions\"),u=o(s),c=e(\"transmitter\"),l=r(c),p=function(){function e(t,n,r,o){var i=this;a(this,e);var s=n.lifecycleEvents;this.transmitter=l[\"default\"](),this.lifecycle=function(e,t){s[e]&&s[e].push(t)},this.state=r,this.alt=t,this.preventDefault=!1,this.displayName=n.displayName,this.boundListeners=n.boundListeners,this.StoreModel=o,this.reduce=n.reduce||function(e){return e};var c=n.output||function(e){return e};this.emitChange=function(){return i.transmitter.push(c(i.state))};var p=function(e,t){try{return e()}catch(r){if(n.handlesOwnErrors)return i.lifecycle(\"error\",{error:r,payload:t,state:i.state}),!1;throw r}};u.assign(this,n.publicMethods),this.dispatchToken=t.dispatcher.register(function(e){i.preventDefault=!1,i.lifecycle(\"beforeEach\",{payload:e,state:i.state});var t=n.actionListeners[e.action];if(t||n.otherwise){var r=void 0;r=t?p(function(){return t.filter(Boolean).every(function(t){return t.call(n,e.data,e.action)!==!1})},e):p(function(){return n.otherwise(e.data,e.action)},e),r===!1||i.preventDefault||i.emitChange()}n.reduce&&(p(function(){i.state=n.reduce(i.state,e)},e),i.preventDefault||i.emitChange()),i.lifecycle(\"afterEach\",{payload:e,state:i.state})}),this.lifecycle(\"init\")}return i(e,[{key:\"listen\",value:function(e){var t=this;if(!u.isFunction(e))throw new TypeError(\"listen expects a function\");return this.transmitter.subscribe(e),function(){return t.unlisten(e)}}},{key:\"unlisten\",value:function(e){this.lifecycle(\"unlisten\"),this.transmitter.unsubscribe(e)}},{key:\"getState\",value:function(){return this.StoreModel.config.getState.call(this,this.state)}}]),e}();n[\"default\"]=p,t.exports=n[\"default\"]},{\"../../utils/functions\":18,transmitter:17}],10:[function(e,t,n){\"use strict\";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t[\"default\"]=e,t}function o(e){return e&&e.__esModule?e:{\"default\":e}}Object.defineProperty(n,\"__esModule\",{value:!0});var a=e(\"transmitter\"),i=o(a),s=e(\"../../utils/functions\"),u=r(s),c={waitFor:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];if(!t.length)throw new ReferenceError(\"Dispatch tokens not provided\");var r=t;1===t.length&&(r=Array.isArray(t[0])?t[0]:t);var o=r.map(function(e){return e.dispatchToken||e});this.dispatcher.waitFor(o)},exportAsync:function(e){this.registerAsync(e)},registerAsync:function(e){var t=this,n=0,r=u.isFunction(e)?e(this.alt):e,o=Object.keys(r).reduce(function(e,o){var a=r[o],i=u.isFunction(a)?a(t):a,s=[\"success\",\"error\",\"loading\"];return s.forEach(function(e){if(i[e]&&!i[e].id)throw new Error(e+\" handler must be an action function\")}),e[o]=function(){for(var e=arguments.length,r=Array(e),o=0;e>o;o++)r[o]=arguments[o];var a=t.getInstance().getState(),s=i.local&&i.local.apply(i,[a].concat(r)),u=i.shouldFetch?i.shouldFetch.apply(i,[a].concat(r)):null==s,c=i.interceptResponse||function(e){return e},l=function(e,o){return function(a){var i=function(){if(n-=1,e(c(a,e,r)),o)throw a};return t.alt.trapAsync?function(){return i()}:i()}};return u?(n+=1,i.loading&&i.loading(c(null,i.loading,r)),i.remote.apply(i,[a].concat(r)).then(l(i.success),l(i.error,1))):(t.emitChange(),s)},e},{});this.exportPublicMethods(o),this.exportPublicMethods({isLoading:function(){return n>0}})},exportPublicMethods:function(e){var t=this;u.eachObject(function(e,n){if(!u.isFunction(n))throw new TypeError(\"exportPublicMethods expects a function\");t.publicMethods[e]=n},[e])},emitChange:function(){this.getInstance().emitChange()},on:function(e,t){\"error\"===e&&(this.handlesOwnErrors=!0);var n=this.lifecycleEvents[e]||i[\"default\"]();return this.lifecycleEvents[e]=n,n.subscribe(t.bind(this))},bindAction:function(e,t){if(!e)throw new ReferenceError(\"Invalid action reference passed in\");if(!u.isFunction(t))throw new TypeError(\"bindAction expects a function\");if(t.length>1)throw new TypeError(\"Action handler in store \"+this.displayName+\" for \"+((e.id||e).toString()+\" was defined with \")+\"two parameters. Only a single parameter is passed through the dispatcher, did you mean to pass in an Object instead?\");var n=e.id?e.id:e;this.actionListeners[n]=this.actionListeners[n]||[],this.actionListeners[n].push(t.bind(this)),this.boundListeners.push(n)},bindActions:function(e){var t=this;u.eachObject(function(e,n){var r=/./,o=e.replace(r,function(e){return\"on\"+e[0].toUpperCase()});if(t[e]&&t[o])throw new ReferenceError(\"You have multiple action handlers bound to an action: \"+(e+\" and \"+o));var a=t[e]||t[o];a&&t.bindAction(n,a)},[e])},bindListeners:function(e){var t=this;u.eachObject(function(e,n){var r=t[e];if(!r)throw new ReferenceError(e+\" defined but does not exist in \"+t.displayName);Array.isArray(n)?n.forEach(function(e){t.bindAction(e,r)}):t.bindAction(n,r)},[e])}};n[\"default\"]=c,t.exports=n[\"default\"]},{\"../../utils/functions\":18,transmitter:17}],11:[function(e,t,n){\"use strict\";function r(e){return e&&e.__esModule?e:{\"default\":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t[\"default\"]=e,t}function a(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function i(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t,n){if(n){var r=t.StoreModel.config,o=y.isFunction(n)?n(t.state):n;t.state=r.setState.call(e,t.state,o),e.alt.dispatcher.isDispatching()||e.emitChange()}}function u(e,t,n,r){return y.assign(e,_[\"default\"],{displayName:n,alt:t,dispatcher:t.dispatcher,preventDefault:function(){this.getInstance().preventDefault=!0},boundListeners:[],lifecycleEvents:{},actionListeners:{},publicMethods:{},handlesOwnErrors:!1},r)}function c(e,t){t.config=y.assign({getState:function(e){return Array.isArray(e)?e.slice():y.isPojo(e)?y.assign({},e):e},setState:function(e,t){return y.isPojo(t)?y.assign(e,t):t}},e,t.config)}function l(e,t){return e.reduce(function(e,t){return t(e)},t)}function p(e,t,n){var r=void 0,o=u({},e,n,y.assign({getInstance:function(){return r},setState:function(e){s(this,r,e)}},t));return o.bindListeners&&_[\"default\"].bindListeners.call(o,o.bindListeners),o.observe&&_[\"default\"].bindListeners.call(o,o.observe(e)),o.lifecycle&&y.eachObject(function(e,t){_[\"default\"].on.call(o,e,t)},[o.lifecycle]),r=y.assign(new C[\"default\"](e,o,void 0!==o.state?o.state:{},t),o.publicMethods,{displayName:n})}function d(e,t,n){var r=void 0,o=t.config,c=function(e){function t(){a(this,t);for(var e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];h(Object.getPrototypeOf(t.prototype),\"constructor\",this).apply(this,n)}return i(t,e),t}(t);u(c.prototype,e,n,{type:\"AltStore\",getInstance:function(){return r},setState:function(e){s(this,r,e)}});for(var l=arguments.length,p=Array(l>3?l-3:0),d=3;l>d;d++)p[d-3]=arguments[d];var v=new(f.apply(c,[null].concat(p)));return o.bindListeners&&v.bindListeners(o.bindListeners),o.datasource&&v.registerAsync(o.datasource),r=y.assign(new C[\"default\"](e,v,void 0!==v.state?v.state:v,t),m.getInternalMethods(t),o.publicMethods,{displayName:n})}Object.defineProperty(n,\"__esModule\",{value:!0});var f=Function.prototype.bind,h=function(e,t,n){for(var r=!0;r;){var o=e,a=t,i=n;s=c=u=void 0,r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if(\"value\"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(i)}var c=Object.getPrototypeOf(o);if(null===c)return void 0;e=c,t=a,n=i,r=!0}};n.createStoreConfig=c,n.transformStore=l,n.createStoreFromObject=p,n.createStoreFromClass=d;var v=e(\"../utils/AltUtils\"),m=o(v),g=e(\"../../utils/functions\"),y=o(g),b=e(\"./AltStore\"),C=r(b),E=e(\"./StoreMixin\"),_=r(E)},{\"../../utils/functions\":18,\"../utils/AltUtils\":12,\"./AltStore\":9,\"./StoreMixin\":10}],12:[function(e,t,n){\"use strict\";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t[\"default\"]=e,t}function o(e,t){var n=t?h:f,r=t?e.prototype:e;return Object.getOwnPropertyNames(r).reduce(function(e,t){return-1!==n.indexOf(t)?e:(e[t]=r[t],e)},{})}function a(e){\"undefined\"!=typeof console&&console.warn(new ReferenceError(e))}function i(e,t){for(var n=0,r=t;Object.hasOwnProperty.call(e,r);)r=t+String(++n);return r}function s(e){return e.replace(/[a-z]([A-Z])/g,function(e){return e[0]+\"_\"+e[1].toLowerCase()}).toUpperCase()}function u(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];this.dispatch(n.length?[e].concat(n):e)}function c(e,t,n,r){var o=t.dispatch(n);if(void 0===o)return null;var a=t.id,i=a,s=a,u={id:a,namespace:i,name:s},c=function(e){return r.dispatch(a,e,u)};return d.isFunction(o)?o(c,r):r.dispatcher.dispatch({id:e,action:a,data:o,details:u})}function l(){}Object.defineProperty(n,\"__esModule\",{value:!0}),n.getInternalMethods=o,n.warn=a,n.uid=i,n.formatAsConstant=s,n.dispatchIdentity=u,n.dispatch=c;var p=e(\"../../utils/functions\"),d=r(p),f=Object.getOwnPropertyNames(l),h=Object.getOwnPropertyNames(l.prototype)},{\"../../utils/functions\":18}],13:[function(e,t,n){\"use strict\";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t[\"default\"]=e,t}function o(e,t,n){var r=e.deserialize(t);c.eachObject(function(t,o){var a=e.stores[t];a&&!function(){var e=a.StoreModel.config,i=a.state;e.onDeserialize&&(r[t]=e.onDeserialize(o)||o),c.isPojo(i)?(c.eachObject(function(e){return delete i[e]},[i]),c.assign(i,r[t])):a.state=r[t],n(a,a.state)}()},[r])}function a(e){var t=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=t.length?t:Object.keys(e.stores);return n.reduce(function(t,n){var r=n.displayName||n,o=e.stores[r],a=o.StoreModel.config;o.lifecycle(\"snapshot\");var i=a.onSerialize&&a.onSerialize(o.state);return t[r]=i?i:o.getState(),t},{})}function i(e,t){var n=e.deserialize(e.serialize(e.stores[t].state));e._initSnapshot[t]=n,e._lastSnapshot[t]=n}function s(e,t,n){return n.reduce(function(e,n){var r=n.displayName||n;if(!t[r])throw new ReferenceError(r+\" is not a valid store\");return e[r]=t[r],e},{})}Object.defineProperty(n,\"__esModule\",{value:!0}),n.setAppState=o,n.snapshot=a,n.saveInitialSnapshot=i,n.filterSnapshots=s;var u=e(\"../../utils/functions\"),c=r(u)},{\"../../utils/functions\":18}],14:[function(e,t){/**","path":"public/assets/apps/cart_items/index/actions/CartActions-ccda1061e7620c1105550dab2e2e4a10312a8ea790c13217b2f562946fd12967.js","position":1,"original_position":1,"commit_id":"b14a6533653bbb58fc0354c238f0b8060aadf5c8","original_commit_id":"b14a6533653bbb58fc0354c238f0b8060aadf5c8","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long.<br>Expected '{' and instead saw 'return'.<br>Missing semicolon.<br>Expected an identifier and instead saw '='.<br>Expected an assignment or function call and instead saw an expression.<br>Expected '{' and instead saw 'o'.<br>Wrap an immediate function invocation in parens to assist the reader in understanding that the expression is the result of a function, and not the function itself.<br>Too many errors. (3% scanned).","created_at":"2015-11-16T18:46:10Z","updated_at":"2015-11-16T18:46:10Z","html_url":"https://github.com/travelapp/backend/pull/12#discussion_r44963908","pull_request_url":"https://api.github.com/repos/travelapp/backend/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/travelapp/backend/pulls/comments/44963908"},"html":{"href":"https://github.com/travelapp/backend/pull/12#discussion_r44963908"},"pull_request":{"href":"https://api.github.com/repos/travelapp/backend/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/travelapp/backend/pulls/12","id":50848810,"html_url":"https://github.com/travelapp/backend/pull/12","diff_url":"https://github.com/travelapp/backend/pull/12.diff","patch_url":"https://github.com/travelapp/backend/pull/12.patch","issue_url":"https://api.github.com/repos/travelapp/backend/issues/12","number":12,"state":"closed","locked":false,"title":"Fixed precompile errors","user":{"login":"tommydangerous","id":1066980,"avatar_url":"https://avatars.githubusercontent.com/u/1066980?v=3","gravatar_id":"","url":"https://api.github.com/users/tommydangerous","html_url":"https://github.com/tommydangerous","followers_url":"https://api.github.com/users/tommydangerous/followers","following_url":"https://api.github.com/users/tommydangerous/following{/other_user}","gists_url":"https://api.github.com/users/tommydangerous/gists{/gist_id}","starred_url":"https://api.github.com/users/tommydangerous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommydangerous/subscriptions","organizations_url":"https://api.github.com/users/tommydangerous/orgs","repos_url":"https://api.github.com/users/tommydangerous/repos","events_url":"https://api.github.com/users/tommydangerous/events{/privacy}","received_events_url":"https://api.github.com/users/tommydangerous/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-16T18:44:41Z","updated_at":"2015-11-16T18:46:10Z","closed_at":"2015-11-16T18:44:45Z","merged_at":"2015-11-16T18:44:45Z","merge_commit_sha":"d4c3dd068ba534a0c673e7adae2959c0cfd7a755","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/travelapp/backend/pulls/12/commits","review_comments_url":"https://api.github.com/repos/travelapp/backend/pulls/12/comments","review_comment_url":"https://api.github.com/repos/travelapp/backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travelapp/backend/issues/12/comments","statuses_url":"https://api.github.com/repos/travelapp/backend/statuses/b14a6533653bbb58fc0354c238f0b8060aadf5c8","head":{"label":"travelapp:fix-js","ref":"fix-js","sha":"b14a6533653bbb58fc0354c238f0b8060aadf5c8","user":{"login":"travelapp","id":13455317,"avatar_url":"https://avatars.githubusercontent.com/u/13455317?v=3","gravatar_id":"","url":"https://api.github.com/users/travelapp","html_url":"https://github.com/travelapp","followers_url":"https://api.github.com/users/travelapp/followers","following_url":"https://api.github.com/users/travelapp/following{/other_user}","gists_url":"https://api.github.com/users/travelapp/gists{/gist_id}","starred_url":"https://api.github.com/users/travelapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travelapp/subscriptions","organizations_url":"https://api.github.com/users/travelapp/orgs","repos_url":"https://api.github.com/users/travelapp/repos","events_url":"https://api.github.com/users/travelapp/events{/privacy}","received_events_url":"https://api.github.com/users/travelapp/received_events","type":"Organization","site_admin":false},"repo":{"id":39518884,"name":"backend","full_name":"travelapp/backend","owner":{"login":"travelapp","id":13455317,"avatar_url":"https://avatars.githubusercontent.com/u/13455317?v=3","gravatar_id":"","url":"https://api.github.com/users/travelapp","html_url":"https://github.com/travelapp","followers_url":"https://api.github.com/users/travelapp/followers","following_url":"https://api.github.com/users/travelapp/following{/other_user}","gists_url":"https://api.github.com/users/travelapp/gists{/gist_id}","starred_url":"https://api.github.com/users/travelapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travelapp/subscriptions","organizations_url":"https://api.github.com/users/travelapp/orgs","repos_url":"https://api.github.com/users/travelapp/repos","events_url":"https://api.github.com/users/travelapp/events{/privacy}","received_events_url":"https://api.github.com/users/travelapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travelapp/backend","description":"Travel app","fork":false,"url":"https://api.github.com/repos/travelapp/backend","forks_url":"https://api.github.com/repos/travelapp/backend/forks","keys_url":"https://api.github.com/repos/travelapp/backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travelapp/backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travelapp/backend/teams","hooks_url":"https://api.github.com/repos/travelapp/backend/hooks","issue_events_url":"https://api.github.com/repos/travelapp/backend/issues/events{/number}","events_url":"https://api.github.com/repos/travelapp/backend/events","assignees_url":"https://api.github.com/repos/travelapp/backend/assignees{/user}","branches_url":"https://api.github.com/repos/travelapp/backend/branches{/branch}","tags_url":"https://api.github.com/repos/travelapp/backend/tags","blobs_url":"https://api.github.com/repos/travelapp/backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travelapp/backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travelapp/backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/travelapp/backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travelapp/backend/statuses/{sha}","languages_url":"https://api.github.com/repos/travelapp/backend/languages","stargazers_url":"https://api.github.com/repos/travelapp/backend/stargazers","contributors_url":"https://api.github.com/repos/travelapp/backend/contributors","subscribers_url":"https://api.github.com/repos/travelapp/backend/subscribers","subscription_url":"https://api.github.com/repos/travelapp/backend/subscription","commits_url":"https://api.github.com/repos/travelapp/backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/travelapp/backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/travelapp/backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/travelapp/backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/travelapp/backend/contents/{+path}","compare_url":"https://api.github.com/repos/travelapp/backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travelapp/backend/merges","archive_url":"https://api.github.com/repos/travelapp/backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travelapp/backend/downloads","issues_url":"https://api.github.com/repos/travelapp/backend/issues{/number}","pulls_url":"https://api.github.com/repos/travelapp/backend/pulls{/number}","milestones_url":"https://api.github.com/repos/travelapp/backend/milestones{/number}","notifications_url":"https://api.github.com/repos/travelapp/backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travelapp/backend/labels{/name}","releases_url":"https://api.github.com/repos/travelapp/backend/releases{/id}","created_at":"2015-07-22T17:03:45Z","updated_at":"2015-10-24T23:23:29Z","pushed_at":"2015-11-16T18:45:03Z","git_url":"git://github.com/travelapp/backend.git","ssh_url":"git@github.com:travelapp/backend.git","clone_url":"https://github.com/travelapp/backend.git","svn_url":"https://github.com/travelapp/backend","homepage":"","size":20505,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"travelapp:master","ref":"master","sha":"a9c67bffcc938a27b3cdb7d15444fad586a0399e","user":{"login":"travelapp","id":13455317,"avatar_url":"https://avatars.githubusercontent.com/u/13455317?v=3","gravatar_id":"","url":"https://api.github.com/users/travelapp","html_url":"https://github.com/travelapp","followers_url":"https://api.github.com/users/travelapp/followers","following_url":"https://api.github.com/users/travelapp/following{/other_user}","gists_url":"https://api.github.com/users/travelapp/gists{/gist_id}","starred_url":"https://api.github.com/users/travelapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travelapp/subscriptions","organizations_url":"https://api.github.com/users/travelapp/orgs","repos_url":"https://api.github.com/users/travelapp/repos","events_url":"https://api.github.com/users/travelapp/events{/privacy}","received_events_url":"https://api.github.com/users/travelapp/received_events","type":"Organization","site_admin":false},"repo":{"id":39518884,"name":"backend","full_name":"travelapp/backend","owner":{"login":"travelapp","id":13455317,"avatar_url":"https://avatars.githubusercontent.com/u/13455317?v=3","gravatar_id":"","url":"https://api.github.com/users/travelapp","html_url":"https://github.com/travelapp","followers_url":"https://api.github.com/users/travelapp/followers","following_url":"https://api.github.com/users/travelapp/following{/other_user}","gists_url":"https://api.github.com/users/travelapp/gists{/gist_id}","starred_url":"https://api.github.com/users/travelapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travelapp/subscriptions","organizations_url":"https://api.github.com/users/travelapp/orgs","repos_url":"https://api.github.com/users/travelapp/repos","events_url":"https://api.github.com/users/travelapp/events{/privacy}","received_events_url":"https://api.github.com/users/travelapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travelapp/backend","description":"Travel app","fork":false,"url":"https://api.github.com/repos/travelapp/backend","forks_url":"https://api.github.com/repos/travelapp/backend/forks","keys_url":"https://api.github.com/repos/travelapp/backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travelapp/backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travelapp/backend/teams","hooks_url":"https://api.github.com/repos/travelapp/backend/hooks","issue_events_url":"https://api.github.com/repos/travelapp/backend/issues/events{/number}","events_url":"https://api.github.com/repos/travelapp/backend/events","assignees_url":"https://api.github.com/repos/travelapp/backend/assignees{/user}","branches_url":"https://api.github.com/repos/travelapp/backend/branches{/branch}","tags_url":"https://api.github.com/repos/travelapp/backend/tags","blobs_url":"https://api.github.com/repos/travelapp/backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travelapp/backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travelapp/backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/travelapp/backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travelapp/backend/statuses/{sha}","languages_url":"https://api.github.com/repos/travelapp/backend/languages","stargazers_url":"https://api.github.com/repos/travelapp/backend/stargazers","contributors_url":"https://api.github.com/repos/travelapp/backend/contributors","subscribers_url":"https://api.github.com/repos/travelapp/backend/subscribers","subscription_url":"https://api.github.com/repos/travelapp/backend/subscription","commits_url":"https://api.github.com/repos/travelapp/backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/travelapp/backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/travelapp/backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/travelapp/backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/travelapp/backend/contents/{+path}","compare_url":"https://api.github.com/repos/travelapp/backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travelapp/backend/merges","archive_url":"https://api.github.com/repos/travelapp/backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travelapp/backend/downloads","issues_url":"https://api.github.com/repos/travelapp/backend/issues{/number}","pulls_url":"https://api.github.com/repos/travelapp/backend/pulls{/number}","milestones_url":"https://api.github.com/repos/travelapp/backend/milestones{/number}","notifications_url":"https://api.github.com/repos/travelapp/backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travelapp/backend/labels{/name}","releases_url":"https://api.github.com/repos/travelapp/backend/releases{/id}","created_at":"2015-07-22T17:03:45Z","updated_at":"2015-10-24T23:23:29Z","pushed_at":"2015-11-16T18:45:03Z","git_url":"git://github.com/travelapp/backend.git","ssh_url":"git@github.com:travelapp/backend.git","clone_url":"https://github.com/travelapp/backend.git","svn_url":"https://github.com/travelapp/backend","homepage":"","size":20505,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travelapp/backend/pulls/12"},"html":{"href":"https://github.com/travelapp/backend/pull/12"},"issue":{"href":"https://api.github.com/repos/travelapp/backend/issues/12"},"comments":{"href":"https://api.github.com/repos/travelapp/backend/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/travelapp/backend/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/travelapp/backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travelapp/backend/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/travelapp/backend/statuses/b14a6533653bbb58fc0354c238f0b8060aadf5c8"}}}}