#!/system/bin/sh
# ============================
# 基础信息讲解
# ============================
# 运行环境：MT管理器 系统终端环境（无需ROOT，无需使用终端扩展包只需系统环境即可执行）
# sh更新版本：v1.0.3
# 更新时间：2026/01/18
# 永久网址：b6w.cn
# 验证站点：m.b6w.cn
# 功能定位：Shell卡密验证 + 云端更新 心跳验证 篡改上报 
# 【关于心跳验证运行策略】
# ▶ 心跳验证防护：无网络/服务器无响应时，自动跳过本次验证，不中断脚本运行
# ▶ 强制中断触发：仅在以下3种场景下，才会强制终止脚本
#   - 卡密验证失败
#   - 数据传输过程中被篡改
#   - 卡密有效期已到期
#考虑的很全面.防止意外发生，嘿嘿嘿！
# ===========================
# 云更新核心策略
# ===========================
# 1. 强制更新：后台勾选「强制更新」后，版本不一致时自动执行更新，无用户选择环节
# 2. 非强制更新：后台未勾选时，检测到新版本会询问用户是否更新
# 3. 文件覆盖规则：更新包内容直接替换当前脚本文件
# ===========================
# 支持的更新包类型及处理逻辑
# ===========================
# ▶ 后缀为 .sh 的更新包
#   - 直接替换当前脚本的内容，完成更新
#
# ▶ 后缀为 .zip 的更新包
#   - 下载后生成带版本号+随机字符的独立文件，保留所有旧版本
#   - 适用于需要更新so文件等场景，需手动解压并移动文件执行
# ===========================

# ====================== 开发者核心配置项 ======================
# 【接口配置】- 对接云端验证/更新接口的必备参数
# 应用唯一标识（即后台应用ID或者 API Key）
API_KEY="e6dddfbf7d08f3e81a3e13f0f7a68a50"

# 【版本配置】- 用于和云端版本比对，判断是否需要更新
# 本地脚本当前版本号
CURRENT_VERSION="1.0.0"

# 【更新行为配置】- 新版本替换后是否自动执行
# 取值说明：
#   1 = 更新完成后，自动重启脚本运行
#   0 = 更新完成后，退出脚本，需手动重启执行
AUTO_EXEC_AFTER_UPDATE="1"

# 【心跳验证配置】- 后台保活验证的参数设置
# 心跳验证间隔时间（单位：秒），默认5分钟=300秒
# 注意：取值不可低于30秒，否则会被云端判定为异常请求封禁
HEARTBEAT_INTERVAL=300

# 服务器无响应/网络异常时的重试次数
# 注意：无需手动修改，保持默认即可
HEARTBEAT_RETRY=3

# ======================开发者配置完成-下方代码无需修改======================
mt_read() {
    echo "$1"
    read CARD_KEY
}

API_URL_UPDATE=$(echo "aHR0cHM6Ly9tLmI2dy5jbi9hcGkvYjZ3YXBpeWd4LnBocA==" | base64 -d)
API_URL_VERIFY=$(echo "aHR0cHM6Ly9tLmI2dy5jbi9hcGkvYjZ3YXBpa2V5LnBocA==" | base64 -d)
REPORT_URL=$(echo "aHR0cHM6Ly9tLmI2dy5jbi9hcGkvc2IucGhw" | base64 -d)
SIGN_KEY="必6网.免费的云更新验证系统官方网站部分浏览器显示有风险可以换个浏览器-浏览器搜索b6w.cn"
DEVICE_FILE="/data/local/tmp/.device_code.txt"
BACKUP_DEVICE_FILE="./.device_code.txt"
CARD_KEY_MAIN_FILE="/data/local/tmp/.saved_card_key.txt"
CARD_KEY_BACKUP_FILE="./.saved_card_key.txt"
RETRY_INTERVAL=3

