import { EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, extend, generateCodeFrame, init_runtime_dom_esm_bundler, init_shared_esm_bundler, isArray, isBuiltInDirective, isHTMLTag, isMathMLTag, isObject, isOn, isReservedProp, isSVGTag, isString, isSymbol, isVoidTag, makeMap, parseStringStyle, runtime_dom_esm_bundler_exports, shared_esm_bundler_exports, slotFlagsText, toHandlerKey } from "./chunk-IQSFVINN.js"; import { __commonJS, __esm, __export, __toCommonJS } from "./chunk-DZZM6G22.js"; // node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js function registerRuntimeHelpers(helpers) { Object.getOwnPropertySymbols(helpers).forEach((s) => { helperNameMap[s] = helpers[s]; }); } function createRoot(children, source = "") { return { type: 0, source, children, helpers: /* @__PURE__ */ new Set(), components: [], directives: [], hoists: [], imports: [], cached: [], temps: 0, codegenNode: void 0, loc: locStub }; } function createVNodeCall(context, tag, props, children, patchFlag, dynamicProps, directives, isBlock = false, disableTracking = false, isComponent2 = false, loc = locStub) { if (context) { if (isBlock) { context.helper(OPEN_BLOCK); context.helper(getVNodeBlockHelper(context.inSSR, isComponent2)); } else { context.helper(getVNodeHelper(context.inSSR, isComponent2)); } if (directives) { context.helper(WITH_DIRECTIVES); } } return { type: 13, tag, props, children, patchFlag, dynamicProps, directives, isBlock, disableTracking, isComponent: isComponent2, loc }; } function createArrayExpression(elements, loc = locStub) { return { type: 17, loc, elements }; } function createObjectExpression(properties, loc = locStub) { return { type: 15, loc, properties }; } function createObjectProperty(key, value) { return { type: 16, loc: locStub, key: isString(key) ? createSimpleExpression(key, true) : key, value }; } function createSimpleExpression(content, isStatic = false, loc = locStub, constType = 0) { return { type: 4, loc, content, isStatic, constType: isStatic ? 3 : constType }; } function createInterpolation(content, loc) { return { type: 5, loc, content: isString(content) ? createSimpleExpression(content, false, loc) : content }; } function createCompoundExpression(children, loc = locStub) { return { type: 8, loc, children }; } function createCallExpression(callee, args = [], loc = locStub) { return { type: 14, loc, callee, arguments: args }; } function createFunctionExpression(params, returns = void 0, newline = false, isSlot = false, loc = locStub) { return { type: 18, params, returns, newline, isSlot, loc }; } function createConditionalExpression(test, consequent, alternate, newline = true) { return { type: 19, test, consequent, alternate, newline, loc: locStub }; } function createCacheExpression(index, value, needPauseTracking = false, inVOnce = false) { return { type: 20, index, value, needPauseTracking, inVOnce, needArraySpread: false, loc: locStub }; } function createBlockStatement(body) { return { type: 21, body, loc: locStub }; } function createTemplateLiteral(elements) { return { type: 22, elements, loc: locStub }; } function createIfStatement(test, consequent, alternate) { return { type: 23, test, consequent, alternate, loc: locStub }; } function createAssignmentExpression(left, right) { return { type: 24, left, right, loc: locStub }; } function createSequenceExpression(expressions) { return { type: 25, expressions, loc: locStub }; } function createReturnStatement(returns) { return { type: 26, returns, loc: locStub }; } function getVNodeHelper(ssr, isComponent2) { return ssr || isComponent2 ? CREATE_VNODE : CREATE_ELEMENT_VNODE; } function getVNodeBlockHelper(ssr, isComponent2) { return ssr || isComponent2 ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK; } function convertToBlock(node, { helper, removeHelper, inSSR }) { if (!node.isBlock) { node.isBlock = true; removeHelper(getVNodeHelper(inSSR, node.isComponent)); helper(OPEN_BLOCK); helper(getVNodeBlockHelper(inSSR, node.isComponent)); } } function isTagStartChar(c) { return c >= 97 && c <= 122 || c >= 65 && c <= 90; } function isWhitespace(c) { return c === 32 || c === 10 || c === 9 || c === 12 || c === 13; } function isEndOfTagSection(c) { return c === 47 || c === 62 || isWhitespace(c); } function toCharCodes(str) { const ret = new Uint8Array(str.length); for (let i = 0; i < str.length; i++) { ret[i] = str.charCodeAt(i); } return ret; } function getCompatValue(key, { compatConfig }) { const value = compatConfig && compatConfig[key]; if (key === "MODE") { return value || 3; } else { return value; } } function isCompatEnabled(key, context) { const mode = getCompatValue("MODE", context); const value = getCompatValue(key, context); return mode === 3 ? value === true : value !== false; } function checkCompatEnabled(key, context, loc, ...args) { const enabled = isCompatEnabled(key, context); if (enabled) { warnDeprecation(key, context, loc, ...args); } return enabled; } function warnDeprecation(key, context, loc, ...args) { const val = getCompatValue(key, context); if (val === "suppress-warning") { return; } const { message, link } = deprecationData[key]; const msg = `(deprecation ${key}) ${typeof message === "function" ? message(...args) : message}${link ? ` Details: ${link}` : ``}`; const err = new SyntaxError(msg); err.code = key; if (loc) err.loc = loc; context.onWarn(err); } function defaultOnError(error) { throw error; } function defaultOnWarn(msg) { console.warn(`[Vue warn] ${msg.message}`); } function createCompilerError(code, loc, messages, additionalMessage) { const msg = true ? (messages || errorMessages)[code] + (additionalMessage || ``) : `https://vuejs.org/error-reference/#compiler-${code}`; const error = new SyntaxError(String(msg)); error.code = code; error.loc = loc; return error; } function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = /* @__PURE__ */ Object.create(null)) { { return; } } function isReferencedIdentifier(id, parent, parentStack) { { return false; } } function isInDestructureAssignment(parent, parentStack) { if (parent && (parent.type === "ObjectProperty" || parent.type === "ArrayPattern")) { let i = parentStack.length; while (i--) { const p = parentStack[i]; if (p.type === "AssignmentExpression") { return true; } else if (p.type !== "ObjectProperty" && !p.type.endsWith("Pattern")) { break; } } } return false; } function isInNewExpression(parentStack) { let i = parentStack.length; while (i--) { const p = parentStack[i]; if (p.type === "NewExpression") { return true; } else if (p.type !== "MemberExpression") { break; } } return false; } function walkFunctionParams(node, onIdent) { for (const p of node.params) { for (const id of extractIdentifiers(p)) { onIdent(id); } } } function walkBlockDeclarations(block, onIdent) { for (const stmt of block.body) { if (stmt.type === "VariableDeclaration") { if (stmt.declare) continue; for (const decl of stmt.declarations) { for (const id of extractIdentifiers(decl.id)) { onIdent(id); } } } else if (stmt.type === "FunctionDeclaration" || stmt.type === "ClassDeclaration") { if (stmt.declare || !stmt.id) continue; onIdent(stmt.id); } else if (isForStatement(stmt)) { walkForStatement(stmt, true, onIdent); } } } function isForStatement(stmt) { return stmt.type === "ForOfStatement" || stmt.type === "ForInStatement" || stmt.type === "ForStatement"; } function walkForStatement(stmt, isVar, onIdent) { const variable = stmt.type === "ForStatement" ? stmt.init : stmt.left; if (variable && variable.type === "VariableDeclaration" && (variable.kind === "var" ? isVar : !isVar)) { for (const decl of variable.declarations) { for (const id of extractIdentifiers(decl.id)) { onIdent(id); } } } } function extractIdentifiers(param, nodes = []) { switch (param.type) { case "Identifier": nodes.push(param); break; case "MemberExpression": let object = param; while (object.type === "MemberExpression") { object = object.object; } nodes.push(object); break; case "ObjectPattern": for (const prop of param.properties) { if (prop.type === "RestElement") { extractIdentifiers(prop.argument, nodes); } else { extractIdentifiers(prop.value, nodes); } } break; case "ArrayPattern": param.elements.forEach((element) => { if (element) extractIdentifiers(element, nodes); }); break; case "RestElement": extractIdentifiers(param.argument, nodes); break; case "AssignmentPattern": extractIdentifiers(param.left, nodes); break; } return nodes; } function unwrapTSNode(node) { if (TS_NODE_TYPES.includes(node.type)) { return unwrapTSNode(node.expression); } else { return node; } } function isCoreComponent(tag) { switch (tag) { case "Teleport": case "teleport": return TELEPORT; case "Suspense": case "suspense": return SUSPENSE; case "KeepAlive": case "keep-alive": return KEEP_ALIVE; case "BaseTransition": case "base-transition": return BASE_TRANSITION; } } function advancePositionWithClone(pos, source, numberOfCharacters = source.length) { return advancePositionWithMutation( { offset: pos.offset, line: pos.line, column: pos.column }, source, numberOfCharacters ); } function advancePositionWithMutation(pos, source, numberOfCharacters = source.length) { let linesCount = 0; let lastNewLinePos = -1; for (let i = 0; i < numberOfCharacters; i++) { if (source.charCodeAt(i) === 10) { linesCount++; lastNewLinePos = i; } } pos.offset += numberOfCharacters; pos.line += linesCount; pos.column = lastNewLinePos === -1 ? pos.column + numberOfCharacters : numberOfCharacters - lastNewLinePos; return pos; } function assert(condition, msg) { if (!condition) { throw new Error(msg || `unexpected compiler condition`); } } function findDir(node, name, allowEmpty = false) { for (let i = 0; i < node.props.length; i++) { const p = node.props[i]; if (p.type === 7 && (allowEmpty || p.exp) && (isString(name) ? p.name === name : name.test(p.name))) { return p; } } } function findProp(node, name, dynamicOnly = false, allowEmpty = false) { for (let i = 0; i < node.props.length; i++) { const p = node.props[i]; if (p.type === 6) { if (dynamicOnly) continue; if (p.name === name && (p.value || allowEmpty)) { return p; } } else if (p.name === "bind" && (p.exp || allowEmpty) && isStaticArgOf(p.arg, name)) { return p; } } } function isStaticArgOf(arg, name) { return !!(arg && isStaticExp(arg) && arg.content === name); } function hasDynamicKeyVBind(node) { return node.props.some( (p) => p.type === 7 && p.name === "bind" && (!p.arg || // v-bind="obj" p.arg.type !== 4 || // v-bind:[_ctx.foo] !p.arg.isStatic) // v-bind:[foo] ); } function isText$1(node) { return node.type === 5 || node.type === 2; } function isVSlot(p) { return p.type === 7 && p.name === "slot"; } function isTemplateNode(node) { return node.type === 1 && node.tagType === 3; } function isSlotOutlet(node) { return node.type === 1 && node.tagType === 2; } function getUnnormalizedProps(props, callPath = []) { if (props && !isString(props) && props.type === 14) { const callee = props.callee; if (!isString(callee) && propsHelperSet.has(callee)) { return getUnnormalizedProps( props.arguments[0], callPath.concat(props) ); } } return [props, callPath]; } function injectProp(node, prop, context) { let propsWithInjection; let props = node.type === 13 ? node.props : node.arguments[2]; let callPath = []; let parentCall; if (props && !isString(props) && props.type === 14) { const ret = getUnnormalizedProps(props); props = ret[0]; callPath = ret[1]; parentCall = callPath[callPath.length - 1]; } if (props == null || isString(props)) { propsWithInjection = createObjectExpression([prop]); } else if (props.type === 14) { const first = props.arguments[0]; if (!isString(first) && first.type === 15) { if (!hasProp(prop, first)) { first.properties.unshift(prop); } } else { if (props.callee === TO_HANDLERS) { propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [ createObjectExpression([prop]), props ]); } else { props.arguments.unshift(createObjectExpression([prop])); } } !propsWithInjection && (propsWithInjection = props); } else if (props.type === 15) { if (!hasProp(prop, props)) { props.properties.unshift(prop); } propsWithInjection = props; } else { propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [ createObjectExpression([prop]), props ]); if (parentCall && parentCall.callee === GUARD_REACTIVE_PROPS) { parentCall = callPath[callPath.length - 2]; } } if (node.type === 13) { if (parentCall) { parentCall.arguments[0] = propsWithInjection; } else { node.props = propsWithInjection; } } else { if (parentCall) { parentCall.arguments[0] = propsWithInjection; } else { node.arguments[2] = propsWithInjection; } } } function hasProp(prop, props) { let result = false; if (prop.key.type === 4) { const propKeyName = prop.key.content; result = props.properties.some( (p) => p.key.type === 4 && p.key.content === propKeyName ); } return result; } function toValidAssetId(name, type) { return `_${type}_${name.replace(/[^\w]/g, (searchValue, replaceValue) => { return searchValue === "-" ? "_" : name.charCodeAt(replaceValue).toString(); })}`; } function hasScopeRef(node, ids) { if (!node || Object.keys(ids).length === 0) { return false; } switch (node.type) { case 1: for (let i = 0; i < node.props.length; i++) { const p = node.props[i]; if (p.type === 7 && (hasScopeRef(p.arg, ids) || hasScopeRef(p.exp, ids))) { return true; } } return node.children.some((c) => hasScopeRef(c, ids)); case 11: if (hasScopeRef(node.source, ids)) { return true; } return node.children.some((c) => hasScopeRef(c, ids)); case 9: return node.branches.some((b) => hasScopeRef(b, ids)); case 10: if (hasScopeRef(node.condition, ids)) { return true; } return node.children.some((c) => hasScopeRef(c, ids)); case 4: return !node.isStatic && isSimpleIdentifier(node.content) && !!ids[node.content]; case 8: return node.children.some((c) => isObject(c) && hasScopeRef(c, ids)); case 5: case 12: return hasScopeRef(node.content, ids); case 2: case 3: case 20: return false; default: if (true) ; return false; } } function getMemoedVNodeCall(node) { if (node.type === 14 && node.callee === WITH_MEMO) { return node.arguments[1].returns; } else { return node; } } function parseForExpression(input) { const loc = input.loc; const exp = input.content; const inMatch = exp.match(forAliasRE); if (!inMatch) return; const [, LHS, RHS] = inMatch; const createAliasExpression = (content, offset, asParam = false) => { const start = loc.start.offset + offset; const end = start + content.length; return createExp( content, false, getLoc(start, end), 0, asParam ? 1 : 0 /* Normal */ ); }; const result = { source: createAliasExpression(RHS.trim(), exp.indexOf(RHS, LHS.length)), value: void 0, key: void 0, index: void 0, finalized: false }; let valueContent = LHS.trim().replace(stripParensRE, "").trim(); const trimmedOffset = LHS.indexOf(valueContent); const iteratorMatch = valueContent.match(forIteratorRE); if (iteratorMatch) { valueContent = valueContent.replace(forIteratorRE, "").trim(); const keyContent = iteratorMatch[1].trim(); let keyOffset; if (keyContent) { keyOffset = exp.indexOf(keyContent, trimmedOffset + valueContent.length); result.key = createAliasExpression(keyContent, keyOffset, true); } if (iteratorMatch[2]) { const indexContent = iteratorMatch[2].trim(); if (indexContent) { result.index = createAliasExpression( indexContent, exp.indexOf( indexContent, result.key ? keyOffset + keyContent.length : trimmedOffset + valueContent.length ), true ); } } } if (valueContent) { result.value = createAliasExpression(valueContent, trimmedOffset, true); } return result; } function getSlice(start, end) { return currentInput.slice(start, end); } function endOpenTag(end) { if (tokenizer.inSFCRoot) { currentOpenTag.innerLoc = getLoc(end + 1, end + 1); } addNode(currentOpenTag); const { tag, ns } = currentOpenTag; if (ns === 0 && currentOptions.isPreTag(tag)) { inPre++; } if (currentOptions.isVoidTag(tag)) { onCloseTag(currentOpenTag, end); } else { stack.unshift(currentOpenTag); if (ns === 1 || ns === 2) { tokenizer.inXML = true; } } currentOpenTag = null; } function onText(content, start, end) { { const tag = stack[0] && stack[0].tag; if (tag !== "script" && tag !== "style" && content.includes("&")) { content = currentOptions.decodeEntities(content, false); } } const parent = stack[0] || currentRoot; const lastNode = parent.children[parent.children.length - 1]; if (lastNode && lastNode.type === 2) { lastNode.content += content; setLocEnd(lastNode.loc, end); } else { parent.children.push({ type: 2, content, loc: getLoc(start, end) }); } } function onCloseTag(el, end, isImplied = false) { if (isImplied) { setLocEnd(el.loc, backTrack(end, 60)); } else { setLocEnd(el.loc, lookAhead(end, 62) + 1); } if (tokenizer.inSFCRoot) { if (el.children.length) { el.innerLoc.end = extend({}, el.children[el.children.length - 1].loc.end); } else { el.innerLoc.end = extend({}, el.innerLoc.start); } el.innerLoc.source = getSlice( el.innerLoc.start.offset, el.innerLoc.end.offset ); } const { tag, ns, children } = el; if (!inVPre) { if (tag === "slot") { el.tagType = 2; } else if (isFragmentTemplate(el)) { el.tagType = 3; } else if (isComponent(el)) { el.tagType = 1; } } if (!tokenizer.inRCDATA) { el.children = condenseWhitespace(children); } if (ns === 0 && currentOptions.isIgnoreNewlineTag(tag)) { const first = children[0]; if (first && first.type === 2) { first.content = first.content.replace(/^\r?\n/, ""); } } if (ns === 0 && currentOptions.isPreTag(tag)) { inPre--; } if (currentVPreBoundary === el) { inVPre = tokenizer.inVPre = false; currentVPreBoundary = null; } if (tokenizer.inXML && (stack[0] ? stack[0].ns : currentOptions.ns) === 0) { tokenizer.inXML = false; } { const props = el.props; if (isCompatEnabled( "COMPILER_V_IF_V_FOR_PRECEDENCE", currentOptions )) { let hasIf = false; let hasFor = false; for (let i = 0; i < props.length; i++) { const p = props[i]; if (p.type === 7) { if (p.name === "if") { hasIf = true; } else if (p.name === "for") { hasFor = true; } } if (hasIf && hasFor) { warnDeprecation( "COMPILER_V_IF_V_FOR_PRECEDENCE", currentOptions, el.loc ); break; } } } if (!tokenizer.inSFCRoot && isCompatEnabled( "COMPILER_NATIVE_TEMPLATE", currentOptions ) && el.tag === "template" && !isFragmentTemplate(el)) { warnDeprecation( "COMPILER_NATIVE_TEMPLATE", currentOptions, el.loc ); const parent = stack[0] || currentRoot; const index = parent.children.indexOf(el); parent.children.splice(index, 1, ...el.children); } const inlineTemplateProp = props.find( (p) => p.type === 6 && p.name === "inline-template" ); if (inlineTemplateProp && checkCompatEnabled( "COMPILER_INLINE_TEMPLATE", currentOptions, inlineTemplateProp.loc ) && el.children.length) { inlineTemplateProp.value = { type: 2, content: getSlice( el.children[0].loc.start.offset, el.children[el.children.length - 1].loc.end.offset ), loc: inlineTemplateProp.loc }; } } } function lookAhead(index, c) { let i = index; while (currentInput.charCodeAt(i) !== c && i < currentInput.length - 1) i++; return i; } function backTrack(index, c) { let i = index; while (currentInput.charCodeAt(i) !== c && i >= 0) i--; return i; } function isFragmentTemplate({ tag, props }) { if (tag === "template") { for (let i = 0; i < props.length; i++) { if (props[i].type === 7 && specialTemplateDir.has(props[i].name)) { return true; } } } return false; } function isComponent({ tag, props }) { if (currentOptions.isCustomElement(tag)) { return false; } if (tag === "component" || isUpperCase(tag.charCodeAt(0)) || isCoreComponent(tag) || currentOptions.isBuiltInComponent && currentOptions.isBuiltInComponent(tag) || currentOptions.isNativeTag && !currentOptions.isNativeTag(tag)) { return true; } for (let i = 0; i < props.length; i++) { const p = props[i]; if (p.type === 6) { if (p.name === "is" && p.value) { if (p.value.content.startsWith("vue:")) { return true; } else if (checkCompatEnabled( "COMPILER_IS_ON_ELEMENT", currentOptions, p.loc )) { return true; } } } else if ( // :is on plain element - only treat as component in compat mode p.name === "bind" && isStaticArgOf(p.arg, "is") && checkCompatEnabled( "COMPILER_IS_ON_ELEMENT", currentOptions, p.loc ) ) { return true; } } return false; } function isUpperCase(c) { return c > 64 && c < 91; } function condenseWhitespace(nodes, tag) { const shouldCondense = currentOptions.whitespace !== "preserve"; let removedWhitespace = false; for (let i = 0; i < nodes.length; i++) { const node = nodes[i]; if (node.type === 2) { if (!inPre) { if (isAllWhitespace(node.content)) { const prev = nodes[i - 1] && nodes[i - 1].type; const next = nodes[i + 1] && nodes[i + 1].type; if (!prev || !next || shouldCondense && (prev === 3 && (next === 3 || next === 1) || prev === 1 && (next === 3 || next === 1 && hasNewlineChar(node.content)))) { removedWhitespace = true; nodes[i] = null; } else { node.content = " "; } } else if (shouldCondense) { node.content = condense(node.content); } } else { node.content = node.content.replace(windowsNewlineRE, "\n"); } } } return removedWhitespace ? nodes.filter(Boolean) : nodes; } function isAllWhitespace(str) { for (let i = 0; i < str.length; i++) { if (!isWhitespace(str.charCodeAt(i))) { return false; } } return true; } function hasNewlineChar(str) { for (let i = 0; i < str.length; i++) { const c = str.charCodeAt(i); if (c === 10 || c === 13) { return true; } } return false; } function condense(str) { let ret = ""; let prevCharIsWhitespace = false; for (let i = 0; i < str.length; i++) { if (isWhitespace(str.charCodeAt(i))) { if (!prevCharIsWhitespace) { ret += " "; prevCharIsWhitespace = true; } } else { ret += str[i]; prevCharIsWhitespace = false; } } return ret; } function addNode(node) { (stack[0] || currentRoot).children.push(node); } function getLoc(start, end) { return { start: tokenizer.getPos(start), // @ts-expect-error allow late attachment end: end == null ? end : tokenizer.getPos(end), // @ts-expect-error allow late attachment source: end == null ? end : getSlice(start, end) }; } function cloneLoc(loc) { return getLoc(loc.start.offset, loc.end.offset); } function setLocEnd(loc, end) { loc.end = tokenizer.getPos(end); loc.source = getSlice(loc.start.offset, end); } function dirToAttr(dir) { const attr = { type: 6, name: dir.rawName, nameLoc: getLoc( dir.loc.start.offset, dir.loc.start.offset + dir.rawName.length ), value: void 0, loc: dir.loc }; if (dir.exp) { const loc = dir.exp.loc; if (loc.end.offset < dir.loc.end.offset) { loc.start.offset--; loc.start.column--; loc.end.offset++; loc.end.column++; } attr.value = { type: 2, content: dir.exp.content, loc }; } return attr; } function createExp(content, isStatic = false, loc, constType = 0, parseMode = 0) { const exp = createSimpleExpression(content, isStatic, loc, constType); return exp; } function emitError(code, index, message) { currentOptions.onError( createCompilerError(code, getLoc(index, index), void 0, message) ); } function reset() { tokenizer.reset(); currentOpenTag = null; currentProp = null; currentAttrValue = ""; currentAttrStartIndex = -1; currentAttrEndIndex = -1; stack.length = 0; } function baseParse(input, options) { reset(); currentInput = input; currentOptions = extend({}, defaultParserOptions); if (options) { let key; for (key in options) { if (options[key] != null) { currentOptions[key] = options[key]; } } } if (true) { if (!currentOptions.decodeEntities) { throw new Error( `[@vue/compiler-core] decodeEntities option is required in browser builds.` ); } } tokenizer.mode = currentOptions.parseMode === "html" ? 1 : currentOptions.parseMode === "sfc" ? 2 : 0; tokenizer.inXML = currentOptions.ns === 1 || currentOptions.ns === 2; const delimiters = options && options.delimiters; if (delimiters) { tokenizer.delimiterOpen = toCharCodes(delimiters[0]); tokenizer.delimiterClose = toCharCodes(delimiters[1]); } const root = currentRoot = createRoot([], input); tokenizer.parse(currentInput); root.loc = getLoc(0, input.length); root.children = condenseWhitespace(root.children); currentRoot = null; return root; } function cacheStatic(root, context) { walk( root, void 0, context, // Root node is unfortunately non-hoistable due to potential parent // fallthrough attributes. isSingleElementRoot(root, root.children[0]) ); } function isSingleElementRoot(root, child) { const { children } = root; return children.length === 1 && child.type === 1 && !isSlotOutlet(child); } function walk(node, parent, context, doNotHoistNode = false, inFor = false) { const { children } = node; const toCache = []; for (let i = 0; i < children.length; i++) { const child = children[i]; if (child.type === 1 && child.tagType === 0) { const constantType = doNotHoistNode ? 0 : getConstantType(child, context); if (constantType > 0) { if (constantType >= 2) { child.codegenNode.patchFlag = -1; toCache.push(child); continue; } } else { const codegenNode = child.codegenNode; if (codegenNode.type === 13) { const flag = codegenNode.patchFlag; if ((flag === void 0 || flag === 512 || flag === 1) && getGeneratedPropsConstantType(child, context) >= 2) { const props = getNodeProps(child); if (props) { codegenNode.props = context.hoist(props); } } if (codegenNode.dynamicProps) { codegenNode.dynamicProps = context.hoist(codegenNode.dynamicProps); } } } } else if (child.type === 12) { const constantType = doNotHoistNode ? 0 : getConstantType(child, context); if (constantType >= 2) { toCache.push(child); continue; } } if (child.type === 1) { const isComponent2 = child.tagType === 1; if (isComponent2) { context.scopes.vSlot++; } walk(child, node, context, false, inFor); if (isComponent2) { context.scopes.vSlot--; } } else if (child.type === 11) { walk(child, node, context, child.children.length === 1, true); } else if (child.type === 9) { for (let i2 = 0; i2 < child.branches.length; i2++) { walk( child.branches[i2], node, context, child.branches[i2].children.length === 1, inFor ); } } } let cachedAsArray = false; if (toCache.length === children.length && node.type === 1) { if (node.tagType === 0 && node.codegenNode && node.codegenNode.type === 13 && isArray(node.codegenNode.children)) { node.codegenNode.children = getCacheExpression( createArrayExpression(node.codegenNode.children) ); cachedAsArray = true; } else if (node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) { const slot = getSlotNode(node.codegenNode, "default"); if (slot) { slot.returns = getCacheExpression( createArrayExpression(slot.returns) ); cachedAsArray = true; } } else if (node.tagType === 3 && parent && parent.type === 1 && parent.tagType === 1 && parent.codegenNode && parent.codegenNode.type === 13 && parent.codegenNode.children && !isArray(parent.codegenNode.children) && parent.codegenNode.children.type === 15) { const slotName = findDir(node, "slot", true); const slot = slotName && slotName.arg && getSlotNode(parent.codegenNode, slotName.arg); if (slot) { slot.returns = getCacheExpression( createArrayExpression(slot.returns) ); cachedAsArray = true; } } } if (!cachedAsArray) { for (const child of toCache) { child.codegenNode = context.cache(child.codegenNode); } } function getCacheExpression(value) { const exp = context.cache(value); if (inFor && context.hmr) { exp.needArraySpread = true; } return exp; } function getSlotNode(node2, name) { if (node2.children && !isArray(node2.children) && node2.children.type === 15) { const slot = node2.children.properties.find( (p) => p.key === name || p.key.content === name ); return slot && slot.value; } } if (toCache.length && context.transformHoist) { context.transformHoist(children, context, node); } } function getConstantType(node, context) { const { constantCache } = context; switch (node.type) { case 1: if (node.tagType !== 0) { return 0; } const cached = constantCache.get(node); if (cached !== void 0) { return cached; } const codegenNode = node.codegenNode; if (codegenNode.type !== 13) { return 0; } if (codegenNode.isBlock && node.tag !== "svg" && node.tag !== "foreignObject" && node.tag !== "math") { return 0; } if (codegenNode.patchFlag === void 0) { let returnType2 = 3; const generatedPropsType = getGeneratedPropsConstantType(node, context); if (generatedPropsType === 0) { constantCache.set(node, 0); return 0; } if (generatedPropsType < returnType2) { returnType2 = generatedPropsType; } for (let i = 0; i < node.children.length; i++) { const childType = getConstantType(node.children[i], context); if (childType === 0) { constantCache.set(node, 0); return 0; } if (childType < returnType2) { returnType2 = childType; } } if (returnType2 > 1) { for (let i = 0; i < node.props.length; i++) { const p = node.props[i]; if (p.type === 7 && p.name === "bind" && p.exp) { const expType = getConstantType(p.exp, context); if (expType === 0) { constantCache.set(node, 0); return 0; } if (expType < returnType2) { returnType2 = expType; } } } } if (codegenNode.isBlock) { for (let i = 0; i < node.props.length; i++) { const p = node.props[i]; if (p.type === 7) { constantCache.set(node, 0); return 0; } } context.removeHelper(OPEN_BLOCK); context.removeHelper( getVNodeBlockHelper(context.inSSR, codegenNode.isComponent) ); codegenNode.isBlock = false; context.helper(getVNodeHelper(context.inSSR, codegenNode.isComponent)); } constantCache.set(node, returnType2); return returnType2; } else { constantCache.set(node, 0); return 0; } case 2: case 3: return 3; case 9: case 11: case 10: return 0; case 5: case 12: return getConstantType(node.content, context); case 4: return node.constType; case 8: let returnType = 3; for (let i = 0; i < node.children.length; i++) { const child = node.children[i]; if (isString(child) || isSymbol(child)) { continue; } const childType = getConstantType(child, context); if (childType === 0) { return 0; } else if (childType < returnType) { returnType = childType; } } return returnType; case 20: return 2; default: if (true) ; return 0; } } function getConstantTypeOfHelperCall(value, context) { if (value.type === 14 && !isString(value.callee) && allowHoistedHelperSet.has(value.callee)) { const arg = value.arguments[0]; if (arg.type === 4) { return getConstantType(arg, context); } else if (arg.type === 14) { return getConstantTypeOfHelperCall(arg, context); } } return 0; } function getGeneratedPropsConstantType(node, context) { let returnType = 3; const props = getNodeProps(node); if (props && props.type === 15) { const { properties } = props; for (let i = 0; i < properties.length; i++) { const { key, value } = properties[i]; const keyType = getConstantType(key, context); if (keyType === 0) { return keyType; } if (keyType < returnType) { returnType = keyType; } let valueType; if (value.type === 4) { valueType = getConstantType(value, context); } else if (value.type === 14) { valueType = getConstantTypeOfHelperCall(value, context); } else { valueType = 0; } if (valueType === 0) { return valueType; } if (valueType < returnType) { returnType = valueType; } } } return returnType; } function getNodeProps(node) { const codegenNode = node.codegenNode; if (codegenNode.type === 13) { return codegenNode.props; } } function createTransformContext(root, { filename = "", prefixIdentifiers = false, hoistStatic = false, hmr = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) { const nameMatch = filename.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/); const context = { // options filename, selfName: nameMatch && capitalize(camelize(nameMatch[1])), prefixIdentifiers, hoistStatic, hmr, cacheHandlers, nodeTransforms, directiveTransforms, transformHoist, isBuiltInComponent, isCustomElement, expressionPlugins, scopeId, slotted, ssr, inSSR, ssrCssVars, bindingMetadata, inline, isTS, onError, onWarn, compatConfig, // state root, helpers: /* @__PURE__ */ new Map(), components: /* @__PURE__ */ new Set(), directives: /* @__PURE__ */ new Set(), hoists: [], imports: [], cached: [], constantCache: /* @__PURE__ */ new WeakMap(), temps: 0, identifiers: /* @__PURE__ */ Object.create(null), scopes: { vFor: 0, vSlot: 0, vPre: 0, vOnce: 0 }, parent: null, grandParent: null, currentNode: root, childIndex: 0, inVOnce: false, // methods helper(name) { const count = context.helpers.get(name) || 0; context.helpers.set(name, count + 1); return name; }, removeHelper(name) { const count = context.helpers.get(name); if (count) { const currentCount = count - 1; if (!currentCount) { context.helpers.delete(name); } else { context.helpers.set(name, currentCount); } } }, helperString(name) { return `_${helperNameMap[context.helper(name)]}`; }, replaceNode(node) { if (true) { if (!context.currentNode) { throw new Error(`Node being replaced is already removed.`); } if (!context.parent) { throw new Error(`Cannot replace root node.`); } } context.parent.children[context.childIndex] = context.currentNode = node; }, removeNode(node) { if (!context.parent) { throw new Error(`Cannot remove root node.`); } const list = context.parent.children; const removalIndex = node ? list.indexOf(node) : context.currentNode ? context.childIndex : -1; if (removalIndex < 0) { throw new Error(`node being removed is not a child of current parent`); } if (!node || node === context.currentNode) { context.currentNode = null; context.onNodeRemoved(); } else { if (context.childIndex > removalIndex) { context.childIndex--; context.onNodeRemoved(); } } context.parent.children.splice(removalIndex, 1); }, onNodeRemoved: NOOP, addIdentifiers(exp) { }, removeIdentifiers(exp) { }, hoist(exp) { if (isString(exp)) exp = createSimpleExpression(exp); context.hoists.push(exp); const identifier = createSimpleExpression( `_hoisted_${context.hoists.length}`, false, exp.loc, 2 ); identifier.hoisted = exp; return identifier; }, cache(exp, isVNode = false, inVOnce = false) { const cacheExp = createCacheExpression( context.cached.length, exp, isVNode, inVOnce ); context.cached.push(cacheExp); return cacheExp; } }; { context.filters = /* @__PURE__ */ new Set(); } return context; } function transform(root, options) { const context = createTransformContext(root, options); traverseNode(root, context); if (options.hoistStatic) { cacheStatic(root, context); } if (!options.ssr) { createRootCodegen(root, context); } root.helpers = /* @__PURE__ */ new Set([...context.helpers.keys()]); root.components = [...context.components]; root.directives = [...context.directives]; root.imports = context.imports; root.hoists = context.hoists; root.temps = context.temps; root.cached = context.cached; root.transformed = true; { root.filters = [...context.filters]; } } function createRootCodegen(root, context) { const { helper } = context; const { children } = root; if (children.length === 1) { const child = children[0]; if (isSingleElementRoot(root, child) && child.codegenNode) { const codegenNode = child.codegenNode; if (codegenNode.type === 13) { convertToBlock(codegenNode, context); } root.codegenNode = codegenNode; } else { root.codegenNode = child; } } else if (children.length > 1) { let patchFlag = 64; if (children.filter((c) => c.type !== 3).length === 1) { patchFlag |= 2048; } root.codegenNode = createVNodeCall( context, helper(FRAGMENT), void 0, root.children, patchFlag, void 0, void 0, true, void 0, false ); } else ; } function traverseChildren(parent, context) { let i = 0; const nodeRemoved = () => { i--; }; for (; i < parent.children.length; i++) { const child = parent.children[i]; if (isString(child)) continue; context.grandParent = context.parent; context.parent = parent; context.childIndex = i; context.onNodeRemoved = nodeRemoved; traverseNode(child, context); } } function traverseNode(node, context) { context.currentNode = node; const { nodeTransforms } = context; const exitFns = []; for (let i2 = 0; i2 < nodeTransforms.length; i2++) { const onExit = nodeTransforms[i2](node, context); if (onExit) { if (isArray(onExit)) { exitFns.push(...onExit); } else { exitFns.push(onExit); } } if (!context.currentNode) { return; } else { node = context.currentNode; } } switch (node.type) { case 3: if (!context.ssr) { context.helper(CREATE_COMMENT); } break; case 5: if (!context.ssr) { context.helper(TO_DISPLAY_STRING); } break; // for container types, further traverse downwards case 9: for (let i2 = 0; i2 < node.branches.length; i2++) { traverseNode(node.branches[i2], context); } break; case 10: case 11: case 1: case 0: traverseChildren(node, context); break; } context.currentNode = node; let i = exitFns.length; while (i--) { exitFns[i](); } } function createStructuralDirectiveTransform(name, fn) { const matches = isString(name) ? (n) => n === name : (n) => name.test(n); return (node, context) => { if (node.type === 1) { const { props } = node; if (node.tagType === 3 && props.some(isVSlot)) { return; } const exitFns = []; for (let i = 0; i < props.length; i++) { const prop = props[i]; if (prop.type === 7 && matches(prop.name)) { props.splice(i, 1); i--; const onExit = fn(node, prop, context); if (onExit) exitFns.push(onExit); } } return exitFns; } }; } function createCodegenContext(ast, { mode = "function", prefixIdentifiers = mode === "module", sourceMap = false, filename = `template.vue.html`, scopeId = null, optimizeImports = false, runtimeGlobalName = `Vue`, runtimeModuleName = `vue`, ssrRuntimeModuleName = "vue/server-renderer", ssr = false, isTS = false, inSSR = false }) { const context = { mode, prefixIdentifiers, sourceMap, filename, scopeId, optimizeImports, runtimeGlobalName, runtimeModuleName, ssrRuntimeModuleName, ssr, isTS, inSSR, source: ast.source, code: ``, column: 1, line: 1, offset: 0, indentLevel: 0, pure: false, map: void 0, helper(key) { return `_${helperNameMap[key]}`; }, push(code, newlineIndex = -2, node) { context.code += code; }, indent() { newline(++context.indentLevel); }, deindent(withoutNewLine = false) { if (withoutNewLine) { --context.indentLevel; } else { newline(--context.indentLevel); } }, newline() { newline(context.indentLevel); } }; function newline(n) { context.push( "\n" + ` `.repeat(n), 0 /* Start */ ); } return context; } function generate(ast, options = {}) { const context = createCodegenContext(ast, options); if (options.onContextCreated) options.onContextCreated(context); const { mode, push, prefixIdentifiers, indent, deindent, newline, scopeId, ssr } = context; const helpers = Array.from(ast.helpers); const hasHelpers = helpers.length > 0; const useWithBlock = !prefixIdentifiers && mode !== "module"; const preambleContext = context; { genFunctionPreamble(ast, preambleContext); } const functionName = ssr ? `ssrRender` : `render`; const args = ssr ? ["_ctx", "_push", "_parent", "_attrs"] : ["_ctx", "_cache"]; const signature = args.join(", "); { push(`function ${functionName}(${signature}) {`); } indent(); if (useWithBlock) { push(`with (_ctx) {`); indent(); if (hasHelpers) { push( `const { ${helpers.map(aliasHelper).join(", ")} } = _Vue `, -1 /* End */ ); newline(); } } if (ast.components.length) { genAssets(ast.components, "component", context); if (ast.directives.length || ast.temps > 0) { newline(); } } if (ast.directives.length) { genAssets(ast.directives, "directive", context); if (ast.temps > 0) { newline(); } } if (ast.filters && ast.filters.length) { newline(); genAssets(ast.filters, "filter", context); newline(); } if (ast.temps > 0) { push(`let `); for (let i = 0; i < ast.temps; i++) { push(`${i > 0 ? `, ` : ``}_temp${i}`); } } if (ast.components.length || ast.directives.length || ast.temps) { push( ` `, 0 /* Start */ ); newline(); } if (!ssr) { push(`return `); } if (ast.codegenNode) { genNode(ast.codegenNode, context); } else { push(`null`); } if (useWithBlock) { deindent(); push(`}`); } deindent(); push(`}`); return { ast, code: context.code, preamble: ``, map: context.map ? context.map.toJSON() : void 0 }; } function genFunctionPreamble(ast, context) { const { ssr, prefixIdentifiers, push, newline, runtimeModuleName, runtimeGlobalName, ssrRuntimeModuleName } = context; const VueBinding = runtimeGlobalName; const helpers = Array.from(ast.helpers); if (helpers.length > 0) { { push( `const _Vue = ${VueBinding} `, -1 /* End */ ); if (ast.hoists.length) { const staticHelpers = [ CREATE_VNODE, CREATE_ELEMENT_VNODE, CREATE_COMMENT, CREATE_TEXT, CREATE_STATIC ].filter((helper) => helpers.includes(helper)).map(aliasHelper).join(", "); push( `const { ${staticHelpers} } = _Vue `, -1 /* End */ ); } } } genHoists(ast.hoists, context); newline(); push(`return `); } function genAssets(assets, type, { helper, push, newline, isTS }) { const resolver = helper( type === "filter" ? RESOLVE_FILTER : type === "component" ? RESOLVE_COMPONENT : RESOLVE_DIRECTIVE ); for (let i = 0; i < assets.length; i++) { let id = assets[i]; const maybeSelfReference = id.endsWith("__self"); if (maybeSelfReference) { id = id.slice(0, -6); } push( `const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})${isTS ? `!` : ``}` ); if (i < assets.length - 1) { newline(); } } } function genHoists(hoists, context) { if (!hoists.length) { return; } context.pure = true; const { push, newline } = context; newline(); for (let i = 0; i < hoists.length; i++) { const exp = hoists[i]; if (exp) { push(`const _hoisted_${i + 1} = `); genNode(exp, context); newline(); } } context.pure = false; } function isText(n) { return isString(n) || n.type === 4 || n.type === 2 || n.type === 5 || n.type === 8; } function genNodeListAsArray(nodes, context) { const multilines = nodes.length > 3 || nodes.some((n) => isArray(n) || !isText(n)); context.push(`[`); multilines && context.indent(); genNodeList(nodes, context, multilines); multilines && context.deindent(); context.push(`]`); } function genNodeList(nodes, context, multilines = false, comma = true) { const { push, newline } = context; for (let i = 0; i < nodes.length; i++) { const node = nodes[i]; if (isString(node)) { push( node, -3 /* Unknown */ ); } else if (isArray(node)) { genNodeListAsArray(node, context); } else { genNode(node, context); } if (i < nodes.length - 1) { if (multilines) { comma && push(","); newline(); } else { comma && push(", "); } } } } function genNode(node, context) { if (isString(node)) { context.push( node, -3 /* Unknown */ ); return; } if (isSymbol(node)) { context.push(context.helper(node)); return; } switch (node.type) { case 1: case 9: case 11: assert( node.codegenNode != null, `Codegen node is missing for element/if/for node. Apply appropriate transforms first.` ); genNode(node.codegenNode, context); break; case 2: genText(node, context); break; case 4: genExpression(node, context); break; case 5: genInterpolation(node, context); break; case 12: genNode(node.codegenNode, context); break; case 8: genCompoundExpression(node, context); break; case 3: genComment(node, context); break; case 13: genVNodeCall(node, context); break; case 14: genCallExpression(node, context); break; case 15: genObjectExpression(node, context); break; case 17: genArrayExpression(node, context); break; case 18: genFunctionExpression(node, context); break; case 19: genConditionalExpression(node, context); break; case 20: genCacheExpression(node, context); break; case 21: genNodeList(node.body, context, true, false); break; // SSR only types case 22: break; case 23: break; case 24: break; case 25: break; case 26: break; /* v8 ignore start */ case 10: break; default: if (true) { assert(false, `unhandled codegen node type: ${node.type}`); const exhaustiveCheck = node; return exhaustiveCheck; } } } function genText(node, context) { context.push(JSON.stringify(node.content), -3, node); } function genExpression(node, context) { const { content, isStatic } = node; context.push( isStatic ? JSON.stringify(content) : content, -3, node ); } function genInterpolation(node, context) { const { push, helper, pure } = context; if (pure) push(PURE_ANNOTATION); push(`${helper(TO_DISPLAY_STRING)}(`); genNode(node.content, context); push(`)`); } function genCompoundExpression(node, context) { for (let i = 0; i < node.children.length; i++) { const child = node.children[i]; if (isString(child)) { context.push( child, -3 /* Unknown */ ); } else { genNode(child, context); } } } function genExpressionAsPropertyKey(node, context) { const { push } = context; if (node.type === 8) { push(`[`); genCompoundExpression(node, context); push(`]`); } else if (node.isStatic) { const text = isSimpleIdentifier(node.content) ? node.content : JSON.stringify(node.content); push(text, -2, node); } else { push(`[${node.content}]`, -3, node); } } function genComment(node, context) { const { push, helper, pure } = context; if (pure) { push(PURE_ANNOTATION); } push( `${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`, -3, node ); } function genVNodeCall(node, context) { const { push, helper, pure } = context; const { tag, props, children, patchFlag, dynamicProps, directives, isBlock, disableTracking, isComponent: isComponent2 } = node; let patchFlagString; if (patchFlag) { if (true) { if (patchFlag < 0) { patchFlagString = patchFlag + ` /* ${PatchFlagNames[patchFlag]} */`; } else { const flagNames = Object.keys(PatchFlagNames).map(Number).filter((n) => n > 0 && patchFlag & n).map((n) => PatchFlagNames[n]).join(`, `); patchFlagString = patchFlag + ` /* ${flagNames} */`; } } else { patchFlagString = String(patchFlag); } } if (directives) { push(helper(WITH_DIRECTIVES) + `(`); } if (isBlock) { push(`(${helper(OPEN_BLOCK)}(${disableTracking ? `true` : ``}), `); } if (pure) { push(PURE_ANNOTATION); } const callHelper = isBlock ? getVNodeBlockHelper(context.inSSR, isComponent2) : getVNodeHelper(context.inSSR, isComponent2); push(helper(callHelper) + `(`, -2, node); genNodeList( genNullableArgs([tag, props, children, patchFlagString, dynamicProps]), context ); push(`)`); if (isBlock) { push(`)`); } if (directives) { push(`, `); genNode(directives, context); push(`)`); } } function genNullableArgs(args) { let i = args.length; while (i--) { if (args[i] != null) break; } return args.slice(0, i + 1).map((arg) => arg || `null`); } function genCallExpression(node, context) { const { push, helper, pure } = context; const callee = isString(node.callee) ? node.callee : helper(node.callee); if (pure) { push(PURE_ANNOTATION); } push(callee + `(`, -2, node); genNodeList(node.arguments, context); push(`)`); } function genObjectExpression(node, context) { const { push, indent, deindent, newline } = context; const { properties } = node; if (!properties.length) { push(`{}`, -2, node); return; } const multilines = properties.length > 1 || properties.some((p) => p.value.type !== 4); push(multilines ? `{` : `{ `); multilines && indent(); for (let i = 0; i < properties.length; i++) { const { key, value } = properties[i]; genExpressionAsPropertyKey(key, context); push(`: `); genNode(value, context); if (i < properties.length - 1) { push(`,`); newline(); } } multilines && deindent(); push(multilines ? `}` : ` }`); } function genArrayExpression(node, context) { genNodeListAsArray(node.elements, context); } function genFunctionExpression(node, context) { const { push, indent, deindent } = context; const { params, returns, body, newline, isSlot } = node; if (isSlot) { push(`_${helperNameMap[WITH_CTX]}(`); } push(`(`, -2, node); if (isArray(params)) { genNodeList(params, context); } else if (params) { genNode(params, context); } push(`) => `); if (newline || body) { push(`{`); indent(); } if (returns) { if (newline) { push(`return `); } if (isArray(returns)) { genNodeListAsArray(returns, context); } else { genNode(returns, context); } } else if (body) { genNode(body, context); } if (newline || body) { deindent(); push(`}`); } if (isSlot) { if (node.isNonScopedSlot) { push(`, undefined, true`); } push(`)`); } } function genConditionalExpression(node, context) { const { test, consequent, alternate, newline: needNewline } = node; const { push, indent, deindent, newline } = context; if (test.type === 4) { const needsParens = !isSimpleIdentifier(test.content); needsParens && push(`(`); genExpression(test, context); needsParens && push(`)`); } else { push(`(`); genNode(test, context); push(`)`); } needNewline && indent(); context.indentLevel++; needNewline || push(` `); push(`? `); genNode(consequent, context); context.indentLevel--; needNewline && newline(); needNewline || push(` `); push(`: `); const isNested = alternate.type === 19; if (!isNested) { context.indentLevel++; } genNode(alternate, context); if (!isNested) { context.indentLevel--; } needNewline && deindent( true /* without newline */ ); } function genCacheExpression(node, context) { const { push, helper, indent, deindent, newline } = context; const { needPauseTracking, needArraySpread } = node; if (needArraySpread) { push(`[...(`); } push(`_cache[${node.index}] || (`); if (needPauseTracking) { indent(); push(`${helper(SET_BLOCK_TRACKING)}(-1`); if (node.inVOnce) push(`, true`); push(`),`); newline(); push(`(`); } push(`_cache[${node.index}] = `); genNode(node.value, context); if (needPauseTracking) { push(`).cacheIndex = ${node.index},`); newline(); push(`${helper(SET_BLOCK_TRACKING)}(1),`); newline(); push(`_cache[${node.index}]`); deindent(); } push(`)`); if (needArraySpread) { push(`)]`); } } function validateBrowserExpression(node, context, asParams = false, asRawStatements = false) { const exp = node.content; if (!exp.trim()) { return; } try { new Function( asRawStatements ? ` ${exp} ` : `return ${asParams ? `(${exp}) => {}` : `(${exp})`}` ); } catch (e) { let message = e.message; const keywordMatch = exp.replace(stripStringRE, "").match(prohibitedKeywordRE); if (keywordMatch) { message = `avoid using JavaScript keyword as property name: "${keywordMatch[0]}"`; } context.onError( createCompilerError( 45, node.loc, void 0, message ) ); } } function processExpression(node, context, asParams = false, asRawStatements = false, localVars = Object.create(context.identifiers)) { { if (true) { validateBrowserExpression(node, context, asParams, asRawStatements); } return node; } } function stringifyExpression(exp) { if (isString(exp)) { return exp; } else if (exp.type === 4) { return exp.content; } else { return exp.children.map(stringifyExpression).join(""); } } function processIf(node, dir, context, processCodegen) { if (dir.name !== "else" && (!dir.exp || !dir.exp.content.trim())) { const loc = dir.exp ? dir.exp.loc : node.loc; context.onError( createCompilerError(28, dir.loc) ); dir.exp = createSimpleExpression(`true`, false, loc); } if (dir.exp) { validateBrowserExpression(dir.exp, context); } if (dir.name === "if") { const branch = createIfBranch(node, dir); const ifNode = { type: 9, loc: cloneLoc(node.loc), branches: [branch] }; context.replaceNode(ifNode); if (processCodegen) { return processCodegen(ifNode, branch, true); } } else { const siblings = context.parent.children; const comments = []; let i = siblings.indexOf(node); while (i-- >= -1) { const sibling = siblings[i]; if (sibling && sibling.type === 3) { context.removeNode(sibling); comments.unshift(sibling); continue; } if (sibling && sibling.type === 2 && !sibling.content.trim().length) { context.removeNode(sibling); continue; } if (sibling && sibling.type === 9) { if (dir.name === "else-if" && sibling.branches[sibling.branches.length - 1].condition === void 0) { context.onError( createCompilerError(30, node.loc) ); } context.removeNode(); const branch = createIfBranch(node, dir); if (comments.length && // #3619 ignore comments if the v-if is direct child of !(context.parent && context.parent.type === 1 && (context.parent.tag === "transition" || context.parent.tag === "Transition"))) { branch.children = [...comments, ...branch.children]; } if (true) { const key = branch.userKey; if (key) { sibling.branches.forEach(({ userKey }) => { if (isSameKey(userKey, key)) { context.onError( createCompilerError( 29, branch.userKey.loc ) ); } }); } } sibling.branches.push(branch); const onExit = processCodegen && processCodegen(sibling, branch, false); traverseNode(branch, context); if (onExit) onExit(); context.currentNode = null; } else { context.onError( createCompilerError(30, node.loc) ); } break; } } } function createIfBranch(node, dir) { const isTemplateIf = node.tagType === 3; return { type: 10, loc: node.loc, condition: dir.name === "else" ? void 0 : dir.exp, children: isTemplateIf && !findDir(node, "for") ? node.children : [node], userKey: findProp(node, `key`), isTemplateIf }; } function createCodegenNodeForBranch(branch, keyIndex, context) { if (branch.condition) { return createConditionalExpression( branch.condition, createChildrenCodegenNode(branch, keyIndex, context), // make sure to pass in asBlock: true so that the comment node call // closes the current block. createCallExpression(context.helper(CREATE_COMMENT), [ true ? '"v-if"' : '""', "true" ]) ); } else { return createChildrenCodegenNode(branch, keyIndex, context); } } function createChildrenCodegenNode(branch, keyIndex, context) { const { helper } = context; const keyProperty = createObjectProperty( `key`, createSimpleExpression( `${keyIndex}`, false, locStub, 2 ) ); const { children } = branch; const firstChild = children[0]; const needFragmentWrapper = children.length !== 1 || firstChild.type !== 1; if (needFragmentWrapper) { if (children.length === 1 && firstChild.type === 11) { const vnodeCall = firstChild.codegenNode; injectProp(vnodeCall, keyProperty, context); return vnodeCall; } else { let patchFlag = 64; if (!branch.isTemplateIf && children.filter((c) => c.type !== 3).length === 1) { patchFlag |= 2048; } return createVNodeCall( context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, patchFlag, void 0, void 0, true, false, false, branch.loc ); } } else { const ret = firstChild.codegenNode; const vnodeCall = getMemoedVNodeCall(ret); if (vnodeCall.type === 13) { convertToBlock(vnodeCall, context); } injectProp(vnodeCall, keyProperty, context); return ret; } } function isSameKey(a, b) { if (!a || a.type !== b.type) { return false; } if (a.type === 6) { if (a.value.content !== b.value.content) { return false; } } else { const exp = a.exp; const branchExp = b.exp; if (exp.type !== branchExp.type) { return false; } if (exp.type !== 4 || exp.isStatic !== branchExp.isStatic || exp.content !== branchExp.content) { return false; } } return true; } function getParentCondition(node) { while (true) { if (node.type === 19) { if (node.alternate.type === 19) { node = node.alternate; } else { return node; } } else if (node.type === 20) { node = node.value; } } } function processFor(node, dir, context, processCodegen) { if (!dir.exp) { context.onError( createCompilerError(31, dir.loc) ); return; } const parseResult = dir.forParseResult; if (!parseResult) { context.onError( createCompilerError(32, dir.loc) ); return; } finalizeForParseResult(parseResult, context); const { addIdentifiers, removeIdentifiers, scopes } = context; const { source, value, key, index } = parseResult; const forNode = { type: 11, loc: dir.loc, source, valueAlias: value, keyAlias: key, objectIndexAlias: index, parseResult, children: isTemplateNode(node) ? node.children : [node] }; context.replaceNode(forNode); scopes.vFor++; const onExit = processCodegen && processCodegen(forNode); return () => { scopes.vFor--; if (onExit) onExit(); }; } function finalizeForParseResult(result, context) { if (result.finalized) return; if (true) { validateBrowserExpression(result.source, context); if (result.key) { validateBrowserExpression( result.key, context, true ); } if (result.index) { validateBrowserExpression( result.index, context, true ); } if (result.value) { validateBrowserExpression( result.value, context, true ); } } result.finalized = true; } function createForLoopParams({ value, key, index }, memoArgs = []) { return createParamsList([value, key, index, ...memoArgs]); } function createParamsList(args) { let i = args.length; while (i--) { if (args[i]) break; } return args.slice(0, i + 1).map((arg, i2) => arg || createSimpleExpression(`_`.repeat(i2 + 1), false)); } function buildSlots(node, context, buildSlotFn = buildClientSlotFn) { context.helper(WITH_CTX); const { children, loc } = node; const slotsProperties = []; const dynamicSlots = []; let hasDynamicSlots = context.scopes.vSlot > 0 || context.scopes.vFor > 0; const onComponentSlot = findDir(node, "slot", true); if (onComponentSlot) { const { arg, exp } = onComponentSlot; if (arg && !isStaticExp(arg)) { hasDynamicSlots = true; } slotsProperties.push( createObjectProperty( arg || createSimpleExpression("default", true), buildSlotFn(exp, void 0, children, loc) ) ); } let hasTemplateSlots = false; let hasNamedDefaultSlot = false; const implicitDefaultChildren = []; const seenSlotNames = /* @__PURE__ */ new Set(); let conditionalBranchIndex = 0; for (let i = 0; i < children.length; i++) { const slotElement = children[i]; let slotDir; if (!isTemplateNode(slotElement) || !(slotDir = findDir(slotElement, "slot", true))) { if (slotElement.type !== 3) { implicitDefaultChildren.push(slotElement); } continue; } if (onComponentSlot) { context.onError( createCompilerError(37, slotDir.loc) ); break; } hasTemplateSlots = true; const { children: slotChildren, loc: slotLoc } = slotElement; const { arg: slotName = createSimpleExpression(`default`, true), exp: slotProps, loc: dirLoc } = slotDir; let staticSlotName; if (isStaticExp(slotName)) { staticSlotName = slotName ? slotName.content : `default`; } else { hasDynamicSlots = true; } const vFor = findDir(slotElement, "for"); const slotFunction = buildSlotFn(slotProps, vFor, slotChildren, slotLoc); let vIf; let vElse; if (vIf = findDir(slotElement, "if")) { hasDynamicSlots = true; dynamicSlots.push( createConditionalExpression( vIf.exp, buildDynamicSlot(slotName, slotFunction, conditionalBranchIndex++), defaultFallback ) ); } else if (vElse = findDir( slotElement, /^else(-if)?$/, true /* allowEmpty */ )) { let j = i; let prev; while (j--) { prev = children[j]; if (prev.type !== 3) { break; } } if (prev && isTemplateNode(prev) && findDir(prev, /^(else-)?if$/)) { let conditional = dynamicSlots[dynamicSlots.length - 1]; while (conditional.alternate.type === 19) { conditional = conditional.alternate; } conditional.alternate = vElse.exp ? createConditionalExpression( vElse.exp, buildDynamicSlot( slotName, slotFunction, conditionalBranchIndex++ ), defaultFallback ) : buildDynamicSlot(slotName, slotFunction, conditionalBranchIndex++); } else { context.onError( createCompilerError(30, vElse.loc) ); } } else if (vFor) { hasDynamicSlots = true; const parseResult = vFor.forParseResult; if (parseResult) { finalizeForParseResult(parseResult, context); dynamicSlots.push( createCallExpression(context.helper(RENDER_LIST), [ parseResult.source, createFunctionExpression( createForLoopParams(parseResult), buildDynamicSlot(slotName, slotFunction), true ) ]) ); } else { context.onError( createCompilerError( 32, vFor.loc ) ); } } else { if (staticSlotName) { if (seenSlotNames.has(staticSlotName)) { context.onError( createCompilerError( 38, dirLoc ) ); continue; } seenSlotNames.add(staticSlotName); if (staticSlotName === "default") { hasNamedDefaultSlot = true; } } slotsProperties.push(createObjectProperty(slotName, slotFunction)); } } if (!onComponentSlot) { const buildDefaultSlotProperty = (props, children2) => { const fn = buildSlotFn(props, void 0, children2, loc); if (context.compatConfig) { fn.isNonScopedSlot = true; } return createObjectProperty(`default`, fn); }; if (!hasTemplateSlots) { slotsProperties.push(buildDefaultSlotProperty(void 0, children)); } else if (implicitDefaultChildren.length && // #3766 // with whitespace: 'preserve', whitespaces between slots will end up in // implicitDefaultChildren. Ignore if all implicit children are whitespaces. implicitDefaultChildren.some((node2) => isNonWhitespaceContent(node2))) { if (hasNamedDefaultSlot) { context.onError( createCompilerError( 39, implicitDefaultChildren[0].loc ) ); } else { slotsProperties.push( buildDefaultSlotProperty(void 0, implicitDefaultChildren) ); } } } const slotFlag = hasDynamicSlots ? 2 : hasForwardedSlots(node.children) ? 3 : 1; let slots = createObjectExpression( slotsProperties.concat( createObjectProperty( `_`, // 2 = compiled but dynamic = can skip normalization, but must run diff // 1 = compiled and static = can skip normalization AND diff as optimized createSimpleExpression( slotFlag + (true ? ` /* ${slotFlagsText[slotFlag]} */` : ``), false ) ) ), loc ); if (dynamicSlots.length) { slots = createCallExpression(context.helper(CREATE_SLOTS), [ slots, createArrayExpression(dynamicSlots) ]); } return { slots, hasDynamicSlots }; } function buildDynamicSlot(name, fn, index) { const props = [ createObjectProperty(`name`, name), createObjectProperty(`fn`, fn) ]; if (index != null) { props.push( createObjectProperty(`key`, createSimpleExpression(String(index), true)) ); } return createObjectExpression(props); } function hasForwardedSlots(children) { for (let i = 0; i < children.length; i++) { const child = children[i]; switch (child.type) { case 1: if (child.tagType === 2 || hasForwardedSlots(child.children)) { return true; } break; case 9: if (hasForwardedSlots(child.branches)) return true; break; case 10: case 11: if (hasForwardedSlots(child.children)) return true; break; } } return false; } function isNonWhitespaceContent(node) { if (node.type !== 2 && node.type !== 12) return true; return node.type === 2 ? !!node.content.trim() : isNonWhitespaceContent(node.content); } function resolveComponentType(node, context, ssr = false) { let { tag } = node; const isExplicitDynamic = isComponentTag(tag); const isProp = findProp( node, "is", false, true /* allow empty */ ); if (isProp) { if (isExplicitDynamic || isCompatEnabled( "COMPILER_IS_ON_ELEMENT", context )) { let exp; if (isProp.type === 6) { exp = isProp.value && createSimpleExpression(isProp.value.content, true); } else { exp = isProp.exp; if (!exp) { exp = createSimpleExpression(`is`, false, isProp.arg.loc); } } if (exp) { return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [ exp ]); } } else if (isProp.type === 6 && isProp.value.content.startsWith("vue:")) { tag = isProp.value.content.slice(4); } } const builtIn = isCoreComponent(tag) || context.isBuiltInComponent(tag); if (builtIn) { if (!ssr) context.helper(builtIn); return builtIn; } context.helper(RESOLVE_COMPONENT); context.components.add(tag); return toValidAssetId(tag, `component`); } function buildProps(node, context, props = node.props, isComponent2, isDynamicComponent, ssr = false) { const { tag, loc: elementLoc, children } = node; let properties = []; const mergeArgs = []; const runtimeDirectives = []; const hasChildren = children.length > 0; let shouldUseBlock = false; let patchFlag = 0; let hasRef = false; let hasClassBinding = false; let hasStyleBinding = false; let hasHydrationEventBinding = false; let hasDynamicKeys = false; let hasVnodeHook = false; const dynamicPropNames = []; const pushMergeArg = (arg) => { if (properties.length) { mergeArgs.push( createObjectExpression(dedupeProperties(properties), elementLoc) ); properties = []; } if (arg) mergeArgs.push(arg); }; const pushRefVForMarker = () => { if (context.scopes.vFor > 0) { properties.push( createObjectProperty( createSimpleExpression("ref_for", true), createSimpleExpression("true") ) ); } }; const analyzePatchFlag = ({ key, value }) => { if (isStaticExp(key)) { const name = key.content; const isEventHandler = isOn(name); if (isEventHandler && (!isComponent2 || isDynamicComponent) && // omit the flag for click handlers because hydration gives click // dedicated fast path. name.toLowerCase() !== "onclick" && // omit v-model handlers name !== "onUpdate:modelValue" && // omit onVnodeXXX hooks !isReservedProp(name)) { hasHydrationEventBinding = true; } if (isEventHandler && isReservedProp(name)) { hasVnodeHook = true; } if (isEventHandler && value.type === 14) { value = value.arguments[0]; } if (value.type === 20 || (value.type === 4 || value.type === 8) && getConstantType(value, context) > 0) { return; } if (name === "ref") { hasRef = true; } else if (name === "class") { hasClassBinding = true; } else if (name === "style") { hasStyleBinding = true; } else if (name !== "key" && !dynamicPropNames.includes(name)) { dynamicPropNames.push(name); } if (isComponent2 && (name === "class" || name === "style") && !dynamicPropNames.includes(name)) { dynamicPropNames.push(name); } } else { hasDynamicKeys = true; } }; for (let i = 0; i < props.length; i++) { const prop = props[i]; if (prop.type === 6) { const { loc, name, nameLoc, value } = prop; let isStatic = true; if (name === "ref") { hasRef = true; pushRefVForMarker(); } if (name === "is" && (isComponentTag(tag) || value && value.content.startsWith("vue:") || isCompatEnabled( "COMPILER_IS_ON_ELEMENT", context ))) { continue; } properties.push( createObjectProperty( createSimpleExpression(name, true, nameLoc), createSimpleExpression( value ? value.content : "", isStatic, value ? value.loc : loc ) ) ); } else { const { name, arg, exp, loc, modifiers } = prop; const isVBind = name === "bind"; const isVOn = name === "on"; if (name === "slot") { if (!isComponent2) { context.onError( createCompilerError(40, loc) ); } continue; } if (name === "once" || name === "memo") { continue; } if (name === "is" || isVBind && isStaticArgOf(arg, "is") && (isComponentTag(tag) || isCompatEnabled( "COMPILER_IS_ON_ELEMENT", context ))) { continue; } if (isVOn && ssr) { continue; } if ( // #938: elements with dynamic keys should be forced into blocks isVBind && isStaticArgOf(arg, "key") || // inline before-update hooks need to force block so that it is invoked // before children isVOn && hasChildren && isStaticArgOf(arg, "vue:before-update") ) { shouldUseBlock = true; } if (isVBind && isStaticArgOf(arg, "ref")) { pushRefVForMarker(); } if (!arg && (isVBind || isVOn)) { hasDynamicKeys = true; if (exp) { if (isVBind) { pushRefVForMarker(); pushMergeArg(); { if (true) { const hasOverridableKeys = mergeArgs.some((arg2) => { if (arg2.type === 15) { return arg2.properties.some(({ key }) => { if (key.type !== 4 || !key.isStatic) { return true; } return key.content !== "class" && key.content !== "style" && !isOn(key.content); }); } else { return true; } }); if (hasOverridableKeys) { checkCompatEnabled( "COMPILER_V_BIND_OBJECT_ORDER", context, loc ); } } if (isCompatEnabled( "COMPILER_V_BIND_OBJECT_ORDER", context )) { mergeArgs.unshift(exp); continue; } } mergeArgs.push(exp); } else { pushMergeArg({ type: 14, loc, callee: context.helper(TO_HANDLERS), arguments: isComponent2 ? [exp] : [exp, `true`] }); } } else { context.onError( createCompilerError( isVBind ? 34 : 35, loc ) ); } continue; } if (isVBind && modifiers.some((mod) => mod.content === "prop")) { patchFlag |= 32; } const directiveTransform = context.directiveTransforms[name]; if (directiveTransform) { const { props: props2, needRuntime } = directiveTransform(prop, node, context); !ssr && props2.forEach(analyzePatchFlag); if (isVOn && arg && !isStaticExp(arg)) { pushMergeArg(createObjectExpression(props2, elementLoc)); } else { properties.push(...props2); } if (needRuntime) { runtimeDirectives.push(prop); if (isSymbol(needRuntime)) { directiveImportMap.set(prop, needRuntime); } } } else if (!isBuiltInDirective(name)) { runtimeDirectives.push(prop); if (hasChildren) { shouldUseBlock = true; } } } } let propsExpression = void 0; if (mergeArgs.length) { pushMergeArg(); if (mergeArgs.length > 1) { propsExpression = createCallExpression( context.helper(MERGE_PROPS), mergeArgs, elementLoc ); } else { propsExpression = mergeArgs[0]; } } else if (properties.length) { propsExpression = createObjectExpression( dedupeProperties(properties), elementLoc ); } if (hasDynamicKeys) { patchFlag |= 16; } else { if (hasClassBinding && !isComponent2) { patchFlag |= 2; } if (hasStyleBinding && !isComponent2) { patchFlag |= 4; } if (dynamicPropNames.length) { patchFlag |= 8; } if (hasHydrationEventBinding) { patchFlag |= 32; } } if (!shouldUseBlock && (patchFlag === 0 || patchFlag === 32) && (hasRef || hasVnodeHook || runtimeDirectives.length > 0)) { patchFlag |= 512; } if (!context.inSSR && propsExpression) { switch (propsExpression.type) { case 15: let classKeyIndex = -1; let styleKeyIndex = -1; let hasDynamicKey = false; for (let i = 0; i < propsExpression.properties.length; i++) { const key = propsExpression.properties[i].key; if (isStaticExp(key)) { if (key.content === "class") { classKeyIndex = i; } else if (key.content === "style") { styleKeyIndex = i; } } else if (!key.isHandlerKey) { hasDynamicKey = true; } } const classProp = propsExpression.properties[classKeyIndex]; const styleProp = propsExpression.properties[styleKeyIndex]; if (!hasDynamicKey) { if (classProp && !isStaticExp(classProp.value)) { classProp.value = createCallExpression( context.helper(NORMALIZE_CLASS), [classProp.value] ); } if (styleProp && // the static style is compiled into an object, // so use `hasStyleBinding` to ensure that it is a dynamic style binding (hasStyleBinding || styleProp.value.type === 4 && styleProp.value.content.trim()[0] === `[` || // v-bind:style and style both exist, // v-bind:style with static literal object styleProp.value.type === 17)) { styleProp.value = createCallExpression( context.helper(NORMALIZE_STYLE), [styleProp.value] ); } } else { propsExpression = createCallExpression( context.helper(NORMALIZE_PROPS), [propsExpression] ); } break; case 14: break; default: propsExpression = createCallExpression( context.helper(NORMALIZE_PROPS), [ createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [ propsExpression ]) ] ); break; } } return { props: propsExpression, directives: runtimeDirectives, patchFlag, dynamicPropNames, shouldUseBlock }; } function dedupeProperties(properties) { const knownProps = /* @__PURE__ */ new Map(); const deduped = []; for (let i = 0; i < properties.length; i++) { const prop = properties[i]; if (prop.key.type === 8 || !prop.key.isStatic) { deduped.push(prop); continue; } const name = prop.key.content; const existing = knownProps.get(name); if (existing) { if (name === "style" || name === "class" || isOn(name)) { mergeAsArray(existing, prop); } } else { knownProps.set(name, prop); deduped.push(prop); } } return deduped; } function mergeAsArray(existing, incoming) { if (existing.value.type === 17) { existing.value.elements.push(incoming.value); } else { existing.value = createArrayExpression( [existing.value, incoming.value], existing.loc ); } } function buildDirectiveArgs(dir, context) { const dirArgs = []; const runtime = directiveImportMap.get(dir); if (runtime) { dirArgs.push(context.helperString(runtime)); } else { { context.helper(RESOLVE_DIRECTIVE); context.directives.add(dir.name); dirArgs.push(toValidAssetId(dir.name, `directive`)); } } const { loc } = dir; if (dir.exp) dirArgs.push(dir.exp); if (dir.arg) { if (!dir.exp) { dirArgs.push(`void 0`); } dirArgs.push(dir.arg); } if (Object.keys(dir.modifiers).length) { if (!dir.arg) { if (!dir.exp) { dirArgs.push(`void 0`); } dirArgs.push(`void 0`); } const trueExpression = createSimpleExpression(`true`, false, loc); dirArgs.push( createObjectExpression( dir.modifiers.map( (modifier) => createObjectProperty(modifier, trueExpression) ), loc ) ); } return createArrayExpression(dirArgs, dir.loc); } function stringifyDynamicPropNames(props) { let propsNamesString = `[`; for (let i = 0, l = props.length; i < l; i++) { propsNamesString += JSON.stringify(props[i]); if (i < l - 1) propsNamesString += ", "; } return propsNamesString + `]`; } function isComponentTag(tag) { return tag === "component" || tag === "Component"; } function processSlotOutlet(node, context) { let slotName = `"default"`; let slotProps = void 0; const nonNameProps = []; for (let i = 0; i < node.props.length; i++) { const p = node.props[i]; if (p.type === 6) { if (p.value) { if (p.name === "name") { slotName = JSON.stringify(p.value.content); } else { p.name = camelize(p.name); nonNameProps.push(p); } } } else { if (p.name === "bind" && isStaticArgOf(p.arg, "name")) { if (p.exp) { slotName = p.exp; } else if (p.arg && p.arg.type === 4) { const name = camelize(p.arg.content); slotName = p.exp = createSimpleExpression(name, false, p.arg.loc); } } else { if (p.name === "bind" && p.arg && isStaticExp(p.arg)) { p.arg.content = camelize(p.arg.content); } nonNameProps.push(p); } } } if (nonNameProps.length > 0) { const { props, directives } = buildProps( node, context, nonNameProps, false, false ); slotProps = props; if (directives.length) { context.onError( createCompilerError( 36, directives[0].loc ) ); } } return { slotName, slotProps }; } function createTransformProps(props = []) { return { props }; } function rewriteFilter(node, context) { if (node.type === 4) { parseFilter(node, context); } else { for (let i = 0; i < node.children.length; i++) { const child = node.children[i]; if (typeof child !== "object") continue; if (child.type === 4) { parseFilter(child, context); } else if (child.type === 8) { rewriteFilter(node, context); } else if (child.type === 5) { rewriteFilter(child.content, context); } } } } function parseFilter(node, context) { const exp = node.content; let inSingle = false; let inDouble = false; let inTemplateString = false; let inRegex = false; let curly = 0; let square = 0; let paren = 0; let lastFilterIndex = 0; let c, prev, i, expression, filters = []; for (i = 0; i < exp.length; i++) { prev = c; c = exp.charCodeAt(i); if (inSingle) { if (c === 39 && prev !== 92) inSingle = false; } else if (inDouble) { if (c === 34 && prev !== 92) inDouble = false; } else if (inTemplateString) { if (c === 96 && prev !== 92) inTemplateString = false; } else if (inRegex) { if (c === 47 && prev !== 92) inRegex = false; } else if (c === 124 && // pipe exp.charCodeAt(i + 1) !== 124 && exp.charCodeAt(i - 1) !== 124 && !curly && !square && !paren) { if (expression === void 0) { lastFilterIndex = i + 1; expression = exp.slice(0, i).trim(); } else { pushFilter(); } } else { switch (c) { case 34: inDouble = true; break; // " case 39: inSingle = true; break; // ' case 96: inTemplateString = true; break; // ` case 40: paren++; break; // ( case 41: paren--; break; // ) case 91: square++; break; // [ case 93: square--; break; // ] case 123: curly++; break; // { case 125: curly--; break; } if (c === 47) { let j = i - 1; let p; for (; j >= 0; j--) { p = exp.charAt(j); if (p !== " ") break; } if (!p || !validDivisionCharRE.test(p)) { inRegex = true; } } } } if (expression === void 0) { expression = exp.slice(0, i).trim(); } else if (lastFilterIndex !== 0) { pushFilter(); } function pushFilter() { filters.push(exp.slice(lastFilterIndex, i).trim()); lastFilterIndex = i + 1; } if (filters.length) { warnDeprecation( "COMPILER_FILTERS", context, node.loc ); for (i = 0; i < filters.length; i++) { expression = wrapFilter(expression, filters[i], context); } node.content = expression; node.ast = void 0; } } function wrapFilter(exp, filter, context) { context.helper(RESOLVE_FILTER); const i = filter.indexOf("("); if (i < 0) { context.filters.add(filter); return `${toValidAssetId(filter, "filter")}(${exp})`; } else { const name = filter.slice(0, i); const args = filter.slice(i + 1); context.filters.add(name); return `${toValidAssetId(name, "filter")}(${exp}${args !== ")" ? "," + args : args}`; } } function getBaseTransformPreset(prefixIdentifiers) { return [ [ transformOnce, transformIf, transformMemo, transformFor, ...[transformFilter], ...true ? [transformExpression] : [], transformSlotOutlet, transformElement, trackSlotScopes, transformText ], { on: transformOn, bind: transformBind, model: transformModel } ]; } function baseCompile(source, options = {}) { const onError = options.onError || defaultOnError; const isModuleMode = options.mode === "module"; { if (options.prefixIdentifiers === true) { onError(createCompilerError(47)); } else if (isModuleMode) { onError(createCompilerError(48)); } } const prefixIdentifiers = false; if (options.cacheHandlers) { onError(createCompilerError(49)); } if (options.scopeId && !isModuleMode) { onError(createCompilerError(50)); } const resolvedOptions = extend({}, options, { prefixIdentifiers }); const ast = isString(source) ? baseParse(source, resolvedOptions) : source; const [nodeTransforms, directiveTransforms] = getBaseTransformPreset(); transform( ast, extend({}, resolvedOptions, { nodeTransforms: [ ...nodeTransforms, ...options.nodeTransforms || [] // user transforms ], directiveTransforms: extend( {}, directiveTransforms, options.directiveTransforms || {} // user transforms ) }) ); return generate(ast, resolvedOptions); } var FRAGMENT, TELEPORT, SUSPENSE, KEEP_ALIVE, BASE_TRANSITION, OPEN_BLOCK, CREATE_BLOCK, CREATE_ELEMENT_BLOCK, CREATE_VNODE, CREATE_ELEMENT_VNODE, CREATE_COMMENT, CREATE_TEXT, CREATE_STATIC, RESOLVE_COMPONENT, RESOLVE_DYNAMIC_COMPONENT, RESOLVE_DIRECTIVE, RESOLVE_FILTER, WITH_DIRECTIVES, RENDER_LIST, RENDER_SLOT, CREATE_SLOTS, TO_DISPLAY_STRING, MERGE_PROPS, NORMALIZE_CLASS, NORMALIZE_STYLE, NORMALIZE_PROPS, GUARD_REACTIVE_PROPS, TO_HANDLERS, CAMELIZE, CAPITALIZE, TO_HANDLER_KEY, SET_BLOCK_TRACKING, PUSH_SCOPE_ID, POP_SCOPE_ID, WITH_CTX, UNREF, IS_REF, WITH_MEMO, IS_MEMO_SAME, helperNameMap, Namespaces, NodeTypes, ElementTypes, ConstantTypes, locStub, defaultDelimitersOpen, defaultDelimitersClose, Sequences, Tokenizer, CompilerDeprecationTypes, deprecationData, ErrorCodes, errorMessages, isFunctionType, isStaticProperty, isStaticPropertyKey, TS_NODE_TYPES, isStaticExp, nonIdentifierRE, isSimpleIdentifier, validFirstIdentCharRE, validIdentCharRE, whitespaceRE, getExpSource, isMemberExpressionBrowser, isMemberExpressionNode, isMemberExpression, fnExpRE, isFnExpressionBrowser, isFnExpressionNode, isFnExpression, propsHelperSet, forAliasRE, defaultParserOptions, currentOptions, currentRoot, currentInput, currentOpenTag, currentProp, currentAttrValue, currentAttrStartIndex, currentAttrEndIndex, inPre, inVPre, currentVPreBoundary, stack, tokenizer, forIteratorRE, stripParensRE, specialTemplateDir, windowsNewlineRE, allowHoistedHelperSet, PURE_ANNOTATION, aliasHelper, prohibitedKeywordRE, stripStringRE, transformExpression, transformIf, transformBind, transformBindShorthand, injectPrefix, transformFor, defaultFallback, trackSlotScopes, trackVForSlotScopes, buildClientSlotFn, directiveImportMap, transformElement, transformSlotOutlet, transformOn, transformText, seen$1, transformOnce, transformModel, validDivisionCharRE, transformFilter, seen, transformMemo, BindingTypes, noopDirectiveTransform; var init_compiler_core_esm_bundler = __esm({ "node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js"() { init_shared_esm_bundler(); init_shared_esm_bundler(); FRAGMENT = Symbol(true ? `Fragment` : ``); TELEPORT = Symbol(true ? `Teleport` : ``); SUSPENSE = Symbol(true ? `Suspense` : ``); KEEP_ALIVE = Symbol(true ? `KeepAlive` : ``); BASE_TRANSITION = Symbol( true ? `BaseTransition` : `` ); OPEN_BLOCK = Symbol(true ? `openBlock` : ``); CREATE_BLOCK = Symbol(true ? `createBlock` : ``); CREATE_ELEMENT_BLOCK = Symbol( true ? `createElementBlock` : `` ); CREATE_VNODE = Symbol(true ? `createVNode` : ``); CREATE_ELEMENT_VNODE = Symbol( true ? `createElementVNode` : `` ); CREATE_COMMENT = Symbol( true ? `createCommentVNode` : `` ); CREATE_TEXT = Symbol( true ? `createTextVNode` : `` ); CREATE_STATIC = Symbol( true ? `createStaticVNode` : `` ); RESOLVE_COMPONENT = Symbol( true ? `resolveComponent` : `` ); RESOLVE_DYNAMIC_COMPONENT = Symbol( true ? `resolveDynamicComponent` : `` ); RESOLVE_DIRECTIVE = Symbol( true ? `resolveDirective` : `` ); RESOLVE_FILTER = Symbol( true ? `resolveFilter` : `` ); WITH_DIRECTIVES = Symbol( true ? `withDirectives` : `` ); RENDER_LIST = Symbol(true ? `renderList` : ``); RENDER_SLOT = Symbol(true ? `renderSlot` : ``); CREATE_SLOTS = Symbol(true ? `createSlots` : ``); TO_DISPLAY_STRING = Symbol( true ? `toDisplayString` : `` ); MERGE_PROPS = Symbol(true ? `mergeProps` : ``); NORMALIZE_CLASS = Symbol( true ? `normalizeClass` : `` ); NORMALIZE_STYLE = Symbol( true ? `normalizeStyle` : `` ); NORMALIZE_PROPS = Symbol( true ? `normalizeProps` : `` ); GUARD_REACTIVE_PROPS = Symbol( true ? `guardReactiveProps` : `` ); TO_HANDLERS = Symbol(true ? `toHandlers` : ``); CAMELIZE = Symbol(true ? `camelize` : ``); CAPITALIZE = Symbol(true ? `capitalize` : ``); TO_HANDLER_KEY = Symbol( true ? `toHandlerKey` : `` ); SET_BLOCK_TRACKING = Symbol( true ? `setBlockTracking` : `` ); PUSH_SCOPE_ID = Symbol(true ? `pushScopeId` : ``); POP_SCOPE_ID = Symbol(true ? `popScopeId` : ``); WITH_CTX = Symbol(true ? `withCtx` : ``); UNREF = Symbol(true ? `unref` : ``); IS_REF = Symbol(true ? `isRef` : ``); WITH_MEMO = Symbol(true ? `withMemo` : ``); IS_MEMO_SAME = Symbol(true ? `isMemoSame` : ``); helperNameMap = { [FRAGMENT]: `Fragment`, [TELEPORT]: `Teleport`, [SUSPENSE]: `Suspense`, [KEEP_ALIVE]: `KeepAlive`, [BASE_TRANSITION]: `BaseTransition`, [OPEN_BLOCK]: `openBlock`, [CREATE_BLOCK]: `createBlock`, [CREATE_ELEMENT_BLOCK]: `createElementBlock`, [CREATE_VNODE]: `createVNode`, [CREATE_ELEMENT_VNODE]: `createElementVNode`, [CREATE_COMMENT]: `createCommentVNode`, [CREATE_TEXT]: `createTextVNode`, [CREATE_STATIC]: `createStaticVNode`, [RESOLVE_COMPONENT]: `resolveComponent`, [RESOLVE_DYNAMIC_COMPONENT]: `resolveDynamicComponent`, [RESOLVE_DIRECTIVE]: `resolveDirective`, [RESOLVE_FILTER]: `resolveFilter`, [WITH_DIRECTIVES]: `withDirectives`, [RENDER_LIST]: `renderList`, [RENDER_SLOT]: `renderSlot`, [CREATE_SLOTS]: `createSlots`, [TO_DISPLAY_STRING]: `toDisplayString`, [MERGE_PROPS]: `mergeProps`, [NORMALIZE_CLASS]: `normalizeClass`, [NORMALIZE_STYLE]: `normalizeStyle`, [NORMALIZE_PROPS]: `normalizeProps`, [GUARD_REACTIVE_PROPS]: `guardReactiveProps`, [TO_HANDLERS]: `toHandlers`, [CAMELIZE]: `camelize`, [CAPITALIZE]: `capitalize`, [TO_HANDLER_KEY]: `toHandlerKey`, [SET_BLOCK_TRACKING]: `setBlockTracking`, [PUSH_SCOPE_ID]: `pushScopeId`, [POP_SCOPE_ID]: `popScopeId`, [WITH_CTX]: `withCtx`, [UNREF]: `unref`, [IS_REF]: `isRef`, [WITH_MEMO]: `withMemo`, [IS_MEMO_SAME]: `isMemoSame` }; Namespaces = { "HTML": 0, "0": "HTML", "SVG": 1, "1": "SVG", "MATH_ML": 2, "2": "MATH_ML" }; NodeTypes = { "ROOT": 0, "0": "ROOT", "ELEMENT": 1, "1": "ELEMENT", "TEXT": 2, "2": "TEXT", "COMMENT": 3, "3": "COMMENT", "SIMPLE_EXPRESSION": 4, "4": "SIMPLE_EXPRESSION", "INTERPOLATION": 5, "5": "INTERPOLATION", "ATTRIBUTE": 6, "6": "ATTRIBUTE", "DIRECTIVE": 7, "7": "DIRECTIVE", "COMPOUND_EXPRESSION": 8, "8": "COMPOUND_EXPRESSION", "IF": 9, "9": "IF", "IF_BRANCH": 10, "10": "IF_BRANCH", "FOR": 11, "11": "FOR", "TEXT_CALL": 12, "12": "TEXT_CALL", "VNODE_CALL": 13, "13": "VNODE_CALL", "JS_CALL_EXPRESSION": 14, "14": "JS_CALL_EXPRESSION", "JS_OBJECT_EXPRESSION": 15, "15": "JS_OBJECT_EXPRESSION", "JS_PROPERTY": 16, "16": "JS_PROPERTY", "JS_ARRAY_EXPRESSION": 17, "17": "JS_ARRAY_EXPRESSION", "JS_FUNCTION_EXPRESSION": 18, "18": "JS_FUNCTION_EXPRESSION", "JS_CONDITIONAL_EXPRESSION": 19, "19": "JS_CONDITIONAL_EXPRESSION", "JS_CACHE_EXPRESSION": 20, "20": "JS_CACHE_EXPRESSION", "JS_BLOCK_STATEMENT": 21, "21": "JS_BLOCK_STATEMENT", "JS_TEMPLATE_LITERAL": 22, "22": "JS_TEMPLATE_LITERAL", "JS_IF_STATEMENT": 23, "23": "JS_IF_STATEMENT", "JS_ASSIGNMENT_EXPRESSION": 24, "24": "JS_ASSIGNMENT_EXPRESSION", "JS_SEQUENCE_EXPRESSION": 25, "25": "JS_SEQUENCE_EXPRESSION", "JS_RETURN_STATEMENT": 26, "26": "JS_RETURN_STATEMENT" }; ElementTypes = { "ELEMENT": 0, "0": "ELEMENT", "COMPONENT": 1, "1": "COMPONENT", "SLOT": 2, "2": "SLOT", "TEMPLATE": 3, "3": "TEMPLATE" }; ConstantTypes = { "NOT_CONSTANT": 0, "0": "NOT_CONSTANT", "CAN_SKIP_PATCH": 1, "1": "CAN_SKIP_PATCH", "CAN_CACHE": 2, "2": "CAN_CACHE", "CAN_STRINGIFY": 3, "3": "CAN_STRINGIFY" }; locStub = { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 1, offset: 0 }, source: "" }; defaultDelimitersOpen = new Uint8Array([123, 123]); defaultDelimitersClose = new Uint8Array([125, 125]); Sequences = { Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]), // CDATA[ CdataEnd: new Uint8Array([93, 93, 62]), // ]]> CommentEnd: new Uint8Array([45, 45, 62]), // `-->` ScriptEnd: new Uint8Array([60, 47, 115, 99, 114, 105, 112, 116]), // `<\/script` StyleEnd: new Uint8Array([60, 47, 115, 116, 121, 108, 101]), // `= 0; i--) { const newlineIndex = this.newlines[i]; if (index > newlineIndex) { line = i + 2; column = index - newlineIndex; break; } } return { column, line, offset: index }; } peek() { return this.buffer.charCodeAt(this.index + 1); } stateText(c) { if (c === 60) { if (this.index > this.sectionStart) { this.cbs.ontext(this.sectionStart, this.index); } this.state = 5; this.sectionStart = this.index; } else if (!this.inVPre && c === this.delimiterOpen[0]) { this.state = 2; this.delimiterIndex = 0; this.stateInterpolationOpen(c); } } stateInterpolationOpen(c) { if (c === this.delimiterOpen[this.delimiterIndex]) { if (this.delimiterIndex === this.delimiterOpen.length - 1) { const start = this.index + 1 - this.delimiterOpen.length; if (start > this.sectionStart) { this.cbs.ontext(this.sectionStart, start); } this.state = 3; this.sectionStart = start; } else { this.delimiterIndex++; } } else if (this.inRCDATA) { this.state = 32; this.stateInRCDATA(c); } else { this.state = 1; this.stateText(c); } } stateInterpolation(c) { if (c === this.delimiterClose[0]) { this.state = 4; this.delimiterIndex = 0; this.stateInterpolationClose(c); } } stateInterpolationClose(c) { if (c === this.delimiterClose[this.delimiterIndex]) { if (this.delimiterIndex === this.delimiterClose.length - 1) { this.cbs.oninterpolation(this.sectionStart, this.index + 1); if (this.inRCDATA) { this.state = 32; } else { this.state = 1; } this.sectionStart = this.index + 1; } else { this.delimiterIndex++; } } else { this.state = 3; this.stateInterpolation(c); } } stateSpecialStartSequence(c) { const isEnd = this.sequenceIndex === this.currentSequence.length; const isMatch = isEnd ? ( // If we are at the end of the sequence, make sure the tag name has ended isEndOfTagSection(c) ) : ( // Otherwise, do a case-insensitive comparison (c | 32) === this.currentSequence[this.sequenceIndex] ); if (!isMatch) { this.inRCDATA = false; } else if (!isEnd) { this.sequenceIndex++; return; } this.sequenceIndex = 0; this.state = 6; this.stateInTagName(c); } /** Look for an end tag. For and <textarea>, also decode entities. */ stateInRCDATA(c) { if (this.sequenceIndex === this.currentSequence.length) { if (c === 62 || isWhitespace(c)) { const endOfText = this.index - this.currentSequence.length; if (this.sectionStart < endOfText) { const actualIndex = this.index; this.index = endOfText; this.cbs.ontext(this.sectionStart, endOfText); this.index = actualIndex; } this.sectionStart = endOfText + 2; this.stateInClosingTagName(c); this.inRCDATA = false; return; } this.sequenceIndex = 0; } if ((c | 32) === this.currentSequence[this.sequenceIndex]) { this.sequenceIndex += 1; } else if (this.sequenceIndex === 0) { if (this.currentSequence === Sequences.TitleEnd || this.currentSequence === Sequences.TextareaEnd && !this.inSFCRoot) { if (!this.inVPre && c === this.delimiterOpen[0]) { this.state = 2; this.delimiterIndex = 0; this.stateInterpolationOpen(c); } } else if (this.fastForwardTo(60)) { this.sequenceIndex = 1; } } else { this.sequenceIndex = Number(c === 60); } } stateCDATASequence(c) { if (c === Sequences.Cdata[this.sequenceIndex]) { if (++this.sequenceIndex === Sequences.Cdata.length) { this.state = 28; this.currentSequence = Sequences.CdataEnd; this.sequenceIndex = 0; this.sectionStart = this.index + 1; } } else { this.sequenceIndex = 0; this.state = 23; this.stateInDeclaration(c); } } /** * When we wait for one specific character, we can speed things up * by skipping through the buffer until we find it. * * @returns Whether the character was found. */ fastForwardTo(c) { while (++this.index < this.buffer.length) { const cc = this.buffer.charCodeAt(this.index); if (cc === 10) { this.newlines.push(this.index); } if (cc === c) { return true; } } this.index = this.buffer.length - 1; return false; } /** * Comments and CDATA end with `-->` and `]]>`. * * Their common qualities are: * - Their end sequences have a distinct character they start with. * - That character is then repeated, so we have to check multiple repeats. * - All characters but the start character of the sequence can be skipped. */ stateInCommentLike(c) { if (c === this.currentSequence[this.sequenceIndex]) { if (++this.sequenceIndex === this.currentSequence.length) { if (this.currentSequence === Sequences.CdataEnd) { this.cbs.oncdata(this.sectionStart, this.index - 2); } else { this.cbs.oncomment(this.sectionStart, this.index - 2); } this.sequenceIndex = 0; this.sectionStart = this.index + 1; this.state = 1; } } else if (this.sequenceIndex === 0) { if (this.fastForwardTo(this.currentSequence[0])) { this.sequenceIndex = 1; } } else if (c !== this.currentSequence[this.sequenceIndex - 1]) { this.sequenceIndex = 0; } } startSpecial(sequence, offset) { this.enterRCDATA(sequence, offset); this.state = 31; } enterRCDATA(sequence, offset) { this.inRCDATA = true; this.currentSequence = sequence; this.sequenceIndex = offset; } stateBeforeTagName(c) { if (c === 33) { this.state = 22; this.sectionStart = this.index + 1; } else if (c === 63) { this.state = 24; this.sectionStart = this.index + 1; } else if (isTagStartChar(c)) { this.sectionStart = this.index; if (this.mode === 0) { this.state = 6; } else if (this.inSFCRoot) { this.state = 34; } else if (!this.inXML) { if (c === 116) { this.state = 30; } else { this.state = c === 115 ? 29 : 6; } } else { this.state = 6; } } else if (c === 47) { this.state = 8; } else { this.state = 1; this.stateText(c); } } stateInTagName(c) { if (isEndOfTagSection(c)) { this.handleTagName(c); } } stateInSFCRootTagName(c) { if (isEndOfTagSection(c)) { const tag = this.buffer.slice(this.sectionStart, this.index); if (tag !== "template") { this.enterRCDATA(toCharCodes(`</` + tag), 0); } this.handleTagName(c); } } handleTagName(c) { this.cbs.onopentagname(this.sectionStart, this.index); this.sectionStart = -1; this.state = 11; this.stateBeforeAttrName(c); } stateBeforeClosingTagName(c) { if (isWhitespace(c)) ; else if (c === 62) { if (true) { this.cbs.onerr(14, this.index); } this.state = 1; this.sectionStart = this.index + 1; } else { this.state = isTagStartChar(c) ? 9 : 27; this.sectionStart = this.index; } } stateInClosingTagName(c) { if (c === 62 || isWhitespace(c)) { this.cbs.onclosetag(this.sectionStart, this.index); this.sectionStart = -1; this.state = 10; this.stateAfterClosingTagName(c); } } stateAfterClosingTagName(c) { if (c === 62) { this.state = 1; this.sectionStart = this.index + 1; } } stateBeforeAttrName(c) { if (c === 62) { this.cbs.onopentagend(this.index); if (this.inRCDATA) { this.state = 32; } else { this.state = 1; } this.sectionStart = this.index + 1; } else if (c === 47) { this.state = 7; if (this.peek() !== 62) { this.cbs.onerr(22, this.index); } } else if (c === 60 && this.peek() === 47) { this.cbs.onopentagend(this.index); this.state = 5; this.sectionStart = this.index; } else if (!isWhitespace(c)) { if (c === 61) { this.cbs.onerr( 19, this.index ); } this.handleAttrStart(c); } } handleAttrStart(c) { if (c === 118 && this.peek() === 45) { this.state = 13; this.sectionStart = this.index; } else if (c === 46 || c === 58 || c === 64 || c === 35) { this.cbs.ondirname(this.index, this.index + 1); this.state = 14; this.sectionStart = this.index + 1; } else { this.state = 12; this.sectionStart = this.index; } } stateInSelfClosingTag(c) { if (c === 62) { this.cbs.onselfclosingtag(this.index); this.state = 1; this.sectionStart = this.index + 1; this.inRCDATA = false; } else if (!isWhitespace(c)) { this.state = 11; this.stateBeforeAttrName(c); } } stateInAttrName(c) { if (c === 61 || isEndOfTagSection(c)) { this.cbs.onattribname(this.sectionStart, this.index); this.handleAttrNameEnd(c); } else if (c === 34 || c === 39 || c === 60) { this.cbs.onerr( 17, this.index ); } } stateInDirName(c) { if (c === 61 || isEndOfTagSection(c)) { this.cbs.ondirname(this.sectionStart, this.index); this.handleAttrNameEnd(c); } else if (c === 58) { this.cbs.ondirname(this.sectionStart, this.index); this.state = 14; this.sectionStart = this.index + 1; } else if (c === 46) { this.cbs.ondirname(this.sectionStart, this.index); this.state = 16; this.sectionStart = this.index + 1; } } stateInDirArg(c) { if (c === 61 || isEndOfTagSection(c)) { this.cbs.ondirarg(this.sectionStart, this.index); this.handleAttrNameEnd(c); } else if (c === 91) { this.state = 15; } else if (c === 46) { this.cbs.ondirarg(this.sectionStart, this.index); this.state = 16; this.sectionStart = this.index + 1; } } stateInDynamicDirArg(c) { if (c === 93) { this.state = 14; } else if (c === 61 || isEndOfTagSection(c)) { this.cbs.ondirarg(this.sectionStart, this.index + 1); this.handleAttrNameEnd(c); if (true) { this.cbs.onerr( 27, this.index ); } } } stateInDirModifier(c) { if (c === 61 || isEndOfTagSection(c)) { this.cbs.ondirmodifier(this.sectionStart, this.index); this.handleAttrNameEnd(c); } else if (c === 46) { this.cbs.ondirmodifier(this.sectionStart, this.index); this.sectionStart = this.index + 1; } } handleAttrNameEnd(c) { this.sectionStart = this.index; this.state = 17; this.cbs.onattribnameend(this.index); this.stateAfterAttrName(c); } stateAfterAttrName(c) { if (c === 61) { this.state = 18; } else if (c === 47 || c === 62) { this.cbs.onattribend(0, this.sectionStart); this.sectionStart = -1; this.state = 11; this.stateBeforeAttrName(c); } else if (!isWhitespace(c)) { this.cbs.onattribend(0, this.sectionStart); this.handleAttrStart(c); } } stateBeforeAttrValue(c) { if (c === 34) { this.state = 19; this.sectionStart = this.index + 1; } else if (c === 39) { this.state = 20; this.sectionStart = this.index + 1; } else if (!isWhitespace(c)) { this.sectionStart = this.index; this.state = 21; this.stateInAttrValueNoQuotes(c); } } handleInAttrValue(c, quote) { if (c === quote || this.fastForwardTo(quote)) { this.cbs.onattribdata(this.sectionStart, this.index); this.sectionStart = -1; this.cbs.onattribend( quote === 34 ? 3 : 2, this.index + 1 ); this.state = 11; } } stateInAttrValueDoubleQuotes(c) { this.handleInAttrValue(c, 34); } stateInAttrValueSingleQuotes(c) { this.handleInAttrValue(c, 39); } stateInAttrValueNoQuotes(c) { if (isWhitespace(c) || c === 62) { this.cbs.onattribdata(this.sectionStart, this.index); this.sectionStart = -1; this.cbs.onattribend(1, this.index); this.state = 11; this.stateBeforeAttrName(c); } else if (c === 34 || c === 39 || c === 60 || c === 61 || c === 96) { this.cbs.onerr( 18, this.index ); } else ; } stateBeforeDeclaration(c) { if (c === 91) { this.state = 26; this.sequenceIndex = 0; } else { this.state = c === 45 ? 25 : 23; } } stateInDeclaration(c) { if (c === 62 || this.fastForwardTo(62)) { this.state = 1; this.sectionStart = this.index + 1; } } stateInProcessingInstruction(c) { if (c === 62 || this.fastForwardTo(62)) { this.cbs.onprocessinginstruction(this.sectionStart, this.index); this.state = 1; this.sectionStart = this.index + 1; } } stateBeforeComment(c) { if (c === 45) { this.state = 28; this.currentSequence = Sequences.CommentEnd; this.sequenceIndex = 2; this.sectionStart = this.index + 1; } else { this.state = 23; } } stateInSpecialComment(c) { if (c === 62 || this.fastForwardTo(62)) { this.cbs.oncomment(this.sectionStart, this.index); this.state = 1; this.sectionStart = this.index + 1; } } stateBeforeSpecialS(c) { if (c === Sequences.ScriptEnd[3]) { this.startSpecial(Sequences.ScriptEnd, 4); } else if (c === Sequences.StyleEnd[3]) { this.startSpecial(Sequences.StyleEnd, 4); } else { this.state = 6; this.stateInTagName(c); } } stateBeforeSpecialT(c) { if (c === Sequences.TitleEnd[3]) { this.startSpecial(Sequences.TitleEnd, 4); } else if (c === Sequences.TextareaEnd[3]) { this.startSpecial(Sequences.TextareaEnd, 4); } else { this.state = 6; this.stateInTagName(c); } } startEntity() { } stateInEntity() { } /** * Iterates through the buffer, calling the function corresponding to the current state. * * States that are more likely to be hit are higher up, as a performance improvement. */ parse(input) { this.buffer = input; while (this.index < this.buffer.length) { const c = this.buffer.charCodeAt(this.index); if (c === 10) { this.newlines.push(this.index); } switch (this.state) { case 1: { this.stateText(c); break; } case 2: { this.stateInterpolationOpen(c); break; } case 3: { this.stateInterpolation(c); break; } case 4: { this.stateInterpolationClose(c); break; } case 31: { this.stateSpecialStartSequence(c); break; } case 32: { this.stateInRCDATA(c); break; } case 26: { this.stateCDATASequence(c); break; } case 19: { this.stateInAttrValueDoubleQuotes(c); break; } case 12: { this.stateInAttrName(c); break; } case 13: { this.stateInDirName(c); break; } case 14: { this.stateInDirArg(c); break; } case 15: { this.stateInDynamicDirArg(c); break; } case 16: { this.stateInDirModifier(c); break; } case 28: { this.stateInCommentLike(c); break; } case 27: { this.stateInSpecialComment(c); break; } case 11: { this.stateBeforeAttrName(c); break; } case 6: { this.stateInTagName(c); break; } case 34: { this.stateInSFCRootTagName(c); break; } case 9: { this.stateInClosingTagName(c); break; } case 5: { this.stateBeforeTagName(c); break; } case 17: { this.stateAfterAttrName(c); break; } case 20: { this.stateInAttrValueSingleQuotes(c); break; } case 18: { this.stateBeforeAttrValue(c); break; } case 8: { this.stateBeforeClosingTagName(c); break; } case 10: { this.stateAfterClosingTagName(c); break; } case 29: { this.stateBeforeSpecialS(c); break; } case 30: { this.stateBeforeSpecialT(c); break; } case 21: { this.stateInAttrValueNoQuotes(c); break; } case 7: { this.stateInSelfClosingTag(c); break; } case 23: { this.stateInDeclaration(c); break; } case 22: { this.stateBeforeDeclaration(c); break; } case 25: { this.stateBeforeComment(c); break; } case 24: { this.stateInProcessingInstruction(c); break; } case 33: { this.stateInEntity(); break; } } this.index++; } this.cleanup(); this.finish(); } /** * Remove data that has already been consumed from the buffer. */ cleanup() { if (this.sectionStart !== this.index) { if (this.state === 1 || this.state === 32 && this.sequenceIndex === 0) { this.cbs.ontext(this.sectionStart, this.index); this.sectionStart = this.index; } else if (this.state === 19 || this.state === 20 || this.state === 21) { this.cbs.onattribdata(this.sectionStart, this.index); this.sectionStart = this.index; } } } finish() { this.handleTrailingData(); this.cbs.onend(); } /** Handle any trailing data. */ handleTrailingData() { const endIndex = this.buffer.length; if (this.sectionStart >= endIndex) { return; } if (this.state === 28) { if (this.currentSequence === Sequences.CdataEnd) { this.cbs.oncdata(this.sectionStart, endIndex); } else { this.cbs.oncomment(this.sectionStart, endIndex); } } else if (this.state === 6 || this.state === 11 || this.state === 18 || this.state === 17 || this.state === 12 || this.state === 13 || this.state === 14 || this.state === 15 || this.state === 16 || this.state === 20 || this.state === 19 || this.state === 21 || this.state === 9) ; else { this.cbs.ontext(this.sectionStart, endIndex); } } emitCodePoint(cp, consumed) { } }; CompilerDeprecationTypes = { "COMPILER_IS_ON_ELEMENT": "COMPILER_IS_ON_ELEMENT", "COMPILER_V_BIND_SYNC": "COMPILER_V_BIND_SYNC", "COMPILER_V_BIND_OBJECT_ORDER": "COMPILER_V_BIND_OBJECT_ORDER", "COMPILER_V_ON_NATIVE": "COMPILER_V_ON_NATIVE", "COMPILER_V_IF_V_FOR_PRECEDENCE": "COMPILER_V_IF_V_FOR_PRECEDENCE", "COMPILER_NATIVE_TEMPLATE": "COMPILER_NATIVE_TEMPLATE", "COMPILER_INLINE_TEMPLATE": "COMPILER_INLINE_TEMPLATE", "COMPILER_FILTERS": "COMPILER_FILTERS" }; deprecationData = { ["COMPILER_IS_ON_ELEMENT"]: { message: `Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".`, link: `https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html` }, ["COMPILER_V_BIND_SYNC"]: { message: (key) => `.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${key}.sync\` should be changed to \`v-model:${key}\`.`, link: `https://v3-migration.vuejs.org/breaking-changes/v-model.html` }, ["COMPILER_V_BIND_OBJECT_ORDER"]: { message: `v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.`, link: `https://v3-migration.vuejs.org/breaking-changes/v-bind.html` }, ["COMPILER_V_ON_NATIVE"]: { message: `.native modifier for v-on has been removed as is no longer necessary.`, link: `https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html` }, ["COMPILER_V_IF_V_FOR_PRECEDENCE"]: { message: `v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.`, link: `https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html` }, ["COMPILER_NATIVE_TEMPLATE"]: { message: `<template> with no special directives will render as a native template element instead of its inner content in Vue 3.` }, ["COMPILER_INLINE_TEMPLATE"]: { message: `"inline-template" has been removed in Vue 3.`, link: `https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html` }, ["COMPILER_FILTERS"]: { message: `filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.`, link: `https://v3-migration.vuejs.org/breaking-changes/filters.html` } }; ErrorCodes = { "ABRUPT_CLOSING_OF_EMPTY_COMMENT": 0, "0": "ABRUPT_CLOSING_OF_EMPTY_COMMENT", "CDATA_IN_HTML_CONTENT": 1, "1": "CDATA_IN_HTML_CONTENT", "DUPLICATE_ATTRIBUTE": 2, "2": "DUPLICATE_ATTRIBUTE", "END_TAG_WITH_ATTRIBUTES": 3, "3": "END_TAG_WITH_ATTRIBUTES", "END_TAG_WITH_TRAILING_SOLIDUS": 4, "4": "END_TAG_WITH_TRAILING_SOLIDUS", "EOF_BEFORE_TAG_NAME": 5, "5": "EOF_BEFORE_TAG_NAME", "EOF_IN_CDATA": 6, "6": "EOF_IN_CDATA", "EOF_IN_COMMENT": 7, "7": "EOF_IN_COMMENT", "EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT": 8, "8": "EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT", "EOF_IN_TAG": 9, "9": "EOF_IN_TAG", "INCORRECTLY_CLOSED_COMMENT": 10, "10": "INCORRECTLY_CLOSED_COMMENT", "INCORRECTLY_OPENED_COMMENT": 11, "11": "INCORRECTLY_OPENED_COMMENT", "INVALID_FIRST_CHARACTER_OF_TAG_NAME": 12, "12": "INVALID_FIRST_CHARACTER_OF_TAG_NAME", "MISSING_ATTRIBUTE_VALUE": 13, "13": "MISSING_ATTRIBUTE_VALUE", "MISSING_END_TAG_NAME": 14, "14": "MISSING_END_TAG_NAME", "MISSING_WHITESPACE_BETWEEN_ATTRIBUTES": 15, "15": "MISSING_WHITESPACE_BETWEEN_ATTRIBUTES", "NESTED_COMMENT": 16, "16": "NESTED_COMMENT", "UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME": 17, "17": "UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME", "UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE": 18, "18": "UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE", "UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME": 19, "19": "UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME", "UNEXPECTED_NULL_CHARACTER": 20, "20": "UNEXPECTED_NULL_CHARACTER", "UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME": 21, "21": "UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME", "UNEXPECTED_SOLIDUS_IN_TAG": 22, "22": "UNEXPECTED_SOLIDUS_IN_TAG", "X_INVALID_END_TAG": 23, "23": "X_INVALID_END_TAG", "X_MISSING_END_TAG": 24, "24": "X_MISSING_END_TAG", "X_MISSING_INTERPOLATION_END": 25, "25": "X_MISSING_INTERPOLATION_END", "X_MISSING_DIRECTIVE_NAME": 26, "26": "X_MISSING_DIRECTIVE_NAME", "X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END": 27, "27": "X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END", "X_V_IF_NO_EXPRESSION": 28, "28": "X_V_IF_NO_EXPRESSION", "X_V_IF_SAME_KEY": 29, "29": "X_V_IF_SAME_KEY", "X_V_ELSE_NO_ADJACENT_IF": 30, "30": "X_V_ELSE_NO_ADJACENT_IF", "X_V_FOR_NO_EXPRESSION": 31, "31": "X_V_FOR_NO_EXPRESSION", "X_V_FOR_MALFORMED_EXPRESSION": 32, "32": "X_V_FOR_MALFORMED_EXPRESSION", "X_V_FOR_TEMPLATE_KEY_PLACEMENT": 33, "33": "X_V_FOR_TEMPLATE_KEY_PLACEMENT", "X_V_BIND_NO_EXPRESSION": 34, "34": "X_V_BIND_NO_EXPRESSION", "X_V_ON_NO_EXPRESSION": 35, "35": "X_V_ON_NO_EXPRESSION", "X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET": 36, "36": "X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET", "X_V_SLOT_MIXED_SLOT_USAGE": 37, "37": "X_V_SLOT_MIXED_SLOT_USAGE", "X_V_SLOT_DUPLICATE_SLOT_NAMES": 38, "38": "X_V_SLOT_DUPLICATE_SLOT_NAMES", "X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN": 39, "39": "X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN", "X_V_SLOT_MISPLACED": 40, "40": "X_V_SLOT_MISPLACED", "X_V_MODEL_NO_EXPRESSION": 41, "41": "X_V_MODEL_NO_EXPRESSION", "X_V_MODEL_MALFORMED_EXPRESSION": 42, "42": "X_V_MODEL_MALFORMED_EXPRESSION", "X_V_MODEL_ON_SCOPE_VARIABLE": 43, "43": "X_V_MODEL_ON_SCOPE_VARIABLE", "X_V_MODEL_ON_PROPS": 44, "44": "X_V_MODEL_ON_PROPS", "X_INVALID_EXPRESSION": 45, "45": "X_INVALID_EXPRESSION", "X_KEEP_ALIVE_INVALID_CHILDREN": 46, "46": "X_KEEP_ALIVE_INVALID_CHILDREN", "X_PREFIX_ID_NOT_SUPPORTED": 47, "47": "X_PREFIX_ID_NOT_SUPPORTED", "X_MODULE_MODE_NOT_SUPPORTED": 48, "48": "X_MODULE_MODE_NOT_SUPPORTED", "X_CACHE_HANDLER_NOT_SUPPORTED": 49, "49": "X_CACHE_HANDLER_NOT_SUPPORTED", "X_SCOPE_ID_NOT_SUPPORTED": 50, "50": "X_SCOPE_ID_NOT_SUPPORTED", "X_VNODE_HOOKS": 51, "51": "X_VNODE_HOOKS", "X_V_BIND_INVALID_SAME_NAME_ARGUMENT": 52, "52": "X_V_BIND_INVALID_SAME_NAME_ARGUMENT", "__EXTEND_POINT__": 53, "53": "__EXTEND_POINT__" }; errorMessages = { // parse errors [0]: "Illegal comment.", [1]: "CDATA section is allowed only in XML context.", [2]: "Duplicate attribute.", [3]: "End tag cannot have attributes.", [4]: "Illegal '/' in tags.", [5]: "Unexpected EOF in tag.", [6]: "Unexpected EOF in CDATA section.", [7]: "Unexpected EOF in comment.", [8]: "Unexpected EOF in script.", [9]: "Unexpected EOF in tag.", [10]: "Incorrectly closed comment.", [11]: "Incorrectly opened comment.", [12]: "Illegal tag name. Use '<' to print '<'.", [13]: "Attribute value was expected.", [14]: "End tag name was expected.", [15]: "Whitespace was expected.", [16]: "Unexpected '<!--' in comment.", [17]: `Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`, [18]: "Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).", [19]: "Attribute name cannot start with '='.", [21]: "'<?' is allowed only in XML context.", [20]: `Unexpected null character.`, [22]: "Illegal '/' in tags.", // Vue-specific parse errors [23]: "Invalid end tag.", [24]: "Element is missing end tag.", [25]: "Interpolation end sign was not found.", [27]: "End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.", [26]: "Legal directive name was expected.", // transform errors [28]: `v-if/v-else-if is missing expression.`, [29]: `v-if/else branches must use unique keys.`, [30]: `v-else/v-else-if has no adjacent v-if or v-else-if.`, [31]: `v-for is missing expression.`, [32]: `v-for has invalid expression.`, [33]: `<template v-for> key should be placed on the <template> tag.`, [34]: `v-bind is missing expression.`, [52]: `v-bind with same-name shorthand only allows static argument.`, [35]: `v-on is missing expression.`, [36]: `Unexpected custom directive on <slot> outlet.`, [37]: `Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.`, [38]: `Duplicate slot names found. `, [39]: `Extraneous children found when component already has explicitly named default slot. These children will be ignored.`, [40]: `v-slot can only be used on components or <template> tags.`, [41]: `v-model is missing expression.`, [42]: `v-model value must be a valid JavaScript member expression.`, [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`, [44]: `v-model cannot be used on a prop, because local prop bindings are not writable. Use a v-bind binding combined with a v-on listener that emits update:x event instead.`, [45]: `Error parsing JavaScript expression: `, [46]: `<KeepAlive> expects exactly one child component.`, [51]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`, // generic errors [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`, [48]: `ES module mode is not supported in this build of compiler.`, [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`, [50]: `"scopeId" option is only supported in module mode.`, // just to fulfill types [53]: `` }; isFunctionType = (node) => { return /Function(?:Expression|Declaration)$|Method$/.test(node.type); }; isStaticProperty = (node) => node && (node.type === "ObjectProperty" || node.type === "ObjectMethod") && !node.computed; isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node; TS_NODE_TYPES = [ "TSAsExpression", // foo as number "TSTypeAssertion", // (<number>foo) "TSNonNullExpression", // foo! "TSInstantiationExpression", // foo<string> "TSSatisfiesExpression" // foo satisfies T ]; isStaticExp = (p) => p.type === 4 && p.isStatic; nonIdentifierRE = /^\d|[^\$\w\xA0-\uFFFF]/; isSimpleIdentifier = (name) => !nonIdentifierRE.test(name); validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/; validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/; whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g; getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source; isMemberExpressionBrowser = (exp) => { const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim()); let state = 0; let stateStack = []; let currentOpenBracketCount = 0; let currentOpenParensCount = 0; let currentStringType = null; for (let i = 0; i < path.length; i++) { const char = path.charAt(i); switch (state) { case 0: if (char === "[") { stateStack.push(state); state = 1; currentOpenBracketCount++; } else if (char === "(") { stateStack.push(state); state = 2; currentOpenParensCount++; } else if (!(i === 0 ? validFirstIdentCharRE : validIdentCharRE).test(char)) { return false; } break; case 1: if (char === `'` || char === `"` || char === "`") { stateStack.push(state); state = 3; currentStringType = char; } else if (char === `[`) { currentOpenBracketCount++; } else if (char === `]`) { if (!--currentOpenBracketCount) { state = stateStack.pop(); } } break; case 2: if (char === `'` || char === `"` || char === "`") { stateStack.push(state); state = 3; currentStringType = char; } else if (char === `(`) { currentOpenParensCount++; } else if (char === `)`) { if (i === path.length - 1) { return false; } if (!--currentOpenParensCount) { state = stateStack.pop(); } } break; case 3: if (char === currentStringType) { state = stateStack.pop(); currentStringType = null; } break; } } return !currentOpenBracketCount && !currentOpenParensCount; }; isMemberExpressionNode = NOOP; isMemberExpression = isMemberExpressionBrowser; fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/; isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp)); isFnExpressionNode = NOOP; isFnExpression = isFnExpressionBrowser; propsHelperSet = /* @__PURE__ */ new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]); forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/; defaultParserOptions = { parseMode: "base", ns: 0, delimiters: [`{{`, `}}`], getNamespace: () => 0, isVoidTag: NO, isPreTag: NO, isIgnoreNewlineTag: NO, isCustomElement: NO, onError: defaultOnError, onWarn: defaultOnWarn, comments: true, prefixIdentifiers: false }; currentOptions = defaultParserOptions; currentRoot = null; currentInput = ""; currentOpenTag = null; currentProp = null; currentAttrValue = ""; currentAttrStartIndex = -1; currentAttrEndIndex = -1; inPre = 0; inVPre = false; currentVPreBoundary = null; stack = []; tokenizer = new Tokenizer(stack, { onerr: emitError, ontext(start, end) { onText(getSlice(start, end), start, end); }, ontextentity(char, start, end) { onText(char, start, end); }, oninterpolation(start, end) { if (inVPre) { return onText(getSlice(start, end), start, end); } let innerStart = start + tokenizer.delimiterOpen.length; let innerEnd = end - tokenizer.delimiterClose.length; while (isWhitespace(currentInput.charCodeAt(innerStart))) { innerStart++; } while (isWhitespace(currentInput.charCodeAt(innerEnd - 1))) { innerEnd--; } let exp = getSlice(innerStart, innerEnd); if (exp.includes("&")) { { exp = currentOptions.decodeEntities(exp, false); } } addNode({ type: 5, content: createExp(exp, false, getLoc(innerStart, innerEnd)), loc: getLoc(start, end) }); }, onopentagname(start, end) { const name = getSlice(start, end); currentOpenTag = { type: 1, tag: name, ns: currentOptions.getNamespace(name, stack[0], currentOptions.ns), tagType: 0, // will be refined on tag close props: [], children: [], loc: getLoc(start - 1, end), codegenNode: void 0 }; }, onopentagend(end) { endOpenTag(end); }, onclosetag(start, end) { const name = getSlice(start, end); if (!currentOptions.isVoidTag(name)) { let found = false; for (let i = 0; i < stack.length; i++) { const e = stack[i]; if (e.tag.toLowerCase() === name.toLowerCase()) { found = true; if (i > 0) { emitError(24, stack[0].loc.start.offset); } for (let j = 0; j <= i; j++) { const el = stack.shift(); onCloseTag(el, end, j < i); } break; } } if (!found) { emitError(23, backTrack(start, 60)); } } }, onselfclosingtag(end) { const name = currentOpenTag.tag; currentOpenTag.isSelfClosing = true; endOpenTag(end); if (stack[0] && stack[0].tag === name) { onCloseTag(stack.shift(), end); } }, onattribname(start, end) { currentProp = { type: 6, name: getSlice(start, end), nameLoc: getLoc(start, end), value: void 0, loc: getLoc(start) }; }, ondirname(start, end) { const raw = getSlice(start, end); const name = raw === "." || raw === ":" ? "bind" : raw === "@" ? "on" : raw === "#" ? "slot" : raw.slice(2); if (!inVPre && name === "") { emitError(26, start); } if (inVPre || name === "") { currentProp = { type: 6, name: raw, nameLoc: getLoc(start, end), value: void 0, loc: getLoc(start) }; } else { currentProp = { type: 7, name, rawName: raw, exp: void 0, arg: void 0, modifiers: raw === "." ? [createSimpleExpression("prop")] : [], loc: getLoc(start) }; if (name === "pre") { inVPre = tokenizer.inVPre = true; currentVPreBoundary = currentOpenTag; const props = currentOpenTag.props; for (let i = 0; i < props.length; i++) { if (props[i].type === 7) { props[i] = dirToAttr(props[i]); } } } } }, ondirarg(start, end) { if (start === end) return; const arg = getSlice(start, end); if (inVPre) { currentProp.name += arg; setLocEnd(currentProp.nameLoc, end); } else { const isStatic = arg[0] !== `[`; currentProp.arg = createExp( isStatic ? arg : arg.slice(1, -1), isStatic, getLoc(start, end), isStatic ? 3 : 0 ); } }, ondirmodifier(start, end) { const mod = getSlice(start, end); if (inVPre) { currentProp.name += "." + mod; setLocEnd(currentProp.nameLoc, end); } else if (currentProp.name === "slot") { const arg = currentProp.arg; if (arg) { arg.content += "." + mod; setLocEnd(arg.loc, end); } } else { const exp = createSimpleExpression(mod, true, getLoc(start, end)); currentProp.modifiers.push(exp); } }, onattribdata(start, end) { currentAttrValue += getSlice(start, end); if (currentAttrStartIndex < 0) currentAttrStartIndex = start; currentAttrEndIndex = end; }, onattribentity(char, start, end) { currentAttrValue += char; if (currentAttrStartIndex < 0) currentAttrStartIndex = start; currentAttrEndIndex = end; }, onattribnameend(end) { const start = currentProp.loc.start.offset; const name = getSlice(start, end); if (currentProp.type === 7) { currentProp.rawName = name; } if (currentOpenTag.props.some( (p) => (p.type === 7 ? p.rawName : p.name) === name )) { emitError(2, start); } }, onattribend(quote, end) { if (currentOpenTag && currentProp) { setLocEnd(currentProp.loc, end); if (quote !== 0) { if (currentAttrValue.includes("&")) { currentAttrValue = currentOptions.decodeEntities( currentAttrValue, true ); } if (currentProp.type === 6) { if (currentProp.name === "class") { currentAttrValue = condense(currentAttrValue).trim(); } if (quote === 1 && !currentAttrValue) { emitError(13, end); } currentProp.value = { type: 2, content: currentAttrValue, loc: quote === 1 ? getLoc(currentAttrStartIndex, currentAttrEndIndex) : getLoc(currentAttrStartIndex - 1, currentAttrEndIndex + 1) }; if (tokenizer.inSFCRoot && currentOpenTag.tag === "template" && currentProp.name === "lang" && currentAttrValue && currentAttrValue !== "html") { tokenizer.enterRCDATA(toCharCodes(`</template`), 0); } } else { let expParseMode = 0; currentProp.exp = createExp( currentAttrValue, false, getLoc(currentAttrStartIndex, currentAttrEndIndex), 0, expParseMode ); if (currentProp.name === "for") { currentProp.forParseResult = parseForExpression(currentProp.exp); } let syncIndex = -1; if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.findIndex( (mod) => mod.content === "sync" )) > -1 && checkCompatEnabled( "COMPILER_V_BIND_SYNC", currentOptions, currentProp.loc, currentProp.rawName )) { currentProp.name = "model"; currentProp.modifiers.splice(syncIndex, 1); } } } if (currentProp.type !== 7 || currentProp.name !== "pre") { currentOpenTag.props.push(currentProp); } } currentAttrValue = ""; currentAttrStartIndex = currentAttrEndIndex = -1; }, oncomment(start, end) { if (currentOptions.comments) { addNode({ type: 3, content: getSlice(start, end), loc: getLoc(start - 4, end + 3) }); } }, onend() { const end = currentInput.length; if (tokenizer.state !== 1) { switch (tokenizer.state) { case 5: case 8: emitError(5, end); break; case 3: case 4: emitError( 25, tokenizer.sectionStart ); break; case 28: if (tokenizer.currentSequence === Sequences.CdataEnd) { emitError(6, end); } else { emitError(7, end); } break; case 6: case 7: case 9: case 11: case 12: case 13: case 14: case 15: case 16: case 17: case 18: case 19: // " case 20: // ' case 21: emitError(9, end); break; } } for (let index = 0; index < stack.length; index++) { onCloseTag(stack[index], end - 1); emitError(24, stack[index].loc.start.offset); } }, oncdata(start, end) { if (stack[0].ns !== 0) { onText(getSlice(start, end), start, end); } else { emitError(1, start - 9); } }, onprocessinginstruction(start) { if ((stack[0] ? stack[0].ns : currentOptions.ns) === 0) { emitError( 21, start - 1 ); } } }); forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/; stripParensRE = /^\(|\)$/g; specialTemplateDir = /* @__PURE__ */ new Set(["if", "else", "else-if", "for", "slot"]); windowsNewlineRE = /\r\n/g; allowHoistedHelperSet = /* @__PURE__ */ new Set([ NORMALIZE_CLASS, NORMALIZE_STYLE, NORMALIZE_PROPS, GUARD_REACTIVE_PROPS ]); PURE_ANNOTATION = `/*@__PURE__*/`; aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`; prohibitedKeywordRE = new RegExp( "\\b" + "arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b") + "\\b" ); stripStringRE = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g; transformExpression = (node, context) => { if (node.type === 5) { node.content = processExpression( node.content, context ); } else if (node.type === 1) { const memo = findDir(node, "memo"); for (let i = 0; i < node.props.length; i++) { const dir = node.props[i]; if (dir.type === 7 && dir.name !== "for") { const exp = dir.exp; const arg = dir.arg; if (exp && exp.type === 4 && !(dir.name === "on" && arg) && // key has been processed in transformFor(vMemo + vFor) !(memo && arg && arg.type === 4 && arg.content === "key")) { dir.exp = processExpression( exp, context, // slot args must be processed as function params dir.name === "slot" ); } if (arg && arg.type === 4 && !arg.isStatic) { dir.arg = processExpression(arg, context); } } } } }; transformIf = createStructuralDirectiveTransform( /^(if|else|else-if)$/, (node, dir, context) => { return processIf(node, dir, context, (ifNode, branch, isRoot) => { const siblings = context.parent.children; let i = siblings.indexOf(ifNode); let key = 0; while (i-- >= 0) { const sibling = siblings[i]; if (sibling && sibling.type === 9) { key += sibling.branches.length; } } return () => { if (isRoot) { ifNode.codegenNode = createCodegenNodeForBranch( branch, key, context ); } else { const parentCondition = getParentCondition(ifNode.codegenNode); parentCondition.alternate = createCodegenNodeForBranch( branch, key + ifNode.branches.length - 1, context ); } }; }); } ); transformBind = (dir, _node, context) => { const { modifiers, loc } = dir; const arg = dir.arg; let { exp } = dir; if (exp && exp.type === 4 && !exp.content.trim()) { { exp = void 0; } } if (!exp) { if (arg.type !== 4 || !arg.isStatic) { context.onError( createCompilerError( 52, arg.loc ) ); return { props: [ createObjectProperty(arg, createSimpleExpression("", true, loc)) ] }; } transformBindShorthand(dir); exp = dir.exp; } if (arg.type !== 4) { arg.children.unshift(`(`); arg.children.push(`) || ""`); } else if (!arg.isStatic) { arg.content = `${arg.content} || ""`; } if (modifiers.some((mod) => mod.content === "camel")) { if (arg.type === 4) { if (arg.isStatic) { arg.content = camelize(arg.content); } else { arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`; } } else { arg.children.unshift(`${context.helperString(CAMELIZE)}(`); arg.children.push(`)`); } } if (!context.inSSR) { if (modifiers.some((mod) => mod.content === "prop")) { injectPrefix(arg, "."); } if (modifiers.some((mod) => mod.content === "attr")) { injectPrefix(arg, "^"); } } return { props: [createObjectProperty(arg, exp)] }; }; transformBindShorthand = (dir, context) => { const arg = dir.arg; const propName = camelize(arg.content); dir.exp = createSimpleExpression(propName, false, arg.loc); }; injectPrefix = (arg, prefix) => { if (arg.type === 4) { if (arg.isStatic) { arg.content = prefix + arg.content; } else { arg.content = `\`${prefix}\${${arg.content}}\``; } } else { arg.children.unshift(`'${prefix}' + (`); arg.children.push(`)`); } }; transformFor = createStructuralDirectiveTransform( "for", (node, dir, context) => { const { helper, removeHelper } = context; return processFor(node, dir, context, (forNode) => { const renderExp = createCallExpression(helper(RENDER_LIST), [ forNode.source ]); const isTemplate = isTemplateNode(node); const memo = findDir(node, "memo"); const keyProp = findProp(node, `key`, false, true); const isDirKey = keyProp && keyProp.type === 7; if (isDirKey && !keyProp.exp) { transformBindShorthand(keyProp); } let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp); const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null; const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0; const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256; forNode.codegenNode = createVNodeCall( context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc ); return () => { let childBlock; const { children } = forNode; if (isTemplate) { node.children.some((c) => { if (c.type === 1) { const key = findProp(c, "key"); if (key) { context.onError( createCompilerError( 33, key.loc ) ); return true; } } }); } const needFragmentWrapper = children.length !== 1 || children[0].type !== 1; const slotOutlet = isSlotOutlet(node) ? node : isTemplate && node.children.length === 1 && isSlotOutlet(node.children[0]) ? node.children[0] : null; if (slotOutlet) { childBlock = slotOutlet.codegenNode; if (isTemplate && keyProperty) { injectProp(childBlock, keyProperty, context); } } else if (needFragmentWrapper) { childBlock = createVNodeCall( context, helper(FRAGMENT), keyProperty ? createObjectExpression([keyProperty]) : void 0, node.children, 64, void 0, void 0, true, void 0, false ); } else { childBlock = children[0].codegenNode; if (isTemplate && keyProperty) { injectProp(childBlock, keyProperty, context); } if (childBlock.isBlock !== !isStableFragment) { if (childBlock.isBlock) { removeHelper(OPEN_BLOCK); removeHelper( getVNodeBlockHelper(context.inSSR, childBlock.isComponent) ); } else { removeHelper( getVNodeHelper(context.inSSR, childBlock.isComponent) ); } } childBlock.isBlock = !isStableFragment; if (childBlock.isBlock) { helper(OPEN_BLOCK); helper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent)); } else { helper(getVNodeHelper(context.inSSR, childBlock.isComponent)); } } if (memo) { const loop = createFunctionExpression( createForLoopParams(forNode.parseResult, [ createSimpleExpression(`_cached`) ]) ); loop.body = createBlockStatement([ createCompoundExpression([`const _memo = (`, memo.exp, `)`]), createCompoundExpression([ `if (_cached`, ...keyExp ? [` && _cached.key === `, keyExp] : [], ` && ${context.helperString( IS_MEMO_SAME )}(_cached, _memo)) return _cached` ]), createCompoundExpression([`const _item = `, childBlock]), createSimpleExpression(`_item.memo = _memo`), createSimpleExpression(`return _item`) ]); renderExp.arguments.push( loop, createSimpleExpression(`_cache`), createSimpleExpression(String(context.cached.length)) ); context.cached.push(null); } else { renderExp.arguments.push( createFunctionExpression( createForLoopParams(forNode.parseResult), childBlock, true ) ); } }; }); } ); defaultFallback = createSimpleExpression(`undefined`, false); trackSlotScopes = (node, context) => { if (node.type === 1 && (node.tagType === 1 || node.tagType === 3)) { const vSlot = findDir(node, "slot"); if (vSlot) { vSlot.exp; context.scopes.vSlot++; return () => { context.scopes.vSlot--; }; } } }; trackVForSlotScopes = (node, context) => { let vFor; if (isTemplateNode(node) && node.props.some(isVSlot) && (vFor = findDir(node, "for"))) { const result = vFor.forParseResult; if (result) { finalizeForParseResult(result, context); const { value, key, index } = result; const { addIdentifiers, removeIdentifiers } = context; value && addIdentifiers(value); key && addIdentifiers(key); index && addIdentifiers(index); return () => { value && removeIdentifiers(value); key && removeIdentifiers(key); index && removeIdentifiers(index); }; } } }; buildClientSlotFn = (props, _vForExp, children, loc) => createFunctionExpression( props, children, false, true, children.length ? children[0].loc : loc ); directiveImportMap = /* @__PURE__ */ new WeakMap(); transformElement = (node, context) => { return function postTransformElement() { node = context.currentNode; if (!(node.type === 1 && (node.tagType === 0 || node.tagType === 1))) { return; } const { tag, props } = node; const isComponent2 = node.tagType === 1; let vnodeTag = isComponent2 ? resolveComponentType(node, context) : `"${tag}"`; const isDynamicComponent = isObject(vnodeTag) && vnodeTag.callee === RESOLVE_DYNAMIC_COMPONENT; let vnodeProps; let vnodeChildren; let patchFlag = 0; let vnodeDynamicProps; let dynamicPropNames; let vnodeDirectives; let shouldUseBlock = ( // dynamic component may resolve to plain elements isDynamicComponent || vnodeTag === TELEPORT || vnodeTag === SUSPENSE || !isComponent2 && // <svg> and <foreignObject> must be forced into blocks so that block // updates inside get proper isSVG flag at runtime. (#639, #643) // This is technically web-specific, but splitting the logic out of core // leads to too much unnecessary complexity. (tag === "svg" || tag === "foreignObject" || tag === "math") ); if (props.length > 0) { const propsBuildResult = buildProps( node, context, void 0, isComponent2, isDynamicComponent ); vnodeProps = propsBuildResult.props; patchFlag = propsBuildResult.patchFlag; dynamicPropNames = propsBuildResult.dynamicPropNames; const directives = propsBuildResult.directives; vnodeDirectives = directives && directives.length ? createArrayExpression( directives.map((dir) => buildDirectiveArgs(dir, context)) ) : void 0; if (propsBuildResult.shouldUseBlock) { shouldUseBlock = true; } } if (node.children.length > 0) { if (vnodeTag === KEEP_ALIVE) { shouldUseBlock = true; patchFlag |= 1024; if (node.children.length > 1) { context.onError( createCompilerError(46, { start: node.children[0].loc.start, end: node.children[node.children.length - 1].loc.end, source: "" }) ); } } const shouldBuildAsSlots = isComponent2 && // Teleport is not a real component and has dedicated runtime handling vnodeTag !== TELEPORT && // explained above. vnodeTag !== KEEP_ALIVE; if (shouldBuildAsSlots) { const { slots, hasDynamicSlots } = buildSlots(node, context); vnodeChildren = slots; if (hasDynamicSlots) { patchFlag |= 1024; } } else if (node.children.length === 1 && vnodeTag !== TELEPORT) { const child = node.children[0]; const type = child.type; const hasDynamicTextChild = type === 5 || type === 8; if (hasDynamicTextChild && getConstantType(child, context) === 0) { patchFlag |= 1; } if (hasDynamicTextChild || type === 2) { vnodeChildren = child; } else { vnodeChildren = node.children; } } else { vnodeChildren = node.children; } } if (dynamicPropNames && dynamicPropNames.length) { vnodeDynamicProps = stringifyDynamicPropNames(dynamicPropNames); } node.codegenNode = createVNodeCall( context, vnodeTag, vnodeProps, vnodeChildren, patchFlag === 0 ? void 0 : patchFlag, vnodeDynamicProps, vnodeDirectives, !!shouldUseBlock, false, isComponent2, node.loc ); }; }; transformSlotOutlet = (node, context) => { if (isSlotOutlet(node)) { const { children, loc } = node; const { slotName, slotProps } = processSlotOutlet(node, context); const slotArgs = [ context.prefixIdentifiers ? `_ctx.$slots` : `$slots`, slotName, "{}", "undefined", "true" ]; let expectedLen = 2; if (slotProps) { slotArgs[2] = slotProps; expectedLen = 3; } if (children.length) { slotArgs[3] = createFunctionExpression([], children, false, false, loc); expectedLen = 4; } if (context.scopeId && !context.slotted) { expectedLen = 5; } slotArgs.splice(expectedLen); node.codegenNode = createCallExpression( context.helper(RENDER_SLOT), slotArgs, loc ); } }; transformOn = (dir, node, context, augmentor) => { const { loc, modifiers, arg } = dir; if (!dir.exp && !modifiers.length) { context.onError(createCompilerError(35, loc)); } let eventName; if (arg.type === 4) { if (arg.isStatic) { let rawName = arg.content; if (rawName.startsWith("vnode")) { context.onError(createCompilerError(51, arg.loc)); } if (rawName.startsWith("vue:")) { rawName = `vnode-${rawName.slice(4)}`; } const eventString = node.tagType !== 0 || rawName.startsWith("vnode") || !/[A-Z]/.test(rawName) ? ( // for non-element and vnode lifecycle event listeners, auto convert // it to camelCase. See issue #2249 toHandlerKey(camelize(rawName)) ) : ( // preserve case for plain element listeners that have uppercase // letters, as these may be custom elements' custom events `on:${rawName}` ); eventName = createSimpleExpression(eventString, true, arg.loc); } else { eventName = createCompoundExpression([ `${context.helperString(TO_HANDLER_KEY)}(`, arg, `)` ]); } } else { eventName = arg; eventName.children.unshift(`${context.helperString(TO_HANDLER_KEY)}(`); eventName.children.push(`)`); } let exp = dir.exp; if (exp && !exp.content.trim()) { exp = void 0; } let shouldCache = context.cacheHandlers && !exp && !context.inVOnce; if (exp) { const isMemberExp = isMemberExpression(exp); const isInlineStatement = !(isMemberExp || isFnExpression(exp)); const hasMultipleStatements = exp.content.includes(`;`); if (true) { validateBrowserExpression( exp, context, false, hasMultipleStatements ); } if (isInlineStatement || shouldCache && isMemberExp) { exp = createCompoundExpression([ `${isInlineStatement ? `$event` : `${``}(...args)`} => ${hasMultipleStatements ? `{` : `(`}`, exp, hasMultipleStatements ? `}` : `)` ]); } } let ret = { props: [ createObjectProperty( eventName, exp || createSimpleExpression(`() => {}`, false, loc) ) ] }; if (augmentor) { ret = augmentor(ret); } if (shouldCache) { ret.props[0].value = context.cache(ret.props[0].value); } ret.props.forEach((p) => p.key.isHandlerKey = true); return ret; }; transformText = (node, context) => { if (node.type === 0 || node.type === 1 || node.type === 11 || node.type === 10) { return () => { const children = node.children; let currentContainer = void 0; let hasText = false; for (let i = 0; i < children.length; i++) { const child = children[i]; if (isText$1(child)) { hasText = true; for (let j = i + 1; j < children.length; j++) { const next = children[j]; if (isText$1(next)) { if (!currentContainer) { currentContainer = children[i] = createCompoundExpression( [child], child.loc ); } currentContainer.children.push(` + `, next); children.splice(j, 1); j--; } else { currentContainer = void 0; break; } } } } if (!hasText || // if this is a plain element with a single text child, leave it // as-is since the runtime has dedicated fast path for this by directly // setting textContent of the element. // for component root it's always normalized anyway. children.length === 1 && (node.type === 0 || node.type === 1 && node.tagType === 0 && // #3756 // custom directives can potentially add DOM elements arbitrarily, // we need to avoid setting textContent of the element at runtime // to avoid accidentally overwriting the DOM elements added // by the user through custom directives. !node.props.find( (p) => p.type === 7 && !context.directiveTransforms[p.name] ) && // in compat mode, <template> tags with no special directives // will be rendered as a fragment so its children must be // converted into vnodes. !(node.tag === "template"))) { return; } for (let i = 0; i < children.length; i++) { const child = children[i]; if (isText$1(child) || child.type === 8) { const callArgs = []; if (child.type !== 2 || child.content !== " ") { callArgs.push(child); } if (!context.ssr && getConstantType(child, context) === 0) { callArgs.push( 1 + (true ? ` /* ${PatchFlagNames[1]} */` : ``) ); } children[i] = { type: 12, content: child, loc: child.loc, codegenNode: createCallExpression( context.helper(CREATE_TEXT), callArgs ) }; } } }; } }; seen$1 = /* @__PURE__ */ new WeakSet(); transformOnce = (node, context) => { if (node.type === 1 && findDir(node, "once", true)) { if (seen$1.has(node) || context.inVOnce || context.inSSR) { return; } seen$1.add(node); context.inVOnce = true; context.helper(SET_BLOCK_TRACKING); return () => { context.inVOnce = false; const cur = context.currentNode; if (cur.codegenNode) { cur.codegenNode = context.cache( cur.codegenNode, true, true ); } }; } }; transformModel = (dir, node, context) => { const { exp, arg } = dir; if (!exp) { context.onError( createCompilerError(41, dir.loc) ); return createTransformProps(); } const rawExp = exp.loc.source.trim(); const expString = exp.type === 4 ? exp.content : rawExp; const bindingType = context.bindingMetadata[rawExp]; if (bindingType === "props" || bindingType === "props-aliased") { context.onError(createCompilerError(44, exp.loc)); return createTransformProps(); } const maybeRef = false; if (!expString.trim() || !isMemberExpression(exp) && !maybeRef) { context.onError( createCompilerError(42, exp.loc) ); return createTransformProps(); } const propName = arg ? arg : createSimpleExpression("modelValue", true); const eventName = arg ? isStaticExp(arg) ? `onUpdate:${camelize(arg.content)}` : createCompoundExpression(['"onUpdate:" + ', arg]) : `onUpdate:modelValue`; let assignmentExp; const eventArg = context.isTS ? `($event: any)` : `$event`; { assignmentExp = createCompoundExpression([ `${eventArg} => ((`, exp, `) = $event)` ]); } const props = [ // modelValue: foo createObjectProperty(propName, dir.exp), // "onUpdate:modelValue": $event => (foo = $event) createObjectProperty(eventName, assignmentExp) ]; if (dir.modifiers.length && node.tagType === 1) { const modifiers = dir.modifiers.map((m) => m.content).map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `); const modifiersKey = arg ? isStaticExp(arg) ? `${arg.content}Modifiers` : createCompoundExpression([arg, ' + "Modifiers"']) : `modelModifiers`; props.push( createObjectProperty( modifiersKey, createSimpleExpression( `{ ${modifiers} }`, false, dir.loc, 2 ) ) ); } return createTransformProps(props); }; validDivisionCharRE = /[\w).+\-_$\]]/; transformFilter = (node, context) => { if (!isCompatEnabled("COMPILER_FILTERS", context)) { return; } if (node.type === 5) { rewriteFilter(node.content, context); } else if (node.type === 1) { node.props.forEach((prop) => { if (prop.type === 7 && prop.name !== "for" && prop.exp) { rewriteFilter(prop.exp, context); } }); } }; seen = /* @__PURE__ */ new WeakSet(); transformMemo = (node, context) => { if (node.type === 1) { const dir = findDir(node, "memo"); if (!dir || seen.has(node)) { return; } seen.add(node); return () => { const codegenNode = node.codegenNode || context.currentNode.codegenNode; if (codegenNode && codegenNode.type === 13) { if (node.tagType !== 1) { convertToBlock(codegenNode, context); } node.codegenNode = createCallExpression(context.helper(WITH_MEMO), [ dir.exp, createFunctionExpression(void 0, codegenNode), `_cache`, String(context.cached.length) ]); context.cached.push(null); } }; } }; BindingTypes = { "DATA": "data", "PROPS": "props", "PROPS_ALIASED": "props-aliased", "SETUP_LET": "setup-let", "SETUP_CONST": "setup-const", "SETUP_REACTIVE_CONST": "setup-reactive-const", "SETUP_MAYBE_REF": "setup-maybe-ref", "SETUP_REF": "setup-ref", "OPTIONS": "options", "LITERAL_CONST": "literal-const" }; noopDirectiveTransform = () => ({ props: [] }); } }); // node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js var compiler_dom_esm_bundler_exports = {}; __export(compiler_dom_esm_bundler_exports, { BASE_TRANSITION: () => BASE_TRANSITION, BindingTypes: () => BindingTypes, CAMELIZE: () => CAMELIZE, CAPITALIZE: () => CAPITALIZE, CREATE_BLOCK: () => CREATE_BLOCK, CREATE_COMMENT: () => CREATE_COMMENT, CREATE_ELEMENT_BLOCK: () => CREATE_ELEMENT_BLOCK, CREATE_ELEMENT_VNODE: () => CREATE_ELEMENT_VNODE, CREATE_SLOTS: () => CREATE_SLOTS, CREATE_STATIC: () => CREATE_STATIC, CREATE_TEXT: () => CREATE_TEXT, CREATE_VNODE: () => CREATE_VNODE, CompilerDeprecationTypes: () => CompilerDeprecationTypes, ConstantTypes: () => ConstantTypes, DOMDirectiveTransforms: () => DOMDirectiveTransforms, DOMErrorCodes: () => DOMErrorCodes, DOMErrorMessages: () => DOMErrorMessages, DOMNodeTransforms: () => DOMNodeTransforms, ElementTypes: () => ElementTypes, ErrorCodes: () => ErrorCodes, FRAGMENT: () => FRAGMENT, GUARD_REACTIVE_PROPS: () => GUARD_REACTIVE_PROPS, IS_MEMO_SAME: () => IS_MEMO_SAME, IS_REF: () => IS_REF, KEEP_ALIVE: () => KEEP_ALIVE, MERGE_PROPS: () => MERGE_PROPS, NORMALIZE_CLASS: () => NORMALIZE_CLASS, NORMALIZE_PROPS: () => NORMALIZE_PROPS, NORMALIZE_STYLE: () => NORMALIZE_STYLE, Namespaces: () => Namespaces, NodeTypes: () => NodeTypes, OPEN_BLOCK: () => OPEN_BLOCK, POP_SCOPE_ID: () => POP_SCOPE_ID, PUSH_SCOPE_ID: () => PUSH_SCOPE_ID, RENDER_LIST: () => RENDER_LIST, RENDER_SLOT: () => RENDER_SLOT, RESOLVE_COMPONENT: () => RESOLVE_COMPONENT, RESOLVE_DIRECTIVE: () => RESOLVE_DIRECTIVE, RESOLVE_DYNAMIC_COMPONENT: () => RESOLVE_DYNAMIC_COMPONENT, RESOLVE_FILTER: () => RESOLVE_FILTER, SET_BLOCK_TRACKING: () => SET_BLOCK_TRACKING, SUSPENSE: () => SUSPENSE, TELEPORT: () => TELEPORT, TO_DISPLAY_STRING: () => TO_DISPLAY_STRING, TO_HANDLERS: () => TO_HANDLERS, TO_HANDLER_KEY: () => TO_HANDLER_KEY, TRANSITION: () => TRANSITION, TRANSITION_GROUP: () => TRANSITION_GROUP, TS_NODE_TYPES: () => TS_NODE_TYPES, UNREF: () => UNREF, V_MODEL_CHECKBOX: () => V_MODEL_CHECKBOX, V_MODEL_DYNAMIC: () => V_MODEL_DYNAMIC, V_MODEL_RADIO: () => V_MODEL_RADIO, V_MODEL_SELECT: () => V_MODEL_SELECT, V_MODEL_TEXT: () => V_MODEL_TEXT, V_ON_WITH_KEYS: () => V_ON_WITH_KEYS, V_ON_WITH_MODIFIERS: () => V_ON_WITH_MODIFIERS, V_SHOW: () => V_SHOW, WITH_CTX: () => WITH_CTX, WITH_DIRECTIVES: () => WITH_DIRECTIVES, WITH_MEMO: () => WITH_MEMO, advancePositionWithClone: () => advancePositionWithClone, advancePositionWithMutation: () => advancePositionWithMutation, assert: () => assert, baseCompile: () => baseCompile, baseParse: () => baseParse, buildDirectiveArgs: () => buildDirectiveArgs, buildProps: () => buildProps, buildSlots: () => buildSlots, checkCompatEnabled: () => checkCompatEnabled, compile: () => compile, convertToBlock: () => convertToBlock, createArrayExpression: () => createArrayExpression, createAssignmentExpression: () => createAssignmentExpression, createBlockStatement: () => createBlockStatement, createCacheExpression: () => createCacheExpression, createCallExpression: () => createCallExpression, createCompilerError: () => createCompilerError, createCompoundExpression: () => createCompoundExpression, createConditionalExpression: () => createConditionalExpression, createDOMCompilerError: () => createDOMCompilerError, createForLoopParams: () => createForLoopParams, createFunctionExpression: () => createFunctionExpression, createIfStatement: () => createIfStatement, createInterpolation: () => createInterpolation, createObjectExpression: () => createObjectExpression, createObjectProperty: () => createObjectProperty, createReturnStatement: () => createReturnStatement, createRoot: () => createRoot, createSequenceExpression: () => createSequenceExpression, createSimpleExpression: () => createSimpleExpression, createStructuralDirectiveTransform: () => createStructuralDirectiveTransform, createTemplateLiteral: () => createTemplateLiteral, createTransformContext: () => createTransformContext, createVNodeCall: () => createVNodeCall, errorMessages: () => errorMessages, extractIdentifiers: () => extractIdentifiers, findDir: () => findDir, findProp: () => findProp, forAliasRE: () => forAliasRE, generate: () => generate, generateCodeFrame: () => generateCodeFrame, getBaseTransformPreset: () => getBaseTransformPreset, getConstantType: () => getConstantType, getMemoedVNodeCall: () => getMemoedVNodeCall, getVNodeBlockHelper: () => getVNodeBlockHelper, getVNodeHelper: () => getVNodeHelper, hasDynamicKeyVBind: () => hasDynamicKeyVBind, hasScopeRef: () => hasScopeRef, helperNameMap: () => helperNameMap, injectProp: () => injectProp, isCoreComponent: () => isCoreComponent, isFnExpression: () => isFnExpression, isFnExpressionBrowser: () => isFnExpressionBrowser, isFnExpressionNode: () => isFnExpressionNode, isFunctionType: () => isFunctionType, isInDestructureAssignment: () => isInDestructureAssignment, isInNewExpression: () => isInNewExpression, isMemberExpression: () => isMemberExpression, isMemberExpressionBrowser: () => isMemberExpressionBrowser, isMemberExpressionNode: () => isMemberExpressionNode, isReferencedIdentifier: () => isReferencedIdentifier, isSimpleIdentifier: () => isSimpleIdentifier, isSlotOutlet: () => isSlotOutlet, isStaticArgOf: () => isStaticArgOf, isStaticExp: () => isStaticExp, isStaticProperty: () => isStaticProperty, isStaticPropertyKey: () => isStaticPropertyKey, isTemplateNode: () => isTemplateNode, isText: () => isText$1, isVSlot: () => isVSlot, locStub: () => locStub, noopDirectiveTransform: () => noopDirectiveTransform, parse: () => parse, parserOptions: () => parserOptions, processExpression: () => processExpression, processFor: () => processFor, processIf: () => processIf, processSlotOutlet: () => processSlotOutlet, registerRuntimeHelpers: () => registerRuntimeHelpers, resolveComponentType: () => resolveComponentType, stringifyExpression: () => stringifyExpression, toValidAssetId: () => toValidAssetId, trackSlotScopes: () => trackSlotScopes, trackVForSlotScopes: () => trackVForSlotScopes, transform: () => transform, transformBind: () => transformBind, transformElement: () => transformElement, transformExpression: () => transformExpression, transformModel: () => transformModel, transformOn: () => transformOn, transformStyle: () => transformStyle, traverseNode: () => traverseNode, unwrapTSNode: () => unwrapTSNode, walkBlockDeclarations: () => walkBlockDeclarations, walkFunctionParams: () => walkFunctionParams, walkIdentifiers: () => walkIdentifiers, warnDeprecation: () => warnDeprecation }); function decodeHtmlBrowser(raw, asAttr = false) { if (!decoder) { decoder = document.createElement("div"); } if (asAttr) { decoder.innerHTML = `<div foo="${raw.replace(/"/g, """)}">`; return decoder.children[0].getAttribute("foo"); } else { decoder.innerHTML = raw; return decoder.textContent; } } function createDOMCompilerError(code, loc) { return createCompilerError( code, loc, true ? DOMErrorMessages : void 0 ); } function hasMultipleChildren(node) { const children = node.children = node.children.filter( (c) => c.type !== 3 && !(c.type === 2 && !c.content.trim()) ); const child = children[0]; return children.length !== 1 || child.type === 11 || child.type === 9 && child.branches.some(hasMultipleChildren); } function isValidHTMLNesting(parent, child) { if (parent in onlyValidChildren) { return onlyValidChildren[parent].has(child); } if (child in onlyValidParents) { return onlyValidParents[child].has(parent); } if (parent in knownInvalidChildren) { if (knownInvalidChildren[parent].has(child)) return false; } if (child in knownInvalidParents) { if (knownInvalidParents[child].has(parent)) return false; } return true; } function compile(src, options = {}) { return baseCompile( src, extend({}, parserOptions, options, { nodeTransforms: [ // ignore <script> and <tag> // this is not put inside DOMNodeTransforms because that list is used // by compiler-ssr to generate vnode fallback branches ignoreSideEffectTags, ...DOMNodeTransforms, ...options.nodeTransforms || [] ], directiveTransforms: extend( {}, DOMDirectiveTransforms, options.directiveTransforms || {} ), transformHoist: null }) ); } function parse(template, options = {}) { return baseParse(template, extend({}, parserOptions, options)); } var V_MODEL_RADIO, V_MODEL_CHECKBOX, V_MODEL_TEXT, V_MODEL_SELECT, V_MODEL_DYNAMIC, V_ON_WITH_MODIFIERS, V_ON_WITH_KEYS, V_SHOW, TRANSITION, TRANSITION_GROUP, decoder, parserOptions, transformStyle, parseInlineCSS, DOMErrorCodes, DOMErrorMessages, transformVHtml, transformVText, transformModel2, isEventOptionModifier, isNonKeyModifier, maybeKeyModifier, isKeyboardEvent, resolveModifiers, transformClick, transformOn2, transformShow, transformTransition, ignoreSideEffectTags, headings, emptySet, onlyValidChildren, onlyValidParents, knownInvalidChildren, knownInvalidParents, validateHtmlNesting, DOMNodeTransforms, DOMDirectiveTransforms; var init_compiler_dom_esm_bundler = __esm({ "node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js"() { init_compiler_core_esm_bundler(); init_compiler_core_esm_bundler(); init_shared_esm_bundler(); V_MODEL_RADIO = Symbol(true ? `vModelRadio` : ``); V_MODEL_CHECKBOX = Symbol( true ? `vModelCheckbox` : `` ); V_MODEL_TEXT = Symbol(true ? `vModelText` : ``); V_MODEL_SELECT = Symbol( true ? `vModelSelect` : `` ); V_MODEL_DYNAMIC = Symbol( true ? `vModelDynamic` : `` ); V_ON_WITH_MODIFIERS = Symbol( true ? `vOnModifiersGuard` : `` ); V_ON_WITH_KEYS = Symbol( true ? `vOnKeysGuard` : `` ); V_SHOW = Symbol(true ? `vShow` : ``); TRANSITION = Symbol(true ? `Transition` : ``); TRANSITION_GROUP = Symbol( true ? `TransitionGroup` : `` ); registerRuntimeHelpers({ [V_MODEL_RADIO]: `vModelRadio`, [V_MODEL_CHECKBOX]: `vModelCheckbox`, [V_MODEL_TEXT]: `vModelText`, [V_MODEL_SELECT]: `vModelSelect`, [V_MODEL_DYNAMIC]: `vModelDynamic`, [V_ON_WITH_MODIFIERS]: `withModifiers`, [V_ON_WITH_KEYS]: `withKeys`, [V_SHOW]: `vShow`, [TRANSITION]: `Transition`, [TRANSITION_GROUP]: `TransitionGroup` }); parserOptions = { parseMode: "html", isVoidTag, isNativeTag: (tag) => isHTMLTag(tag) || isSVGTag(tag) || isMathMLTag(tag), isPreTag: (tag) => tag === "pre", isIgnoreNewlineTag: (tag) => tag === "pre" || tag === "textarea", decodeEntities: decodeHtmlBrowser, isBuiltInComponent: (tag) => { if (tag === "Transition" || tag === "transition") { return TRANSITION; } else if (tag === "TransitionGroup" || tag === "transition-group") { return TRANSITION_GROUP; } }, // https://html.spec.whatwg.org/multipage/parsing.html#tree-construction-dispatcher getNamespace(tag, parent, rootNamespace) { let ns = parent ? parent.ns : rootNamespace; if (parent && ns === 2) { if (parent.tag === "annotation-xml") { if (tag === "svg") { return 1; } if (parent.props.some( (a) => a.type === 6 && a.name === "encoding" && a.value != null && (a.value.content === "text/html" || a.value.content === "application/xhtml+xml") )) { ns = 0; } } else if (/^m(?:[ions]|text)$/.test(parent.tag) && tag !== "mglyph" && tag !== "malignmark") { ns = 0; } } else if (parent && ns === 1) { if (parent.tag === "foreignObject" || parent.tag === "desc" || parent.tag === "title") { ns = 0; } } if (ns === 0) { if (tag === "svg") { return 1; } if (tag === "math") { return 2; } } return ns; } }; transformStyle = (node) => { if (node.type === 1) { node.props.forEach((p, i) => { if (p.type === 6 && p.name === "style" && p.value) { node.props[i] = { type: 7, name: `bind`, arg: createSimpleExpression(`style`, true, p.loc), exp: parseInlineCSS(p.value.content, p.loc), modifiers: [], loc: p.loc }; } }); } }; parseInlineCSS = (cssText, loc) => { const normalized = parseStringStyle(cssText); return createSimpleExpression( JSON.stringify(normalized), false, loc, 3 ); }; DOMErrorCodes = { "X_V_HTML_NO_EXPRESSION": 53, "53": "X_V_HTML_NO_EXPRESSION", "X_V_HTML_WITH_CHILDREN": 54, "54": "X_V_HTML_WITH_CHILDREN", "X_V_TEXT_NO_EXPRESSION": 55, "55": "X_V_TEXT_NO_EXPRESSION", "X_V_TEXT_WITH_CHILDREN": 56, "56": "X_V_TEXT_WITH_CHILDREN", "X_V_MODEL_ON_INVALID_ELEMENT": 57, "57": "X_V_MODEL_ON_INVALID_ELEMENT", "X_V_MODEL_ARG_ON_ELEMENT": 58, "58": "X_V_MODEL_ARG_ON_ELEMENT", "X_V_MODEL_ON_FILE_INPUT_ELEMENT": 59, "59": "X_V_MODEL_ON_FILE_INPUT_ELEMENT", "X_V_MODEL_UNNECESSARY_VALUE": 60, "60": "X_V_MODEL_UNNECESSARY_VALUE", "X_V_SHOW_NO_EXPRESSION": 61, "61": "X_V_SHOW_NO_EXPRESSION", "X_TRANSITION_INVALID_CHILDREN": 62, "62": "X_TRANSITION_INVALID_CHILDREN", "X_IGNORED_SIDE_EFFECT_TAG": 63, "63": "X_IGNORED_SIDE_EFFECT_TAG", "__EXTEND_POINT__": 64, "64": "__EXTEND_POINT__" }; DOMErrorMessages = { [53]: `v-html is missing expression.`, [54]: `v-html will override element children.`, [55]: `v-text is missing expression.`, [56]: `v-text will override element children.`, [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`, [58]: `v-model argument is not supported on plain elements.`, [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`, [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`, [61]: `v-show is missing expression.`, [62]: `<Transition> expects exactly one child element or component.`, [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.` }; transformVHtml = (dir, node, context) => { const { exp, loc } = dir; if (!exp) { context.onError( createDOMCompilerError(53, loc) ); } if (node.children.length) { context.onError( createDOMCompilerError(54, loc) ); node.children.length = 0; } return { props: [ createObjectProperty( createSimpleExpression(`innerHTML`, true, loc), exp || createSimpleExpression("", true) ) ] }; }; transformVText = (dir, node, context) => { const { exp, loc } = dir; if (!exp) { context.onError( createDOMCompilerError(55, loc) ); } if (node.children.length) { context.onError( createDOMCompilerError(56, loc) ); node.children.length = 0; } return { props: [ createObjectProperty( createSimpleExpression(`textContent`, true), exp ? getConstantType(exp, context) > 0 ? exp : createCallExpression( context.helperString(TO_DISPLAY_STRING), [exp], loc ) : createSimpleExpression("", true) ) ] }; }; transformModel2 = (dir, node, context) => { const baseResult = transformModel(dir, node, context); if (!baseResult.props.length || node.tagType === 1) { return baseResult; } if (dir.arg) { context.onError( createDOMCompilerError( 58, dir.arg.loc ) ); } function checkDuplicatedValue() { const value = findDir(node, "bind"); if (value && isStaticArgOf(value.arg, "value")) { context.onError( createDOMCompilerError( 60, value.loc ) ); } } const { tag } = node; const isCustomElement = context.isCustomElement(tag); if (tag === "input" || tag === "textarea" || tag === "select" || isCustomElement) { let directiveToUse = V_MODEL_TEXT; let isInvalidType = false; if (tag === "input" || isCustomElement) { const type = findProp(node, `type`); if (type) { if (type.type === 7) { directiveToUse = V_MODEL_DYNAMIC; } else if (type.value) { switch (type.value.content) { case "radio": directiveToUse = V_MODEL_RADIO; break; case "checkbox": directiveToUse = V_MODEL_CHECKBOX; break; case "file": isInvalidType = true; context.onError( createDOMCompilerError( 59, dir.loc ) ); break; default: checkDuplicatedValue(); break; } } } else if (hasDynamicKeyVBind(node)) { directiveToUse = V_MODEL_DYNAMIC; } else { checkDuplicatedValue(); } } else if (tag === "select") { directiveToUse = V_MODEL_SELECT; } else { checkDuplicatedValue(); } if (!isInvalidType) { baseResult.needRuntime = context.helper(directiveToUse); } } else { context.onError( createDOMCompilerError( 57, dir.loc ) ); } baseResult.props = baseResult.props.filter( (p) => !(p.key.type === 4 && p.key.content === "modelValue") ); return baseResult; }; isEventOptionModifier = makeMap(`passive,once,capture`); isNonKeyModifier = makeMap( // event propagation management `stop,prevent,self,ctrl,shift,alt,meta,exact,middle` ); maybeKeyModifier = makeMap("left,right"); isKeyboardEvent = makeMap(`onkeyup,onkeydown,onkeypress`); resolveModifiers = (key, modifiers, context, loc) => { const keyModifiers = []; const nonKeyModifiers = []; const eventOptionModifiers = []; for (let i = 0; i < modifiers.length; i++) { const modifier = modifiers[i].content; if (modifier === "native" && checkCompatEnabled( "COMPILER_V_ON_NATIVE", context, loc )) { eventOptionModifiers.push(modifier); } else if (isEventOptionModifier(modifier)) { eventOptionModifiers.push(modifier); } else { if (maybeKeyModifier(modifier)) { if (isStaticExp(key)) { if (isKeyboardEvent(key.content.toLowerCase())) { keyModifiers.push(modifier); } else { nonKeyModifiers.push(modifier); } } else { keyModifiers.push(modifier); nonKeyModifiers.push(modifier); } } else { if (isNonKeyModifier(modifier)) { nonKeyModifiers.push(modifier); } else { keyModifiers.push(modifier); } } } } return { keyModifiers, nonKeyModifiers, eventOptionModifiers }; }; transformClick = (key, event) => { const isStaticClick = isStaticExp(key) && key.content.toLowerCase() === "onclick"; return isStaticClick ? createSimpleExpression(event, true) : key.type !== 4 ? createCompoundExpression([ `(`, key, `) === "onClick" ? "${event}" : (`, key, `)` ]) : key; }; transformOn2 = (dir, node, context) => { return transformOn(dir, node, context, (baseResult) => { const { modifiers } = dir; if (!modifiers.length) return baseResult; let { key, value: handlerExp } = baseResult.props[0]; const { keyModifiers, nonKeyModifiers, eventOptionModifiers } = resolveModifiers(key, modifiers, context, dir.loc); if (nonKeyModifiers.includes("right")) { key = transformClick(key, `onContextmenu`); } if (nonKeyModifiers.includes("middle")) { key = transformClick(key, `onMouseup`); } if (nonKeyModifiers.length) { handlerExp = createCallExpression(context.helper(V_ON_WITH_MODIFIERS), [ handlerExp, JSON.stringify(nonKeyModifiers) ]); } if (keyModifiers.length && // if event name is dynamic, always wrap with keys guard (!isStaticExp(key) || isKeyboardEvent(key.content.toLowerCase()))) { handlerExp = createCallExpression(context.helper(V_ON_WITH_KEYS), [ handlerExp, JSON.stringify(keyModifiers) ]); } if (eventOptionModifiers.length) { const modifierPostfix = eventOptionModifiers.map(capitalize).join(""); key = isStaticExp(key) ? createSimpleExpression(`${key.content}${modifierPostfix}`, true) : createCompoundExpression([`(`, key, `) + "${modifierPostfix}"`]); } return { props: [createObjectProperty(key, handlerExp)] }; }); }; transformShow = (dir, node, context) => { const { exp, loc } = dir; if (!exp) { context.onError( createDOMCompilerError(61, loc) ); } return { props: [], needRuntime: context.helper(V_SHOW) }; }; transformTransition = (node, context) => { if (node.type === 1 && node.tagType === 1) { const component = context.isBuiltInComponent(node.tag); if (component === TRANSITION) { return () => { if (!node.children.length) { return; } if (hasMultipleChildren(node)) { context.onError( createDOMCompilerError( 62, { start: node.children[0].loc.start, end: node.children[node.children.length - 1].loc.end, source: "" } ) ); } const child = node.children[0]; if (child.type === 1) { for (const p of child.props) { if (p.type === 7 && p.name === "show") { node.props.push({ type: 6, name: "persisted", nameLoc: node.loc, value: void 0, loc: node.loc }); } } } }; } } }; ignoreSideEffectTags = (node, context) => { if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) { context.onError( createDOMCompilerError( 63, node.loc ) ); context.removeNode(); } }; headings = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]); emptySet = /* @__PURE__ */ new Set([]); onlyValidChildren = { head: /* @__PURE__ */ new Set([ "base", "basefront", "bgsound", "link", "meta", "title", "noscript", "noframes", "style", "script", "template" ]), optgroup: /* @__PURE__ */ new Set(["option"]), select: /* @__PURE__ */ new Set(["optgroup", "option", "hr"]), // table table: /* @__PURE__ */ new Set(["caption", "colgroup", "tbody", "tfoot", "thead"]), tr: /* @__PURE__ */ new Set(["td", "th"]), colgroup: /* @__PURE__ */ new Set(["col"]), tbody: /* @__PURE__ */ new Set(["tr"]), thead: /* @__PURE__ */ new Set(["tr"]), tfoot: /* @__PURE__ */ new Set(["tr"]), // these elements can not have any children elements script: emptySet, iframe: emptySet, option: emptySet, textarea: emptySet, style: emptySet, title: emptySet }; onlyValidParents = { // sections html: emptySet, body: /* @__PURE__ */ new Set(["html"]), head: /* @__PURE__ */ new Set(["html"]), // table td: /* @__PURE__ */ new Set(["tr"]), colgroup: /* @__PURE__ */ new Set(["table"]), caption: /* @__PURE__ */ new Set(["table"]), tbody: /* @__PURE__ */ new Set(["table"]), tfoot: /* @__PURE__ */ new Set(["table"]), col: /* @__PURE__ */ new Set(["colgroup"]), th: /* @__PURE__ */ new Set(["tr"]), thead: /* @__PURE__ */ new Set(["table"]), tr: /* @__PURE__ */ new Set(["tbody", "thead", "tfoot"]), // data list dd: /* @__PURE__ */ new Set(["dl", "div"]), dt: /* @__PURE__ */ new Set(["dl", "div"]), // other figcaption: /* @__PURE__ */ new Set(["figure"]), // li: new Set(["ul", "ol"]), summary: /* @__PURE__ */ new Set(["details"]), area: /* @__PURE__ */ new Set(["map"]) }; knownInvalidChildren = { p: /* @__PURE__ */ new Set([ "address", "article", "aside", "blockquote", "center", "details", "dialog", "dir", "div", "dl", "fieldset", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "li", "main", "nav", "menu", "ol", "p", "pre", "section", "table", "ul" ]), svg: /* @__PURE__ */ new Set([ "b", "blockquote", "br", "code", "dd", "div", "dl", "dt", "em", "embed", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "img", "li", "menu", "meta", "ol", "p", "pre", "ruby", "s", "small", "span", "strong", "sub", "sup", "table", "u", "ul", "var" ]) }; knownInvalidParents = { a: /* @__PURE__ */ new Set(["a"]), button: /* @__PURE__ */ new Set(["button"]), dd: /* @__PURE__ */ new Set(["dd", "dt"]), dt: /* @__PURE__ */ new Set(["dd", "dt"]), form: /* @__PURE__ */ new Set(["form"]), li: /* @__PURE__ */ new Set(["li"]), h1: headings, h2: headings, h3: headings, h4: headings, h5: headings, h6: headings }; validateHtmlNesting = (node, context) => { if (node.type === 1 && node.tagType === 0 && context.parent && context.parent.type === 1 && context.parent.tagType === 0 && !isValidHTMLNesting(context.parent.tag, node.tag)) { const error = new SyntaxError( `<${node.tag}> cannot be child of <${context.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.` ); error.loc = node.loc; context.onWarn(error); } }; DOMNodeTransforms = [ transformStyle, ...true ? [transformTransition, validateHtmlNesting] : [] ]; DOMDirectiveTransforms = { cloak: noopDirectiveTransform, html: transformVHtml, text: transformVText, model: transformModel2, // override compiler-core on: transformOn2, // override compiler-core show: transformShow }; } }); // node_modules/vue/dist/vue.cjs.js var require_vue_cjs = __commonJS({ "node_modules/vue/dist/vue.cjs.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var compilerDom = (init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports)); var runtimeDom = (init_runtime_dom_esm_bundler(), __toCommonJS(runtime_dom_esm_bundler_exports)); var shared = (init_shared_esm_bundler(), __toCommonJS(shared_esm_bundler_exports)); function _interopNamespaceDefault(e) { var n = /* @__PURE__ */ Object.create(null); if (e) { for (var k in e) { n[k] = e[k]; } } n.default = e; return Object.freeze(n); } var runtimeDom__namespace = _interopNamespaceDefault(runtimeDom); var compileCache = /* @__PURE__ */ Object.create(null); function compileToFunction(template, options) { if (!shared.isString(template)) { if (template.nodeType) { template = template.innerHTML; } else { runtimeDom.warn(`invalid template option: `, template); return shared.NOOP; } } const key = shared.genCacheKey(template, options); const cached = compileCache[key]; if (cached) { return cached; } if (template[0] === "#") { const el = document.querySelector(template); if (!el) { runtimeDom.warn(`Template element not found or is empty: ${template}`); } template = el ? el.innerHTML : ``; } const opts = shared.extend( { hoistStatic: true, onError, onWarn: (e) => onError(e, true) }, options ); if (!opts.isCustomElement && typeof customElements !== "undefined") { opts.isCustomElement = (tag) => !!customElements.get(tag); } const { code } = compilerDom.compile(template, opts); function onError(err, asWarning = false) { const message = asWarning ? err.message : `Template compilation error: ${err.message}`; const codeFrame = err.loc && shared.generateCodeFrame( template, err.loc.start.offset, err.loc.end.offset ); runtimeDom.warn(codeFrame ? `${message} ${codeFrame}` : message); } const render = new Function("Vue", code)(runtimeDom__namespace); render._rc = true; return compileCache[key] = render; } runtimeDom.registerRuntimeCompiler(compileToFunction); exports.compile = compileToFunction; Object.keys(runtimeDom).forEach(function(k) { if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k]; }); } }); // node_modules/vue/index.js var require_vue = __commonJS({ "node_modules/vue/index.js"(exports, module) { "use strict"; if (false) { module.exports = null; } else { module.exports = require_vue_cjs(); } } }); // node_modules/vue-tournament-bracket/dist/vue-tournament-bracket.common.js var require_vue_tournament_bracket_common = __commonJS({ "node_modules/vue-tournament-bracket/dist/vue-tournament-bracket.common.js"(exports, module) { (function() { var __webpack_modules__ = { /***/ 448: ( /***/ function(module2, exports2) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; (function(root, factory) { if (true) { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === "function" ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports2, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== void 0 && (module2.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else { } })(typeof self !== "undefined" ? self : this, function() { function getCurrentScript() { var descriptor = Object.getOwnPropertyDescriptor(document, "currentScript"); if (!descriptor && "currentScript" in document && document.currentScript) { return document.currentScript; } if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) { return document.currentScript; } try { throw new Error(); } catch (err) { var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig, ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig, stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack), scriptLocation = stackDetails && stackDetails[1] || false, line = stackDetails && stackDetails[2] || false, currentLocation = document.location.href.replace(document.location.hash, ""), pageSource, inlineScriptSourceRegExp, inlineScriptSource, scripts = document.getElementsByTagName("script"); if (scriptLocation === currentLocation) { pageSource = document.documentElement.outerHTML; inlineScriptSourceRegExp = new RegExp("(?:[^\\n]+?\\n){0," + (line - 2) + "}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*", "i"); inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, "$1").trim(); } for (var i = 0; i < scripts.length; i++) { if (scripts[i].readyState === "interactive") { return scripts[i]; } if (scripts[i].src === scriptLocation) { return scripts[i]; } if (scriptLocation === currentLocation && scripts[i].innerHTML && scripts[i].innerHTML.trim() === inlineScriptSource) { return scripts[i]; } } return null; } } ; return getCurrentScript; }); } ), /***/ 7152: ( /***/ function(module2, __webpack_exports__2, __webpack_require__2) { "use strict"; __webpack_require__2.r(__webpack_exports__2); var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__2(5500); var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__2.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__2(2312); var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__2.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()); ___CSS_LOADER_EXPORT___.push([module2.id, ".vtb-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}", ""]); __webpack_exports__2["default"] = ___CSS_LOADER_EXPORT___; } ), /***/ 3776: ( /***/ function(module2, __webpack_exports__2, __webpack_require__2) { "use strict"; __webpack_require__2.r(__webpack_exports__2); var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__2(5500); var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__2.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__2(2312); var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__2.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()); ___CSS_LOADER_EXPORT___.push([module2.id, '.vtb-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.vtb-item p{padding:20px;margin:0;background-color:#999}.vtb-item-parent{position:relative;margin-left:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.vtb-item-players{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background-color:#999;margin:0;color:#fff}.vtb-item-players .vtb-player{padding:10px}.vtb-item-players .winner{background-color:#006400}.vtb-item-players .defeated{background-color:#b22222}.vtb-item-players .winner.highlight{background-color:#8fbc8f}.vtb-item-players .defeated.highlight{background-color:#cd5c5c}.vtb-item-parent:after{position:absolute;content:"";width:25px;height:2px;left:0;top:50%;background-color:gray;-webkit-transform:translateX(-100%);transform:translateX(-100%)}.vtb-item-children{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vtb-item-child,.vtb-item-children{display:-webkit-box;display:-ms-flexbox;display:flex}.vtb-item-child{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-top:10px;margin-bottom:10px;position:relative}.vtb-item-child:before{right:0;-webkit-transform:translateX(100%);transform:translateX(100%);width:25px;height:2px}.vtb-item-child:after,.vtb-item-child:before{content:"";position:absolute;background-color:gray;top:50%}.vtb-item-child:after{right:-25px;height:calc(50% + 22px);width:2px}.vtb-item-child:last-child:after{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.vtb-item-child:only-child:after{display:none}', ""]); __webpack_exports__2["default"] = ___CSS_LOADER_EXPORT___; } ), /***/ 2312: ( /***/ function(module2) { "use strict"; module2.exports = function(cssWithMappingToString) { var list = []; list.toString = function toString() { return this.map(function(item) { var content = ""; var needLayer = typeof item[5] !== "undefined"; if (item[4]) { content += "@supports (".concat(item[4], ") {"); } if (item[2]) { content += "@media ".concat(item[2], " {"); } if (needLayer) { content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {"); } content += cssWithMappingToString(item); if (needLayer) { content += "}"; } if (item[2]) { content += "}"; } if (item[4]) { content += "}"; } return content; }).join(""); }; list.i = function i(modules, media, dedupe, supports, layer) { if (typeof modules === "string") { modules = [[null, modules, void 0]]; } var alreadyImportedModules = {}; if (dedupe) { for (var k = 0; k < this.length; k++) { var id = this[k][0]; if (id != null) { alreadyImportedModules[id] = true; } } } for (var _k = 0; _k < modules.length; _k++) { var item = [].concat(modules[_k]); if (dedupe && alreadyImportedModules[item[0]]) { continue; } if (typeof layer !== "undefined") { if (typeof item[5] === "undefined") { item[5] = layer; } else { item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}"); item[5] = layer; } } if (media) { if (!item[2]) { item[2] = media; } else { item[1] = "@media ".concat(item[2], " {").concat(item[1], "}"); item[2] = media; } } if (supports) { if (!item[4]) { item[4] = "".concat(supports); } else { item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}"); item[4] = supports; } } list.push(item); } }; return list; }; } ), /***/ 5500: ( /***/ function(module2) { "use strict"; module2.exports = function(i) { return i[1]; }; } ), /***/ 5796: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { var _objectSpread = __webpack_require__2(2916)["default"]; __webpack_require__2(6568); __webpack_require__2(3248); __webpack_require__2(1040); __webpack_require__2(9640); __webpack_require__2(2984); module2.exports = { transform: function transform2(rounds) { if (!rounds) { return null; } var totalRounds = rounds.length; var currentRound = []; var previousRound = []; var _loop = function _loop2(i2) { currentRound = rounds[i2].games.map(function(game) { return _objectSpread(_objectSpread({}, game), {}, { title: "round " + i2, games: [], hasParent: !!rounds[i2 + 1] }); }); if (previousRound.length === 0) { previousRound = currentRound; return 1; } for (var j = 0; j < previousRound.length; j++) { var matchForCurrentGame = Math.floor(j / 2); currentRound[matchForCurrentGame].games.push(previousRound[j]); } previousRound = currentRound; }; for (var i = 0; i < totalRounds; i++) { if (_loop(i)) continue; } return currentRound[0] || null; }, transformFlatTree: function transformFlatTree(games) { var mapOfGamesPerParent = {}; var root = null; games.forEach(function(game) { if (!game.next && !root) { root = game; return; } if (!mapOfGamesPerParent[game.next]) { mapOfGamesPerParent[game.next] = []; } mapOfGamesPerParent[game.next].push(game); }); var tree = _objectSpread(_objectSpread({}, root), {}, { title: "round", games: [], hasParent: false }); return constructTree(tree, mapOfGamesPerParent, Object.keys(mapOfGamesPerParent).length); } }; function constructTree(tree, mapOfChildren, processedRound) { var totalChildren = mapOfChildren[tree.id] || []; tree.title = "round " + processedRound; for (var i = 0; i < totalChildren.length; i++) { var childGame = totalChildren[i]; var treeChild = _objectSpread(_objectSpread({}, childGame), {}, { title: "round ".concat([processedRound]), hasParent: true, games: [] }); constructTree(treeChild, mapOfChildren, processedRound - 1); tree.games.push(treeChild); } return tree; } } ), /***/ 8152: ( /***/ function(__unused_webpack_module, exports2) { "use strict"; var __webpack_unused_export__; __webpack_unused_export__ = { value: true }; exports2.c = (sfc, props) => { const target = sfc.__vccOpts || sfc; for (const [key, val] of props) { target[key] = val; } return target; }; } ), /***/ 2142: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { var content = __webpack_require__2(7152); if (content.__esModule) content = content.default; if (typeof content === "string") content = [[module2.id, content, ""]]; if (content.locals) module2.exports = content.locals; var add = __webpack_require__2(8024).c; var update = add("86c520de", content, true, { "sourceMap": false, "shadowMode": false }); } ), /***/ 4216: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { var content = __webpack_require__2(3776); if (content.__esModule) content = content.default; if (typeof content === "string") content = [[module2.id, content, ""]]; if (content.locals) module2.exports = content.locals; var add = __webpack_require__2(8024).c; var update = add("4e738482", content, true, { "sourceMap": false, "shadowMode": false }); } ), /***/ 8024: ( /***/ function(__unused_webpack_module, __webpack_exports__2, __webpack_require__2) { "use strict"; __webpack_require__2.d(__webpack_exports__2, { c: function() { return ( /* binding */ addStylesClient ); } }); ; function listToStyles(parentId, list) { var styles = []; var newStyles = {}; for (var i = 0; i < list.length; i++) { var item = list[i]; var id = item[0]; var css = item[1]; var media = item[2]; var sourceMap = item[3]; var part = { id: parentId + ":" + i, css, media, sourceMap }; if (!newStyles[id]) { styles.push(newStyles[id] = { id, parts: [part] }); } else { newStyles[id].parts.push(part); } } return styles; } ; var hasDocument = typeof document !== "undefined"; if (typeof DEBUG !== "undefined" && DEBUG) { if (!hasDocument) { throw new Error( "vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment." ); } } var stylesInDom = { /* [id: number]: { id: number, refs: number, parts: Array<(obj?: StyleObjectPart) => void> } */ }; var head = hasDocument && (document.head || document.getElementsByTagName("head")[0]); var singletonElement = null; var singletonCounter = 0; var isProduction = false; var noop = function() { }; var options = null; var ssrIdKey = "data-vue-ssr-id"; var isOldIE = typeof navigator !== "undefined" && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase()); function addStylesClient(parentId, list, _isProduction, _options) { isProduction = _isProduction; options = _options || {}; var styles = listToStyles(parentId, list); addStylesToDom(styles); return function update(newList) { var mayRemove = []; for (var i = 0; i < styles.length; i++) { var item = styles[i]; var domStyle = stylesInDom[item.id]; domStyle.refs--; mayRemove.push(domStyle); } if (newList) { styles = listToStyles(parentId, newList); addStylesToDom(styles); } else { styles = []; } for (var i = 0; i < mayRemove.length; i++) { var domStyle = mayRemove[i]; if (domStyle.refs === 0) { for (var j = 0; j < domStyle.parts.length; j++) { domStyle.parts[j](); } delete stylesInDom[domStyle.id]; } } }; } function addStylesToDom(styles) { for (var i = 0; i < styles.length; i++) { var item = styles[i]; var domStyle = stylesInDom[item.id]; if (domStyle) { domStyle.refs++; for (var j = 0; j < domStyle.parts.length; j++) { domStyle.parts[j](item.parts[j]); } for (; j < item.parts.length; j++) { domStyle.parts.push(addStyle(item.parts[j])); } if (domStyle.parts.length > item.parts.length) { domStyle.parts.length = item.parts.length; } } else { var parts = []; for (var j = 0; j < item.parts.length; j++) { parts.push(addStyle(item.parts[j])); } stylesInDom[item.id] = { id: item.id, refs: 1, parts }; } } } function createStyleElement() { var styleElement = document.createElement("style"); styleElement.type = "text/css"; head.appendChild(styleElement); return styleElement; } function addStyle(obj) { var update, remove; var styleElement = document.querySelector("style[" + ssrIdKey + '~="' + obj.id + '"]'); if (styleElement) { if (isProduction) { return noop; } else { styleElement.parentNode.removeChild(styleElement); } } if (isOldIE) { var styleIndex = singletonCounter++; styleElement = singletonElement || (singletonElement = createStyleElement()); update = applyToSingletonTag.bind(null, styleElement, styleIndex, false); remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true); } else { styleElement = createStyleElement(); update = applyToTag.bind(null, styleElement); remove = function() { styleElement.parentNode.removeChild(styleElement); }; } update(obj); return function updateStyle(newObj) { if (newObj) { if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) { return; } update(obj = newObj); } else { remove(); } }; } var replaceText = /* @__PURE__ */ function() { var textStore = []; return function(index, replacement) { textStore[index] = replacement; return textStore.filter(Boolean).join("\n"); }; }(); function applyToSingletonTag(styleElement, index, remove, obj) { var css = remove ? "" : obj.css; if (styleElement.styleSheet) { styleElement.styleSheet.cssText = replaceText(index, css); } else { var cssNode = document.createTextNode(css); var childNodes = styleElement.childNodes; if (childNodes[index]) styleElement.removeChild(childNodes[index]); if (childNodes.length) { styleElement.insertBefore(cssNode, childNodes[index]); } else { styleElement.appendChild(cssNode); } } } function applyToTag(styleElement, obj) { var css = obj.css; var media = obj.media; var sourceMap = obj.sourceMap; if (media) { styleElement.setAttribute("media", media); } if (options.ssrId) { styleElement.setAttribute(ssrIdKey, obj.id); } if (sourceMap) { css += "\n/*# sourceURL=" + sourceMap.sources[0] + " */"; css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */"; } if (styleElement.styleSheet) { styleElement.styleSheet.cssText = css; } else { while (styleElement.firstChild) { styleElement.removeChild(styleElement.firstChild); } styleElement.appendChild(document.createTextNode(css)); } } } ), /***/ 1896: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isCallable = __webpack_require__2(9063); var tryToString = __webpack_require__2(4596); var $TypeError = TypeError; module2.exports = function(argument) { if (isCallable(argument)) return argument; throw new $TypeError(tryToString(argument) + " is not a function"); }; } ), /***/ 9472: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isPossiblePrototype = __webpack_require__2(968); var $String = String; var $TypeError = TypeError; module2.exports = function(argument) { if (isPossiblePrototype(argument)) return argument; throw new $TypeError("Can't set " + $String(argument) + " as a prototype"); }; } ), /***/ 2328: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var wellKnownSymbol = __webpack_require__2(9459); var create = __webpack_require__2(8340); var defineProperty = __webpack_require__2(368).f; var UNSCOPABLES = wellKnownSymbol("unscopables"); var ArrayPrototype = Array.prototype; if (ArrayPrototype[UNSCOPABLES] === void 0) { defineProperty(ArrayPrototype, UNSCOPABLES, { configurable: true, value: create(null) }); } module2.exports = function(key) { ArrayPrototype[UNSCOPABLES][key] = true; }; } ), /***/ 6884: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var charAt = __webpack_require__2(1968).charAt; module2.exports = function(S, index, unicode) { return index + (unicode ? charAt(S, index).length : 1); }; } ), /***/ 8424: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isObject2 = __webpack_require__2(808); var $String = String; var $TypeError = TypeError; module2.exports = function(argument) { if (isObject2(argument)) return argument; throw new $TypeError($String(argument) + " is not an object"); }; } ), /***/ 5935: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $forEach = __webpack_require__2(4904).forEach; var arrayMethodIsStrict = __webpack_require__2(4528); var STRICT_METHOD = arrayMethodIsStrict("forEach"); module2.exports = !STRICT_METHOD ? function forEach(callbackfn) { return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); } : [].forEach; } ), /***/ 2196: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var toIndexedObject = __webpack_require__2(9740); var toAbsoluteIndex = __webpack_require__2(4160); var lengthOfArrayLike = __webpack_require__2(9480); var createMethod = function(IS_INCLUDES) { return function($this, el, fromIndex) { var O = toIndexedObject($this); var length = lengthOfArrayLike(O); var index = toAbsoluteIndex(fromIndex, length); var value; if (IS_INCLUDES && el !== el) while (length > index) { value = O[index++]; if (value !== value) return true; } else for (; length > index; index++) { if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; module2.exports = { // `Array.prototype.includes` method // https://tc39.es/ecma262/#sec-array.prototype.includes includes: createMethod(true), // `Array.prototype.indexOf` method // https://tc39.es/ecma262/#sec-array.prototype.indexof indexOf: createMethod(false) }; } ), /***/ 4904: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bind = __webpack_require__2(2880); var uncurryThis = __webpack_require__2(1447); var IndexedObject = __webpack_require__2(6212); var toObject = __webpack_require__2(6804); var lengthOfArrayLike = __webpack_require__2(9480); var arraySpeciesCreate = __webpack_require__2(8488); var push = uncurryThis([].push); var createMethod = function(TYPE) { var IS_MAP = TYPE === 1; var IS_FILTER = TYPE === 2; var IS_SOME = TYPE === 3; var IS_EVERY = TYPE === 4; var IS_FIND_INDEX = TYPE === 6; var IS_FILTER_REJECT = TYPE === 7; var NO_HOLES = TYPE === 5 || IS_FIND_INDEX; return function($this, callbackfn, that, specificCreate) { var O = toObject($this); var self2 = IndexedObject(O); var length = lengthOfArrayLike(self2); var boundFunction = bind(callbackfn, that); var index = 0; var create = specificCreate || arraySpeciesCreate; var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : void 0; var value, result; for (; length > index; index++) if (NO_HOLES || index in self2) { value = self2[index]; result = boundFunction(value, index, O); if (TYPE) { if (IS_MAP) target[index] = result; else if (result) switch (TYPE) { case 3: return true; // some case 5: return value; // find case 6: return index; // findIndex case 2: push(target, value); } else switch (TYPE) { case 4: return false; // every case 7: push(target, value); } } } return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; }; }; module2.exports = { // `Array.prototype.forEach` method // https://tc39.es/ecma262/#sec-array.prototype.foreach forEach: createMethod(0), // `Array.prototype.map` method // https://tc39.es/ecma262/#sec-array.prototype.map map: createMethod(1), // `Array.prototype.filter` method // https://tc39.es/ecma262/#sec-array.prototype.filter filter: createMethod(2), // `Array.prototype.some` method // https://tc39.es/ecma262/#sec-array.prototype.some some: createMethod(3), // `Array.prototype.every` method // https://tc39.es/ecma262/#sec-array.prototype.every every: createMethod(4), // `Array.prototype.find` method // https://tc39.es/ecma262/#sec-array.prototype.find find: createMethod(5), // `Array.prototype.findIndex` method // https://tc39.es/ecma262/#sec-array.prototype.findIndex findIndex: createMethod(6), // `Array.prototype.filterReject` method // https://github.com/tc39/proposal-array-filtering filterReject: createMethod(7) }; } ), /***/ 7776: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var fails = __webpack_require__2(6040); var wellKnownSymbol = __webpack_require__2(9459); var V8_VERSION = __webpack_require__2(3356); var SPECIES = wellKnownSymbol("species"); module2.exports = function(METHOD_NAME) { return V8_VERSION >= 51 || !fails(function() { var array = []; var constructor = array.constructor = {}; constructor[SPECIES] = function() { return { foo: 1 }; }; return array[METHOD_NAME](Boolean).foo !== 1; }); }; } ), /***/ 4528: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var fails = __webpack_require__2(6040); module2.exports = function(METHOD_NAME, argument) { var method = [][METHOD_NAME]; return !!method && fails(function() { method.call(null, argument || function() { return 1; }, 1); }); }; } ), /***/ 7934: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var DESCRIPTORS = __webpack_require__2(3528); var isArray2 = __webpack_require__2(1064); var $TypeError = TypeError; var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function() { if (this !== void 0) return true; try { Object.defineProperty([], "length", { writable: false }).length = 1; } catch (error) { return error instanceof TypeError; } }(); module2.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length) { if (isArray2(O) && !getOwnPropertyDescriptor(O, "length").writable) { throw new $TypeError("Cannot set read only .length"); } return O.length = length; } : function(O, length) { return O.length = length; }; } ), /***/ 7588: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); module2.exports = uncurryThis([].slice); } ), /***/ 2244: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isArray2 = __webpack_require__2(1064); var isConstructor = __webpack_require__2(780); var isObject2 = __webpack_require__2(808); var wellKnownSymbol = __webpack_require__2(9459); var SPECIES = wellKnownSymbol("species"); var $Array = Array; module2.exports = function(originalArray) { var C; if (isArray2(originalArray)) { C = originalArray.constructor; if (isConstructor(C) && (C === $Array || isArray2(C.prototype))) C = void 0; else if (isObject2(C)) { C = C[SPECIES]; if (C === null) C = void 0; } } return C === void 0 ? $Array : C; }; } ), /***/ 8488: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var arraySpeciesConstructor = __webpack_require__2(2244); module2.exports = function(originalArray, length) { return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); }; } ), /***/ 5983: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var toString = uncurryThis({}.toString); var stringSlice = uncurryThis("".slice); module2.exports = function(it) { return stringSlice(toString(it), 8, -1); }; } ), /***/ 8040: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var TO_STRING_TAG_SUPPORT = __webpack_require__2(1712); var isCallable = __webpack_require__2(9063); var classofRaw = __webpack_require__2(5983); var wellKnownSymbol = __webpack_require__2(9459); var TO_STRING_TAG = wellKnownSymbol("toStringTag"); var $Object = Object; var CORRECT_ARGUMENTS = classofRaw(/* @__PURE__ */ function() { return arguments; }()) === "Arguments"; var tryGet = function(it, key) { try { return it[key]; } catch (error) { } }; module2.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) { var O, tag, result; return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) === "Object" && isCallable(O.callee) ? "Arguments" : result; }; } ), /***/ 4304: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var hasOwn = __webpack_require__2(6216); var ownKeys = __webpack_require__2(9976); var getOwnPropertyDescriptorModule = __webpack_require__2(4560); var definePropertyModule = __webpack_require__2(368); module2.exports = function(target, source, exceptions) { var keys = ownKeys(source); var defineProperty = definePropertyModule.f; var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; for (var i = 0; i < keys.length; i++) { var key = keys[i]; if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } } }; } ), /***/ 6740: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var fails = __webpack_require__2(6040); module2.exports = !fails(function() { function F() { } F.prototype.constructor = null; return Object.getPrototypeOf(new F()) !== F.prototype; }); } ), /***/ 2596: ( /***/ function(module2) { "use strict"; module2.exports = function(value, done) { return { value, done }; }; } ), /***/ 3652: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var DESCRIPTORS = __webpack_require__2(3528); var definePropertyModule = __webpack_require__2(368); var createPropertyDescriptor = __webpack_require__2(9200); module2.exports = DESCRIPTORS ? function(object, key, value) { return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); } : function(object, key, value) { object[key] = value; return object; }; } ), /***/ 9200: ( /***/ function(module2) { "use strict"; module2.exports = function(bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value }; }; } ), /***/ 8931: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var toPropertyKey = __webpack_require__2(8732); var definePropertyModule = __webpack_require__2(368); var createPropertyDescriptor = __webpack_require__2(9200); module2.exports = function(object, key, value) { var propertyKey = toPropertyKey(key); if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); else object[propertyKey] = value; }; } ), /***/ 6268: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var anObject = __webpack_require__2(8424); var ordinaryToPrimitive = __webpack_require__2(7664); var $TypeError = TypeError; module2.exports = function(hint) { anObject(this); if (hint === "string" || hint === "default") hint = "string"; else if (hint !== "number") throw new $TypeError("Incorrect hint"); return ordinaryToPrimitive(this, hint); }; } ), /***/ 1720: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var makeBuiltIn = __webpack_require__2(316); var defineProperty = __webpack_require__2(368); module2.exports = function(target, name, descriptor) { if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true }); if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true }); return defineProperty.f(target, name, descriptor); }; } ), /***/ 3244: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isCallable = __webpack_require__2(9063); var definePropertyModule = __webpack_require__2(368); var makeBuiltIn = __webpack_require__2(316); var defineGlobalProperty = __webpack_require__2(1544); module2.exports = function(O, key, value, options) { if (!options) options = {}; var simple = options.enumerable; var name = options.name !== void 0 ? options.name : key; if (isCallable(value)) makeBuiltIn(value, name, options); if (options.global) { if (simple) O[key] = value; else defineGlobalProperty(key, value); } else { try { if (!options.unsafe) delete O[key]; else if (O[key]) simple = true; } catch (error) { } if (simple) O[key] = value; else definePropertyModule.f(O, key, { value, enumerable: false, configurable: !options.nonConfigurable, writable: !options.nonWritable }); } return O; }; } ), /***/ 1544: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var global = __webpack_require__2(5624); var defineProperty = Object.defineProperty; module2.exports = function(key, value) { try { defineProperty(global, key, { value, configurable: true, writable: true }); } catch (error) { global[key] = value; } return value; }; } ), /***/ 3528: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var fails = __webpack_require__2(6040); module2.exports = !fails(function() { return Object.defineProperty({}, 1, { get: function() { return 7; } })[1] !== 7; }); } ), /***/ 9308: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var global = __webpack_require__2(5624); var isObject2 = __webpack_require__2(808); var document2 = global.document; var EXISTS = isObject2(document2) && isObject2(document2.createElement); module2.exports = function(it) { return EXISTS ? document2.createElement(it) : {}; }; } ), /***/ 3272: ( /***/ function(module2) { "use strict"; var $TypeError = TypeError; var MAX_SAFE_INTEGER = 9007199254740991; module2.exports = function(it) { if (it > MAX_SAFE_INTEGER) throw $TypeError("Maximum allowed index exceeded"); return it; }; } ), /***/ 5848: ( /***/ function(module2) { "use strict"; module2.exports = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }; } ), /***/ 8280: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var documentCreateElement = __webpack_require__2(9308); var classList = documentCreateElement("span").classList; var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype; module2.exports = DOMTokenListPrototype === Object.prototype ? void 0 : DOMTokenListPrototype; } ), /***/ 8232: ( /***/ function(module2) { "use strict"; module2.exports = typeof navigator != "undefined" && String(navigator.userAgent) || ""; } ), /***/ 3356: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var global = __webpack_require__2(5624); var userAgent = __webpack_require__2(8232); var process2 = global.process; var Deno = global.Deno; var versions = process2 && process2.versions || Deno && Deno.version; var v8 = versions && versions.v8; var match, version; if (v8) { match = v8.split("."); version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); } if (!version && userAgent) { match = userAgent.match(/Edge\/(\d+)/); if (!match || match[1] >= 74) { match = userAgent.match(/Chrome\/(\d+)/); if (match) version = +match[1]; } } module2.exports = version; } ), /***/ 4656: ( /***/ function(module2) { "use strict"; module2.exports = [ "constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf" ]; } ), /***/ 6064: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var $Error = Error; var replace = uncurryThis("".replace); var TEST = function(arg) { return String(new $Error(arg).stack); }("zxcasd"); var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/; var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST); module2.exports = function(stack2, dropEntries) { if (IS_V8_OR_CHAKRA_STACK && typeof stack2 == "string" && !$Error.prepareStackTrace) { while (dropEntries--) stack2 = replace(stack2, V8_OR_CHAKRA_STACK_ENTRY, ""); } return stack2; }; } ), /***/ 4736: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createNonEnumerableProperty = __webpack_require__2(3652); var clearErrorStack = __webpack_require__2(6064); var ERROR_STACK_INSTALLABLE = __webpack_require__2(1512); var captureStackTrace = Error.captureStackTrace; module2.exports = function(error, C, stack2, dropEntries) { if (ERROR_STACK_INSTALLABLE) { if (captureStackTrace) captureStackTrace(error, C); else createNonEnumerableProperty(error, "stack", clearErrorStack(stack2, dropEntries)); } }; } ), /***/ 1512: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var fails = __webpack_require__2(6040); var createPropertyDescriptor = __webpack_require__2(9200); module2.exports = !fails(function() { var error = new Error("a"); if (!("stack" in error)) return true; Object.defineProperty(error, "stack", createPropertyDescriptor(1, 7)); return error.stack !== 7; }); } ), /***/ 3748: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var global = __webpack_require__2(5624); var getOwnPropertyDescriptor = __webpack_require__2(4560).f; var createNonEnumerableProperty = __webpack_require__2(3652); var defineBuiltIn = __webpack_require__2(3244); var defineGlobalProperty = __webpack_require__2(1544); var copyConstructorProperties = __webpack_require__2(4304); var isForced = __webpack_require__2(5272); module2.exports = function(options, source) { var TARGET = options.target; var GLOBAL = options.global; var STATIC = options.stat; var FORCED, target, key, targetProperty, sourceProperty, descriptor; if (GLOBAL) { target = global; } else if (STATIC) { target = global[TARGET] || defineGlobalProperty(TARGET, {}); } else { target = global[TARGET] && global[TARGET].prototype; } if (target) for (key in source) { sourceProperty = source[key]; if (options.dontCallGetSet) { descriptor = getOwnPropertyDescriptor(target, key); targetProperty = descriptor && descriptor.value; } else targetProperty = target[key]; FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced); if (!FORCED && targetProperty !== void 0) { if (typeof sourceProperty == typeof targetProperty) continue; copyConstructorProperties(sourceProperty, targetProperty); } if (options.sham || targetProperty && targetProperty.sham) { createNonEnumerableProperty(sourceProperty, "sham", true); } defineBuiltIn(target, key, sourceProperty, options); } }; } ), /***/ 6040: ( /***/ function(module2) { "use strict"; module2.exports = function(exec) { try { return !!exec(); } catch (error) { return true; } }; } ), /***/ 8760: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; __webpack_require__2(2644); var call = __webpack_require__2(892); var defineBuiltIn = __webpack_require__2(3244); var regexpExec = __webpack_require__2(8096); var fails = __webpack_require__2(6040); var wellKnownSymbol = __webpack_require__2(9459); var createNonEnumerableProperty = __webpack_require__2(3652); var SPECIES = wellKnownSymbol("species"); var RegExpPrototype = RegExp.prototype; module2.exports = function(KEY, exec, FORCED, SHAM) { var SYMBOL = wellKnownSymbol(KEY); var DELEGATES_TO_SYMBOL = !fails(function() { var O = {}; O[SYMBOL] = function() { return 7; }; return ""[KEY](O) !== 7; }); var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function() { var execCalled = false; var re = /a/; if (KEY === "split") { re = {}; re.constructor = {}; re.constructor[SPECIES] = function() { return re; }; re.flags = ""; re[SYMBOL] = /./[SYMBOL]; } re.exec = function() { execCalled = true; return null; }; re[SYMBOL](""); return !execCalled; }); if (!DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || FORCED) { var nativeRegExpMethod = /./[SYMBOL]; var methods = exec(SYMBOL, ""[KEY], function(nativeMethod, regexp, str, arg2, forceStringMethod) { var $exec = regexp.exec; if ($exec === regexpExec || $exec === RegExpPrototype.exec) { if (DELEGATES_TO_SYMBOL && !forceStringMethod) { return { done: true, value: call(nativeRegExpMethod, regexp, str, arg2) }; } return { done: true, value: call(nativeMethod, str, regexp, arg2) }; } return { done: false }; }); defineBuiltIn(String.prototype, KEY, methods[0]); defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]); } if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], "sham", true); }; } ), /***/ 4744: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var NATIVE_BIND = __webpack_require__2(5744); var FunctionPrototype = Function.prototype; var apply = FunctionPrototype.apply; var call = FunctionPrototype.call; module2.exports = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function() { return call.apply(apply, arguments); }); } ), /***/ 2880: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(8168); var aCallable = __webpack_require__2(1896); var NATIVE_BIND = __webpack_require__2(5744); var bind = uncurryThis(uncurryThis.bind); module2.exports = function(fn, that) { aCallable(fn); return that === void 0 ? fn : NATIVE_BIND ? bind(fn, that) : function() { return fn.apply(that, arguments); }; }; } ), /***/ 5744: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var fails = __webpack_require__2(6040); module2.exports = !fails(function() { var test = (function() { }).bind(); return typeof test != "function" || test.hasOwnProperty("prototype"); }); } ), /***/ 892: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var NATIVE_BIND = __webpack_require__2(5744); var call = Function.prototype.call; module2.exports = NATIVE_BIND ? call.bind(call) : function() { return call.apply(call, arguments); }; } ), /***/ 3788: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var DESCRIPTORS = __webpack_require__2(3528); var hasOwn = __webpack_require__2(6216); var FunctionPrototype = Function.prototype; var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; var EXISTS = hasOwn(FunctionPrototype, "name"); var PROPER = EXISTS && (function something() { }).name === "something"; var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, "name").configurable); module2.exports = { EXISTS, PROPER, CONFIGURABLE }; } ), /***/ 6632: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var aCallable = __webpack_require__2(1896); module2.exports = function(object, key, method) { try { return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method])); } catch (error) { } }; } ), /***/ 8168: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var classofRaw = __webpack_require__2(5983); var uncurryThis = __webpack_require__2(1447); module2.exports = function(fn) { if (classofRaw(fn) === "Function") return uncurryThis(fn); }; } ), /***/ 1447: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var NATIVE_BIND = __webpack_require__2(5744); var FunctionPrototype = Function.prototype; var call = FunctionPrototype.call; var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); module2.exports = NATIVE_BIND ? uncurryThisWithBind : function(fn) { return function() { return call.apply(fn, arguments); }; }; } ), /***/ 4960: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var global = __webpack_require__2(5624); var isCallable = __webpack_require__2(9063); var aFunction = function(argument) { return isCallable(argument) ? argument : void 0; }; module2.exports = function(namespace, method) { return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method]; }; } ), /***/ 6852: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var isArray2 = __webpack_require__2(1064); var isCallable = __webpack_require__2(9063); var classof = __webpack_require__2(5983); var toString = __webpack_require__2(1992); var push = uncurryThis([].push); module2.exports = function(replacer) { if (isCallable(replacer)) return replacer; if (!isArray2(replacer)) return; var rawLength = replacer.length; var keys = []; for (var i = 0; i < rawLength; i++) { var element = replacer[i]; if (typeof element == "string") push(keys, element); else if (typeof element == "number" || classof(element) === "Number" || classof(element) === "String") push(keys, toString(element)); } var keysLength = keys.length; var root = true; return function(key, value) { if (root) { root = false; return value; } if (isArray2(this)) return value; for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value; }; }; } ), /***/ 364: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var aCallable = __webpack_require__2(1896); var isNullOrUndefined = __webpack_require__2(952); module2.exports = function(V, P) { var func = V[P]; return isNullOrUndefined(func) ? void 0 : aCallable(func); }; } ), /***/ 5624: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var check = function(it) { return it && it.Math === Math && it; }; module2.exports = // eslint-disable-next-line es/no-global-this -- safe check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe check(typeof self == "object" && self) || check(typeof __webpack_require__2.g == "object" && __webpack_require__2.g) || check(typeof this == "object" && this) || // eslint-disable-next-line no-new-func -- fallback /* @__PURE__ */ function() { return this; }() || Function("return this")(); } ), /***/ 6216: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var toObject = __webpack_require__2(6804); var hasOwnProperty = uncurryThis({}.hasOwnProperty); module2.exports = Object.hasOwn || function hasOwn(it, key) { return hasOwnProperty(toObject(it), key); }; } ), /***/ 6480: ( /***/ function(module2) { "use strict"; module2.exports = {}; } ), /***/ 6836: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var getBuiltIn = __webpack_require__2(4960); module2.exports = getBuiltIn("document", "documentElement"); } ), /***/ 784: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var DESCRIPTORS = __webpack_require__2(3528); var fails = __webpack_require__2(6040); var createElement = __webpack_require__2(9308); module2.exports = !DESCRIPTORS && !fails(function() { return Object.defineProperty(createElement("div"), "a", { get: function() { return 7; } }).a !== 7; }); } ), /***/ 6212: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var fails = __webpack_require__2(6040); var classof = __webpack_require__2(5983); var $Object = Object; var split = uncurryThis("".split); module2.exports = fails(function() { return !$Object("z").propertyIsEnumerable(0); }) ? function(it) { return classof(it) === "String" ? split(it, "") : $Object(it); } : $Object; } ), /***/ 2744: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isCallable = __webpack_require__2(9063); var isObject2 = __webpack_require__2(808); var setPrototypeOf = __webpack_require__2(5168); module2.exports = function($this, dummy, Wrapper) { var NewTarget, NewTargetPrototype; if ( // it can work only with native `setPrototypeOf` setPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject2(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype ) setPrototypeOf($this, NewTargetPrototype); return $this; }; } ), /***/ 8460: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var isCallable = __webpack_require__2(9063); var store = __webpack_require__2(9136); var functionToString = uncurryThis(Function.toString); if (!isCallable(store.inspectSource)) { store.inspectSource = function(it) { return functionToString(it); }; } module2.exports = store.inspectSource; } ), /***/ 8712: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isObject2 = __webpack_require__2(808); var createNonEnumerableProperty = __webpack_require__2(3652); module2.exports = function(O, options) { if (isObject2(options) && "cause" in options) { createNonEnumerableProperty(O, "cause", options.cause); } }; } ), /***/ 5444: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var NATIVE_WEAK_MAP = __webpack_require__2(280); var global = __webpack_require__2(5624); var isObject2 = __webpack_require__2(808); var createNonEnumerableProperty = __webpack_require__2(3652); var hasOwn = __webpack_require__2(6216); var shared = __webpack_require__2(9136); var sharedKey = __webpack_require__2(8192); var hiddenKeys = __webpack_require__2(6480); var OBJECT_ALREADY_INITIALIZED = "Object already initialized"; var TypeError2 = global.TypeError; var WeakMap2 = global.WeakMap; var set, get, has; var enforce = function(it) { return has(it) ? get(it) : set(it, {}); }; var getterFor = function(TYPE) { return function(it) { var state; if (!isObject2(it) || (state = get(it)).type !== TYPE) { throw new TypeError2("Incompatible receiver, " + TYPE + " required"); } return state; }; }; if (NATIVE_WEAK_MAP || shared.state) { var store = shared.state || (shared.state = new WeakMap2()); store.get = store.get; store.has = store.has; store.set = store.set; set = function(it, metadata) { if (store.has(it)) throw new TypeError2(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; store.set(it, metadata); return metadata; }; get = function(it) { return store.get(it) || {}; }; has = function(it) { return store.has(it); }; } else { var STATE = sharedKey("state"); hiddenKeys[STATE] = true; set = function(it, metadata) { if (hasOwn(it, STATE)) throw new TypeError2(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; createNonEnumerableProperty(it, STATE, metadata); return metadata; }; get = function(it) { return hasOwn(it, STATE) ? it[STATE] : {}; }; has = function(it) { return hasOwn(it, STATE); }; } module2.exports = { set, get, has, enforce, getterFor }; } ), /***/ 1064: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var classof = __webpack_require__2(5983); module2.exports = Array.isArray || function isArray2(argument) { return classof(argument) === "Array"; }; } ), /***/ 9063: ( /***/ function(module2) { "use strict"; var documentAll = typeof document == "object" && document.all; module2.exports = typeof documentAll == "undefined" && documentAll !== void 0 ? function(argument) { return typeof argument == "function" || argument === documentAll; } : function(argument) { return typeof argument == "function"; }; } ), /***/ 780: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var fails = __webpack_require__2(6040); var isCallable = __webpack_require__2(9063); var classof = __webpack_require__2(8040); var getBuiltIn = __webpack_require__2(4960); var inspectSource = __webpack_require__2(8460); var noop = function() { }; var construct = getBuiltIn("Reflect", "construct"); var constructorRegExp = /^\s*(?:class|function)\b/; var exec = uncurryThis(constructorRegExp.exec); var INCORRECT_TO_STRING = !constructorRegExp.test(noop); var isConstructorModern = function isConstructor(argument) { if (!isCallable(argument)) return false; try { construct(noop, [], argument); return true; } catch (error) { return false; } }; var isConstructorLegacy = function isConstructor(argument) { if (!isCallable(argument)) return false; switch (classof(argument)) { case "AsyncFunction": case "GeneratorFunction": case "AsyncGeneratorFunction": return false; } try { return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument)); } catch (error) { return true; } }; isConstructorLegacy.sham = true; module2.exports = !construct || fails(function() { var called; return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() { called = true; }) || called; }) ? isConstructorLegacy : isConstructorModern; } ), /***/ 5272: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var fails = __webpack_require__2(6040); var isCallable = __webpack_require__2(9063); var replacement = /#|\.prototype\./; var isForced = function(feature, detection) { var value = data[normalize(feature)]; return value === POLYFILL ? true : value === NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection; }; var normalize = isForced.normalize = function(string) { return String(string).replace(replacement, ".").toLowerCase(); }; var data = isForced.data = {}; var NATIVE = isForced.NATIVE = "N"; var POLYFILL = isForced.POLYFILL = "P"; module2.exports = isForced; } ), /***/ 952: ( /***/ function(module2) { "use strict"; module2.exports = function(it) { return it === null || it === void 0; }; } ), /***/ 808: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isCallable = __webpack_require__2(9063); module2.exports = function(it) { return typeof it == "object" ? it !== null : isCallable(it); }; } ), /***/ 968: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isObject2 = __webpack_require__2(808); module2.exports = function(argument) { return isObject2(argument) || argument === null; }; } ), /***/ 2804: ( /***/ function(module2) { "use strict"; module2.exports = false; } ), /***/ 6232: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var getBuiltIn = __webpack_require__2(4960); var isCallable = __webpack_require__2(9063); var isPrototypeOf = __webpack_require__2(6056); var USE_SYMBOL_AS_UID = __webpack_require__2(9448); var $Object = Object; module2.exports = USE_SYMBOL_AS_UID ? function(it) { return typeof it == "symbol"; } : function(it) { var $Symbol = getBuiltIn("Symbol"); return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it)); }; } ), /***/ 7936: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var IteratorPrototype = __webpack_require__2(5412).IteratorPrototype; var create = __webpack_require__2(8340); var createPropertyDescriptor = __webpack_require__2(9200); var setToStringTag = __webpack_require__2(4200); var Iterators = __webpack_require__2(4920); var returnThis = function() { return this; }; module2.exports = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { var TO_STRING_TAG = NAME + " Iterator"; IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) }); setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true); Iterators[TO_STRING_TAG] = returnThis; return IteratorConstructor; }; } ), /***/ 8752: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var call = __webpack_require__2(892); var IS_PURE = __webpack_require__2(2804); var FunctionName = __webpack_require__2(3788); var isCallable = __webpack_require__2(9063); var createIteratorConstructor = __webpack_require__2(7936); var getPrototypeOf = __webpack_require__2(1304); var setPrototypeOf = __webpack_require__2(5168); var setToStringTag = __webpack_require__2(4200); var createNonEnumerableProperty = __webpack_require__2(3652); var defineBuiltIn = __webpack_require__2(3244); var wellKnownSymbol = __webpack_require__2(9459); var Iterators = __webpack_require__2(4920); var IteratorsCore = __webpack_require__2(5412); var PROPER_FUNCTION_NAME = FunctionName.PROPER; var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; var IteratorPrototype = IteratorsCore.IteratorPrototype; var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; var ITERATOR = wellKnownSymbol("iterator"); var KEYS = "keys"; var VALUES = "values"; var ENTRIES = "entries"; var returnThis = function() { return this; }; module2.exports = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { createIteratorConstructor(IteratorConstructor, NAME, next); var getIterationMethod = function(KIND) { if (KIND === DEFAULT && defaultIterator) return defaultIterator; if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND]; switch (KIND) { case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; case VALUES: return function values() { return new IteratorConstructor(this, KIND); }; case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; } return function() { return new IteratorConstructor(this); }; }; var TO_STRING_TAG = NAME + " Iterator"; var INCORRECT_VALUES_NAME = false; var IterablePrototype = Iterable.prototype; var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype["@@iterator"] || DEFAULT && IterablePrototype[DEFAULT]; var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); var anyNativeIterator = NAME === "Array" ? IterablePrototype.entries || nativeIterator : nativeIterator; var CurrentIteratorPrototype, methods, KEY; if (anyNativeIterator) { CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { if (setPrototypeOf) { setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype); } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) { defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis); } } setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true); if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis; } } if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) { if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) { createNonEnumerableProperty(IterablePrototype, "name", VALUES); } else { INCORRECT_VALUES_NAME = true; defaultIterator = function values() { return call(nativeIterator, this); }; } } if (DEFAULT) { methods = { values: getIterationMethod(VALUES), keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), entries: getIterationMethod(ENTRIES) }; if (FORCED) for (KEY in methods) { if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { defineBuiltIn(IterablePrototype, KEY, methods[KEY]); } } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); } if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) { defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT }); } Iterators[NAME] = defaultIterator; return methods; }; } ), /***/ 5412: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var fails = __webpack_require__2(6040); var isCallable = __webpack_require__2(9063); var isObject2 = __webpack_require__2(808); var create = __webpack_require__2(8340); var getPrototypeOf = __webpack_require__2(1304); var defineBuiltIn = __webpack_require__2(3244); var wellKnownSymbol = __webpack_require__2(9459); var IS_PURE = __webpack_require__2(2804); var ITERATOR = wellKnownSymbol("iterator"); var BUGGY_SAFARI_ITERATORS = false; var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; if ([].keys) { arrayIterator = [].keys(); if (!("next" in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; else { PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; } } var NEW_ITERATOR_PROTOTYPE = !isObject2(IteratorPrototype) || fails(function() { var test = {}; return IteratorPrototype[ITERATOR].call(test) !== test; }); if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {}; else if (IS_PURE) IteratorPrototype = create(IteratorPrototype); if (!isCallable(IteratorPrototype[ITERATOR])) { defineBuiltIn(IteratorPrototype, ITERATOR, function() { return this; }); } module2.exports = { IteratorPrototype, BUGGY_SAFARI_ITERATORS }; } ), /***/ 4920: ( /***/ function(module2) { "use strict"; module2.exports = {}; } ), /***/ 9480: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var toLength = __webpack_require__2(960); module2.exports = function(obj) { return toLength(obj.length); }; } ), /***/ 316: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var fails = __webpack_require__2(6040); var isCallable = __webpack_require__2(9063); var hasOwn = __webpack_require__2(6216); var DESCRIPTORS = __webpack_require__2(3528); var CONFIGURABLE_FUNCTION_NAME = __webpack_require__2(3788).CONFIGURABLE; var inspectSource = __webpack_require__2(8460); var InternalStateModule = __webpack_require__2(5444); var enforceInternalState = InternalStateModule.enforce; var getInternalState = InternalStateModule.get; var $String = String; var defineProperty = Object.defineProperty; var stringSlice = uncurryThis("".slice); var replace = uncurryThis("".replace); var join = uncurryThis([].join); var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function() { return defineProperty(function() { }, "length", { value: 8 }).length !== 8; }); var TEMPLATE = String(String).split("String"); var makeBuiltIn = module2.exports = function(value, name, options) { if (stringSlice($String(name), 0, 7) === "Symbol(") { name = "[" + replace($String(name), /^Symbol\(([^)]*)\).*$/, "$1") + "]"; } if (options && options.getter) name = "get " + name; if (options && options.setter) name = "set " + name; if (!hasOwn(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) { if (DESCRIPTORS) defineProperty(value, "name", { value: name, configurable: true }); else value.name = name; } if (CONFIGURABLE_LENGTH && options && hasOwn(options, "arity") && value.length !== options.arity) { defineProperty(value, "length", { value: options.arity }); } try { if (options && hasOwn(options, "constructor") && options.constructor) { if (DESCRIPTORS) defineProperty(value, "prototype", { writable: false }); } else if (value.prototype) value.prototype = void 0; } catch (error) { } var state = enforceInternalState(value); if (!hasOwn(state, "source")) { state.source = join(TEMPLATE, typeof name == "string" ? name : ""); } return value; }; Function.prototype.toString = makeBuiltIn(function toString() { return isCallable(this) && getInternalState(this).source || inspectSource(this); }, "toString"); } ), /***/ 1736: ( /***/ function(module2) { "use strict"; var ceil = Math.ceil; var floor = Math.floor; module2.exports = Math.trunc || function trunc(x) { var n = +x; return (n > 0 ? floor : ceil)(n); }; } ), /***/ 8659: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var toString = __webpack_require__2(1992); module2.exports = function(argument, $default) { return argument === void 0 ? arguments.length < 2 ? "" : $default : toString(argument); }; } ), /***/ 7048: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var DESCRIPTORS = __webpack_require__2(3528); var uncurryThis = __webpack_require__2(1447); var call = __webpack_require__2(892); var fails = __webpack_require__2(6040); var objectKeys = __webpack_require__2(4152); var getOwnPropertySymbolsModule = __webpack_require__2(8167); var propertyIsEnumerableModule = __webpack_require__2(2460); var toObject = __webpack_require__2(6804); var IndexedObject = __webpack_require__2(6212); var $assign = Object.assign; var defineProperty = Object.defineProperty; var concat = uncurryThis([].concat); module2.exports = !$assign || fails(function() { if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, "a", { enumerable: true, get: function() { defineProperty(this, "b", { value: 3, enumerable: false }); } }), { b: 2 })).b !== 1) return true; var A = {}; var B = {}; var symbol = Symbol("assign detection"); var alphabet = "abcdefghijklmnopqrst"; A[symbol] = 7; alphabet.split("").forEach(function(chr) { B[chr] = chr; }); return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join("") !== alphabet; }) ? function assign(target, source) { var T = toObject(target); var argumentsLength = arguments.length; var index = 1; var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; var propertyIsEnumerable = propertyIsEnumerableModule.f; while (argumentsLength > index) { var S = IndexedObject(arguments[index++]); var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S); var length = keys.length; var j = 0; var key; while (length > j) { key = keys[j++]; if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key]; } } return T; } : $assign; } ), /***/ 8340: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var anObject = __webpack_require__2(8424); var definePropertiesModule = __webpack_require__2(5045); var enumBugKeys = __webpack_require__2(4656); var hiddenKeys = __webpack_require__2(6480); var html = __webpack_require__2(6836); var documentCreateElement = __webpack_require__2(9308); var sharedKey = __webpack_require__2(8192); var GT = ">"; var LT = "<"; var PROTOTYPE = "prototype"; var SCRIPT = "script"; var IE_PROTO = sharedKey("IE_PROTO"); var EmptyConstructor = function() { }; var scriptTag = function(content) { return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT; }; var NullProtoObjectViaActiveX = function(activeXDocument2) { activeXDocument2.write(scriptTag("")); activeXDocument2.close(); var temp = activeXDocument2.parentWindow.Object; activeXDocument2 = null; return temp; }; var NullProtoObjectViaIFrame = function() { var iframe = documentCreateElement("iframe"); var JS = "java" + SCRIPT + ":"; var iframeDocument; iframe.style.display = "none"; html.appendChild(iframe); iframe.src = String(JS); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write(scriptTag("document.F=Object")); iframeDocument.close(); return iframeDocument.F; }; var activeXDocument; var NullProtoObject = function() { try { activeXDocument = new ActiveXObject("htmlfile"); } catch (error) { } NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); var length = enumBugKeys.length; while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; return NullProtoObject(); }; hiddenKeys[IE_PROTO] = true; module2.exports = Object.create || function create(O, Properties) { var result; if (O !== null) { EmptyConstructor[PROTOTYPE] = anObject(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE] = null; result[IE_PROTO] = O; } else result = NullProtoObject(); return Properties === void 0 ? result : definePropertiesModule.f(result, Properties); }; } ), /***/ 5045: ( /***/ function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var DESCRIPTORS = __webpack_require__2(3528); var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__2(4859); var definePropertyModule = __webpack_require__2(368); var anObject = __webpack_require__2(8424); var toIndexedObject = __webpack_require__2(9740); var objectKeys = __webpack_require__2(4152); exports2.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { anObject(O); var props = toIndexedObject(Properties); var keys = objectKeys(Properties); var length = keys.length; var index = 0; var key; while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]); return O; }; } ), /***/ 368: ( /***/ function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var DESCRIPTORS = __webpack_require__2(3528); var IE8_DOM_DEFINE = __webpack_require__2(784); var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__2(4859); var anObject = __webpack_require__2(8424); var toPropertyKey = __webpack_require__2(8732); var $TypeError = TypeError; var $defineProperty = Object.defineProperty; var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var ENUMERABLE = "enumerable"; var CONFIGURABLE = "configurable"; var WRITABLE = "writable"; exports2.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { anObject(O); P = toPropertyKey(P); anObject(Attributes); if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { var current = $getOwnPropertyDescriptor(O, P); if (current && current[WRITABLE]) { O[P] = Attributes.value; Attributes = { configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE], enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], writable: false }; } } return $defineProperty(O, P, Attributes); } : $defineProperty : function defineProperty(O, P, Attributes) { anObject(O); P = toPropertyKey(P); anObject(Attributes); if (IE8_DOM_DEFINE) try { return $defineProperty(O, P, Attributes); } catch (error) { } if ("get" in Attributes || "set" in Attributes) throw new $TypeError("Accessors not supported"); if ("value" in Attributes) O[P] = Attributes.value; return O; }; } ), /***/ 4560: ( /***/ function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var DESCRIPTORS = __webpack_require__2(3528); var call = __webpack_require__2(892); var propertyIsEnumerableModule = __webpack_require__2(2460); var createPropertyDescriptor = __webpack_require__2(9200); var toIndexedObject = __webpack_require__2(9740); var toPropertyKey = __webpack_require__2(8732); var hasOwn = __webpack_require__2(6216); var IE8_DOM_DEFINE = __webpack_require__2(784); var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; exports2.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject(O); P = toPropertyKey(P); if (IE8_DOM_DEFINE) try { return $getOwnPropertyDescriptor(O, P); } catch (error) { } if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]); }; } ), /***/ 4856: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var classof = __webpack_require__2(5983); var toIndexedObject = __webpack_require__2(9740); var $getOwnPropertyNames = __webpack_require__2(692).f; var arraySlice = __webpack_require__2(7588); var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function(it) { try { return $getOwnPropertyNames(it); } catch (error) { return arraySlice(windowNames); } }; module2.exports.f = function getOwnPropertyNames(it) { return windowNames && classof(it) === "Window" ? getWindowNames(it) : $getOwnPropertyNames(toIndexedObject(it)); }; } ), /***/ 692: ( /***/ function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var internalObjectKeys = __webpack_require__2(9232); var enumBugKeys = __webpack_require__2(4656); var hiddenKeys = enumBugKeys.concat("length", "prototype"); exports2.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return internalObjectKeys(O, hiddenKeys); }; } ), /***/ 8167: ( /***/ function(__unused_webpack_module, exports2) { "use strict"; exports2.f = Object.getOwnPropertySymbols; } ), /***/ 1304: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var hasOwn = __webpack_require__2(6216); var isCallable = __webpack_require__2(9063); var toObject = __webpack_require__2(6804); var sharedKey = __webpack_require__2(8192); var CORRECT_PROTOTYPE_GETTER = __webpack_require__2(6740); var IE_PROTO = sharedKey("IE_PROTO"); var $Object = Object; var ObjectPrototype = $Object.prototype; module2.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function(O) { var object = toObject(O); if (hasOwn(object, IE_PROTO)) return object[IE_PROTO]; var constructor = object.constructor; if (isCallable(constructor) && object instanceof constructor) { return constructor.prototype; } return object instanceof $Object ? ObjectPrototype : null; }; } ), /***/ 6056: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); module2.exports = uncurryThis({}.isPrototypeOf); } ), /***/ 9232: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var hasOwn = __webpack_require__2(6216); var toIndexedObject = __webpack_require__2(9740); var indexOf = __webpack_require__2(2196).indexOf; var hiddenKeys = __webpack_require__2(6480); var push = uncurryThis([].push); module2.exports = function(object, names) { var O = toIndexedObject(object); var i = 0; var result = []; var key; for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key); while (names.length > i) if (hasOwn(O, key = names[i++])) { ~indexOf(result, key) || push(result, key); } return result; }; } ), /***/ 4152: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var internalObjectKeys = __webpack_require__2(9232); var enumBugKeys = __webpack_require__2(4656); module2.exports = Object.keys || function keys(O) { return internalObjectKeys(O, enumBugKeys); }; } ), /***/ 2460: ( /***/ function(__unused_webpack_module, exports2) { "use strict"; var $propertyIsEnumerable = {}.propertyIsEnumerable; var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1); exports2.f = NASHORN_BUG ? function propertyIsEnumerable(V) { var descriptor = getOwnPropertyDescriptor(this, V); return !!descriptor && descriptor.enumerable; } : $propertyIsEnumerable; } ), /***/ 5168: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThisAccessor = __webpack_require__2(6632); var anObject = __webpack_require__2(8424); var aPossiblePrototype = __webpack_require__2(9472); module2.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() { var CORRECT_SETTER = false; var test = {}; var setter; try { setter = uncurryThisAccessor(Object.prototype, "__proto__", "set"); setter(test, []); CORRECT_SETTER = test instanceof Array; } catch (error) { } return function setPrototypeOf(O, proto) { anObject(O); aPossiblePrototype(proto); if (CORRECT_SETTER) setter(O, proto); else O.__proto__ = proto; return O; }; }() : void 0); } ), /***/ 3532: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var TO_STRING_TAG_SUPPORT = __webpack_require__2(1712); var classof = __webpack_require__2(8040); module2.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() { return "[object " + classof(this) + "]"; }; } ), /***/ 7664: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var call = __webpack_require__2(892); var isCallable = __webpack_require__2(9063); var isObject2 = __webpack_require__2(808); var $TypeError = TypeError; module2.exports = function(input, pref) { var fn, val; if (pref === "string" && isCallable(fn = input.toString) && !isObject2(val = call(fn, input))) return val; if (isCallable(fn = input.valueOf) && !isObject2(val = call(fn, input))) return val; if (pref !== "string" && isCallable(fn = input.toString) && !isObject2(val = call(fn, input))) return val; throw new $TypeError("Can't convert object to primitive value"); }; } ), /***/ 9976: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var getBuiltIn = __webpack_require__2(4960); var uncurryThis = __webpack_require__2(1447); var getOwnPropertyNamesModule = __webpack_require__2(692); var getOwnPropertySymbolsModule = __webpack_require__2(8167); var anObject = __webpack_require__2(8424); var concat = uncurryThis([].concat); module2.exports = getBuiltIn("Reflect", "ownKeys") || function ownKeys(it) { var keys = getOwnPropertyNamesModule.f(anObject(it)); var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; }; } ), /***/ 4880: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var global = __webpack_require__2(5624); module2.exports = global; } ), /***/ 9904: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var defineProperty = __webpack_require__2(368).f; module2.exports = function(Target, Source, key) { key in Target || defineProperty(Target, key, { configurable: true, get: function() { return Source[key]; }, set: function(it) { Source[key] = it; } }); }; } ), /***/ 1456: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var call = __webpack_require__2(892); var anObject = __webpack_require__2(8424); var isCallable = __webpack_require__2(9063); var classof = __webpack_require__2(5983); var regexpExec = __webpack_require__2(8096); var $TypeError = TypeError; module2.exports = function(R, S) { var exec = R.exec; if (isCallable(exec)) { var result = call(exec, R, S); if (result !== null) anObject(result); return result; } if (classof(R) === "RegExp") return call(regexpExec, R, S); throw new $TypeError("RegExp#exec called on incompatible receiver"); }; } ), /***/ 8096: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var call = __webpack_require__2(892); var uncurryThis = __webpack_require__2(1447); var toString = __webpack_require__2(1992); var regexpFlags = __webpack_require__2(8020); var stickyHelpers = __webpack_require__2(8548); var shared = __webpack_require__2(8196); var create = __webpack_require__2(8340); var getInternalState = __webpack_require__2(5444).get; var UNSUPPORTED_DOT_ALL = __webpack_require__2(9160); var UNSUPPORTED_NCG = __webpack_require__2(7416); var nativeReplace = shared("native-string-replace", String.prototype.replace); var nativeExec = RegExp.prototype.exec; var patchedExec = nativeExec; var charAt = uncurryThis("".charAt); var indexOf = uncurryThis("".indexOf); var replace = uncurryThis("".replace); var stringSlice = uncurryThis("".slice); var UPDATES_LAST_INDEX_WRONG = function() { var re1 = /a/; var re2 = /b*/g; call(nativeExec, re1, "a"); call(nativeExec, re2, "a"); return re1.lastIndex !== 0 || re2.lastIndex !== 0; }(); var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET; var NPCG_INCLUDED = /()??/.exec("")[1] !== void 0; var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG; if (PATCH) { patchedExec = function exec(string) { var re = this; var state = getInternalState(re); var str = toString(string); var raw = state.raw; var result, reCopy, lastIndex, match, i, object, group; if (raw) { raw.lastIndex = re.lastIndex; result = call(patchedExec, raw, str); re.lastIndex = raw.lastIndex; return result; } var groups = state.groups; var sticky = UNSUPPORTED_Y && re.sticky; var flags = call(regexpFlags, re); var source = re.source; var charsAdded = 0; var strCopy = str; if (sticky) { flags = replace(flags, "y", ""); if (indexOf(flags, "g") === -1) { flags += "g"; } strCopy = stringSlice(str, re.lastIndex); if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== "\n")) { source = "(?: " + source + ")"; strCopy = " " + strCopy; charsAdded++; } reCopy = new RegExp("^(?:" + source + ")", flags); } if (NPCG_INCLUDED) { reCopy = new RegExp("^" + source + "$(?!\\s)", flags); } if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; match = call(nativeExec, sticky ? reCopy : re, strCopy); if (sticky) { if (match) { match.input = stringSlice(match.input, charsAdded); match[0] = stringSlice(match[0], charsAdded); match.index = re.lastIndex; re.lastIndex += match[0].length; } else re.lastIndex = 0; } else if (UPDATES_LAST_INDEX_WRONG && match) { re.lastIndex = re.global ? match.index + match[0].length : lastIndex; } if (NPCG_INCLUDED && match && match.length > 1) { call(nativeReplace, match[0], reCopy, function() { for (i = 1; i < arguments.length - 2; i++) { if (arguments[i] === void 0) match[i] = void 0; } }); } if (match && groups) { match.groups = object = create(null); for (i = 0; i < groups.length; i++) { group = groups[i]; object[group[0]] = match[group[1]]; } } return match; }; } module2.exports = patchedExec; } ), /***/ 8020: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var anObject = __webpack_require__2(8424); module2.exports = function() { var that = anObject(this); var result = ""; if (that.hasIndices) result += "d"; if (that.global) result += "g"; if (that.ignoreCase) result += "i"; if (that.multiline) result += "m"; if (that.dotAll) result += "s"; if (that.unicode) result += "u"; if (that.unicodeSets) result += "v"; if (that.sticky) result += "y"; return result; }; } ), /***/ 8548: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var fails = __webpack_require__2(6040); var global = __webpack_require__2(5624); var $RegExp = global.RegExp; var UNSUPPORTED_Y = fails(function() { var re = $RegExp("a", "y"); re.lastIndex = 2; return re.exec("abcd") !== null; }); var MISSED_STICKY = UNSUPPORTED_Y || fails(function() { return !$RegExp("a", "y").sticky; }); var BROKEN_CARET = UNSUPPORTED_Y || fails(function() { var re = $RegExp("^r", "gy"); re.lastIndex = 2; return re.exec("str") !== null; }); module2.exports = { BROKEN_CARET, MISSED_STICKY, UNSUPPORTED_Y }; } ), /***/ 9160: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var fails = __webpack_require__2(6040); var global = __webpack_require__2(5624); var $RegExp = global.RegExp; module2.exports = fails(function() { var re = $RegExp(".", "s"); return !(re.dotAll && re.test("\n") && re.flags === "s"); }); } ), /***/ 7416: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var fails = __webpack_require__2(6040); var global = __webpack_require__2(5624); var $RegExp = global.RegExp; module2.exports = fails(function() { var re = $RegExp("(?<a>b)", "g"); return re.exec("b").groups.a !== "b" || "b".replace(re, "$<a>c") !== "bc"; }); } ), /***/ 2696: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isNullOrUndefined = __webpack_require__2(952); var $TypeError = TypeError; module2.exports = function(it) { if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it); return it; }; } ), /***/ 4200: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var defineProperty = __webpack_require__2(368).f; var hasOwn = __webpack_require__2(6216); var wellKnownSymbol = __webpack_require__2(9459); var TO_STRING_TAG = wellKnownSymbol("toStringTag"); module2.exports = function(target, TAG, STATIC) { if (target && !STATIC) target = target.prototype; if (target && !hasOwn(target, TO_STRING_TAG)) { defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG }); } }; } ), /***/ 8192: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var shared = __webpack_require__2(8196); var uid = __webpack_require__2(320); var keys = shared("keys"); module2.exports = function(key) { return keys[key] || (keys[key] = uid(key)); }; } ), /***/ 9136: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var global = __webpack_require__2(5624); var defineGlobalProperty = __webpack_require__2(1544); var SHARED = "__core-js_shared__"; var store = global[SHARED] || defineGlobalProperty(SHARED, {}); module2.exports = store; } ), /***/ 8196: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var IS_PURE = __webpack_require__2(2804); var store = __webpack_require__2(9136); (module2.exports = function(key, value) { return store[key] || (store[key] = value !== void 0 ? value : {}); })("versions", []).push({ version: "3.35.1", mode: IS_PURE ? "pure" : "global", copyright: "© 2014-2024 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE", source: "https://github.com/zloirock/core-js" }); } ), /***/ 1968: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var toIntegerOrInfinity = __webpack_require__2(3288); var toString = __webpack_require__2(1992); var requireObjectCoercible = __webpack_require__2(2696); var charAt = uncurryThis("".charAt); var charCodeAt = uncurryThis("".charCodeAt); var stringSlice = uncurryThis("".slice); var createMethod = function(CONVERT_TO_STRING) { return function($this, pos) { var S = toString(requireObjectCoercible($this)); var position = toIntegerOrInfinity(pos); var size = S.length; var first, second; if (position < 0 || position >= size) return CONVERT_TO_STRING ? "" : void 0; first = charCodeAt(S, position); return first < 55296 || first > 56319 || position + 1 === size || (second = charCodeAt(S, position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? charAt(S, position) : first : CONVERT_TO_STRING ? stringSlice(S, position, position + 2) : (first - 55296 << 10) + (second - 56320) + 65536; }; }; module2.exports = { // `String.prototype.codePointAt` method // https://tc39.es/ecma262/#sec-string.prototype.codepointat codeAt: createMethod(false), // `String.prototype.at` method // https://github.com/mathiasbynens/String.prototype.at charAt: createMethod(true) }; } ), /***/ 1096: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var requireObjectCoercible = __webpack_require__2(2696); var toString = __webpack_require__2(1992); var whitespaces = __webpack_require__2(3388); var replace = uncurryThis("".replace); var ltrim = RegExp("^[" + whitespaces + "]+"); var rtrim = RegExp("(^|[^" + whitespaces + "])[" + whitespaces + "]+$"); var createMethod = function(TYPE) { return function($this) { var string = toString(requireObjectCoercible($this)); if (TYPE & 1) string = replace(string, ltrim, ""); if (TYPE & 2) string = replace(string, rtrim, "$1"); return string; }; }; module2.exports = { // `String.prototype.{ trimLeft, trimStart }` methods // https://tc39.es/ecma262/#sec-string.prototype.trimstart start: createMethod(1), // `String.prototype.{ trimRight, trimEnd }` methods // https://tc39.es/ecma262/#sec-string.prototype.trimend end: createMethod(2), // `String.prototype.trim` method // https://tc39.es/ecma262/#sec-string.prototype.trim trim: createMethod(3) }; } ), /***/ 8972: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var V8_VERSION = __webpack_require__2(3356); var fails = __webpack_require__2(6040); var global = __webpack_require__2(5624); var $String = global.String; module2.exports = !!Object.getOwnPropertySymbols && !fails(function() { var symbol = Symbol("symbol detection"); return !$String(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances !Symbol.sham && V8_VERSION && V8_VERSION < 41; }); } ), /***/ 4208: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var call = __webpack_require__2(892); var getBuiltIn = __webpack_require__2(4960); var wellKnownSymbol = __webpack_require__2(9459); var defineBuiltIn = __webpack_require__2(3244); module2.exports = function() { var Symbol2 = getBuiltIn("Symbol"); var SymbolPrototype = Symbol2 && Symbol2.prototype; var valueOf = SymbolPrototype && SymbolPrototype.valueOf; var TO_PRIMITIVE = wellKnownSymbol("toPrimitive"); if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) { defineBuiltIn(SymbolPrototype, TO_PRIMITIVE, function(hint) { return call(valueOf, this); }, { arity: 1 }); } }; } ), /***/ 4680: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var NATIVE_SYMBOL = __webpack_require__2(8972); module2.exports = NATIVE_SYMBOL && !!Symbol["for"] && !!Symbol.keyFor; } ), /***/ 4128: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); module2.exports = uncurryThis(1 .valueOf); } ), /***/ 4160: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var toIntegerOrInfinity = __webpack_require__2(3288); var max = Math.max; var min = Math.min; module2.exports = function(index, length) { var integer = toIntegerOrInfinity(index); return integer < 0 ? max(integer + length, 0) : min(integer, length); }; } ), /***/ 9740: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var IndexedObject = __webpack_require__2(6212); var requireObjectCoercible = __webpack_require__2(2696); module2.exports = function(it) { return IndexedObject(requireObjectCoercible(it)); }; } ), /***/ 3288: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var trunc = __webpack_require__2(1736); module2.exports = function(argument) { var number = +argument; return number !== number || number === 0 ? 0 : trunc(number); }; } ), /***/ 960: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var toIntegerOrInfinity = __webpack_require__2(3288); var min = Math.min; module2.exports = function(argument) { var len = toIntegerOrInfinity(argument); return len > 0 ? min(len, 9007199254740991) : 0; }; } ), /***/ 6804: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var requireObjectCoercible = __webpack_require__2(2696); var $Object = Object; module2.exports = function(argument) { return $Object(requireObjectCoercible(argument)); }; } ), /***/ 8176: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var call = __webpack_require__2(892); var isObject2 = __webpack_require__2(808); var isSymbol2 = __webpack_require__2(6232); var getMethod = __webpack_require__2(364); var ordinaryToPrimitive = __webpack_require__2(7664); var wellKnownSymbol = __webpack_require__2(9459); var $TypeError = TypeError; var TO_PRIMITIVE = wellKnownSymbol("toPrimitive"); module2.exports = function(input, pref) { if (!isObject2(input) || isSymbol2(input)) return input; var exoticToPrim = getMethod(input, TO_PRIMITIVE); var result; if (exoticToPrim) { if (pref === void 0) pref = "default"; result = call(exoticToPrim, input, pref); if (!isObject2(result) || isSymbol2(result)) return result; throw new $TypeError("Can't convert object to primitive value"); } if (pref === void 0) pref = "number"; return ordinaryToPrimitive(input, pref); }; } ), /***/ 8732: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var toPrimitive = __webpack_require__2(8176); var isSymbol2 = __webpack_require__2(6232); module2.exports = function(argument) { var key = toPrimitive(argument, "string"); return isSymbol2(key) ? key : key + ""; }; } ), /***/ 1712: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var wellKnownSymbol = __webpack_require__2(9459); var TO_STRING_TAG = wellKnownSymbol("toStringTag"); var test = {}; test[TO_STRING_TAG] = "z"; module2.exports = String(test) === "[object z]"; } ), /***/ 1992: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var classof = __webpack_require__2(8040); var $String = String; module2.exports = function(argument) { if (classof(argument) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string"); return $String(argument); }; } ), /***/ 4596: ( /***/ function(module2) { "use strict"; var $String = String; module2.exports = function(argument) { try { return $String(argument); } catch (error) { return "Object"; } }; } ), /***/ 320: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var uncurryThis = __webpack_require__2(1447); var id = 0; var postfix = Math.random(); var toString = uncurryThis(1 .toString); module2.exports = function(key) { return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString(++id + postfix, 36); }; } ), /***/ 9448: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var NATIVE_SYMBOL = __webpack_require__2(8972); module2.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == "symbol"; } ), /***/ 4859: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var DESCRIPTORS = __webpack_require__2(3528); var fails = __webpack_require__2(6040); module2.exports = DESCRIPTORS && fails(function() { return Object.defineProperty(function() { }, "prototype", { value: 42, writable: false }).prototype !== 42; }); } ), /***/ 280: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var global = __webpack_require__2(5624); var isCallable = __webpack_require__2(9063); var WeakMap2 = global.WeakMap; module2.exports = isCallable(WeakMap2) && /native code/.test(String(WeakMap2)); } ), /***/ 9635: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var path = __webpack_require__2(4880); var hasOwn = __webpack_require__2(6216); var wrappedWellKnownSymbolModule = __webpack_require__2(7732); var defineProperty = __webpack_require__2(368).f; module2.exports = function(NAME) { var Symbol2 = path.Symbol || (path.Symbol = {}); if (!hasOwn(Symbol2, NAME)) defineProperty(Symbol2, NAME, { value: wrappedWellKnownSymbolModule.f(NAME) }); }; } ), /***/ 7732: ( /***/ function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var wellKnownSymbol = __webpack_require__2(9459); exports2.f = wellKnownSymbol; } ), /***/ 9459: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var global = __webpack_require__2(5624); var shared = __webpack_require__2(8196); var hasOwn = __webpack_require__2(6216); var uid = __webpack_require__2(320); var NATIVE_SYMBOL = __webpack_require__2(8972); var USE_SYMBOL_AS_UID = __webpack_require__2(9448); var Symbol2 = global.Symbol; var WellKnownSymbolsStore = shared("wks"); var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2["for"] || Symbol2 : Symbol2 && Symbol2.withoutSetter || uid; module2.exports = function(name) { if (!hasOwn(WellKnownSymbolsStore, name)) { WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol2, name) ? Symbol2[name] : createWellKnownSymbol("Symbol." + name); } return WellKnownSymbolsStore[name]; }; } ), /***/ 3388: ( /***/ function(module2) { "use strict"; module2.exports = " \n\v\f\r                 \u2028\u2029\uFEFF"; } ), /***/ 5240: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var getBuiltIn = __webpack_require__2(4960); var hasOwn = __webpack_require__2(6216); var createNonEnumerableProperty = __webpack_require__2(3652); var isPrototypeOf = __webpack_require__2(6056); var setPrototypeOf = __webpack_require__2(5168); var copyConstructorProperties = __webpack_require__2(4304); var proxyAccessor = __webpack_require__2(9904); var inheritIfRequired = __webpack_require__2(2744); var normalizeStringArgument = __webpack_require__2(8659); var installErrorCause = __webpack_require__2(8712); var installErrorStack = __webpack_require__2(4736); var DESCRIPTORS = __webpack_require__2(3528); var IS_PURE = __webpack_require__2(2804); module2.exports = function(FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) { var STACK_TRACE_LIMIT = "stackTraceLimit"; var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1; var path = FULL_NAME.split("."); var ERROR_NAME = path[path.length - 1]; var OriginalError = getBuiltIn.apply(null, path); if (!OriginalError) return; var OriginalErrorPrototype = OriginalError.prototype; if (!IS_PURE && hasOwn(OriginalErrorPrototype, "cause")) delete OriginalErrorPrototype.cause; if (!FORCED) return OriginalError; var BaseError = getBuiltIn("Error"); var WrappedError = wrapper(function(a, b) { var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, void 0); var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError(); if (message !== void 0) createNonEnumerableProperty(result, "message", message); installErrorStack(result, WrappedError, result.stack, 2); if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError); if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]); return result; }); WrappedError.prototype = OriginalErrorPrototype; if (ERROR_NAME !== "Error") { if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError); else copyConstructorProperties(WrappedError, BaseError, { name: true }); } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) { proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT); proxyAccessor(WrappedError, OriginalError, "prepareStackTrace"); } copyConstructorProperties(WrappedError, OriginalError); if (!IS_PURE) try { if (OriginalErrorPrototype.name !== ERROR_NAME) { createNonEnumerableProperty(OriginalErrorPrototype, "name", ERROR_NAME); } OriginalErrorPrototype.constructor = WrappedError; } catch (error) { } return WrappedError; }; } ), /***/ 1956: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var $filter = __webpack_require__2(4904).filter; var arrayMethodHasSpeciesSupport = __webpack_require__2(7776); var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("filter"); $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, { filter: function filter(callbackfn) { return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); } }); } ), /***/ 9120: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var toIndexedObject = __webpack_require__2(9740); var addToUnscopables = __webpack_require__2(2328); var Iterators = __webpack_require__2(4920); var InternalStateModule = __webpack_require__2(5444); var defineProperty = __webpack_require__2(368).f; var defineIterator = __webpack_require__2(8752); var createIterResultObject = __webpack_require__2(2596); var IS_PURE = __webpack_require__2(2804); var DESCRIPTORS = __webpack_require__2(3528); var ARRAY_ITERATOR = "Array Iterator"; var setInternalState = InternalStateModule.set; var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR); module2.exports = defineIterator(Array, "Array", function(iterated, kind) { setInternalState(this, { type: ARRAY_ITERATOR, target: toIndexedObject(iterated), // target index: 0, // next index kind // kind }); }, function() { var state = getInternalState(this); var target = state.target; var index = state.index++; if (!target || index >= target.length) { state.target = void 0; return createIterResultObject(void 0, true); } switch (state.kind) { case "keys": return createIterResultObject(index, false); case "values": return createIterResultObject(target[index], false); } return createIterResultObject([index, target[index]], false); }, "values"); var values = Iterators.Arguments = Iterators.Array; addToUnscopables("keys"); addToUnscopables("values"); addToUnscopables("entries"); if (!IS_PURE && DESCRIPTORS && values.name !== "values") try { defineProperty(values, "name", { value: "values" }); } catch (error) { } } ), /***/ 6568: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var $map = __webpack_require__2(4904).map; var arrayMethodHasSpeciesSupport = __webpack_require__2(7776); var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("map"); $({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, { map: function map(callbackfn) { return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); } }); } ), /***/ 3248: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var toObject = __webpack_require__2(6804); var lengthOfArrayLike = __webpack_require__2(9480); var setArrayLength = __webpack_require__2(7934); var doesNotExceedSafeInteger = __webpack_require__2(3272); var fails = __webpack_require__2(6040); var INCORRECT_TO_LENGTH = fails(function() { return [].push.call({ length: 4294967296 }, 1) !== 4294967297; }); var properErrorOnNonWritableLength = function() { try { Object.defineProperty([], "length", { writable: false }).push(); } catch (error) { return error instanceof TypeError; } }; var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength(); $({ target: "Array", proto: true, arity: 1, forced: FORCED }, { // eslint-disable-next-line no-unused-vars -- required for `.length` push: function push(item) { var O = toObject(this); var len = lengthOfArrayLike(O); var argCount = arguments.length; doesNotExceedSafeInteger(len + argCount); for (var i = 0; i < argCount; i++) { O[len] = arguments[i]; len++; } setArrayLength(O, len); return len; } }); } ), /***/ 7056: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var hasOwn = __webpack_require__2(6216); var defineBuiltIn = __webpack_require__2(3244); var dateToPrimitive = __webpack_require__2(6268); var wellKnownSymbol = __webpack_require__2(9459); var TO_PRIMITIVE = wellKnownSymbol("toPrimitive"); var DatePrototype = Date.prototype; if (!hasOwn(DatePrototype, TO_PRIMITIVE)) { defineBuiltIn(DatePrototype, TO_PRIMITIVE, dateToPrimitive); } } ), /***/ 2844: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var global = __webpack_require__2(5624); var apply = __webpack_require__2(4744); var wrapErrorConstructorWithCause = __webpack_require__2(5240); var WEB_ASSEMBLY = "WebAssembly"; var WebAssembly = global[WEB_ASSEMBLY]; var FORCED = new Error("e", { cause: 7 }).cause !== 7; var exportGlobalErrorCauseWrapper = function(ERROR_NAME, wrapper) { var O = {}; O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED); $({ global: true, constructor: true, arity: 1, forced: FORCED }, O); }; var exportWebAssemblyErrorCauseWrapper = function(ERROR_NAME, wrapper) { if (WebAssembly && WebAssembly[ERROR_NAME]) { var O = {}; O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + "." + ERROR_NAME, wrapper, FORCED); $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O); } }; exportGlobalErrorCauseWrapper("Error", function(init) { return function Error2(message) { return apply(init, this, arguments); }; }); exportGlobalErrorCauseWrapper("EvalError", function(init) { return function EvalError(message) { return apply(init, this, arguments); }; }); exportGlobalErrorCauseWrapper("RangeError", function(init) { return function RangeError(message) { return apply(init, this, arguments); }; }); exportGlobalErrorCauseWrapper("ReferenceError", function(init) { return function ReferenceError(message) { return apply(init, this, arguments); }; }); exportGlobalErrorCauseWrapper("SyntaxError", function(init) { return function SyntaxError2(message) { return apply(init, this, arguments); }; }); exportGlobalErrorCauseWrapper("TypeError", function(init) { return function TypeError2(message) { return apply(init, this, arguments); }; }); exportGlobalErrorCauseWrapper("URIError", function(init) { return function URIError(message) { return apply(init, this, arguments); }; }); exportWebAssemblyErrorCauseWrapper("CompileError", function(init) { return function CompileError(message) { return apply(init, this, arguments); }; }); exportWebAssemblyErrorCauseWrapper("LinkError", function(init) { return function LinkError(message) { return apply(init, this, arguments); }; }); exportWebAssemblyErrorCauseWrapper("RuntimeError", function(init) { return function RuntimeError(message) { return apply(init, this, arguments); }; }); } ), /***/ 6760: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var getBuiltIn = __webpack_require__2(4960); var apply = __webpack_require__2(4744); var call = __webpack_require__2(892); var uncurryThis = __webpack_require__2(1447); var fails = __webpack_require__2(6040); var isCallable = __webpack_require__2(9063); var isSymbol2 = __webpack_require__2(6232); var arraySlice = __webpack_require__2(7588); var getReplacerFunction = __webpack_require__2(6852); var NATIVE_SYMBOL = __webpack_require__2(8972); var $String = String; var $stringify = getBuiltIn("JSON", "stringify"); var exec = uncurryThis(/./.exec); var charAt = uncurryThis("".charAt); var charCodeAt = uncurryThis("".charCodeAt); var replace = uncurryThis("".replace); var numberToString = uncurryThis(1 .toString); var tester = /[\uD800-\uDFFF]/g; var low = /^[\uD800-\uDBFF]$/; var hi = /^[\uDC00-\uDFFF]$/; var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function() { var symbol = getBuiltIn("Symbol")("stringify detection"); return $stringify([symbol]) !== "[null]" || $stringify({ a: symbol }) !== "{}" || $stringify(Object(symbol)) !== "{}"; }); var ILL_FORMED_UNICODE = fails(function() { return $stringify("\uDF06\uD834") !== '"\\udf06\\ud834"' || $stringify("\uDEAD") !== '"\\udead"'; }); var stringifyWithSymbolsFix = function(it, replacer) { var args = arraySlice(arguments); var $replacer = getReplacerFunction(replacer); if (!isCallable($replacer) && (it === void 0 || isSymbol2(it))) return; args[1] = function(key, value) { if (isCallable($replacer)) value = call($replacer, this, $String(key), value); if (!isSymbol2(value)) return value; }; return apply($stringify, null, args); }; var fixIllFormed = function(match, offset, string) { var prev = charAt(string, offset - 1); var next = charAt(string, offset + 1); if (exec(low, match) && !exec(hi, next) || exec(hi, match) && !exec(low, prev)) { return "\\u" + numberToString(charCodeAt(match, 0), 16); } return match; }; if ($stringify) { $({ target: "JSON", stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, { // eslint-disable-next-line no-unused-vars -- required for `.length` stringify: function stringify(it, replacer, space) { var args = arraySlice(arguments); var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args); return ILL_FORMED_UNICODE && typeof result == "string" ? replace(result, tester, fixIllFormed) : result; } }); } } ), /***/ 9456: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var IS_PURE = __webpack_require__2(2804); var DESCRIPTORS = __webpack_require__2(3528); var global = __webpack_require__2(5624); var path = __webpack_require__2(4880); var uncurryThis = __webpack_require__2(1447); var isForced = __webpack_require__2(5272); var hasOwn = __webpack_require__2(6216); var inheritIfRequired = __webpack_require__2(2744); var isPrototypeOf = __webpack_require__2(6056); var isSymbol2 = __webpack_require__2(6232); var toPrimitive = __webpack_require__2(8176); var fails = __webpack_require__2(6040); var getOwnPropertyNames = __webpack_require__2(692).f; var getOwnPropertyDescriptor = __webpack_require__2(4560).f; var defineProperty = __webpack_require__2(368).f; var thisNumberValue = __webpack_require__2(4128); var trim = __webpack_require__2(1096).trim; var NUMBER = "Number"; var NativeNumber = global[NUMBER]; var PureNumberNamespace = path[NUMBER]; var NumberPrototype = NativeNumber.prototype; var TypeError2 = global.TypeError; var stringSlice = uncurryThis("".slice); var charCodeAt = uncurryThis("".charCodeAt); var toNumeric = function(value) { var primValue = toPrimitive(value, "number"); return typeof primValue == "bigint" ? primValue : toNumber(primValue); }; var toNumber = function(argument) { var it = toPrimitive(argument, "number"); var first, third, radix, maxCode, digits, length, index, code; if (isSymbol2(it)) throw new TypeError2("Cannot convert a Symbol value to a number"); if (typeof it == "string" && it.length > 2) { it = trim(it); first = charCodeAt(it, 0); if (first === 43 || first === 45) { third = charCodeAt(it, 2); if (third === 88 || third === 120) return NaN; } else if (first === 48) { switch (charCodeAt(it, 1)) { // fast equal of /^0b[01]+$/i case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0o[0-7]+$/i case 79: case 111: radix = 8; maxCode = 55; break; default: return +it; } digits = stringSlice(it, 2); length = digits.length; for (index = 0; index < length; index++) { code = charCodeAt(digits, index); if (code < 48 || code > maxCode) return NaN; } return parseInt(digits, radix); } } return +it; }; var FORCED = isForced(NUMBER, !NativeNumber(" 0o1") || !NativeNumber("0b1") || NativeNumber("+0x1")); var calledWithNew = function(dummy) { return isPrototypeOf(NumberPrototype, dummy) && fails(function() { thisNumberValue(dummy); }); }; var NumberWrapper = function Number2(value) { var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value)); return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n; }; NumberWrapper.prototype = NumberPrototype; if (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper; $({ global: true, constructor: true, wrap: true, forced: FORCED }, { Number: NumberWrapper }); var copyConstructorProperties = function(target, source) { for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : ( // ES3: "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(",") ), j = 0, key; keys.length > j; j++) { if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) { defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } } }; if (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace); if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber); } ), /***/ 8235: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var assign = __webpack_require__2(7048); $({ target: "Object", stat: true, arity: 2, forced: Object.assign !== assign }, { assign }); } ), /***/ 2600: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var fails = __webpack_require__2(6040); var toIndexedObject = __webpack_require__2(9740); var nativeGetOwnPropertyDescriptor = __webpack_require__2(4560).f; var DESCRIPTORS = __webpack_require__2(3528); var FORCED = !DESCRIPTORS || fails(function() { nativeGetOwnPropertyDescriptor(1); }); $({ target: "Object", stat: true, forced: FORCED, sham: !DESCRIPTORS }, { getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) { return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key); } }); } ), /***/ 4376: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var DESCRIPTORS = __webpack_require__2(3528); var ownKeys = __webpack_require__2(9976); var toIndexedObject = __webpack_require__2(9740); var getOwnPropertyDescriptorModule = __webpack_require__2(4560); var createProperty = __webpack_require__2(8931); $({ target: "Object", stat: true, sham: !DESCRIPTORS }, { getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { var O = toIndexedObject(object); var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; var keys = ownKeys(O); var result = {}; var index = 0; var key, descriptor; while (keys.length > index) { descriptor = getOwnPropertyDescriptor(O, key = keys[index++]); if (descriptor !== void 0) createProperty(result, key, descriptor); } return result; } }); } ), /***/ 8728: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var NATIVE_SYMBOL = __webpack_require__2(8972); var fails = __webpack_require__2(6040); var getOwnPropertySymbolsModule = __webpack_require__2(8167); var toObject = __webpack_require__2(6804); var FORCED = !NATIVE_SYMBOL || fails(function() { getOwnPropertySymbolsModule.f(1); }); $({ target: "Object", stat: true, forced: FORCED }, { getOwnPropertySymbols: function getOwnPropertySymbols(it) { var $getOwnPropertySymbols = getOwnPropertySymbolsModule.f; return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : []; } }); } ), /***/ 1040: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var toObject = __webpack_require__2(6804); var nativeKeys = __webpack_require__2(4152); var fails = __webpack_require__2(6040); var FAILS_ON_PRIMITIVES = fails(function() { nativeKeys(1); }); $({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES }, { keys: function keys(it) { return nativeKeys(toObject(it)); } }); } ), /***/ 9640: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var TO_STRING_TAG_SUPPORT = __webpack_require__2(1712); var defineBuiltIn = __webpack_require__2(3244); var toString = __webpack_require__2(3532); if (!TO_STRING_TAG_SUPPORT) { defineBuiltIn(Object.prototype, "toString", toString, { unsafe: true }); } } ), /***/ 2644: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var exec = __webpack_require__2(8096); $({ target: "RegExp", proto: true, forced: /./.exec !== exec }, { exec }); } ), /***/ 8928: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var charAt = __webpack_require__2(1968).charAt; var toString = __webpack_require__2(1992); var InternalStateModule = __webpack_require__2(5444); var defineIterator = __webpack_require__2(8752); var createIterResultObject = __webpack_require__2(2596); var STRING_ITERATOR = "String Iterator"; var setInternalState = InternalStateModule.set; var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR); defineIterator(String, "String", function(iterated) { setInternalState(this, { type: STRING_ITERATOR, string: toString(iterated), index: 0 }); }, function next() { var state = getInternalState(this); var string = state.string; var index = state.index; var point; if (index >= string.length) return createIterResultObject(void 0, true); point = charAt(string, index); state.index += point.length; return createIterResultObject(point, false); }); } ), /***/ 2888: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var call = __webpack_require__2(892); var fixRegExpWellKnownSymbolLogic = __webpack_require__2(8760); var anObject = __webpack_require__2(8424); var isNullOrUndefined = __webpack_require__2(952); var toLength = __webpack_require__2(960); var toString = __webpack_require__2(1992); var requireObjectCoercible = __webpack_require__2(2696); var getMethod = __webpack_require__2(364); var advanceStringIndex = __webpack_require__2(6884); var regExpExec = __webpack_require__2(1456); fixRegExpWellKnownSymbolLogic("match", function(MATCH, nativeMatch, maybeCallNative) { return [ // `String.prototype.match` method // https://tc39.es/ecma262/#sec-string.prototype.match function match(regexp) { var O = requireObjectCoercible(this); var matcher = isNullOrUndefined(regexp) ? void 0 : getMethod(regexp, MATCH); return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O)); }, // `RegExp.prototype[@@match]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@match function(string) { var rx = anObject(this); var S = toString(string); var res = maybeCallNative(nativeMatch, rx, S); if (res.done) return res.value; if (!rx.global) return regExpExec(rx, S); var fullUnicode = rx.unicode; rx.lastIndex = 0; var A = []; var n = 0; var result; while ((result = regExpExec(rx, S)) !== null) { var matchStr = toString(result[0]); A[n] = matchStr; if (matchStr === "") rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); n++; } return n === 0 ? null : A; } ]; }); } ), /***/ 8312: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var global = __webpack_require__2(5624); var call = __webpack_require__2(892); var uncurryThis = __webpack_require__2(1447); var IS_PURE = __webpack_require__2(2804); var DESCRIPTORS = __webpack_require__2(3528); var NATIVE_SYMBOL = __webpack_require__2(8972); var fails = __webpack_require__2(6040); var hasOwn = __webpack_require__2(6216); var isPrototypeOf = __webpack_require__2(6056); var anObject = __webpack_require__2(8424); var toIndexedObject = __webpack_require__2(9740); var toPropertyKey = __webpack_require__2(8732); var $toString = __webpack_require__2(1992); var createPropertyDescriptor = __webpack_require__2(9200); var nativeObjectCreate = __webpack_require__2(8340); var objectKeys = __webpack_require__2(4152); var getOwnPropertyNamesModule = __webpack_require__2(692); var getOwnPropertyNamesExternal = __webpack_require__2(4856); var getOwnPropertySymbolsModule = __webpack_require__2(8167); var getOwnPropertyDescriptorModule = __webpack_require__2(4560); var definePropertyModule = __webpack_require__2(368); var definePropertiesModule = __webpack_require__2(5045); var propertyIsEnumerableModule = __webpack_require__2(2460); var defineBuiltIn = __webpack_require__2(3244); var defineBuiltInAccessor = __webpack_require__2(1720); var shared = __webpack_require__2(8196); var sharedKey = __webpack_require__2(8192); var hiddenKeys = __webpack_require__2(6480); var uid = __webpack_require__2(320); var wellKnownSymbol = __webpack_require__2(9459); var wrappedWellKnownSymbolModule = __webpack_require__2(7732); var defineWellKnownSymbol = __webpack_require__2(9635); var defineSymbolToPrimitive = __webpack_require__2(4208); var setToStringTag = __webpack_require__2(4200); var InternalStateModule = __webpack_require__2(5444); var $forEach = __webpack_require__2(4904).forEach; var HIDDEN = sharedKey("hidden"); var SYMBOL = "Symbol"; var PROTOTYPE = "prototype"; var setInternalState = InternalStateModule.set; var getInternalState = InternalStateModule.getterFor(SYMBOL); var ObjectPrototype = Object[PROTOTYPE]; var $Symbol = global.Symbol; var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE]; var RangeError = global.RangeError; var TypeError2 = global.TypeError; var QObject = global.QObject; var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; var nativeDefineProperty = definePropertyModule.f; var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f; var nativePropertyIsEnumerable = propertyIsEnumerableModule.f; var push = uncurryThis([].push); var AllSymbols = shared("symbols"); var ObjectPrototypeSymbols = shared("op-symbols"); var WellKnownSymbolsStore = shared("wks"); var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; var fallbackDefineProperty = function(O, P, Attributes) { var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P); if (ObjectPrototypeDescriptor) delete ObjectPrototype[P]; nativeDefineProperty(O, P, Attributes); if (ObjectPrototypeDescriptor && O !== ObjectPrototype) { nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor); } }; var setSymbolDescriptor = DESCRIPTORS && fails(function() { return nativeObjectCreate(nativeDefineProperty({}, "a", { get: function() { return nativeDefineProperty(this, "a", { value: 7 }).a; } })).a !== 7; }) ? fallbackDefineProperty : nativeDefineProperty; var wrap = function(tag, description) { var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype); setInternalState(symbol, { type: SYMBOL, tag, description }); if (!DESCRIPTORS) symbol.description = description; return symbol; }; var $defineProperty = function defineProperty(O, P, Attributes) { if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes); anObject(O); var key = toPropertyKey(P); anObject(Attributes); if (hasOwn(AllSymbols, key)) { if (!Attributes.enumerable) { if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, nativeObjectCreate(null))); O[HIDDEN][key] = true; } else { if (hasOwn(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false; Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) }); } return setSymbolDescriptor(O, key, Attributes); } return nativeDefineProperty(O, key, Attributes); }; var $defineProperties = function defineProperties(O, Properties) { anObject(O); var properties = toIndexedObject(Properties); var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties)); $forEach(keys, function(key) { if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]); }); return O; }; var $create = function create(O, Properties) { return Properties === void 0 ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties); }; var $propertyIsEnumerable = function propertyIsEnumerable(V) { var P = toPropertyKey(V); var enumerable = call(nativePropertyIsEnumerable, this, P); if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P)) return false; return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true; }; var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) { var it = toIndexedObject(O); var key = toPropertyKey(P); if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key)) return; var descriptor = nativeGetOwnPropertyDescriptor(it, key); if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) { descriptor.enumerable = true; } return descriptor; }; var $getOwnPropertyNames = function getOwnPropertyNames(O) { var names = nativeGetOwnPropertyNames(toIndexedObject(O)); var result = []; $forEach(names, function(key) { if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key)) push(result, key); }); return result; }; var $getOwnPropertySymbols = function(O) { var IS_OBJECT_PROTOTYPE = O === ObjectPrototype; var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O)); var result = []; $forEach(names, function(key) { if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) { push(result, AllSymbols[key]); } }); return result; }; if (!NATIVE_SYMBOL) { $Symbol = function Symbol2() { if (isPrototypeOf(SymbolPrototype, this)) throw new TypeError2("Symbol is not a constructor"); var description = !arguments.length || arguments[0] === void 0 ? void 0 : $toString(arguments[0]); var tag = uid(description); var setter = function(value) { var $this = this === void 0 ? global : this; if ($this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value); if (hasOwn($this, HIDDEN) && hasOwn($this[HIDDEN], tag)) $this[HIDDEN][tag] = false; var descriptor = createPropertyDescriptor(1, value); try { setSymbolDescriptor($this, tag, descriptor); } catch (error) { if (!(error instanceof RangeError)) throw error; fallbackDefineProperty($this, tag, descriptor); } }; if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter }); return wrap(tag, description); }; SymbolPrototype = $Symbol[PROTOTYPE]; defineBuiltIn(SymbolPrototype, "toString", function toString() { return getInternalState(this).tag; }); defineBuiltIn($Symbol, "withoutSetter", function(description) { return wrap(uid(description), description); }); propertyIsEnumerableModule.f = $propertyIsEnumerable; definePropertyModule.f = $defineProperty; definePropertiesModule.f = $defineProperties; getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor; getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames; getOwnPropertySymbolsModule.f = $getOwnPropertySymbols; wrappedWellKnownSymbolModule.f = function(name) { return wrap(wellKnownSymbol(name), name); }; if (DESCRIPTORS) { defineBuiltInAccessor(SymbolPrototype, "description", { configurable: true, get: function description() { return getInternalState(this).description; } }); if (!IS_PURE) { defineBuiltIn(ObjectPrototype, "propertyIsEnumerable", $propertyIsEnumerable, { unsafe: true }); } } } $({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, { Symbol: $Symbol }); $forEach(objectKeys(WellKnownSymbolsStore), function(name) { defineWellKnownSymbol(name); }); $({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, { useSetter: function() { USE_SETTER = true; }, useSimple: function() { USE_SETTER = false; } }); $({ target: "Object", stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, { // `Object.create` method // https://tc39.es/ecma262/#sec-object.create create: $create, // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty defineProperty: $defineProperty, // `Object.defineProperties` method // https://tc39.es/ecma262/#sec-object.defineproperties defineProperties: $defineProperties, // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors getOwnPropertyDescriptor: $getOwnPropertyDescriptor }); $({ target: "Object", stat: true, forced: !NATIVE_SYMBOL }, { // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames getOwnPropertyNames: $getOwnPropertyNames }); defineSymbolToPrimitive(); setToStringTag($Symbol, SYMBOL); hiddenKeys[HIDDEN] = true; } ), /***/ 5016: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var DESCRIPTORS = __webpack_require__2(3528); var global = __webpack_require__2(5624); var uncurryThis = __webpack_require__2(1447); var hasOwn = __webpack_require__2(6216); var isCallable = __webpack_require__2(9063); var isPrototypeOf = __webpack_require__2(6056); var toString = __webpack_require__2(1992); var defineBuiltInAccessor = __webpack_require__2(1720); var copyConstructorProperties = __webpack_require__2(4304); var NativeSymbol = global.Symbol; var SymbolPrototype = NativeSymbol && NativeSymbol.prototype; if (DESCRIPTORS && isCallable(NativeSymbol) && (!("description" in SymbolPrototype) || // Safari 12 bug NativeSymbol().description !== void 0)) { var EmptyStringDescriptionStore = {}; var SymbolWrapper = function Symbol2() { var description = arguments.length < 1 || arguments[0] === void 0 ? void 0 : toString(arguments[0]); var result = isPrototypeOf(SymbolPrototype, this) ? new NativeSymbol(description) : description === void 0 ? NativeSymbol() : NativeSymbol(description); if (description === "") EmptyStringDescriptionStore[result] = true; return result; }; copyConstructorProperties(SymbolWrapper, NativeSymbol); SymbolWrapper.prototype = SymbolPrototype; SymbolPrototype.constructor = SymbolWrapper; var NATIVE_SYMBOL = String(NativeSymbol("description detection")) === "Symbol(description detection)"; var thisSymbolValue = uncurryThis(SymbolPrototype.valueOf); var symbolDescriptiveString = uncurryThis(SymbolPrototype.toString); var regexp = /^Symbol\((.*)\)[^)]+$/; var replace = uncurryThis("".replace); var stringSlice = uncurryThis("".slice); defineBuiltInAccessor(SymbolPrototype, "description", { configurable: true, get: function description() { var symbol = thisSymbolValue(this); if (hasOwn(EmptyStringDescriptionStore, symbol)) return ""; var string = symbolDescriptiveString(symbol); var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, "$1"); return desc === "" ? void 0 : desc; } }); $({ global: true, constructor: true, forced: true }, { Symbol: SymbolWrapper }); } } ), /***/ 5256: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var getBuiltIn = __webpack_require__2(4960); var hasOwn = __webpack_require__2(6216); var toString = __webpack_require__2(1992); var shared = __webpack_require__2(8196); var NATIVE_SYMBOL_REGISTRY = __webpack_require__2(4680); var StringToSymbolRegistry = shared("string-to-symbol-registry"); var SymbolToStringRegistry = shared("symbol-to-string-registry"); $({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, { "for": function(key) { var string = toString(key); if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string]; var symbol = getBuiltIn("Symbol")(string); StringToSymbolRegistry[string] = symbol; SymbolToStringRegistry[symbol] = string; return symbol; } }); } ), /***/ 6968: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var defineWellKnownSymbol = __webpack_require__2(9635); defineWellKnownSymbol("iterator"); } ), /***/ 3475: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; __webpack_require__2(8312); __webpack_require__2(5256); __webpack_require__2(1352); __webpack_require__2(6760); __webpack_require__2(8728); } ), /***/ 1352: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var $ = __webpack_require__2(3748); var hasOwn = __webpack_require__2(6216); var isSymbol2 = __webpack_require__2(6232); var tryToString = __webpack_require__2(4596); var shared = __webpack_require__2(8196); var NATIVE_SYMBOL_REGISTRY = __webpack_require__2(4680); var SymbolToStringRegistry = shared("symbol-to-string-registry"); $({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, { keyFor: function keyFor(sym) { if (!isSymbol2(sym)) throw new TypeError(tryToString(sym) + " is not a symbol"); if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym]; } }); } ), /***/ 1668: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var defineWellKnownSymbol = __webpack_require__2(9635); var defineSymbolToPrimitive = __webpack_require__2(4208); defineWellKnownSymbol("toPrimitive"); defineSymbolToPrimitive(); } ), /***/ 2984: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var global = __webpack_require__2(5624); var DOMIterables = __webpack_require__2(5848); var DOMTokenListPrototype = __webpack_require__2(8280); var forEach = __webpack_require__2(5935); var createNonEnumerableProperty = __webpack_require__2(3652); var handlePrototype = function(CollectionPrototype) { if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { createNonEnumerableProperty(CollectionPrototype, "forEach", forEach); } catch (error) { CollectionPrototype.forEach = forEach; } }; for (var COLLECTION_NAME in DOMIterables) { if (DOMIterables[COLLECTION_NAME]) { handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype); } } handlePrototype(DOMTokenListPrototype); } ), /***/ 9708: ( /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__2) { "use strict"; var global = __webpack_require__2(5624); var DOMIterables = __webpack_require__2(5848); var DOMTokenListPrototype = __webpack_require__2(8280); var ArrayIteratorMethods = __webpack_require__2(9120); var createNonEnumerableProperty = __webpack_require__2(3652); var setToStringTag = __webpack_require__2(4200); var wellKnownSymbol = __webpack_require__2(9459); var ITERATOR = wellKnownSymbol("iterator"); var ArrayValues = ArrayIteratorMethods.values; var handlePrototype = function(CollectionPrototype, COLLECTION_NAME2) { if (CollectionPrototype) { if (CollectionPrototype[ITERATOR] !== ArrayValues) try { createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues); } catch (error) { CollectionPrototype[ITERATOR] = ArrayValues; } setToStringTag(CollectionPrototype, COLLECTION_NAME2, true); if (DOMIterables[COLLECTION_NAME2]) for (var METHOD_NAME in ArrayIteratorMethods) { if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try { createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]); } catch (error) { CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME]; } } } }; for (var COLLECTION_NAME in DOMIterables) { handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME); } handlePrototype(DOMTokenListPrototype, "DOMTokenList"); } ), /***/ 3996: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { var toPropertyKey = __webpack_require__2(5668); function _defineProperty(obj, key, value) { key = toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } module2.exports = _defineProperty, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; } ), /***/ 2916: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { __webpack_require__2(3475); __webpack_require__2(1956); __webpack_require__2(3248); __webpack_require__2(2600); __webpack_require__2(4376); __webpack_require__2(1040); __webpack_require__2(9640); __webpack_require__2(2984); var defineProperty = __webpack_require__2(3996); function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function(r2) { return Object.getOwnPropertyDescriptor(e, r2).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function(r2) { defineProperty(e, r2, t[r2]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) { Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2)); }); } return e; } module2.exports = _objectSpread2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; } ), /***/ 7956: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { __webpack_require__2(3475); __webpack_require__2(5016); __webpack_require__2(1668); __webpack_require__2(2844); __webpack_require__2(7056); __webpack_require__2(9456); __webpack_require__2(9640); var _typeof = __webpack_require__2(6432)["default"]; function toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } module2.exports = toPrimitive, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; } ), /***/ 5668: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { var _typeof = __webpack_require__2(6432)["default"]; var toPrimitive = __webpack_require__2(7956); function toPropertyKey(t) { var i = toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } module2.exports = toPropertyKey, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; } ), /***/ 6432: ( /***/ function(module2, __unused_webpack_exports, __webpack_require__2) { __webpack_require__2(3475); __webpack_require__2(5016); __webpack_require__2(6968); __webpack_require__2(9120); __webpack_require__2(9640); __webpack_require__2(8928); __webpack_require__2(9708); function _typeof(o) { "@babel/helpers - typeof"; return module2.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) { return typeof o2; } : function(o2) { return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2; }, module2.exports.__esModule = true, module2.exports["default"] = module2.exports, _typeof(o); } module2.exports = _typeof, module2.exports.__esModule = true, module2.exports["default"] = module2.exports; } ) /******/ }; var __webpack_module_cache__ = {}; function __webpack_require__(moduleId) { var cachedModule = __webpack_module_cache__[moduleId]; if (cachedModule !== void 0) { return cachedModule.exports; } var module2 = __webpack_module_cache__[moduleId] = { /******/ id: moduleId, /******/ // no module.loaded needed /******/ exports: {} /******/ }; __webpack_modules__[moduleId].call(module2.exports, module2, module2.exports, __webpack_require__); return module2.exports; } !function() { __webpack_require__.n = function(module2) { var getter = module2 && module2.__esModule ? ( /******/ function() { return module2["default"]; } ) : ( /******/ function() { return module2; } ); __webpack_require__.d(getter, { a: getter }); return getter; }; }(); !function() { __webpack_require__.d = function(exports2, definition) { for (var key in definition) { if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports2, key)) { Object.defineProperty(exports2, key, { enumerable: true, get: definition[key] }); } } }; }(); !function() { __webpack_require__.g = function() { if (typeof globalThis === "object") return globalThis; try { return this || new Function("return this")(); } catch (e) { if (typeof window === "object") return window; } }(); }(); !function() { __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }; }(); !function() { __webpack_require__.r = function(exports2) { if (typeof Symbol !== "undefined" && Symbol.toStringTag) { Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" }); } Object.defineProperty(exports2, "__esModule", { value: true }); }; }(); !function() { __webpack_require__.p = ""; }(); var __webpack_exports__ = {}; !function() { "use strict"; __webpack_require__.d(__webpack_exports__, { "default": function() { return ( /* binding */ entry_lib ); } }); ; if (typeof window !== "undefined") { var currentScript = window.document.currentScript; if (true) { var getCurrentScript = __webpack_require__(448); currentScript = getCurrentScript(); if (!("currentScript" in document)) { Object.defineProperty(document, "currentScript", { get: getCurrentScript }); } } var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/); if (src) { __webpack_require__.p = src[1]; } } var setPublicPath = null; var es_regexp_exec = __webpack_require__(2644); var es_string_match = __webpack_require__(2888); ; var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require_vue(); ; var _hoisted_1 = { key: 0, class: "vtb-wrapper" }; function render(_ctx, _cache, $props, $setup, $data, $options) { var _component_bracket_node = (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("bracket-node"); return $options.recursiveBracket ? ((0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_1, [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_bracket_node, { "bracket-node": $options.recursiveBracket, onOnSelectedPlayer: $options.highlightPlayer, onOnDeselectedPlayer: $options.unhighlightPlayer, "highlighted-player-id": $data.highlightedPlayerId }, { player: (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(function(_ref) { var player = _ref.player; return [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "player", { player })]; }), "player-extension-bottom": (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(function(_ref2) { var match = _ref2.match; return [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "player-extension-bottom", { match })]; }), _: 3 }, 8, ["bracket-node", "onOnSelectedPlayer", "onOnDeselectedPlayer", "highlighted-player-id"])])) : (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true); } ; ; var BracketNodevue_type_template_id_3c68116a_hoisted_1 = { key: 0, class: "vtb-item" }; var _hoisted_2 = { key: 0, class: "vtb-item-children" }; var _hoisted_3 = { key: 0, class: "vtb-item-child" }; var _hoisted_4 = { key: 1, class: "vtb-item-child" }; function BracketNodevue_type_template_id_3c68116a_render(_ctx, _cache, $props, $setup, $data, $options) { var _component_game_players = (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("game-players"); var _component_bracket_node = (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("bracket-node", true); return $options.playersArePresent ? ((0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", BracketNodevue_type_template_id_3c68116a_hoisted_1, [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", { class: (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.getBracketNodeClass($props.bracketNode)) }, [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_game_players, { "bracket-node": $props.bracketNode, "highlighted-player-id": $props.highlightedPlayerId, onOnSelectedPlayer: $options.highlightPlayer, onOnDeselectedPlayer: $options.unhighlightPlayer }, { player: (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(function(_ref) { var player = _ref.player; return [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "player", { player })]; }), "player-extension-bottom": (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(function(_ref2) { var match = _ref2.match; return [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "player-extension-bottom", { match })]; }), _: 3 }, 8, ["bracket-node", "highlighted-player-id", "onOnSelectedPlayer", "onOnDeselectedPlayer"])], 2), $props.bracketNode.games[0] || $props.bracketNode.games[1] ? ((0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_2, [$props.bracketNode.games[0] ? ((0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_3, [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_bracket_node, { "bracket-node": $props.bracketNode.games[0], "highlighted-player-id": $props.highlightedPlayerId, onOnSelectedPlayer: $options.highlightPlayer, onOnDeselectedPlayer: $options.unhighlightPlayer }, { player: (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(function(_ref3) { var player = _ref3.player; return [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "player", { player })]; }), "player-extension-bottom": (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(function(_ref4) { var match = _ref4.match; return [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "player-extension-bottom", { match })]; }), _: 3 }, 8, ["bracket-node", "highlighted-player-id", "onOnSelectedPlayer", "onOnDeselectedPlayer"])])) : (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), $props.bracketNode.games[1] ? ((0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_4, [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_bracket_node, { "bracket-node": $props.bracketNode.games[1], "highlighted-player-id": $props.highlightedPlayerId, onOnSelectedPlayer: $options.highlightPlayer, onOnDeselectedPlayer: $options.unhighlightPlayer }, { player: (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(function(_ref5) { var player = _ref5.player; return [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "player", { player })]; }), "player-extension-bottom": (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(function(_ref6) { var match = _ref6.match; return [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "player-extension-bottom", { match })]; }), _: 3 }, 8, ["bracket-node", "highlighted-player-id", "onOnSelectedPlayer", "onOnDeselectedPlayer"])])) : (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])) : (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])) : (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true); } ; ; var GamePlayersvue_type_template_id_26117be4_hoisted_1 = { class: "vtb-item-players" }; function GamePlayersvue_type_template_id_26117be4_render(_ctx, _cache, $props, $setup, $data, $options) { return (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", GamePlayersvue_type_template_id_26117be4_hoisted_1, [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", null, [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", { class: (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(["vtb-player", "vtb-player1", $options.getPlayerClass($props.bracketNode.player1)]), onMouseover: _cache[0] || (_cache[0] = function($event) { return $options.highlightPlayer($props.bracketNode.player1.id); }), onMouseleave: _cache[1] || (_cache[1] = function() { return $options.unhighlightPlayer && $options.unhighlightPlayer.apply($options, arguments); }) }, [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "player", { player: $props.bracketNode.player1 })], 34), (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", { class: (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(["vtb-player", "vtb-player2", $options.getPlayerClass($props.bracketNode.player2)]), onMouseover: _cache[2] || (_cache[2] = function($event) { return $options.highlightPlayer($props.bracketNode.player2.id); }), onMouseleave: _cache[3] || (_cache[3] = function() { return $options.unhighlightPlayer && $options.unhighlightPlayer.apply($options, arguments); }) }, [(0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "player", { player: $props.bracketNode.player2 })], 34)]), (0, external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "player-extension-bottom", { match: $options.matchProperties })]); } ; var es_object_assign = __webpack_require__(8235); ; var GamePlayersvue_type_script_lang_js = { name: "game-players", props: ["bracketNode", "highlightedPlayerId"], computed: { matchProperties: function matchProperties() { return Object.assign({}, this.bracketNode, { games: void 0, hasParent: void 0 }); } }, methods: { getPlayerClass: function getPlayerClass(player) { if (player.winner === null || player.winner === void 0) { return ""; } var clazz = player.winner ? "winner" : "defeated"; if (this.highlightedPlayerId === player.id) { clazz += " highlight"; } return clazz; }, highlightPlayer: function highlightPlayer(playerId) { this.$emit("onSelectedPlayer", playerId); }, unhighlightPlayer: function unhighlightPlayer() { this.$emit("onDeselectedPlayer"); } } }; ; var exportHelper = __webpack_require__(8152); ; ; const __exports__ = (0, exportHelper.c)(GamePlayersvue_type_script_lang_js, [["render", GamePlayersvue_type_template_id_26117be4_render]]); var GamePlayers = __exports__; ; var BracketNodevue_type_script_lang_js = { name: "bracket-node", components: { GamePlayers }, props: ["bracketNode", "highlightedPlayerId"], computed: { playersArePresent: function playersArePresent() { return this.bracketNode.player1 && this.bracketNode.player1; } }, methods: { getBracketNodeClass: function getBracketNodeClass(bracketNode) { if (bracketNode.games[0] || bracketNode.games[1]) { return "vtb-item-parent"; } if (bracketNode.hasParent) { return "vtb-item-child"; } return ""; }, getPlayerClass: function getPlayerClass(player) { if (player.winner === null || player.winner === void 0) { return ""; } var clazz = player.winner ? "winner" : "defeated"; if (this.highlightedPlayerId === player.id) { clazz += " highlight"; } return clazz; }, highlightPlayer: function highlightPlayer(playerId) { this.$emit("onSelectedPlayer", playerId); }, unhighlightPlayer: function unhighlightPlayer() { this.$emit("onDeselectedPlayer"); } } }; ; var BracketNodevue_type_style_index_0_id_3c68116a_lang_css = __webpack_require__(4216); ; ; ; const BracketNode_exports_ = (0, exportHelper.c)(BracketNodevue_type_script_lang_js, [["render", BracketNodevue_type_template_id_3c68116a_render]]); var BracketNode = BracketNode_exports_; var components_recursiveBracket = __webpack_require__(5796); var recursiveBracket_default = __webpack_require__.n(components_recursiveBracket); ; var Bracketvue_type_script_lang_js = { name: "bracket", components: { "bracket-node": BracketNode }, props: ["rounds", "flatTree"], data: function data() { return { highlightedPlayerId: null }; }, computed: { recursiveBracket: function recursiveBracket() { if (this.flatTree) { return recursiveBracket_default().transformFlatTree(this.flatTree); } return recursiveBracket_default().transform(this.rounds); } }, methods: { highlightPlayer: function highlightPlayer(id) { this.highlightedPlayerId = id; }, unhighlightPlayer: function unhighlightPlayer() { this.highlightedPlayerId = null; } } }; ; var Bracketvue_type_style_index_0_id_23a3a63f_lang_css = __webpack_require__(2142); ; ; ; const Bracket_exports_ = (0, exportHelper.c)(Bracketvue_type_script_lang_js, [["render", render]]); var Bracket = Bracket_exports_; ; var entry_lib = Bracket; }(); module.exports = __webpack_exports__["default"]; })(); } }); export default require_vue_tournament_bracket_common(); /*! Bundled license information: @vue/compiler-core/dist/compiler-core.esm-bundler.js: (** * @vue/compiler-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **) @vue/compiler-dom/dist/compiler-dom.esm-bundler.js: (** * @vue/compiler-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **) vue/dist/vue.cjs.js: (** * vue v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **) */ //# sourceMappingURL=vue-tournament-bracket.js.map