(s, o)
| 41142 | for (let u = 0; u < s.length && ((i = s[u]), (o = a.children), o[i]); u += 1) a = o[i] |
| 41143 | return a && a.protoValue |
| 41144 | } |
| 41145 | getParent(s, o) { |
| 41146 | return !s || s.length < 1 |
| 41147 | ? null |
| 41148 | : s.length < 2 |
| 41149 | ? this.root |
| 41150 | : s.slice(0, -1).reduce((s, i) => { |
| 41151 | if (!s) return s |
| 41152 | const { children: a } = s |
| 41153 | return (!a[i] && o && (a[i] = context_tree_createNode(null, s)), a[i]) |
| 41154 | }, this.root) |
| 41155 | } |
| 41156 | } |
| 41157 | function context_tree_createNode(s, o) { |