f8ded4e410
* Update dependencies * Rebuild assets with updated deps
1 line
204 KiB
Plaintext
1 line
204 KiB
Plaintext
{"version":3,"sources":["webpack:///./node_modules/@babel/runtime/regenerator/index.js","webpack:///./node_modules/axios/index.js","webpack:///./node_modules/axios/lib/adapters/xhr.js","webpack:///./node_modules/axios/lib/axios.js","webpack:///./node_modules/axios/lib/cancel/Cancel.js","webpack:///./node_modules/axios/lib/cancel/CancelToken.js","webpack:///./node_modules/axios/lib/cancel/isCancel.js","webpack:///./node_modules/axios/lib/core/Axios.js","webpack:///./node_modules/axios/lib/core/InterceptorManager.js","webpack:///./node_modules/axios/lib/core/buildFullPath.js","webpack:///./node_modules/axios/lib/core/createError.js","webpack:///./node_modules/axios/lib/core/dispatchRequest.js","webpack:///./node_modules/axios/lib/core/enhanceError.js","webpack:///./node_modules/axios/lib/core/mergeConfig.js","webpack:///./node_modules/axios/lib/core/settle.js","webpack:///./node_modules/axios/lib/core/transformData.js","webpack:///./node_modules/axios/lib/defaults.js","webpack:///./node_modules/axios/lib/helpers/bind.js","webpack:///./node_modules/axios/lib/helpers/buildURL.js","webpack:///./node_modules/axios/lib/helpers/combineURLs.js","webpack:///./node_modules/axios/lib/helpers/cookies.js","webpack:///./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack:///./node_modules/axios/lib/helpers/isAxiosError.js","webpack:///./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack:///./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack:///./node_modules/axios/lib/helpers/parseHeaders.js","webpack:///./node_modules/axios/lib/helpers/spread.js","webpack:///./node_modules/axios/lib/utils.js","webpack:///./resources/js/storage.js","webpack:///./resources/js/bootstrap.js","webpack:///./resources/js/common.js","webpack:///./resources/js/config.js","webpack:///./resources/js/request.js","webpack:///./node_modules/process/browser.js","webpack:///./node_modules/regenerator-runtime/runtime.js","webpack:///./node_modules/rivets/dist/rivets.js","webpack:///./node_modules/sightglass/index.js","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///webpack/runtime/node module decorator","webpack:///./resources/js/installer/app.js"],"names":["module","exports","utils","settle","cookies","buildURL","buildFullPath","parseHeaders","isURLSameOrigin","createError","config","Promise","resolve","reject","requestData","data","requestHeaders","headers","isFormData","request","XMLHttpRequest","auth","username","password","unescape","encodeURIComponent","Authorization","btoa","fullPath","baseURL","url","open","method","toUpperCase","params","paramsSerializer","timeout","onreadystatechange","readyState","status","responseURL","indexOf","responseHeaders","getAllResponseHeaders","response","responseType","responseText","statusText","onabort","onerror","ontimeout","timeoutErrorMessage","isStandardBrowserEnv","xsrfValue","withCredentials","xsrfCookieName","read","undefined","xsrfHeaderName","forEach","val","key","toLowerCase","setRequestHeader","isUndefined","e","onDownloadProgress","addEventListener","onUploadProgress","upload","cancelToken","promise","then","cancel","abort","send","bind","Axios","mergeConfig","createInstance","defaultConfig","context","instance","prototype","extend","axios","create","instanceConfig","defaults","Cancel","CancelToken","isCancel","all","promises","spread","isAxiosError","default","message","this","toString","__CANCEL__","executor","TypeError","resolvePromise","token","reason","throwIfRequested","source","c","value","InterceptorManager","dispatchRequest","interceptors","arguments","chain","interceptor","unshift","fulfilled","rejected","push","length","shift","getUri","replace","handlers","use","eject","id","fn","h","isAbsoluteURL","combineURLs","requestedURL","enhanceError","code","error","Error","transformData","throwIfCancellationRequested","transformRequest","merge","common","adapter","transformResponse","toJSON","name","description","number","fileName","lineNumber","columnNumber","stack","config1","config2","valueFromConfig2Keys","mergeDeepPropertiesKeys","defaultToConfig2Keys","directMergeKeys","getMergedValue","target","isPlainObject","isArray","slice","mergeDeepProperties","prop","axiosKeys","concat","otherKeys","Object","keys","filter","validateStatus","fns","normalizeHeaderName","DEFAULT_CONTENT_TYPE","setContentTypeIfUnset","process","call","isArrayBuffer","isBuffer","isStream","isFile","isBlob","isArrayBufferView","buffer","isURLSearchParams","isObject","JSON","stringify","parse","maxContentLength","maxBodyLength","thisArg","args","Array","i","apply","encode","serializedParams","parts","v","isDate","toISOString","join","hashmarkIndex","relativeURL","write","expires","path","domain","secure","cookie","isNumber","Date","toGMTString","isString","document","match","RegExp","decodeURIComponent","remove","now","test","payload","originURL","msie","navigator","userAgent","urlParsingNode","createElement","resolveURL","href","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","window","location","requestURL","parsed","normalizedName","ignoreDuplicateOf","split","line","trim","substr","callback","arr","getPrototypeOf","isFunction","obj","l","hasOwnProperty","constructor","FormData","ArrayBuffer","isView","pipe","URLSearchParams","product","result","assignValue","a","b","str","stripBOM","content","charCodeAt","Storage","default_value","st","localStorage","getItem","console","log","setItem","index","splice","require","phpvms","rivets","formatters","prepend","time_hm","hours","Math","floor","mins","gt","len","lt","eq","fallback","def","base_url","head","querySelector","api_key","csrf_token","_opts","String","opts","assign","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","setTimeout","clearTimeout","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","run","marker","runClearTimeout","Item","array","noop","nextTick","title","browser","env","argv","version","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","binding","cwd","chdir","dir","umask","runtime","Op","hasOwn","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","defineProperty","enumerable","configurable","writable","err","wrap","innerFn","outerFn","self","tryLocsList","protoGenerator","Generator","generator","Context","_invoke","state","GenStateSuspendedStart","arg","GenStateExecuting","GenStateCompleted","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","sent","_sent","dispatchException","abrupt","record","tryCatch","type","done","GenStateSuspendedYield","makeInvokeMethod","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","NativeIteratorPrototype","values","Gp","defineIteratorMethods","AsyncIterator","PromiseImpl","invoke","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","info","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","displayName","isGeneratorFunction","genFun","ctor","mark","setPrototypeOf","__proto__","awrap","async","iter","object","reverse","pop","skipTempReset","prev","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","Function","Rivets","bindMethod","jQuery","unbindMethod","_ref","__bind","me","__slice","__hasProp","__extends","child","parent","__super__","__indexOf","item","options","extensions","binders","components","adapters","prefix","templateDelimiters","rootInterface","preloadData","executeFunctions","iterationAlias","modelName","handler","ev","view","models","configure","descriptor","option","el","View","init","component","scope","template","HTMLElement","firstChild","removeChild","appendChild","innerHTML","initialize","Util","bindEvent","event","unbindEvent","getInputValue","$el","attr","is","attachEvent","removeEventListener","detachEvent","o","_i","_len","_results","checked","selected","TypeParser","types","primitive","keypath","string","Number","TextTemplateParser","text","delimiters","lastIndex","lastToken","substring","tokens","els","k","_base","_j","_len1","_ref1","_ref2","_ref3","_ref4","_ref5","update","publish","sync","unbind","select","traverse","build","buildBinding","bindingRegExp","jquery","node","declaration","ctx","dependencies","pipes","bindings","_this","block","childNode","n","parser","nodeType","createTextNode","parentNode","insertBefore","_k","childNodes","sort","binder","priority","attribute","attributes","identifier","nodeName","_bound","ComponentBinding","publishes","model","Binding","getValue","set","eventHandler","formattedValue","parseFormatterArguments","parseTarget","observe","setBinder","formatterObservers","exec","routine","sightglass","root","observer","formatterIndex","ai","processedArgs","fi","formatter","dependency","unobserve","fiReversed","lastformatterIndex","setValue","_super","propertyName","locals","observers","upstreamObservers","camelCase","grouped","_ref6","_ref7","bound","componentView","TextBinding","textContent","innerText","html","show","style","display","hide","enabled","disabled","unchecked","tagName","getAttribute","createComment","removeAttribute","nested","nextSibling","unless","iterated","collection","previous","_len2","cloneNode","elClass","className","counter","weakmap","weakReference","_name","callbacks","cleanupWeakReference","ref","pointers","stubFunction","map","original","r","observeMutations","functions","unobserveMutations","idx","desc","getOwnPropertyDescriptor","get","newValue","cb","factory","_","Observer","objectPath","realize","tokenize","interfaces","chr","current","unreached","oldValue","active","action","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","loaded","__webpack_modules__","getter","__esModule","d","definition","nmd","paths","children"],"mappings":"2BAAAA,EAAOC,QAAU,EAAjB,M,cCAAD,EAAOC,QAAU,EAAjB,M,2BCEA,IAAIC,EAAQ,EAAQ,KAChBC,EAAS,EAAQ,IACjBC,EAAU,EAAQ,KAClBC,EAAW,EAAQ,KACnBC,EAAgB,EAAQ,IACxBC,EAAe,EAAQ,KACvBC,EAAkB,EAAQ,KAC1BC,EAAc,EAAQ,IAE1BT,EAAOC,QAAU,SAAoBS,GACnC,OAAO,IAAIC,SAAQ,SAA4BC,EAASC,GACtD,IAAIC,EAAcJ,EAAOK,KACrBC,EAAiBN,EAAOO,QAExBf,EAAMgB,WAAWJ,WACZE,EAAe,gBAGxB,IAAIG,EAAU,IAAIC,eAGlB,GAAIV,EAAOW,KAAM,CACf,IAAIC,EAAWZ,EAAOW,KAAKC,UAAY,GACnCC,EAAWb,EAAOW,KAAKE,SAAWC,SAASC,mBAAmBf,EAAOW,KAAKE,WAAa,GAC3FP,EAAeU,cAAgB,SAAWC,KAAKL,EAAW,IAAMC,GAGlE,IAAIK,EAAWtB,EAAcI,EAAOmB,QAASnB,EAAOoB,KA4EpD,GA3EAX,EAAQY,KAAKrB,EAAOsB,OAAOC,cAAe5B,EAASuB,EAAUlB,EAAOwB,OAAQxB,EAAOyB,mBAAmB,GAGtGhB,EAAQiB,QAAU1B,EAAO0B,QAGzBjB,EAAQkB,mBAAqB,WAC3B,GAAKlB,GAAkC,IAAvBA,EAAQmB,aAQD,IAAnBnB,EAAQoB,QAAkBpB,EAAQqB,aAAwD,IAAzCrB,EAAQqB,YAAYC,QAAQ,UAAjF,CAKA,IAAIC,EAAkB,0BAA2BvB,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IAAOnrB,IAC1BA,EAAOorB,MAAQ,GACVprB,EAAOqrB,WAAUrrB,EAAOqrB,SAAW,IACjCrrB,GCQR2R,EAAQ,M","file":"/assets/installer/js/app.js","sourcesContent":["module.exports = require(\"regenerator-runtime\");\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n","/**\n * Before you edit these, read the documentation on how these files are compiled:\n * https://docs.phpvms.net/developers/building-assets\n *\n * Edits here don't take place until you compile these assets and then upload them.\n */\n\n/**\n * Simple browser storage interface\n */\nexport default class Storage {\n constructor(name, default_value) {\n this.name = name;\n\n // Read the object from storage; if it doesn't exist, set\n // it to the default value\n const st = window.localStorage.getItem(this.name);\n if (!st) {\n console.log('Nothing found in storage, starting from default');\n this.data = default_value;\n } else {\n console.log('Found in storage: ', st);\n this.data = JSON.parse(st);\n }\n }\n\n /**\n * Save to local storage\n */\n save() {\n window.localStorage.setItem(this.name, JSON.stringify(this.data));\n }\n\n /**\n * Return a list from a given key\n *\n * @param {String} key\n *\n * @returns {Array|*}\n */\n getList(key) {\n if (!(key in this.data)) {\n return [];\n }\n\n return this.data[key];\n }\n\n /**\n * Add `value` to a given `key`\n *\n * @param {string} key\n * @param {*} value\n */\n addToList(key, value) {\n if (!(key in this.data)) {\n this.data[key] = [];\n }\n\n const index = this.data[key].indexOf(value);\n if (index === -1) {\n this.data[key].push(value);\n }\n }\n\n /**\n * Remove `value` from the given `key`\n *\n * @param {String} key\n * @param {*} value\n */\n removeFromList(key, value) {\n if (!(key in this.data)) {\n return;\n }\n\n const index = this.data[key].indexOf(value);\n if (index !== -1) {\n this.data[key].splice(index, 1);\n }\n }\n}\n","/**\n * Before you edit these, read the documentation on how these files are compiled:\n * https://docs.phpvms.net/developers/building-assets\n *\n * Edits here don't take place until you compile these assets and then upload them.\n */\n\n/**\n * Bootstrap any Javascript libraries required\n */\n\nimport Storage from './storage';\nimport config from './config';\nimport request from './request';\n\nwindow.axios = require('axios');\n\n/**\n * Container for phpVMS specific functions\n */\nwindow.phpvms = {\n config,\n request,\n Storage,\n};\n\nrequire('./common');\n","/**\n * Before you edit these, read the documentation on how these files are compiled:\n * https://docs.phpvms.net/developers/building-assets\n *\n * Edits here don't take place until you compile these assets and then upload them.\n */\n\nconst rivets = require('rivets');\n\n/**\n * Generic formatter to prepend\n *\n * @param value\n * @param prepend\n *\n * @returns {*}\n */\nrivets.formatters.prepend = function (value, prepend) {\n return prepend + value;\n};\n\n/**\n * Format minutes into HHh MMm\n *\n * @param value\n *\n * @returns {string}\n */\nrivets.formatters.time_hm = function (value) {\n const hours = Math.floor(value / 60);\n const mins = value % 60;\n return `${hours}h ${mins}m`;\n};\n\n/**\n *\n * @param value\n * @param len\n *\n * @returns {boolean}\n */\nrivets.formatters.gt = (value, len) => value.length > len;\n\n/**\n *\n * @param value\n * @param len\n *\n * @returns {boolean}\n */\nrivets.formatters.lt = (value, len) => value.length < len;\n\n/**\n *\n * @param value\n * @param len\n *\n * @returns {boolean}\n */\nrivets.formatters.eq = (value, len) => value.length > len;\n\n/**\n * Use a default value if value is null or blank\n *\n * @param value Value to use\n * @param def Default value to use if value is null\n */\nrivets.formatters.fallback = (value, def) => value || def;\n","/**\n * Before you edit these, read the documentation on how these files are compiled:\n * https://docs.phpvms.net/developers/building-assets\n *\n * Edits here don't take place until you compile these assets and then upload them.\n */\n\nconst base_url = document.head.querySelector('meta[name=\"base-url\"]');\nconst token = document.head.querySelector('meta[name=\"csrf-token\"]');\nconst api_key = document.head.querySelector('meta[name=\"api-key\"]');\n\nexport default {\n api_key: api_key.content || '',\n base_url: base_url.content || '',\n csrf_token: token.content || '',\n};\n","/**\n * Before you edit these, read the documentation on how these files are compiled:\n * https://docs.phpvms.net/developers/building-assets\n *\n * Edits here don't take place until you compile these assets and then upload them.\n */\n\nimport config from './config';\n\nconst axios = require('axios');\n\n/**\n * Run an API request, with some common options\n *\n * @param {Object|String} _opts Axios request options, or pass a URL\n * @param {String} _opts.url\n */\nexport default async (_opts) => {\n if (typeof _opts === 'string' || _opts instanceof String) {\n // eslint-disable-next-line no-param-reassign\n _opts = {\n url: _opts,\n };\n }\n\n const opts = Object.assign({}, {\n baseURL: config.base_url,\n headers: {\n 'X-API-KEY': config.api_key,\n 'X-CSRF-TOKEN': config.csrf_token,\n },\n }, _opts);\n\n console.log(opts);\n\n return axios.request(opts);\n};\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","// Rivets.js\n// version: 0.9.6\n// author: Michael Richards\n// license: MIT\n(function() {\n var Rivets, bindMethod, jQuery, unbindMethod, _ref,\n __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },\n __slice = [].slice,\n __hasProp = {}.hasOwnProperty,\n __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };\n\n Rivets = {\n options: ['prefix', 'templateDelimiters', 'rootInterface', 'preloadData', 'handler', 'executeFunctions'],\n extensions: ['binders', 'formatters', 'components', 'adapters'],\n \"public\": {\n binders: {},\n components: {},\n formatters: {},\n adapters: {},\n prefix: 'rv',\n templateDelimiters: ['{', '}'],\n rootInterface: '.',\n preloadData: true,\n executeFunctions: false,\n iterationAlias: function(modelName) {\n return '%' + modelName + '%';\n },\n handler: function(context, ev, binding) {\n return this.call(context, ev, binding.view.models);\n },\n configure: function(options) {\n var descriptor, key, option, value;\n if (options == null) {\n options = {};\n }\n for (option in options) {\n value = options[option];\n if (option === 'binders' || option === 'components' || option === 'formatters' || option === 'adapters') {\n for (key in value) {\n descriptor = value[key];\n Rivets[option][key] = descriptor;\n }\n } else {\n Rivets[\"public\"][option] = value;\n }\n }\n },\n bind: function(el, models, options) {\n var view;\n if (models == null) {\n models = {};\n }\n if (options == null) {\n options = {};\n }\n view = new Rivets.View(el, models, options);\n view.bind();\n return view;\n },\n init: function(component, el, data) {\n var scope, template, view;\n if (data == null) {\n data = {};\n }\n if (el == null) {\n el = document.createElement('div');\n }\n component = Rivets[\"public\"].components[component];\n template = component.template.call(this, el);\n if (template instanceof HTMLElement) {\n while (el.firstChild) {\n el.removeChild(el.firstChild);\n }\n el.appendChild(template);\n } else {\n el.innerHTML = template;\n }\n scope = component.initialize.call(this, el, data);\n view = new Rivets.View(el, scope);\n view.bind();\n return view;\n }\n }\n };\n\n if (window['jQuery'] || window['$']) {\n jQuery = window['jQuery'] || window['$'];\n _ref = 'on' in jQuery.prototype ? ['on', 'off'] : ['bind', 'unbind'], bindMethod = _ref[0], unbindMethod = _ref[1];\n Rivets.Util = {\n bindEvent: function(el, event, handler) {\n return jQuery(el)[bindMethod](event, handler);\n },\n unbindEvent: function(el, event, handler) {\n return jQuery(el)[unbindMethod](event, handler);\n },\n getInputValue: function(el) {\n var $el;\n $el = jQuery(el);\n if ($el.attr('type') === 'checkbox') {\n return $el.is(':checked');\n } else {\n return $el.val();\n }\n }\n };\n } else {\n Rivets.Util = {\n bindEvent: (function() {\n if ('addEventListener' in window) {\n return function(el, event, handler) {\n return el.addEventListener(event, handler, false);\n };\n }\n return function(el, event, handler) {\n return el.attachEvent('on' + event, handler);\n };\n })(),\n unbindEvent: (function() {\n if ('removeEventListener' in window) {\n return function(el, event, handler) {\n return el.removeEventListener(event, handler, false);\n };\n }\n return function(el, event, handler) {\n return el.detachEvent('on' + event, handler);\n };\n })(),\n getInputValue: function(el) {\n var o, _i, _len, _results;\n if (el.type === 'checkbox') {\n return el.checked;\n } else if (el.type === 'select-multiple') {\n _results = [];\n for (_i = 0, _len = el.length; _i < _len; _i++) {\n o = el[_i];\n if (o.selected) {\n _results.push(o.value);\n }\n }\n return _results;\n } else {\n return el.value;\n }\n }\n };\n }\n\n Rivets.TypeParser = (function() {\n function TypeParser() {}\n\n TypeParser.types = {\n primitive: 0,\n keypath: 1\n };\n\n TypeParser.parse = function(string) {\n if (/^'.*'$|^\".*\"$/.test(string)) {\n return {\n type: this.types.primitive,\n value: string.slice(1, -1)\n };\n } else if (string === 'true') {\n return {\n type: this.types.primitive,\n value: true\n };\n } else if (string === 'false') {\n return {\n type: this.types.primitive,\n value: false\n };\n } else if (string === 'null') {\n return {\n type: this.types.primitive,\n value: null\n };\n } else if (string === 'undefined') {\n return {\n type: this.types.primitive,\n value: void 0\n };\n } else if (string === '') {\n return {\n type: this.types.primitive,\n value: void 0\n };\n } else if (isNaN(Number(string)) === false) {\n return {\n type: this.types.primitive,\n value: Number(string)\n };\n } else {\n return {\n type: this.types.keypath,\n value: string\n };\n }\n };\n\n return TypeParser;\n\n })();\n\n Rivets.TextTemplateParser = (function() {\n function TextTemplateParser() {}\n\n TextTemplateParser.types = {\n text: 0,\n binding: 1\n };\n\n TextTemplateParser.parse = function(template, delimiters) {\n var index, lastIndex, lastToken, length, substring, tokens, value;\n tokens = [];\n length = template.length;\n index = 0;\n lastIndex = 0;\n while (lastIndex < length) {\n index = template.indexOf(delimiters[0], lastIndex);\n if (index < 0) {\n tokens.push({\n type: this.types.text,\n value: template.slice(lastIndex)\n });\n break;\n } else {\n if (index > 0 && lastIndex < index) {\n tokens.push({\n type: this.types.text,\n value: template.slice(lastIndex, index)\n });\n }\n lastIndex = index + delimiters[0].length;\n index = template.indexOf(delimiters[1], lastIndex);\n if (index < 0) {\n substring = template.slice(lastIndex - delimiters[1].length);\n lastToken = tokens[tokens.length - 1];\n if ((lastToken != null ? lastToken.type : void 0) === this.types.text) {\n lastToken.value += substring;\n } else {\n tokens.push({\n type: this.types.text,\n value: substring\n });\n }\n break;\n }\n value = template.slice(lastIndex, index).trim();\n tokens.push({\n type: this.types.binding,\n value: value\n });\n lastIndex = index + delimiters[1].length;\n }\n }\n return tokens;\n };\n\n return TextTemplateParser;\n\n })();\n\n Rivets.View = (function() {\n function View(els, models, options) {\n var k, option, v, _base, _i, _j, _len, _len1, _ref1, _ref2, _ref3, _ref4, _ref5;\n this.els = els;\n this.models = models;\n if (options == null) {\n options = {};\n }\n this.update = __bind(this.update, this);\n this.publish = __bind(this.publish, this);\n this.sync = __bind(this.sync, this);\n this.unbind = __bind(this.unbind, this);\n this.bind = __bind(this.bind, this);\n this.select = __bind(this.select, this);\n this.traverse = __bind(this.traverse, this);\n this.build = __bind(this.build, this);\n this.buildBinding = __bind(this.buildBinding, this);\n this.bindingRegExp = __bind(this.bindingRegExp, this);\n this.options = __bind(this.options, this);\n if (!(this.els.jquery || this.els instanceof Array)) {\n this.els = [this.els];\n }\n _ref1 = Rivets.extensions;\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n option = _ref1[_i];\n this[option] = {};\n if (options[option]) {\n _ref2 = options[option];\n for (k in _ref2) {\n v = _ref2[k];\n this[option][k] = v;\n }\n }\n _ref3 = Rivets[\"public\"][option];\n for (k in _ref3) {\n v = _ref3[k];\n if ((_base = this[option])[k] == null) {\n _base[k] = v;\n }\n }\n }\n _ref4 = Rivets.options;\n for (_j = 0, _len1 = _ref4.length; _j < _len1; _j++) {\n option = _ref4[_j];\n this[option] = (_ref5 = options[option]) != null ? _ref5 : Rivets[\"public\"][option];\n }\n this.build();\n }\n\n View.prototype.options = function() {\n var option, options, _i, _len, _ref1;\n options = {};\n _ref1 = Rivets.extensions.concat(Rivets.options);\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n option = _ref1[_i];\n options[option] = this[option];\n }\n return options;\n };\n\n View.prototype.bindingRegExp = function() {\n return new RegExp(\"^\" + this.prefix + \"-\");\n };\n\n View.prototype.buildBinding = function(binding, node, type, declaration) {\n var context, ctx, dependencies, keypath, options, pipe, pipes;\n options = {};\n pipes = (function() {\n var _i, _len, _ref1, _results;\n _ref1 = declaration.match(/((?:'[^']*')*(?:(?:[^\\|']*(?:'[^']*')+[^\\|']*)+|[^\\|]+))|^$/g);\n _results = [];\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n pipe = _ref1[_i];\n _results.push(pipe.trim());\n }\n return _results;\n })();\n context = (function() {\n var _i, _len, _ref1, _results;\n _ref1 = pipes.shift().split('<');\n _results = [];\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n ctx = _ref1[_i];\n _results.push(ctx.trim());\n }\n return _results;\n })();\n keypath = context.shift();\n options.formatters = pipes;\n if (dependencies = context.shift()) {\n options.dependencies = dependencies.split(/\\s+/);\n }\n return this.bindings.push(new Rivets[binding](this, node, type, keypath, options));\n };\n\n View.prototype.build = function() {\n var el, parse, _i, _len, _ref1;\n this.bindings = [];\n parse = (function(_this) {\n return function(node) {\n var block, childNode, delimiters, n, parser, text, token, tokens, _i, _j, _len, _len1, _ref1;\n if (node.nodeType === 3) {\n parser = Rivets.TextTemplateParser;\n if (delimiters = _this.templateDelimiters) {\n if ((tokens = parser.parse(node.data, delimiters)).length) {\n if (!(tokens.length === 1 && tokens[0].type === parser.types.text)) {\n for (_i = 0, _len = tokens.length; _i < _len; _i++) {\n token = tokens[_i];\n text = document.createTextNode(token.value);\n node.parentNode.insertBefore(text, node);\n if (token.type === 1) {\n _this.buildBinding('TextBinding', text, null, token.value);\n }\n }\n node.parentNode.removeChild(node);\n }\n }\n }\n } else if (node.nodeType === 1) {\n block = _this.traverse(node);\n }\n if (!block) {\n _ref1 = (function() {\n var _k, _len1, _ref1, _results;\n _ref1 = node.childNodes;\n _results = [];\n for (_k = 0, _len1 = _ref1.length; _k < _len1; _k++) {\n n = _ref1[_k];\n _results.push(n);\n }\n return _results;\n })();\n for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {\n childNode = _ref1[_j];\n parse(childNode);\n }\n }\n };\n })(this);\n _ref1 = this.els;\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n el = _ref1[_i];\n parse(el);\n }\n this.bindings.sort(function(a, b) {\n var _ref2, _ref3;\n return (((_ref2 = b.binder) != null ? _ref2.priority : void 0) || 0) - (((_ref3 = a.binder) != null ? _ref3.priority : void 0) || 0);\n });\n };\n\n View.prototype.traverse = function(node) {\n var attribute, attributes, binder, bindingRegExp, block, identifier, regexp, type, value, _i, _j, _len, _len1, _ref1, _ref2, _ref3;\n bindingRegExp = this.bindingRegExp();\n block = node.nodeName === 'SCRIPT' || node.nodeName === 'STYLE';\n _ref1 = node.attributes;\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n attribute = _ref1[_i];\n if (bindingRegExp.test(attribute.name)) {\n type = attribute.name.replace(bindingRegExp, '');\n if (!(binder = this.binders[type])) {\n _ref2 = this.binders;\n for (identifier in _ref2) {\n value = _ref2[identifier];\n if (identifier !== '*' && identifier.indexOf('*') !== -1) {\n regexp = new RegExp(\"^\" + (identifier.replace(/\\*/g, '.+')) + \"$\");\n if (regexp.test(type)) {\n binder = value;\n }\n }\n }\n }\n binder || (binder = this.binders['*']);\n if (binder.block) {\n block = true;\n attributes = [attribute];\n }\n }\n }\n _ref3 = attributes || node.attributes;\n for (_j = 0, _len1 = _ref3.length; _j < _len1; _j++) {\n attribute = _ref3[_j];\n if (bindingRegExp.test(attribute.name)) {\n type = attribute.name.replace(bindingRegExp, '');\n this.buildBinding('Binding', node, type, attribute.value);\n }\n }\n if (!block) {\n type = node.nodeName.toLowerCase();\n if (this.components[type] && !node._bound) {\n this.bindings.push(new Rivets.ComponentBinding(this, node, type));\n block = true;\n }\n }\n return block;\n };\n\n View.prototype.select = function(fn) {\n var binding, _i, _len, _ref1, _results;\n _ref1 = this.bindings;\n _results = [];\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n binding = _ref1[_i];\n if (fn(binding)) {\n _results.push(binding);\n }\n }\n return _results;\n };\n\n View.prototype.bind = function() {\n var binding, _i, _len, _ref1;\n _ref1 = this.bindings;\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n binding = _ref1[_i];\n binding.bind();\n }\n };\n\n View.prototype.unbind = function() {\n var binding, _i, _len, _ref1;\n _ref1 = this.bindings;\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n binding = _ref1[_i];\n binding.unbind();\n }\n };\n\n View.prototype.sync = function() {\n var binding, _i, _len, _ref1;\n _ref1 = this.bindings;\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n binding = _ref1[_i];\n if (typeof binding.sync === \"function\") {\n binding.sync();\n }\n }\n };\n\n View.prototype.publish = function() {\n var binding, _i, _len, _ref1;\n _ref1 = this.select(function(b) {\n var _ref1;\n return (_ref1 = b.binder) != null ? _ref1.publishes : void 0;\n });\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n binding = _ref1[_i];\n binding.publish();\n }\n };\n\n View.prototype.update = function(models) {\n var binding, key, model, _i, _len, _ref1;\n if (models == null) {\n models = {};\n }\n for (key in models) {\n model = models[key];\n this.models[key] = model;\n }\n _ref1 = this.bindings;\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n binding = _ref1[_i];\n if (typeof binding.update === \"function\") {\n binding.update(models);\n }\n }\n };\n\n return View;\n\n })();\n\n Rivets.Binding = (function() {\n function Binding(view, el, type, keypath, options) {\n this.view = view;\n this.el = el;\n this.type = type;\n this.keypath = keypath;\n this.options = options != null ? options : {};\n this.getValue = __bind(this.getValue, this);\n this.update = __bind(this.update, this);\n this.unbind = __bind(this.unbind, this);\n this.bind = __bind(this.bind, this);\n this.publish = __bind(this.publish, this);\n this.sync = __bind(this.sync, this);\n this.set = __bind(this.set, this);\n this.eventHandler = __bind(this.eventHandler, this);\n this.formattedValue = __bind(this.formattedValue, this);\n this.parseFormatterArguments = __bind(this.parseFormatterArguments, this);\n this.parseTarget = __bind(this.parseTarget, this);\n this.observe = __bind(this.observe, this);\n this.setBinder = __bind(this.setBinder, this);\n this.formatters = this.options.formatters || [];\n this.dependencies = [];\n this.formatterObservers = {};\n this.model = void 0;\n this.setBinder();\n }\n\n Binding.prototype.setBinder = function() {\n var identifier, regexp, value, _ref1;\n if (!(this.binder = this.view.binders[this.type])) {\n _ref1 = this.view.binders;\n for (identifier in _ref1) {\n value = _ref1[identifier];\n if (identifier !== '*' && identifier.indexOf('*') !== -1) {\n regexp = new RegExp(\"^\" + (identifier.replace(/\\*/g, '.+')) + \"$\");\n if (regexp.test(this.type)) {\n this.binder = value;\n this.args = new RegExp(\"^\" + (identifier.replace(/\\*/g, '(.+)')) + \"$\").exec(this.type);\n this.args.shift();\n }\n }\n }\n }\n this.binder || (this.binder = this.view.binders['*']);\n if (this.binder instanceof Function) {\n return this.binder = {\n routine: this.binder\n };\n }\n };\n\n Binding.prototype.observe = function(obj, keypath, callback) {\n return Rivets.sightglass(obj, keypath, callback, {\n root: this.view.rootInterface,\n adapters: this.view.adapters\n });\n };\n\n Binding.prototype.parseTarget = function() {\n var token;\n token = Rivets.TypeParser.parse(this.keypath);\n if (token.type === Rivets.TypeParser.types.primitive) {\n return this.value = token.value;\n } else {\n this.observer = this.observe(this.view.models, this.keypath, this.sync);\n return this.model = this.observer.target;\n }\n };\n\n Binding.prototype.parseFormatterArguments = function(args, formatterIndex) {\n var ai, arg, observer, processedArgs, _base, _i, _len;\n args = (function() {\n var _i, _len, _results;\n _results = [];\n for (_i = 0, _len = args.length; _i < _len; _i++) {\n arg = args[_i];\n _results.push(Rivets.TypeParser.parse(arg));\n }\n return _results;\n })();\n processedArgs = [];\n for (ai = _i = 0, _len = args.length; _i < _len; ai = ++_i) {\n arg = args[ai];\n processedArgs.push(arg.type === Rivets.TypeParser.types.primitive ? arg.value : ((_base = this.formatterObservers)[formatterIndex] || (_base[formatterIndex] = {}), !(observer = this.formatterObservers[formatterIndex][ai]) ? (observer = this.observe(this.view.models, arg.value, this.sync), this.formatterObservers[formatterIndex][ai] = observer) : void 0, observer.value()));\n }\n return processedArgs;\n };\n\n Binding.prototype.formattedValue = function(value) {\n var args, fi, formatter, id, processedArgs, _i, _len, _ref1, _ref2;\n _ref1 = this.formatters;\n for (fi = _i = 0, _len = _ref1.length; _i < _len; fi = ++_i) {\n formatter = _ref1[fi];\n args = formatter.match(/[^\\s']+|'([^']|'[^\\s])*'|\"([^\"]|\"[^\\s])*\"/g);\n id = args.shift();\n formatter = this.view.formatters[id];\n processedArgs = this.parseFormatterArguments(args, fi);\n if ((formatter != null ? formatter.read : void 0) instanceof Function) {\n value = (_ref2 = formatter.read).call.apply(_ref2, [this.model, value].concat(__slice.call(processedArgs)));\n } else if (formatter instanceof Function) {\n value = formatter.call.apply(formatter, [this.model, value].concat(__slice.call(processedArgs)));\n }\n }\n return value;\n };\n\n Binding.prototype.eventHandler = function(fn) {\n var binding, handler;\n handler = (binding = this).view.handler;\n return function(ev) {\n return handler.call(fn, this, ev, binding);\n };\n };\n\n Binding.prototype.set = function(value) {\n var _ref1;\n value = value instanceof Function && !this.binder[\"function\"] && Rivets[\"public\"].executeFunctions ? this.formattedValue(value.call(this.model)) : this.formattedValue(value);\n return (_ref1 = this.binder.routine) != null ? _ref1.call(this, this.el, value) : void 0;\n };\n\n Binding.prototype.sync = function() {\n var dependency, observer;\n return this.set((function() {\n var _i, _j, _len, _len1, _ref1, _ref2, _ref3;\n if (this.observer) {\n if (this.model !== this.observer.target) {\n _ref1 = this.dependencies;\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n observer = _ref1[_i];\n observer.unobserve();\n }\n this.dependencies = [];\n if (((this.model = this.observer.target) != null) && ((_ref2 = this.options.dependencies) != null ? _ref2.length : void 0)) {\n _ref3 = this.options.dependencies;\n for (_j = 0, _len1 = _ref3.length; _j < _len1; _j++) {\n dependency = _ref3[_j];\n observer = this.observe(this.model, dependency, this.sync);\n this.dependencies.push(observer);\n }\n }\n }\n return this.observer.value();\n } else {\n return this.value;\n }\n }).call(this));\n };\n\n Binding.prototype.publish = function() {\n var args, fi, fiReversed, formatter, id, lastformatterIndex, processedArgs, value, _i, _len, _ref1, _ref2, _ref3;\n if (this.observer) {\n value = this.getValue(this.el);\n lastformatterIndex = this.formatters.length - 1;\n _ref1 = this.formatters.slice(0).reverse();\n for (fiReversed = _i = 0, _len = _ref1.length; _i < _len; fiReversed = ++_i) {\n formatter = _ref1[fiReversed];\n fi = lastformatterIndex - fiReversed;\n args = formatter.split(/\\s+/);\n id = args.shift();\n processedArgs = this.parseFormatterArguments(args, fi);\n if ((_ref2 = this.view.formatters[id]) != null ? _ref2.publish : void 0) {\n value = (_ref3 = this.view.formatters[id]).publish.apply(_ref3, [value].concat(__slice.call(processedArgs)));\n }\n }\n return this.observer.setValue(value);\n }\n };\n\n Binding.prototype.bind = function() {\n var dependency, observer, _i, _len, _ref1, _ref2, _ref3;\n this.parseTarget();\n if ((_ref1 = this.binder.bind) != null) {\n _ref1.call(this, this.el);\n }\n if ((this.model != null) && ((_ref2 = this.options.dependencies) != null ? _ref2.length : void 0)) {\n _ref3 = this.options.dependencies;\n for (_i = 0, _len = _ref3.length; _i < _len; _i++) {\n dependency = _ref3[_i];\n observer = this.observe(this.model, dependency, this.sync);\n this.dependencies.push(observer);\n }\n }\n if (this.view.preloadData) {\n return this.sync();\n }\n };\n\n Binding.prototype.unbind = function() {\n var ai, args, fi, observer, _i, _len, _ref1, _ref2, _ref3, _ref4;\n if ((_ref1 = this.binder.unbind) != null) {\n _ref1.call(this, this.el);\n }\n if ((_ref2 = this.observer) != null) {\n _ref2.unobserve();\n }\n _ref3 = this.dependencies;\n for (_i = 0, _len = _ref3.length; _i < _len; _i++) {\n observer = _ref3[_i];\n observer.unobserve();\n }\n this.dependencies = [];\n _ref4 = this.formatterObservers;\n for (fi in _ref4) {\n args = _ref4[fi];\n for (ai in args) {\n observer = args[ai];\n observer.unobserve();\n }\n }\n return this.formatterObservers = {};\n };\n\n Binding.prototype.update = function(models) {\n var _ref1, _ref2;\n if (models == null) {\n models = {};\n }\n this.model = (_ref1 = this.observer) != null ? _ref1.target : void 0;\n return (_ref2 = this.binder.update) != null ? _ref2.call(this, models) : void 0;\n };\n\n Binding.prototype.getValue = function(el) {\n if (this.binder && (this.binder.getValue != null)) {\n return this.binder.getValue.call(this, el);\n } else {\n return Rivets.Util.getInputValue(el);\n }\n };\n\n return Binding;\n\n })();\n\n Rivets.ComponentBinding = (function(_super) {\n __extends(ComponentBinding, _super);\n\n function ComponentBinding(view, el, type) {\n var attribute, bindingRegExp, propertyName, token, _i, _len, _ref1, _ref2;\n this.view = view;\n this.el = el;\n this.type = type;\n this.unbind = __bind(this.unbind, this);\n this.bind = __bind(this.bind, this);\n this.locals = __bind(this.locals, this);\n this.component = this.view.components[this.type];\n this[\"static\"] = {};\n this.observers = {};\n this.upstreamObservers = {};\n bindingRegExp = view.bindingRegExp();\n _ref1 = this.el.attributes || [];\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n attribute = _ref1[_i];\n if (!bindingRegExp.test(attribute.name)) {\n propertyName = this.camelCase(attribute.name);\n token = Rivets.TypeParser.parse(attribute.value);\n if (__indexOf.call((_ref2 = this.component[\"static\"]) != null ? _ref2 : [], propertyName) >= 0) {\n this[\"static\"][propertyName] = attribute.value;\n } else if (token.type === Rivets.TypeParser.types.primitive) {\n this[\"static\"][propertyName] = token.value;\n } else {\n this.observers[propertyName] = attribute.value;\n }\n }\n }\n }\n\n ComponentBinding.prototype.sync = function() {};\n\n ComponentBinding.prototype.update = function() {};\n\n ComponentBinding.prototype.publish = function() {};\n\n ComponentBinding.prototype.locals = function() {\n var key, observer, result, value, _ref1, _ref2;\n result = {};\n _ref1 = this[\"static\"];\n for (key in _ref1) {\n value = _ref1[key];\n result[key] = value;\n }\n _ref2 = this.observers;\n for (key in _ref2) {\n observer = _ref2[key];\n result[key] = observer.value();\n }\n return result;\n };\n\n ComponentBinding.prototype.camelCase = function(string) {\n return string.replace(/-([a-z])/g, function(grouped) {\n return grouped[1].toUpperCase();\n });\n };\n\n ComponentBinding.prototype.bind = function() {\n var k, key, keypath, observer, option, options, scope, v, _base, _i, _j, _len, _len1, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;\n if (!this.bound) {\n _ref1 = this.observers;\n for (key in _ref1) {\n keypath = _ref1[key];\n this.observers[key] = this.observe(this.view.models, keypath, ((function(_this) {\n return function(key) {\n return function() {\n return _this.componentView.models[key] = _this.observers[key].value();\n };\n };\n })(this)).call(this, key));\n }\n this.bound = true;\n }\n if (this.componentView != null) {\n this.componentView.bind();\n } else {\n this.el.innerHTML = this.component.template.call(this);\n scope = this.component.initialize.call(this, this.el, this.locals());\n this.el._bound = true;\n options = {};\n _ref2 = Rivets.extensions;\n for (_i = 0, _len = _ref2.length; _i < _len; _i++) {\n option = _ref2[_i];\n options[option] = {};\n if (this.component[option]) {\n _ref3 = this.component[option];\n for (k in _ref3) {\n v = _ref3[k];\n options[option][k] = v;\n }\n }\n _ref4 = this.view[option];\n for (k in _ref4) {\n v = _ref4[k];\n if ((_base = options[option])[k] == null) {\n _base[k] = v;\n }\n }\n }\n _ref5 = Rivets.options;\n for (_j = 0, _len1 = _ref5.length; _j < _len1; _j++) {\n option = _ref5[_j];\n options[option] = (_ref6 = this.component[option]) != null ? _ref6 : this.view[option];\n }\n this.componentView = new Rivets.View(Array.prototype.slice.call(this.el.childNodes), scope, options);\n this.componentView.bind();\n _ref7 = this.observers;\n for (key in _ref7) {\n observer = _ref7[key];\n this.upstreamObservers[key] = this.observe(this.componentView.models, key, ((function(_this) {\n return function(key, observer) {\n return function() {\n return observer.setValue(_this.componentView.models[key]);\n };\n };\n })(this)).call(this, key, observer));\n }\n }\n };\n\n ComponentBinding.prototype.unbind = function() {\n var key, observer, _ref1, _ref2, _ref3;\n _ref1 = this.upstreamObservers;\n for (key in _ref1) {\n observer = _ref1[key];\n observer.unobserve();\n }\n _ref2 = this.observers;\n for (key in _ref2) {\n observer = _ref2[key];\n observer.unobserve();\n }\n return (_ref3 = this.componentView) != null ? _ref3.unbind.call(this) : void 0;\n };\n\n return ComponentBinding;\n\n })(Rivets.Binding);\n\n Rivets.TextBinding = (function(_super) {\n __extends(TextBinding, _super);\n\n function TextBinding(view, el, type, keypath, options) {\n this.view = view;\n this.el = el;\n this.type = type;\n this.keypath = keypath;\n this.options = options != null ? options : {};\n this.sync = __bind(this.sync, this);\n this.formatters = this.options.formatters || [];\n this.dependencies = [];\n this.formatterObservers = {};\n }\n\n TextBinding.prototype.binder = {\n routine: function(node, value) {\n return node.data = value != null ? value : '';\n }\n };\n\n TextBinding.prototype.sync = function() {\n return TextBinding.__super__.sync.apply(this, arguments);\n };\n\n return TextBinding;\n\n })(Rivets.Binding);\n\n Rivets[\"public\"].binders.text = function(el, value) {\n if (el.textContent != null) {\n return el.textContent = value != null ? value : '';\n } else {\n return el.innerText = value != null ? value : '';\n }\n };\n\n Rivets[\"public\"].binders.html = function(el, value) {\n return el.innerHTML = value != null ? value : '';\n };\n\n Rivets[\"public\"].binders.show = function(el, value) {\n return el.style.display = value ? '' : 'none';\n };\n\n Rivets[\"public\"].binders.hide = function(el, value) {\n return el.style.display = value ? 'none' : '';\n };\n\n Rivets[\"public\"].binders.enabled = function(el, value) {\n return el.disabled = !value;\n };\n\n Rivets[\"public\"].binders.disabled = function(el, value) {\n return el.disabled = !!value;\n };\n\n Rivets[\"public\"].binders.checked = {\n publishes: true,\n priority: 2000,\n bind: function(el) {\n return Rivets.Util.bindEvent(el, 'change', this.publish);\n },\n unbind: function(el) {\n return Rivets.Util.unbindEvent(el, 'change', this.publish);\n },\n routine: function(el, value) {\n var _ref1;\n if (el.type === 'radio') {\n return el.checked = ((_ref1 = el.value) != null ? _ref1.toString() : void 0) === (value != null ? value.toString() : void 0);\n } else {\n return el.checked = !!value;\n }\n }\n };\n\n Rivets[\"public\"].binders.unchecked = {\n publishes: true,\n priority: 2000,\n bind: function(el) {\n return Rivets.Util.bindEvent(el, 'change', this.publish);\n },\n unbind: function(el) {\n return Rivets.Util.unbindEvent(el, 'change', this.publish);\n },\n routine: function(el, value) {\n var _ref1;\n if (el.type === 'radio') {\n return el.checked = ((_ref1 = el.value) != null ? _ref1.toString() : void 0) !== (value != null ? value.toString() : void 0);\n } else {\n return el.checked = !value;\n }\n }\n };\n\n Rivets[\"public\"].binders.value = {\n publishes: true,\n priority: 3000,\n bind: function(el) {\n if (!(el.tagName === 'INPUT' && el.type === 'radio')) {\n this.event = el.tagName === 'SELECT' ? 'change' : 'input';\n return Rivets.Util.bindEvent(el, this.event, this.publish);\n }\n },\n unbind: function(el) {\n if (!(el.tagName === 'INPUT' && el.type === 'radio')) {\n return Rivets.Util.unbindEvent(el, this.event, this.publish);\n }\n },\n routine: function(el, value) {\n var o, _i, _len, _ref1, _ref2, _ref3, _results;\n if (el.tagName === 'INPUT' && el.type === 'radio') {\n return el.setAttribute('value', value);\n } else if (window.jQuery != null) {\n el = jQuery(el);\n if ((value != null ? value.toString() : void 0) !== ((_ref1 = el.val()) != null ? _ref1.toString() : void 0)) {\n return el.val(value != null ? value : '');\n }\n } else {\n if (el.type === 'select-multiple') {\n if (value != null) {\n _results = [];\n for (_i = 0, _len = el.length; _i < _len; _i++) {\n o = el[_i];\n _results.push(o.selected = (_ref2 = o.value, __indexOf.call(value, _ref2) >= 0));\n }\n return _results;\n }\n } else if ((value != null ? value.toString() : void 0) !== ((_ref3 = el.value) != null ? _ref3.toString() : void 0)) {\n return el.value = value != null ? value : '';\n }\n }\n }\n };\n\n Rivets[\"public\"].binders[\"if\"] = {\n block: true,\n priority: 4000,\n bind: function(el) {\n var attr, declaration;\n if (this.marker == null) {\n attr = [this.view.prefix, this.type].join('-').replace('--', '-');\n declaration = el.getAttribute(attr);\n this.marker = document.createComment(\" rivets: \" + this.type + \" \" + declaration + \" \");\n this.bound = false;\n el.removeAttribute(attr);\n el.parentNode.insertBefore(this.marker, el);\n return el.parentNode.removeChild(el);\n }\n },\n unbind: function() {\n if (this.nested) {\n this.nested.unbind();\n return this.bound = false;\n }\n },\n routine: function(el, value) {\n var key, model, models, _ref1;\n if (!!value === !this.bound) {\n if (value) {\n models = {};\n _ref1 = this.view.models;\n for (key in _ref1) {\n model = _ref1[key];\n models[key] = model;\n }\n (this.nested || (this.nested = new Rivets.View(el, models, this.view.options()))).bind();\n this.marker.parentNode.insertBefore(el, this.marker.nextSibling);\n return this.bound = true;\n } else {\n el.parentNode.removeChild(el);\n this.nested.unbind();\n return this.bound = false;\n }\n }\n },\n update: function(models) {\n var _ref1;\n return (_ref1 = this.nested) != null ? _ref1.update(models) : void 0;\n }\n };\n\n Rivets[\"public\"].binders.unless = {\n block: true,\n priority: 4000,\n bind: function(el) {\n return Rivets[\"public\"].binders[\"if\"].bind.call(this, el);\n },\n unbind: function() {\n return Rivets[\"public\"].binders[\"if\"].unbind.call(this);\n },\n routine: function(el, value) {\n return Rivets[\"public\"].binders[\"if\"].routine.call(this, el, !value);\n },\n update: function(models) {\n return Rivets[\"public\"].binders[\"if\"].update.call(this, models);\n }\n };\n\n Rivets[\"public\"].binders['on-*'] = {\n \"function\": true,\n priority: 1000,\n unbind: function(el) {\n if (this.handler) {\n return Rivets.Util.unbindEvent(el, this.args[0], this.handler);\n }\n },\n routine: function(el, value) {\n if (this.handler) {\n Rivets.Util.unbindEvent(el, this.args[0], this.handler);\n }\n return Rivets.Util.bindEvent(el, this.args[0], this.handler = this.eventHandler(value));\n }\n };\n\n Rivets[\"public\"].binders['each-*'] = {\n block: true,\n priority: 4000,\n bind: function(el) {\n var attr, view, _i, _len, _ref1;\n if (this.marker == null) {\n attr = [this.view.prefix, this.type].join('-').replace('--', '-');\n this.marker = document.createComment(\" rivets: \" + this.type + \" \");\n this.iterated = [];\n el.removeAttribute(attr);\n el.parentNode.insertBefore(this.marker, el);\n el.parentNode.removeChild(el);\n } else {\n _ref1 = this.iterated;\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n view = _ref1[_i];\n view.bind();\n }\n }\n },\n unbind: function(el) {\n var view, _i, _len, _ref1;\n if (this.iterated != null) {\n _ref1 = this.iterated;\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n view = _ref1[_i];\n view.unbind();\n }\n }\n },\n routine: function(el, collection) {\n var binding, data, i, index, key, model, modelName, options, previous, template, view, _i, _j, _k, _len, _len1, _len2, _ref1, _ref2, _ref3;\n modelName = this.args[0];\n collection = collection || [];\n if (this.iterated.length > collection.length) {\n _ref1 = Array(this.iterated.length - collection.length);\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n i = _ref1[_i];\n view = this.iterated.pop();\n view.unbind();\n this.marker.parentNode.removeChild(view.els[0]);\n }\n }\n for (index = _j = 0, _len1 = collection.length; _j < _len1; index = ++_j) {\n model = collection[index];\n data = {\n index: index\n };\n data[Rivets[\"public\"].iterationAlias(modelName)] = index;\n data[modelName] = model;\n if (this.iterated[index] == null) {\n _ref2 = this.view.models;\n for (key in _ref2) {\n model = _ref2[key];\n if (data[key] == null) {\n data[key] = model;\n }\n }\n previous = this.iterated.length ? this.iterated[this.iterated.length - 1].els[0] : this.marker;\n options = this.view.options();\n options.preloadData = true;\n template = el.cloneNode(true);\n view = new Rivets.View(template, data, options);\n view.bind();\n this.iterated.push(view);\n this.marker.parentNode.insertBefore(template, previous.nextSibling);\n } else if (this.iterated[index].models[modelName] !== model) {\n this.iterated[index].update(data);\n }\n }\n if (el.nodeName === 'OPTION') {\n _ref3 = this.view.bindings;\n for (_k = 0, _len2 = _ref3.length; _k < _len2; _k++) {\n binding = _ref3[_k];\n if (binding.el === this.marker.parentNode && binding.type === 'value') {\n binding.sync();\n }\n }\n }\n },\n update: function(models) {\n var data, key, model, view, _i, _len, _ref1;\n data = {};\n for (key in models) {\n model = models[key];\n if (key !== this.args[0]) {\n data[key] = model;\n }\n }\n _ref1 = this.iterated;\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n view = _ref1[_i];\n view.update(data);\n }\n }\n };\n\n Rivets[\"public\"].binders['class-*'] = function(el, value) {\n var elClass;\n elClass = \" \" + el.className + \" \";\n if (!value === (elClass.indexOf(\" \" + this.args[0] + \" \") !== -1)) {\n return el.className = value ? \"\" + el.className + \" \" + this.args[0] : elClass.replace(\" \" + this.args[0] + \" \", ' ').trim();\n }\n };\n\n Rivets[\"public\"].binders['*'] = function(el, value) {\n if (value != null) {\n return el.setAttribute(this.type, value);\n } else {\n return el.removeAttribute(this.type);\n }\n };\n\n Rivets[\"public\"].formatters['call'] = function() {\n var args, value;\n value = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];\n return value.call.apply(value, [this].concat(__slice.call(args)));\n };\n\n Rivets[\"public\"].adapters['.'] = {\n id: '_rv',\n counter: 0,\n weakmap: {},\n weakReference: function(obj) {\n var id, _base, _name;\n if (!obj.hasOwnProperty(this.id)) {\n id = this.counter++;\n Object.defineProperty(obj, this.id, {\n value: id\n });\n }\n return (_base = this.weakmap)[_name = obj[this.id]] || (_base[_name] = {\n callbacks: {}\n });\n },\n cleanupWeakReference: function(ref, id) {\n if (!Object.keys(ref.callbacks).length) {\n if (!(ref.pointers && Object.keys(ref.pointers).length)) {\n return delete this.weakmap[id];\n }\n }\n },\n stubFunction: function(obj, fn) {\n var map, original, weakmap;\n original = obj[fn];\n map = this.weakReference(obj);\n weakmap = this.weakmap;\n return obj[fn] = function() {\n var callback, k, r, response, _i, _len, _ref1, _ref2, _ref3, _ref4;\n response = original.apply(obj, arguments);\n _ref1 = map.pointers;\n for (r in _ref1) {\n k = _ref1[r];\n _ref4 = (_ref2 = (_ref3 = weakmap[r]) != null ? _ref3.callbacks[k] : void 0) != null ? _ref2 : [];\n for (_i = 0, _len = _ref4.length; _i < _len; _i++) {\n callback = _ref4[_i];\n callback();\n }\n }\n return response;\n };\n },\n observeMutations: function(obj, ref, keypath) {\n var fn, functions, map, _base, _i, _len;\n if (Array.isArray(obj)) {\n map = this.weakReference(obj);\n if (map.pointers == null) {\n map.pointers = {};\n functions = ['push', 'pop', 'shift', 'unshift', 'sort', 'reverse', 'splice'];\n for (_i = 0, _len = functions.length; _i < _len; _i++) {\n fn = functions[_i];\n this.stubFunction(obj, fn);\n }\n }\n if ((_base = map.pointers)[ref] == null) {\n _base[ref] = [];\n }\n if (__indexOf.call(map.pointers[ref], keypath) < 0) {\n return map.pointers[ref].push(keypath);\n }\n }\n },\n unobserveMutations: function(obj, ref, keypath) {\n var idx, map, pointers;\n if (Array.isArray(obj) && (obj[this.id] != null)) {\n if (map = this.weakmap[obj[this.id]]) {\n if (pointers = map.pointers[ref]) {\n if ((idx = pointers.indexOf(keypath)) >= 0) {\n pointers.splice(idx, 1);\n }\n if (!pointers.length) {\n delete map.pointers[ref];\n }\n return this.cleanupWeakReference(map, obj[this.id]);\n }\n }\n }\n },\n observe: function(obj, keypath, callback) {\n var callbacks, desc, value;\n callbacks = this.weakReference(obj).callbacks;\n if (callbacks[keypath] == null) {\n callbacks[keypath] = [];\n desc = Object.getOwnPropertyDescriptor(obj, keypath);\n if (!((desc != null ? desc.get : void 0) || (desc != null ? desc.set : void 0))) {\n value = obj[keypath];\n Object.defineProperty(obj, keypath, {\n enumerable: true,\n get: function() {\n return value;\n },\n set: (function(_this) {\n return function(newValue) {\n var cb, map, _i, _len, _ref1;\n if (newValue !== value) {\n _this.unobserveMutations(value, obj[_this.id], keypath);\n value = newValue;\n if (map = _this.weakmap[obj[_this.id]]) {\n callbacks = map.callbacks;\n if (callbacks[keypath]) {\n _ref1 = callbacks[keypath].slice();\n for (_i = 0, _len = _ref1.length; _i < _len; _i++) {\n cb = _ref1[_i];\n if (__indexOf.call(callbacks[keypath], cb) >= 0) {\n cb();\n }\n }\n }\n return _this.observeMutations(newValue, obj[_this.id], keypath);\n }\n }\n };\n })(this)\n });\n }\n }\n if (__indexOf.call(callbacks[keypath], callback) < 0) {\n callbacks[keypath].push(callback);\n }\n return this.observeMutations(obj[keypath], obj[this.id], keypath);\n },\n unobserve: function(obj, keypath, callback) {\n var callbacks, idx, map;\n if (map = this.weakmap[obj[this.id]]) {\n if (callbacks = map.callbacks[keypath]) {\n if ((idx = callbacks.indexOf(callback)) >= 0) {\n callbacks.splice(idx, 1);\n if (!callbacks.length) {\n delete map.callbacks[keypath];\n this.unobserveMutations(obj[keypath], obj[this.id], keypath);\n }\n }\n return this.cleanupWeakReference(map, obj[this.id]);\n }\n }\n },\n get: function(obj, keypath) {\n return obj[keypath];\n },\n set: function(obj, keypath, value) {\n return obj[keypath] = value;\n }\n };\n\n Rivets.factory = function(sightglass) {\n Rivets.sightglass = sightglass;\n Rivets[\"public\"]._ = Rivets;\n return Rivets[\"public\"];\n };\n\n if (typeof (typeof module !== \"undefined\" && module !== null ? module.exports : void 0) === 'object') {\n module.exports = Rivets.factory(require('sightglass'));\n } else if (typeof define === 'function' && define.amd) {\n define(['sightglass'], function(sightglass) {\n return this.rivets = Rivets.factory(sightglass);\n });\n } else {\n this.rivets = Rivets.factory(sightglass);\n }\n\n}).call(this);\n","(function() {\n // Public sightglass interface.\n function sightglass(obj, keypath, callback, options) {\n return new Observer(obj, keypath, callback, options)\n }\n\n // Batteries not included.\n sightglass.adapters = {}\n\n // Constructs a new keypath observer and kicks things off.\n function Observer(obj, keypath, callback, options) {\n this.options = options || {}\n this.options.adapters = this.options.adapters || {}\n this.obj = obj\n this.keypath = keypath\n this.callback = callback\n this.objectPath = []\n this.update = this.update.bind(this)\n this.parse()\n\n if (isObject(this.target = this.realize())) {\n this.set(true, this.key, this.target, this.callback)\n }\n }\n\n // Tokenizes the provided keypath string into interface + path tokens for the\n // observer to work with.\n Observer.tokenize = function(keypath, interfaces, root) {\n var tokens = []\n var current = {i: root, path: ''}\n var index, chr\n\n for (index = 0; index < keypath.length; index++) {\n chr = keypath.charAt(index)\n\n if (!!~interfaces.indexOf(chr)) {\n tokens.push(current)\n current = {i: chr, path: ''}\n } else {\n current.path += chr\n }\n }\n\n tokens.push(current)\n return tokens\n }\n\n // Parses the keypath using the interfaces defined on the view. Sets variables\n // for the tokenized keypath as well as the end key.\n Observer.prototype.parse = function() {\n var interfaces = this.interfaces()\n var root, path\n\n if (!interfaces.length) {\n error('Must define at least one adapter interface.')\n }\n\n if (!!~interfaces.indexOf(this.keypath[0])) {\n root = this.keypath[0]\n path = this.keypath.substr(1)\n } else {\n if (typeof (root = this.options.root || sightglass.root) === 'undefined') {\n error('Must define a default root adapter.')\n }\n\n path = this.keypath\n }\n\n this.tokens = Observer.tokenize(path, interfaces, root)\n this.key = this.tokens.pop()\n }\n\n // Realizes the full keypath, attaching observers for every key and correcting\n // old observers to any changed objects in the keypath.\n Observer.prototype.realize = function() {\n var current = this.obj\n var unreached = false\n var prev\n\n this.tokens.forEach(function(token, index) {\n if (isObject(current)) {\n if (typeof this.objectPath[index] !== 'undefined') {\n if (current !== (prev = this.objectPath[index])) {\n this.set(false, token, prev, this.update)\n this.set(true, token, current, this.update)\n this.objectPath[index] = current\n }\n } else {\n this.set(true, token, current, this.update)\n this.objectPath[index] = current\n }\n\n current = this.get(token, current)\n } else {\n if (unreached === false) {\n unreached = index\n }\n\n if (prev = this.objectPath[index]) {\n this.set(false, token, prev, this.update)\n }\n }\n }, this)\n\n if (unreached !== false) {\n this.objectPath.splice(unreached)\n }\n\n return current\n }\n\n // Updates the keypath. This is called when any intermediary key is changed.\n Observer.prototype.update = function() {\n var next, oldValue\n\n if ((next = this.realize()) !== this.target) {\n if (isObject(this.target)) {\n this.set(false, this.key, this.target, this.callback)\n }\n\n if (isObject(next)) {\n this.set(true, this.key, next, this.callback)\n }\n\n oldValue = this.value()\n this.target = next\n\n // Always call callback if value is a function. If not a function, call callback only if value changed\n if (this.value() instanceof Function || this.value() !== oldValue) this.callback()\n }\n }\n\n // Reads the current end value of the observed keypath. Returns undefined if\n // the full keypath is unreachable.\n Observer.prototype.value = function() {\n if (isObject(this.target)) {\n return this.get(this.key, this.target)\n }\n }\n\n // Sets the current end value of the observed keypath. Calling setValue when\n // the full keypath is unreachable is a no-op.\n Observer.prototype.setValue = function(value) {\n if (isObject(this.target)) {\n this.adapter(this.key).set(this.target, this.key.path, value)\n }\n }\n\n // Gets the provided key on an object.\n Observer.prototype.get = function(key, obj) {\n return this.adapter(key).get(obj, key.path)\n }\n\n // Observes or unobserves a callback on the object using the provided key.\n Observer.prototype.set = function(active, key, obj, callback) {\n var action = active ? 'observe' : 'unobserve'\n this.adapter(key)[action](obj, key.path, callback)\n }\n\n // Returns an array of all unique adapter interfaces available.\n Observer.prototype.interfaces = function() {\n var interfaces = Object.keys(this.options.adapters)\n\n Object.keys(sightglass.adapters).forEach(function(i) {\n if (!~interfaces.indexOf(i)) {\n interfaces.push(i)\n }\n })\n\n return interfaces\n }\n\n // Convenience function to grab the adapter for a specific key.\n Observer.prototype.adapter = function(key) {\n return this.options.adapters[key.i] ||\n sightglass.adapters[key.i]\n }\n\n // Unobserves the entire keypath.\n Observer.prototype.unobserve = function() {\n var obj\n\n this.tokens.forEach(function(token, index) {\n if (obj = this.objectPath[index]) {\n this.set(false, token, obj, this.update)\n }\n }, this)\n\n if (isObject(this.target)) {\n this.set(false, this.key, this.target, this.callback)\n }\n }\n\n // Check if a value is an object than can be observed.\n function isObject(obj) {\n return typeof obj === 'object' && obj !== null\n }\n\n // Error thrower.\n function error(message) {\n throw new Error('[sightglass] ' + message)\n }\n\n // Export module for Node and the browser.\n if (typeof module !== 'undefined' && module.exports) {\n module.exports = sightglass\n } else if (typeof define === 'function' && define.amd) {\n define([], function() {\n return this.sightglass = sightglass\n })\n } else {\n this.sightglass = sightglass\n }\n}).call(this);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","/**\n * Before you edit these, read the documentation on how these files are compiled:\n * https://docs.phpvms.net/developers/building-assets\n *\n * Edits here don't take place until you compile these assets and then upload them.\n */\n\n/**\n * Admin stuff needed\n */\n\nrequire('./../bootstrap');\n"],"sourceRoot":""} |