✨ MAJOR FEATURES: • Auto-zoom intelligence với smart bounds fitting • Enhanced 3D GPS markers với pulsing effects • Professional route display với 6-layer rendering • Status-based parking icons với availability indicators • Production-ready build optimizations 🗺️ AUTO-ZOOM FEATURES: • Smart bounds fitting cho GPS + selected parking • Adaptive padding (50px) cho visual balance • Max zoom control (level 16) để tránh quá gần • Dynamic centering khi không có selection 🎨 ENHANCED VISUALS: • 3D GPS marker với multi-layer pulse effects • Advanced parking icons với status colors • Selection highlighting với animation • Dimming system cho non-selected items 🛣️ ROUTE SYSTEM: • OpenRouteService API integration • Multi-layer route rendering (glow, shadow, main, animated) • Real-time distance & duration calculation • Visual route info trong popup 📱 PRODUCTION READY: • SSR safe với dynamic imports • Build errors resolved • Global deployment via Vercel • Optimized performance 🌍 DEPLOYMENT: • Vercel: https://whatever-ctk2auuxr-phong12hexdockworks-projects.vercel.app • Bundle size: 22.8 kB optimized • Global CDN distribution • HTTPS enabled 💾 VERSION CONTROL: • MapView-v2.0.tsx backup created • MAPVIEW_VERSIONS.md documentation • Full version history tracking
82 lines
1.9 KiB
JavaScript
82 lines
1.9 KiB
JavaScript
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _identifier = require('../parser/util/identifier');
|
|
|
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar
|
|
// Hard-code a list of reserved words rather than trying to use keywords or contextual keywords
|
|
// from the parser, since currently there are various exceptions, like `package` being reserved
|
|
// but unused and various contextual keywords being reserved. Note that we assume that all code
|
|
// compiled by Sucrase is in a module, so strict mode words and await are all considered reserved
|
|
// here.
|
|
const RESERVED_WORDS = new Set([
|
|
// Reserved keywords as of ECMAScript 2015
|
|
"break",
|
|
"case",
|
|
"catch",
|
|
"class",
|
|
"const",
|
|
"continue",
|
|
"debugger",
|
|
"default",
|
|
"delete",
|
|
"do",
|
|
"else",
|
|
"export",
|
|
"extends",
|
|
"finally",
|
|
"for",
|
|
"function",
|
|
"if",
|
|
"import",
|
|
"in",
|
|
"instanceof",
|
|
"new",
|
|
"return",
|
|
"super",
|
|
"switch",
|
|
"this",
|
|
"throw",
|
|
"try",
|
|
"typeof",
|
|
"var",
|
|
"void",
|
|
"while",
|
|
"with",
|
|
"yield",
|
|
// Future reserved keywords
|
|
"enum",
|
|
"implements",
|
|
"interface",
|
|
"let",
|
|
"package",
|
|
"private",
|
|
"protected",
|
|
"public",
|
|
"static",
|
|
"await",
|
|
// Literals that cannot be used as identifiers
|
|
"false",
|
|
"null",
|
|
"true",
|
|
]);
|
|
|
|
/**
|
|
* Determine if the given name is a legal variable name.
|
|
*
|
|
* This is needed when transforming TypeScript enums; if an enum key is a valid
|
|
* variable name, it might be referenced later in the enum, so we need to
|
|
* declare a variable.
|
|
*/
|
|
function isIdentifier(name) {
|
|
if (name.length === 0) {
|
|
return false;
|
|
}
|
|
if (!_identifier.IS_IDENTIFIER_START[name.charCodeAt(0)]) {
|
|
return false;
|
|
}
|
|
for (let i = 1; i < name.length; i++) {
|
|
if (!_identifier.IS_IDENTIFIER_CHAR[name.charCodeAt(i)]) {
|
|
return false;
|
|
}
|
|
}
|
|
return !RESERVED_WORDS.has(name);
|
|
} exports.default = isIdentifier;
|