Files
portfolio/node_modules/.cache/babel-loader/02d013d4b9f89b92fd882c9ffe4bdfb5.json
2021-09-20 16:54:47 -04:00

1 line
2.0 KiB
JSON

{"ast":null,"code":"'use strict'; // https://mathiasbynens.be/notes/javascript-encoding\n// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode\n\nmodule.exports = function ucs2length(str) {\n var length = 0,\n len = str.length,\n pos = 0,\n value;\n\n while (pos < len) {\n length++;\n value = str.charCodeAt(pos++);\n\n if (value >= 0xD800 && value <= 0xDBFF && pos < len) {\n // high surrogate, and there is a next character\n value = str.charCodeAt(pos);\n if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate\n }\n }\n\n return length;\n};","map":{"version":3,"sources":["/Users/tylerkoenig/Code/personal/react-scss2/node_modules/ajv/lib/compile/ucs2length.js"],"names":["module","exports","ucs2length","str","length","len","pos","value","charCodeAt"],"mappings":"AAAA,a,CAEA;AACA;;AACAA,MAAM,CAACC,OAAP,GAAiB,SAASC,UAAT,CAAoBC,GAApB,EAAyB;AACxC,MAAIC,MAAM,GAAG,CAAb;AAAA,MACIC,GAAG,GAAGF,GAAG,CAACC,MADd;AAAA,MAEIE,GAAG,GAAG,CAFV;AAAA,MAGIC,KAHJ;;AAIA,SAAOD,GAAG,GAAGD,GAAb,EAAkB;AAChBD,IAAAA,MAAM;AACNG,IAAAA,KAAK,GAAGJ,GAAG,CAACK,UAAJ,CAAeF,GAAG,EAAlB,CAAR;;AACA,QAAIC,KAAK,IAAI,MAAT,IAAmBA,KAAK,IAAI,MAA5B,IAAsCD,GAAG,GAAGD,GAAhD,EAAqD;AACnD;AACAE,MAAAA,KAAK,GAAGJ,GAAG,CAACK,UAAJ,CAAeF,GAAf,CAAR;AACA,UAAI,CAACC,KAAK,GAAG,MAAT,KAAoB,MAAxB,EAAgCD,GAAG,GAHgB,CAGZ;AACxC;AACF;;AACD,SAAOF,MAAP;AACD,CAfD","sourcesContent":["'use strict';\n\n// https://mathiasbynens.be/notes/javascript-encoding\n// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode\nmodule.exports = function ucs2length(str) {\n var length = 0\n , len = str.length\n , pos = 0\n , value;\n while (pos < len) {\n length++;\n value = str.charCodeAt(pos++);\n if (value >= 0xD800 && value <= 0xDBFF && pos < len) {\n // high surrogate, and there is a next character\n value = str.charCodeAt(pos);\n if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate\n }\n }\n return length;\n};\n"]},"metadata":{},"sourceType":"script"}