phpvms/public/assets/installer/js/app.js
2020-09-04 13:28:17 -04:00

2 lines
47 KiB
JavaScript

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=1)}({1:function(t,e,n){t.exports=n("BXz3")},"21It":function(t,e,n){"use strict";var r=n("FtD3");t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"3IRH":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"5VQ+":function(t,e,n){"use strict";var r=n("cGG2");t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},"6xsC":function(t,e,n){(function(t){var r,i;(function(){var o,s,a,u,c,h=function(t,e){return function(){return t.apply(e,arguments)}},l=[].slice,f={}.hasOwnProperty,p=function(t,e){for(var n in e)f.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},d=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1};o={options:["prefix","templateDelimiters","rootInterface","preloadData","handler","executeFunctions"],extensions:["binders","formatters","components","adapters"],public:{binders:{},components:{},formatters:{},adapters:{},prefix:"rv",templateDelimiters:["{","}"],rootInterface:".",preloadData:!0,executeFunctions:!1,iterationAlias:function(t){return"%"+t+"%"},handler:function(t,e,n){return this.call(t,e,n.view.models)},configure:function(t){var e,n,r,i;for(r in null==t&&(t={}),t)if(i=t[r],"binders"===r||"components"===r||"formatters"===r||"adapters"===r)for(n in i)e=i[n],o[r][n]=e;else o.public[r]=i},bind:function(t,e,n){var r;return null==e&&(e={}),null==n&&(n={}),(r=new o.View(t,e,n)).bind(),r},init:function(t,e,n){var r,i,s;if(null==n&&(n={}),null==e&&(e=document.createElement("div")),(i=(t=o.public.components[t]).template.call(this,e))instanceof HTMLElement){for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(i)}else e.innerHTML=i;return r=t.initialize.call(this,e,n),(s=new o.View(e,r)).bind(),s}}},window.jQuery||window.$?(c="on"in(a=window.jQuery||window.$).prototype?["on","off"]:["bind","unbind"],s=c[0],u=c[1],o.Util={bindEvent:function(t,e,n){return a(t)[s](e,n)},unbindEvent:function(t,e,n){return a(t)[u](e,n)},getInputValue:function(t){var e;return"checkbox"===(e=a(t)).attr("type")?e.is(":checked"):e.val()}}):o.Util={bindEvent:"addEventListener"in window?function(t,e,n){return t.addEventListener(e,n,!1)}:function(t,e,n){return t.attachEvent("on"+e,n)},unbindEvent:"removeEventListener"in window?function(t,e,n){return t.removeEventListener(e,n,!1)}:function(t,e,n){return t.detachEvent("on"+e,n)},getInputValue:function(t){var e,n,r,i;if("checkbox"===t.type)return t.checked;if("select-multiple"===t.type){for(i=[],n=0,r=t.length;n<r;n++)(e=t[n]).selected&&i.push(e.value);return i}return t.value}},o.TypeParser=function(){function t(){}return t.types={primitive:0,keypath:1},t.parse=function(t){return/^'.*'$|^".*"$/.test(t)?{type:this.types.primitive,value:t.slice(1,-1)}:"true"===t?{type:this.types.primitive,value:!0}:"false"===t?{type:this.types.primitive,value:!1}:"null"===t?{type:this.types.primitive,value:null}:"undefined"===t?{type:this.types.primitive,value:void 0}:""===t?{type:this.types.primitive,value:void 0}:!1===isNaN(Number(t))?{type:this.types.primitive,value:Number(t)}:{type:this.types.keypath,value:t}},t}(),o.TextTemplateParser=function(){function t(){}return t.types={text:0,binding:1},t.parse=function(t,e){var n,r,i,o,s,a,u;for(a=[],o=t.length,n=0,r=0;r<o;){if((n=t.indexOf(e[0],r))<0){a.push({type:this.types.text,value:t.slice(r)});break}if(n>0&&r<n&&a.push({type:this.types.text,value:t.slice(r,n)}),r=n+e[0].length,(n=t.indexOf(e[1],r))<0){s=t.slice(r-e[1].length),(null!=(i=a[a.length-1])?i.type:void 0)===this.types.text?i.value+=s:a.push({type:this.types.text,value:s});break}u=t.slice(r,n).trim(),a.push({type:this.types.binding,value:u}),r=n+e[1].length}return a},t}(),o.View=function(){function t(t,e,n){var r,i,s,a,u,c,l,f,p,d,v,y,b;for(this.els=t,this.models=e,null==n&&(n={}),this.update=h(this.update,this),this.publish=h(this.publish,this),this.sync=h(this.sync,this),this.unbind=h(this.unbind,this),this.bind=h(this.bind,this),this.select=h(this.select,this),this.traverse=h(this.traverse,this),this.build=h(this.build,this),this.buildBinding=h(this.buildBinding,this),this.bindingRegExp=h(this.bindingRegExp,this),this.options=h(this.options,this),this.els.jquery||this.els instanceof Array||(this.els=[this.els]),u=0,l=(p=o.extensions).length;u<l;u++){if(this[i=p[u]]={},n[i])for(r in d=n[i])s=d[r],this[i][r]=s;for(r in v=o.public[i])s=v[r],null==(a=this[i])[r]&&(a[r]=s)}for(c=0,f=(y=o.options).length;c<f;c++)this[i=y[c]]=null!=(b=n[i])?b:o.public[i];this.build()}return t.prototype.options=function(){var t,e,n,r,i;for(e={},n=0,r=(i=o.extensions.concat(o.options)).length;n<r;n++)e[t=i[n]]=this[t];return e},t.prototype.bindingRegExp=function(){return new RegExp("^"+this.prefix+"-")},t.prototype.buildBinding=function(t,e,n,r){var i,s,a,u,c,h,l;return c={},l=function(){var t,e,n,i;for(i=[],t=0,e=(n=r.match(/((?:'[^']*')*(?:(?:[^\|']*(?:'[^']*')+[^\|']*)+|[^\|]+))|^$/g)).length;t<e;t++)h=n[t],i.push(h.trim());return i}(),u=(i=function(){var t,e,n,r;for(r=[],t=0,e=(n=l.shift().split("<")).length;t<e;t++)s=n[t],r.push(s.trim());return r}()).shift(),c.formatters=l,(a=i.shift())&&(c.dependencies=a.split(/\s+/)),this.bindings.push(new o[t](this,e,n,u,c))},t.prototype.build=function(){var t,e,n,r,i,s;for(this.bindings=[],s=this,e=function(t){var n,r,i,a,u,c,h,l,f,p,d,v,y;if(3===t.nodeType){if(u=o.TextTemplateParser,(i=s.templateDelimiters)&&(l=u.parse(t.data,i)).length&&(1!==l.length||l[0].type!==u.types.text)){for(f=0,d=l.length;f<d;f++)h=l[f],c=document.createTextNode(h.value),t.parentNode.insertBefore(c,t),1===h.type&&s.buildBinding("TextBinding",c,null,h.value);t.parentNode.removeChild(t)}}else 1===t.nodeType&&(n=s.traverse(t));if(!n)for(y=function(){var e,n,r,i;for(i=[],e=0,n=(r=t.childNodes).length;e<n;e++)a=r[e],i.push(a);return i}(),p=0,v=y.length;p<v;p++)r=y[p],e(r)},n=0,r=(i=this.els).length;n<r;n++)t=i[n],e(t);this.bindings.sort(function(t,e){var n,r;return((null!=(n=e.binder)?n.priority:void 0)||0)-((null!=(r=t.binder)?r.priority:void 0)||0)})},t.prototype.traverse=function(t){var e,n,r,i,s,a,u,c,h,l,f,p,d,v,y;for(i=this.bindingRegExp(),s="SCRIPT"===t.nodeName||"STYLE"===t.nodeName,h=0,f=(d=t.attributes).length;h<f;h++)if(e=d[h],i.test(e.name)){if(u=e.name.replace(i,""),!(r=this.binders[u]))for(a in v=this.binders)c=v[a],"*"!==a&&-1!==a.indexOf("*")&&new RegExp("^"+a.replace(/\*/g,".+")+"$").test(u)&&(r=c);r||(r=this.binders["*"]),r.block&&(s=!0,n=[e])}for(l=0,p=(y=n||t.attributes).length;l<p;l++)e=y[l],i.test(e.name)&&(u=e.name.replace(i,""),this.buildBinding("Binding",t,u,e.value));return s||(u=t.nodeName.toLowerCase(),this.components[u]&&!t._bound&&(this.bindings.push(new o.ComponentBinding(this,t,u)),s=!0)),s},t.prototype.select=function(t){var e,n,r,i,o;for(o=[],n=0,r=(i=this.bindings).length;n<r;n++)t(e=i[n])&&o.push(e);return o},t.prototype.bind=function(){var t,e,n;for(t=0,e=(n=this.bindings).length;t<e;t++)n[t].bind()},t.prototype.unbind=function(){var t,e,n;for(t=0,e=(n=this.bindings).length;t<e;t++)n[t].unbind()},t.prototype.sync=function(){var t,e,n,r;for(e=0,n=(r=this.bindings).length;e<n;e++)"function"==typeof(t=r[e]).sync&&t.sync()},t.prototype.publish=function(){var t,e,n;for(t=0,e=(n=this.select(function(t){var e;return null!=(e=t.binder)?e.publishes:void 0})).length;t<e;t++)n[t].publish()},t.prototype.update=function(t){var e,n,r,i,o,s;for(n in null==t&&(t={}),t)r=t[n],this.models[n]=r;for(i=0,o=(s=this.bindings).length;i<o;i++)"function"==typeof(e=s[i]).update&&e.update(t)},t}(),o.Binding=function(){function t(t,e,n,r,i){this.view=t,this.el=e,this.type=n,this.keypath=r,this.options=null!=i?i:{},this.getValue=h(this.getValue,this),this.update=h(this.update,this),this.unbind=h(this.unbind,this),this.bind=h(this.bind,this),this.publish=h(this.publish,this),this.sync=h(this.sync,this),this.set=h(this.set,this),this.eventHandler=h(this.eventHandler,this),this.formattedValue=h(this.formattedValue,this),this.parseFormatterArguments=h(this.parseFormatterArguments,this),this.parseTarget=h(this.parseTarget,this),this.observe=h(this.observe,this),this.setBinder=h(this.setBinder,this),this.formatters=this.options.formatters||[],this.dependencies=[],this.formatterObservers={},this.model=void 0,this.setBinder()}return t.prototype.setBinder=function(){var t,e,n;if(!(this.binder=this.view.binders[this.type]))for(t in n=this.view.binders)e=n[t],"*"!==t&&-1!==t.indexOf("*")&&new RegExp("^"+t.replace(/\*/g,".+")+"$").test(this.type)&&(this.binder=e,this.args=new RegExp("^"+t.replace(/\*/g,"(.+)")+"$").exec(this.type),this.args.shift());if(this.binder||(this.binder=this.view.binders["*"]),this.binder instanceof Function)return this.binder={routine:this.binder}},t.prototype.observe=function(t,e,n){return o.sightglass(t,e,n,{root:this.view.rootInterface,adapters:this.view.adapters})},t.prototype.parseTarget=function(){var t;return(t=o.TypeParser.parse(this.keypath)).type===o.TypeParser.types.primitive?this.value=t.value:(this.observer=this.observe(this.view.models,this.keypath,this.sync),this.model=this.observer.target)},t.prototype.parseFormatterArguments=function(t,e){var n,r,i,s,a,u,c;for(t=function(){var e,n,i;for(i=[],e=0,n=t.length;e<n;e++)r=t[e],i.push(o.TypeParser.parse(r));return i}(),s=[],n=u=0,c=t.length;u<c;n=++u)r=t[n],s.push(r.type===o.TypeParser.types.primitive?r.value:((a=this.formatterObservers)[e]||(a[e]={}),(i=this.formatterObservers[e][n])||(i=this.observe(this.view.models,r.value,this.sync),this.formatterObservers[e][n]=i),i.value()));return s},t.prototype.formattedValue=function(t){var e,n,r,i,o,s,a,u,c;for(n=s=0,a=(u=this.formatters).length;s<a;n=++s)i=(e=(r=u[n]).match(/[^\s']+|'([^']|'[^\s])*'|"([^"]|"[^\s])*"/g)).shift(),r=this.view.formatters[i],o=this.parseFormatterArguments(e,n),(null!=r?r.read:void 0)instanceof Function?t=(c=r.read).call.apply(c,[this.model,t].concat(l.call(o))):r instanceof Function&&(t=r.call.apply(r,[this.model,t].concat(l.call(o))));return t},t.prototype.eventHandler=function(t){var e,n;return n=(e=this).view.handler,function(r){return n.call(t,this,r,e)}},t.prototype.set=function(t){var e;return t=t instanceof Function&&!this.binder.function&&o.public.executeFunctions?this.formattedValue(t.call(this.model)):this.formattedValue(t),null!=(e=this.binder.routine)?e.call(this,this.el,t):void 0},t.prototype.sync=function(){var t,e;return this.set(function(){var n,r,i,o,s,a,u;if(this.observer){if(this.model!==this.observer.target){for(n=0,i=(s=this.dependencies).length;n<i;n++)(e=s[n]).unobserve();if(this.dependencies=[],null!=(this.model=this.observer.target)&&(null!=(a=this.options.dependencies)?a.length:void 0))for(r=0,o=(u=this.options.dependencies).length;r<o;r++)t=u[r],e=this.observe(this.model,t,this.sync),this.dependencies.push(e)}return this.observer.value()}return this.value}.call(this))},t.prototype.publish=function(){var t,e,n,r,i,o,s,a,u,c,h,f;if(this.observer){for(s=this.getValue(this.el),i=this.formatters.length-1,n=a=0,u=(c=this.formatters.slice(0).reverse()).length;a<u;n=++a)e=i-n,r=(t=c[n].split(/\s+/)).shift(),o=this.parseFormatterArguments(t,e),(null!=(h=this.view.formatters[r])?h.publish:void 0)&&(s=(f=this.view.formatters[r]).publish.apply(f,[s].concat(l.call(o))));return this.observer.setValue(s)}},t.prototype.bind=function(){var t,e,n,r,i,o,s;if(this.parseTarget(),null!=(i=this.binder.bind)&&i.call(this,this.el),null!=this.model&&(null!=(o=this.options.dependencies)?o.length:void 0))for(n=0,r=(s=this.options.dependencies).length;n<r;n++)t=s[n],e=this.observe(this.model,t,this.sync),this.dependencies.push(e);if(this.view.preloadData)return this.sync()},t.prototype.unbind=function(){var t,e,n,r,i,o,s,a,u;for(null!=(o=this.binder.unbind)&&o.call(this,this.el),null!=(s=this.observer)&&s.unobserve(),r=0,i=(a=this.dependencies).length;r<i;r++)a[r].unobserve();for(n in this.dependencies=[],u=this.formatterObservers)for(t in e=u[n])e[t].unobserve();return this.formatterObservers={}},t.prototype.update=function(t){var e,n;return null==t&&(t={}),this.model=null!=(e=this.observer)?e.target:void 0,null!=(n=this.binder.update)?n.call(this,t):void 0},t.prototype.getValue=function(t){return this.binder&&null!=this.binder.getValue?this.binder.getValue.call(this,t):o.Util.getInputValue(t)},t}(),o.ComponentBinding=function(t){function e(t,e,n){var r,i,s,a,u,c,l,f;for(this.view=t,this.el=e,this.type=n,this.unbind=h(this.unbind,this),this.bind=h(this.bind,this),this.locals=h(this.locals,this),this.component=this.view.components[this.type],this.static={},this.observers={},this.upstreamObservers={},i=t.bindingRegExp(),u=0,c=(l=this.el.attributes||[]).length;u<c;u++)r=l[u],i.test(r.name)||(s=this.camelCase(r.name),a=o.TypeParser.parse(r.value),d.call(null!=(f=this.component.static)?f:[],s)>=0?this.static[s]=r.value:a.type===o.TypeParser.types.primitive?this.static[s]=a.value:this.observers[s]=r.value)}return p(e,t),e.prototype.sync=function(){},e.prototype.update=function(){},e.prototype.publish=function(){},e.prototype.locals=function(){var t,e,n,r,i,o;for(t in n={},i=this.static)r=i[t],n[t]=r;for(t in o=this.observers)e=o[t],n[t]=e.value();return n},e.prototype.camelCase=function(t){return t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})},e.prototype.bind=function(){var t,e,n,r,i,s,a,u,c,h,l,f,p,d,v,y,b,m,g,w;if(!this.bound){for(e in d=this.observers)n=d[e],this.observers[e]=this.observe(this.view.models,n,function(t){return function(e){return function(){return t.componentView.models[e]=t.observers[e].value()}}}(this).call(this,e));this.bound=!0}if(null!=this.componentView)this.componentView.bind();else{for(this.el.innerHTML=this.component.template.call(this),a=this.component.initialize.call(this,this.el,this.locals()),this.el._bound=!0,s={},h=0,f=(v=o.extensions).length;h<f;h++){if(s[i=v[h]]={},this.component[i])for(t in y=this.component[i])u=y[t],s[i][t]=u;for(t in b=this.view[i])u=b[t],null==(c=s[i])[t]&&(c[t]=u)}for(l=0,p=(m=o.options).length;l<p;l++)s[i=m[l]]=null!=(g=this.component[i])?g:this.view[i];for(e in this.componentView=new o.View(Array.prototype.slice.call(this.el.childNodes),a,s),this.componentView.bind(),w=this.observers)r=w[e],this.upstreamObservers[e]=this.observe(this.componentView.models,e,function(t){return function(e,n){return function(){return n.setValue(t.componentView.models[e])}}}(this).call(this,e,r))}},e.prototype.unbind=function(){var t,e,n,r;for(t in e=this.upstreamObservers)e[t].unobserve();for(t in n=this.observers)n[t].unobserve();return null!=(r=this.componentView)?r.unbind.call(this):void 0},e}(o.Binding),o.TextBinding=function(t){function e(t,e,n,r,i){this.view=t,this.el=e,this.type=n,this.keypath=r,this.options=null!=i?i:{},this.sync=h(this.sync,this),this.formatters=this.options.formatters||[],this.dependencies=[],this.formatterObservers={}}return p(e,t),e.prototype.binder={routine:function(t,e){return t.data=null!=e?e:""}},e.prototype.sync=function(){return e.__super__.sync.apply(this,arguments)},e}(o.Binding),o.public.binders.text=function(t,e){return null!=t.textContent?t.textContent=null!=e?e:"":t.innerText=null!=e?e:""},o.public.binders.html=function(t,e){return t.innerHTML=null!=e?e:""},o.public.binders.show=function(t,e){return t.style.display=e?"":"none"},o.public.binders.hide=function(t,e){return t.style.display=e?"none":""},o.public.binders.enabled=function(t,e){return t.disabled=!e},o.public.binders.disabled=function(t,e){return t.disabled=!!e},o.public.binders.checked={publishes:!0,priority:2e3,bind:function(t){return o.Util.bindEvent(t,"change",this.publish)},unbind:function(t){return o.Util.unbindEvent(t,"change",this.publish)},routine:function(t,e){var n;return"radio"===t.type?t.checked=(null!=(n=t.value)?n.toString():void 0)===(null!=e?e.toString():void 0):t.checked=!!e}},o.public.binders.unchecked={publishes:!0,priority:2e3,bind:function(t){return o.Util.bindEvent(t,"change",this.publish)},unbind:function(t){return o.Util.unbindEvent(t,"change",this.publish)},routine:function(t,e){var n;return"radio"===t.type?t.checked=(null!=(n=t.value)?n.toString():void 0)!==(null!=e?e.toString():void 0):t.checked=!e}},o.public.binders.value={publishes:!0,priority:3e3,bind:function(t){if("INPUT"!==t.tagName||"radio"!==t.type)return this.event="SELECT"===t.tagName?"change":"input",o.Util.bindEvent(t,this.event,this.publish)},unbind:function(t){if("INPUT"!==t.tagName||"radio"!==t.type)return o.Util.unbindEvent(t,this.event,this.publish)},routine:function(t,e){var n,r,i,o,s,u,c;if("INPUT"===t.tagName&&"radio"===t.type)return t.setAttribute("value",e);if(null!=window.jQuery){if(t=a(t),(null!=e?e.toString():void 0)!==(null!=(o=t.val())?o.toString():void 0))return t.val(null!=e?e:"")}else if("select-multiple"===t.type){if(null!=e){for(c=[],r=0,i=t.length;r<i;r++)n=t[r],c.push(n.selected=(s=n.value,d.call(e,s)>=0));return c}}else if((null!=e?e.toString():void 0)!==(null!=(u=t.value)?u.toString():void 0))return t.value=null!=e?e:""}},o.public.binders.if={block:!0,priority:4e3,bind:function(t){var e,n;if(null==this.marker)return e=[this.view.prefix,this.type].join("-").replace("--","-"),n=t.getAttribute(e),this.marker=document.createComment(" rivets: "+this.type+" "+n+" "),this.bound=!1,t.removeAttribute(e),t.parentNode.insertBefore(this.marker,t),t.parentNode.removeChild(t)},unbind:function(){if(this.nested)return this.nested.unbind(),this.bound=!1},routine:function(t,e){var n,r,i,s;if(!!e==!this.bound){if(e){for(n in i={},s=this.view.models)r=s[n],i[n]=r;return(this.nested||(this.nested=new o.View(t,i,this.view.options()))).bind(),this.marker.parentNode.insertBefore(t,this.marker.nextSibling),this.bound=!0}return t.parentNode.removeChild(t),this.nested.unbind(),this.bound=!1}},update:function(t){var e;return null!=(e=this.nested)?e.update(t):void 0}},o.public.binders.unless={block:!0,priority:4e3,bind:function(t){return o.public.binders.if.bind.call(this,t)},unbind:function(){return o.public.binders.if.unbind.call(this)},routine:function(t,e){return o.public.binders.if.routine.call(this,t,!e)},update:function(t){return o.public.binders.if.update.call(this,t)}},o.public.binders["on-*"]={function:!0,priority:1e3,unbind:function(t){if(this.handler)return o.Util.unbindEvent(t,this.args[0],this.handler)},routine:function(t,e){return this.handler&&o.Util.unbindEvent(t,this.args[0],this.handler),o.Util.bindEvent(t,this.args[0],this.handler=this.eventHandler(e))}},o.public.binders["each-*"]={block:!0,priority:4e3,bind:function(t){var e,n,r,i;if(null==this.marker)e=[this.view.prefix,this.type].join("-").replace("--","-"),this.marker=document.createComment(" rivets: "+this.type+" "),this.iterated=[],t.removeAttribute(e),t.parentNode.insertBefore(this.marker,t),t.parentNode.removeChild(t);else for(n=0,r=(i=this.iterated).length;n<r;n++)i[n].bind()},unbind:function(t){var e,n,r;if(null!=this.iterated)for(e=0,n=(r=this.iterated).length;e<n;e++)r[e].unbind()},routine:function(t,e){var n,r,i,s,a,u,c,h,l,f,p,d,v,y,b,m,g,w,x;if(u=this.args[0],e=e||[],this.iterated.length>e.length)for(p=0,y=(g=Array(this.iterated.length-e.length)).length;p<y;p++)g[p],(f=this.iterated.pop()).unbind(),this.marker.parentNode.removeChild(f.els[0]);for(i=d=0,b=e.length;d<b;i=++d)if(a=e[i],(r={index:i})[o.public.iterationAlias(u)]=i,r[u]=a,null==this.iterated[i]){for(s in w=this.view.models)a=w[s],null==r[s]&&(r[s]=a);h=this.iterated.length?this.iterated[this.iterated.length-1].els[0]:this.marker,(c=this.view.options()).preloadData=!0,l=t.cloneNode(!0),(f=new o.View(l,r,c)).bind(),this.iterated.push(f),this.marker.parentNode.insertBefore(l,h.nextSibling)}else this.iterated[i].models[u]!==a&&this.iterated[i].update(r);if("OPTION"===t.nodeName)for(v=0,m=(x=this.view.bindings).length;v<m;v++)(n=x[v]).el===this.marker.parentNode&&"value"===n.type&&n.sync()},update:function(t){var e,n,r,i,o,s;for(n in e={},t)r=t[n],n!==this.args[0]&&(e[n]=r);for(i=0,o=(s=this.iterated).length;i<o;i++)s[i].update(e)}},o.public.binders["class-*"]=function(t,e){var n;if(!e==(-1!==(n=" "+t.className+" ").indexOf(" "+this.args[0]+" ")))return t.className=e?t.className+" "+this.args[0]:n.replace(" "+this.args[0]+" "," ").trim()},o.public.binders["*"]=function(t,e){return null!=e?t.setAttribute(this.type,e):t.removeAttribute(this.type)},o.public.formatters.call=function(){var t,e;return e=arguments[0],t=2<=arguments.length?l.call(arguments,1):[],e.call.apply(e,[this].concat(l.call(t)))},o.public.adapters["."]={id:"_rv",counter:0,weakmap:{},weakReference:function(t){var e,n,r;return t.hasOwnProperty(this.id)||(e=this.counter++,Object.defineProperty(t,this.id,{value:e})),(n=this.weakmap)[r=t[this.id]]||(n[r]={callbacks:{}})},cleanupWeakReference:function(t,e){if(!(Object.keys(t.callbacks).length||t.pointers&&Object.keys(t.pointers).length))return delete this.weakmap[e]},stubFunction:function(t,e){var n,r,i;return r=t[e],n=this.weakReference(t),i=this.weakmap,t[e]=function(){var e,o,s,a,u,c,h,l,f;for(o in s=r.apply(t,arguments),c=n.pointers)for(e=c[o],a=0,u=(f=null!=(h=null!=(l=i[o])?l.callbacks[e]:void 0)?h:[]).length;a<u;a++)(0,f[a])();return s}},observeMutations:function(t,e,n){var r,i,o,s,a,u;if(Array.isArray(t)){if(null==(o=this.weakReference(t)).pointers)for(o.pointers={},a=0,u=(i=["push","pop","shift","unshift","sort","reverse","splice"]).length;a<u;a++)r=i[a],this.stubFunction(t,r);if(null==(s=o.pointers)[e]&&(s[e]=[]),d.call(o.pointers[e],n)<0)return o.pointers[e].push(n)}},unobserveMutations:function(t,e,n){var r,i,o;if(Array.isArray(t)&&null!=t[this.id]&&(i=this.weakmap[t[this.id]])&&(o=i.pointers[e]))return(r=o.indexOf(n))>=0&&o.splice(r,1),o.length||delete i.pointers[e],this.cleanupWeakReference(i,t[this.id])},observe:function(t,e,n){var r,i,o,s;return null==(r=this.weakReference(t).callbacks)[e]&&(r[e]=[],(null!=(i=Object.getOwnPropertyDescriptor(t,e))?i.get:void 0)||(null!=i?i.set:void 0)||(o=t[e],Object.defineProperty(t,e,{enumerable:!0,get:function(){return o},set:(s=this,function(n){var i,a,u,c,h;if(n!==o&&(s.unobserveMutations(o,t[s.id],e),o=n,a=s.weakmap[t[s.id]])){if((r=a.callbacks)[e])for(u=0,c=(h=r[e].slice()).length;u<c;u++)i=h[u],d.call(r[e],i)>=0&&i();return s.observeMutations(n,t[s.id],e)}})}))),d.call(r[e],n)<0&&r[e].push(n),this.observeMutations(t[e],t[this.id],e)},unobserve:function(t,e,n){var r,i,o;if((o=this.weakmap[t[this.id]])&&(r=o.callbacks[e]))return(i=r.indexOf(n))>=0&&(r.splice(i,1),r.length||(delete o.callbacks[e],this.unobserveMutations(t[e],t[this.id],e))),this.cleanupWeakReference(o,t[this.id])},get:function(t,e){return t[e]},set:function(t,e,n){return t[e]=n}},o.factory=function(t){return o.sightglass=t,o.public._=o,o.public},"object"==typeof(void 0!==t&&null!==t?t.exports:void 0)?t.exports=o.factory(n("lgU6")):(r=[n("lgU6")],void 0===(i=function(t){return this.rivets=o.factory(t)}.apply(e,r))||(t.exports=i))}).call(this)}).call(e,n("3IRH")(t))},"7GwW":function(t,e,n){"use strict";var r=n("cGG2"),i=n("21It"),o=n("DQCr"),s=n("oJlt"),a=n("GHBc"),u=n("FtD3");t.exports=function(t){return new Promise(function(e,c){var h=t.data,l=t.headers;r.isFormData(h)&&delete l["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",d=t.auth.password||"";l.Authorization="Basic "+btoa(p+":"+d)}if(f.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};i(e,c,r),f=null}},f.onerror=function(){c(u("Network Error",t,null,f)),f=null},f.ontimeout=function(){c(u("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=n("p1b6"),y=(t.withCredentials||a(t.url))&&t.xsrfCookieName?v.read(t.xsrfCookieName):void 0;y&&(l[t.xsrfHeaderName]=y)}if("setRequestHeader"in f&&r.forEach(l,function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete l[e]:f.setRequestHeader(e,t)}),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){f&&(f.abort(),c(t),f=null)}),void 0===h&&(h=null),f.send(h)})}},BXz3:function(t,e,n){n("Dlg+")},DQCr:function(t,e,n){"use strict";var r=n("cGG2");function i(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,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var s=[];r.forEach(e,function(t,e){null!==t&&void 0!==t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))}))}),o=s.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},"Dlg+":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var i=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=e;var r=window.localStorage.getItem(this.name);r?(console.log("Found in storage: ",r),this.data=JSON.parse(r)):(console.log("Nothing found in storage, starting from default"),this.data=n)}return r(t,[{key:"save",value:function(){window.localStorage.setItem(this.name,JSON.stringify(this.data))}},{key:"getList",value:function(t){return t in this.data?this.data[t]:[]}},{key:"addToList",value:function(t,e){t in this.data||(this.data[t]=[]),-1===this.data[t].indexOf(e)&&this.data[t].push(e)}},{key:"removeFromList",value:function(t,e){if(t in this.data){var n=this.data[t].indexOf(e);-1!==n&&this.data[t].splice(n,1)}}}]),t}(),o=n("f1ec"),s=n("gl4M");window.axios=n("mtWM"),window.phpvms={config:o.a,request:s.a,Storage:i},n("X9Uq")},FtD3:function(t,e,n){"use strict";var r=n("t8qj");t.exports=function(t,e,n,i,o){var s=new Error(t);return r(s,e,n,i,o)}},GHBc:function(t,e,n){"use strict";var r=n("cGG2");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},"JP+z":function(t,e,n){"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)}}},KCLY:function(t,e,n){"use strict";(function(e){var r=n("cGG2"),i=n("5VQ+"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,u={adapter:("undefined"!=typeof XMLHttpRequest?a=n("7GwW"):void 0!==e&&(a=n("7GwW")),a),transformRequest:[function(t,e){return i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){u.headers[t]={}}),r.forEach(["post","put","patch"],function(t){u.headers[t]=r.merge(o)}),t.exports=u}).call(e,n("W2nU"))},Re3r:function(t,e){t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},SldL:function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"==typeof t,h=e.regeneratorRuntime;if(h)c&&(t.exports=h);else{(h=e.regeneratorRuntime=c?t.exports:{}).wrap=w;var l="suspendedStart",f="suspendedYield",p="executing",d="completed",v={},y={};y[s]=function(){return this};var b=Object.getPrototypeOf,m=b&&b(b(C([])));m&&m!==r&&i.call(m,s)&&(y=m);var g=T.prototype=k.prototype=Object.create(y);E.prototype=g.constructor=T,T.constructor=E,T[u]=E.displayName="GeneratorFunction",h.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},h.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,T):(t.__proto__=T,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(g),t},h.awrap=function(t){return{__await:t}},O(L.prototype),L.prototype[a]=function(){return this},h.AsyncIterator=L,h.async=function(t,e,n,r){var i=new L(w(t,e,n,r));return h.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},O(g),g[u]="Generator",g[s]=function(){return this},g.toString=function(){return"[object Generator]"},h.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}},h.values=C,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return a.type="throw",a.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var u=i.call(s,"catchLoc"),c=i.call(s,"finallyLoc");if(u&&c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.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&&i.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 s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},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),P(n),v}},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 i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(t,e,n,r){var i=e&&e.prototype instanceof k?e:k,o=Object.create(i.prototype),s=new R(r||[]);return o._invoke=function(t,e,n){var r=l;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return S()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=j(s,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=x(t,e,n);if("normal"===u.type){if(r=n.done?d:f,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(t,n,s),o}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function k(){}function E(){}function T(){}function O(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function L(t){var e;this._invoke=function(n,r){function o(){return new Promise(function(e,o){!function e(n,r,o,s){var a=x(t[n],t,r);if("throw"!==a.type){var u=a.arg,c=u.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,o,s)},function(t){e("throw",t,o,s)}):Promise.resolve(c).then(function(t){u.value=t,o(u)},s)}s(a.arg)}(n,r,e,o)})}return e=e?e.then(o,o):o()}}function j(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,j(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=x(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function N(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:S}}function S(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},TNV1:function(t,e,n){"use strict";var r=n("cGG2");t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},W2nU:function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],h=!1,l=-1;function f(){h&&u&&(h=!1,u.length?c=u.concat(c):l=-1,c.length&&p())}function p(){if(!h){var t=a(f);h=!0;for(var e=c.length;e;){for(u=c,c=[];++l<e;)u&&u[l].run();l=-1,e=c.length}u=null,h=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function v(){}i.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];c.push(new d(t,e)),1!==c.length||h||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},X9Uq:function(t,e,n){var r=n("6xsC");r.formatters.prepend=function(t,e){return e+t},r.formatters.time_hm=function(t){return Math.floor(t/60)+"h "+t%60+"m"},r.formatters.gt=function(t,e){return t.length>e},r.formatters.lt=function(t,e){return t.length<e},r.formatters.eq=function(t,e){return t.length>e},r.formatters.fallback=function(t,e){return t||e}},XmWM:function(t,e,n){"use strict";var r=n("KCLY"),i=n("cGG2"),o=n("fuGk"),s=n("xLtR");function a(t){this.defaults=t,this.interceptors={request:new o,response:new o}}a.prototype.request=function(t){"string"==typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),(t=i.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();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","options"],function(t){a.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){a.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=a},Xxa5:function(t,e,n){t.exports=n("jyFz")},cGG2:function(t,e,n){"use strict";var r=n("JP+z"),i=n("Re3r"),o=Object.prototype.toString;function s(t){return"[object Array]"===o.call(t)}function a(t){return null!==t&&"object"==typeof t}function u(t){return"[object Function]"===o.call(t)}function c(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),s(t))for(var n=0,r=t.length;n<r;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)}t.exports={isArray:s,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:i,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:u,isStream:function(t){return a(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},cWxy:function(t,e,n){"use strict";var r=n("dVOP");function i(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 r(t),e(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i(function(e){t=e}),cancel:t}},t.exports=i},dIwP:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},dVOP:function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},f1ec:function(t,e,n){"use strict";var r=document.head.querySelector('meta[name="base-url"]'),i=document.head.querySelector('meta[name="csrf-token"]'),o=document.head.querySelector('meta[name="api-key"]');e.a={api_key:o.content||"",base_url:r.content||"",csrf_token:i.content||""}},fuGk:function(t,e,n){"use strict";var r=n("cGG2");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},gl4M:function(t,e,n){"use strict";var r=n("Xxa5"),i=n.n(r),o=n("f1ec"),s=this;var a,u,c=n("mtWM");e.a=(a=i.a.mark(function t(e){var n;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return("string"==typeof e||e instanceof String)&&(e={url:e}),n=Object.assign({},{baseURL:o.a.base_url,headers:{"X-API-KEY":o.a.api_key,"X-CSRF-TOKEN":o.a.csrf_token}},e),console.log(n),t.abrupt("return",c.request(n));case 4:case"end":return t.stop()}},t,s)}),u=function(){var t=a.apply(this,arguments);return new Promise(function(e,n){return function r(i,o){try{var s=t[i](o),a=s.value}catch(t){return void n(t)}if(!s.done)return Promise.resolve(a).then(function(t){r("next",t)},function(t){r("throw",t)});e(a)}("next")})},function(t){return u.apply(this,arguments)})},jyFz:function(t,e,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("SldL"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},lgU6:function(t,e,n){var r;(function(){function n(t,e,n,r){return new i(t,e,n,r)}function i(t,e,n,r){this.options=r||{},this.options.adapters=this.options.adapters||{},this.obj=t,this.keypath=e,this.callback=n,this.objectPath=[],this.update=this.update.bind(this),this.parse(),o(this.target=this.realize())&&this.set(!0,this.key,this.target,this.callback)}function o(t){return"object"==typeof t&&null!==t}function s(t){throw new Error("[sightglass] "+t)}n.adapters={},i.tokenize=function(t,e,n){var r,i,o=[],s={i:n,path:""};for(r=0;r<t.length;r++)i=t.charAt(r),~e.indexOf(i)?(o.push(s),s={i:i,path:""}):s.path+=i;return o.push(s),o},i.prototype.parse=function(){var t,e,r=this.interfaces();r.length||s("Must define at least one adapter interface."),~r.indexOf(this.keypath[0])?(t=this.keypath[0],e=this.keypath.substr(1)):(void 0===(t=this.options.root||n.root)&&s("Must define a default root adapter."),e=this.keypath),this.tokens=i.tokenize(e,r,t),this.key=this.tokens.pop()},i.prototype.realize=function(){var t,e=this.obj,n=!1;return this.tokens.forEach(function(r,i){o(e)?(void 0!==this.objectPath[i]?e!==(t=this.objectPath[i])&&(this.set(!1,r,t,this.update),this.set(!0,r,e,this.update),this.objectPath[i]=e):(this.set(!0,r,e,this.update),this.objectPath[i]=e),e=this.get(r,e)):(!1===n&&(n=i),(t=this.objectPath[i])&&this.set(!1,r,t,this.update))},this),!1!==n&&this.objectPath.splice(n),e},i.prototype.update=function(){var t,e;(t=this.realize())!==this.target&&(o(this.target)&&this.set(!1,this.key,this.target,this.callback),o(t)&&this.set(!0,this.key,t,this.callback),e=this.value(),this.target=t,(this.value()instanceof Function||this.value()!==e)&&this.callback())},i.prototype.value=function(){if(o(this.target))return this.get(this.key,this.target)},i.prototype.setValue=function(t){o(this.target)&&this.adapter(this.key).set(this.target,this.key.path,t)},i.prototype.get=function(t,e){return this.adapter(t).get(e,t.path)},i.prototype.set=function(t,e,n,r){var i=t?"observe":"unobserve";this.adapter(e)[i](n,e.path,r)},i.prototype.interfaces=function(){var t=Object.keys(this.options.adapters);return Object.keys(n.adapters).forEach(function(e){~t.indexOf(e)||t.push(e)}),t},i.prototype.adapter=function(t){return this.options.adapters[t.i]||n.adapters[t.i]},i.prototype.unobserve=function(){var t;this.tokens.forEach(function(e,n){(t=this.objectPath[n])&&this.set(!1,e,t,this.update)},this),o(this.target)&&this.set(!1,this.key,this.target,this.callback)},void 0!==t&&t.exports?t.exports=n:void 0===(r=function(){return this.sightglass=n}.apply(e,[]))||(t.exports=r)}).call(this)},mtWM:function(t,e,n){t.exports=n("tIFN")},oJlt:function(t,e,n){"use strict";var r=n("cGG2"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(r.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}}),s):s}},p1b6:function(t,e,n){"use strict";var r=n("cGG2");t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.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)}}:{write:function(){},read:function(){return null},remove:function(){}}},pBtG:function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},pxG4:function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},qRfI:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},t8qj:function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t}},tIFN:function(t,e,n){"use strict";var r=n("cGG2"),i=n("JP+z"),o=n("XmWM"),s=n("KCLY");function a(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=a(s);u.Axios=o,u.create=function(t){return a(r.merge(s,t))},u.Cancel=n("dVOP"),u.CancelToken=n("cWxy"),u.isCancel=n("pBtG"),u.all=function(t){return Promise.all(t)},u.spread=n("pxG4"),t.exports=u,t.exports.default=u},xLtR:function(t,e,n){"use strict";var r=n("cGG2"),i=n("TNV1"),o=n("pBtG"),s=n("KCLY"),a=n("dIwP"),u=n("qRfI");function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!a(t.url)&&(t.url=u(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||s.adapter)(t).then(function(e){return c(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return o(e)||(c(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}}});
//# sourceMappingURL=app.js.map