shared.cjs.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. /**
  4. * Make a map and return a function for checking if a key
  5. * is in that map.
  6. * IMPORTANT: all calls of this function must be prefixed with
  7. * \/\*#\_\_PURE\_\_\*\/
  8. * So that rollup can tree-shake them if necessary.
  9. */
  10. function makeMap(str, expectsLowerCase) {
  11. const map = Object.create(null);
  12. const list = str.split(',');
  13. for (let i = 0; i < list.length; i++) {
  14. map[list[i]] = true;
  15. }
  16. return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val];
  17. }
  18. // Patch flags are optimization hints generated by the compiler.
  19. // when a block with dynamicChildren is encountered during diff, the algorithm
  20. // enters "optimized mode". In this mode, we know that the vdom is produced by
  21. // a render function generated by the compiler, so the algorithm only needs to
  22. // handle updates explicitly marked by these patch flags.
  23. // dev only flag -> name mapping
  24. const PatchFlagNames = {
  25. [1 /* TEXT */]: `TEXT`,
  26. [2 /* CLASS */]: `CLASS`,
  27. [4 /* STYLE */]: `STYLE`,
  28. [8 /* PROPS */]: `PROPS`,
  29. [16 /* FULL_PROPS */]: `FULL_PROPS`,
  30. [32 /* HYDRATE_EVENTS */]: `HYDRATE_EVENTS`,
  31. [64 /* STABLE_FRAGMENT */]: `STABLE_FRAGMENT`,
  32. [128 /* KEYED_FRAGMENT */]: `KEYED_FRAGMENT`,
  33. [256 /* UNKEYED_FRAGMENT */]: `UNKEYED_FRAGMENT`,
  34. [1024 /* DYNAMIC_SLOTS */]: `DYNAMIC_SLOTS`,
  35. [512 /* NEED_PATCH */]: `NEED_PATCH`,
  36. [-1 /* HOISTED */]: `HOISTED`,
  37. [-2 /* BAIL */]: `BAIL`
  38. };
  39. const GLOBALS_WHITE_LISTED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +
  40. 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
  41. 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl';
  42. const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);
  43. const range = 2;
  44. function generateCodeFrame(source, start = 0, end = source.length) {
  45. const lines = source.split(/\r?\n/);
  46. let count = 0;
  47. const res = [];
  48. for (let i = 0; i < lines.length; i++) {
  49. count += lines[i].length + 1;
  50. if (count >= start) {
  51. for (let j = i - range; j <= i + range || end > count; j++) {
  52. if (j < 0 || j >= lines.length)
  53. continue;
  54. const line = j + 1;
  55. res.push(`${line}${' '.repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`);
  56. const lineLength = lines[j].length;
  57. if (j === i) {
  58. // push underline
  59. const pad = start - (count - lineLength) + 1;
  60. const length = Math.max(1, end > count ? lineLength - pad : end - start);
  61. res.push(` | ` + ' '.repeat(pad) + '^'.repeat(length));
  62. }
  63. else if (j > i) {
  64. if (end > count) {
  65. const length = Math.max(Math.min(end - count, lineLength), 1);
  66. res.push(` | ` + '^'.repeat(length));
  67. }
  68. count += lineLength + 1;
  69. }
  70. }
  71. break;
  72. }
  73. }
  74. return res.join('\n');
  75. }
  76. /**
  77. * On the client we only need to offer special cases for boolean attributes that
  78. * have different names from their corresponding dom properties:
  79. * - itemscope -> N/A
  80. * - allowfullscreen -> allowFullscreen
  81. * - formnovalidate -> formNoValidate
  82. * - ismap -> isMap
  83. * - nomodule -> noModule
  84. * - novalidate -> noValidate
  85. * - readonly -> readOnly
  86. */
  87. const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
  88. const isSpecialBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs);
  89. /**
  90. * The full list is needed during SSR to produce the correct initial markup.
  91. */
  92. const isBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs +
  93. `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,` +
  94. `loop,open,required,reversed,scoped,seamless,` +
  95. `checked,muted,multiple,selected`);
  96. const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/;
  97. const attrValidationCache = {};
  98. function isSSRSafeAttrName(name) {
  99. if (attrValidationCache.hasOwnProperty(name)) {
  100. return attrValidationCache[name];
  101. }
  102. const isUnsafe = unsafeAttrCharRE.test(name);
  103. if (isUnsafe) {
  104. console.error(`unsafe attribute name: ${name}`);
  105. }
  106. return (attrValidationCache[name] = !isUnsafe);
  107. }
  108. const propsToAttrMap = {
  109. acceptCharset: 'accept-charset',
  110. className: 'class',
  111. htmlFor: 'for',
  112. httpEquiv: 'http-equiv'
  113. };
  114. /**
  115. * CSS properties that accept plain numbers
  116. */
  117. const isNoUnitNumericStyleProp = /*#__PURE__*/ makeMap(`animation-iteration-count,border-image-outset,border-image-slice,` +
  118. `border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,` +
  119. `columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,` +
  120. `grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,` +
  121. `grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,` +
  122. `line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,` +
  123. // SVG
  124. `fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,` +
  125. `stroke-miterlimit,stroke-opacity,stroke-width`);
  126. /**
  127. * Known attributes, this is used for stringification of runtime static nodes
  128. * so that we don't stringify bindings that cannot be set from HTML.
  129. * Don't also forget to allow `data-*` and `aria-*`!
  130. * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
  131. */
  132. const isKnownAttr = /*#__PURE__*/ makeMap(`accept,accept-charset,accesskey,action,align,allow,alt,async,` +
  133. `autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,` +
  134. `border,buffered,capture,challenge,charset,checked,cite,class,code,` +
  135. `codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,` +
  136. `coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,` +
  137. `disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,` +
  138. `formaction,formenctype,formmethod,formnovalidate,formtarget,headers,` +
  139. `height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,` +
  140. `ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,` +
  141. `manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,` +
  142. `open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,` +
  143. `referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,` +
  144. `selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,` +
  145. `start,step,style,summary,tabindex,target,title,translate,type,usemap,` +
  146. `value,width,wrap`);
  147. function normalizeStyle(value) {
  148. if (isArray(value)) {
  149. const res = {};
  150. for (let i = 0; i < value.length; i++) {
  151. const item = value[i];
  152. const normalized = normalizeStyle(isString(item) ? parseStringStyle(item) : item);
  153. if (normalized) {
  154. for (const key in normalized) {
  155. res[key] = normalized[key];
  156. }
  157. }
  158. }
  159. return res;
  160. }
  161. else if (isObject(value)) {
  162. return value;
  163. }
  164. }
  165. const listDelimiterRE = /;(?![^(]*\))/g;
  166. const propertyDelimiterRE = /:(.+)/;
  167. function parseStringStyle(cssText) {
  168. const ret = {};
  169. cssText.split(listDelimiterRE).forEach(item => {
  170. if (item) {
  171. const tmp = item.split(propertyDelimiterRE);
  172. tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
  173. }
  174. });
  175. return ret;
  176. }
  177. function stringifyStyle(styles) {
  178. let ret = '';
  179. if (!styles) {
  180. return ret;
  181. }
  182. for (const key in styles) {
  183. const value = styles[key];
  184. const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
  185. if (isString(value) ||
  186. (typeof value === 'number' && isNoUnitNumericStyleProp(normalizedKey))) {
  187. // only render valid values
  188. ret += `${normalizedKey}:${value};`;
  189. }
  190. }
  191. return ret;
  192. }
  193. function normalizeClass(value) {
  194. let res = '';
  195. if (isString(value)) {
  196. res = value;
  197. }
  198. else if (isArray(value)) {
  199. for (let i = 0; i < value.length; i++) {
  200. res += normalizeClass(value[i]) + ' ';
  201. }
  202. }
  203. else if (isObject(value)) {
  204. for (const name in value) {
  205. if (value[name]) {
  206. res += name + ' ';
  207. }
  208. }
  209. }
  210. return res.trim();
  211. }
  212. // These tag configs are shared between compiler-dom and runtime-dom, so they
  213. // https://developer.mozilla.org/en-US/docs/Web/HTML/Element
  214. const HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +
  215. 'header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,' +
  216. 'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' +
  217. 'data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,' +
  218. 'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' +
  219. 'canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,' +
  220. 'th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,' +
  221. 'option,output,progress,select,textarea,details,dialog,menu,' +
  222. 'summary,template,blockquote,iframe,tfoot';
  223. // https://developer.mozilla.org/en-US/docs/Web/SVG/Element
  224. const SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +
  225. 'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' +
  226. 'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' +
  227. 'feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +
  228. 'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' +
  229. 'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' +
  230. 'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' +
  231. 'mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,' +
  232. 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' +
  233. 'text,textPath,title,tspan,unknown,use,view';
  234. const VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';
  235. const isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS);
  236. const isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS);
  237. const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);
  238. const escapeRE = /["'&<>]/;
  239. function escapeHtml(string) {
  240. const str = '' + string;
  241. const match = escapeRE.exec(str);
  242. if (!match) {
  243. return str;
  244. }
  245. let html = '';
  246. let escaped;
  247. let index;
  248. let lastIndex = 0;
  249. for (index = match.index; index < str.length; index++) {
  250. switch (str.charCodeAt(index)) {
  251. case 34: // "
  252. escaped = '&quot;';
  253. break;
  254. case 38: // &
  255. escaped = '&amp;';
  256. break;
  257. case 39: // '
  258. escaped = '&#39;';
  259. break;
  260. case 60: // <
  261. escaped = '&lt;';
  262. break;
  263. case 62: // >
  264. escaped = '&gt;';
  265. break;
  266. default:
  267. continue;
  268. }
  269. if (lastIndex !== index) {
  270. html += str.substring(lastIndex, index);
  271. }
  272. lastIndex = index + 1;
  273. html += escaped;
  274. }
  275. return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
  276. }
  277. // https://www.w3.org/TR/html52/syntax.html#comments
  278. const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
  279. function escapeHtmlComment(src) {
  280. return src.replace(commentStripRE, '');
  281. }
  282. function looseCompareArrays(a, b) {
  283. if (a.length !== b.length)
  284. return false;
  285. let equal = true;
  286. for (let i = 0; equal && i < a.length; i++) {
  287. equal = looseEqual(a[i], b[i]);
  288. }
  289. return equal;
  290. }
  291. function looseEqual(a, b) {
  292. if (a === b)
  293. return true;
  294. let aValidType = isDate(a);
  295. let bValidType = isDate(b);
  296. if (aValidType || bValidType) {
  297. return aValidType && bValidType ? a.getTime() === b.getTime() : false;
  298. }
  299. aValidType = isArray(a);
  300. bValidType = isArray(b);
  301. if (aValidType || bValidType) {
  302. return aValidType && bValidType ? looseCompareArrays(a, b) : false;
  303. }
  304. aValidType = isObject(a);
  305. bValidType = isObject(b);
  306. if (aValidType || bValidType) {
  307. /* istanbul ignore if: this if will probably never be called */
  308. if (!aValidType || !bValidType) {
  309. return false;
  310. }
  311. const aKeysCount = Object.keys(a).length;
  312. const bKeysCount = Object.keys(b).length;
  313. if (aKeysCount !== bKeysCount) {
  314. return false;
  315. }
  316. for (const key in a) {
  317. const aHasKey = a.hasOwnProperty(key);
  318. const bHasKey = b.hasOwnProperty(key);
  319. if ((aHasKey && !bHasKey) ||
  320. (!aHasKey && bHasKey) ||
  321. !looseEqual(a[key], b[key])) {
  322. return false;
  323. }
  324. }
  325. }
  326. return String(a) === String(b);
  327. }
  328. function looseIndexOf(arr, val) {
  329. return arr.findIndex(item => looseEqual(item, val));
  330. }
  331. /**
  332. * For converting {{ interpolation }} values to displayed strings.
  333. * @private
  334. */
  335. const toDisplayString = (val) => {
  336. return val == null
  337. ? ''
  338. : isObject(val)
  339. ? JSON.stringify(val, replacer, 2)
  340. : String(val);
  341. };
  342. const replacer = (_key, val) => {
  343. if (isMap(val)) {
  344. return {
  345. [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val]) => {
  346. entries[`${key} =>`] = val;
  347. return entries;
  348. }, {})
  349. };
  350. }
  351. else if (isSet(val)) {
  352. return {
  353. [`Set(${val.size})`]: [...val.values()]
  354. };
  355. }
  356. else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
  357. return String(val);
  358. }
  359. return val;
  360. };
  361. /**
  362. * List of @babel/parser plugins that are used for template expression
  363. * transforms and SFC script transforms. By default we enable proposals slated
  364. * for ES2020. This will need to be updated as the spec moves forward.
  365. * Full list at https://babeljs.io/docs/en/next/babel-parser#plugins
  366. */
  367. const babelParserDefaultPlugins = [
  368. 'bigInt',
  369. 'optionalChaining',
  370. 'nullishCoalescingOperator'
  371. ];
  372. const EMPTY_OBJ = Object.freeze({})
  373. ;
  374. const EMPTY_ARR = Object.freeze([]) ;
  375. const NOOP = () => { };
  376. /**
  377. * Always return false.
  378. */
  379. const NO = () => false;
  380. const onRE = /^on[^a-z]/;
  381. const isOn = (key) => onRE.test(key);
  382. const isModelListener = (key) => key.startsWith('onUpdate:');
  383. const extend = Object.assign;
  384. const remove = (arr, el) => {
  385. const i = arr.indexOf(el);
  386. if (i > -1) {
  387. arr.splice(i, 1);
  388. }
  389. };
  390. const hasOwnProperty = Object.prototype.hasOwnProperty;
  391. const hasOwn = (val, key) => hasOwnProperty.call(val, key);
  392. const isArray = Array.isArray;
  393. const isMap = (val) => toTypeString(val) === '[object Map]';
  394. const isSet = (val) => toTypeString(val) === '[object Set]';
  395. const isDate = (val) => val instanceof Date;
  396. const isFunction = (val) => typeof val === 'function';
  397. const isString = (val) => typeof val === 'string';
  398. const isSymbol = (val) => typeof val === 'symbol';
  399. const isObject = (val) => val !== null && typeof val === 'object';
  400. const isPromise = (val) => {
  401. return isObject(val) && isFunction(val.then) && isFunction(val.catch);
  402. };
  403. const objectToString = Object.prototype.toString;
  404. const toTypeString = (value) => objectToString.call(value);
  405. const toRawType = (value) => {
  406. // extract "RawType" from strings like "[object RawType]"
  407. return toTypeString(value).slice(8, -1);
  408. };
  409. const isPlainObject = (val) => toTypeString(val) === '[object Object]';
  410. const isIntegerKey = (key) => isString(key) &&
  411. key !== 'NaN' &&
  412. key[0] !== '-' &&
  413. '' + parseInt(key, 10) === key;
  414. const isReservedProp = /*#__PURE__*/ makeMap(
  415. // the leading comma is intentional so empty string "" is also included
  416. ',key,ref,' +
  417. 'onVnodeBeforeMount,onVnodeMounted,' +
  418. 'onVnodeBeforeUpdate,onVnodeUpdated,' +
  419. 'onVnodeBeforeUnmount,onVnodeUnmounted');
  420. const cacheStringFunction = (fn) => {
  421. const cache = Object.create(null);
  422. return ((str) => {
  423. const hit = cache[str];
  424. return hit || (cache[str] = fn(str));
  425. });
  426. };
  427. const camelizeRE = /-(\w)/g;
  428. /**
  429. * @private
  430. */
  431. const camelize = cacheStringFunction((str) => {
  432. return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
  433. });
  434. const hyphenateRE = /\B([A-Z])/g;
  435. /**
  436. * @private
  437. */
  438. const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());
  439. /**
  440. * @private
  441. */
  442. const capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));
  443. /**
  444. * @private
  445. */
  446. const toHandlerKey = cacheStringFunction((str) => (str ? `on${capitalize(str)}` : ``));
  447. // compare whether a value has changed, accounting for NaN.
  448. const hasChanged = (value, oldValue) => value !== oldValue && (value === value || oldValue === oldValue);
  449. const invokeArrayFns = (fns, arg) => {
  450. for (let i = 0; i < fns.length; i++) {
  451. fns[i](arg);
  452. }
  453. };
  454. const def = (obj, key, value) => {
  455. Object.defineProperty(obj, key, {
  456. configurable: true,
  457. enumerable: false,
  458. value
  459. });
  460. };
  461. const toNumber = (val) => {
  462. const n = parseFloat(val);
  463. return isNaN(n) ? val : n;
  464. };
  465. let _globalThis;
  466. const getGlobalThis = () => {
  467. return (_globalThis ||
  468. (_globalThis =
  469. typeof globalThis !== 'undefined'
  470. ? globalThis
  471. : typeof self !== 'undefined'
  472. ? self
  473. : typeof window !== 'undefined'
  474. ? window
  475. : typeof global !== 'undefined'
  476. ? global
  477. : {}));
  478. };
  479. exports.EMPTY_ARR = EMPTY_ARR;
  480. exports.EMPTY_OBJ = EMPTY_OBJ;
  481. exports.NO = NO;
  482. exports.NOOP = NOOP;
  483. exports.PatchFlagNames = PatchFlagNames;
  484. exports.babelParserDefaultPlugins = babelParserDefaultPlugins;
  485. exports.camelize = camelize;
  486. exports.capitalize = capitalize;
  487. exports.def = def;
  488. exports.escapeHtml = escapeHtml;
  489. exports.escapeHtmlComment = escapeHtmlComment;
  490. exports.extend = extend;
  491. exports.generateCodeFrame = generateCodeFrame;
  492. exports.getGlobalThis = getGlobalThis;
  493. exports.hasChanged = hasChanged;
  494. exports.hasOwn = hasOwn;
  495. exports.hyphenate = hyphenate;
  496. exports.invokeArrayFns = invokeArrayFns;
  497. exports.isArray = isArray;
  498. exports.isBooleanAttr = isBooleanAttr;
  499. exports.isDate = isDate;
  500. exports.isFunction = isFunction;
  501. exports.isGloballyWhitelisted = isGloballyWhitelisted;
  502. exports.isHTMLTag = isHTMLTag;
  503. exports.isIntegerKey = isIntegerKey;
  504. exports.isKnownAttr = isKnownAttr;
  505. exports.isMap = isMap;
  506. exports.isModelListener = isModelListener;
  507. exports.isNoUnitNumericStyleProp = isNoUnitNumericStyleProp;
  508. exports.isObject = isObject;
  509. exports.isOn = isOn;
  510. exports.isPlainObject = isPlainObject;
  511. exports.isPromise = isPromise;
  512. exports.isReservedProp = isReservedProp;
  513. exports.isSSRSafeAttrName = isSSRSafeAttrName;
  514. exports.isSVGTag = isSVGTag;
  515. exports.isSet = isSet;
  516. exports.isSpecialBooleanAttr = isSpecialBooleanAttr;
  517. exports.isString = isString;
  518. exports.isSymbol = isSymbol;
  519. exports.isVoidTag = isVoidTag;
  520. exports.looseEqual = looseEqual;
  521. exports.looseIndexOf = looseIndexOf;
  522. exports.makeMap = makeMap;
  523. exports.normalizeClass = normalizeClass;
  524. exports.normalizeStyle = normalizeStyle;
  525. exports.objectToString = objectToString;
  526. exports.parseStringStyle = parseStringStyle;
  527. exports.propsToAttrMap = propsToAttrMap;
  528. exports.remove = remove;
  529. exports.stringifyStyle = stringifyStyle;
  530. exports.toDisplayString = toDisplayString;
  531. exports.toHandlerKey = toHandlerKey;
  532. exports.toNumber = toNumber;
  533. exports.toRawType = toRawType;
  534. exports.toTypeString = toTypeString;