Univerbation of Sanskrit क्व (kva) चिद् (cid), synchronically yielding kva (“where?”) + -ci (“some, any”).
kvaci