mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 14:42:31 +01:00
8 lines
86 KiB
JavaScript
8 lines
86 KiB
JavaScript
webpackJsonp([1],[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(7),i=r(o),a=n(18),s=r(a),u=n(4),c=n(139),f=r(c),l=n(141),p=r(l),h=n(138),d=r(h),v=n(140),m=r(v),g=n(73),y=r(g),_=n(38),w=r(_);n(129);var b=new s.default({store:w.default,router:y.default,created:function(){this.checkForUserColorScheme()},computed:(0,i.default)({},(0,u.mapState)({colorScheme:function(t){return t.colorScheme}})),components:{SiteHeader:f.default,Search:p.default,SiteFooter:d.default,Login:m.default},methods:(0,i.default)({},(0,u.mapActions)(["setColorScheme"]),{checkForUserColorScheme:function(){localStorage.getItem("color")||localStorage.setItem("color","dark"),this.setColorScheme(localStorage.getItem("color"))}})});b.$mount("#app")},function(t,e,n){"use strict";function r(t){return"[object Array]"===S.call(t)}function o(t){return"[object ArrayBuffer]"===S.call(t)}function i(t){return"undefined"!=typeof FormData&&t instanceof FormData}function a(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function s(t){return"string"==typeof t}function u(t){return"number"==typeof t}function c(t){return"undefined"==typeof t}function f(t){return null!==t&&"object"==typeof t}function l(t){return"[object Date]"===S.call(t)}function p(t){return"[object File]"===S.call(t)}function h(t){return"[object Blob]"===S.call(t)}function d(t){return"[object Function]"===S.call(t)}function v(t){return f(t)&&d(t.pipe)}function m(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function g(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function y(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function _(t,e){if(null!==t&&"undefined"!=typeof t)if("object"==typeof t||r(t)||(t=[t]),r(t))for(var n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function w(){function t(t,n){"object"==typeof e[n]&&"object"==typeof t?e[n]=w(e[n],t):e[n]=t}for(var e={},n=0,r=arguments.length;n<r;n++)_(arguments[n],t);return e}function b(t,e,n){return _(e,function(e,r){n&&"function"==typeof e?t[r]=x(e,n):t[r]=e}),t}var x=n(37),S=Object.prototype.toString;t.exports={isArray:r,isArrayBuffer:o,isFormData:i,isArrayBufferView:a,isString:s,isNumber:u,isObject:f,isUndefined:c,isDate:l,isFile:p,isBlob:h,isFunction:d,isStream:v,isURLSearchParams:m,isStandardBrowserEnv:y,forEach:_,merge:w,extend:b,trim:g}},function(t,e,n){var r=n(49)("wks"),o=n(51),i=n(3).Symbol,a="function"==typeof i,s=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};s.store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},,function(t,e,n){t.exports=n(55)},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(87),i=r(o);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){var r=n(17);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(11),o=n(24);t.exports=n(9)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(8),o=n(103),i=n(121),a=Object.defineProperty;e.f=n(9)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(20);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(3),o=n(6),i=n(12),a=n(10),s="prototype",u=function(t,e,n){var c,f,l,p=t&u.F,h=t&u.G,d=t&u.S,v=t&u.P,m=t&u.B,g=t&u.W,y=h?o:o[e]||(o[e]={}),_=y[s],w=h?r:d?r[e]:(r[e]||{})[s];h&&(n=e);for(c in n)f=!p&&w&&void 0!==w[c],f&&c in y||(l=f?w[c]:n[c],y[c]=h&&"function"!=typeof w[c]?n[c]:m&&f?i(l,r):g&&w[c]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[s]=t[s],e}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((y.virtual||(y.virtual={}))[c]=l,t&u.R&&_&&!_[c]&&a(_,c,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e){t.exports={}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},,function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{scrollToTop:function(){function t(i){r+=Math.PI/(e/(i-o)),r>=Math.PI&&window.scrollTo(0,0),0!==window.scrollY&&(window.scrollTo(0,Math.round(n+n*Math.cos(r))),o=i,window.requestAnimationFrame(t))}var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,n=window.scrollY/2,r=0,o=performance.now();window.requestAnimationFrame(t)}}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(17),o=n(3).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(11).f,o=n(16),i=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(49)("keys"),o=n(51);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(42),o=n(21);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(27),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(21);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r,o;r=n(78);var i=n(148);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){"use strict";var r=n(1),o=n(61),i=n(64),a=n(70),s=n(68),u=n(35),c="undefined"!=typeof window&&window.btoa||n(63);t.exports=function(t){return new Promise(function(e,f){var l=t.data,p=t.headers;r.isFormData(l)&&delete p["Content-Type"];var h=new XMLHttpRequest,d="onreadystatechange",v=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in h||s(t.url)||(h=new window.XDomainRequest,d="onload",v=!0,h.onprogress=function(){},h.ontimeout=function(){}),t.auth){var m=t.auth.username||"",g=t.auth.password||"";p.Authorization="Basic "+c(m+":"+g)}if(h.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h[d]=function(){if(h&&(4===h.readyState||v)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?h.response:h.responseText,i={data:r,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:n,config:t,request:h};o(e,f,i),h=null}},h.onerror=function(){f(u("Network Error",t)),h=null},h.ontimeout=function(){f(u("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED")),h=null},r.isStandardBrowserEnv()){var y=n(66),_=(t.withCredentials||s(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;_&&(p[t.xsrfHeaderName]=_)}if("setRequestHeader"in h&&r.forEach(p,function(t,e){"undefined"==typeof l&&"content-type"===e.toLowerCase()?delete p[e]:h.setRequestHeader(e,t)}),t.withCredentials&&(h.withCredentials=!0),t.responseType)try{h.responseType=t.responseType}catch(t){if("json"!==h.responseType)throw t}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){h&&(h.abort(),f(t),h=null)}),void 0===l&&(l=null),h.send(l)})}},function(t,e){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t,e){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";var r=n(60);t.exports=function(t,e,n,o){var i=new Error(t);return r(i,e,n,o)}},function(t,e,n){(function(e){"use strict";function r(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function o(){var t;return"undefined"!=typeof XMLHttpRequest?t=n(32):"undefined"!=typeof e&&(t=n(32)),t}var i=n(1),a=n(69),s=/^\)\]\}',?\n/,u={"Content-Type":"application/x-www-form-urlencoded"};t.exports={adapter:o(),transformRequest:[function(t,e){return a(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(r(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(r(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t){t=t.replace(s,"");try{t=JSON.parse(t)}catch(t){}}return t}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:i.merge(u),post:i.merge(u),put:i.merge(u)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}}}).call(e,n(54))},function(t,e){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),a=o(i),s=n(4),u=o(s),c=n(74),f=r(c),l=n(75),p=o(l);a.default.use(u.default),e.default=new u.default.Store({state:{items:[],searchTitle:"",userFilter:"",loading:!1,clickedMoreLoading:!1,paginator:null,colorScheme:""},mutations:p.default,actions:f})},function(t,e,n){var r=n(15),o=n(2)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){t.exports=n(3).document&&document.documentElement},function(t,e,n){var r=n(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(14),o=n(2)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(8);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(47),o=n(13),i=n(116),a=n(10),s=n(16),u=n(14),c=n(105),f=n(25),l=n(112),p=n(2)("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",m="values",g=function(){return this};t.exports=function(t,e,n,y,_,w,b){c(n,e,y);var x,S,T,E=function(t){if(!h&&t in C)return C[t];switch(t){case v:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},A=e+" Iterator",R=_==m,O=!1,C=t.prototype,M=C[p]||C[d]||_&&C[_],I=M||E(_),k=_?R?E("entries"):I:void 0,L="Array"==e?C.entries||M:M;if(L&&(T=l(L.call(new t)),T!==Object.prototype&&(f(T,A,!0),r||s(T,p)||a(T,p,g))),R&&M&&M.name!==m&&(O=!0,I=function(){return M.call(this)}),r&&!b||!h&&!O&&C[p]||a(C,p,I),u[e]=I,u[A]=g,_)if(x={values:R?I:E(m),keys:w?I:E(v),entries:k},b)for(S in x)S in C||i(C,S,x[S]);else o(o.P+o.F*(h||O),e,x);return x}},function(t,e,n){var r=n(2)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e){t.exports=!0},function(t,e,n){var r=n(113),o=n(40);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(3),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r,o,i,a=n(12),s=n(104),u=n(41),c=n(22),f=n(3),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=0,m={},g="onreadystatechange",y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},_=function(t){y.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},h=function(t){delete m[t]},"process"==n(15)(l)?r=function(t){l.nextTick(a(y,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=_,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",_,!1)):r=g in c("script")?function(t){u.appendChild(c("script"))[g]=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:p,clear:h}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(39),o=n(2)("iterator"),i=n(14);t.exports=n(6).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(119)(!0);n(45)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function a(){v&&h&&(v=!1,h.length?d=h.concat(d):m=-1,d.length&&s())}function s(){if(!v){var t=o(a);v=!0;for(var e=d.length;e;){for(h=d,d=[];++m<e;)h&&h[m].run();m=-1,e=d.length}h=null,v=!1,i(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var f,l,p=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(t){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var h,d=[],v=!1,m=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new u(t,e)),1!==d.length||v||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,n){"use strict";function r(t){var e=new a(t),n=i(a.prototype.request,e);return o.extend(n,a.prototype,e),o.extend(n,e),n}var o=n(1),i=n(37),a=n(57),s=r();s.Axios=a,s.create=function(t){return r(t)},s.Cancel=n(33),s.CancelToken=n(56),s.isCancel=n(34),s.all=function(t){return Promise.all(t)},s.spread=n(71),t.exports=s,t.exports.default=s},function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new o(t),e(n.reason))})}var o=n(33);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t,e=new r(function(e){t=e});return{token:e,cancel:t}},t.exports=r},function(t,e,n){"use strict";function r(t){this.defaults=i.merge(o,t),this.interceptors={request:new a,response:new a}}var o=n(36),i=n(1),a=n(58),s=n(59),u=n(67),c=n(65);r.prototype.request=function(t){"string"==typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),t=i.merge(o,this.defaults,{method:"get"},t),t.baseURL&&!u(t.url)&&(t.url=c(t.baseURL,t.url));var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},i.forEach(["delete","get","head"],function(t){r.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){r.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=r},function(t,e,n){"use strict";function r(){this.handlers=[]}var o=n(1);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){o.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},function(t,e,n){"use strict";function r(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var o=n(1),i=n(62),a=n(34),s=n(36);t.exports=function(t){r(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var e=t.adapter||s.adapter;return e(t).then(function(e){return r(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(r(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e){"use strict";t.exports=function(t,e,n,r){return t.config=e,n&&(t.code=n),t.response=r,t}},function(t,e,n){"use strict";var r=n(35);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n)):t(n)}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e){"use strict";function n(){this.message="String contains an invalid character"}function r(t){for(var e,r,i=String(t),a="",s=0,u=o;i.charAt(0|s)||(u="=",s%1);a+=u.charAt(63&e>>8-s%1*8)){if(r=i.charCodeAt(s+=.75),r>255)throw new n;e=e<<8|r}return a}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=r},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(1);t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(o.isURLSearchParams(e))i=e.toString();else{var a=[];o.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(o.isArray(t)&&(e+="[]"),o.isArray(t)||(t=[t]),o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))}))}),i=a.join("&")}return i&&(t+=(t.indexOf("?")===-1?"?":"&")+i),t}},function(t,e){"use strict";t.exports=function(t,e){return t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,"")}},function(t,e,n){"use strict";var r=n(1);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(1);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(o.setAttribute("href",e),e=o.href),o.setAttribute("href",e),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return e=t(window.location.href),function(n){var o=r.isString(n)?t(n):n;return o.protocol===e.protocol&&o.host===e.host}}():function(){return function(){return!0}}()},function(t,e,n){"use strict";var r=n(1);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(1);t.exports=function(t){var e,n,o,i={};return t?(r.forEach(t.split("\n"),function(t){o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e&&(i[e]=i[e]?i[e]+", "+n:n)}),i):i}},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=r(o);i.default.defaults.headers.common["X-CSRF-TOKEN"]=document.querySelector("#token").getAttribute("content");var a=document.body.dataset,s=a.url,u=a.uri,c=a.auth,f=a.scoutDriver,l={uri:u,url:s,auth:c,scoutDriver:f,poster:s+"/assets/poster",posterTMDB:"http://image.tmdb.org/t/p/w185",api:s+"/api"};window.config=l,e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=r(o),a=n(152),s=r(a),u=n(72),c=r(u),f=n(134),l=r(f),p=n(135),h=r(p),d=n(136),v=r(d),m=n(137),g=r(m);i.default.use(s.default),e.default=new s.default({mode:"history",base:c.default.uri,routes:[{path:"/",component:l.default},{path:"/search",component:h.default},{path:"/settings",component:v.default},{path:"/suggestions",component:g.default},{path:"/trending",component:g.default},{path:"/upcoming",component:g.default},{path:"*",component:l.default}]})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=t.commit;n("SET_LOADING",!0),(0,c.default)(config.api+"/items/"+e).then(function(t){var e=t.data,r=e.data,o=e.next_page_url;n("SET_ITEMS",r),n("SET_PAGINATOR",o),setTimeout(function(){n("SET_LOADING",!1)},500)},function(t){404==t.status&&(window.location.href=config.url)})}function i(t,e){var n=t.commit;n("SET_CLICKED_LOADING",!0),(0,c.default)(e).then(function(t){var e=t.data,r=e.data,o=e.next_page_url;n("SET_PAGINATOR",o),setTimeout(function(){n("PUSH_TO_ITEMS",r),n("SET_CLICKED_LOADING",!1)},500)})}function a(t,e){var n=t.commit;n("SET_SEARCH_TITLE",e)}function s(t,e){var n=t.commit;localStorage.setItem("color",e),n("SET_COLOR_SCHEME",e)}Object.defineProperty(e,"__esModule",{value:!0}),e.loadItems=o,e.loadMoreItems=i,e.setSearchTitle=a,e.setColorScheme=s;var u=n(5),c=r(u)},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(91),s=o(a),u=n(92),c=o(u),f=n(76),l=r(f);e.default=(i={},(0,s.default)(i,l.SET_SEARCH_TITLE,function(t,e){t.searchTitle=e}),(0,s.default)(i,l.SET_USER_FILTER,function(t,e){t.userFilter=e}),(0,s.default)(i,l.SET_ITEMS,function(t,e){t.items=e}),(0,s.default)(i,l.PUSH_TO_ITEMS,function(t,e){var n;(n=t.items).push.apply(n,(0,c.default)(e))}),(0,s.default)(i,l.SET_LOADING,function(t,e){t.loading=e}),(0,s.default)(i,l.SET_PAGINATOR,function(t,e){t.paginator=e}),(0,s.default)(i,l.SET_CLICKED_LOADING,function(t,e){t.clickedMoreLoading=e}),(0,s.default)(i,l.SET_COLOR_SCHEME,function(t,e){t.colorScheme=e}),i)},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SET_SEARCH_TITLE="SET_SEARCH_TITLE",e.SET_USER_FILTER="SET_USER_FILTER",e.SET_ITEMS="SET_ITEMS",e.PUSH_TO_ITEMS="PUSH_TO_ITEMS",e.SET_LOADING="SET_LOADING",e.SET_PAGINATOR="SET_PAGINATOR",e.SET_CLICKED_LOADING="SET_CLICKED_LOADING",e.SET_COLOR_SCHEME="SET_COLOR_SCHEME"},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),i=r(o),a=n(31),s=r(a),u=n(4),c=n(5),f=r(c);e.default={created:function(){this.fetchData(),this.fetchSettings()},data:function(){return{displayGenre:null,displayDate:null}},computed:(0,i.default)({},(0,u.mapState)({loading:function(t){return t.loading},items:function(t){return t.items},userFilter:function(t){return t.userFilter},clickedMoreLoading:function(t){return t.clickedMoreLoading},paginator:function(t){return t.paginator}})),methods:(0,i.default)({},(0,u.mapActions)(["loadItems","loadMoreItems","setSearchTitle"]),{fetchData:function(){this.loadItems(this.userFilter),this.setSearchTitle("")},fetchSettings:function(){var t=this;(0,f.default)(config.api+"/settings").then(function(e){var n=e.data;t.displayGenre=n.genre,t.displayDate=n.date})},loadMore:function(){this.loadMoreItems(this.paginator)}}),components:{Item:s.default},watch:{$route:function(){this.fetchData()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=r(o);e.default={props:["item","genre","date"],data:function(){return{localItem:this.item,saveTimeout:null,auth:config.auth,prevRating:null,rated:!1,disabled:!1}},computed:{title:function(){return this.localItem.alternative_title?this.localItem.alternative_title:this.localItem.title},poster:function(){return this.localItem.rating?config.poster+this.localItem.poster:config.posterTMDB+this.localItem.poster},noImage:function(){return config.url+"/assets/img/no-image.png"},released:function t(){var e=this.$route.path,t=new Date(1e3*this.localItem.released);if("/upcoming"==e){var n=navigator.language||navigator.userLanguage;return t.toLocaleDateString(n,{year:"numeric",month:"numeric",day:"numeric"})}return t.getFullYear()}},methods:{changeRating:function(){var t=this;this.auth&&(clearTimeout(this.saveTimeout),this.prevRating=this.localItem.rating,this.localItem.rating=3==this.prevRating?1:+this.prevRating+1,this.saveTimeout=setTimeout(function(){t.saveNewRating()},500))},saveNewRating:function(){var t=this;i.default.patch(config.api+"/change-rating/"+this.localItem.id,{rating:this.localItem.rating}).catch(function(e){t.localItem.rating=t.prevRating,alert("Error in saveNewRating()")})},addNewItem:function(){var t=this;this.auth&&(this.disabled=!0,this.rated=!0,i.default.post(config.api+"/add",{item:this.localItem}).then(function(e){t.localItem=e.data,t.disabled=!1},function(e){409==e.status&&alert(t.title+" already exists!")}))},removeItem:function(){var t=this;if(this.auth){var e=window.confirm("Are you sure?");e&&i.default.delete(config.api+"/remove/"+this.localItem.id).then(function(e){t.localItem.rating=null},function(t){alert("Error in removeItem()")})}}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(93),i=r(o),a=n(90),s=r(a),u=n(7),c=r(u),f=n(31),l=r(f),p=n(19),h=r(p),d=n(5),v=r(d),m=n(4);e.default={mixins:[h.default],created:function(){this.initSearch()},data:function(){return{floxItems:[],tmdbItems:[]}},computed:(0,c.default)({},(0,m.mapState)({searchTitle:function(t){return t.searchTitle},loading:function(t){return t.loading}})),methods:(0,c.default)({},(0,m.mapMutations)(["SET_SEARCH_TITLE","SET_LOADING"]),{initSearch:function(){var t=this;this.SET_SEARCH_TITLE(this.$route.query.q),this.SET_LOADING(!0),this.searchFlox(),this.searchTMDB().then(function(){setTimeout(function(){t.SET_LOADING(!1)},500)})},searchFlox:function(){var t=this;(0,v.default)(config.api+"/search-items?q="+this.searchTitle).then(function(e){t.floxItems=e.data},function(t){console.log(t)})},searchTMDB:function(){var t=this;return(0,s.default)(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!config.auth){e.next=3;break}return e.next=3,(0,v.default)(config.api+"/search-tmdb?q="+t.searchTitle).then(function(e){var n=t.floxItems.map(function(t){return t.tmdb_id});t.tmdbItems=e.data.filter(function(t){return!n.includes(t.tmdb_id)})}).catch(function(t){alert("Error in searchTMDB(): "+t)});case 3:case"end":return e.stop()}},e,t)}))()}}),components:{Item:l.default},watch:{$route:function(){this.scrollToTop(),this.initSearch()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),i=r(o),a=n(4),s=n(5),u=r(s);e.default={created:function(){this.fetchSettings()},data:function(){return{username:"",password:"",displayGenre:null,displayDate:null,success:!1,uploadSuccess:!1,uploadedFile:null}},computed:(0,i.default)({},(0,a.mapState)({loading:function(t){return t.loading}}),{exportLink:function(){return config.api+"/export"}}),methods:(0,i.default)({},(0,a.mapMutations)(["SET_LOADING"]),{upload:function(t){var e=t.target.files||t.dataTransfer.files;this.uploadedFile=new FormData,this.uploadedFile.append("import",e[0])},updateSettings:function(){var t=this.displayDate,e=this.displayGenre;u.default.patch(config.api+"/settings",{date:t,genre:e}).catch(function(t){alert("Error")})},importMovies:function(){var t=this;if(this.uploadedFile){var e=window.confirm("All movies will be replaced. Be sure you have made an backup!");e&&(this.SET_LOADING(!0),u.default.post(config.api+"/import",this.uploadedFile).then(function(e){t.SET_LOADING(!1),t.uploadSuccess=!0},function(e){t.SET_LOADING(!1),alert("Error: "+e.body)}))}},fetchSettings:function(){var t=this;this.SET_LOADING(!0),(0,u.default)(config.api+"/settings").then(function(e){var n=e.body;t.SET_LOADING(!1),t.username=n.username,t.displayGenre=n.genre,t.displayDate=n.date})},editUser:function(){var t=this,e=this.username,n=this.password;""!=e&&u.default.patch(config.api+"/userdata",{username:e,password:n}).then(function(e){t.success=!0,t.clearSuccessMessage()})},updateGenre:function(){var t=this;this.SET_LOADING(!0),(0,u.default)(config.api+"/update-genre").then(function(e){t.SET_LOADING(!1)})},syncScout:function(){var t=this;this.SET_LOADING(!0),
|
|
(0,u.default)(config.api+"/sync-scout").then(function(e){t.SET_LOADING(!1)})},clearSuccessMessage:function(){var t=this;setTimeout(function(){t.success=!1},2e3)}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),i=r(o),a=n(31),s=r(a),u=n(19),c=r(u),f=n(5),l=r(f),p=n(4);e.default={mixins:[c.default],created:function(){this.init()},data:function(){return{items:[]}},computed:(0,i.default)({},(0,p.mapState)({loading:function(t){return t.loading}})),methods:(0,i.default)({},(0,p.mapMutations)(["SET_LOADING"]),{init:function(){this.SET_LOADING(!0);var t=this.$route.path;"/trending"==t?this.initTrending():"/suggestions"==t?this.initSuggestions():"/upcoming"==t&&this.initUpcoming()},initSuggestions:function(){var t=this,e=this.$route.query.for;(0,l.default)(config.api+"/suggestions/"+e).then(function(e){t.items=e.data,t.SET_LOADING(!1)})},initTrending:function(){var t=this;(0,l.default)(config.api+"/trending").then(function(e){t.items=e.data,t.SET_LOADING(!1)})},initUpcoming:function(){var t=this;(0,l.default)(config.api+"/upcoming").then(function(e){t.items=e.data,t.SET_LOADING(!1)})}}),components:{Item:s.default},watch:{$route:function(){this.scrollToTop(),this.init()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),i=r(o),a=n(4);e.default={data:function(){return{auth:config.auth,logout:config.api+"/logout",login:config.url+"/login",settings:config.url+"/settings"}},computed:(0,i.default)({},(0,a.mapState)({loading:function(t){return t.loading}}))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),i=r(o),a=n(38),s=(r(a),n(4));e.default={created:function(){this.checkForUserFilter()},computed:(0,i.default)({},(0,s.mapState)({userFilter:function(t){return t.userFilter},colorScheme:function(t){return t.colorScheme}}),{root:function(){return config.uri}}),methods:(0,i.default)({},(0,s.mapActions)(["setColorScheme","loadItems"]),(0,s.mapMutations)(["SET_USER_FILTER"]),{toggleColorScheme:function(){var t="light"==this.colorScheme?"dark":"light";this.setColorScheme(t)},checkForUserFilter:function(){localStorage.getItem("filter")||localStorage.setItem("filter","created_at"),this.SET_USER_FILTER(localStorage.getItem("filter"))},setUserFilter:function(t){localStorage.setItem("filter",t),this.SET_USER_FILTER(t),this.loadItems(t)}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=r(o);e.default={created:function(){document.body.className+=" dark"},data:function(){return{username:"",password:"",error:!1,errorShake:!1}},methods:{login:function(){var t=this;this.error=!1;var e=this.username,n=this.password;i.default.post(config.api+"/login",{username:e,password:n}).then(function(t){window.location.href=config.url},function(e){t.error=!0,t.errorShake=!0,setTimeout(function(){t.errorShake=!1},500)})}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=r(o);e.default={mixins:[i.default],mounted:function(){this.initSticky()},data:function(){return{sticky:!1}},computed:{algolia:function(){return"algolia"==config.scoutDriver&&this.$route.query.q},title:{get:function(){return this.$store.state.searchTitle},set:function(t){this.$store.commit("SET_SEARCH_TITLE",t)}},placeholder:function(){return config.auth?"Search or add movie":"Search movie"}},methods:{initSticky:function(){var t=this,e=document.querySelector("header").scrollHeight;window.onscroll=function(){t.sticky=document.body.scrollTop+document.documentElement.scrollTop>e}},search:function(){""!=this.title&&this.$router.push({path:"/search?q="+this.title})}}}},function(t,e,n){t.exports={default:n(94),__esModule:!0}},function(t,e,n){t.exports={default:n(95),__esModule:!0}},function(t,e,n){t.exports={default:n(96),__esModule:!0}},function(t,e,n){t.exports={default:n(97),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(89),i=r(o);e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,n){function r(o,a){try{var s=e[o](a),u=s.value}catch(t){return void n(t)}return s.done?void t(u):i.default.resolve(u).then(function(t){r("next",t)},function(t){r("throw",t)})}return r("next")})}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(88),i=r(o);e.default=function(t,e,n){return e in t?(0,i.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(86),i=r(o);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,i.default)(t)}},function(t,e,n){t.exports=n(130)},function(t,e,n){n(53),n(122),t.exports=n(6).Array.from},function(t,e,n){n(124),t.exports=n(6).Object.assign},function(t,e,n){n(125);var r=n(6).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(126),n(53),n(128),n(127),t.exports=n(6).Promise},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(28),o=n(29),i=n(120);t.exports=function(t){return function(e,n,a){var s,u=r(e),c=o(u.length),f=i(a,c);if(t&&n!=n){for(;c>f;)if(s=u[f++],s!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(11),o=n(24);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(12),o=n(44),i=n(43),a=n(8),s=n(29),u=n(52),c={},f={},e=t.exports=function(t,e,n,l,p){var h,d,v,m,g=p?function(){return t}:u(t),y=r(n,l,e?2:1),_=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=s(t.length);h>_;_++)if(m=e?y(a(d=t[_])[0],d[1]):y(t[_]),m===c||m===f)return m}else for(v=g.call(t);!(d=v.next()).done;)if(m=o(v,y,d.value,e),m===c||m===f)return m};e.BREAK=c,e.RETURN=f},function(t,e,n){t.exports=!n(9)&&!n(23)(function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){"use strict";var r=n(109),o=n(24),i=n(25),a={};n(10)(a,n(2)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(3),o=n(50).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(15)(a);t.exports=function(){var t,e,n,c=function(){var r,o;for(u&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(i){var f=!0,l=document.createTextNode("");new i(c).observe(l,{characterData:!0}),n=function(){l.data=f=!f}}else if(s&&s.resolve){var p=s.resolve();n=function(){p.then(c)}}else n=function(){o.call(r,c)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";var r=n(48),o=n(111),i=n(114),a=n(30),s=n(42),u=Object.assign;t.exports=!u||n(23)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=a(t),u=arguments.length,c=1,f=o.f,l=i.f;u>c;)for(var p,h=s(arguments[c++]),d=f?r(h).concat(f(h)):r(h),v=d.length,m=0;v>m;)l.call(h,p=d[m++])&&(n[p]=h[p]);return n}:u},function(t,e,n){var r=n(8),o=n(110),i=n(40),a=n(26)("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n(22)("iframe"),r=i.length,o="<",a=">";for(e.style.display="none",n(41).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),c=t.F;r--;)delete c[u][i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(11),o=n(8),i=n(48);t.exports=n(9)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(16),o=n(30),i=n(26)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(16),o=n(28),i=n(100)(!1),a=n(26)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(10);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){t.exports=n(10)},function(t,e,n){"use strict";var r=n(3),o=n(6),i=n(11),a=n(9),s=n(2)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(8),o=n(20),i=n(2)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r=n(27),o=n(21);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(i=s.charCodeAt(u),i<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):i:t?s.slice(u,u+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e,n){var r=n(27),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(17);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){"use strict";var r=n(12),o=n(13),i=n(30),a=n(44),s=n(43),u=n(29),c=n(101),f=n(52);o(o.S+o.F*!n(46)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,m=void 0!==v,g=0,y=f(p);if(m&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==y||h==Array&&s(y))for(e=u(p.length),n=new h(e);e>g;g++)c(n,g,m?v(p[g],g):p[g]);else for(l=y.call(p),n=new h;!(o=l.next()).done;g++)c(n,g,m?a(l,v,[o.value,g],!0):o.value);return n.length=g,n}})},function(t,e,n){"use strict";var r=n(98),o=n(106),i=n(14),a=n(28);t.exports=n(45)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(13);r(r.S+r.F,"Object",{assign:n(108)})},function(t,e,n){var r=n(13);r(r.S+r.F*!n(9),"Object",{defineProperty:n(11).f})},function(t,e){},function(t,e,n){"use strict";var r,o,i,a=n(47),s=n(3),u=n(12),c=n(39),f=n(13),l=n(17),p=n(20),h=n(99),d=n(102),v=n(118),m=n(50).set,g=n(107)(),y="Promise",_=s.TypeError,w=s.process,b=s[y],w=s.process,x="process"==c(w),S=function(){},T=!!function(){try{var t=b.resolve(1),e=(t.constructor={})[n(2)("species")]=function(t){t(S,S)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(S)instanceof e}catch(t){}}(),E=function(t,e){return t===e||t===b&&e===i},A=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},R=function(t){return E(b,t)?new O(t):new o(t)},O=o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw _("Bad Promise constructor");e=t,n=r}),this.resolve=p(e),this.reject=p(n)},C=function(t){try{t()}catch(t){return{error:t}}},M=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a=o?e.ok:e.fail,s=e.resolve,u=e.reject,c=e.domain;try{a?(o||(2==t._h&&L(t),t._h=1),a===!0?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===e.promise?u(_("Promise-chain cycle")):(i=A(n))?i.call(n,s,u):s(n)):u(r)}catch(t){u(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&I(t)})}},I=function(t){m.call(s,function(){var e,n,r,o=t._v;if(k(t)&&(e=C(function(){x?w.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=x||k(t)?2:1),t._a=void 0,e)throw e.error})},k=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!k(e.promise))return!1;return!0},L=function(t){m.call(s,function(){var e;x?w.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},j=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},P=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw _("Promise can't be resolved itself");(e=A(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,u(P,r,1),u(j,r,1))}catch(t){j.call(r,t)}}):(n._v=t,n._s=1,M(n,!1))}catch(t){j.call({_w:n,_d:!1},t)}}};T||(b=function(t){h(this,b,y,"_h"),p(t),r.call(this);try{t(u(P,this,1),u(j,this,1))}catch(t){j.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(115)(b.prototype,{then:function(t,e){var n=R(v(this,b));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=x?w.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),O=function(){var t=new r;this.promise=t,this.resolve=u(P,t,1),this.reject=u(j,t,1)}),f(f.G+f.W+f.F*!T,{Promise:b}),n(25)(b,y),n(117)(y),i=n(6)[y],f(f.S+f.F*!T,y,{reject:function(t){var e=R(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(a||!T),y,{resolve:function(t){if(t instanceof b&&E(t.constructor,this))return t;var e=R(this),n=e.resolve;return n(t),e.promise}}),f(f.S+f.F*!(T&&n(46)(function(t){b.all(t).catch(S)})),y,{all:function(t){var e=this,n=R(e),r=n.resolve,o=n.reject,i=C(function(){var n=[],i=0,a=1;d(t,!1,function(t){var s=i++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--a||r(n))},o)}),--a||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=R(e),r=n.reject,o=C(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(t,e,n){n(123);for(var r=n(3),o=n(10),i=n(14),a=n(2)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var c=s[u],f=r[c],l=f&&f.prototype;l&&!l[a]&&o(l,a,c),i[c]=i.Array}},function(t,e){},function(t,e,n){(function(e){var r="object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this,o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(131),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}}).call(e,function(){return this}())},function(t,e,n){(function(e,n){!function(e){"use strict";function r(t,e,n,r){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new d(r||[]);return a._invoke=l(t,n,s),a}function o(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function i(){}function a(){}function s(){}function u(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){this.arg=t}function f(t){function e(n,r,i,a){var s=o(t[n],t,r);if("throw"!==s.type){var u=s.arg,f=u.value;return f instanceof c?Promise.resolve(f.arg).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(f).then(function(t){u.value=t,i(u)},a)}a(s.arg)}function r(t,n){function r(){return new Promise(function(r,o){e(t,n,r,o)})}return i=i?i.then(r,r):r()}"object"==typeof n&&n.domain&&(e=n.domain.bind(e));var i;this._invoke=r}function l(t,e,n){var r=T;return function(i,a){if(r===A)throw new Error("Generator is already running");if(r===R){if("throw"===i)throw a;return m()}for(;;){var s=n.delegate;if(s){if("return"===i||"throw"===i&&s.iterator[i]===g){n.delegate=null;var u=s.iterator.return;if(u){var c=o(u,s.iterator,a);if("throw"===c.type){i="throw",a=c.arg;continue}}if("return"===i)continue}var c=o(s.iterator[i],s.iterator,a);if("throw"===c.type){n.delegate=null,i="throw",a=c.arg;continue}i="next",a=g;var f=c.arg;if(!f.done)return r=E,f;n[s.resultName]=f.value,n.next=s.nextLoc,n.delegate=null}if("next"===i)n.sent=n._sent=a;else if("throw"===i){if(r===T)throw r=R,a;n.dispatchException(a)&&(i="next",a=g)}else"return"===i&&n.abrupt("return",a);r=A;var c=o(t,e,n);if("normal"===c.type){r=n.done?R:E;var f={value:c.arg,done:n.done};if(c.arg!==O)return f;n.delegate&&"next"===i&&(a=g)}else"throw"===c.type&&(r=R,i="throw",a=c.arg)}}}function p(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(p,this),this.reset(!0)}function v(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(y.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=g,e.done=!0,e};return r.next=r}}return{next:m}}function m(){return{value:g,done:!0}}var g,y=Object.prototype.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},w=_.iterator||"@@iterator",b=_.toStringTag||"@@toStringTag",x="object"==typeof t,S=e.regeneratorRuntime;if(S)return void(x&&(t.exports=S));S=e.regeneratorRuntime=x?t.exports:{},S.wrap=r;var T="suspendedStart",E="suspendedYield",A="executing",R="completed",O={},C=s.prototype=i.prototype;a.prototype=C.constructor=s,s.constructor=a,s[b]=a.displayName="GeneratorFunction",S.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},S.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,b in t||(t[b]="GeneratorFunction")),t.prototype=Object.create(C),t},S.awrap=function(t){return new c(t)},u(f.prototype),S.async=function(t,e,n,o){var i=new f(r(t,e,n,o));return S.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},u(C),C[w]=function(){return this},C[b]="Generator",C.toString=function(){return"[object Generator]"},S.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},S.values=v,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.tryEntries.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=g)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=y.call(o,"catchLoc"),s=y.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?this.next=o.finallyLoc:this.complete(i),O},complete:function(t,e){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e)},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),h(n),O}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;h(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:v(t),resultName:e,nextLoc:n},O}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(54))},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAgCAMAAADAIm3oAAACE1BMVEUAAACKW/+cU+yaVO6KW/7GQsSQWPnnNKToNKOSV/e8Rs7QPruMWv2PWfqhUejGQsXEQsaqTeDoNKS7Rs+TV/bkNae/RcvtMZ6+RczGQsWVVvSlT+SrTd7sMp/wMJvtMZ7nNKS/RcvNP77QPrvTPbjNP73uMZ2RWPigUenhN6u6RtDSPbnGQsSwStqxStnARMrPPrvVPLbLQL/GQsTqM6LRPbrGQsTwMJy4R9LLQL/TPLe0SdbKQMHWO7XnNKStTN3eOK7QPruSV/fEQ8azSdfjNqjoNKPARMvmNaXmNKXEQsbdOK+6RtDuMZ29Rc3sMp/ARMnrM6DiNqntMZ3vMJy5R9HTPbiwS9m/RcvbObCKW/66R9DRPbnLQL+JW//IQcKtTNzdOK7oNKPfN6zXO7PJQcHYOrLKQMC1SdTqM6LEQ8axStjZOrG8Rs25R9HjNqjmNKWWVvLTPbi6R9CwS9m8Rs3PPrvlNabrMqDjNqivS9rNP73cOa/ARMrARMnGQsPBRMicU+zEQ8bfOKztMZ23SNPVPLa1SdXYOrPKQMG6R9GbU+2JW//RPbq8Rs7EQ8fBRMnPPrzWO7SwS9rGQsOyStfIQcLTPbixStjFQsXZOrHLQL/vMZyTV/boNKPrM6HtMZ6MWv2+RczbObDiNqmPWPm/RcvNP73cOa/lNafmNKWtTN2KW/6kUOaeUurdOK6pTeCVJkKBAAAAhXRSTlMAVd1V3QszETNVER3d3TMDhzMhFN27U0QpCN3d3d3dzEQsLCkU7+7d3d3b29HIwsG/vrarq56dmY+Pj4eHendfX1NEOh3u7uvdzMvBwLu4mY+Hd3dV+Pjz8/Pu7Ovm3d3R0czKyMbDwLu7tqioopmZmYeHfXdoaGZmVTk5OSH4+PPu3Ydmpzv5zwAAAydJREFUSMe9l+dX01AYxl+R0lpUakspRQsFBCx7FMosIntPF25w4QInoOJmCwVBFI1J1DqSovInmqQ3F9rGtoFTfx96evIhv3Pf3PvkCWwRRWyMpuBaZmZ+QXlVsgJCie5+24mFBYdjdXllevpjSv6DgxAqdHfT579835D9WFzMqAhSd+RsePhujj0caWnR0dFxcbf5y2FhIElM+sy8t2xuLqMKMP2WQfBElRpvAJ4dr9fWPvN84/gkwMt2zkrKFMXjM1KydxOlCnxrp3MUPEggbIBkvTsEdmEi/imruTqOZU1FGk3RJSybyIsERJezVgubsBHxSlEWDr5Iy2qyJpGsviNRIaw0qSQFyd5cxDa9Uw8bGAjCALJl6uxJJMtJBExSLpJNXVaiS9paxg4iShPRCbJlUdffItlNhcdzLESyqRtR6NIww6gA0UongHzZvfdI1oJc2JaLZB8qAGFlGtG/ETpVK1/28DiSnRJnqK6ORJM8jWQnH4uza2CH3FuTpl+BbFlU9hKSFQMidvlcuXuRpUj2tVkcpJllzcKup60gX1a5hGRHY3GWPF2ZvqIGjuRjSPbzMCA62Tol90uZlPJl6vOirMWIw4Q/1CXAYcwTZRfwvRvJATBTlAHkyypdouwW9jfxsjPCcysUZX/w0lQkaTdR7bAFWRaWlQmiMXVMkzuuHgHHHSzrBxE7SVIm8JKteQdxELLqJ88cDklZM2D6SI8hSgZxXBBjHKvng9jvGMHMrWzAW9Yb4UUwG6SDl/ndIMoG0lpHdQNsf+vrcniZn60PerIPRihKBbD9Q63QvFj1c6jBzpKcx0qhYNxyXKFTHVktxlWyT1yBimWHhcin2wG2E8RtRvDA6BvE0MjqgcdA0z0AIX3FwCBTh3ZKu7zUx+gCvTxxxxplGDMuIHQrAISiFuA39RCIqGiiW6bMt/DkSBQe3EEaYINuglAFlMmvcrhdOT1OV2vgdvV8L2KfG3Xgkop7YxdsRptK2ALIZn9z/OJZX193uVxlQdZvpUUscpgegugR6zf4INTvsEMc+3kO8JQF+WHx0mLRghe2eDTI//bJ9BcGDf91+LWedQAAAABJRU5ErkJggg=="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAAgCAMAAADAIm3oAAAAilBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////2N2iNAAAALXRSTlMA3VUzEYcLwLuZj0R37swdFCks88gh69G2q19TA8M5+Ahm2KiinWg75n597FBo4OziAAACOklEQVRIx71Xf3eqMAxtocUCFlDHlCnqfvq29/L9v947FtLMyCadx90/PBporklvL0H8EMlsrZvVcrlq9HqWiFuielstwGOxeqvErVB9SGCQHyPpcnkG3YXFINZPMICnNd1RyJStia3M3ZcIzqBdeJAsyeALZIlPDRCdriqgp4/ARgzxl2SlAY+7V61f7+i3KfGuKdj686oUpEIylvWbcOlz32fzxFU6z+49u2czYAQhB8hFMJlqMe9kTtH5BKOt6kO1hSmtkqBFMNnmGbO+JCf7+ILx500fegSIqcxChJNNfV0JUw3WRvU0UHheW4eTbRe4X9hDtS37TuK+LbbUuxSl+SiCyTYTL3IMzUDqrsjMF71hqiigEeFkD5hvN/NesgOYKEe7w6sPeFGDVcdPqcLJ1NL/+T3G/vk6977spaKTbLC+QDIqDFLPXxx//im7c0ulkZFMcecCycgqtCOqVVSAg9OEJmM5Ua/kWUEyjCA77FCbnKz9bImQczIOOaKNNYp9qI0kSDCczMYMFwWCYv9WIEpCg7Z1pfQrl35Q+mRTaFtXH+pESxg81CSPGG3rCrv625/q8nAoeythdoU2hbZ1jRGb/emFvWFG3B1pVEmEsRs9YkQKVuG3ENcnVJcenhWthpzVeLOxoLZup8i2gsn4wNMeB56WDTwdDC4mXQaQBY1ylJ241QUybixqxJDK+0ZdvUDGoVEm7+fj93snDbQpc54swvF73FSuR75YaClrni2V2MjfemX6D0AKmiHCtfAOAAAAAElFTkSuQmCC"},function(t,e,n){var r,o;r=n(77);var i=n(144);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(79);var i=n(143);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(80);var i=n(149);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(81);var i=n(146);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(82);var i=n(147);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(83);var i=n(150);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(84);var i=n(142);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(85);var i=n(145);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){t.exports={render:function(){var t=this;return t._h("div",[t._h("span",{staticClass:"top-bar"})," ",t._h("div",{staticClass:"login-wrap"},[t._h("img",{staticClass:"logo-login",attrs:{src:n(132),alt:"Flox",width:"108",height:"32"}})," ",t._h("form",{staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.login()}}},[t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],attrs:{type:"text",placeholder:"Username",autofocus:""},domProps:{value:t._s(t.username)},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}})," ",t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",placeholder:"Password"},domProps:{value:t._s(t.password)},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})," ",t._h("span",{staticClass:"login-error"},[t.error?t._h("span",["Wrong username or password"]):t._e()])," ",t._h("input",{class:t.errorShake?"shake-horizontal shake-constant":"",attrs:{type:"submit",value:"Sign In"}})])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;return t._h("main",[t.loading?t._e():t._h("div",{staticClass:"wrap-content"},[t._l(t.floxItems,function(e,n){return t._h("Item",{key:n,attrs:{item:e,genre:!0,date:!0}})})," ",t._l(t.tmdbItems,function(e,n){return t._h("Item",{key:n,attrs:{item:e,genre:!0,date:!0}})})," ",t.floxItems.length||t.tmdbItems.length?t._e():t._h("span",{staticClass:"nothing-found"},["Nothing Found"])])," ",t.loading?t._h("span",{staticClass:"loader fullsize-loader"},[t._h("i")]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;return t._h("main",[t.loading?t._e():t._h("div",{staticClass:"wrap-content"},[t._l(t.items,function(e,n){return t._h("Item",{key:n,attrs:{item:e,genre:t.displayGenre,date:t.displayDate}})})," ",t.items.length?t._e():t._h("span",{staticClass:"nothing-found"},["No Movies Found"])," ",t._h("div",{staticClass:"load-more-wrap"},[!t.clickedMoreLoading&&t.paginator?t._h("span",{staticClass:"load-more",on:{click:function(e){t.loadMore()}}},["Load More"]):t._e()," ",t.clickedMoreLoading?t._h("span",{staticClass:"loader"},[t._h("i")]):t._e()])])," ",t.loading?t._h("span",{staticClass:"loader fullsize-loader"},[t._h("i")]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;return t._h("section",{staticClass:"search-wrap",class:{sticky:t.sticky}},[t._h("div",{staticClass:"wrap"},[t._h("form",{staticClass:"search-form",on:{submit:function(e){e.preventDefault(),t.search()}}},[t._h("router-link",{attrs:{to:"/"}},[t._h("i",{staticClass:"icon-logo-small",on:{click:function(e){t.scrollToTop()}}})])," ",t._h("i",{staticClass:"icon-search"})," ",t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],staticClass:"search-input",attrs:{type:"text",placeholder:t.placeholder,autofocus:""},domProps:{value:t._s(t.title)},on:{input:function(e){e.target.composing||(t.title=e.target.value)}}})," ",t.algolia?t._h("i",{staticClass:"icon-algolia"}):t._e()])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;return t._h("main",[t.loading?t._e():t._h("div",{staticClass:"wrap-content"},[t._l(t.items,function(e,n){return t._h("Item",{key:n,attrs:{item:e,genre:!0,date:!0}})})])," ",t.loading?t._h("span",{staticClass:"loader fullsize-loader"},[t._h("i")]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;return t._h("footer",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:" ! loading"}]},[t._h("div",{staticClass:"wrap"},[t._m(0)," ",t._h("a",{staticClass:"icon-github",attrs:{href:"https://github.com/devfake/flox",target:"_blank"}})," ",t._h("div",{staticClass:"sub-links"},[t.auth?t._h("a",{staticClass:"login-btn",attrs:{href:t.settings}},["Settings"]):t._e()," ",t.auth?t._h("a",{staticClass:"login-btn",attrs:{href:t.logout}},["Logout"]):t._e()," ",t.auth?t._e():t._h("a",{staticClass:"login-btn",attrs:{href:t.login}},["Login"])])])])},staticRenderFns:[function(){var t=this;return t._h("span",{staticClass:"attribution"},[t._h("a",{attrs:{href:"https://www.themoviedb.org/",target:"_blank"}},[t._h("i",{staticClass:"icon-tmdb"})]),"\n This product uses the TMDb API but is not endorsed or certified by TMDb\n "])}]}},function(t,e){t.exports={render:function(){var t=this;return t._h("transition",{attrs:{mode:"out-in",name:"fade"}},[t._h("div",{staticClass:"item-wrap"},[t._h("div",{staticClass:"item-image-wrap"},[t.localItem.rating?t._h("span",{class:"item-rating rating-"+t.localItem.rating,on:{click:function(e){t.changeRating()}}},[t._h("i",{staticClass:"icon-rating"})]):t._e()," ",t.localItem.rating?t._e():t._h("span",{staticClass:"item-rating item-new",class:{disabled:t.disabled},on:{click:function(e){t.addNewItem()}}},[t.rated?t._h("span",{staticClass:"loader smallsize-loader"},[t._h("i")]):t._e()," ",t.rated?t._e():t._h("i",{staticClass:"icon-add"})])," ",t._h("router-link",{staticClass:"recommend-item",attrs:{to:"/suggestions?for="+t.localItem.tmdb_id}},["Suggestions"])," ",t.localItem.rating&&t.auth?t._h("span",{staticClass:"remove-item",on:{click:function(e){t.removeItem()}}},["Delete Movie"]):t._e()," ",t.localItem.poster?t._h("img",{staticClass:"item-image",attrs:{src:t.poster,width:"185",
|
|
height:"278"}}):t._e()," ",t.localItem.poster?t._e():t._h("img",{staticClass:"item-image",attrs:{src:t.noImage,width:"185",height:"278"}})])," ",t._h("div",{staticClass:"item-content"},[1==t.date?t._h("span",{staticClass:"item-year"},[t._s(t.released)]):t._e()," ",t._h("a",{staticClass:"item-title",attrs:{href:"https://www.youtube.com/results?search_query="+t.title+" "+t.released+" Trailer",target:"_blank",title:t.title}},[t._s(t.title)])," ",1==t.genre?t._h("span",{staticClass:"item-genre"},[t._s(t.localItem.genre)]):t._e()])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;return t._h("main",[t.loading?t._e():t._h("div",{staticClass:"wrap-content"},[t._h("div",{staticClass:"settings-box"},[t._h("span",{staticClass:"nothing-found"},["User"])," ",t._h("form",{staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.editUser()}}},[t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],attrs:{type:"text",placeholder:"Username"},domProps:{value:t._s(t.username)},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}})," ",t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",placeholder:"Password",autocomplete:"off"},domProps:{value:t._s(t.password)},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})," ",t._h("span",{staticClass:"userdata-info"},["Leave the password field blank if you don't want to change it"])," ",t._h("span",{staticClass:"userdata-changed"},[t.success?t._h("span",["Successful changed"]):t._e()])," ",t._h("input",{attrs:{type:"submit",value:"Save"}})])])," ",t._h("div",{staticClass:"settings-box"},[t._h("span",{staticClass:"nothing-found"},["Export / Import"])," ",t._h("a",{staticClass:"export-btn",attrs:{href:t.exportLink}},["Export Movies"])," ",t._h("form",{staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.importMovies()}}},[t._h("span",{staticClass:"import-info"},["OR"])," ",t._h("input",{staticClass:"file-btn",attrs:{type:"file",required:""},on:{change:t.upload}})," ",t._h("span",{staticClass:"userdata-changed"},[t.uploadSuccess?t._h("span",["Movies successful imported"]):t._e()])," ",t._h("input",{attrs:{type:"submit",value:"Import movies"}})])])," ",t._h("div",{staticClass:"settings-box"},[t._h("span",{staticClass:"nothing-found"},["Misc"])," ",t._h("button",{staticClass:"export-btn",on:{click:function(e){t.updateGenre()}}},["Update Genre"])," ",t._h("span",{staticClass:"import-info"},["OR"])," ",t._h("button",{staticClass:"export-btn",on:{click:function(e){t.syncScout()}}},["Sync Laravel Scout"])," ",t._h("span",{staticClass:"import-info"},["OR"])," ",t._h("div",{staticClass:"checkbox"},[t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.displayGenre,expression:"displayGenre"}],attrs:{type:"checkbox",value:"genre",id:"genre"},domProps:{checked:Array.isArray(t.displayGenre)?t._i(t.displayGenre,"genre")>-1:t._q(t.displayGenre,!0)},on:{change:[function(e){var n=t.displayGenre,r=e.target,o=!!r.checked;if(Array.isArray(n)){var i="genre",a=t._i(n,i);o?a<0&&(t.displayGenre=n.concat(i)):a>-1&&(t.displayGenre=n.slice(0,a).concat(n.slice(a+1)))}else t.displayGenre=o},t.updateSettings]}}),t._h("label",{attrs:{for:"genre"}},["Display Genre"])])," ",t._h("div",{staticClass:"checkbox"},[t._h("input",{directives:[{name:"model",rawName:"v-model",value:t.displayDate,expression:"displayDate"}],attrs:{type:"checkbox",value:"date",id:"date"},domProps:{checked:Array.isArray(t.displayDate)?t._i(t.displayDate,"date")>-1:t._q(t.displayDate,!0)},on:{change:[function(e){var n=t.displayDate,r=e.target,o=!!r.checked;if(Array.isArray(n)){var i="date",a=t._i(n,i);o?a<0&&(t.displayDate=n.concat(i)):a>-1&&(t.displayDate=n.slice(0,a).concat(n.slice(a+1)))}else t.displayDate=o},t.updateSettings]}}),t._h("label",{attrs:{for:"date"}},["Display Date"])])])])," ",t.loading?t._h("span",{staticClass:"loader fullsize-loader"},[t._h("i")]):t._e()])},staticRenderFns:[]}},function(t,e,n){t.exports={render:function(){var t=this;return t._h("header",[t._h("div",{staticClass:"wrap"},[t._h("router-link",{staticClass:"logo",attrs:{to:"/"}},[t._h("img",{attrs:{src:n(133),alt:"Flox",width:"108",height:"32"}})])," ",t._h("span",{staticClass:"sort-wrap"},[t._h("i",{staticClass:"icon-sort-time",class:{active:"created_at"==t.userFilter},attrs:{title:"Last Seen"},on:{click:function(e){t.setUserFilter("created_at")}}})," ",t._h("i",{staticClass:"icon-sort-star",class:{active:"rating"==t.userFilter},attrs:{title:"Best Rated"},on:{click:function(e){t.setUserFilter("rating")}}})," ",t._h("span",{staticClass:"icon-constrast",attrs:{title:"Toggle Color"},on:{click:function(e){t.toggleColorScheme()}}},[t._h("i")])])," ",t._h("nav",{staticClass:"site-nav"},[t._h("ul",[t._h("li",[t._h("router-link",{attrs:{to:"/trending"}},["Trending"])])," ",t._h("li",[t._h("router-link",{attrs:{to:"/upcoming"}},["Upcoming"])])])])])])},staticRenderFns:[]}},,function(t,e,n){/**
|
|
* vue-router v2.0.3
|
|
* (c) 2016 Evan You
|
|
* @license MIT
|
|
*/
|
|
!function(e,n){t.exports=n()}(this,function(){"use strict";function t(t,e,n){if("/"===t.charAt(0))return t;if("?"===t.charAt(0)||"#"===t.charAt(0))return e+t;var r=e.split("/");n&&r[r.length-1]||r.pop();for(var o=t.replace(/^\//,"").split("/"),i=0;i<o.length;i++){var a=o[i];"."!==a&&(".."===a?r.pop():r.push(a))}return""!==r[0]&&r.unshift(""),r.join("/")}function e(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}function n(t){return t.replace(/\/\//g,"/")}function r(t,e){if(!t)throw new Error("[vue-router] "+e)}function o(t,e){t||"undefined"!=typeof console&&console.warn("[vue-router] "+e)}function i(t,e){if(void 0===e&&(e={}),t){var n;try{n=a(t)}catch(t){o(!1,t.message),n={}}for(var r in e)n[r]=e[r];return n}return e}function a(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=mt(n.shift()),o=n.length>0?mt(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e}function s(t){var e=t?Object.keys(t).sort().map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return vt(e);if(Array.isArray(n)){var r=[];return n.slice().forEach(function(t){void 0!==t&&(null===t?r.push(vt(e)):r.push(vt(e)+"="+vt(t)))}),r.join("&")}return vt(e)+"="+vt(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}function u(t,e,n){var r={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:e.query||{},params:e.params||{},fullPath:f(e),matched:t?c(t):[]};return n&&(r.redirectedFrom=f(n)),Object.freeze(r)}function c(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function f(t){var e=t.path,n=t.query;void 0===n&&(n={});var r=t.hash;return void 0===r&&(r=""),(e||"/")+s(n)+r}function l(t,e){return e===gt?t===e:!!e&&(t.path&&e.path?t.path.replace(yt,"")===e.path.replace(yt,"")&&t.hash===e.hash&&p(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&p(t.query,e.query)&&p(t.params,e.params)))}function p(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){return String(t[n])===String(e[n])})}function h(t,e){return 0===t.path.indexOf(e.path.replace(/\/$/,""))&&(!e.hash||t.hash===e.hash)&&d(t.query,e.query)}function d(t,e){for(var n in e)if(!(n in t))return!1;return!0}function v(n,r,o){var a="string"==typeof n?{path:n}:n;if(a.name||a._normalized)return a;var s=e(a.path||""),u=r&&r.path||"/",c=s.path?t(s.path,u,o):r&&r.path||"/",f=i(s.query,a.query),l=a.hash||s.hash;return l&&"#"!==l.charAt(0)&&(l="#"+l),{_normalized:!0,path:c,query:f,hash:l}}function m(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=m(e.children)))return e}}function g(t,e,r){var o="hash"===r?"/#"+e:e;return t?n(t+o):o}function y(t){if(!y.installed){y.installed=!0,ht=t,Object.defineProperty(t.prototype,"$router",{get:function(){return this.$root._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this.$root._route}}),t.mixin({beforeCreate:function(){this.$options.router&&(this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current))}}),t.component("router-view",dt),t.component("router-link",wt);var e=t.config.optionMergeStrategies;e.beforeRouteEnter=e.beforeRouteLeave=e.created}}function _(t,e){for(var n,r=[],o=0,i=0,a="",s=e&&e.delimiter||"/";null!=(n=Ot.exec(t));){var u=n[0],c=n[1],f=n.index;if(a+=t.slice(i,f),i=f+u.length,c)a+=c[1];else{var l=t[i],p=n[2],h=n[3],d=n[4],v=n[5],m=n[6],g=n[7];a&&(r.push(a),a="");var y=null!=p&&null!=l&&l!==p,_="+"===m||"*"===m,w="?"===m||"*"===m,b=n[2]||s,x=d||v;r.push({name:h||o++,prefix:p||"",delimiter:b,optional:w,repeat:_,partial:y,asterisk:!!g,pattern:x?E(x):g?".*":"[^"+T(b)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function w(t,e){return S(_(t,e))}function b(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function x(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function S(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",i=n||{},a=r||{},s=a.pretty?b:encodeURIComponent,u=0;u<t.length;u++){var c=t[u];if("string"!=typeof c){var f,l=i[c.name];if(null==l){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(xt(l)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var p=0;p<l.length;p++){if(f=s(l[p]),!e[u].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===p?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?x(l):s(l),!e[u].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');o+=c.prefix+f}}else o+=c}return o}}function T(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function E(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function A(t,e){return t.keys=e,t}function R(t){return t.sensitive?"":"i"}function O(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return A(t,e)}function C(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(k(t[o],e,n).source);var i=new RegExp("(?:"+r.join("|")+")",R(n));return A(i,e)}function M(t,e,n){return I(_(t,n),e,n)}function I(t,e,n){xt(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,o=n.end!==!1,i="",a=0;a<t.length;a++){var s=t[a];if("string"==typeof s)i+=T(s);else{var u=T(s.prefix),c="(?:"+s.pattern+")";e.push(s),s.repeat&&(c+="(?:"+u+c+")*"),c=s.optional?s.partial?u+"("+c+")?":"(?:"+u+"("+c+"))?":u+"("+c+")",i+=c}}var f=T(n.delimiter||"/"),l=i.slice(-f.length)===f;return r||(i=(l?i.slice(0,-f.length):i)+"(?:"+f+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+f+"|$)",A(new RegExp("^"+i,R(n)),e)}function k(t,e,n){return xt(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?O(t,e):xt(t)?C(t,e,n):M(t,e,n)}function L(t){var e=Object.create(null),n=Object.create(null);return t.forEach(function(t){j(e,n,t)}),{pathMap:e,nameMap:n}}function j(t,e,n,i,a){var s=n.path,u=n.name;r(null!=s,'"path" is required in a route configuration.');var c={path:P(s,i),components:n.components||{default:n.component},instances:{},name:u,parent:i,matchAs:a,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{}};n.children&&n.children.forEach(function(n){j(t,e,n,c)}),void 0!==n.alias&&(Array.isArray(n.alias)?n.alias.forEach(function(n){j(t,e,{path:n},i,c.path)}):j(t,e,{path:n.alias},i,c.path)),t[c.path]=c,u&&(e[u]?o(!1,'Duplicate named routes definition: { name: "'+u+'", path: "'+c.path+'" }'):e[u]=c)}function P(t,e){return t=t.replace(/\/$/,""),"/"===t[0]?t:null==e?t:n(e.path+"/"+t)}function F(t){function e(t,e,n){var r=v(t,e),o=r.name;if(o){var i=f[o],s=U(i.path);if("object"!=typeof r.params&&(r.params={}),e&&"object"==typeof e.params)for(var u in e.params)!(u in r.params)&&s.indexOf(u)>-1&&(r.params[u]=e.params[u]);if(i)return r.path=G(i.path,r.params,'named route "'+o+'"'),a(i,r,n)}else if(r.path){r.params={};for(var l in c)if(D(l,r.params,r.path))return a(c[l],r,n)}return a(null,r)}function n(t,n){var i=t.redirect,s="function"==typeof i?i(u(t,n)):i;if("string"==typeof s&&(s={path:s}),!s||"object"!=typeof s)return o(!1,"invalid redirect option: "+JSON.stringify(s)),a(null,n);var c=s,l=c.name,p=c.path,h=n.query,d=n.hash,v=n.params;if(h=c.hasOwnProperty("query")?c.query:h,d=c.hasOwnProperty("hash")?c.hash:d,v=c.hasOwnProperty("params")?c.params:v,l){var m=f[l];return r(m,'redirect failed: named route "'+l+'" not found.'),e({_normalized:!0,name:l,query:h,hash:d,params:v},void 0,n)}if(p){var g=q(p,t),y=G(g,v,'redirect route with path "'+g+'"');return e({_normalized:!0,path:y,query:h,hash:d},void 0,n)}return o(!1,"invalid redirect option: "+JSON.stringify(s)),a(null,n)}function i(t,n,r){var o=G(r,n.params,'aliased route with path "'+r+'"'),i=e({_normalized:!0,path:o});if(i){var s=i.matched,u=s[s.length-1];return n.params=i.params,a(u,n)}return a(null,n)}function a(t,e,r){return t&&t.redirect?n(t,r||e):t&&t.matchAs?i(t,e,t.matchAs):u(t,e,r)}var s=L(t),c=s.pathMap,f=s.nameMap;return e}function N(t){var e,n,r=Ct[t];return r?(e=r.keys,n=r.regexp):(e=[],n=St(t,e),Ct[t]={keys:e,regexp:n}),{keys:e,regexp:n}}function D(t,e,n){var r=N(t),o=r.regexp,i=r.keys,a=n.match(o);if(!a)return!1;if(!e)return!0;for(var s=1,u=a.length;s<u;++s){var c=i[s-1],f="string"==typeof a[s]?decodeURIComponent(a[s]):a[s];c&&(e[c.name]=f)}return!0}function G(t,e,n){try{var o=It[t]||(It[t]=St.compile(t));return o(e||{},{pretty:!0})}catch(t){return r(!1,"missing param for "+n+": "+t.message),""}}function U(t){return Mt[t]||(Mt[t]=N(t).keys.map(function(t){return t.name}))}function q(e,n){return t(e,n.parent?n.parent.path:"/",!0)}function B(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],function(){r(o+1)}):r(o+1)};r(0)}function H(t){if(!t)if(kt){var e=document.querySelector("base");t=e?e.getAttribute("href"):"/"}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function K(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{activated:e.slice(n),deactivated:t.slice(n)}}function Q(t,e){return"function"!=typeof t&&(t=ht.extend(t)),t.options[e]}function z(t){return Y(Z(t,function(t,e){var n=Q(t,"beforeRouteLeave");if(n)return Array.isArray(n)?n.map(function(t){return V(t,e)}):V(n,e)}).reverse())}function V(t,e){return function(){return t.apply(e,arguments)}}function W(t,e,n){return Y(Z(t,function(t,r,o,i){var a=Q(t,"beforeRouteEnter");if(a)return Array.isArray(a)?a.map(function(t){return J(t,e,o,i,n)}):J(a,e,o,i,n)}))}function J(t,e,n,r,o){return function(i,a,s){return t(i,a,function(t){s(t),"function"==typeof t&&e.push(function(){X(t,n.instances,r,o)})})}}function X(t,e,n,r){e[n]?t(e[n]):r()&&setTimeout(function(){X(t,e,n,r)},16)}function $(t){return Z(t,function(t,e,n,r){if("function"==typeof t&&!t.options)return function(e,i,a){var s=function(t){n.components[r]=t,a()},u=function(t){o(!1,"Failed to resolve async component "+r+": "+t),a(!1)},c=t(s,u);c&&"function"==typeof c.then&&c.then(s,u)}})}function Z(t,e){return Y(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function Y(t){return Array.prototype.concat.apply([],t)}function tt(t){t&&(Pt[t]={x:window.pageXOffset,y:window.pageYOffset})}function et(t){if(t)return Pt[t]}function nt(t){var e=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{x:n.left-e.left,y:n.top-e.top}}function rt(t){return it(t.x)||it(t.y)}function ot(t){return{x:it(t.x)?t.x:window.pageXOffset,y:it(t.y)?t.y:window.pageYOffset}}function it(t){return"number"==typeof t}function at(t){var e=window.location.pathname;return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}function st(t,e){var n=window.history;try{e?n.replaceState({key:Nt},"",t):(Nt=Ft(),n.pushState({key:Nt},"",t)),tt(Nt)}catch(n){window.location[e?"assign":"replace"](t)}}function ut(t){st(t,!0)}function ct(){var t=ft();return"/"===t.charAt(0)||(pt("/"+t),!1)}function ft(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.slice(e+1)}function lt(t){window.location.hash=t}function pt(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)}var ht,dt={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var a=o.$route,s=o._routerViewCache||(o._routerViewCache={}),u=0,c=!1;o;)o.$vnode&&o.$vnode.data.routerView&&u++,o._inactive&&(c=!0),o=o.$parent;i.routerViewDepth=u;var f=a.matched[u];if(!f)return t();var l=n.name,p=c?s[l]:s[l]=f.components[l];if(!c){var h=i.hook||(i.hook={});h.init=function(t){f.instances[l]=t.child},h.prepatch=function(t,e){f.instances[l]=e.child},h.destroy=function(t){f.instances[l]===t.child&&(f.instances[l]=void 0)}}return t(p,i,r)}},vt=encodeURIComponent,mt=decodeURIComponent,gt=u(null,{path:"/"}),yt=/\/$/,_t=[String,Object],wt={name:"router-link",props:{to:{type:_t,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String},render:function(t){var e=this,n=this.$router,r=this.$route,o=v(this.to,r,this.append),i=n.match(o,r),a=i.redirectedFrom||i.fullPath,s=n.history.base,c=g(s,a,n.mode),f={},p=this.activeClass||n.options.linkActiveClass||"router-link-active",d=o.path?u(null,o):i;f[p]=this.exact?l(r,d):h(r,d);var y={click:function(t){if(!(t.metaKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||0!==t.button)){var r=t.target.getAttribute("target");/\b_blank\b/i.test(r)||(t.preventDefault(),e.replace?n.replace(o):n.push(o))}}},_={class:f};if("a"===this.tag)_.on=y,_.attrs={href:c};else{var w=m(this.$slots.default);if(w){w.isStatic=!1;var b=ht.util.extend,x=w.data=b({},w.data);x.on=y;var S=w.data.attrs=b({},w.data.attrs);S.href=c}else _.on=y}return t(this.tag,_,this.$slots.default)}},bt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},xt=bt,St=k,Tt=_,Et=w,At=S,Rt=I,Ot=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");St.parse=Tt,St.compile=Et,St.tokensToFunction=At,St.tokensToRegExp=Rt;var Ct=Object.create(null),Mt=Object.create(null),It=Object.create(null),kt="undefined"!=typeof window,Lt=kt&&function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)}(),jt=function(t,e){this.router=t,this.base=H(e),this.current=gt,this.pending=null};jt.prototype.listen=function(t){this.cb=t},jt.prototype.transitionTo=function(t,e){var n=this,r=this.router.match(t,this.current);this.confirmTransition(r,function(){n.updateRoute(r),e&&e(r),n.ensureURL()})},jt.prototype.confirmTransition=function(t,e){var n=this,r=this.current;if(l(t,r))return void this.ensureURL();var o=K(this.current.matched,t.matched),i=o.deactivated,a=o.activated,s=[].concat(z(i),this.router.beforeHooks,a.map(function(t){return t.beforeEnter}),$(a));this.pending=t;var u=function(e,o){n.pending===t&&e(t,r,function(t){t===!1?n.ensureURL(!0):"string"==typeof t||"object"==typeof t?n.push(t):o(t)})};B(s,u,function(){var r=[],o=W(a,r,function(){return n.current===t});B(o,u,function(){n.pending===t&&(n.pending=null,e(t),n.router.app.$nextTick(function(){r.forEach(function(t){return t()})}))})})},jt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var Pt=Object.create(null),Ft=function(){return String(Date.now())},Nt=Ft(),Dt=function(t){function e(e,n){var r=this;t.call(this,e,n);var o=e.options.scrollBehavior;window.addEventListener("popstate",function(t){Nt=t.state&&t.state.key;var e=r.current;r.transitionTo(at(r.base),function(t){o&&r.handleScroll(t,e,!0)})}),o&&window.addEventListener("scroll",function(){tt(Nt)})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t){var e=this,r=this.current;this.transitionTo(t,function(t){st(n(e.base+t.fullPath)),e.handleScroll(t,r,!1)})},e.prototype.replace=function(t){var e=this,r=this.current;this.transitionTo(t,function(t){ut(n(e.base+t.fullPath)),e.handleScroll(t,r,!1)})},e.prototype.ensureURL=function(t){if(at(this.base)!==this.current.fullPath){var e=n(this.base+this.current.fullPath);t?st(e):ut(e)}},e.prototype.handleScroll=function(t,e,n){var o=this.router;if(o.app){var i=o.options.scrollBehavior;i&&(r("function"==typeof i,"scrollBehavior must be a function"),o.app.$nextTick(function(){var r=et(Nt),o=i(t,e,n?r:null);if(o){var a="object"==typeof o;if(a&&"string"==typeof o.selector){var s=document.querySelector(o.selector);s?r=nt(s):rt(o)&&(r=ot(o))}else a&&rt(o)&&(r=ot(o));r&&window.scrollTo(r.x,r.y)}}))}},e}(jt),Gt=function(t){function e(e,n,r){t.call(this,e,n),r&&this.checkFallback()||ct()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.checkFallback=function(){var t=at(this.base);if(!/^\/#/.test(t))return window.location.replace(n(this.base+"/#"+t)),!0},e.prototype.onHashChange=function(){ct()&&this.transitionTo(ft(),function(t){pt(t.fullPath)})},e.prototype.push=function(t){this.transitionTo(t,function(t){lt(t.fullPath)})},e.prototype.replace=function(t){this.transitionTo(t,function(t){pt(t.fullPath)})},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ft()!==e&&(t?lt(e):pt(e))},e}(jt),Ut=function(t){function e(e){t.call(this,e),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t){var e=this;this.transitionTo(t,function(t){e.stack=e.stack.slice(0,e.index+1).concat(t),e.index++})},e.prototype.replace=function(t){var e=this;this.transitionTo(t,function(t){e.stack=e.stack.slice(0,e.index).concat(t)})},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.ensureURL=function(){},e}(jt),qt=function(t){void 0===t&&(t={}),this.app=null,this.options=t,this.beforeHooks=[],this.afterHooks=[],this.match=F(t.routes||[]);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Lt,this.fallback&&(e="hash"),kt||(e="abstract"),this.mode=e,e){case"history":this.history=new Dt(this,t.base);break;case"hash":this.history=new Gt(this,t.base,this.fallback);break;case"abstract":this.history=new Ut(this);break;default:r(!1,"invalid mode: "+e)}},Bt={currentRoute:{}};return Bt.currentRoute.get=function(){return this.history&&this.history.current},qt.prototype.init=function(t){var e=this;r(y.installed,"not installed. Make sure to call `Vue.use(VueRouter)` before creating root instance."),this.app=t;var n=this.history;n instanceof Dt?n.transitionTo(at(n.base)):n instanceof Gt&&n.transitionTo(ft(),function(){window.addEventListener("hashchange",function(){n.onHashChange()})}),n.listen(function(t){e.app._route=t})},qt.prototype.beforeEach=function(t){this.beforeHooks.push(t)},qt.prototype.afterEach=function(t){this.afterHooks.push(t)},qt.prototype.push=function(t){this.history.push(t)},qt.prototype.replace=function(t){this.history.replace(t)},qt.prototype.go=function(t){this.history.go(t)},qt.prototype.back=function(){this.go(-1)},qt.prototype.forward=function(){this.go(1)},qt.prototype.getMatchedComponents=function(){return this.currentRoute?[].concat.apply([],this.currentRoute.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Object.defineProperties(qt.prototype,Bt),qt.install=y,kt&&window.Vue&&window.Vue.use(qt),qt})}]); |