<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Interactive Accounting - Manufacturing Statements</title>
    <link href="https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;600;700&display=swap" rel="stylesheet">
    <style>
        :root {
            --accent-color: #39BB51;
            --text-color: #000;
        }

        /* Copy all base styles from index.html */
        body {
            margin: 0;
            font-family: 'Albert Sans', sans-serif;
            background: #fff;
            color: var(--text-color);
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
        }

        /* Header styles from index.html */
        .header {
            padding: 2rem 4rem;
            position: sticky;
            top: 0;
            background: transparent;
            transition: all 0.3s ease;
            z-index: 101;
            display: flex;
            justify-content: center;
        }

        .header.scrolled {
            background: rgba(40, 40, 40, 0.8);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .nav-menu {
            display: flex;
            gap: 3rem;
            align-items: center;
            font-size: 1rem;
            margin: 0 auto;
        }

        .nav-link {
            color: var(--text-color);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.2s;
        }

        .nav-link:hover {
            color: var(--accent-color);
        }

        .header.scrolled .nav-link {
            color: white;
            opacity: 0.9;
        }

        .header.scrolled .nav-link:hover {
            opacity: 1;
        }

        /* New styles for interactive section */
        .main-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
            padding-bottom: 4rem;  /* Add extra padding at the bottom */
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 2rem;
            text-align: center;
        }

        .company-info {
            background: rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(16px);
            border-radius: 13px;
            padding: 2rem;
            margin-bottom: 3rem;
            border: 2px solid rgba(0,0,0,0.1);
        }

        .statement-container {
            display: grid;
            grid-template-columns: 400px 1fr;  /* Fixed width for draggable-items */
            gap: 2rem;
            margin-bottom: 3rem;
        }

        @media (max-width: 1200px) {
            .statement-container {
                grid-template-columns: 1fr;  /* Stack on smaller screens */
            }

            .draggable-items {
                position: relative;  /* Remove sticky on small screens */
                top: auto;
                max-height: none;
                margin-bottom: 2rem;
            }

            .main-content {
                padding: 1rem;
            }

            .dropzone {
                width: 100%;  /* Full width on small screens */
                max-width: 400px;  /* But not too wide */
            }

            .statement-form {
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .statement-line {
                width: 100%;
                max-width: 400px;
                justify-content: center;
            }

            .calculated-line {
                width: 100%;
                max-width: 400px;
            }
        }

        .draggable-items {
            background: rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(16px);
            border-radius: 13px;
            padding: 2.5rem;
            border: 2px solid rgba(0,0,0,0.1);
            position: sticky;
            top: 120px;
            max-height: calc(100vh - 160px);
            min-height: 200px;
            overflow-y: auto;
            z-index: 100;
            margin-bottom: 2rem;
        }

        .draggable-items h3 {
            position: sticky;
            top: 0;
            background: rgba(255, 255, 255, 0.9);
            margin: -2.5rem -2.5rem 1.5rem -2.5rem;
            padding: 2.5rem;
            backdrop-filter: blur(5px);
        }

        .statement-form {
            background: rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(16px);
            border-radius: 13px;
            padding: 2rem;
            border: 2px solid rgba(0,0,0,0.1);
        }

        .draggable {
            background: white;
            padding: 1rem;
            margin: 1.5rem 0;
            border-radius: 8px;
            cursor: move;
            border: 2px solid transparent;
            transition: all 0.2s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .draggable:hover {
            border-color: var(--accent-color);
            transform: translateX(5px);
        }

        .dropzone {
            background: rgba(255, 255, 255, 0.8);
            padding: 1rem;
            margin: 0.5rem 0;
            border-radius: 8px;
            min-height: 3rem;
            border: 2px dashed rgba(0,0,0,0.2);
            width: 400px;
            height: 60px;
            display: flex;
            align-items: center;
            box-sizing: border-box;
        }

        .dropzone.dragover {
            border-color: var(--accent-color);
            background: rgba(57, 187, 81, 0.1);
        }

        .btn-check {
            background: var(--accent-color);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 2rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-check:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .statement-line {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin: 1rem 0;
            flex-wrap: nowrap;
        }

        .operation-select {
            flex-shrink: 0;
            padding: 0.5rem;
            border-radius: 4px;
            border: 1px solid rgba(0,0,0,0.2);
            font-family: 'Albert Sans', sans-serif;
        }

        .calculated-line {
            background: rgba(0,0,0,0.05);
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            font-weight: 500;
        }

        .feedback-message {
            margin-top: 1rem;
            padding: 1rem;
            border-radius: 8px;
            display: none;
        }

        .feedback-message.error {
            background: rgba(255, 68, 68, 0.1);
            color: #ff4444;
            display: block;
        }

        .feedback-message.success {
            background: rgba(57, 187, 81, 0.1);
            color: var(--accent-color);
            display: block;
        }

        .btn-retry, .btn-home {
            background: #666;
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 2rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .draggable.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        .statement-title {
            text-align: center;
            margin-bottom: 2rem;
        }

        .statement-title h3 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .statement-title p {
            margin: 0.5rem 0 0 0;
            color: rgba(0, 0, 0, 0.7);
        }

        .part2-section {
            display: none;  /* Hidden by default */
            margin-top: 3rem;
        }

        .part2-section.visible {
            display: block;
            animation: fadeIn 0.5s ease-in;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Add this CSS for the calculation hint */
        .calculation-hint {
            font-size: 0.9rem;
            color: #666;
            margin-top: 0.5rem;
            font-style: italic;
        }

        /* Add this CSS */
        .calculation-section {
            background: rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(16px);
            border-radius: 13px;
            padding: 2rem;
            margin: 2rem 0;
            border: 2px solid rgba(0,0,0,0.1);
        }

        .calculation-step {
            margin: 1.5rem 0;
        }

        .calculation-inputs {
            display: flex;
            gap: 1rem;
            align-items: center;
            margin: 1rem 0;
        }

        .input-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .input-group input {
            width: 120px;
            padding: 0.5rem;
            border: 1px solid rgba(0,0,0,0.2);
            border-radius: 4px;
            font-family: 'Albert Sans', sans-serif;
        }

        .calculation-result {
            font-weight: 600;
            color: var(--accent-color);
            margin-top: 1rem;
        }

        .calculation-result.error {
            color: #ff4444;
        }

        .dropzone.filled {
            border: 2px solid #3498db;
            cursor: pointer;
            background: rgba(52, 152, 219, 0.05);
            transition: all 0.2s ease;
        }

        .dropzone.filled:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
        }

        /* Override the check answers styles to maintain blue border when filled */
        .dropzone.filled[data-value] {
            border-color: #3498db !important;
            background: rgba(52, 152, 219, 0.05) !important;
        }

        .draggable.used {
            display: none;  /* Hide used draggables */
        }

        /* Add these CSS styles for the new buttons */
        .btn-check-income {
            background: var(--accent-color);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 2rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-check-income:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        /* Add these CSS styles */
        .btn-retry-income, .btn-complete {
            background: #666;
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 2rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-retry-income:hover, .btn-complete:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .btn-complete {
            background: var(--accent-color);
        }
    </style>
</head>
<body>
    <header class="header">
        <nav class="nav-menu">
            <a href="../index.html#chapters" class="nav-link">Chapters</a>
            <a href="../glossary.html" class="nav-link">Glossary</a>
            <a href="../index.html#features" class="nav-link">Features</a>
        </nav>
    </header>

    <main class="main-content">
        <h1 class="section-title">Interactive Manufacturing Statements</h1>

        <div class="company-info">
            <h2>Premium Sports Manufacturing Co.</h2>
            <p>For the year ended December 31, 2023, Premium Sports Manufacturing Co. had the following account balances:</p>
            <ul>
                <li>Direct Materials Purchased: $150,000</li>
                <li>Direct Labor: $200,000</li>
                <li>Manufacturing Overhead: $120,000</li>
                <li>Beginning Direct Materials Inventory: $30,000</li>
                <li>Ending Direct Materials Inventory: $25,000</li>
                <li>Beginning Work in Process: $45,000</li>
                <li>Ending Work in Process: $40,000</li>
                <li>Beginning Finished Goods: $80,000</li>
                <li>Ending Finished Goods: $75,000</li>
                <li>Sales Revenue: $800,000</li>
                <li>Selling Expenses: $100,000</li>
                <li>Administrative Expenses: $150,000</li>
            </ul>
        </div>

        <div class="statement-container">
            <div class="draggable-items">
                <h3>Available Items</h3>
                <div class="draggable" draggable="true" data-value="30000">Beginning Direct Materials Inventory: $30,000</div>
                <div class="draggable" draggable="true" data-value="150000">Direct Materials Purchased: $150,000</div>
                <div class="draggable" draggable="true" data-value="25000">Ending Direct Materials Inventory: $25,000</div>
                <div class="draggable" draggable="true" data-value="200000">Direct Labor: $200,000</div>
                <div class="draggable" draggable="true" data-value="50000">Indirect Labor: $50,000</div>
                <div class="draggable" draggable="true" data-value="40000">Rent, Factory: $40,000</div>
                <div class="draggable" draggable="true" data-value="30000_dep">Depreciation, Equipment: $30,000</div>
                <div class="draggable" draggable="true" data-value="45000">Beginning Work in Process: $45,000</div>
                <div class="draggable" draggable="true" data-value="40000_wip">Ending Work in Process: $40,000</div>
            </div>

            <div class="statement-form">
                <div class="statement-title">
                    <h3>Premium Sports Manufacturing Co.</h3>
                    <h3>Statement of Cost of Goods Manufactured</h3>
                    <p>For the Year Ended December 31, 2023</p>
                </div>

                <div class="statement-line">
                    <div class="dropzone" data-expects="30000">Beginning Direct Materials Inventory</div>
                </div>

                <div class="statement-line">
                    <select class="operation-select">
                        <option value="add">Add:</option>
                        <option value="less">Less:</option>
                    </select>
                    <div class="dropzone" data-expects="150000" data-operation="add">Direct Materials Purchased</div>
                </div>

                <div class="calculated-line">
                    Direct Materials Available for Use: <span class="calc-value" id="materials-available">$0</span>
                </div>

                <div class="statement-line">
                    <select class="operation-select">
                        <option value="add">Add:</option>
                        <option value="less">Less:</option>
                    </select>
                    <div class="dropzone" data-expects="25000" data-operation="less">Ending Direct Materials Inventory</div>
                </div>

                <div class="calculated-line">
                    Direct Materials Used: <span class="calc-value" id="materials-used">$0</span>
                </div>

                <div class="statement-line">
                    <div class="dropzone" data-expects="200000">Direct Labor</div>
                </div>

                <h4>Manufacturing Overhead:</h4>
                <div class="statement-line">
                    <div class="dropzone" data-expects="50000">Indirect Labor</div>
                </div>
                <div class="statement-line">
                    <div class="dropzone" data-expects="40000">Rent, Factory</div>
                </div>
                <div class="statement-line">
                    <div class="dropzone" data-expects="30000_dep">Depreciation, Equipment</div>
                </div>

                <div class="calculated-line">
                    Total Manufacturing Overhead: <span class="calc-value" id="total-overhead">$0</span>
                </div>

                <div class="calculated-line">
                    Total Manufacturing Cost Added: <span class="calc-value" id="total-mfg-cost">$0</span>
                </div>

                <div class="statement-line">
                    <select class="operation-select">
                        <option value="add">Add:</option>
                        <option value="less">Less:</option>
                    </select>
                    <div class="dropzone" data-expects="45000" data-operation="add">Beginning Work in Process</div>
                </div>

                <div class="calculated-line">
                    Total Manufacturing Costs in Process: <span class="calc-value" id="total-in-process">$0</span>
                </div>

                <div class="statement-line">
                    <select class="operation-select">
                        <option value="add">Add:</option>
                        <option value="less">Less:</option>
                    </select>
                    <div class="dropzone" data-expects="40000_wip" data-operation="less">Ending Work in Process</div>
                </div>

                <div class="calculated-line">
                    Cost of Goods Manufactured: <span class="calc-value" id="cogm">$0</span>
                </div>

                <div class="button-container">
                    <button class="btn-check">Check Answers</button>
                    <button class="btn-retry" style="display: none;">Retry</button>
                    <button class="btn-home" style="display: none;">Return Home</button>
                </div>

                <div class="feedback-message"></div>
            </div>
        </div>

        <div class="part2-section">
            <div class="company-info">
                <h2>Premium Sports Manufacturing Co. - Part 2</h2>
                <p>Sports Manufacturing produced 28,000 basketballs during the year and each basketball retails for $10. Sports Manufacturing said that they had 4,000 basketballs in finished goods inventory at the beginning of the year. By the end of the year, there were 900 basketballs in finished goods inventory.</p>
                <p>(!) Remember that Cost of Goods Manufactured is $480,000 (from Part 1)</p>
            </div>

            <div class="calculation-section">
                <h3>Step 1: Calculate Units Sold</h3>
                <p>Units Sold = Beginning Finished Goods + Production Volume - Ending Finished Goods</p>
                
                <div class="calculation-inputs">
                    <div class="input-group">
                        <label>Beginning Inventory:</label>
                        <input type="number" id="beg-inventory">
                    </div>
                    <span>+</span>
                    <div class="input-group">
                        <label>Production Volume:</label>
                        <input type="number" id="production-volume">
                    </div>
                    <span>-</span>
                    <div class="input-group">
                        <label>Ending Inventory:</label>
                        <input type="number" id="end-inventory">
                    </div>
                </div>
                <div class="calculation-result" id="units-sold-result"></div>

                <h3>Step 2: Calculate Sales Revenue</h3>
                <p>Sales Revenue = Price per Unit × Units Sold</p>
                
                <div class="calculation-inputs">
                    <div class="input-group">
                        <label>Price per Unit: $</label>
                        <input type="number" id="price-per-unit">
                    </div>
                    <span>×</span>
                    <div class="input-group">
                        <label>Units Sold:</label>
                        <span id="units-sold-display">0</span>
                    </div>
                </div>
                <div class="calculation-result" id="sales-revenue-result"></div>
            </div>

            <div class="statement-container">
                <div class="draggable-items">
                    <h3>Available Items</h3>
                    <div class="draggable" draggable="true" data-value="80000_bfg">Beginning Finished Goods Inventory: $80,000</div>
                    <div class="draggable" draggable="true" data-value="480000_cogm">Cost of Goods Manufactured: $480,000</div>
                    <div class="draggable" draggable="true" data-value="75000_efg">Ending Finished Goods Inventory: $75,000</div>
                    <div class="draggable" draggable="true" data-value="100000_sell">Selling Expenses: $100,000</div>
                    <div class="draggable" draggable="true" data-value="150000_admin">Administrative Expenses: $150,000</div>
                    <div class="draggable" draggable="true" data-value="1034400_rev">Sales Revenue: $1,034,400</div>
                </div>

                <div class="statement-form">
                    <div class="statement-title">
                        <h3>Premium Sports Manufacturing Co.</h3>
                        <h3>Income Statement</h3>
                        <p>For the Year Ended December 31, 2023</p>
                    </div>

                    <div class="statement-line">
                        <div class="dropzone" data-expects="1034400_rev">Sales Revenue</div>
                    </div>

                    <div class="statement-line">
                        <div class="dropzone" data-expects="480000_cogm">Cost of Goods Manufactured</div>
                    </div>

                    <div class="statement-line">
                        <select class="operation-select">
                            <option value="add">Add:</option>
                            <option value="less">Less:</option>
                        </select>
                        <div class="dropzone" data-expects="80000_bfg" data-operation="add">Beginning Finished Goods Inventory</div>
                    </div>

                    <div class="calculated-line">
                        Cost of Goods Available for Sale: <span class="calc-value" id="cogs-available">$0</span>
                    </div>

                    <div class="statement-line">
                        <select class="operation-select">
                            <option value="add">Add:</option>
                            <option value="less">Less:</option>
                        </select>
                        <div class="dropzone" data-expects="75000_efg" data-operation="less">Ending Finished Goods Inventory</div>
                    </div>

                    <div class="calculated-line">
                        Cost of Goods Sold: <span class="calc-value" id="cogs">$0</span>
                    </div>

                    <div class="calculated-line">
                        Gross Profit: <span class="calc-value" id="gross-profit">$0</span>
                    </div>

                    <h4>Operating Expenses:</h4>
                    <div class="statement-line">
                        <div class="dropzone" data-expects="100000_sell">Selling Expenses</div>
                    </div>
                    <div class="statement-line">
                        <div class="dropzone" data-expects="150000_admin">Administrative Expenses</div>
                    </div>

                    <div class="calculated-line">
                        Total Operating Expenses: <span class="calc-value" id="total-operating-expenses">$0</span>
                    </div>

                    <div class="calculated-line">
                        Operating Income (Net Income): <span class="calc-value" id="operating-income">$0</span>
                    </div>

                    <div class="button-container">
                        <button class="btn-check-income">Check Income Statement</button>
                        <button class="btn-retry-income" style="display: none;">Retry</button>
                        <button class="btn-complete" style="display: none;">Complete Chapter</button>
                    </div>

                    <div class="feedback-message"></div>
                </div>
            </div>
        </div>
    </main>

    <script>
        const _0x1176ad=_0x4fb5;(function(_0x1b9c83,_0x4a3b87){const _0x2f9a78=_0x4fb5,_0x1aa3f7=_0x1b9c83();while(!![]){try{const _0x40894d=parseInt(_0x2f9a78(0x13c))/0x1+-parseInt(_0x2f9a78(0x17a))/0x2*(parseInt(_0x2f9a78(0x13d))/0x3)+-parseInt(_0x2f9a78(0x11b))/0x4+parseInt(_0x2f9a78(0x194))/0x5*(parseInt(_0x2f9a78(0x18e))/0x6)+parseInt(_0x2f9a78(0x17e))/0x7*(-parseInt(_0x2f9a78(0x18d))/0x8)+-parseInt(_0x2f9a78(0x191))/0x9*(parseInt(_0x2f9a78(0x160))/0xa)+-parseInt(_0x2f9a78(0x111))/0xb*(-parseInt(_0x2f9a78(0x18b))/0xc);if(_0x40894d===_0x4a3b87)break;else _0x1aa3f7['push'](_0x1aa3f7['shift']());}catch(_0x4f6459){_0x1aa3f7['push'](_0x1aa3f7['shift']());}}}(_0x3a97,0x76f4b),window[_0x1176ad(0x190)](_0x1176ad(0x16b),()=>{const _0x5539e4=_0x1176ad,_0x15655e=document['querySelector']('.header');window[_0x5539e4(0x131)]>0xa?_0x15655e[_0x5539e4(0x173)][_0x5539e4(0x12a)]('scrolled'):_0x15655e['classList'][_0x5539e4(0x122)]('scrolled');}));function shuffleItems(){const _0x42f559=_0x1176ad,_0x17c472=document[_0x42f559(0x18a)](_0x42f559(0x17b)),_0x3fb8dd=Array[_0x42f559(0x146)](_0x17c472[_0x42f559(0x14e)](_0x42f559(0x18c))),_0x556b4b=_0x17c472[_0x42f559(0x18a)]('h3');_0x3fb8dd[_0x42f559(0x166)](_0x5229a5=>_0x5229a5[_0x42f559(0x122)]());for(let _0x87fba5=_0x3fb8dd['length']-0x1;_0x87fba5>0x0;_0x87fba5--){const _0x1c5d43=Math[_0x42f559(0x152)](Math[_0x42f559(0x110)]()*(_0x87fba5+0x1));[_0x3fb8dd[_0x87fba5],_0x3fb8dd[_0x1c5d43]]=[_0x3fb8dd[_0x1c5d43],_0x3fb8dd[_0x87fba5]];}_0x3fb8dd[_0x42f559(0x166)](_0x4b3ce6=>_0x17c472[_0x42f559(0x150)](_0x4b3ce6));}shuffleItems();function initializeDragAndDrop(){const _0x464547=_0x1176ad,_0x3b9c75=document['querySelectorAll'](_0x464547(0x178)),_0x4c2c99=document[_0x464547(0x14e)](_0x464547(0x177));_0x3b9c75['forEach'](_0x5b8203=>{const _0x34a3d7=_0x464547;_0x5b8203[_0x34a3d7(0x173)][_0x34a3d7(0x12a)](_0x34a3d7(0x12b)),_0x5b8203[_0x34a3d7(0x190)](_0x34a3d7(0x113),_0x219653=>{const _0x2f7554=_0x34a3d7;_0x5b8203[_0x2f7554(0x173)][_0x2f7554(0x12a)](_0x2f7554(0x162)),_0x219653[_0x2f7554(0x170)][_0x2f7554(0x175)](_0x2f7554(0x106),_0x5b8203['dataset']['value']);}),_0x5b8203[_0x34a3d7(0x190)](_0x34a3d7(0x10d),()=>{const _0x4c6427=_0x34a3d7;_0x5b8203[_0x4c6427(0x173)][_0x4c6427(0x122)](_0x4c6427(0x162));});}),_0x4c2c99[_0x464547(0x166)](_0x3ba450=>{const _0xbe23e4=_0x464547;_0x3ba450['classList'][_0xbe23e4(0x12a)](_0xbe23e4(0x12b)),_0x3ba450[_0xbe23e4(0x190)]('click',()=>{const _0x5096e1=_0xbe23e4;if(_0x3ba450['dataset'][_0x5096e1(0x109)]){const _0x5828da=document[_0x5096e1(0x18a)](_0x5096e1(0x157)+_0x3ba450[_0x5096e1(0x11c)][_0x5096e1(0x109)]+'\x22]');_0x5828da[_0x5096e1(0x173)][_0x5096e1(0x122)](_0x5096e1(0x128)),_0x3ba450[_0x5096e1(0x147)]=_0x3ba450[_0x5096e1(0x11c)][_0x5096e1(0x156)]||_0x3ba450[_0x5096e1(0x147)][_0x5096e1(0x108)](':')[0x0],_0x3ba450[_0x5096e1(0x173)][_0x5096e1(0x122)](_0x5096e1(0x182)),delete _0x3ba450[_0x5096e1(0x11c)][_0x5096e1(0x109)],document[_0x5096e1(0x18a)](_0x5096e1(0x11a))?calculateIncomeStatement():calculateValues();}}),_0x3ba450[_0xbe23e4(0x190)]('dragover',_0x420dcb=>{const _0x5cac93=_0xbe23e4;_0x420dcb[_0x5cac93(0x186)](),!_0x3ba450[_0x5cac93(0x11c)][_0x5cac93(0x109)]&&_0x3ba450[_0x5cac93(0x173)]['add']('dragover');}),_0x3ba450[_0xbe23e4(0x190)](_0xbe23e4(0x104),()=>{const _0x4c8b10=_0xbe23e4;_0x3ba450[_0x4c8b10(0x173)][_0x4c8b10(0x122)](_0x4c8b10(0x13e));}),_0x3ba450[_0xbe23e4(0x190)](_0xbe23e4(0x161),_0x450f88=>{const _0x25d3d7=_0xbe23e4;_0x450f88[_0x25d3d7(0x186)](),_0x3ba450[_0x25d3d7(0x173)][_0x25d3d7(0x122)](_0x25d3d7(0x13e));if(_0x3ba450[_0x25d3d7(0x11c)][_0x25d3d7(0x109)]){const _0xc33603=document['querySelector']('[data-value=\x22'+_0x3ba450[_0x25d3d7(0x11c)][_0x25d3d7(0x109)]+'\x22]');_0xc33603[_0x25d3d7(0x173)]['remove'](_0x25d3d7(0x128));}const _0x55b01e=_0x450f88[_0x25d3d7(0x170)][_0x25d3d7(0x193)](_0x25d3d7(0x106)),_0x51ba0b=document[_0x25d3d7(0x18a)](_0x25d3d7(0x157)+_0x55b01e+'\x22]');!_0x3ba450['dataset'][_0x25d3d7(0x156)]&&(_0x3ba450['dataset'][_0x25d3d7(0x156)]=_0x3ba450[_0x25d3d7(0x147)]),_0x3ba450[_0x25d3d7(0x147)]=_0x51ba0b[_0x25d3d7(0x147)],_0x3ba450[_0x25d3d7(0x11c)][_0x25d3d7(0x109)]=_0x55b01e,_0x3ba450['classList']['add'](_0x25d3d7(0x182)),_0x51ba0b[_0x25d3d7(0x173)][_0x25d3d7(0x12a)](_0x25d3d7(0x128)),document['querySelector'](_0x25d3d7(0x11a))?calculateIncomeStatement():calculateValues();});});}initializeDragAndDrop();function calculateValues(){const _0x206cdc=_0x1176ad;function _0x1797f8(_0xb5c5c0){const _0x5301e1=_0x4fb5,_0x28021e=document[_0x5301e1(0x18a)](_0xb5c5c0);if(!_0x28021e||!_0x28021e[_0x5301e1(0x11c)][_0x5301e1(0x109)])return 0x0;return parseInt(_0x28021e[_0x5301e1(0x11c)][_0x5301e1(0x109)]['split']('_')[0x0]);}function _0x5e01ed(_0x458f6e){const _0x28d1b1=_0x4fb5,_0x463ec3=document[_0x28d1b1(0x18a)](_0x458f6e),_0x2e6ee6=_0x463ec3?.[_0x28d1b1(0x148)];return _0x2e6ee6?.['value']===_0x28d1b1(0x12a)?0x1:-0x1;}const _0x321fab=_0x1797f8('[data-expects=\x2230000\x22]'),_0x55d40b=_0x1797f8('[data-expects=\x22150000\x22]'),_0x18b038=_0x1797f8(_0x206cdc(0x16d)),_0x4a4cf5=_0x321fab+_0x55d40b*_0x5e01ed(_0x206cdc(0x159));document[_0x206cdc(0x126)](_0x206cdc(0x188))[_0x206cdc(0x147)]='$'+_0x4a4cf5['toLocaleString']();const _0x33d3a4=_0x4a4cf5+_0x18b038*_0x5e01ed(_0x206cdc(0x16d));document[_0x206cdc(0x126)](_0x206cdc(0x117))[_0x206cdc(0x147)]='$'+_0x33d3a4[_0x206cdc(0x16e)]();const _0xf1b9f6=_0x1797f8('[data-expects=\x2250000\x22]'),_0x5c2901=_0x1797f8(_0x206cdc(0x168)),_0x19c5a7=_0x1797f8(_0x206cdc(0x10b)),_0x3efc20=_0xf1b9f6+_0x5c2901+_0x19c5a7;document[_0x206cdc(0x126)](_0x206cdc(0x14a))[_0x206cdc(0x147)]='$'+_0x3efc20[_0x206cdc(0x16e)]();const _0xc6deab=_0x1797f8(_0x206cdc(0x192)),_0x105d69=_0x33d3a4+_0xc6deab+_0x3efc20;document['getElementById'](_0x206cdc(0x141))[_0x206cdc(0x147)]='$'+_0x105d69[_0x206cdc(0x16e)]();const _0x43d08f=_0x1797f8(_0x206cdc(0x15e)),_0x252e2d=_0x105d69+_0x43d08f*_0x5e01ed(_0x206cdc(0x15e));document[_0x206cdc(0x126)](_0x206cdc(0x15c))[_0x206cdc(0x147)]='$'+_0x252e2d[_0x206cdc(0x16e)]();const _0x2ecd1e=_0x1797f8(_0x206cdc(0x115)),_0x266f4d=_0x252e2d+_0x2ecd1e*_0x5e01ed(_0x206cdc(0x115));document['getElementById'](_0x206cdc(0x180))[_0x206cdc(0x147)]='$'+_0x266f4d['toLocaleString']();}document['querySelectorAll'](_0x1176ad(0x169))[_0x1176ad(0x166)](_0x2e09bf=>{const _0x58cb1d=_0x1176ad;_0x2e09bf[_0x58cb1d(0x190)](_0x58cb1d(0x105),()=>{const _0x5bc465=_0x58cb1d;document['querySelector'](_0x5bc465(0x11a))?calculateIncomeStatement():calculateValues();});}),document[_0x1176ad(0x18a)]('.btn-check')[_0x1176ad(0x190)](_0x1176ad(0x172),()=>{const _0x403c06=_0x1176ad,_0x2e6b80=document['querySelector'](_0x403c06(0x137));let _0x20995f=!![],_0x35d603=[];const _0x5df262=document[_0x403c06(0x18a)](_0x403c06(0x11a))||document[_0x403c06(0x18a)]('.statement-container'),_0x136934=_0x5df262[_0x403c06(0x18a)]('.feedback-message'),_0x50ae18=_0x5df262['querySelectorAll'](_0x403c06(0x129)),_0x3f4dd9=_0x5df262['querySelector']('.btn-check'),_0x50a4f4=_0x5df262[_0x403c06(0x18a)](_0x403c06(0x144)),_0xe6ced1=_0x5df262['querySelectorAll'](_0x403c06(0x18c));_0xe6ced1['forEach'](_0x4bf2cb=>{_0x4bf2cb['classList']['add']('disabled');}),_0x50ae18['forEach'](_0x501ec8=>{const _0x52e6c0=_0x403c06;_0x501ec8['classList']['remove'](_0x52e6c0(0x182));const _0x46e4a6=_0x501ec8[_0x52e6c0(0x11c)][_0x52e6c0(0x109)]===_0x501ec8[_0x52e6c0(0x11c)][_0x52e6c0(0x134)],_0x59352b=_0x501ec8['previousElementSibling'],_0x612a8b=!_0x59352b||_0x59352b[_0x52e6c0(0x109)]===_0x501ec8[_0x52e6c0(0x11c)]['operation'];if(!_0x501ec8['dataset'][_0x52e6c0(0x109)])_0x20995f=![],_0x35d603[_0x52e6c0(0x12d)](_0x52e6c0(0x16f)+_0x501ec8[_0x52e6c0(0x147)]),_0x501ec8[_0x52e6c0(0x17c)]['borderColor']=_0x52e6c0(0x10e),_0x501ec8['style']['background']='rgba(255,\x2068,\x2068,\x200.1)';else{if(!_0x46e4a6)_0x20995f=![],_0x35d603[_0x52e6c0(0x12d)](_0x52e6c0(0x143)+_0x501ec8['textContent']+_0x52e6c0(0x15d)),_0x501ec8[_0x52e6c0(0x17c)][_0x52e6c0(0x12f)]='#ff4444',_0x501ec8['style']['background']=_0x52e6c0(0x124);else!_0x612a8b&&_0x59352b?(_0x20995f=![],_0x35d603[_0x52e6c0(0x12d)](_0x52e6c0(0x132)+_0x501ec8[_0x52e6c0(0x147)]+_0x52e6c0(0x145)),_0x501ec8[_0x52e6c0(0x17c)][_0x52e6c0(0x12f)]=_0x52e6c0(0x10e),_0x501ec8['style'][_0x52e6c0(0x154)]=_0x52e6c0(0x124)):(_0x501ec8['style'][_0x52e6c0(0x12f)]=getComputedStyle(document[_0x52e6c0(0x174)])[_0x52e6c0(0x195)](_0x52e6c0(0x15b)),_0x501ec8[_0x52e6c0(0x17c)][_0x52e6c0(0x154)]=_0x52e6c0(0x14f));}}),_0x20995f?(_0x136934[_0x403c06(0x176)]=_0x403c06(0x11d),_0x5df262[_0x403c06(0x173)][_0x403c06(0x120)](_0x403c06(0x123))?(_0x136934['textContent']=_0x403c06(0x11e),_0x3f4dd9[_0x403c06(0x17c)][_0x403c06(0x14b)]=_0x403c06(0x142),_0x5df262[_0x403c06(0x18a)](_0x403c06(0x133))['style'][_0x403c06(0x14b)]=_0x403c06(0x155)):(_0x136934[_0x403c06(0x147)]=_0x403c06(0x140),_0x3f4dd9[_0x403c06(0x17c)][_0x403c06(0x14b)]=_0x403c06(0x142),showPart2()),_0x50ae18['forEach'](_0x562845=>{const _0x182aef=_0x403c06;_0x562845[_0x182aef(0x17c)][_0x182aef(0x15f)]=_0x182aef(0x16c),_0x562845[_0x182aef(0x17c)]['pointerEvents']=_0x182aef(0x142);})):(_0x136934[_0x403c06(0x176)]=_0x403c06(0x18f),_0x136934[_0x403c06(0x138)]=_0x403c06(0x10f)+_0x35d603[_0x403c06(0x179)](_0x403c06(0x135)),_0x50a4f4[_0x403c06(0x17c)][_0x403c06(0x14b)]=_0x403c06(0x155),_0x3f4dd9[_0x403c06(0x17c)][_0x403c06(0x14b)]='none');}),document[_0x1176ad(0x18a)](_0x1176ad(0x144))[_0x1176ad(0x190)]('click',()=>{const _0x3e2118=_0x1176ad,_0x235099=document['querySelector'](_0x3e2118(0x137));_0x235099[_0x3e2118(0x17c)][_0x3e2118(0x14b)]=_0x3e2118(0x142),_0x235099[_0x3e2118(0x138)]='',_0x235099[_0x3e2118(0x176)]='feedback-message',document[_0x3e2118(0x18a)]('.btn-retry')[_0x3e2118(0x17c)][_0x3e2118(0x14b)]=_0x3e2118(0x142),document[_0x3e2118(0x18a)](_0x3e2118(0x119))['style'][_0x3e2118(0x14b)]=_0x3e2118(0x155),document[_0x3e2118(0x14e)]('.draggable')['forEach'](_0x234004=>{const _0x199990=_0x3e2118;_0x234004[_0x199990(0x173)]['remove'](_0x199990(0x196));}),document['querySelectorAll'](_0x3e2118(0x129))[_0x3e2118(0x166)](_0xe0cf80=>{const _0x3f6027=_0x3e2118;_0xe0cf80[_0x3f6027(0x17c)][_0x3f6027(0x12f)]='rgba(0,0,0,0.2)',_0xe0cf80[_0x3f6027(0x17c)][_0x3f6027(0x154)]=_0x3f6027(0x163),_0xe0cf80[_0x3f6027(0x173)]['remove'](_0x3f6027(0x182));if(_0xe0cf80['dataset'][_0x3f6027(0x109)]){const _0x2b69ec=document['querySelector'](_0x3f6027(0x157)+_0xe0cf80[_0x3f6027(0x11c)][_0x3f6027(0x109)]+'\x22]');_0x2b69ec&&_0x2b69ec[_0x3f6027(0x173)][_0x3f6027(0x122)](_0x3f6027(0x128)),_0xe0cf80[_0x3f6027(0x147)]=_0xe0cf80[_0x3f6027(0x11c)]['originalText']||_0xe0cf80[_0x3f6027(0x147)][_0x3f6027(0x108)](':')[0x0],delete _0xe0cf80[_0x3f6027(0x11c)][_0x3f6027(0x109)];}}),document['querySelector'](_0x3e2118(0x11a))?calculateIncomeStatement():calculateValues();}),document[_0x1176ad(0x18a)](_0x1176ad(0x171))[_0x1176ad(0x190)](_0x1176ad(0x172),()=>{const _0x242de4=_0x1176ad;window['location'][_0x242de4(0x127)]=_0x242de4(0x158);});function _0x3a97(){const _0x481021=['background','inline-block','originalText','[data-value=\x22','../index.html#chapters','[data-expects=\x22150000\x22]','visible','--accent-color','total-in-process','.\x20Check\x20your\x20numbers.','[data-expects=\x2245000\x22]','cursor','8513250iOLEGx','drop','dragging','rgba(255,\x20255,\x20255,\x200.8)','.btn-retry-income','.btn-check-income','forEach','cogs-available','[data-expects=\x2240000\x22]','.operation-select','total-operating-expenses','scroll','default','[data-expects=\x2225000\x22]','toLocaleString','Missing\x20value\x20for\x20','dataTransfer','.btn-home','click','classList','documentElement','setData','className','.dropzone:not(.initialized)','.draggable:not(.initialized)','join','6DAfuRu','.draggable-items','style','[data-expects=\x22480000_cogm\x22]','959bamikn','production-volume','cogm','[data-expects=\x2275000_efg\x22]','filled','input','.part2-section','feedback-message','preventDefault','\x20units','materials-available','rgba(0,0,0,0.2)','querySelector','45432mhTdur','.draggable','10544IQEWcj','92952kIRpQd','feedback-message\x20error','addEventListener','9POnmpz','[data-expects=\x22200000\x22]','getData','285BOUuKY','getPropertyValue','disabled','pointerEvents','cogs','.\x20Now\x20complete\x20the\x20Income\x20Statement\x20below.','dragleave','change','text/plain','[data-expects=\x22100000_sell\x22]','split','value',':\x20$','[data-expects=\x2230000_dep\x22]','gross-profit','dragend','#ff4444','Please\x20correct\x20the\x20following:<br>','random','3949FnvzSe','units-sold-result','dragstart','animation','[data-expects=\x2240000_wip\x22]','beg-inventory','materials-used','[data-expects=\x221034400_rev\x22]','.btn-check','.part2-section.visible','2399056PUHHbS','dataset','feedback-message\x20success','Perfect!\x20You\x27ve\x20completed\x20the\x20Income\x20Statement!','Correct!\x20Units\x20Sold\x20=\x20','contains','Try\x20again.\x20Check\x20your\x20calculations.','remove','part2-section','rgba(255,\x2068,\x2068,\x200.1)','sales-revenue-result','getElementById','href','used','.dropzone','add','initialized','price-per-unit','push','scrollIntoView','borderColor','cloneNode','scrollY','Incorrect\x20operation\x20for\x20','.btn-complete','expects','<br>','[data-expects=\x2280000_bfg\x22]','.feedback-message','innerHTML','[data-expects=\x22150000_admin\x22]','location','boxShadow','281956nsPehu','405276ToVxub','dragover','.part2-section\x20.statement-container','Perfect\x20score!\x20Now\x20proceed\x20to\x20Part\x202\x20-\x20Income\x20Statement','total-mfg-cost','none','Incorrect\x20value\x20for\x20','.btn-retry','.\x20Think\x20about\x20whether\x20this\x20amount\x20should\x20be\x20added\x20or\x20subtracted.','from','textContent','previousElementSibling','units-sold-display','total-overhead','display','smooth','error','querySelectorAll','rgba(57,\x20187,\x2081,\x200.1)','appendChild','start','floor','end-inventory'];_0x3a97=function(){return _0x481021;};return _0x3a97();}function showPart2(){const _0x362d29=_0x1176ad,_0x1e781f=document[_0x362d29(0x18a)](_0x362d29(0x184));_0x1e781f[_0x362d29(0x173)][_0x362d29(0x12a)](_0x362d29(0x15a)),_0x1e781f[_0x362d29(0x12e)]({'behavior':_0x362d29(0x14c),'block':_0x362d29(0x151)}),initializeDragAndDrop();}function calculateIncomeStatement(){const _0x57b1d1=_0x1176ad;function _0x3b1a18(_0x289fce){const _0x267c35=_0x4fb5,_0x38fcab=document[_0x267c35(0x18a)](_0x289fce);if(!_0x38fcab||!_0x38fcab[_0x267c35(0x11c)][_0x267c35(0x109)])return 0x0;return parseInt(_0x38fcab['dataset'][_0x267c35(0x109)][_0x267c35(0x108)]('_')[0x0]);}function _0x1f38e6(_0x5f57a3){const _0x209ca5=_0x4fb5,_0x2ea43b=document[_0x209ca5(0x18a)](_0x5f57a3),_0x2116b0=_0x2ea43b?.[_0x209ca5(0x148)];return _0x2116b0?.[_0x209ca5(0x109)]===_0x209ca5(0x12a)?0x1:-0x1;}const _0x408296=_0x3b1a18(_0x57b1d1(0x136)),_0x369cd3=_0x3b1a18(_0x57b1d1(0x17d)),_0x24c97c=_0x369cd3+_0x408296+_0x408296*_0x1f38e6(_0x57b1d1(0x136));document[_0x57b1d1(0x126)](_0x57b1d1(0x167))[_0x57b1d1(0x147)]='$'+_0x24c97c[_0x57b1d1(0x16e)]();const _0xdf5a3=_0x3b1a18(_0x57b1d1(0x181)),_0xaa0dbf=_0x24c97c+_0xdf5a3*_0x1f38e6(_0x57b1d1(0x181));document[_0x57b1d1(0x126)](_0x57b1d1(0x198))['textContent']='$'+_0xaa0dbf[_0x57b1d1(0x16e)]();const _0x496504=_0x3b1a18(_0x57b1d1(0x118)),_0x780e12=_0x496504-_0xaa0dbf;document['getElementById'](_0x57b1d1(0x10c))[_0x57b1d1(0x147)]='$'+_0x780e12[_0x57b1d1(0x16e)]();const _0x5ad759=_0x3b1a18(_0x57b1d1(0x107)),_0x23d327=_0x3b1a18(_0x57b1d1(0x139)),_0x12757f=_0x5ad759+_0x23d327;document[_0x57b1d1(0x126)](_0x57b1d1(0x16a))['textContent']='$'+_0x12757f[_0x57b1d1(0x16e)]();const _0x1a93eb=_0x780e12-_0x12757f;document[_0x57b1d1(0x126)]('operating-income')[_0x57b1d1(0x147)]='$'+_0x1a93eb[_0x57b1d1(0x16e)](),document[_0x57b1d1(0x14e)]('.dropzone')[_0x57b1d1(0x166)](_0x486707=>{const _0x268cfd=_0x57b1d1;if(_0x486707[_0x268cfd(0x11c)][_0x268cfd(0x109)]){const _0x5a9d40=parseInt(_0x486707[_0x268cfd(0x11c)][_0x268cfd(0x109)]),_0x35a7f8=_0x486707[_0x268cfd(0x147)],_0x2db282=_0x35a7f8[_0x268cfd(0x108)](':')[0x0];_0x486707['textContent']=_0x2db282+_0x268cfd(0x10a)+_0x5a9d40['toLocaleString']();}});}function calculateUnitsSold(){const _0x5c920e=_0x1176ad,_0x209796=document['getElementById'](_0x5c920e(0x116))[_0x5c920e(0x109)],_0x2f7975=document[_0x5c920e(0x126)](_0x5c920e(0x17f))[_0x5c920e(0x109)],_0x598d3b=document[_0x5c920e(0x126)](_0x5c920e(0x153))[_0x5c920e(0x109)],_0x48abe6=document[_0x5c920e(0x126)](_0x5c920e(0x112)),_0x1a3035=document['getElementById'](_0x5c920e(0x149));if(_0x209796===''||_0x2f7975===''||_0x598d3b==='')return _0x48abe6[_0x5c920e(0x147)]='',_0x1a3035['textContent']='0',0x0;const _0x296dce=parseInt(_0x209796)+parseInt(_0x2f7975)-parseInt(_0x598d3b);return _0x296dce===0xa85c&&parseInt(_0x209796)===0xfa0?(_0x48abe6['textContent']=_0x5c920e(0x11f)+_0x296dce[_0x5c920e(0x16e)]()+_0x5c920e(0x187),_0x48abe6[_0x5c920e(0x173)][_0x5c920e(0x122)](_0x5c920e(0x14d)),_0x1a3035[_0x5c920e(0x147)]=_0x296dce[_0x5c920e(0x16e)](),_0x296dce):(_0x48abe6[_0x5c920e(0x147)]=_0x5c920e(0x121),_0x48abe6[_0x5c920e(0x173)][_0x5c920e(0x12a)](_0x5c920e(0x14d)),_0x1a3035[_0x5c920e(0x147)]='0',0x0);}function calculateSalesRevenue(){const _0x499e08=_0x1176ad,_0x20ccde=calculateUnitsSold(),_0x4c3e77=document[_0x499e08(0x126)](_0x499e08(0x12c))[_0x499e08(0x109)],_0x230125=document[_0x499e08(0x126)](_0x499e08(0x125)),_0x522d18=document[_0x499e08(0x18a)](_0x499e08(0x13f));if(_0x4c3e77===''||_0x20ccde===0x0){_0x230125[_0x499e08(0x147)]='',_0x522d18[_0x499e08(0x17c)][_0x499e08(0x14b)]=_0x499e08(0x142);return;}const _0x1ee199=parseFloat(_0x4c3e77),_0x241e57=_0x20ccde*_0x1ee199;_0x241e57===0xfc8a0?(_0x230125[_0x499e08(0x147)]='Correct!\x20Sales\x20Revenue\x20=\x20$'+_0x241e57[_0x499e08(0x16e)]()+_0x499e08(0x103),_0x230125[_0x499e08(0x173)]['remove'](_0x499e08(0x14d)),_0x522d18[_0x499e08(0x17c)][_0x499e08(0x14b)]='grid',_0x522d18[_0x499e08(0x17c)][_0x499e08(0x114)]='fadeIn\x200.5s\x20ease-in',setTimeout(()=>{const _0x2942d8=_0x499e08;_0x522d18[_0x2942d8(0x12e)]({'behavior':_0x2942d8(0x14c),'block':_0x2942d8(0x151)});},0x1f4)):(_0x230125[_0x499e08(0x147)]=_0x499e08(0x121),_0x230125[_0x499e08(0x173)]['add'](_0x499e08(0x14d)),_0x522d18['style']['display']='none');}function _0x4fb5(_0x3ca481,_0x97f87b){const _0x3a9739=_0x3a97();return _0x4fb5=function(_0x4fb5ab,_0x47b4b0){_0x4fb5ab=_0x4fb5ab-0x103;let _0x2fb353=_0x3a9739[_0x4fb5ab];return _0x2fb353;},_0x4fb5(_0x3ca481,_0x97f87b);}[_0x1176ad(0x116),_0x1176ad(0x17f),_0x1176ad(0x153),'price-per-unit'][_0x1176ad(0x166)](_0x35e674=>{const _0x497f69=_0x1176ad;document[_0x497f69(0x126)](_0x35e674)[_0x497f69(0x190)](_0x497f69(0x183),()=>{calculateUnitsSold(),calculateSalesRevenue();});}),document['querySelector'](_0x1176ad(0x13f))[_0x1176ad(0x17c)][_0x1176ad(0x14b)]='none',document[_0x1176ad(0x18a)](_0x1176ad(0x165))[_0x1176ad(0x190)](_0x1176ad(0x172),()=>{const _0x30de8e=_0x1176ad,_0x14ce71=document[_0x30de8e(0x18a)](_0x30de8e(0x184)),_0x1fc4a2=_0x14ce71[_0x30de8e(0x18a)](_0x30de8e(0x137));let _0x79513a=!![],_0xe2db06=[];const _0xb57388=_0x14ce71[_0x30de8e(0x14e)](_0x30de8e(0x129)),_0x354a21=_0x14ce71[_0x30de8e(0x14e)](_0x30de8e(0x18c));_0x354a21['forEach'](_0x4727cb=>{const _0x3aba1e=_0x30de8e;_0x4727cb[_0x3aba1e(0x173)][_0x3aba1e(0x12a)](_0x3aba1e(0x196));}),_0xb57388[_0x30de8e(0x166)](_0xa5638f=>{const _0x273f1b=_0x30de8e;_0xa5638f[_0x273f1b(0x173)][_0x273f1b(0x122)](_0x273f1b(0x182));const _0x343244=_0xa5638f[_0x273f1b(0x11c)][_0x273f1b(0x109)]===_0xa5638f[_0x273f1b(0x11c)]['expects'],_0x1dcca9=_0xa5638f[_0x273f1b(0x148)],_0x82fc33=!_0x1dcca9||_0x1dcca9['value']===_0xa5638f[_0x273f1b(0x11c)]['operation'];if(!_0xa5638f[_0x273f1b(0x11c)][_0x273f1b(0x109)])_0x79513a=![],_0xe2db06['push'](_0x273f1b(0x16f)+_0xa5638f[_0x273f1b(0x147)]),_0xa5638f[_0x273f1b(0x17c)][_0x273f1b(0x12f)]=_0x273f1b(0x10e),_0xa5638f['style'][_0x273f1b(0x154)]=_0x273f1b(0x124);else{if(!_0x343244)_0x79513a=![],_0xe2db06[_0x273f1b(0x12d)](_0x273f1b(0x143)+_0xa5638f['textContent']+_0x273f1b(0x15d)),_0xa5638f[_0x273f1b(0x17c)]['borderColor']=_0x273f1b(0x10e),_0xa5638f[_0x273f1b(0x17c)]['background']=_0x273f1b(0x124);else!_0x82fc33&&_0x1dcca9?(_0x79513a=![],_0xe2db06[_0x273f1b(0x12d)](_0x273f1b(0x132)+_0xa5638f[_0x273f1b(0x147)]+'.\x20Think\x20about\x20whether\x20this\x20amount\x20should\x20be\x20added\x20or\x20subtracted.'),_0xa5638f['style'][_0x273f1b(0x12f)]=_0x273f1b(0x10e),_0xa5638f[_0x273f1b(0x17c)][_0x273f1b(0x154)]=_0x273f1b(0x124)):(_0xa5638f['style'][_0x273f1b(0x12f)]=getComputedStyle(document[_0x273f1b(0x174)])[_0x273f1b(0x195)]('--accent-color'),_0xa5638f[_0x273f1b(0x17c)][_0x273f1b(0x154)]=_0x273f1b(0x14f));}}),_0x79513a?(_0x1fc4a2[_0x30de8e(0x176)]=_0x30de8e(0x11d),_0x1fc4a2[_0x30de8e(0x147)]=_0x30de8e(0x11e),document[_0x30de8e(0x18a)]('.btn-check-income')[_0x30de8e(0x17c)][_0x30de8e(0x14b)]=_0x30de8e(0x142),document[_0x30de8e(0x18a)]('.btn-complete')[_0x30de8e(0x17c)][_0x30de8e(0x14b)]=_0x30de8e(0x155),_0xb57388['forEach'](_0x10e7b9=>{const _0x181b1f=_0x30de8e;_0x10e7b9['style'][_0x181b1f(0x15f)]='default',_0x10e7b9[_0x181b1f(0x17c)][_0x181b1f(0x197)]=_0x181b1f(0x142),_0x10e7b9[_0x181b1f(0x173)][_0x181b1f(0x122)]('filled'),_0x10e7b9[_0x181b1f(0x17c)]['transform']=_0x181b1f(0x142),_0x10e7b9[_0x181b1f(0x17c)][_0x181b1f(0x13b)]=_0x181b1f(0x142);}),_0xb57388[_0x30de8e(0x166)](_0x7e698b=>{const _0x260bfc=_0x30de8e;_0x7e698b['replaceWith'](_0x7e698b[_0x260bfc(0x130)](!![]));})):(_0x1fc4a2[_0x30de8e(0x176)]=_0x30de8e(0x18f),_0x1fc4a2[_0x30de8e(0x138)]=_0x30de8e(0x10f)+_0xe2db06[_0x30de8e(0x179)](_0x30de8e(0x135)),document[_0x30de8e(0x18a)]('.btn-retry-income')[_0x30de8e(0x17c)][_0x30de8e(0x14b)]='inline-block',document[_0x30de8e(0x18a)](_0x30de8e(0x165))[_0x30de8e(0x17c)]['display']=_0x30de8e(0x142));}),document[_0x1176ad(0x18a)]('.btn-retry-income')[_0x1176ad(0x190)](_0x1176ad(0x172),()=>{const _0x446f8e=_0x1176ad,_0x58e83d=document[_0x446f8e(0x18a)](_0x446f8e(0x184)),_0x592d45=_0x58e83d[_0x446f8e(0x18a)](_0x446f8e(0x137));_0x592d45[_0x446f8e(0x17c)]['display']='none',_0x592d45['innerHTML']='',_0x592d45[_0x446f8e(0x176)]=_0x446f8e(0x185),document[_0x446f8e(0x18a)](_0x446f8e(0x164))[_0x446f8e(0x17c)]['display']=_0x446f8e(0x142),document[_0x446f8e(0x18a)]('.btn-check-income')[_0x446f8e(0x17c)]['display']=_0x446f8e(0x155);const _0x4de90b=_0x58e83d[_0x446f8e(0x14e)](_0x446f8e(0x129)),_0x18c1a7=_0x58e83d[_0x446f8e(0x14e)](_0x446f8e(0x18c));_0x18c1a7[_0x446f8e(0x166)](_0x320b5f=>{const _0x188034=_0x446f8e;_0x320b5f['classList'][_0x188034(0x122)](_0x188034(0x196));}),_0x4de90b[_0x446f8e(0x166)](_0x10d123=>{const _0x3a4df2=_0x446f8e;_0x10d123[_0x3a4df2(0x17c)][_0x3a4df2(0x12f)]=_0x3a4df2(0x189),_0x10d123[_0x3a4df2(0x17c)][_0x3a4df2(0x154)]='rgba(255,\x20255,\x20255,\x200.8)',_0x10d123['classList'][_0x3a4df2(0x122)](_0x3a4df2(0x182));if(_0x10d123['dataset'][_0x3a4df2(0x109)]){const _0x14ad8d=document[_0x3a4df2(0x18a)]('[data-value=\x22'+_0x10d123[_0x3a4df2(0x11c)][_0x3a4df2(0x109)]+'\x22]');_0x14ad8d&&_0x14ad8d['classList'][_0x3a4df2(0x122)](_0x3a4df2(0x128)),_0x10d123['textContent']=_0x10d123[_0x3a4df2(0x11c)][_0x3a4df2(0x156)]||_0x10d123[_0x3a4df2(0x147)]['split'](':')[0x0],delete _0x10d123[_0x3a4df2(0x11c)][_0x3a4df2(0x109)];}}),calculateIncomeStatement();}),document['querySelector']('.btn-complete')['addEventListener'](_0x1176ad(0x172),()=>{const _0x5c7eb8=_0x1176ad;window[_0x5c7eb8(0x13a)]['href']=_0x5c7eb8(0x158);});
    </script>
</body>
</html>
