class BjcCov {
    coverage: {
        [key: string]: string | number;
    };
    constructor(covData: object) {
        const gcv = "__coverage__";
        let coverage = globalThis[gcv] || (globalThis[gcv] = {});
        if (!coverage[covData.path] && true) {
            coverage[covData.path] = covData;
        }
        this.coverage = coverage[covData.path];
    }
    instrumentFunction(func: number) {
        this.coverage.functions[func].count++;
        this.coverage.functions[func].regions[0].count++;
    }
    instrumentRegion(func: number, region: number) {
        this.coverage.functions[func].regions[region].count++;
    }
    instrumentReturn(func: number, retIdx: number) {
        this.coverage.functions[func].returnes[retIdx].count++;
    }
    instrumentBranch(func: number, branch: number, trueOrFalse: boolean) {
        if (trueOrFalse) {
            this.coverage.functions[func].branches[branch].trueCount++;
            for (let r of Object.values(this.coverage.functions[func].branches[branch].group)) {
                if (r !== branch) {
                    this.coverage.functions[func].branches[r as number].falseCount++;
                }
            }
        }
        else {
            this.coverage.functions[func].branches[branch].falseCount++;
        }
    }
}
let bjccovms5u83qx = new BjcCov({ version: "bjc v1.0.0", versionCode: 10000, path: "tencentqianwebview/src/main/ets/internal/WebSettingsApplier.ets", hash: "e49237cd4641ba8fe2c72c2ca51dabcab0f21288ceed0fab1cde86255ed670c2", lineCnt: 48, count: 0, projectPath: "", functions: { 0: { name: "WebSettingsApplier.mixedModeName", count: 0, regions: { 0: { startLoc: { line: 26, col: 3 }, endLoc: { line: 28, col: 4 }, count: 0, ignored: 0 }, 1: { startLoc: { line: 27, col: 5 }, endLoc: { line: 28, col: 4 }, count: 0, ignored: 0 } }, branches: { 0: { startLoc: { line: 27, col: 12 }, endLoc: { line: 27, col: 46 }, trueCount: 0, falseCount: 0, group: {}, ignored: 0 } }, ignored: 0, index: 0 }, 1: { name: "WebSettingsApplier.constructor", count: 0, regions: { 0: { startLoc: { line: 30, col: 3 }, endLoc: { line: 30, col: 27 }, count: 0, ignored: 0 } }, branches: {}, ignored: 0, index: 1 } }, exeLine: { 0: 6, 1: 8, 2: 9, 3: 10, 4: 11, 5: 12, 6: 13, 7: 14, 8: 15, 9: 16, 10: 17, 11: 18, 12: 26, 13: 27, 14: 30, 15: 36, 16: 37, 17: 38, 18: 39, 19: 40, 20: 41, 21: 42, 22: 43, 23: 44, 24: 45, 25: 46 } });
/**
 * Web 组件标准配置应用器。
 *
 * 输出 SDK 推荐的 Web 组件属性集合，由调用方在自己的 Web 组件链式属性上引用。
 */
export class WebSettingsApplier {
    /** Web 组件推荐的标准配置只读快照。 */
    public static readonly DEFAULTS: Readonly<WebSettingsSnapshot> = {
        javaScriptAccess: true,
        domStorageAccess: true,
        mediaPlaybackRequiresUserGesture: false,
        fileAccess: false,
        databaseAccess: true,
        textZoomAtio: 100,
        zoomAccess: true,
        multiWindowAccess: false,
        wideViewModeAccess: true,
        overviewModeAccess: true
    };
    /**
     * 根据 `allowMixedContent` 返回对应的 MixedMode 名。
     * - `true` → `'All'`
     * - `false` → `'None'`
     */
    public static mixedModeName(allowMixedContent: boolean): 'All' | 'None' {
        bjccovms5u83qx.instrumentFunction(0);
        bjccovms5u83qx.instrumentRegion(0, 1);
        return allowMixedContent ? (bjccovms5u83qx.instrumentBranch(0, 0, true), 'All') : (bjccovms5u83qx.instrumentBranch(0, 0, false), 'None');
    }
    private constructor() { bjccovms5u83qx.instrumentFunction(1); }
}
/**
 * Web 组件标准配置快照接口。
 */
export interface WebSettingsSnapshot {
    javaScriptAccess: boolean;
    domStorageAccess: boolean;
    mediaPlaybackRequiresUserGesture: boolean;
    fileAccess: boolean;
    databaseAccess: boolean;
    textZoomAtio: number;
    zoomAccess: boolean;
    multiWindowAccess: boolean;
    wideViewModeAccess: boolean;
    overviewModeAccess: boolean;
}
