{"version":3,"sources":["node_modules\\react\\lib\\KeyEscapeUtils.js"],"names":["escape","key","escapeRegex","escaperLookup","escapedString","replace","match","unescape","unescapeRegex","unescaperLookup","keySubstring","substring","KeyEscapeUtils","module","exports"],"mappings":";;;;;;;;;;;AAWA;;;;;;;;;AASA,QAASA,OAAT,CAAgBC,GAAhB,CAAqB;AACnB,GAAIC,aAAc,OAAlB;AACA,GAAIC,eAAgB;AAClB,IAAK,IADa;AAElB,IAAK,IAFa,CAApB;;AAIA,GAAIC,eAAgB,CAAC,GAAKH,GAAN,EAAWI,OAAX,CAAmBH,WAAnB,CAAgC,SAAUI,KAAV,CAAiB;AACnE,MAAOH,eAAcG,KAAd,CAAP;AACD,CAFmB,CAApB;;AAIA,MAAO,IAAMF,aAAb;AACD;;;;;;;;AAQD,QAASG,SAAT,CAAkBN,GAAlB,CAAuB;AACrB,GAAIO,eAAgB,UAApB;AACA,GAAIC,iBAAkB;AACpB,KAAM,GADc;AAEpB,KAAM,GAFc,CAAtB;;AAIA,GAAIC,cAAeT,IAAI,CAAJ,IAAW,GAAX,EAAkBA,IAAI,CAAJ,IAAW,GAA7B,CAAmCA,IAAIU,SAAJ,CAAc,CAAd,CAAnC,CAAsDV,IAAIU,SAAJ,CAAc,CAAd,CAAzE;;AAEA,MAAO,CAAC,GAAKD,YAAN,EAAoBL,OAApB,CAA4BG,aAA5B,CAA2C,SAAUF,KAAV,CAAiB;AACjE,MAAOG,iBAAgBH,KAAhB,CAAP;AACD,CAFM,CAAP;AAGD;;AAED,GAAIM,gBAAiB;AACnBZ,OAAQA,MADW;AAEnBO,SAAUA,QAFS,CAArB;;;AAKAM,OAAOC,OAAP,CAAiBF,cAAjB","file":"KeyEscapeUtils.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\nfunction escape(key) {\n  var escapeRegex = /[=:]/g;\n  var escaperLookup = {\n    '=': '=0',\n    ':': '=2'\n  };\n  var escapedString = ('' + key).replace(escapeRegex, function (match) {\n    return escaperLookup[match];\n  });\n\n  return '$' + escapedString;\n}\n\n/**\n * Unescape and unwrap key for human-readable display\n *\n * @param {string} key to unescape.\n * @return {string} the unescaped key.\n */\nfunction unescape(key) {\n  var unescapeRegex = /(=0|=2)/g;\n  var unescaperLookup = {\n    '=0': '=',\n    '=2': ':'\n  };\n  var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1);\n\n  return ('' + keySubstring).replace(unescapeRegex, function (match) {\n    return unescaperLookup[match];\n  });\n}\n\nvar KeyEscapeUtils = {\n  escape: escape,\n  unescape: unescape\n};\n\nmodule.exports = KeyEscapeUtils;"]}