.', list[i]);\n }\n }\n addAttr(el, name, JSON.stringify(value), list[i]); // #6887 firefox doesn't update muted state if set via attribute\n // even immediately after element creation\n\n if (!el.component && name === 'muted' && platformMustUseProp(el.tag, el.attrsMap.type, name)) {\n addProp(el, name, 'true', list[i]);\n }\n }\n }\n }\n\n function checkInFor(el) {\n var parent = el;\n\n while (parent) {\n if (parent.for !== undefined) {\n return true;\n }\n\n parent = parent.parent;\n }\n\n return false;\n }\n\n function parseModifiers(name) {\n var match = name.match(modifierRE);\n\n if (match) {\n var ret = {};\n match.forEach(function (m) {\n ret[m.slice(1)] = true;\n });\n return ret;\n }\n }\n\n function makeAttrsMap(attrs) {\n var map = {};\n\n for (var i = 0, l = attrs.length; i < l; i++) {\n if (map[attrs[i].name] && !isIE && !isEdge) {\n warn$2('duplicate attribute: ' + attrs[i].name, attrs[i]);\n }\n\n map[attrs[i].name] = attrs[i].value;\n }\n\n return map;\n } // for script (e.g. type=\"x/template\") or style, do not decode content\n\n\n function isTextTag(el) {\n return el.tag === 'script' || el.tag === 'style';\n }\n\n function isForbiddenTag(el) {\n return el.tag === 'style' || el.tag === 'script' && (!el.attrsMap.type || el.attrsMap.type === 'text/javascript');\n }\n\n var ieNSBug = /^xmlns:NS\\d+/;\n var ieNSPrefix = /^NS\\d+:/;\n /* istanbul ignore next */\n\n function guardIESVGBug(attrs) {\n var res = [];\n\n for (var i = 0; i < attrs.length; i++) {\n var attr = attrs[i];\n\n if (!ieNSBug.test(attr.name)) {\n attr.name = attr.name.replace(ieNSPrefix, '');\n res.push(attr);\n }\n }\n\n return res;\n }\n\n function checkForAliasModel(el, value) {\n var _el = el;\n\n while (_el) {\n if (_el.for && _el.alias === value) {\n warn$2(\"<\" + el.tag + \" v-model=\\\"\" + value + \"\\\">: \" + \"You are binding v-model directly to a v-for iteration alias. \" + \"This will not be able to modify the v-for source array because \" + \"writing to the alias is like modifying a function local variable. \" + \"Consider using an array of objects and use v-model on an object property instead.\", el.rawAttrsMap['v-model']);\n }\n\n _el = _el.parent;\n }\n }\n /* */\n\n\n function preTransformNode(el, options) {\n if (el.tag === 'input') {\n var map = el.attrsMap;\n\n if (!map['v-model']) {\n return;\n }\n\n var typeBinding;\n\n if (map[':type'] || map['v-bind:type']) {\n typeBinding = getBindingAttr(el, 'type');\n }\n\n if (!map.type && !typeBinding && map['v-bind']) {\n typeBinding = \"(\" + map['v-bind'] + \").type\";\n }\n\n if (typeBinding) {\n var ifCondition = getAndRemoveAttr(el, 'v-if', true);\n var ifConditionExtra = ifCondition ? \"&&(\" + ifCondition + \")\" : \"\";\n var hasElse = getAndRemoveAttr(el, 'v-else', true) != null;\n var elseIfCondition = getAndRemoveAttr(el, 'v-else-if', true); // 1. checkbox\n\n var branch0 = cloneASTElement(el); // process for on the main node\n\n processFor(branch0);\n addRawAttr(branch0, 'type', 'checkbox');\n processElement(branch0, options);\n branch0.processed = true; // prevent it from double-processed\n\n branch0.if = \"(\" + typeBinding + \")==='checkbox'\" + ifConditionExtra;\n addIfCondition(branch0, {\n exp: branch0.if,\n block: branch0\n }); // 2. add radio else-if condition\n\n var branch1 = cloneASTElement(el);\n getAndRemoveAttr(branch1, 'v-for', true);\n addRawAttr(branch1, 'type', 'radio');\n processElement(branch1, options);\n addIfCondition(branch0, {\n exp: \"(\" + typeBinding + \")==='radio'\" + ifConditionExtra,\n block: branch1\n }); // 3. other\n\n var branch2 = cloneASTElement(el);\n getAndRemoveAttr(branch2, 'v-for', true);\n addRawAttr(branch2, ':type', typeBinding);\n processElement(branch2, options);\n addIfCondition(branch0, {\n exp: ifCondition,\n block: branch2\n });\n\n if (hasElse) {\n branch0.else = true;\n } else if (elseIfCondition) {\n branch0.elseif = elseIfCondition;\n }\n\n return branch0;\n }\n }\n }\n\n function cloneASTElement(el) {\n return createASTElement(el.tag, el.attrsList.slice(), el.parent);\n }\n\n var model$1 = {\n preTransformNode: preTransformNode\n };\n var modules$1 = [klass$1, style$1, model$1];\n /* */\n\n function text(el, dir) {\n if (dir.value) {\n addProp(el, 'textContent', \"_s(\" + dir.value + \")\", dir);\n }\n }\n /* */\n\n\n function html(el, dir) {\n if (dir.value) {\n addProp(el, 'innerHTML', \"_s(\" + dir.value + \")\", dir);\n }\n }\n\n var directives$1 = {\n model: model,\n text: text,\n html: html\n };\n /* */\n\n var baseOptions = {\n expectHTML: true,\n modules: modules$1,\n directives: directives$1,\n isPreTag: isPreTag,\n isUnaryTag: isUnaryTag,\n mustUseProp: mustUseProp,\n canBeLeftOpenTag: canBeLeftOpenTag,\n isReservedTag: isReservedTag,\n getTagNamespace: getTagNamespace,\n staticKeys: genStaticKeys(modules$1)\n };\n /* */\n\n var isStaticKey;\n var isPlatformReservedTag;\n var genStaticKeysCached = cached(genStaticKeys$1);\n /**\n * Goal of the optimizer: walk the generated template AST tree\n * and detect sub-trees that are purely static, i.e. parts of\n * the DOM that never needs to change.\n *\n * Once we detect these sub-trees, we can:\n *\n * 1. Hoist them into constants, so that we no longer need to\n * create fresh nodes for them on each re-render;\n * 2. Completely skip them in the patching process.\n */\n\n function optimize(root, options) {\n if (!root) {\n return;\n }\n\n isStaticKey = genStaticKeysCached(options.staticKeys || '');\n isPlatformReservedTag = options.isReservedTag || no; // first pass: mark all non-static nodes.\n\n markStatic$1(root); // second pass: mark static roots.\n\n markStaticRoots(root, false);\n }\n\n function genStaticKeys$1(keys) {\n return makeMap('type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap' + (keys ? ',' + keys : ''));\n }\n\n function markStatic$1(node) {\n node.static = isStatic(node);\n\n if (node.type === 1) {\n // do not make component slot content static. this avoids\n // 1. components not able to mutate slot nodes\n // 2. static slot content fails for hot-reloading\n if (!isPlatformReservedTag(node.tag) && node.tag !== 'slot' && node.attrsMap['inline-template'] == null) {\n return;\n }\n\n for (var i = 0, l = node.children.length; i < l; i++) {\n var child = node.children[i];\n markStatic$1(child);\n\n if (!child.static) {\n node.static = false;\n }\n }\n\n if (node.ifConditions) {\n for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {\n var block = node.ifConditions[i$1].block;\n markStatic$1(block);\n\n if (!block.static) {\n node.static = false;\n }\n }\n }\n }\n }\n\n function markStaticRoots(node, isInFor) {\n if (node.type === 1) {\n if (node.static || node.once) {\n node.staticInFor = isInFor;\n } // For a node to qualify as a static root, it should have children that\n // are not just static text. Otherwise the cost of hoisting out will\n // outweigh the benefits and it's better off to just always render it fresh.\n\n\n if (node.static && node.children.length && !(node.children.length === 1 && node.children[0].type === 3)) {\n node.staticRoot = true;\n return;\n } else {\n node.staticRoot = false;\n }\n\n if (node.children) {\n for (var i = 0, l = node.children.length; i < l; i++) {\n markStaticRoots(node.children[i], isInFor || !!node.for);\n }\n }\n\n if (node.ifConditions) {\n for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {\n markStaticRoots(node.ifConditions[i$1].block, isInFor);\n }\n }\n }\n }\n\n function isStatic(node) {\n if (node.type === 2) {\n // expression\n return false;\n }\n\n if (node.type === 3) {\n // text\n return true;\n }\n\n return !!(node.pre || !node.hasBindings && // no dynamic bindings\n !node.if && !node.for && // not v-if or v-for or v-else\n !isBuiltInTag(node.tag) && // not a built-in\n isPlatformReservedTag(node.tag) && // not a component\n !isDirectChildOfTemplateFor(node) && Object.keys(node).every(isStaticKey));\n }\n\n function isDirectChildOfTemplateFor(node) {\n while (node.parent) {\n node = node.parent;\n\n if (node.tag !== 'template') {\n return false;\n }\n\n if (node.for) {\n return true;\n }\n }\n\n return false;\n }\n /* */\n\n\n var fnExpRE = /^([\\w$_]+|\\([^)]*?\\))\\s*=>|^function(?:\\s+[\\w$]+)?\\s*\\(/;\n var fnInvokeRE = /\\([^)]*?\\);*$/;\n var simplePathRE = /^[A-Za-z_$][\\w$]*(?:\\.[A-Za-z_$][\\w$]*|\\['[^']*?']|\\[\"[^\"]*?\"]|\\[\\d+]|\\[[A-Za-z_$][\\w$]*])*$/; // KeyboardEvent.keyCode aliases\n\n var keyCodes = {\n esc: 27,\n tab: 9,\n enter: 13,\n space: 32,\n up: 38,\n left: 37,\n right: 39,\n down: 40,\n 'delete': [8, 46]\n }; // KeyboardEvent.key aliases\n\n var keyNames = {\n // #7880: IE11 and Edge use `Esc` for Escape key name.\n esc: ['Esc', 'Escape'],\n tab: 'Tab',\n enter: 'Enter',\n // #9112: IE11 uses `Spacebar` for Space key name.\n space: [' ', 'Spacebar'],\n // #7806: IE11 uses key names without `Arrow` prefix for arrow keys.\n up: ['Up', 'ArrowUp'],\n left: ['Left', 'ArrowLeft'],\n right: ['Right', 'ArrowRight'],\n down: ['Down', 'ArrowDown'],\n // #9112: IE11 uses `Del` for Delete key name.\n 'delete': ['Backspace', 'Delete', 'Del']\n }; // #4868: modifiers that prevent the execution of the listener\n // need to explicitly return null so that we can determine whether to remove\n // the listener for .once\n\n var genGuard = function genGuard(condition) {\n return \"if(\" + condition + \")return null;\";\n };\n\n var modifierCode = {\n stop: '$event.stopPropagation();',\n prevent: '$event.preventDefault();',\n self: genGuard(\"$event.target !== $event.currentTarget\"),\n ctrl: genGuard(\"!$event.ctrlKey\"),\n shift: genGuard(\"!$event.shiftKey\"),\n alt: genGuard(\"!$event.altKey\"),\n meta: genGuard(\"!$event.metaKey\"),\n left: genGuard(\"'button' in $event && $event.button !== 0\"),\n middle: genGuard(\"'button' in $event && $event.button !== 1\"),\n right: genGuard(\"'button' in $event && $event.button !== 2\")\n };\n\n function genHandlers(events, isNative) {\n var prefix = isNative ? 'nativeOn:' : 'on:';\n var staticHandlers = \"\";\n var dynamicHandlers = \"\";\n\n for (var name in events) {\n var handlerCode = genHandler(events[name]);\n\n if (events[name] && events[name].dynamic) {\n dynamicHandlers += name + \",\" + handlerCode + \",\";\n } else {\n staticHandlers += \"\\\"\" + name + \"\\\":\" + handlerCode + \",\";\n }\n }\n\n staticHandlers = \"{\" + staticHandlers.slice(0, -1) + \"}\";\n\n if (dynamicHandlers) {\n return prefix + \"_d(\" + staticHandlers + \",[\" + dynamicHandlers.slice(0, -1) + \"])\";\n } else {\n return prefix + staticHandlers;\n }\n }\n\n function genHandler(handler) {\n if (!handler) {\n return 'function(){}';\n }\n\n if (Array.isArray(handler)) {\n return \"[\" + handler.map(function (handler) {\n return genHandler(handler);\n }).join(',') + \"]\";\n }\n\n var isMethodPath = simplePathRE.test(handler.value);\n var isFunctionExpression = fnExpRE.test(handler.value);\n var isFunctionInvocation = simplePathRE.test(handler.value.replace(fnInvokeRE, ''));\n\n if (!handler.modifiers) {\n if (isMethodPath || isFunctionExpression) {\n return handler.value;\n }\n\n return \"function($event){\" + (isFunctionInvocation ? \"return \" + handler.value : handler.value) + \"}\"; // inline statement\n } else {\n var code = '';\n var genModifierCode = '';\n var keys = [];\n\n for (var key in handler.modifiers) {\n if (modifierCode[key]) {\n genModifierCode += modifierCode[key]; // left/right\n\n if (keyCodes[key]) {\n keys.push(key);\n }\n } else if (key === 'exact') {\n var modifiers = handler.modifiers;\n genModifierCode += genGuard(['ctrl', 'shift', 'alt', 'meta'].filter(function (keyModifier) {\n return !modifiers[keyModifier];\n }).map(function (keyModifier) {\n return \"$event.\" + keyModifier + \"Key\";\n }).join('||'));\n } else {\n keys.push(key);\n }\n }\n\n if (keys.length) {\n code += genKeyFilter(keys);\n } // Make sure modifiers like prevent and stop get executed after key filtering\n\n\n if (genModifierCode) {\n code += genModifierCode;\n }\n\n var handlerCode = isMethodPath ? \"return \" + handler.value + \".apply(null, arguments)\" : isFunctionExpression ? \"return (\" + handler.value + \").apply(null, arguments)\" : isFunctionInvocation ? \"return \" + handler.value : handler.value;\n return \"function($event){\" + code + handlerCode + \"}\";\n }\n }\n\n function genKeyFilter(keys) {\n return (// make sure the key filters only apply to KeyboardEvents\n // #9441: can't use 'keyCode' in $event because Chrome autofill fires fake\n // key events that do not have keyCode property...\n \"if(!$event.type.indexOf('key')&&\" + keys.map(genFilterCode).join('&&') + \")return null;\"\n );\n }\n\n function genFilterCode(key) {\n var keyVal = parseInt(key, 10);\n\n if (keyVal) {\n return \"$event.keyCode!==\" + keyVal;\n }\n\n var keyCode = keyCodes[key];\n var keyName = keyNames[key];\n return \"_k($event.keyCode,\" + JSON.stringify(key) + \",\" + JSON.stringify(keyCode) + \",\" + \"$event.key,\" + \"\" + JSON.stringify(keyName) + \")\";\n }\n /* */\n\n\n function on(el, dir) {\n if (dir.modifiers) {\n warn(\"v-on without argument does not support modifiers.\");\n }\n\n el.wrapListeners = function (code) {\n return \"_g(\" + code + \",\" + dir.value + \")\";\n };\n }\n /* */\n\n\n function bind$1(el, dir) {\n el.wrapData = function (code) {\n return \"_b(\" + code + \",'\" + el.tag + \"',\" + dir.value + \",\" + (dir.modifiers && dir.modifiers.prop ? 'true' : 'false') + (dir.modifiers && dir.modifiers.sync ? ',true' : '') + \")\";\n };\n }\n /* */\n\n\n var baseDirectives = {\n on: on,\n bind: bind$1,\n cloak: noop\n };\n /* */\n\n var CodegenState = function CodegenState(options) {\n this.options = options;\n this.warn = options.warn || baseWarn;\n this.transforms = pluckModuleFunction(options.modules, 'transformCode');\n this.dataGenFns = pluckModuleFunction(options.modules, 'genData');\n this.directives = extend(extend({}, baseDirectives), options.directives);\n var isReservedTag = options.isReservedTag || no;\n\n this.maybeComponent = function (el) {\n return !!el.component || !isReservedTag(el.tag);\n };\n\n this.onceId = 0;\n this.staticRenderFns = [];\n this.pre = false;\n };\n\n function generate(ast, options) {\n var state = new CodegenState(options); // fix #11483, Root level \n\n","import { render, staticRenderFns } from \"./dialog-box.vue?vue&type=template&id=802d515c&scoped=true&\"\nimport script from \"./dialog-box.vue?vue&type=script&lang=js&\"\nexport * from \"./dialog-box.vue?vue&type=script&lang=js&\"\nimport style0 from \"./dialog-box.vue?vue&type=style&index=0&id=802d515c&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"802d515c\",\n null\n \n)\n\nexport default component.exports","/**\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","'use strict';\n\nvar utils = require('./utils');\n\nvar bind = require('./helpers/bind');\n\nvar Axios = require('./core/Axios');\n\nvar mergeConfig = require('./core/mergeConfig');\n\nvar defaults = require('./defaults');\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 */\n\n\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context); // Copy axios.prototype to instance\n\n utils.extend(instance, Axios.prototype, context); // Copy context to instance\n\n utils.extend(instance, context);\n return instance;\n} // Create the default instance to be exported\n\n\nvar axios = createInstance(defaults); // Expose Axios class to allow class inheritance\n\naxios.Axios = Axios; // Factory for creating new instances\n\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n}; // Expose Cancel & CancelToken\n\n\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel'); // Expose all/spread\n\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = require('./helpers/spread'); // Expose isAxiosError\n\naxios.isAxiosError = require('./helpers/isAxiosError');\nmodule.exports = axios; // Allow use of default import syntax in TypeScript\n\nmodule.exports.default = axios;","'use strict';\n\nvar utils = require('./../utils');\n\nvar buildURL = require('../helpers/buildURL');\n\nvar InterceptorManager = require('./InterceptorManager');\n\nvar dispatchRequest = require('./dispatchRequest');\n\nvar mergeConfig = require('./mergeConfig');\n\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\n\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\n\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); // Set config.method\n\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 var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')\n }, false);\n } // filter out skipped interceptors\n\n\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n promise = Promise.resolve(config);\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n var newConfig = config;\n\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.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}; // Provide aliases for supported request methods\n\n\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});\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});\nmodule.exports = Axios;","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\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 */\n\n\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\n\n\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\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 */\n\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;","'use strict';\n\nvar utils = require('./../utils');\n\nvar transformData = require('./transformData');\n\nvar isCancel = require('../cancel/isCancel');\n\nvar defaults = require('../defaults');\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\n\n\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\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 */\n\n\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config); // Ensure headers exist\n\n config.headers = config.headers || {}; // Transform request data\n\n config.data = transformData.call(config, config.data, config.headers, config.transformRequest); // Flatten headers\n\n config.headers = utils.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);\n utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) {\n delete config.headers[method];\n });\n var adapter = config.adapter || defaults.adapter;\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config); // Transform response data\n\n response.data = transformData.call(config, response.data, response.headers, config.transformResponse);\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config); // Transform response data\n\n if (reason && reason.response) {\n reason.response.data = transformData.call(config, reason.response.data, reason.response.headers, config.transformResponse);\n }\n }\n\n return Promise.reject(reason);\n });\n};","'use strict';\n\nvar utils = require('./../utils');\n\nvar defaults = require('./../defaults');\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 */\n\n\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n return data;\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};","'use strict';\n\nvar createError = require('./createError');\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 */\n\n\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError('Request failed with status code ' + response.status, response.config, null, response.request, response));\n }\n};","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = utils.isStandardBrowserEnv() ? // Standard browser envs support document.cookie\nfunction 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 read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return match ? decodeURIComponent(match[3]) : null;\n },\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n}() : // Non standard browser env (web workers, react-native) lack needed support.\nfunction nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() {\n return null;\n },\n remove: function remove() {}\n };\n}();","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\n\nvar combineURLs = require('../helpers/combineURLs');\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 */\n\n\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n\n return requestedURL;\n};","'use strict';\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 */\n\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"
://\" 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};","'use strict';\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 */\n\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '') : baseURL;\n};","'use strict';\n\nvar utils = require('./../utils'); // Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\n\n\nvar ignoreDuplicateOf = ['age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent'];\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 */\n\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) {\n return parsed;\n }\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\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 return parsed;\n};","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = utils.isStandardBrowserEnv() ? // 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.\nfunction standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\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\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); // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n\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) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\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\n return function isURLSameOrigin(requestURL) {\n var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;\n return parsed.protocol === originURL.protocol && parsed.host === originURL.host;\n };\n}() : // Non standard browser envs (web workers, react-native) lack needed support.\nfunction nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n}();","'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar pkg = require('./../../package.json');\n\nvar validators = {}; // eslint-disable-next-line func-names\n\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function (type, i) {\n validators[type] = function validator(thing) {\n return _typeof(thing) === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\nvar deprecatedWarnings = {};\nvar currentVerArr = pkg.version.split('.');\n/**\n * Compare package versions\n * @param {string} version\n * @param {string?} thanVersion\n * @returns {boolean}\n */\n\nfunction isOlderVersion(version, thanVersion) {\n var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;\n var destVer = version.split('.');\n\n for (var i = 0; i < 3; i++) {\n if (pkgVersionArr[i] > destVer[i]) {\n return true;\n } else if (pkgVersionArr[i] < destVer[i]) {\n return false;\n }\n }\n\n return false;\n}\n/**\n * Transitional option validator\n * @param {function|boolean?} validator\n * @param {string?} version\n * @param {string} message\n * @returns {function}\n */\n\n\nvalidators.transitional = function transitional(validator, version, message) {\n var isDeprecated = version && isOlderVersion(version);\n\n function formatMessage(opt, desc) {\n return '[Axios v' + pkg.version + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n } // eslint-disable-next-line func-names\n\n\n return function (value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed in ' + version));\n }\n\n if (isDeprecated && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true; // eslint-disable-next-line no-console\n\n console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (_typeof(options) !== 'object') {\n throw new TypeError('options must be an object');\n }\n\n var keys = Object.keys(options);\n var i = keys.length;\n\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n\n continue;\n }\n\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n isOlderVersion: isOlderVersion,\n assertOptions: assertOptions,\n validators: validators\n};","'use strict';\n\nvar Cancel = require('./Cancel');\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 */\n\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 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 * Throws a `Cancel` if cancellation has been requested.\n */\n\n\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n\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;","'use strict';\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 */\n\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};","'use strict';\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 */\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nmodule.exports = function isAxiosError(payload) {\n return _typeof(payload) === 'object' && payload.isAxiosError === true;\n};","var scope = typeof global !== \"undefined\" && global || typeof self !== \"undefined\" && self || window;\nvar apply = Function.prototype.apply; // DOM APIs, for completeness\n\nexports.setTimeout = function () {\n return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\n};\n\nexports.setInterval = function () {\n return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\n};\n\nexports.clearTimeout = exports.clearInterval = function (timeout) {\n if (timeout) {\n timeout.close();\n }\n};\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\n\nTimeout.prototype.unref = Timeout.prototype.ref = function () {};\n\nTimeout.prototype.close = function () {\n this._clearFn.call(scope, this._id);\n}; // Does not start the time, just sets up the members needed.\n\n\nexports.enroll = function (item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function (item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function (item) {\n clearTimeout(item._idleTimeoutId);\n var msecs = item._idleTimeout;\n\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout) item._onTimeout();\n }, msecs);\n }\n}; // setimmediate attaches itself to the global object\n\n\nrequire(\"setimmediate\"); // On some exotic environments, it's not clear which object `setimmediate` was\n// able to install onto. Search each possibility in the same order as the\n// `setimmediate` library.\n\n\nexports.setImmediate = typeof self !== \"undefined\" && self.setImmediate || typeof global !== \"undefined\" && global.setImmediate || this && this.setImmediate;\nexports.clearImmediate = typeof self !== \"undefined\" && self.clearImmediate || typeof global !== \"undefined\" && global.clearImmediate || this && this.clearImmediate;","module.exports = function (module) {\n if (!module.webpackPolyfill) {\n module.deprecate = function () {};\n\n module.paths = []; // module.parent = undefined by default\n\n if (!module.children) module.children = [];\n Object.defineProperty(module, \"loaded\", {\n enumerable: true,\n get: function get() {\n return module.l;\n }\n });\n Object.defineProperty(module, \"id\", {\n enumerable: true,\n get: function get() {\n return module.i;\n }\n });\n module.webpackPolyfill = 1;\n }\n\n return module;\n};","(function (global, undefined) {\n \"use strict\";\n\n if (global.setImmediate) {\n return;\n }\n\n var nextHandle = 1; // Spec says greater than zero\n\n var tasksByHandle = {};\n var currentlyRunningATask = false;\n var doc = global.document;\n var registerImmediate;\n\n function setImmediate(callback) {\n // Callback can either be a function or a string\n if (typeof callback !== \"function\") {\n callback = new Function(\"\" + callback);\n } // Copy function arguments\n\n\n var args = new Array(arguments.length - 1);\n\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i + 1];\n } // Store and register the task\n\n\n var task = {\n callback: callback,\n args: args\n };\n tasksByHandle[nextHandle] = task;\n registerImmediate(nextHandle);\n return nextHandle++;\n }\n\n function clearImmediate(handle) {\n delete tasksByHandle[handle];\n }\n\n function run(task) {\n var callback = task.callback;\n var args = task.args;\n\n switch (args.length) {\n case 0:\n callback();\n break;\n\n case 1:\n callback(args[0]);\n break;\n\n case 2:\n callback(args[0], args[1]);\n break;\n\n case 3:\n callback(args[0], args[1], args[2]);\n break;\n\n default:\n callback.apply(undefined, args);\n break;\n }\n }\n\n function runIfPresent(handle) {\n // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n // So if we're currently running a task, we'll need to delay this invocation.\n if (currentlyRunningATask) {\n // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n // \"too much recursion\" error.\n setTimeout(runIfPresent, 0, handle);\n } else {\n var task = tasksByHandle[handle];\n\n if (task) {\n currentlyRunningATask = true;\n\n try {\n run(task);\n } finally {\n clearImmediate(handle);\n currentlyRunningATask = false;\n }\n }\n }\n }\n\n function installNextTickImplementation() {\n registerImmediate = function registerImmediate(handle) {\n process.nextTick(function () {\n runIfPresent(handle);\n });\n };\n }\n\n function canUsePostMessage() {\n // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n // where `global.postMessage` means something completely different and can't be used for this purpose.\n if (global.postMessage && !global.importScripts) {\n var postMessageIsAsynchronous = true;\n var oldOnMessage = global.onmessage;\n\n global.onmessage = function () {\n postMessageIsAsynchronous = false;\n };\n\n global.postMessage(\"\", \"*\");\n global.onmessage = oldOnMessage;\n return postMessageIsAsynchronous;\n }\n }\n\n function installPostMessageImplementation() {\n // Installs an event handler on `global` for the `message` event: see\n // * https://developer.mozilla.org/en/DOM/window.postMessage\n // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n var messagePrefix = \"setImmediate$\" + Math.random() + \"$\";\n\n var onGlobalMessage = function onGlobalMessage(event) {\n if (event.source === global && typeof event.data === \"string\" && event.data.indexOf(messagePrefix) === 0) {\n runIfPresent(+event.data.slice(messagePrefix.length));\n }\n };\n\n if (global.addEventListener) {\n global.addEventListener(\"message\", onGlobalMessage, false);\n } else {\n global.attachEvent(\"onmessage\", onGlobalMessage);\n }\n\n registerImmediate = function registerImmediate(handle) {\n global.postMessage(messagePrefix + handle, \"*\");\n };\n }\n\n function installMessageChannelImplementation() {\n var channel = new MessageChannel();\n\n channel.port1.onmessage = function (event) {\n var handle = event.data;\n runIfPresent(handle);\n };\n\n registerImmediate = function registerImmediate(handle) {\n channel.port2.postMessage(handle);\n };\n }\n\n function installReadyStateChangeImplementation() {\n var html = doc.documentElement;\n\n registerImmediate = function registerImmediate(handle) {\n // Create a \n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./shop.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./shop.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./shop.vue?vue&type=template&id=48e16086&scoped=true&\"\nimport script from \"./shop.vue?vue&type=script&lang=js&\"\nexport * from \"./shop.vue?vue&type=script&lang=js&\"\nimport style0 from \"./shop.vue?vue&type=style&index=0&id=48e16086&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"48e16086\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"accordion\",attrs:{\"id\":\"accordion-addresses\"}},_vm._l((_vm.addresses),function(address,index){return _c('div',{staticClass:\"accordion-item rounded shadow mb-4\"},[_c('h2',{staticClass:\"accordion-header position-relative\",attrs:{\"id\":\"addresses-heading-<%= index %>\"}},[_c('button',{staticClass:\"accordion-button border-0 bg-light collapsed\",attrs:{\"type\":\"button\",\"data-bs-toggle\":\"collapse\",\"data-bs-target\":'#addresses-collapse-' + index,\"aria-expanded\":\"false\",\"aria-controls\":'addresses-collapse-' + index}},[_vm._v(\"\\n \"+_vm._s(address.display_name)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"eron-accordion-custom-button-container\"},[_c('a',{staticClass:\"text-primary fw-bold me-2\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.editAddress(address.path)}}},[_c('i',{staticClass:\"uil uil-edit text-primary h5 mb-0\"})]),_vm._v(\" \"),_c('a',{staticClass:\"text-primary fw-bold\",attrs:{\"href\":address.path,\"data-confirm\":\"Biztosan törölni szeretné a címet?\",\"data-method\":\"delete\"}},[_c('i',{staticClass:\"uil uil-trash text-primary h5 mb-0\"})])])]),_vm._v(\" \"),_c('div',{staticClass:\"accordion-collapse border-0 collapse\",attrs:{\"id\":'addresses-collapse-' + index,\"aria-labelledby\":'addresses-heading-' + index,\"data-bs-parent\":\"#accordion-addresses\"}},[_c('div',{staticClass:\"accordion-body eron-justify text-muted bg-white\"},[_c('ul',{staticClass:\"eron-address-display\"},[_c('li',[_c('label',[_vm._v(\"Vásárló neve\")]),_vm._v(_vm._s(address.name))]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Utca, házszám\")]),_vm._v(_vm._s(address.line_1))]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Ország\")]),_vm._v(_vm._s(address.country))]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Város\")]),_vm._v(_vm._s(address.city))]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Irányítószám\")]),_vm._v(_vm._s(address.postal_code))]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Telefonszám\")]),_vm._v(_vm._s(address.phone_number))]),_vm._v(\" \"),(address.kind === 'business')?_c('li',[_c('label',[_vm._v(\"Adószám\")]),_vm._v(_vm._s(address.vat_number))]):_vm._e()])])])])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n \n
\n
\n
\n - {{ address.name }}
\n - {{ address.line_1 }}
\n - {{ address.country }}
\n - {{ address.city }}
\n - {{ address.postal_code }}
\n - {{ address.phone_number }}
\n - {{ address.vat_number }}
\n
\n
\n
\n
\n
\n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./address-list.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./address-list.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./address-list.vue?vue&type=template&id=d08b9d72&\"\nimport script from \"./address-list.vue?vue&type=script&lang=js&\"\nexport * from \"./address-list.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"accordion\",attrs:{\"id\":\"accordion-areas\"}},_vm._l((_vm.areas),function(area,index){return _c('div',{staticClass:\"accordion-item rounded shadow mb-4\"},[_c('h2',{staticClass:\"accordion-header position-relative\",attrs:{\"id\":'areas-heading-' + index}},[_c('button',{staticClass:\"accordion-button border-0 bg-light collapsed\",attrs:{\"type\":\"button\",\"data-bs-toggle\":\"collapse\",\"data-bs-target\":'#areas-collapse-' + index,\"aria-expanded\":\"false\",\"aria-controls\":'areas-collapse-' + index}},[_vm._v(\"\\n \"+_vm._s(area.name)+\"\\n \")]),_vm._v(\" \"),_c('div',{staticClass:\"eron-accordion-custom-button-container\"},[(!_vm.isProfile && !area.is_approved)?_c('span',{staticClass:\"eron-in-progress-label badge rounded-md bg-soft-warning me-4\"},[_vm._v(\"Jóváhagyandó\")]):_vm._e(),_vm._v(\" \"),(!_vm.isProfile || (_vm.isProfile && area.is_approved))?_c('a',{staticClass:\"text-primary fw-bold me-2\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.editArea(area.path)}}},[_c('i',{staticClass:\"uil uil-edit text-primary h5 mb-0\"})]):_vm._e(),_vm._v(\" \"),(!_vm.isProfile || (_vm.isProfile && area.is_approved))?_c('a',{staticClass:\"text-primary fw-bold\",attrs:{\"href\":area.path,\"data-confirm\":\"Biztosan törölni szeretné a címet?\",\"data-method\":\"delete\"}},[_c('i',{staticClass:\"uil uil-trash text-primary h5 mb-0\"})]):_vm._e(),_vm._v(\" \"),(_vm.isProfile && !area.is_approved)?_c('span',{staticClass:\"eron-in-progress-label badge rounded-md bg-soft-warning\"},[_vm._v(\"Jóváhagyás alatt\")]):_vm._e(),_vm._v(\" \"),(_vm.isProfile && !area.is_inquiry_enabled)?_c('a',{staticClass:\"text-primary ms-2 text-decoration-underline\",staticStyle:{\"font-size\":\"16px\"},attrs:{\"href\":area.inquiry_path,\"data-method\":\"post\"}},[_vm._v(\"Érdeklődés\")]):_vm._e()])]),_vm._v(\" \"),_c('div',{staticClass:\"accordion-collapse border-0 collapse\",attrs:{\"id\":'areas-collapse-' + index,\"aria-labelledby\":'areas-heading-' + index,\"data-bs-parent\":\"#accordion-areas\"}},[_c('div',{staticClass:\"accordion-body eron-justify text-muted bg-white\"},[_c('ul',{staticClass:\"eron-address-display\"},[_c('li',[_c('label',[_vm._v(\"Azonosító\")]),_vm._v(_vm._s(area.identifier))]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Település\")]),_vm._v(_vm._s(area.city))]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Irányítószám\")]),_vm._v(_vm._s(area.postal_code))]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Cím\")]),_vm._v(_vm._s(area.address))]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Helyrajzi szám\")]),_vm._v(_vm._s(area.parcel_number))]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Terület jellege\")]),_vm._v(_vm._s(area.area_type))]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Terület mérete\")]),_vm._v(_vm._s(area.area_size)+\" m2\")]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Teljesítés\")]),_vm._v(_vm._s(area.is_fulfilled ? 'Teljesítve' : 'Folyamatban'))]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Minősített telepítés\")]),_vm._v(_vm._s(area.is_certified ? 'Igen' : 'Nem'))]),_vm._v(\" \"),_vm._l((area.product_categories),function(product_category){return _c('li',[_c('label',[_vm._v(_vm._s(product_category.name))]),_vm._v(_vm._s(product_category.amount)+\" db\")])})],2)])])])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n \n
\n
\n
\n - {{ area.identifier }}
\n - {{ area.city }}
\n - {{ area.postal_code }}
\n - {{ area.address }}
\n - {{ area.parcel_number }}
\n - {{ area.area_type }}
\n - {{ area.area_size }} m2
\n - {{ area.is_fulfilled ? 'Teljesítve' : 'Folyamatban' }}
\n - {{ area.is_certified ? 'Igen' : 'Nem' }}
\n - {{ product_category.amount }} db
\n
\n
\n
\n
\n
\n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./area-list.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./area-list.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./area-list.vue?vue&type=template&id=5b14d036&\"\nimport script from \"./area-list.vue?vue&type=script&lang=js&\"\nexport * from \"./area-list.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('section',{ref:\"header\",staticClass:\"calculator-header\"},[_c('h2',[_vm._v(\"Válassz az alábbi témakörökből:\")])]),_vm._v(\" \"),_c('section',{ref:\"section0\",staticClass:\"calculator-content\"},[_c('div',{staticClass:\"left\"},[_c('div',{staticClass:\"section\",class:{ 'active': _vm.activeSection === 0 }},[_c('h3',{on:{\"click\":function($event){return _vm.selectSection(0)}}},[_vm._v(\"\\n Egyéni utazás\\n \"),_c('span',{staticClass:\"section-status-icon\"},[_c('img',{attrs:{\"src\":_vm.activeSection === 0 ? _vm.imagePath('angle-up-solid.svg') : _vm.imagePath('angle-down-solid.svg')}})])]),_vm._v(\" \"),_c('ul',{staticClass:\"questions\"},[_c('li',[_c('p',[_vm._v(\"Milyen közlekedési eszközzel utaztál?\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.uniqueTrip.vehicleEmission),expression:\"uniqueTrip.vehicleEmission\"}],on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.uniqueTrip, \"vehicleEmission\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":null}},[_vm._v(\"Válassz egyet...\")]),_vm._v(\" \"),_vm._l((_vm.uniqueTrip.vehicles),function(vehicle){return _c('option',{domProps:{\"value\":vehicle.value}},[_vm._v(_vm._s(vehicle.title))])})],2)]),_vm._v(\" \"),(_vm.uniqueTrip.vehicleEmission >= 0)?_c('li',[_c('p',[_vm._v(\"Hány km az úti cél?\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.uniqueTrip.distance),expression:\"uniqueTrip.distance\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.uniqueTrip.distance)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.uniqueTrip, \"distance\", $event.target.value)}}})]):_vm._e(),_vm._v(\" \"),_c('li',[_c('p',[_vm._v(\"Milyen régióba utaztál?\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.uniqueTrip.selectedRegion),expression:\"uniqueTrip.selectedRegion\"}],on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.uniqueTrip, \"selectedRegion\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":null}},[_vm._v(\"Válassz egyet...\")]),_vm._v(\" \"),_vm._l((_vm.uniqueTrip.regions),function(region){return _c('option',{domProps:{\"value\":region}},[_vm._v(_vm._s(region.title))])})],2)]),_vm._v(\" \"),(_vm.uniqueTrip.selectedRegion !== null && _vm.uniqueTrip.selectedRegion.id !== 'cruise')?_c('li',[_c('p',[_vm._v(\"Hol szálltál meg?\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.uniqueTrip.accommodationEmission),expression:\"uniqueTrip.accommodationEmission\"}],on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.uniqueTrip, \"accommodationEmission\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":null}},[_vm._v(\"Válassz egyet...\")]),_vm._v(\" \"),_vm._l((_vm.uniqueTrip.selectedRegion.accommodations),function(accommodation){return _c('option',{domProps:{\"value\":accommodation.value}},[_vm._v(_vm._s(accommodation.title))])})],2)]):_vm._e(),_vm._v(\" \"),(_vm.uniqueTrip.selectedRegion !== null && _vm.uniqueTrip.selectedRegion.id !== 'cruise')?_c('li',[_c('p',[_vm._v(\"Hány éjszakát szálltál meg?\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.uniqueTrip.days),expression:\"uniqueTrip.days\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.uniqueTrip.days)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.uniqueTrip, \"days\", $event.target.value)}}})]):_vm._e(),_vm._v(\" \"),(_vm.uniqueTrip.selectedRegion !== null && _vm.uniqueTrip.selectedRegion.id !== 'cruise')?_c('li',[_c('p',[_vm._v(\"Milyen szabadidős tevékenységeket csináltál?\")]),_vm._v(\" \"),_c('ul',{staticClass:\"attributes\"},[_c('li',[_c('label',[_vm._v(\"Búvárkodás\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.uniqueTrip.activities.diving),expression:\"uniqueTrip.activities.diving\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],staticClass:\"small\",attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.uniqueTrip.activities.diving)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.uniqueTrip.activities, \"diving\", $event.target.value)}}}),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"merülés\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Síelés\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.uniqueTrip.activities.skiing),expression:\"uniqueTrip.activities.skiing\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],staticClass:\"small\",attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.uniqueTrip.activities.skiing)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.uniqueTrip.activities, \"skiing\", $event.target.value)}}}),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"nap\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Golfozás\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.uniqueTrip.activities.golf),expression:\"uniqueTrip.activities.golf\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],staticClass:\"small\",attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.uniqueTrip.activities.golf)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.uniqueTrip.activities, \"golf\", $event.target.value)}}}),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"kör\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Vitorlázás\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.uniqueTrip.activities.sailing),expression:\"uniqueTrip.activities.sailing\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],staticClass:\"small\",attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.uniqueTrip.activities.sailing)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.uniqueTrip.activities, \"sailing\", $event.target.value)}}}),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"nap\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Hajós kirándulás\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.uniqueTrip.activities.boatTrip),expression:\"uniqueTrip.activities.boatTrip\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],staticClass:\"small\",attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.uniqueTrip.activities.boatTrip)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.uniqueTrip.activities, \"boatTrip\", $event.target.value)}}}),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"túra\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Jet Ski\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.uniqueTrip.activities.jetSki),expression:\"uniqueTrip.activities.jetSki\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],staticClass:\"small\",attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.uniqueTrip.activities.jetSki)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.uniqueTrip.activities, \"jetSki\", $event.target.value)}}}),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"óra\")])])])]):_vm._e()]),_vm._v(\" \"),_vm._m(0)]),_vm._v(\" \"),_c('div',{ref:\"section1\",staticClass:\"section\",class:{ 'active': _vm.activeSection === 1 }},[_c('h3',{on:{\"click\":function($event){return _vm.selectSection(1)}}},[_vm._v(\"\\n Háztartás\\n \"),_c('span',{staticClass:\"section-status-icon\"},[_c('img',{attrs:{\"src\":_vm.activeSection === 1 ? _vm.imagePath('angle-up-solid.svg') : _vm.imagePath('angle-down-solid.svg')}})])]),_vm._v(\" \"),_c('ul',{staticClass:\"questions\"},[_c('li',[_c('p',[_vm._v(\"Számold ki háztartásod havi energiaigényének karbonlábnyomát!\")]),_vm._v(\" \"),_c('ul',{staticClass:\"attributes\"},[_c('li',[_c('label',[_vm._v(\"Villanyfogyasztás\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.home.electricity),expression:\"home.electricity\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],staticClass:\"small\",attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.home.electricity)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.home, \"electricity\", $event.target.value)}}}),_vm._v(\" \"),_c('span',[_vm._v(\"kWh\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"A villanyfogyasztás hány %-át fedezi napelem?\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.home.solar),expression:\"home.solar\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],staticClass:\"small\",attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.home.solar)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.home, \"solar\", $event.target.value)}}}),_vm._v(\" \"),_c('span',[_vm._v(\"%\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Gázfogyasztás\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.home.gas),expression:\"home.gas\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],staticClass:\"small\",attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.home.gas)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.home, \"gas\", $event.target.value)}}}),_vm._v(\" \"),_c('span',[_vm._v(\"m3\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Távhő\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.home.heating),expression:\"home.heating\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],staticClass:\"small\",attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.home.heating)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.home, \"heating\", $event.target.value)}}}),_vm._v(\" \"),_c('span',[_vm._v(\"GJ\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Vízfogyasztás\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.home.water),expression:\"home.water\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],staticClass:\"small\",attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.home.water)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.home, \"water\", $event.target.value)}}}),_vm._v(\" \"),_c('span',[_vm._v(\"m3\")])])])])]),_vm._v(\" \"),_vm._m(1)]),_vm._v(\" \"),_c('div',{ref:\"section2\",staticClass:\"section\",class:{ 'active': _vm.activeSection === 2 }},[_c('h3',{on:{\"click\":function($event){return _vm.selectSection(2)}}},[_vm._v(\"\\n Havi közlekedés\\n \"),_c('span',{staticClass:\"section-status-icon\"},[_c('img',{attrs:{\"src\":_vm.activeSection === 2 ? _vm.imagePath('angle-up-solid.svg') : _vm.imagePath('angle-down-solid.svg')}})])]),_vm._v(\" \"),_c('ul',{staticClass:\"questions\"},[_vm._l((_vm.commute.usedVehicles),function(vehicle,vi){return [_c('li',[_c('p',[_vm._v(\"\\n Milyen közlekedési eszközzel utaztál?\\n \"),_c('img',{staticClass:\"delete-button\",attrs:{\"src\":_vm.imagePath('trash-can-solid.svg')},on:{\"click\":function($event){return _vm.removeVehicle(vi)}}})]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(vehicle.vehicleEmission),expression:\"vehicle.vehicleEmission\"}],on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(vehicle, \"vehicleEmission\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":null}},[_vm._v(\"Válassz egyet...\")]),_vm._v(\" \"),_vm._l((_vm.commute.vehicles),function(v){return _c('option',{domProps:{\"value\":v.value}},[_vm._v(_vm._s(v.title))])})],2)]),_vm._v(\" \"),_c('li',[_c('p',[_vm._v(\"Havonta megtett út (km)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(vehicle.distance),expression:\"vehicle.distance\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(vehicle.distance)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(vehicle, \"distance\", $event.target.value)}}})])]}),_vm._v(\" \"),_c('li',[_c('button',{staticClass:\"button green add-more\",on:{\"click\":function($event){return _vm.addVehicle()}}},[_vm._v(\"További közlekedési eszköz\")])])],2),_vm._v(\" \"),_vm._m(2)]),_vm._v(\" \"),_c('div',{ref:\"section3\",staticClass:\"section\",class:{ 'active': _vm.activeSection === 3 }},[_c('h3',{on:{\"click\":function($event){return _vm.selectSection(3)}}},[_vm._v(\"\\n Egyéni bevásárlás\\n \"),_c('span',{staticClass:\"section-status-icon\"},[_c('img',{attrs:{\"src\":_vm.activeSection === 3 ? _vm.imagePath('angle-up-solid.svg') : _vm.imagePath('angle-down-solid.svg')}})])]),_vm._v(\" \"),_c('ul',{staticClass:\"questions\"},[_c('li',[_c('p',[_vm._v(\"Mivel mentél el bevásárolni?\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.shopping.vehicleEmission),expression:\"shopping.vehicleEmission\"}],on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.shopping, \"vehicleEmission\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":null}},[_vm._v(\"Válassz egyet...\")]),_vm._v(\" \"),_vm._l((_vm.shopping.vehicles),function(vehicle){return _c('option',{domProps:{\"value\":vehicle.value}},[_vm._v(_vm._s(vehicle.title))])})],2)]),_vm._v(\" \"),(_vm.shopping.vehicleEmission >= 0)?_c('li',[_c('p',[_vm._v(\"Milyen messze van a bolt? (km)\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.shopping.distance),expression:\"shopping.distance\"},{name:\"clear-on-focus\",rawName:\"v-clear-on-focus\"}],attrs:{\"type\":\"number\",\"min\":\"0\"},domProps:{\"value\":(_vm.shopping.distance)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.shopping, \"distance\", $event.target.value)}}})]):_vm._e(),_vm._v(\" \"),_c('li',[_c('p',[_vm._v(\"Vettél húskészítményt?\")]),_vm._v(\" \"),_c('ul',{staticClass:\"attributes\"},[_c('li',[_c('label',[_vm._v(\"Marha\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.shopping.beef),expression:\"shopping.beef\"}],staticClass:\"small\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.shopping, \"beef\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.pickable(0, 15, 0.5)),function(v){return _c('option',{domProps:{\"value\":v}},[_vm._v(_vm._s(v))])}),0),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"Kg\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Sertés\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.shopping.pork),expression:\"shopping.pork\"}],staticClass:\"small\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.shopping, \"pork\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.pickable(0, 15, 0.5)),function(v){return _c('option',{domProps:{\"value\":v}},[_vm._v(_vm._s(v))])}),0),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"Kg\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Bárány\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.shopping.lamb),expression:\"shopping.lamb\"}],staticClass:\"small\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.shopping, \"lamb\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.pickable(0, 15, 0.5)),function(v){return _c('option',{domProps:{\"value\":v}},[_vm._v(_vm._s(v))])}),0),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"Kg\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Szárnyas\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.shopping.poultry),expression:\"shopping.poultry\"}],staticClass:\"small\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.shopping, \"poultry\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.pickable(0, 15, 0.5)),function(v){return _c('option',{domProps:{\"value\":v}},[_vm._v(_vm._s(v))])}),0),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"Kg\")])]),_vm._v(\" \"),_c('li',[_c('label',[_vm._v(\"Hal\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.shopping.fish),expression:\"shopping.fish\"}],staticClass:\"small\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.shopping, \"fish\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.pickable(0, 15, 0.5)),function(v){return _c('option',{domProps:{\"value\":v}},[_vm._v(_vm._s(v))])}),0),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"Kg\")])])])]),_vm._v(\" \"),_c('li',[_c('p',[_vm._v(\"Vettél tejterméket?\")]),_vm._v(\" \"),_c('ul',{staticClass:\"attributes\"},[_c('li',[_c('label',[_vm._v(\"Tejtermék\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.shopping.dairy),expression:\"shopping.dairy\"}],staticClass:\"small\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.shopping, \"dairy\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.pickable(0, 15, 0.5)),function(v){return _c('option',{domProps:{\"value\":v}},[_vm._v(_vm._s(v))])}),0),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"liter/kg\")])])])]),_vm._v(\" \"),_c('li',[_c('p',[_vm._v(\"Vettél tojást?\")]),_vm._v(\" \"),_c('ul',{staticClass:\"attributes\"},[_c('li',[_c('label',[_vm._v(\"Tojás\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.shopping.egg),expression:\"shopping.egg\"}],staticClass:\"small\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.shopping, \"egg\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.pickable(0, 15, 1)),function(v){return _c('option',{domProps:{\"value\":v}},[_vm._v(_vm._s(v))])}),0),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"db\")])])])]),_vm._v(\" \"),_c('li',[_c('p',[_vm._v(\"Vettél zöldséget, gyümölcsöt?\")]),_vm._v(\" \"),_c('ul',{staticClass:\"attributes\"},[_c('li',[_c('label',[_vm._v(\"Zöldség, gyümölcs\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.shopping.vegetables),expression:\"shopping.vegetables\"}],staticClass:\"small\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.shopping, \"vegetables\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.pickable(0, 15, 1)),function(v){return _c('option',{domProps:{\"value\":v}},[_vm._v(_vm._s(v))])}),0),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"kg\")])])])]),_vm._v(\" \"),_c('li',[_c('p',[_vm._v(\"Vettél alkoholt?\")]),_vm._v(\" \"),_c('ul',{staticClass:\"attributes\"},[_c('li',[_c('label',[_vm._v(\"Alkohol\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.shopping.alcohol),expression:\"shopping.alcohol\"}],staticClass:\"small\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.shopping, \"alcohol\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.pickable(0, 15, 0.5)),function(v){return _c('option',{domProps:{\"value\":v}},[_vm._v(_vm._s(v))])}),0),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"liter\")])])])]),_vm._v(\" \"),_c('li',[_c('p',[_vm._v(\"Vettél tisztítószereket?\")]),_vm._v(\" \"),_c('ul',{staticClass:\"attributes\"},[_c('li',[_c('label',[_vm._v(\"Tisztítószer\")]),_vm._v(\" \"),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.shopping.detergent),expression:\"shopping.detergent\"}],staticClass:\"small\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.shopping, \"detergent\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},_vm._l((_vm.pickable(0, 15, 1)),function(v){return _c('option',{domProps:{\"value\":v}},[_vm._v(_vm._s(v))])}),0),_vm._v(\" \"),_c('span',{staticClass:\"wide\"},[_vm._v(\"liter/kg\")])])])])]),_vm._v(\" \"),_vm._m(3)]),_vm._v(\" \"),_c('div',{staticClass:\"extra\"},[(_vm.isCalculatorSaved !== null)?_c('div',{staticClass:\"send-to-myself\"},[(_vm.isCalculatorSaved === true)?_c('span',{staticClass:\"label\"},[_vm._v(\"Az eredményt elküldtük e-mailben a megadott címre.\")]):_c('span',{staticClass:\"label\"},[_vm._v(\"Sajnos hiba történt az eredmény küldése közben. Kérjük próbáld újra\")])]):_vm._e(),_vm._v(\" \"),(_vm.isSendToMyselfVisible && _vm.isCalculatorSaved !== true)?_c('div',{staticClass:\"send-to-myself\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.sendToMyself.email),expression:\"sendToMyself.email\"}],ref:\"email\",attrs:{\"type\":\"text\",\"placeholder\":\"E-mail cím\",\"name\":\"email\"},domProps:{\"value\":(_vm.sendToMyself.email)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.sendToMyself, \"email\", $event.target.value)}}}),_vm._v(\" \"),_c('div',{attrs:{\"id\":\"recaptcha-container\"}}),_vm._v(\" \"),_c('button',{staticClass:\"button\",attrs:{\"disabled\":_vm.emission <= 0 || _vm.sendToMyself.email === null || _vm.sendToMyself.email.length <= 0 || _vm.sendToMyself.recaptcha === null || _vm.sendToMyself.recaptcha.length <= 0},on:{\"click\":function($event){return _vm.saveCalculatorResults()}}},[_vm._v(\"Küldés\")])]):_vm._e(),_vm._v(\" \"),_c('h2',[_vm._v(\"Ellentételezd most!\")]),_vm._v(\" \"),_c('div',{staticClass:\"extra-content\"},[_c('div',{staticClass:\"offset-adjustment\",class:{ 'selected': _vm.offsetAmount === 1.0 },on:{\"click\":function($event){_vm.offsetAmount = 1.0}}},[_c('div',{staticClass:\"icon\"},[_c('img',{attrs:{\"src\":_vm.imagePath('icon-tickmark.png')}})]),_vm._v(\" \"),_c('div',{staticClass:\"values\"},[_c('span',{staticClass:\"percentage\"},[_vm._v(\"100%\")]),_vm._v(\" \"),_c('span',{staticClass:\"count\"},[_vm._v(_vm._s(_vm.calculateItemCount(this.emission, 1.0))+\" fa\")])]),_vm._v(\" \"),_c('p',[_vm._v(\"Ennyi a Te lábnyomod\")])]),_vm._v(\" \"),(_vm.is120PercentVisible)?_c('div',{staticClass:\"offset-adjustment\",class:{ 'selected': _vm.offsetAmount === 1.2 },on:{\"click\":function($event){_vm.offsetAmount = 1.2}}},[_c('div',{staticClass:\"icon\"},[_c('img',{attrs:{\"src\":_vm.imagePath('icon-badge.png')}})]),_vm._v(\" \"),_c('div',{staticClass:\"values\"},[_c('span',{staticClass:\"percentage\"},[_vm._v(\"120%\")]),_vm._v(\" \"),_c('span',{staticClass:\"count\"},[_vm._v(_vm._s(_vm.calculateItemCount(this.emission, 1.2))+\" fa\")])]),_vm._v(\" \"),_c('p',[_vm._v(\"Ha biztosra mennél\")])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"offset-adjustment\",class:{ 'selected': _vm.offsetAmount === 2.0 },on:{\"click\":function($event){_vm.offsetAmount = 2.0}}},[_c('div',{staticClass:\"icon\"},[_c('img',{attrs:{\"src\":_vm.imagePath('icon-crown.png')}})]),_vm._v(\" \"),_c('div',{staticClass:\"values\"},[_c('span',{staticClass:\"percentage\"},[_vm._v(\"200%\")]),_vm._v(\" \"),_c('span',{staticClass:\"count\"},[_vm._v(_vm._s(_vm.calculateItemCount(this.emission, 2.0))+\" fa\")])]),_vm._v(\" \"),_c('p',[_vm._v(\"Dupla? Maradhat?\")])]),_vm._v(\" \"),_c('div',{staticClass:\"offset-adjustment custom\",class:{ 'selected': _vm.offsetAmount !== 1.0 && _vm.offsetAmount !== 1.2 && _vm.offsetAmount !== 2.0 },on:{\"click\":function($event){_vm.offsetAmount = null; _vm.focusCustomInput()}}},[_c('div',{staticClass:\"icon\"},[_c('img',{attrs:{\"src\":_vm.imagePath('icon-pencil.png')}})]),_vm._v(\" \"),_c('div',{staticClass:\"values\"},[(_vm.offsetAmount !== 1.0 && _vm.offsetAmount !== 1.2 && _vm.offsetAmount !== 2.0)?_c('span',{staticClass:\"percentage\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.customOffsetAmount),expression:\"customOffsetAmount\"}],ref:\"customPercentageInput\",staticClass:\"custom-percentage\",attrs:{\"type\":\"text\",\"min\":\"0\",\"max\":\"999\",\"maxlength\":\"3\",\"pattern\":\"[0-9]{1-3}\",\"placeholder\":\"Egyéni\",\"oninput\":\"this.value = this.value.replace(/[^0-9.]/g, '')\"},domProps:{\"value\":(_vm.customOffsetAmount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.customOffsetAmount=$event.target.value}}}),_vm._v(\" \"),_c('span',{ref:\"customPercentageSign\",staticClass:\"custom-percentage-sign\"},[_vm._v(\"%\")])]):_c('span',{staticClass:\"percentage\"},[_vm._v(\"Egyéni\")]),_vm._v(\" \"),_c('span',{staticClass:\"count\"},[_vm._v(_vm._s(_vm.calculateItemCount(this.emission, this.customOffsetAmount / 100.0))+\" fa\")])]),_vm._v(\" \"),_c('p',[_vm._v(\"Lehet több is!\")])]),_vm._v(\" \"),_c('div',{staticClass:\"buttons\"},[_c('div',{staticClass:\"submit\"},[_c('form',{attrs:{\"method\":\"POST\",\"action\":_vm.buildCartPath()}},[_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"authenticity_token\"},domProps:{\"value\":_vm.authenticityToken}}),_vm._v(\" \"),_c('input',{attrs:{\"type\":\"hidden\",\"name\":\"emission\"},domProps:{\"value\":_vm.adjustedEmissionForCart}}),_vm._v(\" \"),_c('input',{staticClass:\"button green\",attrs:{\"type\":\"submit\",\"value\":\"Vásárlás\",\"disabled\":_vm.adjustedItemCount <= 0}})])])])])]),_vm._v(\" \"),_vm._m(4)]),_vm._v(\" \"),_c('div',{staticClass:\"right\"},[_c('div',{staticClass:\"box-container\"},[_c('div',{staticClass:\"box\"},[_c('h3',[_vm._v(\"Ellentételezz velünk!\")]),_vm._v(\" \"),_c('p',[_vm._v(\"Tevékenységed karbonlábnyoma:\")]),_vm._v(\" \"),_c('span',{staticClass:\"value\"},[_vm._v(_vm._s(_vm.emission)+\" KG CO2e\")])]),_vm._v(\" \"),_c('button',{staticClass:\"button send-result-button\",attrs:{\"disabled\":_vm.emission <= 0},on:{\"click\":function($event){return _vm.showSendToMyself()}}},[_vm._v(\"Elküldöm magamnak\")])])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tip\"},[_c('div',{staticClass:\"sign\"},[_vm._v(\"Tipp!\")]),_vm._v(\" \"),_c('div',{staticClass:\"text\"},[_c('ul',[_c('li',[_vm._v(\"Már vannak környezettudatos szállások, érdemes figyelni.\")]),_vm._v(\" \"),_c('li',[_vm._v(\"A szállodai törülközőket újra használata vendégéjszakára lebontva 1,75 kg CO2e megtakarítást eredményez.\")]),_vm._v(\" \"),_c('li',[_vm._v(\"Utazás alatt is gyűjthetünk szelektíven. Egy alumínium doboz újra hasznosítása megtakarítja az új előállításához szükséges energia 90% -át.\")]),_vm._v(\" \"),_c('li',[_vm._v(\"Légkondi, vagy nem légkondi? A légkondicionáló berendezések kétóránként több, mint 1 kg CO2 kibocsátást okoznak.\")])])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tip\"},[_c('div',{staticClass:\"sign\"},[_vm._v(\"Tipp!\")]),_vm._v(\" \"),_c('div',{staticClass:\"text\"},[_c('ul',[_c('li',[_vm._v(\"Izzóid energiatakarékosra történő cseréjével, nemcsak 400 kg CO2e kibocsátást takaríthatsz meg, de 10x kevesebbszer kell égőt cserélni.\")]),_vm._v(\" \"),_c('li',[_vm._v(\"Ha időzítjük a fűtésünket és éjszaka, vagy amikor nem tartózkodunk otthon, 3 °C-kal alacsonyabban tarjuk lakásunk hőmérsékletét, évente 440 kg CO2e kibocsátását spóroljuk meg.\")]),_vm._v(\" \"),_c('li',[_vm._v(\"Nyílászáróink szigetelésével évente 140 kg CO2e kibocsátást kerülhetünk el.\")]),_vm._v(\" \"),_c('li',[_vm._v(\"A ruhák levegőn történő szárításával mosásonként kb. 2 kg CO2e kibocsátást takaríthatunk meg.\")]),_vm._v(\" \"),_c('li',[_c('b',[_vm._v(\"Mindezek természetesen a fizetendő havi számláinkban is megjelennek megtakarításként.\")])])])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tip\"},[_c('div',{staticClass:\"sign\"},[_vm._v(\"Tipp!\")]),_vm._v(\" \"),_c('div',{staticClass:\"text\"},[_c('ul',[_c('li',[_vm._v(\"Az alacsony viszkozitású motorolajok 2,5%-kal csökkenthetik autónk üzemanyag-felhasználását.\")]),_vm._v(\" \"),_c('li',[_vm._v(\"Ha rövidebb távon a sétát választjuk, akár 75%-kal lecsökkenthetjük a károsanyag-kibocsátásodat.\")]),_vm._v(\" \"),_c('li',[_vm._v(\"A rendszeres guminyomás ellenőrzése segít az optimális fogyasztás elérésében, mellyel pénztárcánkat és a környezetet is kíméljük.\")])])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tip\"},[_c('div',{staticClass:\"sign\"},[_vm._v(\"Tipp!\")]),_vm._v(\" \"),_c('div',{staticClass:\"text\"},[_c('ul',[_c('li',[_vm._v(\"A szezonális hazai zöldségek és gyümölcsök előtérbe helyezésével elkerülhető az áruszállítással kapcsolatos jelentősebb kibocsátás.\")]),_vm._v(\" \"),_c('li',[_vm._v(\"A déli gyümölcsök közül a banán CO2e kibocsátása pusztán 80g darabonként, mert nem kell hozzájuk üvegház, sokáig eláll, általában hajón kerül hozzánk és kicsi a csomagolásigénye.\")]),_vm._v(\" \"),_c('li',[_vm._v(\"Fél kg marhahús előállításához majdnem 20 ezer liter víz szükséges.\")]),_vm._v(\" \"),_c('li',[_vm._v(\"Egy húsmentes hétfő, 400 kg CO2e kibocsátás-csökkentést jelenthet évente.\")])])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"disclaimer\"},[_c('div',{staticClass:\"separator\"}),_vm._v(\" \"),_c('p',[_vm._v(\"A CO2e, másnéven szén-dioxid ekvivalens, az összes üvegházhatású gáz globális felmelegedésre gyakorolt hatását egységesíti szén-dioxid egyenértékű kibocsátásra, mint közös egységre vetítve.\")]),_vm._v(\" \"),_c('p',[_c('sup',{staticStyle:{\"font-size\":\"1.5rem\",\"vertical-align\":\"baseline\",\"display\":\"inline-block\",\"margin-right\":\"0.25rem\"}},[_vm._v(\"*\")]),_vm._v(\"A fenti kalkuláció kizárólag a károsanyag-kibocsátási adatok és egy átlagos szénelnyelési kapacitás alapján\\n számolt famennyiség becslésére alkalmazható. Az ERON Forestry nyilvánosan elérhető, folyamatosan frissített\\n adatbázisokból dolgozik. Mindent elkövetünk, hogy az adatok pontosságát biztosítsuk, de az itt használt\\n emissziós faktorok és szénmegkötési adatok átlagértékeken és feltételezéseken alapulnak. Az ERON Forestry és\\n a kalkulátor készítője nem felelős a becslések helyességért, vagy a látogató által a megbecsült mennyiségek\\n alapján kezdeményezett további cselekedetekért. A weboldalunkon megjelenő összes információ a teljesség és a\\n hitelesség igénye, valamint bármiféle garanciavállalás nélkül értendő.\")])])}]\n\nexport { render, staticRenderFns }","\n \n \n\n
\n \n
\n
\n Egyéni utazás\n \n
\n \n
\n
\n - \n
Milyen közlekedési eszközzel utaztál?
\n \n \n - = 0\">\n
Hány km az úti cél?
\n \n \n - \n
Milyen régióba utaztál?
\n \n \n - \n
Hol szálltál meg?
\n \n \n - \n
Hány éjszakát szálltál meg?
\n \n \n - \n
Milyen szabadidős tevékenységeket csináltál?
\n \n \n
\n
\n
Tipp!
\n
\n
\n - Már vannak környezettudatos szállások, érdemes figyelni.
\n - A szállodai törülközőket újra használata vendégéjszakára lebontva 1,75 kg CO2e megtakarítást eredményez.
\n - Utazás alatt is gyűjthetünk szelektíven. Egy alumínium doboz újra hasznosítása megtakarítja az új előállításához szükséges energia 90% -át.
\n - Légkondi, vagy nem légkondi? A légkondicionáló berendezések kétóránként több, mint 1 kg CO2 kibocsátást okoznak.
\n
\n
\n
\n
\n\n\n
\n
\n Háztartás\n \n
\n \n
\n
\n
\n
Tipp!
\n
\n
\n - Izzóid energiatakarékosra történő cseréjével, nemcsak 400 kg CO2e kibocsátást takaríthatsz meg, de 10x kevesebbszer kell égőt cserélni.
\n - Ha időzítjük a fűtésünket és éjszaka, vagy amikor nem tartózkodunk otthon, 3 °C-kal alacsonyabban tarjuk lakásunk hőmérsékletét, évente 440 kg CO2e kibocsátását spóroljuk meg.
\n - Nyílászáróink szigetelésével évente 140 kg CO2e kibocsátást kerülhetünk el.
\n - A ruhák levegőn történő szárításával mosásonként kb. 2 kg CO2e kibocsátást takaríthatunk meg.
\n - Mindezek természetesen a fizetendő havi számláinkban is megjelennek megtakarításként.
\n
\n
\n
\n
\n\n
\n
\n Havi közlekedés\n \n
\n \n
\n
\n
\n
Tipp!
\n
\n
\n - Az alacsony viszkozitású motorolajok 2,5%-kal csökkenthetik autónk üzemanyag-felhasználását.
\n - Ha rövidebb távon a sétát választjuk, akár 75%-kal lecsökkenthetjük a károsanyag-kibocsátásodat.
\n - A rendszeres guminyomás ellenőrzése segít az optimális fogyasztás elérésében, mellyel pénztárcánkat és a környezetet is kíméljük.
\n
\n
\n
\n
\n\n
\n
\n Egyéni bevásárlás\n \n
\n \n
\n
\n - \n
Mivel mentél el bevásárolni?
\n \n \n - = 0\">\n
Milyen messze van a bolt? (km)
\n \n \n\n - \n
Vettél húskészítményt?
\n \n - \n \n \n Kg\n
\n - \n \n \n Kg\n
\n - \n \n \n Kg\n
\n - \n \n \n Kg\n
\n - \n \n \n Kg\n
\n
\n \n\n - \n
Vettél tejterméket?
\n \n - \n \n \n liter/kg\n
\n
\n \n\n - \n
Vettél tojást?
\n \n - \n \n \n db\n
\n
\n \n\n - \n
Vettél zöldséget, gyümölcsöt?
\n \n - \n \n \n kg\n
\n
\n \n\n - \n
Vettél alkoholt?
\n \n - \n \n \n liter\n
\n
\n \n\n - \n
Vettél tisztítószereket?
\n \n - \n \n \n liter/kg\n
\n
\n \n
\n
\n
Tipp!
\n
\n
\n - A szezonális hazai zöldségek és gyümölcsök előtérbe helyezésével elkerülhető az áruszállítással kapcsolatos jelentősebb kibocsátás.
\n - A déli gyümölcsök közül a banán CO2e kibocsátása pusztán 80g darabonként, mert nem kell hozzájuk üvegház, sokáig eláll, általában hajón kerül hozzánk és kicsi a csomagolásigénye.
\n - Fél kg marhahús előállításához majdnem 20 ezer liter víz szükséges.
\n - Egy húsmentes hétfő, 400 kg CO2e kibocsátás-csökkentést jelenthet évente.
\n
\n
\n
\n
\n\n \n\n
\n
\n
A CO2e, másnéven szén-dioxid ekvivalens, az összes üvegházhatású gáz globális felmelegedésre gyakorolt hatását egységesíti szén-dioxid egyenértékű kibocsátásra, mint közös egységre vetítve.
\n
*A fenti kalkuláció kizárólag a károsanyag-kibocsátási adatok és egy átlagos szénelnyelési kapacitás alapján\n számolt famennyiség becslésére alkalmazható. Az ERON Forestry nyilvánosan elérhető, folyamatosan frissített\n adatbázisokból dolgozik. Mindent elkövetünk, hogy az adatok pontosságát biztosítsuk, de az itt használt\n emissziós faktorok és szénmegkötési adatok átlagértékeken és feltételezéseken alapulnak. Az ERON Forestry és\n a kalkulátor készítője nem felelős a becslések helyességért, vagy a látogató által a megbecsült mennyiségek\n alapján kezdeményezett további cselekedetekért. A weboldalunkon megjelenő összes információ a teljesség és a\n hitelesség igénye, valamint bármiféle garanciavállalás nélkül értendő.
\n
\n
\n \n
\n
\n
Ellentételezz velünk!
\n
Tevékenységed karbonlábnyoma:
\n
{{ emission }} KG CO2e\n
\n
\n
\n
\n \n
\n\n\n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./simple-calculator.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./simple-calculator.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./simple-calculator.vue?vue&type=template&id=5a17f16c&scoped=true&\"\nimport script from \"./simple-calculator.vue?vue&type=script&lang=js&\"\nexport * from \"./simple-calculator.vue?vue&type=script&lang=js&\"\nimport style0 from \"./simple-calculator.vue?vue&type=style&index=0&id=5a17f16c&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5a17f16c\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../../node_modules/css-loader/dist/cjs.js??ref--4-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--4-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--4-3!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./shop.vue?vue&type=style&index=0&id=48e16086&scoped=true&lang=scss&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../../node_modules/css-loader/dist/cjs.js??ref--3-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--3-2!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./simple-calculator.vue?vue&type=style&index=0&id=5a17f16c&scoped=true&lang=css&\"","window.addEventListener('DOMContentLoaded', () => {\n const backToTopButton = document.getElementById(\"back-to-top\");\n window.onscroll = function () {\n scrollFunction();\n };\n\n function scrollFunction() {\n if (backToTopButton != null) {\n if (document.body.scrollTop > 500 || document.documentElement.scrollTop > 500) {\n backToTopButton.style.display = \"block\";\n } else {\n backToTopButton.style.display = \"none\";\n }\n }\n }\n\n scrollFunction();\n});\n\nfunction scrollToTop() {\n document.body.scrollTop = 0;\n document.documentElement.scrollTop = 0;\n}\n","window.addEventListener('DOMContentLoaded', () => {\r\n \"use strict\";\r\n\r\n const cookieAlert = document.querySelector(\".cookiealert\");\r\n const acceptCookies = document.querySelector(\".acceptcookies\");\r\n\r\n if (!cookieAlert) {\r\n return;\r\n }\r\n\r\n cookieAlert.offsetHeight; // Force browser to trigger reflow (https://stackoverflow.com/a/39451131)\r\n\r\n // Show the alert if we cant find the \"acceptCookies\" cookie\r\n if (!getCookie(\"acceptCookies\")) {\r\n cookieAlert.classList.add(\"show\");\r\n }\r\n\r\n // When clicking on the agree button, create a 1 year\r\n // cookie to remember user's choice and close the banner\r\n acceptCookies.addEventListener(\"click\", function () {\r\n setCookie(\"acceptCookies\", true, 365);\r\n cookieAlert.classList.remove(\"show\");\r\n\r\n // dispatch the accept event\r\n window.dispatchEvent(new Event(\"cookieAlertAccept\"))\r\n });\r\n\r\n // Cookie functions from w3schools\r\n function setCookie(cname, cvalue, exdays) {\r\n var d = new Date();\r\n d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));\r\n var expires = \"expires=\" + d.toUTCString();\r\n document.cookie = cname + \"=\" + cvalue + \";\" + expires + \";path=/\";\r\n }\r\n\r\n function getCookie(cname) {\r\n var name = cname + \"=\";\r\n var decodedCookie = decodeURIComponent(document.cookie);\r\n var ca = decodedCookie.split(';');\r\n for (var i = 0; i < ca.length; i++) {\r\n var c = ca[i];\r\n while (c.charAt(0) === ' ') {\r\n c = c.substring(1);\r\n }\r\n if (c.indexOf(name) === 0) {\r\n return c.substring(name.length, c.length);\r\n }\r\n }\r\n return \"\";\r\n }\r\n});","window.addEventListener('DOMContentLoaded', () => {\n const detectionDiv = document.querySelector('#enable-force-dark-detection');\n const isAutoDark = getComputedStyle(detectionDiv).backgroundColor !== 'rgb(255, 255, 255)';\n\n if (isAutoDark) {\n const style = document.createElement('style');\n style.innerHTML = `\n .shop-counter .label { color: #64a70b !important }\n section.about::before { background: none !important }\n section.calculator .bg { display: none }\n section.projects { background: none !important }\n section.did-you-know { background: none !important }\n section.did-you-know-page { background: none !important }\n section.projects-page .details { background: none !important }\n section.flyer-page { background: none !important }\n section.calculator-header { background: none !important }\n section.legacy-page-bg { background: none !important }\n div.shop-app-container { background: none !important }\n `;\n document.head.appendChild(style);\n }\n});\n","import feather from 'feather-icons';\n\nwindow.addEventListener('DOMContentLoaded', () => {\n feather.replace();\n});\n","/* eslint no-console: 0 */\n// Run this example by adding <%= javascript_pack_tag 'hello_vue' %> (and\n// <%= stylesheet_pack_tag 'hello_vue' %> if you have styles in your component)\n// to the head of your layout file,\n// like app/views/layouts/application.html.erb.\n// All it does is render Hello Vue
at the bottom of the page.\n\nimport Vue from 'vue/dist/vue.js'\nimport Shop from './components/shop.vue'\n\ndocument.addEventListener('DOMContentLoaded', () => {\n if (document.getElementById('shop-app') == null) {\n return;\n }\n\n const shopApp = new Vue({\n el: '#shop-app',\n components: { Shop }\n });\n});\n","/* eslint no-console: 0 */\n// Run this example by adding <%= javascript_pack_tag 'hello_vue' %> (and\n// <%= stylesheet_pack_tag 'hello_vue' %> if you have styles in your component)\n// to the head of your layout file,\n// like app/views/layouts/application.html.erb.\n// All it does is render Hello Vue
at the bottom of the page.\n\nimport Vue from 'vue/dist/vue.js'\nimport Axios from 'axios'\nimport Paths from './paths.js.erb'\nimport DialogBox from './components/dialog-box'\nimport AddressList from './components/address-list'\nimport AreaList from './components/area-list'\nimport feather from \"feather-icons\";\n\ndocument.addEventListener('DOMContentLoaded', () => {\n if (document.getElementById('profile-app') == null) {\n return;\n }\n\n const profileApp = new Vue({\n el: '#profile-app',\n mixins: [Paths],\n components: { DialogBox, AddressList, AreaList },\n watch: {\n 'areaDialog.areaType': {\n handler: function (newValue, oldValue) {\n this.areaDialog.area.area_type = this.areaDialog.areaType;\n },\n deep: true\n },\n 'addressDialog.address': {\n handler: function (newValue, oldValue) {\n if (newValue.kind === 'business' && newValue.country_code !== 'HU')\n newValue.country_code = 'HU';\n },\n deep: true\n }\n },\n data() {\n let self = this;\n return {\n countries: [],\n addressDialog: {\n isLoading: false,\n name: null,\n title: null,\n address: null,\n errors: {},\n isVisible: false,\n isUpdate: false,\n path: null,\n onHide: function () {\n self.addressDialog.isVisible = false;\n },\n buttons: [\n {\n title: 'Mentés',\n type: 'btn btn-primary',\n onClick: async function () {\n await self.saveAddress();\n self.$refs['address-list'].reload();\n }\n },\n {\n title: 'Mégsem',\n type: 'btn btn-secondary',\n onClick: function () {\n self.addressDialog.isVisible = false;\n }\n }\n ]\n },\n areaDialog: {\n areaTypes: [\"Erdő\", \"Gyümölcsös\", \"Szántóföld\"],\n areaType: '',\n isLoading: false,\n name: null,\n title: null,\n area: null,\n errors: {},\n isVisible: false,\n isUpdate: false,\n onHide: function () {\n self.areaDialog.isVisible = false;\n },\n path: null,\n productCategories: [],\n buttons: [\n {\n title: 'Mentés',\n type: 'btn btn-primary',\n onClick: async function () {\n await self.saveArea();\n self.$refs['area-list'].reload();\n }\n },\n {\n title: 'Mégsem',\n type: 'btn btn-secondary',\n onClick: function () {\n self.areaDialog.isVisible = false;\n }\n }\n ]\n }\n }\n },\n methods: {\n resetAddressForm() {\n this.addressDialog.address = {\n kind: 'personal',\n title: 'Címem 01',\n name: '',\n line_1: '',\n country_code: 'HU',\n city: '',\n postal_code: '',\n phone_number: '',\n vat_number: '',\n }\n this.addressDialog.errors = {};\n },\n showNewAddressDialog(path) {\n this.addressDialog.isUpdate = false;\n this.addressDialog.path = path;\n this.resetAddressForm();\n this.addressDialog.title = \"Új cím hozzáadása\"\n this.addressDialog.isVisible = true\n },\n editAddress(path) {\n let self = this;\n self.addressDialog.isUpdate = true;\n self.addressDialog.path = path;\n self.resetAddressForm();\n self.addressDialog.title = \"Cím szerkesztése\";\n\n self.addressDialog.isLoading = true;\n Axios.get(path).then(function (response) {\n self.addressDialog.isLoading = false;\n let data = response.data;\n self.addressDialog.address = data.address;\n self.addressDialog.isVisible = true\n });\n },\n async saveAddress() {\n this.addressDialog.isLoading = true;\n this.addressDialog.errors = [];\n let response = null;\n if (this.addressDialog.isUpdate) {\n response = await Axios.patch(this.addressDialog.path, {address: this.addressDialog.address})\n } else {\n response = await Axios.post(this.addressDialog.path, {address: this.addressDialog.address})\n }\n let data = response.data;\n this.addressDialog.isLoading = false;\n if (data.success === true) {\n this.addressDialog.isVisible = false\n } else {\n this.addressDialog.errors = data.errors;\n }\n },\n resetAreaForm() {\n this.areaDialog.areaType = this.areaDialog.areaTypes[0];\n\n this.areaDialog.area = {\n name: '',\n identifier: '',\n city: '',\n postal_code: '',\n address: '',\n parcel_number: '',\n area_type: this.areaDialog.areaTypes[0],\n area_size: '',\n is_certified: false,\n is_approved: false,\n is_fulfilled: false\n }\n\n if (typeof this.areaDialog.productCategories != 'undefined') {\n for (let i = 0; i < this.areaDialog.productCategories.length; i++) {\n this.areaDialog.area['product_category_' + this.areaDialog.productCategories[i].id] = 0;\n }\n }\n },\n async loadProductCategories() {\n let response = await Axios.get(this.productCategoriesPath());\n let data = response.data;\n this.areaDialog.productCategories = data.product_categories;\n this.resetAreaForm();\n },\n showNewAreaDialog(path) {\n this.areaDialog.isUpdate = false;\n this.areaDialog.path = path;\n this.resetAreaForm()\n this.areaDialog.title = \"Új terület hozzáadása\"\n this.areaDialog.isVisible = true\n },\n editArea(path) {\n let self = this;\n self.areaDialog.isUpdate = true;\n self.areaDialog.path = path;\n self.resetAreaForm();\n self.areaDialog.title = \"Terület szerkesztése\";\n self.areaDialog.areaType = '';\n\n self.areaDialog.isLoading = true;\n Axios.get(path).then(function (response) {\n self.areaDialog.isLoading = false;\n let data = response.data;\n self.areaDialog.area = data.area;\n self.areaDialog.productCategories = data.area.product_categories;\n\n if (self.areaDialog.areaTypes.includes(data.area.area_type)) {\n self.areaDialog.areaType = data.area.area_type;\n }\n\n if (typeof self.areaDialog.productCategories != 'undefined') {\n for (let i = 0; i < self.areaDialog.productCategories.length; i++) {\n self.areaDialog.area['product_category_' + self.areaDialog.productCategories[i].id] = self.areaDialog.productCategories[i].amount;\n }\n }\n\n self.areaDialog.isVisible = true\n });\n },\n async saveArea() {\n this.areaDialog.isLoading = true;\n this.areaDialog.errors = [];\n let response = null;\n if (this.areaDialog.isUpdate) {\n response = await Axios.patch(this.areaDialog.path, {area: this.areaDialog.area})\n } else {\n response = await Axios.post(this.areaDialog.path, {area: this.areaDialog.area})\n }\n let data = response.data;\n this.areaDialog.isLoading = false;\n if (data.success === true) {\n this.areaDialog.isVisible = false\n } else {\n this.areaDialog.errors = data.errors;\n }\n }\n },\n created() {\n this.resetAddressForm();\n this.resetAreaForm();\n this.loadProductCategories();\n },\n async mounted() {\n const csrfToken = document.querySelector(\"meta[name=csrf-token]\").content\n Axios.defaults.headers.common['X-CSRF-Token'] = csrfToken;\n\n const response = await Axios.get(this.profileCountriesPath('json'));\n this.countries = response.data.countries;\n },\n updated: function () {\n this.$nextTick(function () {\n feather.replace();\n })\n }\n });\n});\n","/* eslint no-console: 0 */\n// Run this example by adding <%= javascript_pack_tag 'hello_vue' %> (and\n// <%= stylesheet_pack_tag 'hello_vue' %> if you have styles in your component)\n// to the head of your layout file,\n// like app/views/layouts/application.html.erb.\n// All it does is render Hello Vue
at the bottom of the page.\n\nimport Vue from 'vue/dist/vue.js'\nimport SimpleCalculator from './components/simple-calculator.vue'\n\ndocument.addEventListener('DOMContentLoaded', () => {\n if (document.getElementById('calculator-app') == null) {\n return;\n }\n\n const calculatorApp = new Vue({\n el: '#calculator-app',\n components: { SimpleCalculator }\n });\n});\n","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar e = /*#__PURE__*/function () {\n function e() {\n _classCallCheck(this, e);\n\n this.figcaptionId = 0, this.userSettings = null;\n }\n\n _createClass(e, [{\n key: \"init\",\n value: function init(_e, t, i) {\n this.userSettings = i;\n\n var r = document.createElement(\"figure\"),\n n = document.createElement(\"figcaption\"),\n a = document.createElement(\"img\"),\n s = _e.querySelector(\"img\"),\n o = document.createElement(\"div\");\n\n r.style.opacity = \"0\", s && (a.alt = s.alt || \"\"), a.setAttribute(\"src\", \"\"), a.setAttribute(\"data-src\", _e.href), _e.hasAttribute(\"data-srcset\") && a.setAttribute(\"data-srcset\", _e.getAttribute(\"data-srcset\")), r.appendChild(a), this.userSettings.captions && (\"function\" == typeof this.userSettings.captionText ? n.textContent = this.userSettings.captionText(_e) : \"self\" === this.userSettings.captionsSelector && _e.getAttribute(this.userSettings.captionAttribute) ? n.textContent = _e.getAttribute(this.userSettings.captionAttribute) : \"img\" === this.userSettings.captionsSelector && s && s.getAttribute(this.userSettings.captionAttribute) && (n.textContent = s.getAttribute(this.userSettings.captionAttribute)), n.textContent && (n.id = \"tobii-figcaption-\".concat(this.figcaptionId), r.appendChild(n), a.setAttribute(\"aria-labelledby\", n.id), ++this.figcaptionId)), t.appendChild(r), o.className = \"tobii__loader\", o.setAttribute(\"role\", \"progressbar\"), o.setAttribute(\"aria-label\", this.userSettings.loadingIndicatorLabel), t.appendChild(o), t.setAttribute(\"data-type\", \"image\"), t.classList.add(\"tobii-image\");\n }\n }, {\n key: \"onPreload\",\n value: function onPreload(_e2) {\n this.onLoad(_e2);\n }\n }, {\n key: \"onLoad\",\n value: function onLoad(_e3) {\n var t = _e3.querySelector(\"img\");\n\n if (!t.hasAttribute(\"data-src\")) return;\n\n var i = _e3.querySelector(\"figure\"),\n r = _e3.querySelector(\".tobii__loader\");\n\n t.addEventListener(\"load\", function () {\n _e3.removeChild(r), i.style.opacity = \"1\";\n }), t.addEventListener(\"error\", function () {\n _e3.removeChild(r), i.style.opacity = \"1\";\n }), t.setAttribute(\"src\", t.getAttribute(\"data-src\")), t.removeAttribute(\"data-src\"), t.hasAttribute(\"data-srcset\") && t.setAttribute(\"srcset\", t.getAttribute(\"data-srcset\"));\n }\n }, {\n key: \"onLeave\",\n value: function onLeave(_e4) {}\n }, {\n key: \"onCleanup\",\n value: function onCleanup(_e5) {}\n }, {\n key: \"onReset\",\n value: function onReset() {\n this.figcaptionId = 0;\n }\n }]);\n\n return e;\n}();\n\nvar t = /*#__PURE__*/function () {\n function t() {\n _classCallCheck(this, t);\n\n this.userSettings = null;\n }\n\n _createClass(t, [{\n key: \"init\",\n value: function init(e, _t, i) {\n this.userSettings = i;\n var r = e.hasAttribute(\"data-target\") ? e.getAttribute(\"data-target\") : e.getAttribute(\"href\");\n _t.setAttribute(\"data-HREF\", r), e.getAttribute(\"data-allow\") && _t.setAttribute(\"data-allow\", e.getAttribute(\"data-allow\")), e.hasAttribute(\"data-width\") && _t.setAttribute(\"data-width\", \"\".concat(e.getAttribute(\"data-width\"))), e.hasAttribute(\"data-height\") && _t.setAttribute(\"data-height\", \"\".concat(e.getAttribute(\"data-height\"))), _t.setAttribute(\"data-type\", \"iframe\"), _t.classList.add(\"tobii-iframe\");\n }\n }, {\n key: \"onPreload\",\n value: function onPreload(e) {}\n }, {\n key: \"onLoad\",\n value: function onLoad(e) {\n var _t2 = e.querySelector(\"iframe\");\n\n var i = document.createElement(\"div\");\n\n if (i.className = \"tobii__loader\", i.setAttribute(\"role\", \"progressbar\"), i.setAttribute(\"aria-label\", this.userSettings.loadingIndicatorLabel), e.appendChild(i), null == _t2) {\n _t2 = document.createElement(\"iframe\");\n\n var _i = e.getAttribute(\"data-href\");\n\n _t2.setAttribute(\"frameborder\", \"0\"), _t2.setAttribute(\"src\", _i), _t2.setAttribute(\"allowfullscreen\", \"\"), _i.indexOf(\"youtube.com\") > -1 ? _t2.setAttribute(\"allow\", \"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\") : _i.indexOf(\"vimeo.com\") > -1 ? _t2.setAttribute(\"allow\", \"autoplay; picture-in-picture\") : e.hasAttribute(\"data-allow\") && _t2.setAttribute(\"allow\", e.getAttribute(\"data-allow\")), e.getAttribute(\"data-width\") && (_t2.style.maxWidth = \"\".concat(e.getAttribute(\"data-width\"))), e.getAttribute(\"data-height\") && (_t2.style.maxHeight = \"\".concat(e.getAttribute(\"data-height\"))), _t2.style.opacity = \"0\", e.appendChild(_t2), _t2.addEventListener(\"load\", function () {\n _t2.style.opacity = \"1\";\n var i = e.querySelector(\".tobii__loader\");\n i && e.removeChild(i);\n }), _t2.addEventListener(\"error\", function () {\n _t2.style.opacity = \"1\";\n var i = e.querySelector(\".tobii__loader\");\n i && e.removeChild(i);\n });\n } else _t2.setAttribute(\"src\", e.getAttribute(\"data-href\"));\n }\n }, {\n key: \"onLeave\",\n value: function onLeave(e) {}\n }, {\n key: \"onCleanup\",\n value: function onCleanup(e) {\n var _t3 = e.querySelector(\"iframe\");\n\n _t3.setAttribute(\"src\", \"\"), _t3.style.opacity = \"0\";\n }\n }, {\n key: \"onReset\",\n value: function onReset() {}\n }]);\n\n return t;\n}();\n\nvar i = /*#__PURE__*/function () {\n function i() {\n _classCallCheck(this, i);\n\n this.userSettings = null;\n }\n\n _createClass(i, [{\n key: \"init\",\n value: function init(e, t, _i2) {\n this.userSettings = _i2;\n var r = e.hasAttribute(\"data-target\") ? e.getAttribute(\"data-target\") : e.getAttribute(\"href\"),\n n = document.querySelector(r).cloneNode(!0);\n if (!n) throw new Error(\"Ups, I can't find the target \".concat(r, \".\"));\n t.appendChild(n), t.setAttribute(\"data-type\", \"html\"), t.classList.add(\"tobii-html\");\n }\n }, {\n key: \"onPreload\",\n value: function onPreload(e) {}\n }, {\n key: \"onLoad\",\n value: function onLoad(e) {\n var t = e.querySelector(\"video\");\n t && (t.hasAttribute(\"data-time\") && t.readyState > 0 && (t.currentTime = t.getAttribute(\"data-time\")), this.userSettings.autoplayVideo && t.play());\n }\n }, {\n key: \"onLeave\",\n value: function onLeave(e) {\n var t = e.querySelector(\"video\");\n t && (t.paused || t.pause(), t.readyState > 0 && t.setAttribute(\"data-time\", t.currentTime));\n }\n }, {\n key: \"onCleanup\",\n value: function onCleanup(e) {\n var t = e.querySelector(\"video\");\n\n if (t && t.readyState > 0 && t.readyState < 3 && t.duration !== t.currentTime) {\n var _i4 = t.cloneNode(!0);\n\n this._removeSources(t), t.load(), t.parentNode.removeChild(t), e.appendChild(_i4);\n }\n }\n }, {\n key: \"onReset\",\n value: function onReset() {}\n }, {\n key: \"_removeSources\",\n value: function _removeSources(e) {\n var t = e.querySelectorAll(\"src\");\n t && t.forEach(function (e) {\n e.setAttribute(\"src\", \"\");\n });\n }\n }]);\n\n return i;\n}();\n\nvar r = /*#__PURE__*/function () {\n function r() {\n _classCallCheck(this, r);\n\n this.playerId = 0, this.PLAYER = [], this.userSettings = null;\n }\n\n _createClass(r, [{\n key: \"init\",\n value: function init(e, t, i) {\n this.userSettings = i;\n\n var _r = document.createElement(\"div\");\n\n t.appendChild(_r), this.PLAYER[this.playerId] = new window.YT.Player(_r, {\n host: \"https://www.youtube-nocookie.com\",\n height: e.getAttribute(\"data-height\") || \"360\",\n width: e.getAttribute(\"data-width\") || \"640\",\n videoId: e.getAttribute(\"data-id\"),\n playerVars: {\n controls: e.getAttribute(\"data-controls\") || 1,\n rel: 0,\n playsinline: 1\n }\n }), t.setAttribute(\"data-player\", this.playerId), t.setAttribute(\"data-type\", \"youtube\"), t.classList.add(\"tobii-youtube\"), this.playerId++;\n }\n }, {\n key: \"onPreload\",\n value: function onPreload(e) {}\n }, {\n key: \"onLoad\",\n value: function onLoad(e) {\n this.userSettings.autoplayVideo && this.PLAYER[e.getAttribute(\"data-player\")].playVideo();\n }\n }, {\n key: \"onLeave\",\n value: function onLeave(e) {\n 1 === this.PLAYER[e.getAttribute(\"data-player\")].getPlayerState() && this.PLAYER[e.getAttribute(\"data-player\")].pauseVideo();\n }\n }, {\n key: \"onCleanup\",\n value: function onCleanup(e) {\n 1 === this.PLAYER[e.getAttribute(\"data-player\")].getPlayerState() && this.PLAYER[e.getAttribute(\"data-player\")].pauseVideo();\n }\n }, {\n key: \"onReset\",\n value: function onReset() {}\n }]);\n\n return r;\n}();\n\nfunction n(a) {\n var s = {\n image: new e(),\n html: new i(),\n iframe: new t(),\n youtube: new r()\n },\n o = ['a[href]:not([tabindex^=\"-\"]):not([inert])', 'area[href]:not([tabindex^=\"-\"]):not([inert])', \"input:not([disabled]):not([inert])\", \"select:not([disabled]):not([inert])\", \"textarea:not([disabled]):not([inert])\", \"button:not([disabled]):not([inert])\", 'iframe:not([tabindex^=\"-\"]):not([inert])', 'audio:not([tabindex^=\"-\"]):not([inert])', 'video:not([tabindex^=\"-\"]):not([inert])', '[contenteditable]:not([tabindex^=\"-\"]):not([inert])', '[tabindex]:not([tabindex^=\"-\"]):not([inert])'];\n var d = {};\n var l = [],\n u = {\n gallery: [],\n slider: null,\n sliderElements: [],\n elementsLength: 0,\n currentIndex: 0,\n x: 0\n };\n var c = null,\n b = null,\n p = null,\n h = null,\n m = null,\n g = {},\n y = !1,\n v = !1,\n f = !1,\n w = null,\n A = null,\n E = null,\n L = !1,\n x = !1,\n _ = {},\n I = null,\n S = null;\n\n var C = function C(e) {\n if (null === document.querySelector('[data-type=\"youtube\"]') || x) P(e);else {\n if (null === document.getElementById(\"iframe_api\")) {\n var _e6 = document.createElement(\"script\"),\n _t4 = document.getElementsByTagName(\"script\")[0];\n\n _e6.id = \"iframe_api\", _e6.src = \"https://www.youtube.com/iframe_api\", _t4.parentNode.insertBefore(_e6, _t4);\n }\n\n -1 === l.indexOf(e) && l.push(e), window.onYouTubePlayerAPIReady = function () {\n l.forEach(function (e) {\n P(e);\n }), x = !0;\n };\n }\n },\n T = function T(e) {\n return e.hasAttribute(\"data-group\") ? e.getAttribute(\"data-group\") : \"default\";\n },\n P = function P(e) {\n if (I = T(e), Object.prototype.hasOwnProperty.call(_, I) || (_[I] = JSON.parse(JSON.stringify(u)), Y()), -1 !== _[I].gallery.indexOf(e)) throw new Error(\"Ups, element already added.\");\n\n if (_[I].gallery.push(e), _[I].elementsLength++, d.zoom && e.querySelector(\"img\") && \"false\" !== e.getAttribute(\"data-zoom\") || \"true\" === e.getAttribute(\"data-zoom\")) {\n var _t5 = document.createElement(\"div\");\n\n _t5.className = \"tobii-zoom__icon\", _t5.innerHTML = d.zoomText, e.classList.add(\"tobii-zoom\"), e.appendChild(_t5);\n }\n\n e.addEventListener(\"click\", F), N(e), ue() && I === S && (oe(), de(null));\n },\n q = function q(e) {\n var t = T(e);\n if (-1 === _[t].gallery.indexOf(e)) throw new Error(\"Ups, I can't find a slide for the element \".concat(e, \".\"));\n {\n var _i5 = _[t].gallery.indexOf(e),\n _r2 = _[t].sliderElements[_i5];\n\n if (ue() && t === S && _i5 === _[t].currentIndex) {\n if (1 === _[t].elementsLength) throw U(), new Error(\"Ups, I've closed. There are no slides more to show.\");\n 0 === _[t].currentIndex ? R() : z();\n }\n\n if (_[t].elementsLength--, d.zoom && e.querySelector(\".tobii-zoom__icon\")) {\n var _t6 = e.querySelector(\".tobii-zoom__icon\");\n\n _t6.parentNode.classList.remove(\"tobii-zoom\"), _t6.parentNode.removeChild(_t6);\n }\n\n e.removeEventListener(\"click\", F), _r2.parentNode.removeChild(_r2);\n }\n },\n Y = function Y() {\n _[I].slider = document.createElement(\"div\"), _[I].slider.className = \"tobii__slider\", _[I].slider.setAttribute(\"aria-hidden\", \"true\"), c.appendChild(_[I].slider);\n },\n N = function N(e) {\n var t = k(e),\n i = document.createElement(\"div\"),\n r = document.createElement(\"div\");\n i.className = \"tobii__slide\", i.style.position = \"absolute\", i.style.left = 100 * _[I].x + \"%\", i.setAttribute(\"aria-hidden\", \"true\"), t.init(e, r, d), i.appendChild(r), _[I].slider.appendChild(i), _[I].sliderElements.push(i), ++_[I].x;\n },\n k = function k(e) {\n var t = e.getAttribute(\"data-type\");\n return void 0 !== s[t] ? s[t] : (e.hasAttribute(\"data-type\") && console.log(\"Unknown lightbox element type: \" + t), s.image);\n },\n O = function O(e) {\n if (S = null !== S ? S : I, ue()) throw new Error(\"Ups, I'm aleady open.\");\n if (!ue() && (e || (e = 0), -1 === e || e >= _[S].elementsLength)) throw new Error(\"Ups, I can't find slide \".concat(e, \".\"));\n document.documentElement.classList.add(\"tobii-is-open\"), document.body.classList.add(\"tobii-is-open\"), document.body.classList.add(\"tobii-is-open-\" + S), oe(), d.close || (h.disabled = !1, h.setAttribute(\"aria-hidden\", \"true\")), w = document.activeElement;\n var t = window.location.href;\n window.history.pushState({\n tobii: \"close\"\n }, \"Image\", t), _[S].currentIndex = e, V(), ae(), $(_[S].currentIndex), _[S].slider.setAttribute(\"aria-hidden\", \"false\"), c.setAttribute(\"aria-hidden\", \"false\"), de(null), X(_[S].currentIndex + 1), X(_[S].currentIndex - 1), _[S].slider.classList.add(\"tobii__slider--animate\");\n var i = new window.CustomEvent(\"open\", {\n detail: {\n group: S\n }\n });\n c.dispatchEvent(i);\n },\n U = function U() {\n if (!ue()) throw new Error(\"Ups, I'm already closed.\");\n document.documentElement.classList.remove(\"tobii-is-open\"), document.body.classList.remove(\"tobii-is-open\"), document.body.classList.remove(\"tobii-is-open-\" + S), se(), null !== window.history.state && \"close\" === window.history.state.tobii && window.history.back(), w.focus(), H(_[S].currentIndex), D(_[S].currentIndex), c.setAttribute(\"aria-hidden\", \"true\"), _[S].slider.setAttribute(\"aria-hidden\", \"true\"), _[S].currentIndex = 0, _[S].slider.classList.remove(\"tobii__slider--animate\");\n var e = new window.CustomEvent(\"close\", {\n detail: {\n group: S\n }\n });\n c.dispatchEvent(e);\n },\n X = function X(e) {\n if (void 0 === _[S].sliderElements[e]) return;\n\n var t = _[S].sliderElements[e].querySelector(\"[data-type]\");\n\n k(t).onPreload(t);\n },\n $ = function $(e) {\n if (void 0 === _[S].sliderElements[e]) return;\n\n var t = _[S].sliderElements[e].querySelector(\"[data-type]\"),\n i = k(t);\n\n _[S].sliderElements[e].classList.add(\"tobii__slide--is-active\"), _[S].sliderElements[e].setAttribute(\"aria-hidden\", \"false\"), i.onLoad(t);\n },\n z = function z() {\n if (!ue()) throw new Error(\"Ups, I'm closed.\");\n _[S].currentIndex > 0 && (H(_[S].currentIndex), $(--_[S].currentIndex), de(\"left\"), D(_[S].currentIndex + 1), X(_[S].currentIndex - 1));\n var e = new window.CustomEvent(\"previous\", {\n detail: {\n group: S\n }\n });\n c.dispatchEvent(e);\n },\n R = function R() {\n if (!ue()) throw new Error(\"Ups, I'm closed.\");\n _[S].currentIndex < _[S].elementsLength - 1 && (H(_[S].currentIndex), $(++_[S].currentIndex), de(\"right\"), D(_[S].currentIndex - 1), X(_[S].currentIndex + 1));\n var e = new window.CustomEvent(\"next\", {\n detail: {\n group: S\n }\n });\n c.dispatchEvent(e);\n },\n M = function M(e) {\n if (ue()) throw new Error(\"Ups, I'm open.\");\n if (!e) throw new Error(\"Ups, no group specified.\");\n if (e && !Object.prototype.hasOwnProperty.call(_, e)) throw new Error(\"Ups, I don't have a group called \\\"\".concat(e, \"\\\".\"));\n S = e;\n },\n H = function H(e) {\n if (void 0 === _[S].sliderElements[e]) return;\n\n var t = _[S].sliderElements[e].querySelector(\"[data-type]\"),\n i = k(t);\n\n _[S].sliderElements[e].classList.remove(\"tobii__slide--is-active\"), _[S].sliderElements[e].setAttribute(\"aria-hidden\", \"true\"), i.onLeave(t);\n },\n D = function D(e) {\n if (void 0 === _[S].sliderElements[e]) return;\n\n var t = _[S].sliderElements[e].querySelector(\"[data-type]\");\n\n k(t).onCleanup(t);\n },\n B = function B() {\n S = null !== S ? S : I, A = -_[S].currentIndex * c.offsetWidth, _[S].slider.style.transform = \"translate3d(\".concat(A, \"px, 0, 0)\"), E = A;\n },\n V = function V() {\n g = {\n startX: 0,\n endX: 0,\n startY: 0,\n endY: 0\n };\n },\n j = function j() {\n var e = g.endX - g.startX,\n t = g.endY - g.startY,\n i = Math.abs(e),\n r = Math.abs(t);\n e > 0 && i > d.threshold && _[S].currentIndex > 0 ? z() : e < 0 && i > d.threshold && _[S].currentIndex !== _[S].elementsLength - 1 ? R() : t < 0 && r > d.threshold && d.swipeClose ? U() : B();\n },\n W = function W() {\n L || (L = !0, window.requestAnimationFrame(function () {\n B(), L = !1;\n }));\n },\n F = function F(e) {\n e.preventDefault(), S = T(e.currentTarget), O(_[S].gallery.indexOf(e.currentTarget));\n },\n G = function G(e) {\n e.target === b ? z() : e.target === p ? R() : (e.target === h || !1 === y && !1 === v && e.target.classList.contains(\"tobii__slide\") && d.docClose) && U(), e.stopPropagation();\n },\n J = function J(e) {\n var t = Array.prototype.slice.call(c.querySelectorAll(\".tobii__btn:not([disabled]), .tobii__slide--is-active \".concat(o.join(\", .tobii__slide--is-active \")))).filter(function (e) {\n return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length);\n }),\n i = t.indexOf(document.activeElement);\n 9 === e.keyCode || \"Tab\" === e.code ? e.shiftKey && 0 === i ? (t[t.length - 1].focus(), e.preventDefault()) : e.shiftKey || i !== t.length - 1 || (t[0].focus(), e.preventDefault()) : 27 === e.keyCode || \"Escape\" === e.code ? (e.preventDefault(), U()) : 37 === e.keyCode || \"ArrowLeft\" === e.code ? (e.preventDefault(), z()) : 39 !== e.keyCode && \"ArrowRight\" !== e.code || (e.preventDefault(), R());\n },\n K = function K(e) {\n be(e.target) || (e.stopPropagation(), y = !1, v = !1, f = !0, g.startX = e.touches[0].pageX, g.startY = e.touches[0].pageY, ce() && _[S].slider.classList.add(\"tobii__slider--is-dragging\"));\n },\n Q = function Q(e) {\n e.stopPropagation(), f && (g.endX = e.touches[0].pageX, g.endY = e.touches[0].pageY, ne());\n },\n Z = function Z(e) {\n e.stopPropagation(), f = !1, _[S].slider.classList.remove(\"tobii__slider--is-dragging\"), g.endX && j(), V();\n },\n ee = function ee(e) {\n be(e.target) || (e.preventDefault(), e.stopPropagation(), y = !1, v = !1, f = !0, g.startX = e.pageX, g.startY = e.pageY, ce() && _[S].slider.classList.add(\"tobii__slider--is-dragging\"));\n },\n te = function te(e) {\n e.preventDefault(), f && (g.endX = e.pageX, g.endY = e.pageY, ne());\n },\n ie = function ie(e) {\n e.stopPropagation(), f = !1, _[S].slider.classList.remove(\"tobii__slider--is-dragging\"), g.endX && j(), V();\n },\n re = function re() {\n f = !1;\n },\n ne = function ne() {\n Math.abs(g.startX - g.endX) > 0 && !v && _[S].elementsLength > 1 ? (_[S].slider.style.transform = \"translate3d(\".concat(E - Math.round(g.startX - g.endX), \"px, 0, 0)\"), y = !0, v = !1) : Math.abs(g.startY - g.endY) > 0 && !y && d.swipeClose && (_[S].slider.style.transform = \"translate3d(\".concat(E, \"px, -\").concat(Math.round(g.startY - g.endY), \"px, 0)\"), y = !1, v = !0);\n },\n ae = function ae() {\n d.keyboard && window.addEventListener(\"keydown\", J), window.addEventListener(\"resize\", W), window.addEventListener(\"popstate\", U), c.addEventListener(\"click\", G), d.draggable && ce() && (c.addEventListener(\"touchstart\", K), c.addEventListener(\"touchmove\", Q), c.addEventListener(\"touchend\", Z), c.addEventListener(\"mousedown\", ee), c.addEventListener(\"mouseup\", ie), c.addEventListener(\"mousemove\", te), c.addEventListener(\"contextmenu\", re));\n },\n se = function se() {\n d.keyboard && window.removeEventListener(\"keydown\", J), window.removeEventListener(\"resize\", W), window.removeEventListener(\"popstate\", U), c.removeEventListener(\"click\", G), d.draggable && ce() && (c.removeEventListener(\"touchstart\", K), c.removeEventListener(\"touchmove\", Q), c.removeEventListener(\"touchend\", Z), c.removeEventListener(\"mousedown\", ee), c.removeEventListener(\"mouseup\", ie), c.removeEventListener(\"mousemove\", te), c.removeEventListener(\"contextmenu\", re));\n },\n oe = function oe() {\n (d.draggable && d.swipeClose && ce() && !_[S].slider.classList.contains(\"tobii__slider--is-draggable\") || d.draggable && _[S].elementsLength > 1 && !_[S].slider.classList.contains(\"tobii__slider--is-draggable\")) && _[S].slider.classList.add(\"tobii__slider--is-draggable\"), !d.nav || 1 === _[S].elementsLength || \"auto\" === d.nav && ce() ? (b.setAttribute(\"aria-hidden\", \"true\"), b.disabled = !0, p.setAttribute(\"aria-hidden\", \"true\"), p.disabled = !0) : (b.setAttribute(\"aria-hidden\", \"false\"), b.disabled = !1, p.setAttribute(\"aria-hidden\", \"false\"), p.disabled = !1), m.setAttribute(\"aria-hidden\", d.counter && 1 !== _[S].elementsLength ? \"false\" : \"true\");\n },\n de = function de(e) {\n B(), m.textContent = \"\".concat(_[S].currentIndex + 1, \"/\").concat(_[S].elementsLength), function (e) {\n (!0 === d.nav || \"auto\" === d.nav) && !ce() && _[S].elementsLength > 1 ? (b.setAttribute(\"aria-hidden\", \"true\"), b.disabled = !0, p.setAttribute(\"aria-hidden\", \"true\"), p.disabled = !0, 1 === _[S].elementsLength ? d.close && h.focus() : 0 === _[S].currentIndex ? (p.setAttribute(\"aria-hidden\", \"false\"), p.disabled = !1, p.focus()) : _[S].currentIndex === _[S].elementsLength - 1 ? (b.setAttribute(\"aria-hidden\", \"false\"), b.disabled = !1, b.focus()) : (b.setAttribute(\"aria-hidden\", \"false\"), b.disabled = !1, p.setAttribute(\"aria-hidden\", \"false\"), p.disabled = !1, \"left\" === e ? b.focus() : p.focus())) : d.close && h.focus();\n }(e);\n },\n le = function le() {\n ue() && U(), Object.entries(_).forEach(function (e) {\n e[1].gallery.forEach(function (e) {\n q(e);\n });\n }), _ = {}, I = S = null;\n\n for (var _e7 in s) {\n s[_e7].onReset();\n }\n },\n ue = function ue() {\n return \"false\" === c.getAttribute(\"aria-hidden\");\n },\n ce = function ce() {\n return \"ontouchstart\" in window;\n },\n be = function be(e) {\n return -1 !== [\"TEXTAREA\", \"OPTION\", \"INPUT\", \"SELECT\"].indexOf(e.nodeName) || e === b || e === p || e === h;\n };\n\n return function (e) {\n if (document.querySelector(\"div.tobii\")) return void console.log(\"Multiple lightbox instances not supported.\");\n d = function (e) {\n return _objectSpread({\n selector: \".lightbox\",\n captions: !0,\n captionsSelector: \"img\",\n captionAttribute: \"alt\",\n captionText: null,\n nav: \"auto\",\n navText: ['', ''],\n navLabel: [\"Previous image\", \"Next image\"],\n close: !0,\n closeText: '',\n closeLabel: \"Close lightbox\",\n loadingIndicatorLabel: \"Image loading\",\n counter: !0,\n download: !1,\n downloadText: \"\",\n downloadLabel: \"Download image\",\n keyboard: !0,\n zoom: !0,\n zoomText: '',\n docClose: !0,\n swipeClose: !0,\n hideScrollbar: !0,\n draggable: !0,\n threshold: 100,\n rtl: !1,\n loop: !1,\n autoplayVideo: !1,\n modal: !1,\n theme: \"tobii--theme-default\"\n }, e);\n }(e), c || (c = document.createElement(\"div\"), c.setAttribute(\"role\", \"dialog\"), c.setAttribute(\"aria-hidden\", \"true\"), c.classList.add(\"tobii\"), c.classList.add(d.theme), b = document.createElement(\"button\"), b.className = \"tobii__btn tobii__btn--previous\", b.setAttribute(\"type\", \"button\"), b.setAttribute(\"aria-label\", d.navLabel[0]), b.innerHTML = d.navText[0], c.appendChild(b), p = document.createElement(\"button\"), p.className = \"tobii__btn tobii__btn--next\", p.setAttribute(\"type\", \"button\"), p.setAttribute(\"aria-label\", d.navLabel[1]), p.innerHTML = d.navText[1], c.appendChild(p), h = document.createElement(\"button\"), h.className = \"tobii__btn tobii__btn--close\", h.setAttribute(\"type\", \"button\"), h.setAttribute(\"aria-label\", d.closeLabel), h.innerHTML = d.closeText, c.appendChild(h), m = document.createElement(\"div\"), m.className = \"tobii__counter\", c.appendChild(m), document.body.appendChild(c));\n var t = document.querySelectorAll(d.selector);\n if (!t) throw new Error(\"Ups, I can't find the selector \".concat(d.selector, \" on this website.\"));\n var i = [];\n t.forEach(function (e) {\n var t = e.hasAttribute(\"data-group\") ? e.getAttribute(\"data-group\") : \"default\";\n var r = e.href;\n e.hasAttribute(\"data-target\") && (r = e.getAttribute(\"data-target\")), r += \"__\" + t, void 0 !== i[r] ? e.addEventListener(\"click\", function (e) {\n M(t), O(), e.preventDefault();\n }) : (i[r] = 1, C(e));\n });\n }(a), n.open = O, n.previous = z, n.next = R, n.close = U, n.add = C, n.remove = q, n.reset = le, n.destroy = function () {\n le(), c.parentNode.removeChild(c);\n }, n.isOpen = ue, n.slidesIndex = function () {\n return _[S].currentIndex;\n }, n.select = function (e) {\n var t = _[S].currentIndex;\n if (!ue()) throw new Error(\"Ups, I'm closed.\");\n\n if (ue()) {\n if (!e && 0 !== e) throw new Error(\"Ups, no slide specified.\");\n if (e === _[S].currentIndex) throw new Error(\"Ups, slide \".concat(e, \" is already selected.\"));\n if (-1 === e || e >= _[S].elementsLength) throw new Error(\"Ups, I can't find slide \".concat(e, \".\"));\n }\n\n _[S].currentIndex = e, H(t), $(e), e < t && (de(\"left\"), D(t), X(e - 1)), e > t && (de(\"right\"), D(t), X(e + 1));\n }, n.slidesCount = function () {\n return _[S].elementsLength;\n }, n.selectGroup = M, n.currentGroup = function () {\n return null !== S ? S : I;\n }, n.on = function (e, t) {\n c.addEventListener(e, t);\n }, n.off = function (e, t) {\n c.removeEventListener(e, t);\n }, n;\n}\n\nexport { n as default };","import Tobii from '@midzer/tobii';\nimport '@midzer/tobii/dist/tobii.min.css';\n\nwindow.addEventListener('DOMContentLoaded', () => {\n new Tobii({\n autoplayVideo: true\n });\n});\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/*\nUnobtrusive JavaScript\nhttps://github.com/rails/rails/blob/main/actionview/app/assets/javascripts\nReleased under the MIT license\n */\n;\n(function () {\n var context = this;\n (function () {\n (function () {\n this.Rails = {\n linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]',\n buttonClickSelector: {\n selector: 'button[data-remote]:not([form]), button[data-confirm]:not([form])',\n exclude: 'form button'\n },\n inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',\n formSubmitSelector: 'form',\n formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])',\n formDisableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled',\n formEnableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled',\n fileInputSelector: 'input[name][type=file]:not([disabled])',\n linkDisableSelector: 'a[data-disable-with], a[data-disable]',\n buttonDisableSelector: 'button[data-remote][data-disable-with], button[data-remote][data-disable]'\n };\n }).call(this);\n }).call(context);\n var Rails = context.Rails;\n (function () {\n (function () {\n var nonce;\n nonce = null;\n\n Rails.loadCSPNonce = function () {\n var ref;\n return nonce = (ref = document.querySelector(\"meta[name=csp-nonce]\")) != null ? ref.content : void 0;\n };\n\n Rails.cspNonce = function () {\n return nonce != null ? nonce : Rails.loadCSPNonce();\n };\n }).call(this);\n (function () {\n var expando, m;\n m = Element.prototype.matches || Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector;\n\n Rails.matches = function (element, selector) {\n if (selector.exclude != null) {\n return m.call(element, selector.selector) && !m.call(element, selector.exclude);\n } else {\n return m.call(element, selector);\n }\n };\n\n expando = '_ujsData';\n\n Rails.getData = function (element, key) {\n var ref;\n return (ref = element[expando]) != null ? ref[key] : void 0;\n };\n\n Rails.setData = function (element, key, value) {\n if (element[expando] == null) {\n element[expando] = {};\n }\n\n return element[expando][key] = value;\n };\n\n Rails.$ = function (selector) {\n return Array.prototype.slice.call(document.querySelectorAll(selector));\n };\n }).call(this);\n (function () {\n var $, csrfParam, csrfToken;\n $ = Rails.$;\n\n csrfToken = Rails.csrfToken = function () {\n var meta;\n meta = document.querySelector('meta[name=csrf-token]');\n return meta && meta.content;\n };\n\n csrfParam = Rails.csrfParam = function () {\n var meta;\n meta = document.querySelector('meta[name=csrf-param]');\n return meta && meta.content;\n };\n\n Rails.CSRFProtection = function (xhr) {\n var token;\n token = csrfToken();\n\n if (token != null) {\n return xhr.setRequestHeader('X-CSRF-Token', token);\n }\n };\n\n Rails.refreshCSRFTokens = function () {\n var param, token;\n token = csrfToken();\n param = csrfParam();\n\n if (token != null && param != null) {\n return $('form input[name=\"' + param + '\"]').forEach(function (input) {\n return input.value = token;\n });\n }\n };\n }).call(this);\n (function () {\n var CustomEvent, fire, matches, preventDefault;\n matches = Rails.matches;\n CustomEvent = window.CustomEvent;\n\n if (typeof CustomEvent !== 'function') {\n CustomEvent = function CustomEvent(event, params) {\n var evt;\n evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\n return evt;\n };\n\n CustomEvent.prototype = window.Event.prototype;\n preventDefault = CustomEvent.prototype.preventDefault;\n\n CustomEvent.prototype.preventDefault = function () {\n var result;\n result = preventDefault.call(this);\n\n if (this.cancelable && !this.defaultPrevented) {\n Object.defineProperty(this, 'defaultPrevented', {\n get: function get() {\n return true;\n }\n });\n }\n\n return result;\n };\n }\n\n fire = Rails.fire = function (obj, name, data) {\n var event;\n event = new CustomEvent(name, {\n bubbles: true,\n cancelable: true,\n detail: data\n });\n obj.dispatchEvent(event);\n return !event.defaultPrevented;\n };\n\n Rails.stopEverything = function (e) {\n fire(e.target, 'ujs:everythingStopped');\n e.preventDefault();\n e.stopPropagation();\n return e.stopImmediatePropagation();\n };\n\n Rails.delegate = function (element, selector, eventType, handler) {\n return element.addEventListener(eventType, function (e) {\n var target;\n target = e.target;\n\n while (!(!(target instanceof Element) || matches(target, selector))) {\n target = target.parentNode;\n }\n\n if (target instanceof Element && handler.call(target, e) === false) {\n e.preventDefault();\n return e.stopPropagation();\n }\n });\n };\n }).call(this);\n (function () {\n var AcceptHeaders, CSRFProtection, createXHR, cspNonce, fire, prepareOptions, processResponse;\n cspNonce = Rails.cspNonce, CSRFProtection = Rails.CSRFProtection, fire = Rails.fire;\n AcceptHeaders = {\n '*': '*/*',\n text: 'text/plain',\n html: 'text/html',\n xml: 'application/xml, text/xml',\n json: 'application/json, text/javascript',\n script: 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript'\n };\n\n Rails.ajax = function (options) {\n var xhr;\n options = prepareOptions(options);\n xhr = createXHR(options, function () {\n var ref, response;\n response = processResponse((ref = xhr.response) != null ? ref : xhr.responseText, xhr.getResponseHeader('Content-Type'));\n\n if (Math.floor(xhr.status / 100) === 2) {\n if (typeof options.success === \"function\") {\n options.success(response, xhr.statusText, xhr);\n }\n } else {\n if (typeof options.error === \"function\") {\n options.error(response, xhr.statusText, xhr);\n }\n }\n\n return typeof options.complete === \"function\" ? options.complete(xhr, xhr.statusText) : void 0;\n });\n\n if (options.beforeSend != null && !options.beforeSend(xhr, options)) {\n return false;\n }\n\n if (xhr.readyState === XMLHttpRequest.OPENED) {\n return xhr.send(options.data);\n }\n };\n\n prepareOptions = function prepareOptions(options) {\n options.url = options.url || location.href;\n options.type = options.type.toUpperCase();\n\n if (options.type === 'GET' && options.data) {\n if (options.url.indexOf('?') < 0) {\n options.url += '?' + options.data;\n } else {\n options.url += '&' + options.data;\n }\n }\n\n if (AcceptHeaders[options.dataType] == null) {\n options.dataType = '*';\n }\n\n options.accept = AcceptHeaders[options.dataType];\n\n if (options.dataType !== '*') {\n options.accept += ', */*; q=0.01';\n }\n\n return options;\n };\n\n createXHR = function createXHR(options, done) {\n var xhr;\n xhr = new XMLHttpRequest();\n xhr.open(options.type, options.url, true);\n xhr.setRequestHeader('Accept', options.accept);\n\n if (typeof options.data === 'string') {\n xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');\n }\n\n if (!options.crossDomain) {\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n CSRFProtection(xhr);\n }\n\n xhr.withCredentials = !!options.withCredentials;\n\n xhr.onreadystatechange = function () {\n if (xhr.readyState === XMLHttpRequest.DONE) {\n return done(xhr);\n }\n };\n\n return xhr;\n };\n\n processResponse = function processResponse(response, type) {\n var parser, script;\n\n if (typeof response === 'string' && typeof type === 'string') {\n if (type.match(/\\bjson\\b/)) {\n try {\n response = JSON.parse(response);\n } catch (error) {}\n } else if (type.match(/\\b(?:java|ecma)script\\b/)) {\n script = document.createElement('script');\n script.setAttribute('nonce', cspNonce());\n script.text = response;\n document.head.appendChild(script).parentNode.removeChild(script);\n } else if (type.match(/\\b(xml|html|svg)\\b/)) {\n parser = new DOMParser();\n type = type.replace(/;.+/, '');\n\n try {\n response = parser.parseFromString(response, type);\n } catch (error) {}\n }\n }\n\n return response;\n };\n\n Rails.href = function (element) {\n return element.href;\n };\n\n Rails.isCrossDomain = function (url) {\n var e, originAnchor, urlAnchor;\n originAnchor = document.createElement('a');\n originAnchor.href = location.href;\n urlAnchor = document.createElement('a');\n\n try {\n urlAnchor.href = url;\n return !((!urlAnchor.protocol || urlAnchor.protocol === ':') && !urlAnchor.host || originAnchor.protocol + '//' + originAnchor.host === urlAnchor.protocol + '//' + urlAnchor.host);\n } catch (error) {\n e = error;\n return true;\n }\n };\n }).call(this);\n (function () {\n var matches, toArray;\n matches = Rails.matches;\n\n toArray = function toArray(e) {\n return Array.prototype.slice.call(e);\n };\n\n Rails.serializeElement = function (element, additionalParam) {\n var inputs, params;\n inputs = [element];\n\n if (matches(element, 'form')) {\n inputs = toArray(element.elements);\n }\n\n params = [];\n inputs.forEach(function (input) {\n if (!input.name || input.disabled) {\n return;\n }\n\n if (matches(input, 'fieldset[disabled] *')) {\n return;\n }\n\n if (matches(input, 'select')) {\n return toArray(input.options).forEach(function (option) {\n if (option.selected) {\n return params.push({\n name: input.name,\n value: option.value\n });\n }\n });\n } else if (input.checked || ['radio', 'checkbox', 'submit'].indexOf(input.type) === -1) {\n return params.push({\n name: input.name,\n value: input.value\n });\n }\n });\n\n if (additionalParam) {\n params.push(additionalParam);\n }\n\n return params.map(function (param) {\n if (param.name != null) {\n return encodeURIComponent(param.name) + \"=\" + encodeURIComponent(param.value);\n } else {\n return param;\n }\n }).join('&');\n };\n\n Rails.formElements = function (form, selector) {\n if (matches(form, 'form')) {\n return toArray(form.elements).filter(function (el) {\n return matches(el, selector);\n });\n } else {\n return toArray(form.querySelectorAll(selector));\n }\n };\n }).call(this);\n (function () {\n var allowAction, fire, stopEverything;\n fire = Rails.fire, stopEverything = Rails.stopEverything;\n\n Rails.handleConfirm = function (e) {\n if (!allowAction(this)) {\n return stopEverything(e);\n }\n };\n\n Rails.confirm = function (message, element) {\n return confirm(message);\n };\n\n allowAction = function allowAction(element) {\n var answer, callback, message;\n message = element.getAttribute('data-confirm');\n\n if (!message) {\n return true;\n }\n\n answer = false;\n\n if (fire(element, 'confirm')) {\n try {\n answer = Rails.confirm(message, element);\n } catch (error) {}\n\n callback = fire(element, 'confirm:complete', [answer]);\n }\n\n return answer && callback;\n };\n }).call(this);\n (function () {\n var disableFormElement, disableFormElements, disableLinkElement, enableFormElement, enableFormElements, enableLinkElement, formElements, getData, isXhrRedirect, matches, setData, stopEverything;\n matches = Rails.matches, getData = Rails.getData, setData = Rails.setData, stopEverything = Rails.stopEverything, formElements = Rails.formElements;\n\n Rails.handleDisabledElement = function (e) {\n var element;\n element = this;\n\n if (element.disabled) {\n return stopEverything(e);\n }\n };\n\n Rails.enableElement = function (e) {\n var element;\n\n if (e instanceof Event) {\n if (isXhrRedirect(e)) {\n return;\n }\n\n element = e.target;\n } else {\n element = e;\n }\n\n if (matches(element, Rails.linkDisableSelector)) {\n return enableLinkElement(element);\n } else if (matches(element, Rails.buttonDisableSelector) || matches(element, Rails.formEnableSelector)) {\n return enableFormElement(element);\n } else if (matches(element, Rails.formSubmitSelector)) {\n return enableFormElements(element);\n }\n };\n\n Rails.disableElement = function (e) {\n var element;\n element = e instanceof Event ? e.target : e;\n\n if (matches(element, Rails.linkDisableSelector)) {\n return disableLinkElement(element);\n } else if (matches(element, Rails.buttonDisableSelector) || matches(element, Rails.formDisableSelector)) {\n return disableFormElement(element);\n } else if (matches(element, Rails.formSubmitSelector)) {\n return disableFormElements(element);\n }\n };\n\n disableLinkElement = function disableLinkElement(element) {\n var replacement;\n\n if (getData(element, 'ujs:disabled')) {\n return;\n }\n\n replacement = element.getAttribute('data-disable-with');\n\n if (replacement != null) {\n setData(element, 'ujs:enable-with', element.innerHTML);\n element.innerHTML = replacement;\n }\n\n element.addEventListener('click', stopEverything);\n return setData(element, 'ujs:disabled', true);\n };\n\n enableLinkElement = function enableLinkElement(element) {\n var originalText;\n originalText = getData(element, 'ujs:enable-with');\n\n if (originalText != null) {\n element.innerHTML = originalText;\n setData(element, 'ujs:enable-with', null);\n }\n\n element.removeEventListener('click', stopEverything);\n return setData(element, 'ujs:disabled', null);\n };\n\n disableFormElements = function disableFormElements(form) {\n return formElements(form, Rails.formDisableSelector).forEach(disableFormElement);\n };\n\n disableFormElement = function disableFormElement(element) {\n var replacement;\n\n if (getData(element, 'ujs:disabled')) {\n return;\n }\n\n replacement = element.getAttribute('data-disable-with');\n\n if (replacement != null) {\n if (matches(element, 'button')) {\n setData(element, 'ujs:enable-with', element.innerHTML);\n element.innerHTML = replacement;\n } else {\n setData(element, 'ujs:enable-with', element.value);\n element.value = replacement;\n }\n }\n\n element.disabled = true;\n return setData(element, 'ujs:disabled', true);\n };\n\n enableFormElements = function enableFormElements(form) {\n return formElements(form, Rails.formEnableSelector).forEach(enableFormElement);\n };\n\n enableFormElement = function enableFormElement(element) {\n var originalText;\n originalText = getData(element, 'ujs:enable-with');\n\n if (originalText != null) {\n if (matches(element, 'button')) {\n element.innerHTML = originalText;\n } else {\n element.value = originalText;\n }\n\n setData(element, 'ujs:enable-with', null);\n }\n\n element.disabled = false;\n return setData(element, 'ujs:disabled', null);\n };\n\n isXhrRedirect = function isXhrRedirect(event) {\n var ref, xhr;\n xhr = (ref = event.detail) != null ? ref[0] : void 0;\n return (xhr != null ? xhr.getResponseHeader(\"X-Xhr-Redirect\") : void 0) != null;\n };\n }).call(this);\n (function () {\n var stopEverything;\n stopEverything = Rails.stopEverything;\n\n Rails.handleMethod = function (e) {\n var csrfParam, csrfToken, form, formContent, href, link, method;\n link = this;\n method = link.getAttribute('data-method');\n\n if (!method) {\n return;\n }\n\n href = Rails.href(link);\n csrfToken = Rails.csrfToken();\n csrfParam = Rails.csrfParam();\n form = document.createElement('form');\n formContent = \"\";\n\n if (csrfParam != null && csrfToken != null && !Rails.isCrossDomain(href)) {\n formContent += \"\";\n }\n\n formContent += '';\n form.method = 'post';\n form.action = href;\n form.target = link.target;\n form.innerHTML = formContent;\n form.style.display = 'none';\n document.body.appendChild(form);\n form.querySelector('[type=\"submit\"]').click();\n return stopEverything(e);\n };\n }).call(this);\n (function () {\n var ajax,\n fire,\n getData,\n isCrossDomain,\n isRemote,\n matches,\n serializeElement,\n setData,\n stopEverything,\n slice = [].slice;\n matches = Rails.matches, getData = Rails.getData, setData = Rails.setData, fire = Rails.fire, stopEverything = Rails.stopEverything, ajax = Rails.ajax, isCrossDomain = Rails.isCrossDomain, serializeElement = Rails.serializeElement;\n\n isRemote = function isRemote(element) {\n var value;\n value = element.getAttribute('data-remote');\n return value != null && value !== 'false';\n };\n\n Rails.handleRemote = function (e) {\n var button, data, dataType, element, method, url, withCredentials;\n element = this;\n\n if (!isRemote(element)) {\n return true;\n }\n\n if (!fire(element, 'ajax:before')) {\n fire(element, 'ajax:stopped');\n return false;\n }\n\n withCredentials = element.getAttribute('data-with-credentials');\n dataType = element.getAttribute('data-type') || 'script';\n\n if (matches(element, Rails.formSubmitSelector)) {\n button = getData(element, 'ujs:submit-button');\n method = getData(element, 'ujs:submit-button-formmethod') || element.method;\n url = getData(element, 'ujs:submit-button-formaction') || element.getAttribute('action') || location.href;\n\n if (method.toUpperCase() === 'GET') {\n url = url.replace(/\\?.*$/, '');\n }\n\n if (element.enctype === 'multipart/form-data') {\n data = new FormData(element);\n\n if (button != null) {\n data.append(button.name, button.value);\n }\n } else {\n data = serializeElement(element, button);\n }\n\n setData(element, 'ujs:submit-button', null);\n setData(element, 'ujs:submit-button-formmethod', null);\n setData(element, 'ujs:submit-button-formaction', null);\n } else if (matches(element, Rails.buttonClickSelector) || matches(element, Rails.inputChangeSelector)) {\n method = element.getAttribute('data-method');\n url = element.getAttribute('data-url');\n data = serializeElement(element, element.getAttribute('data-params'));\n } else {\n method = element.getAttribute('data-method');\n url = Rails.href(element);\n data = element.getAttribute('data-params');\n }\n\n ajax({\n type: method || 'GET',\n url: url,\n data: data,\n dataType: dataType,\n beforeSend: function beforeSend(xhr, options) {\n if (fire(element, 'ajax:beforeSend', [xhr, options])) {\n return fire(element, 'ajax:send', [xhr]);\n } else {\n fire(element, 'ajax:stopped');\n return false;\n }\n },\n success: function success() {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:success', args);\n },\n error: function error() {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:error', args);\n },\n complete: function complete() {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:complete', args);\n },\n crossDomain: isCrossDomain(url),\n withCredentials: withCredentials != null && withCredentials !== 'false'\n });\n return stopEverything(e);\n };\n\n Rails.formSubmitButtonClick = function (e) {\n var button, form;\n button = this;\n form = button.form;\n\n if (!form) {\n return;\n }\n\n if (button.name) {\n setData(form, 'ujs:submit-button', {\n name: button.name,\n value: button.value\n });\n }\n\n setData(form, 'ujs:formnovalidate-button', button.formNoValidate);\n setData(form, 'ujs:submit-button-formaction', button.getAttribute('formaction'));\n return setData(form, 'ujs:submit-button-formmethod', button.getAttribute('formmethod'));\n };\n\n Rails.preventInsignificantClick = function (e) {\n var data, insignificantMetaClick, link, metaClick, method, nonPrimaryMouseClick;\n link = this;\n method = (link.getAttribute('data-method') || 'GET').toUpperCase();\n data = link.getAttribute('data-params');\n metaClick = e.metaKey || e.ctrlKey;\n insignificantMetaClick = metaClick && method === 'GET' && !data;\n nonPrimaryMouseClick = e.button != null && e.button !== 0;\n\n if (nonPrimaryMouseClick || insignificantMetaClick) {\n return e.stopImmediatePropagation();\n }\n };\n }).call(this);\n (function () {\n var $, CSRFProtection, delegate, disableElement, enableElement, fire, formSubmitButtonClick, getData, handleConfirm, handleDisabledElement, handleMethod, handleRemote, loadCSPNonce, preventInsignificantClick, refreshCSRFTokens;\n fire = Rails.fire, delegate = Rails.delegate, getData = Rails.getData, $ = Rails.$, refreshCSRFTokens = Rails.refreshCSRFTokens, CSRFProtection = Rails.CSRFProtection, loadCSPNonce = Rails.loadCSPNonce, enableElement = Rails.enableElement, disableElement = Rails.disableElement, handleDisabledElement = Rails.handleDisabledElement, handleConfirm = Rails.handleConfirm, preventInsignificantClick = Rails.preventInsignificantClick, handleRemote = Rails.handleRemote, formSubmitButtonClick = Rails.formSubmitButtonClick, handleMethod = Rails.handleMethod;\n\n if (typeof jQuery !== \"undefined\" && jQuery !== null && jQuery.ajax != null) {\n if (jQuery.rails) {\n throw new Error('If you load both jquery_ujs and rails-ujs, use rails-ujs only.');\n }\n\n jQuery.rails = Rails;\n jQuery.ajaxPrefilter(function (options, originalOptions, xhr) {\n if (!options.crossDomain) {\n return CSRFProtection(xhr);\n }\n });\n }\n\n Rails.start = function () {\n if (window._rails_loaded) {\n throw new Error('rails-ujs has already been loaded!');\n }\n\n window.addEventListener('pageshow', function () {\n $(Rails.formEnableSelector).forEach(function (el) {\n if (getData(el, 'ujs:disabled')) {\n return enableElement(el);\n }\n });\n return $(Rails.linkDisableSelector).forEach(function (el) {\n if (getData(el, 'ujs:disabled')) {\n return enableElement(el);\n }\n });\n });\n delegate(document, Rails.linkDisableSelector, 'ajax:complete', enableElement);\n delegate(document, Rails.linkDisableSelector, 'ajax:stopped', enableElement);\n delegate(document, Rails.buttonDisableSelector, 'ajax:complete', enableElement);\n delegate(document, Rails.buttonDisableSelector, 'ajax:stopped', enableElement);\n delegate(document, Rails.linkClickSelector, 'click', preventInsignificantClick);\n delegate(document, Rails.linkClickSelector, 'click', handleDisabledElement);\n delegate(document, Rails.linkClickSelector, 'click', handleConfirm);\n delegate(document, Rails.linkClickSelector, 'click', disableElement);\n delegate(document, Rails.linkClickSelector, 'click', handleRemote);\n delegate(document, Rails.linkClickSelector, 'click', handleMethod);\n delegate(document, Rails.buttonClickSelector, 'click', preventInsignificantClick);\n delegate(document, Rails.buttonClickSelector, 'click', handleDisabledElement);\n delegate(document, Rails.buttonClickSelector, 'click', handleConfirm);\n delegate(document, Rails.buttonClickSelector, 'click', disableElement);\n delegate(document, Rails.buttonClickSelector, 'click', handleRemote);\n delegate(document, Rails.inputChangeSelector, 'change', handleDisabledElement);\n delegate(document, Rails.inputChangeSelector, 'change', handleConfirm);\n delegate(document, Rails.inputChangeSelector, 'change', handleRemote);\n delegate(document, Rails.formSubmitSelector, 'submit', handleDisabledElement);\n delegate(document, Rails.formSubmitSelector, 'submit', handleConfirm);\n delegate(document, Rails.formSubmitSelector, 'submit', handleRemote);\n delegate(document, Rails.formSubmitSelector, 'submit', function (e) {\n return setTimeout(function () {\n return disableElement(e);\n }, 13);\n });\n delegate(document, Rails.formSubmitSelector, 'ajax:send', disableElement);\n delegate(document, Rails.formSubmitSelector, 'ajax:complete', enableElement);\n delegate(document, Rails.formInputClickSelector, 'click', preventInsignificantClick);\n delegate(document, Rails.formInputClickSelector, 'click', handleDisabledElement);\n delegate(document, Rails.formInputClickSelector, 'click', handleConfirm);\n delegate(document, Rails.formInputClickSelector, 'click', formSubmitButtonClick);\n document.addEventListener('DOMContentLoaded', refreshCSRFTokens);\n document.addEventListener('DOMContentLoaded', loadCSPNonce);\n return window._rails_loaded = true;\n };\n\n if (window.Rails === Rails && fire(document, 'rails:attachBindings')) {\n Rails.start();\n }\n }).call(this);\n }).call(this);\n\n if ((typeof module === \"undefined\" ? \"undefined\" : _typeof(module)) === \"object\" && module.exports) {\n module.exports = Rails;\n } else if (typeof define === \"function\" && define.amd) {\n define(Rails);\n }\n}).call(this);","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === \"object\" && typeof module !== \"undefined\" ? factory(exports) : typeof define === \"function\" && define.amd ? define([\"exports\"], factory) : factory(global.ActiveStorage = {});\n})(this, function (exports) {\n \"use strict\";\n\n function createCommonjsModule(fn, module) {\n return module = {\n exports: {}\n }, fn(module, module.exports), module.exports;\n }\n\n var sparkMd5 = createCommonjsModule(function (module, exports) {\n (function (factory) {\n {\n module.exports = factory();\n }\n })(function (undefined) {\n var hex_chr = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\"];\n\n function md5cycle(x, k) {\n var a = x[0],\n b = x[1],\n c = x[2],\n d = x[3];\n a += (b & c | ~b & d) + k[0] - 680876936 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[1] - 389564586 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[2] + 606105819 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[3] - 1044525330 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & c | ~b & d) + k[4] - 176418897 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[5] + 1200080426 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[6] - 1473231341 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[7] - 45705983 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & c | ~b & d) + k[8] + 1770035416 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[9] - 1958414417 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[10] - 42063 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[11] - 1990404162 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & c | ~b & d) + k[12] + 1804603682 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[13] - 40341101 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[14] - 1502002290 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[15] + 1236535329 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & d | c & ~d) + k[1] - 165796510 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[6] - 1069501632 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[11] + 643717713 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[0] - 373897302 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b & d | c & ~d) + k[5] - 701558691 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[10] + 38016083 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[15] - 660478335 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[4] - 405537848 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b & d | c & ~d) + k[9] + 568446438 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[14] - 1019803690 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[3] - 187363961 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[8] + 1163531501 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b & d | c & ~d) + k[13] - 1444681467 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[2] - 51403784 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[7] + 1735328473 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[12] - 1926607734 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b ^ c ^ d) + k[5] - 378558 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[8] - 2022574463 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[11] + 1839030562 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[14] - 35309556 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (b ^ c ^ d) + k[1] - 1530992060 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[4] + 1272893353 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[7] - 155497632 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[10] - 1094730640 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (b ^ c ^ d) + k[13] + 681279174 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[0] - 358537222 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[3] - 722521979 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[6] + 76029189 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (b ^ c ^ d) + k[9] - 640364487 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[12] - 421815835 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[15] + 530742520 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[2] - 995338651 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (c ^ (b | ~d)) + k[0] - 198630844 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[7] + 1126891415 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[14] - 1416354905 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[5] - 57434055 | 0;\n b = (b << 21 | b >>> 11) + c | 0;\n a += (c ^ (b | ~d)) + k[12] + 1700485571 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[3] - 1894986606 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[10] - 1051523 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[1] - 2054922799 | 0;\n b = (b << 21 | b >>> 11) + c | 0;\n a += (c ^ (b | ~d)) + k[8] + 1873313359 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[15] - 30611744 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[6] - 1560198380 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[13] + 1309151649 | 0;\n b = (b << 21 | b >>> 11) + c | 0;\n a += (c ^ (b | ~d)) + k[4] - 145523070 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[11] - 1120210379 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[2] + 718787259 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[9] - 343485551 | 0;\n b = (b << 21 | b >>> 11) + c | 0;\n x[0] = a + x[0] | 0;\n x[1] = b + x[1] | 0;\n x[2] = c + x[2] | 0;\n x[3] = d + x[3] | 0;\n }\n\n function md5blk(s) {\n var md5blks = [],\n i;\n\n for (i = 0; i < 64; i += 4) {\n md5blks[i >> 2] = s.charCodeAt(i) + (s.charCodeAt(i + 1) << 8) + (s.charCodeAt(i + 2) << 16) + (s.charCodeAt(i + 3) << 24);\n }\n\n return md5blks;\n }\n\n function md5blk_array(a) {\n var md5blks = [],\n i;\n\n for (i = 0; i < 64; i += 4) {\n md5blks[i >> 2] = a[i] + (a[i + 1] << 8) + (a[i + 2] << 16) + (a[i + 3] << 24);\n }\n\n return md5blks;\n }\n\n function md51(s) {\n var n = s.length,\n state = [1732584193, -271733879, -1732584194, 271733878],\n i,\n length,\n tail,\n tmp,\n lo,\n hi;\n\n for (i = 64; i <= n; i += 64) {\n md5cycle(state, md5blk(s.substring(i - 64, i)));\n }\n\n s = s.substring(i - 64);\n length = s.length;\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= s.charCodeAt(i) << (i % 4 << 3);\n }\n\n tail[i >> 2] |= 128 << (i % 4 << 3);\n\n if (i > 55) {\n md5cycle(state, tail);\n\n for (i = 0; i < 16; i += 1) {\n tail[i] = 0;\n }\n }\n\n tmp = n * 8;\n tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);\n lo = parseInt(tmp[2], 16);\n hi = parseInt(tmp[1], 16) || 0;\n tail[14] = lo;\n tail[15] = hi;\n md5cycle(state, tail);\n return state;\n }\n\n function md51_array(a) {\n var n = a.length,\n state = [1732584193, -271733879, -1732584194, 271733878],\n i,\n length,\n tail,\n tmp,\n lo,\n hi;\n\n for (i = 64; i <= n; i += 64) {\n md5cycle(state, md5blk_array(a.subarray(i - 64, i)));\n }\n\n a = i - 64 < n ? a.subarray(i - 64) : new Uint8Array(0);\n length = a.length;\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= a[i] << (i % 4 << 3);\n }\n\n tail[i >> 2] |= 128 << (i % 4 << 3);\n\n if (i > 55) {\n md5cycle(state, tail);\n\n for (i = 0; i < 16; i += 1) {\n tail[i] = 0;\n }\n }\n\n tmp = n * 8;\n tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);\n lo = parseInt(tmp[2], 16);\n hi = parseInt(tmp[1], 16) || 0;\n tail[14] = lo;\n tail[15] = hi;\n md5cycle(state, tail);\n return state;\n }\n\n function rhex(n) {\n var s = \"\",\n j;\n\n for (j = 0; j < 4; j += 1) {\n s += hex_chr[n >> j * 8 + 4 & 15] + hex_chr[n >> j * 8 & 15];\n }\n\n return s;\n }\n\n function hex(x) {\n var i;\n\n for (i = 0; i < x.length; i += 1) {\n x[i] = rhex(x[i]);\n }\n\n return x.join(\"\");\n }\n\n if (hex(md51(\"hello\")) !== \"5d41402abc4b2a76b9719d911017c592\") ;\n\n if (typeof ArrayBuffer !== \"undefined\" && !ArrayBuffer.prototype.slice) {\n (function () {\n function clamp(val, length) {\n val = val | 0 || 0;\n\n if (val < 0) {\n return Math.max(val + length, 0);\n }\n\n return Math.min(val, length);\n }\n\n ArrayBuffer.prototype.slice = function (from, to) {\n var length = this.byteLength,\n begin = clamp(from, length),\n end = length,\n num,\n target,\n targetArray,\n sourceArray;\n\n if (to !== undefined) {\n end = clamp(to, length);\n }\n\n if (begin > end) {\n return new ArrayBuffer(0);\n }\n\n num = end - begin;\n target = new ArrayBuffer(num);\n targetArray = new Uint8Array(target);\n sourceArray = new Uint8Array(this, begin, num);\n targetArray.set(sourceArray);\n return target;\n };\n })();\n }\n\n function toUtf8(str) {\n if (/[\\u0080-\\uFFFF]/.test(str)) {\n str = unescape(encodeURIComponent(str));\n }\n\n return str;\n }\n\n function utf8Str2ArrayBuffer(str, returnUInt8Array) {\n var length = str.length,\n buff = new ArrayBuffer(length),\n arr = new Uint8Array(buff),\n i;\n\n for (i = 0; i < length; i += 1) {\n arr[i] = str.charCodeAt(i);\n }\n\n return returnUInt8Array ? arr : buff;\n }\n\n function arrayBuffer2Utf8Str(buff) {\n return String.fromCharCode.apply(null, new Uint8Array(buff));\n }\n\n function concatenateArrayBuffers(first, second, returnUInt8Array) {\n var result = new Uint8Array(first.byteLength + second.byteLength);\n result.set(new Uint8Array(first));\n result.set(new Uint8Array(second), first.byteLength);\n return returnUInt8Array ? result : result.buffer;\n }\n\n function hexToBinaryString(hex) {\n var bytes = [],\n length = hex.length,\n x;\n\n for (x = 0; x < length - 1; x += 2) {\n bytes.push(parseInt(hex.substr(x, 2), 16));\n }\n\n return String.fromCharCode.apply(String, bytes);\n }\n\n function SparkMD5() {\n this.reset();\n }\n\n SparkMD5.prototype.append = function (str) {\n this.appendBinary(toUtf8(str));\n return this;\n };\n\n SparkMD5.prototype.appendBinary = function (contents) {\n this._buff += contents;\n this._length += contents.length;\n var length = this._buff.length,\n i;\n\n for (i = 64; i <= length; i += 64) {\n md5cycle(this._hash, md5blk(this._buff.substring(i - 64, i)));\n }\n\n this._buff = this._buff.substring(i - 64);\n return this;\n };\n\n SparkMD5.prototype.end = function (raw) {\n var buff = this._buff,\n length = buff.length,\n i,\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n ret;\n\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= buff.charCodeAt(i) << (i % 4 << 3);\n }\n\n this._finish(tail, length);\n\n ret = hex(this._hash);\n\n if (raw) {\n ret = hexToBinaryString(ret);\n }\n\n this.reset();\n return ret;\n };\n\n SparkMD5.prototype.reset = function () {\n this._buff = \"\";\n this._length = 0;\n this._hash = [1732584193, -271733879, -1732584194, 271733878];\n return this;\n };\n\n SparkMD5.prototype.getState = function () {\n return {\n buff: this._buff,\n length: this._length,\n hash: this._hash\n };\n };\n\n SparkMD5.prototype.setState = function (state) {\n this._buff = state.buff;\n this._length = state.length;\n this._hash = state.hash;\n return this;\n };\n\n SparkMD5.prototype.destroy = function () {\n delete this._hash;\n delete this._buff;\n delete this._length;\n };\n\n SparkMD5.prototype._finish = function (tail, length) {\n var i = length,\n tmp,\n lo,\n hi;\n tail[i >> 2] |= 128 << (i % 4 << 3);\n\n if (i > 55) {\n md5cycle(this._hash, tail);\n\n for (i = 0; i < 16; i += 1) {\n tail[i] = 0;\n }\n }\n\n tmp = this._length * 8;\n tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);\n lo = parseInt(tmp[2], 16);\n hi = parseInt(tmp[1], 16) || 0;\n tail[14] = lo;\n tail[15] = hi;\n md5cycle(this._hash, tail);\n };\n\n SparkMD5.hash = function (str, raw) {\n return SparkMD5.hashBinary(toUtf8(str), raw);\n };\n\n SparkMD5.hashBinary = function (content, raw) {\n var hash = md51(content),\n ret = hex(hash);\n return raw ? hexToBinaryString(ret) : ret;\n };\n\n SparkMD5.ArrayBuffer = function () {\n this.reset();\n };\n\n SparkMD5.ArrayBuffer.prototype.append = function (arr) {\n var buff = concatenateArrayBuffers(this._buff.buffer, arr, true),\n length = buff.length,\n i;\n this._length += arr.byteLength;\n\n for (i = 64; i <= length; i += 64) {\n md5cycle(this._hash, md5blk_array(buff.subarray(i - 64, i)));\n }\n\n this._buff = i - 64 < length ? new Uint8Array(buff.buffer.slice(i - 64)) : new Uint8Array(0);\n return this;\n };\n\n SparkMD5.ArrayBuffer.prototype.end = function (raw) {\n var buff = this._buff,\n length = buff.length,\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n i,\n ret;\n\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= buff[i] << (i % 4 << 3);\n }\n\n this._finish(tail, length);\n\n ret = hex(this._hash);\n\n if (raw) {\n ret = hexToBinaryString(ret);\n }\n\n this.reset();\n return ret;\n };\n\n SparkMD5.ArrayBuffer.prototype.reset = function () {\n this._buff = new Uint8Array(0);\n this._length = 0;\n this._hash = [1732584193, -271733879, -1732584194, 271733878];\n return this;\n };\n\n SparkMD5.ArrayBuffer.prototype.getState = function () {\n var state = SparkMD5.prototype.getState.call(this);\n state.buff = arrayBuffer2Utf8Str(state.buff);\n return state;\n };\n\n SparkMD5.ArrayBuffer.prototype.setState = function (state) {\n state.buff = utf8Str2ArrayBuffer(state.buff, true);\n return SparkMD5.prototype.setState.call(this, state);\n };\n\n SparkMD5.ArrayBuffer.prototype.destroy = SparkMD5.prototype.destroy;\n SparkMD5.ArrayBuffer.prototype._finish = SparkMD5.prototype._finish;\n\n SparkMD5.ArrayBuffer.hash = function (arr, raw) {\n var hash = md51_array(new Uint8Array(arr)),\n ret = hex(hash);\n return raw ? hexToBinaryString(ret) : ret;\n };\n\n return SparkMD5;\n });\n });\n\n var classCallCheck = function classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n };\n\n var createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n var fileSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice;\n\n var FileChecksum = function () {\n createClass(FileChecksum, null, [{\n key: \"create\",\n value: function create(file, callback) {\n var instance = new FileChecksum(file);\n instance.create(callback);\n }\n }]);\n\n function FileChecksum(file) {\n classCallCheck(this, FileChecksum);\n this.file = file;\n this.chunkSize = 2097152;\n this.chunkCount = Math.ceil(this.file.size / this.chunkSize);\n this.chunkIndex = 0;\n }\n\n createClass(FileChecksum, [{\n key: \"create\",\n value: function create(callback) {\n var _this = this;\n\n this.callback = callback;\n this.md5Buffer = new sparkMd5.ArrayBuffer();\n this.fileReader = new FileReader();\n this.fileReader.addEventListener(\"load\", function (event) {\n return _this.fileReaderDidLoad(event);\n });\n this.fileReader.addEventListener(\"error\", function (event) {\n return _this.fileReaderDidError(event);\n });\n this.readNextChunk();\n }\n }, {\n key: \"fileReaderDidLoad\",\n value: function fileReaderDidLoad(event) {\n this.md5Buffer.append(event.target.result);\n\n if (!this.readNextChunk()) {\n var binaryDigest = this.md5Buffer.end(true);\n var base64digest = btoa(binaryDigest);\n this.callback(null, base64digest);\n }\n }\n }, {\n key: \"fileReaderDidError\",\n value: function fileReaderDidError(event) {\n this.callback(\"Error reading \" + this.file.name);\n }\n }, {\n key: \"readNextChunk\",\n value: function readNextChunk() {\n if (this.chunkIndex < this.chunkCount || this.chunkIndex == 0 && this.chunkCount == 0) {\n var start = this.chunkIndex * this.chunkSize;\n var end = Math.min(start + this.chunkSize, this.file.size);\n var bytes = fileSlice.call(this.file, start, end);\n this.fileReader.readAsArrayBuffer(bytes);\n this.chunkIndex++;\n return true;\n } else {\n return false;\n }\n }\n }]);\n return FileChecksum;\n }();\n\n function getMetaValue(name) {\n var element = findElement(document.head, 'meta[name=\"' + name + '\"]');\n\n if (element) {\n return element.getAttribute(\"content\");\n }\n }\n\n function findElements(root, selector) {\n if (typeof root == \"string\") {\n selector = root;\n root = document;\n }\n\n var elements = root.querySelectorAll(selector);\n return toArray$1(elements);\n }\n\n function findElement(root, selector) {\n if (typeof root == \"string\") {\n selector = root;\n root = document;\n }\n\n return root.querySelector(selector);\n }\n\n function dispatchEvent(element, type) {\n var eventInit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var disabled = element.disabled;\n var bubbles = eventInit.bubbles,\n cancelable = eventInit.cancelable,\n detail = eventInit.detail;\n var event = document.createEvent(\"Event\");\n event.initEvent(type, bubbles || true, cancelable || true);\n event.detail = detail || {};\n\n try {\n element.disabled = false;\n element.dispatchEvent(event);\n } finally {\n element.disabled = disabled;\n }\n\n return event;\n }\n\n function toArray$1(value) {\n if (Array.isArray(value)) {\n return value;\n } else if (Array.from) {\n return Array.from(value);\n } else {\n return [].slice.call(value);\n }\n }\n\n var BlobRecord = function () {\n function BlobRecord(file, checksum, url) {\n var _this = this;\n\n classCallCheck(this, BlobRecord);\n this.file = file;\n this.attributes = {\n filename: file.name,\n content_type: file.type || \"application/octet-stream\",\n byte_size: file.size,\n checksum: checksum\n };\n this.xhr = new XMLHttpRequest();\n this.xhr.open(\"POST\", url, true);\n this.xhr.responseType = \"json\";\n this.xhr.setRequestHeader(\"Content-Type\", \"application/json\");\n this.xhr.setRequestHeader(\"Accept\", \"application/json\");\n this.xhr.setRequestHeader(\"X-Requested-With\", \"XMLHttpRequest\");\n var csrfToken = getMetaValue(\"csrf-token\");\n\n if (csrfToken != undefined) {\n this.xhr.setRequestHeader(\"X-CSRF-Token\", csrfToken);\n }\n\n this.xhr.addEventListener(\"load\", function (event) {\n return _this.requestDidLoad(event);\n });\n this.xhr.addEventListener(\"error\", function (event) {\n return _this.requestDidError(event);\n });\n }\n\n createClass(BlobRecord, [{\n key: \"create\",\n value: function create(callback) {\n this.callback = callback;\n this.xhr.send(JSON.stringify({\n blob: this.attributes\n }));\n }\n }, {\n key: \"requestDidLoad\",\n value: function requestDidLoad(event) {\n if (this.status >= 200 && this.status < 300) {\n var response = this.response;\n var direct_upload = response.direct_upload;\n delete response.direct_upload;\n this.attributes = response;\n this.directUploadData = direct_upload;\n this.callback(null, this.toJSON());\n } else {\n this.requestDidError(event);\n }\n }\n }, {\n key: \"requestDidError\",\n value: function requestDidError(event) {\n this.callback('Error creating Blob for \"' + this.file.name + '\". Status: ' + this.status);\n }\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n var result = {};\n\n for (var key in this.attributes) {\n result[key] = this.attributes[key];\n }\n\n return result;\n }\n }, {\n key: \"status\",\n get: function get$$1() {\n return this.xhr.status;\n }\n }, {\n key: \"response\",\n get: function get$$1() {\n var _xhr = this.xhr,\n responseType = _xhr.responseType,\n response = _xhr.response;\n\n if (responseType == \"json\") {\n return response;\n } else {\n return JSON.parse(response);\n }\n }\n }]);\n return BlobRecord;\n }();\n\n var BlobUpload = function () {\n function BlobUpload(blob) {\n var _this = this;\n\n classCallCheck(this, BlobUpload);\n this.blob = blob;\n this.file = blob.file;\n var _blob$directUploadDat = blob.directUploadData,\n url = _blob$directUploadDat.url,\n headers = _blob$directUploadDat.headers;\n this.xhr = new XMLHttpRequest();\n this.xhr.open(\"PUT\", url, true);\n this.xhr.responseType = \"text\";\n\n for (var key in headers) {\n this.xhr.setRequestHeader(key, headers[key]);\n }\n\n this.xhr.addEventListener(\"load\", function (event) {\n return _this.requestDidLoad(event);\n });\n this.xhr.addEventListener(\"error\", function (event) {\n return _this.requestDidError(event);\n });\n }\n\n createClass(BlobUpload, [{\n key: \"create\",\n value: function create(callback) {\n this.callback = callback;\n this.xhr.send(this.file.slice());\n }\n }, {\n key: \"requestDidLoad\",\n value: function requestDidLoad(event) {\n var _xhr = this.xhr,\n status = _xhr.status,\n response = _xhr.response;\n\n if (status >= 200 && status < 300) {\n this.callback(null, response);\n } else {\n this.requestDidError(event);\n }\n }\n }, {\n key: \"requestDidError\",\n value: function requestDidError(event) {\n this.callback('Error storing \"' + this.file.name + '\". Status: ' + this.xhr.status);\n }\n }]);\n return BlobUpload;\n }();\n\n var id = 0;\n\n var DirectUpload = function () {\n function DirectUpload(file, url, delegate) {\n classCallCheck(this, DirectUpload);\n this.id = ++id;\n this.file = file;\n this.url = url;\n this.delegate = delegate;\n }\n\n createClass(DirectUpload, [{\n key: \"create\",\n value: function create(callback) {\n var _this = this;\n\n FileChecksum.create(this.file, function (error, checksum) {\n if (error) {\n callback(error);\n return;\n }\n\n var blob = new BlobRecord(_this.file, checksum, _this.url);\n notify(_this.delegate, \"directUploadWillCreateBlobWithXHR\", blob.xhr);\n blob.create(function (error) {\n if (error) {\n callback(error);\n } else {\n var upload = new BlobUpload(blob);\n notify(_this.delegate, \"directUploadWillStoreFileWithXHR\", upload.xhr);\n upload.create(function (error) {\n if (error) {\n callback(error);\n } else {\n callback(null, blob.toJSON());\n }\n });\n }\n });\n });\n }\n }]);\n return DirectUpload;\n }();\n\n function notify(object, methodName) {\n if (object && typeof object[methodName] == \"function\") {\n for (var _len = arguments.length, messages = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n messages[_key - 2] = arguments[_key];\n }\n\n return object[methodName].apply(object, messages);\n }\n }\n\n var DirectUploadController = function () {\n function DirectUploadController(input, file) {\n classCallCheck(this, DirectUploadController);\n this.input = input;\n this.file = file;\n this.directUpload = new DirectUpload(this.file, this.url, this);\n this.dispatch(\"initialize\");\n }\n\n createClass(DirectUploadController, [{\n key: \"start\",\n value: function start(callback) {\n var _this = this;\n\n var hiddenInput = document.createElement(\"input\");\n hiddenInput.type = \"hidden\";\n hiddenInput.name = this.input.name;\n this.input.insertAdjacentElement(\"beforebegin\", hiddenInput);\n this.dispatch(\"start\");\n this.directUpload.create(function (error, attributes) {\n if (error) {\n hiddenInput.parentNode.removeChild(hiddenInput);\n\n _this.dispatchError(error);\n } else {\n hiddenInput.value = attributes.signed_id;\n }\n\n _this.dispatch(\"end\");\n\n callback(error);\n });\n }\n }, {\n key: \"uploadRequestDidProgress\",\n value: function uploadRequestDidProgress(event) {\n var progress = event.loaded / event.total * 100;\n\n if (progress) {\n this.dispatch(\"progress\", {\n progress: progress\n });\n }\n }\n }, {\n key: \"dispatch\",\n value: function dispatch(name) {\n var detail = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n detail.file = this.file;\n detail.id = this.directUpload.id;\n return dispatchEvent(this.input, \"direct-upload:\" + name, {\n detail: detail\n });\n }\n }, {\n key: \"dispatchError\",\n value: function dispatchError(error) {\n var event = this.dispatch(\"error\", {\n error: error\n });\n\n if (!event.defaultPrevented) {\n alert(error);\n }\n }\n }, {\n key: \"directUploadWillCreateBlobWithXHR\",\n value: function directUploadWillCreateBlobWithXHR(xhr) {\n this.dispatch(\"before-blob-request\", {\n xhr: xhr\n });\n }\n }, {\n key: \"directUploadWillStoreFileWithXHR\",\n value: function directUploadWillStoreFileWithXHR(xhr) {\n var _this2 = this;\n\n this.dispatch(\"before-storage-request\", {\n xhr: xhr\n });\n xhr.upload.addEventListener(\"progress\", function (event) {\n return _this2.uploadRequestDidProgress(event);\n });\n }\n }, {\n key: \"url\",\n get: function get$$1() {\n return this.input.getAttribute(\"data-direct-upload-url\");\n }\n }]);\n return DirectUploadController;\n }();\n\n var inputSelector = \"input[type=file][data-direct-upload-url]:not([disabled])\";\n\n var DirectUploadsController = function () {\n function DirectUploadsController(form) {\n classCallCheck(this, DirectUploadsController);\n this.form = form;\n this.inputs = findElements(form, inputSelector).filter(function (input) {\n return input.files.length;\n });\n }\n\n createClass(DirectUploadsController, [{\n key: \"start\",\n value: function start(callback) {\n var _this = this;\n\n var controllers = this.createDirectUploadControllers();\n\n var startNextController = function startNextController() {\n var controller = controllers.shift();\n\n if (controller) {\n controller.start(function (error) {\n if (error) {\n callback(error);\n\n _this.dispatch(\"end\");\n } else {\n startNextController();\n }\n });\n } else {\n callback();\n\n _this.dispatch(\"end\");\n }\n };\n\n this.dispatch(\"start\");\n startNextController();\n }\n }, {\n key: \"createDirectUploadControllers\",\n value: function createDirectUploadControllers() {\n var controllers = [];\n this.inputs.forEach(function (input) {\n toArray$1(input.files).forEach(function (file) {\n var controller = new DirectUploadController(input, file);\n controllers.push(controller);\n });\n });\n return controllers;\n }\n }, {\n key: \"dispatch\",\n value: function dispatch(name) {\n var detail = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return dispatchEvent(this.form, \"direct-uploads:\" + name, {\n detail: detail\n });\n }\n }]);\n return DirectUploadsController;\n }();\n\n var processingAttribute = \"data-direct-uploads-processing\";\n var submitButtonsByForm = new WeakMap();\n var started = false;\n\n function start() {\n if (!started) {\n started = true;\n document.addEventListener(\"click\", didClick, true);\n document.addEventListener(\"submit\", didSubmitForm);\n document.addEventListener(\"ajax:before\", didSubmitRemoteElement);\n }\n }\n\n function didClick(event) {\n var target = event.target;\n\n if ((target.tagName == \"INPUT\" || target.tagName == \"BUTTON\") && target.type == \"submit\" && target.form) {\n submitButtonsByForm.set(target.form, target);\n }\n }\n\n function didSubmitForm(event) {\n handleFormSubmissionEvent(event);\n }\n\n function didSubmitRemoteElement(event) {\n if (event.target.tagName == \"FORM\") {\n handleFormSubmissionEvent(event);\n }\n }\n\n function handleFormSubmissionEvent(event) {\n var form = event.target;\n\n if (form.hasAttribute(processingAttribute)) {\n event.preventDefault();\n return;\n }\n\n var controller = new DirectUploadsController(form);\n var inputs = controller.inputs;\n\n if (inputs.length) {\n event.preventDefault();\n form.setAttribute(processingAttribute, \"\");\n inputs.forEach(disable);\n controller.start(function (error) {\n form.removeAttribute(processingAttribute);\n\n if (error) {\n inputs.forEach(enable);\n } else {\n submitForm(form);\n }\n });\n }\n }\n\n function submitForm(form) {\n var button = submitButtonsByForm.get(form) || findElement(form, \"input[type=submit], button[type=submit]\");\n\n if (button) {\n var _button = button,\n disabled = _button.disabled;\n button.disabled = false;\n button.focus();\n button.click();\n button.disabled = disabled;\n } else {\n button = document.createElement(\"input\");\n button.type = \"submit\";\n button.style.display = \"none\";\n form.appendChild(button);\n button.click();\n form.removeChild(button);\n }\n\n submitButtonsByForm.delete(form);\n }\n\n function disable(input) {\n input.disabled = true;\n }\n\n function enable(input) {\n input.disabled = false;\n }\n\n function autostart() {\n if (window.ActiveStorage) {\n start();\n }\n }\n\n setTimeout(autostart, 1);\n exports.start = start;\n exports.DirectUpload = DirectUpload;\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n});","// Load all the channels within this directory and all subdirectories.\n// Channel files must be named *_channel.js.\n\nconst channels = require.context('.', true, /_channel\\.js$/)\nchannels.keys().forEach(channels)\n","function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nmodule.exports = webpackEmptyContext;\nwebpackEmptyContext.id = 64;","// This file is automatically compiled by Webpack, along with any other files\n// present in this directory. You're encouraged to place your actual application logic in\n// a relevant structure within app/javascript and only use these pack files to reference\n// that code so it'll be compiled.\n\nimport Rails from \"@rails/ujs\"\n// import Turbolinks from \"turbolinks\"\nimport * as ActiveStorage from \"@rails/activestorage\"\nimport \"channels\"\nimport \"./common/backtotop\"\nimport \"./common/cookiealert\"\nimport \"./common/enable-force-dark-fix\"\nimport \"./common/feather\"\nimport \"./common/tobii\"\nimport \"./shop\"\nimport \"./profile\"\nimport \"./calculator\"\n\n// Turbolinks.start()\nActiveStorage.start()\nRails.start()\n"],"sourceRoot":""}