r(i=0;!x&&d.layers&&i