{"version":3,"file":"static/npm.unist-util-is.804673b8.js","mappings":"2HAIA,SAASA,EAAQC,GACf,GAAY,MAARA,EACF,OAAOC,EAGT,GAAoB,kBAATD,EACT,OAuDJ,SAAqBA,GACnB,OAAOE,EAEP,SAASA,EAAKC,GACZ,OAAOC,QAAQD,GAAQA,EAAKD,OAASF,EACvC,CACF,CA7DWK,CAAYL,GAGrB,GAAoB,kBAATA,EACT,MAAO,WAAYA,EA0BvB,SAAoBM,GAClB,IAAIC,EAAS,GACTC,GAAS,EAEb,OAASA,EAAQF,EAAMG,QACrBF,EAAOC,GAAST,EAAQO,EAAME,IAGhC,OAAOE,EAEP,SAASA,IAGP,IAFA,IAAIF,GAAS,IAEJA,EAAQD,EAAOE,QACtB,GAAIF,EAAOC,GAAOG,MAAMC,KAAMC,WAC5B,OAAO,EAIX,OAAO,CACT,CACF,CA/C8BC,CAAWd,GAYzC,SAAoBA,GAClB,OAAOe,EAEP,SAASA,EAAIZ,GACX,IAAIa,EAEJ,IAAKA,KAAOhB,EACV,GAAIG,EAAKa,KAAShB,EAAKgB,GAAM,OAAO,EAGtC,OAAO,CACT,CACF,CAxBiDC,CAAWjB,GAG1D,GAAoB,oBAATA,EACT,OAAOA,EAGT,MAAM,IAAIkB,MAAM,+CAClB,CAoDA,SAASjB,IACP,OAAO,CACT,CA1EAkB,EAAOC,QAAUrB,C","sources":["../node_modules/unist-util-is/convert.js"],"sourcesContent":["'use strict'\n\nmodule.exports = convert\n\nfunction convert(test) {\n if (test == null) {\n return ok\n }\n\n if (typeof test === 'string') {\n return typeFactory(test)\n }\n\n if (typeof test === 'object') {\n return 'length' in test ? anyFactory(test) : allFactory(test)\n }\n\n if (typeof test === 'function') {\n return test\n }\n\n throw new Error('Expected function, string, or object as test')\n}\n\n// Utility assert each property in `test` is represented in `node`, and each\n// values are strictly equal.\nfunction allFactory(test) {\n return all\n\n function all(node) {\n var key\n\n for (key in test) {\n if (node[key] !== test[key]) return false\n }\n\n return true\n }\n}\n\nfunction anyFactory(tests) {\n var checks = []\n var index = -1\n\n while (++index < tests.length) {\n checks[index] = convert(tests[index])\n }\n\n return any\n\n function any() {\n var index = -1\n\n while (++index < checks.length) {\n if (checks[index].apply(this, arguments)) {\n return true\n }\n }\n\n return false\n }\n}\n\n// Utility to convert a string into a function which checks a given node’s type\n// for said string.\nfunction typeFactory(test) {\n return type\n\n function type(node) {\n return Boolean(node && node.type === test)\n }\n}\n\n// Utility to return true.\nfunction ok() {\n return true\n}\n"],"names":["convert","test","ok","type","node","Boolean","typeFactory","tests","checks","index","length","any","apply","this","arguments","anyFactory","all","key","allFactory","Error","module","exports"],"sourceRoot":""}