get_device_code() {
    local hardware_id=""
    if [ -z "$hardware_id" ] && [ -f "/sys/class/android_usb/android0/iSerial" ]; then
        hardware_id=$(cat /sys/class/android_usb/android0/iSerial 2>/dev/null | tr -d ' \n\r')
    fi
    if [ -z "$hardware_id" ] && [ -f "/proc/cpuinfo" ]; then
        hardware_id=$(grep -i 'serial' /proc/cpuinfo 2>/dev/null | head -n1 | awk -F: '{print $2}' | tr -d ' \n\r')
    fi
    if [ -z "$hardware_id" ] && command -v getprop &>/dev/null; then
        hardware_id=$(getprop ro.serialno 2>/dev/null | tr -d ' \n\r')
        [ -z "$hardware_id" ] && hardware_id=$(getprop ro.boot.serialno 2>/dev/null | tr -d ' \n\r')
    fi
    if [ -z "$hardware_id" ] && [ -f "/sys/class/bluetooth/hci0/address" ]; then
        hardware_id=$(cat /sys/class/bluetooth/hci0/address 2>/dev/null | tr -d ':\n\r')
    fi
    if [ -z "$hardware_id" ] && [ -f "/sys/class/net/wlan0/address" ]; then
        hardware_id=$(cat /sys/class/net/wlan0/address 2>/dev/null | tr -d ':\n\r')
    fi
    if [ -z "$hardware_id" ]; then
        if [ -f "$BACKUP_DEVICE_FILE" ]; then
            hardware_id=$(cat "$BACKUP_DEVICE_FILE" 2>/dev/null | tr -d ' \n\r')
        elif [ -f "$DEVICE_FILE" ]; then
            hardware_id=$(cat "$DEVICE_FILE" 2>/dev/null | tr -d ' \n\r')
        else
            hardware_id=$(date +%s | md5sum | head -c 16)
        fi
    fi
    local fixed_code="$hardware_id"
    [ ${#fixed_code} -gt 32 ] && fixed_code="${fixed_code:0:32}"
    if [ ${#fixed_code} -lt 32 ]; then
        fixed_code=$(printf "%-32s" "$fixed_code" | tr ' ' '0')
    fi
    if ! echo "$fixed_code" > "$BACKUP_DEVICE_FILE" 2>/dev/null; then
        if echo "$fixed_code" > "$DEVICE_FILE" 2>/dev/null; then
            DEVICE_FILE="$DEVICE_FILE"
        else
            echo "[警告] 设备码文件写入失败，临时生效" >&2
        fi
    else
        DEVICE_FILE="$BACKUP_DEVICE_FILE"
    fi
    chmod 600 "$DEVICE_FILE" 2>/dev/null
    echo "$fixed_code"
}

DEVICE_CODE=$(get_device_code)
[ -z "$DEVICE_CODE" ] && { echo "设备码生成失败" >&2; exit 1; }

request_with_retry() {
    local url="$1"
    local data="$2"
    local retry_count=1
    while true; do
        local response=$(curl -s --connect-timeout 10 -X POST "$url" -H "Content-Type: application/json" -d "$data")
        if [ $? -eq 0 ] && [ -n "$response" ]; then
            echo "$response"
            return 0
        fi
        echo "[重试] 接口请求失败（第$retry_count次），$RETRY_INTERVAL秒后重试..."
        sleep $RETRY_INTERVAL
        retry_count=$((retry_count + 1))
    done
}
extract_field() {
    local key="$1"
    local json="$2"
    local single_json=$(echo "$json" | sed ':a;N;$!ba;s/\n/###NL###/g')
    local value=$(echo "$single_json" | sed -n "s/.*\"$key\":\"//;s/\".*//p")
    echo "$value" | sed 's/###NL###/\n/g' | sed 's/\\\\n/\n/g'
}

check_update() {
    echo "===== 开始云更新检查 ====="
    local verify_data='{"action":"verify_api_key", "api_key":"'$API_KEY'"}'
    local verify_response=$(request_with_retry "$API_URL_UPDATE" "$verify_data")
    local app_id=$(extract_field "app_id" "$verify_response")

    if [ -z "$app_id" ]; then
        local error_msg=$(extract_field "error" "$verify_response")
        echo "[错误] 更新验证失败：$error_msg"
        return 1
    fi
    echo "[成功] 应用ID：$app_id"

    local config_data='{"action":"get_config", "app_id":"'$app_id'"}'
    local config_response=$(request_with_retry "$API_URL_UPDATE" "$config_data")

    local announcement=$(extract_field "announcement" "$config_response")
    local latest_version=$(extract_field "latest_version" "$config_response")
    local update_url=$(extract_field "update_url" "$config_response")

    local force_update=$(echo "$config_response" | sed ':a;N;$!ba;s/\n//g' | sed -n 's/.*"force_update"[ ]*:[ ]*\([truefalse]\{4,5\}\)[,}].*/\1/p')
    [ -z "$force_update" ] && force_update="false"

    local force_update_cn="否"
    [ "$force_update" = "true" ] && force_update_cn="是"

    echo -e "\n[配置信息]:"
    echo -n "  公告内容："
    if [ -n "$announcement" ]; then
        echo -e "\n$announcement"
    else
        echo "无公告"
    fi
    echo "  当前版本：$CURRENT_VERSION（本地）"
    echo "  最新版本：$latest_version（云端）"
    echo "  是否强制更新：$force_update_cn"
    echo "  开发者更新配置-更新后自动执行：$( [ "$AUTO_EXEC_AFTER_UPDATE" = "1" ] && echo "是" || echo "否" )"

    update_url=$(echo "$update_url" | sed 's/\\\//\//g')

    if [ "$latest_version" != "$CURRENT_VERSION" ] && [ -n "$update_url" ] && [ "$latest_version" != "" ]; then
        echo -e "\n[发现新版本] $latest_version"
        if ! command -v curl &> /dev/null; then
            echo "[错误] 缺少curl工具，请安装后重试"
            exit 1
        fi

        if [ "$force_update" = "true" ]; then
            echo "[强制更新] 必须更新才能继续使用！"
            update_action=1
        else
            echo "[非强制更新] 发现新版本，是否更新？（1=更新，0=不更新，默认0）"
            mt_read "请输入选择（1/0）："
            [ -z "$CARD_KEY" ] && user_choice=0 || user_choice=$CARD_KEY
            if [ "$user_choice" -eq 1 ]; then
                echo "用户选择：执行更新"
                update_action=1
            else
                echo "用户选择：不更新，继续执行后续流程"
                update_action=0
                rm -f "$new_file_path" 2>/dev/null
                return 0
            fi
        fi

        if [ $update_action -eq 1 ]; then
            local script_path=$(cd "$(dirname "$0")" || exit; pwd)
            local script_name=$(basename "$0")
            local new_file_path="${script_path}/temp_update_file"

            while true; do
                if curl -fL "$update_url" -o "$new_file_path" &> /dev/null; then
                    break
                fi
                echo "[重试] 更新文件下载失败，$RETRY_INTERVAL秒后重试..."
                sleep $RETRY_INTERVAL
            done

            local file_ext=$(echo "$update_url" | awk -F. '{print $NF}' | tr 'A-Z' 'a-z' | sed 's/^[ 	]*//;s/[ 	]*$//')
            echo "[更新文件信息] 后缀：$file_ext"

            if [ "$file_ext" = "zip" ]; then
                echo "[更新处理] 识别ZIP文件，生成唯一文件名（保留所有旧文件）"
                local random_str=$(date +%s%N | md5sum | head -c 8)
                local zip_file_name="${script_name%.sh}-${latest_version}-${random_str}.zip"
                local zip_file_path="${script_path}/${zip_file_name}"
            
                if [ -f "$zip_file_path" ]; then
                    echo "[提示] 极端情况：文件名已存在，重新生成随机字符..."
                    random_str=$(date +%s%N | md5sum | head -c 8)
                    zip_file_name="${script_name%.sh}-${latest_version}-${random_str}.zip"
                    zip_file_path="${script_path}/${zip_file_name}"
                fi

                if cat "$new_file_path" > "$0"; then
                    mv -f "$0" "$zip_file_path"
                    echo "[成功] ZIP更新完成：$zip_file_path"
                    echo "[提示] 所有旧版本ZIP文件已完整保留，新文件通过版本号+随机字符区分"
                    echo "[提示] ZIP文件无法自动执行，已退出"
                    rm -f "$new_file_path"
                    exit 0
                else
                    echo "[错误] ZIP文件内容替换失败"
                    rm -f "$new_file_path"
                    exit 1
                fi
            else
                echo "[更新处理] 识别非ZIP文件，覆盖更新并准备自动执行"
                local backup_script_path="${script_path}/${script_name}.bak"
                cp -f "$0" "$backup_script_path" 2>/dev/null
                if cat "$new_file_path" > "$0"; then
                    chmod +x "$0"
                    echo "[成功] 脚本更新至 $latest_version（旧脚本已备份为 ${script_name}.bak）"
                    rm -f "$new_file_path"
                    if [ "$AUTO_EXEC_AFTER_UPDATE" = "1" ]; then
                        echo "按配置：立即自动执行更新后的脚本..."
                        exec sh "$0"
                        echo "[警告] 自动执行触发失败，请手动运行 $0"
                        exit 1
                    else
                        echo "按配置：不自动执行，请手动重启 $0"
                        exit 0
                    fi
                else
                    echo "[错误] 非ZIP文件更新失败，恢复旧脚本..."
                    cp -f "$backup_script_path" "$0" 2>/dev/null
                    rm -f "$new_file_path" "$backup_script_path"
                    exit 1
                fi
            fi
        fi
    else
        if [ "$latest_version" = "$CURRENT_VERSION" ]; then
            echo -e "\n[状态] 本地版本（$CURRENT_VERSION）与云端版本（$latest_version）一致，无需更新"
        elif [ -z "$update_url" ]; then
            echo -e "\n[状态] 虽有新版本（$latest_version），但云端未配置更新链接，无法更新"
        else
            echo -e "\n[状态] 当前已是最新版本"
        fi
    fi
    echo -e "\n===== 更新检查完成 ====="
}

decode_unicode() {
    local str="$1"
    while echo "$str" | grep -q '\\u[0-9a-fA-F]\{4\}'; do
        local unicode=$(echo "$str" | sed -n 's/.*\(\\u[0-9a-fA-F]\{4\}\).*/\1/p')
        local hex=${unicode#\\u}
        local dec=$((16#$hex))
        local char=$(printf "\\$(printf '%03o' "$dec")")
        str=$(echo "$str" | sed "s/${unicode}/${char}/")
    done
    echo "$str"
}

generate_sign() {
    local data="$1"
    local salt="$2"
    local timestamp="$3"
    echo -n "${data}${salt}${timestamp}${SIGN_KEY}" | md5sum | awk '{print $1}'
}

report_tampering() {
    local request_params="$1"
    local tampered_response="$2"
    local timestamp="$3"
    local client_ip=$(curl -s --connect-timeout 5 http://icanhazip.com 2>/dev/null || curl -s --connect-timeout 5 http://ip.cn/ip 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' || echo "未知IP")
    client_ip=$(echo "$client_ip" | tr -d '\n\r')

    req_escaped=$(echo "$request_params" | sed 's/\\/\\\\/g')
    resp_escaped=$(echo "$tampered_response" | sed 's/\\/\\\\/g')
    req_escaped=$(echo "$req_escaped" | sed 's/"/\\"/g')
    resp_escaped=$(echo "$resp_escaped" | sed 's/"/\\"/g')
    req_escaped=$(echo "$req_escaped" | sed ':a;N;$!ba;s/\n/\\n/g')
    resp_escaped=$(echo "$resp_escaped" | sed ':a;N;$!ba;s/\n/\\n/g')
    req_escaped=$(echo "$req_escaped" | sed 's/\r/\\r/g; s/\t/\\t/g')
    resp_escaped=$(echo "$resp_escaped" | sed 's/\r/\\r/g; s/\t/\\t/g')

    report_data="{\"ip\":\"$client_ip\",\"timestamp\":\"$timestamp\",\"request_params\":\"$req_escaped\",\"tampered_response\":\"$resp_escaped\"}"
    report_result=$(curl -s --connect-timeout 10 -X POST "$REPORT_URL" -H "Content-Type: application/json" -d "$report_data")
    result_msg=$(echo "$report_result" | sed -n 's/.*"message":"\([^"]*\)".*/\1/p' | decode_unicode)
    echo "数据已记录上传结果：${result_msg:-篡改数据已上传}"
}

verify_card_key() {
    echo -e "\n===== 开始卡密验证 ====="
    local CARD_KEY=""
    if [ -f "$CARD_KEY_BACKUP_FILE" ]; then
        CARD_KEY=$(cat "$CARD_KEY_BACKUP_FILE" 2>/dev/null | tr -d ' \n\r')
        [ -n "$CARD_KEY" ] && echo "[自动登录] 从当前目录读取到卡密，自动验证..."
    fi
    if [ -z "$CARD_KEY" ] && [ -f "$CARD_KEY_MAIN_FILE" ]; then
        CARD_KEY=$(cat "$CARD_KEY_MAIN_FILE" 2>/dev/null | tr -d ' \n\r')
        [ -n "$CARD_KEY" ] && echo "[自动登录] 从主路径读取到卡密，自动验证..."
    fi

    while true; do
        if [ -z "$CARD_KEY" ]; then
            mt_read "请输入卡密："
            [ -z "$CARD_KEY" ] && { echo "卡密不能为空，请重新输入"; continue; }
        fi

        local TIMESTAMP=$(date +%s)
        local REQUEST_PARAMS=$(printf '{"api_key":"%s","key":"%s","device_code":"%s","timestamp":"%s"}' "$API_KEY" "$CARD_KEY" "$DEVICE_CODE" "$TIMESTAMP")
        local RESPONSE=$(request_with_retry "$API_URL_VERIFY" "$REQUEST_PARAMS")

        local CODE=$(echo "$RESPONSE" | sed -n 's/.*"code"[ 	]*:[ 	]*\([0-9]*\).*/\1/p; s/.*"code"[ 	]*:[ 	]*\([0-9]*\),.*/\1/p' | head -n1)
        local MESSAGE_RAW=$(echo "$RESPONSE" | sed -n 's/.*"message"[ 	]*:"\([^"]*\)".*/\1/p; s/.*"message"[ 	]*:"\([^"]*\)",.*/\1/p' | head -n1)
        local MESSAGE=$(decode_unicode "$MESSAGE_RAW")
        local DATA=$(echo "$RESPONSE" | sed -n 's/.*"data"[ 	]*:"\([^"]*\)".*/\1/p' | head -n1)
        local SALT=$(echo "$RESPONSE" | sed -n 's/.*"salt"[ 	]*:"\([^"]*\)".*/\1/p' | head -n1)
        local SERVER_SIGN=$(echo "$RESPONSE" | sed -n 's/.*"sign"[ 	]*:"\([^"]*\)".*/\1/p' | head -n1)

        if [ "$CODE" -eq 200 ] && [ -n "$DATA" ] && [ -n "$SALT" ] && [ -n "$SERVER_SIGN" ]; then
            local CLIENT_SIGN=$(generate_sign "$DATA" "$SALT" "$TIMESTAMP")
            if [ "$CLIENT_SIGN" != "$SERVER_SIGN" ]; then
                echo "验证失败：数据被篡改.请勿非法破解.严重的提交至公安机关处理"
                report_tampering "$REQUEST_PARAMS" "$RESPONSE" "$TIMESTAMP"
                CARD_KEY=""
                continue
            fi

            local RAW_DATA=$(echo -n "$DATA" | base64 -d 2>/dev/null)
            local EXPIRES_AT=$(echo "$RAW_DATA" | sed -n 's/.*"expires_at"[ 	]*:"\([^"]*\)".*/\1/p; s/.*"expires_at":"\([^"]*\)".*/\1/p' | head -n1 | tr -d ' \n\r}')
            local USED_DEVICES=$(echo "$RAW_DATA" | sed -n 's/.*"used_devices"[ 	]*:\([0-9]*\).*/\1/p; s/.*"used_devices":\([0-9]*\).*/\1/p' | head -n1 | tr -d ' \n\r,}')
            local MAX_DEVICES=$(echo "$RAW_DATA" | sed -n 's/.*"max_devices"[ 	]*:\([0-9]*\).*/\1/p; s/.*"max_devices":\([0-9]*\).*/\1/p' | head -n1 | tr -d ' \n\r,}')

            if [ -n "$EXPIRES_AT" ] && [ -n "$USED_DEVICES" ] && [ -n "$MAX_DEVICES" ]; then
                if echo "$CARD_KEY" > "$CARD_KEY_BACKUP_FILE" 2>/dev/null; then
                    chmod 600 "$CARD_KEY_BACKUP_FILE"
                    echo "[自动登录] 卡密已保存到当前目录（$CARD_KEY_BACKUP_FILE），下次自动验证"
                elif echo "$CARD_KEY" > "$CARD_KEY_MAIN_FILE" 2>/dev/null; then
                    chmod 600 "$CARD_KEY_MAIN_FILE"
                    echo "[自动登录] 卡密已保存到主路径（$CARD_KEY_MAIN_FILE），下次自动验证"
                else
                    echo "[警告] 卡密保存失败，下次需重新输入" >&2
                fi
                export GLOBAL_CARD_KEY="$CARD_KEY"
                export GLOBAL_EXPIRES_AT="$EXPIRES_AT"
                export GLOBAL_USED_DEVICES="$USED_DEVICES"
                export GLOBAL_MAX_DEVICES="$MAX_DEVICES"
                break
            else
                echo "验证失败：数据不完整，请重新输入"
                CARD_KEY=""
            fi
        else
            [ -z "$MESSAGE" ] && MESSAGE="未知错误"
            echo "验证失败：$MESSAGE，请重新输入"
            CARD_KEY=""
            [ -f "$CARD_KEY_MAIN_FILE" ] && rm -f "$CARD_KEY_MAIN_FILE"
            [ -f "$CARD_KEY_BACKUP_FILE" ] && rm -f "$CARD_KEY_BACKUP_FILE"
        fi
    done
}

heartbeat_verify() {
    echo -e "\n===== 心跳验证已启动（间隔$HEARTBEAT_INTERVAL秒） ====="
    while true; do
        sleep $HEARTBEAT_INTERVAL
        echo -e "\n[心跳] （$(date "+%Y-%m-%d %H:%M:%S")）"

        local card_key="$GLOBAL_CARD_KEY"
        local device_code="$DEVICE_CODE"
        [ -z "$card_key" ] || [ -z "$device_code" ] && { echo "[心跳] 卡密/设备码缺失，强制中断脚本"; exit 1; }

        local TIMESTAMP=$(date +%s)
        local REQUEST_PARAMS=$(printf '{"api_key":"%s","key":"%s","device_code":"%s","timestamp":"%s"}' "$API_KEY" "$card_key" "$device_code" "$TIMESTAMP")
        local retry_count=1
        local RESPONSE=""
        while [ $retry_count -le $HEARTBEAT_RETRY ]; do
            RESPONSE=$(curl -s --connect-timeout 10 -X POST "$API_URL_VERIFY" -H "Content-Type: application/json" -d "$REQUEST_PARAMS")
            [ $? -eq 0 ] && [ -n "$RESPONSE" ] && break
            echo "[心跳重试] 请求失败（第$retry_count次），$RETRY_INTERVAL秒后重试..."
            sleep $RETRY_INTERVAL
            retry_count=$((retry_count + 1))
        done

        [ -z "$RESPONSE" ] && { echo "[心跳] 服务器无响应，本次跳过"; continue; }

        local CODE=$(echo "$RESPONSE" | sed -n 's/.*"code"[ 	]*:[ 	]*\([0-9]*\).*/\1/p; s/.*"code"[ 	]*:[ 	]*\([0-9]*\),.*/\1/p' | head -n1)
        local MESSAGE_RAW=$(echo "$RESPONSE" | sed -n 's/.*"message"[ 	]*:"\([^"]*\)".*/\1/p; s/.*"message"[ 	]*:"\([^"]*\)",.*/\1/p' | head -n1)
        local MESSAGE=$(decode_unicode "$MESSAGE_RAW")

        [ "$CODE" -eq 200 ] && echo "[心跳] 验证成功" || { echo "[心跳] 卡密验证失败：$MESSAGE"; echo "[心跳] 强制中断脚本运行"; exit 1; }
    done
}

start_heartbeat_in_background() {
    heartbeat_verify &
    HEARTBEAT_PID=$!
    trap 'kill $HEARTBEAT_PID 2>/dev/null' EXIT
}
#注：源代码执行期间，心跳会在后台每隔$HEARTBEAT_INTERVAL秒自动验证
check_update
verify_card_key
echo -e "\n卡密验证成功"
echo "到期时间：$GLOBAL_EXPIRES_AT"
echo "设备限制：已用$GLOBAL_USED_DEVICES台，共$GLOBAL_MAX_DEVICES台"

start_heartbeat_in_background

# ===================== 你的源代码填写区域 =====================
#卡密验证之后则会执行你的源代码


#看啥呀？把我替换成你的源代码呀.这还要脑子吗




# ===================== 上方填写你的源代码 =====================
wait
