[
  {
    "path": ".editorconfig",
    "content": "root = true\n\n[*]\ncharset = utf-8\ninsert_final_newline = true\ntrim_trailing_whitespace = true\n\n[*.{kt,kts}]\nindent_size = 4\nij_kotlin_allow_trailing_comma=true\nij_kotlin_allow_trailing_comma_on_call_site=true\nij_kotlin_name_count_to_use_star_import = 999\nij_kotlin_name_count_to_use_star_import_for_members = 999\n\n[*.{yml,yaml}]\nindent_size = 2\n"
  },
  {
    "path": ".github/workflows/prep_release.yml",
    "content": "name: Prepare Release\n\non:\n  workflow_dispatch:\n    inputs:\n      version:\n        description: 'Version number (e.g., 1.4.0)'\n        required: true\n        type: string\n\njobs:\n  prepare-release:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: write\n      pull-requests: write\n\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v5\n\n      - name: Setup Java\n        uses: actions/setup-java@v4\n        with:\n          java-version: 17\n          distribution: 'adopt'\n\n      - name: Setup Gradle\n        uses: gradle/actions/setup-gradle@v4\n\n      - name: Update versionName in build.gradle.kts\n        run: |\n          VERSION=\"${{ inputs.version }}\"\n          sed -i \"s/versionName = \\\".*\\\"/versionName = \\\"$VERSION\\\"/\" app/build.gradle.kts\n\n      - name: Run fastlaneChangelog task\n        run: ./gradlew fastlaneChangelog\n\n      - name: Create Pull Request\n        uses: peter-evans/create-pull-request@v7\n        with:\n          branch: release/${{ inputs.version }}\n          labels: release\n          commit-message: \"chore: prepare release ${{ inputs.version }}\"\n          title: \"chore: release ${{ inputs.version }}\"\n          body: |\n            This PR prepares the release for version ${{ inputs.version }}.\n\n            Changes:\n            - Updated versionName in build.gradle.kts\n            - Updated CHANGELOG.md\n            - Created Fastlane changelog file\n\n            Once merged, this will trigger the build and publish workflow.\n"
  },
  {
    "path": ".github/workflows/release.yml",
    "content": "name: Release\n\non:\n  pull_request:\n    types:\n      - closed\n    branches:\n      - main\n\njobs:\n  build-and-publish:\n    if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')\n    runs-on: ubuntu-latest\n    permissions:\n      contents: write\n      packages: write\n\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v5\n\n      - name: Setup Java\n        uses: actions/setup-java@v4\n        with:\n          java-version: 17\n          distribution: 'adopt'\n\n      - name: Setup Gradle\n        uses: gradle/actions/setup-gradle@v4\n\n      - name: Extract version from branch\n        id: extract_version\n        run: |\n          BRANCH_NAME=\"${{ github.event.pull_request.head.ref }}\"\n          VERSION=\"${BRANCH_NAME#release/}\"\n          echo \"tag=$VERSION\" >> $GITHUB_OUTPUT\n\n      - name: Build release APK\n        run: ./gradlew assembleRelease\n\n      - name: Signing APK\n        uses: r0adkll/sign-android-release@v1\n        id: sign_apk\n        env:\n          BUILD_TOOLS_VERSION: \"36.0.0\"\n        with:\n          releaseDirectory: app/build/outputs/apk/release\n          signingKeyBase64: ${{ secrets.KEY_BASE64 }}\n          keyStorePassword: ${{ secrets.STORE_PASS }}\n          alias: ${{ secrets.KEY_ALIAS }}\n          keyPassword: ${{ secrets.KEY_PASS }}\n\n      - name: Build release AAB\n        run: ./gradlew bundleRelease\n\n      - uses: r0adkll/sign-android-release@v1\n        name: Signing AAB\n        id: sign_aab\n        env:\n          BUILD_TOOLS_VERSION: \"36.0.0\"\n        with:\n          releaseDirectory: app/build/outputs/bundle/release\n          signingKeyBase64: ${{ secrets.KEY_BASE64 }}\n          keyStorePassword: ${{ secrets.STORE_PASS }}\n          alias: ${{ secrets.KEY_ALIAS }}\n          keyPassword: ${{ secrets.KEY_PASS }}\n\n      - name: Read changelog\n        id: read_changelog\n        run: echo \"changelog<<EOF\" >> $GITHUB_OUTPUT && bash changelog.sh ${{ steps.extract_version.outputs.tag }} >> $GITHUB_OUTPUT && echo \"EOF\" >> $GITHUB_OUTPUT\n\n      - name: Create release\n        uses: softprops/action-gh-release@v2\n        with:\n          tag_name: ${{ steps.extract_version.outputs.tag }}\n          name: Release ${{ steps.extract_version.outputs.tag }}\n          body: ${{ steps.read_changelog.outputs.changelog }}\n          generate_release_notes: false\n          prerelease: false\n          draft: true\n          files: |\n            ${{steps.sign_apk.outputs.signedReleaseFile}}\n            ${{steps.sign_aab.outputs.signedReleaseFile}}\n\n      - name: Publish to Play Store\n        uses: r0adkll/upload-google-play@v1\n        with:\n          packageName: com.looker.kenko\n          track: production\n          releaseName: ${{ steps.extract_version.outputs.tag }}\n          releaseFiles: ${{steps.sign_aab.outputs.signedReleaseFile}}\n          mappingFile: app/build/outputs/mapping/release/mapping.txt\n          debugSymbols: app/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib\n          serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}\n"
  },
  {
    "path": ".gitignore",
    "content": "*.iml\n.gradle\n/local.properties\n/.idea\n.DS_Store\n/build\n/captures\n.externalNativeBuild\n.cxx\nlocal.properties\n*.jks\n/.kotlin\n/kls_database.db\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "# Changelog\n\nAll notable changes to this project will be documented in this file atleast once a day (if there are any changes).\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## [Unreleased]\n\n### Added\n- Backup and restore for whole data\n\n## [1.3.2] - 2025-11-13\n\n### Added\n- Session History card on Home screen\n- Set Type selection for sets\n- Timer which shows time since last set\n- Monochrome launcher icon on Android 12+\n- Allow adding a new exercise directly when it cannot be found in the list\n- Clean up empty plans from the Plans screen via confirmation dialog\n- Enable predictive back navigation\n- Empty state on Sessions screen\n\n### Changed\n- Removed Bottom navigation bar, added user icon to top bar\n- Updated Day Switcher component styling for clarity\n- Hide Lifts card when there are no lifts\n- Redesigned Session History card and screen\n- Replaced profile icon on Home screen\n- Removed \"Today\" label on Sessions and filtered out empty sessions\n\n### Fixed\n- Select Plan button alignment\n- Prevent unintended translation for Turkish app name\n- Session list now shows most recent first\n- Lifts card not showing even when lifts existed\n- Sets from past sessions not shown when the exercise was removed from the corresponding plan\n\n## [1.3.0] - 2025-01-17\n\n### Added\n- Drag text field in \"Add Set\"\n- Double tap to edit \"set info\"\n- History Icon (You can check last week's session if it exists)\n- Support for Monochrome icon on Android 12+\n- Text animation on Onboarding\n- Safer way to delete Sets / Exercises / Plans\n- New Font for headings\n\n### Changed\n- Targets Android 15\n- Onboarding screen\n- Default theme for new users\n- Sorting of muscle groups chips\n- Always save plan on going back\n- Color in Profile\n- Home Screen and On-boarding Screen\n- Some buttons and UI elements\n\n### Fixed\n- Save button not visible\n- Two `Default` theme in Settings\n- Scrolling on `Select Exercise` Sheet\n- Performance issues on `Add Set` Sheet\n- Weird line in the setting wave\n- Crash on deleting plan\n- On boarding not completing\n- Loads of performance improvements\n\n### Removed\n- Gradient in settings\n\n## [1.2.0] - 2024-05-26\n\n### Added\n- Support for isometric exercises\n- Deleting Sets / Exercises / Plans\n\n### Changed\n- Error message height\n- Chips type in `Select Exercise`\n\n### Fixed\n- Navigation to same page again\n- Double back presses\n- Swipe gesture on reps and weight text field\n- Elements squashing on small screens\n- Empty exercises\n- Invalid reference\n- False reference icon\n\n## [1.1.1] - 2024-05-19\n\n### Fixed\n- Navigation from home screen\n- Annoying animations on home page\n- Plan Edit Page\n- Back button on all pages\n\n## [1.1.0] - 2024-05-19\n\n### Added\n- New Home Page\n- Back button on Exercises Page\n- Option to open References from workout page(if added)\n\n### Changed\n- Splash Screen Image to reduce dependency on `NonFreeNet`\n- Whole Plan card is clickable\n\n### Fixed\n- APK dependency tree encryption\n- Color of icons on some buttons\n- `Zestful` Color Palettes\n- Crash when using invalid reference\n- UI/UX for Exercises Page\n- Some navigation crashes\n\n## [1.0.0] - 2024-05-12\n\n### Added\n- Initial Release"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "content": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participation in our\ncommunity a harassment-free experience for everyone, regardless of age, body\nsize, visible or invisible disability, ethnicity, sex characteristics, gender\nidentity and expression, level of experience, education, socio-economic status,\nnationality, personal appearance, race, religion, or sexual identity\nand orientation.\n\nWe pledge to act and interact in ways that contribute to an open, welcoming,\ndiverse, inclusive, and healthy community.\n\n## Our Standards\n\nExamples of behavior that contributes to a positive environment for our\ncommunity include:\n\n* Demonstrating empathy and kindness toward other people\n* Being respectful of differing opinions, viewpoints, and experiences\n* Giving and gracefully accepting constructive feedback\n* Accepting responsibility and apologizing to those affected by our mistakes,\n  and learning from the experience\n* Focusing on what is best not just for us as individuals, but for the\n  overall community\n\nExamples of unacceptable behavior include:\n\n* The use of sexualized language or imagery, and sexual attention or\n  advances of any kind\n* Trolling, insulting or derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or email\n  address, without their explicit permission\n* Other conduct which could reasonably be considered inappropriate in a\n  professional setting\n\n## Enforcement Responsibilities\n\nCommunity leaders are responsible for clarifying and enforcing our standards of\nacceptable behavior and will take appropriate and fair corrective action in\nresponse to any behavior that they deem inappropriate, threatening, offensive,\nor harmful.\n\nCommunity leaders have the right and responsibility to remove, edit, or reject\ncomments, commits, code, wiki edits, issues, and other contributions that are\nnot aligned to this Code of Conduct, and will communicate reasons for moderation\ndecisions when appropriate.\n\n## Scope\n\nThis Code of Conduct applies within all community spaces, and also applies when\nan individual is officially representing the community in public spaces.\nExamples of representing our community include using an official e-mail address,\nposting via an official social media account, or acting as an appointed\nrepresentative at an online or offline event.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported to the community leaders responsible for enforcement at\nmohit2002ss@gmail.com.\nAll complaints will be reviewed and investigated promptly and fairly.\n\nAll community leaders are obligated to respect the privacy and security of the\nreporter of any incident.\n\n## Enforcement Guidelines\n\nCommunity leaders will follow these Community Impact Guidelines in determining\nthe consequences for any action they deem in violation of this Code of Conduct:\n\n### 1. Correction\n\n**Community Impact**: Use of inappropriate language or other behavior deemed\nunprofessional or unwelcome in the community.\n\n**Consequence**: A private, written warning from community leaders, providing\nclarity around the nature of the violation and an explanation of why the\nbehavior was inappropriate. A public apology may be requested.\n\n### 2. Warning\n\n**Community Impact**: A violation through a single incident or series\nof actions.\n\n**Consequence**: A warning with consequences for continued behavior. No\ninteraction with the people involved, including unsolicited interaction with\nthose enforcing the Code of Conduct, for a specified period of time. This\nincludes avoiding interactions in community spaces as well as external channels\nlike social media. Violating these terms may lead to a temporary or\npermanent ban.\n\n### 3. Temporary Ban\n\n**Community Impact**: A serious violation of community standards, including\nsustained inappropriate behavior.\n\n**Consequence**: A temporary ban from any sort of interaction or public\ncommunication with the community for a specified period of time. No public or\nprivate interaction with the people involved, including unsolicited interaction\nwith those enforcing the Code of Conduct, is allowed during this period.\nViolating these terms may lead to a permanent ban.\n\n### 4. Permanent Ban\n\n**Community Impact**: Demonstrating a pattern of violation of community\nstandards, including sustained inappropriate behavior,  harassment of an\nindividual, or aggression toward or disparagement of classes of individuals.\n\n**Consequence**: A permanent ban from any sort of public interaction within\nthe community.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage],\nversion 2.0, available at\nhttps://www.contributor-covenant.org/version/2/0/code_of_conduct.html.\n\nCommunity Impact Guidelines were inspired by [Mozilla's code of conduct\nenforcement ladder](https://github.com/mozilla/diversity).\n\n[homepage]: https://www.contributor-covenant.org\n\nFor answers to common questions about this code of conduct, see the FAQ at\nhttps://www.contributor-covenant.org/faq. Translations are available at\nhttps://www.contributor-covenant.org/translations.\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "PRIVACY.md",
    "content": "**Privacy Policy**\n\nLooKeR built the Kenko app as an Open Source app. This SERVICE is provided by LooKeR at no cost and is intended for use as is.\n\nThis page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.\n\nThis app does not collect or share any sort of data/information of its user. No Internet Permission is asked/requested by the app.\n\nThe terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at Kenko unless otherwise defined in this Privacy Policy.\n\n**Information Collection and Use**\n\nThe app does use third-party services that may collect information used to identify you.\n\nLink to the privacy policy of third-party service providers used by the app\n\n*   [Google Play Services](https://www.google.com/policies/privacy/)\n\n**Security**\n\nI value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. And hence we do not request or use Internet permission so no sort of data breach or collection can happen due to any sort of issues from my side.\n\n**Children’s Privacy**\n\nThese Services do not address anyone under the age of 13. I do not knowingly collect personally identifiable information from children under 13 years of age. In the case I discover that a child under 13 has provided me with personal information, I immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact me so that I will be able to do the necessary actions.\n\n**Changes to This Privacy Policy**\n\nI may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. I will notify you of any changes by posting the new Privacy Policy on this page.\n\nThis policy is effective as of 2022-05-31\n\n**Contact Us**\n\nIf you have any questions or suggestions about my Privacy Policy, do not hesitate to contact me at mohit2002ss@gmail.com.\n\nThis privacy policy page was created at [privacypolicytemplate.net](https://privacypolicytemplate.net) and modified/generated by [App Privacy Policy Generator](https://app-privacy-policy-generator.nisrulz.com/)\n"
  },
  {
    "path": "README.md",
    "content": "<div align=\"center\">\n\n<img width=\"\" src=\"metadata/en-US/images/featureGraphic.png\" alt=\"Kenko\" align=\"center\">\n\nKenko is a workout journal which will provide you with appropriate progressive-overload and well\nthought-out plans\n\n</div>\n\n<div align=\"left\">\n\n## Screenshots\n\n<img src=\"metadata/en-US/images/phoneScreenshots/1.png\" width=\"25%\" /><img src=\"metadata/en-US/images/phoneScreenshots/2.png\" width=\"25%\" /><img src=\"metadata/en-US/images/phoneScreenshots/3.png\" width=\"25%\" /><img src=\"metadata/en-US/images/phoneScreenshots/4.png\" width=\"25%\" />\n\n## CHANGELOGS\n- Full changelog: [here](https://github.com/Iamlooker/Kenko/blob/main/CHANGELOG.md)\n- Unreleased changes: [here](https://github.com/Iamlooker/Kenko/blob/main/CHANGELOG.md#unreleased)\n\n## TODO\n\n- [x] Add Rating System\n- [ ] Provide Targeted Overload\n- [x] Add Import/Export\n- [x] Add Support for Isometric exercises\n\n## LICENSE\n\n```\nKenko\n\nCopyright (C) 2025 LooKeR & Contributors\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n```\n\n</div>\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build\n/release\n/reports\n"
  },
  {
    "path": "app/build.gradle.kts",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport com.android.utils.text.dropPrefix\nimport java.time.LocalDate\nimport java.time.ZoneId\nimport org.jetbrains.kotlin.gradle.dsl.JvmTarget\nimport org.jetbrains.kotlin.gradle.dsl.KotlinVersion\n\nplugins {\n    alias(libs.plugins.android.app)\n    alias(libs.plugins.kotlin.android)\n    alias(libs.plugins.kotlinx.serialization)\n    alias(libs.plugins.compose.compiler)\n    alias(libs.plugins.ksp)\n    alias(libs.plugins.room)\n    alias(libs.plugins.hilt)\n}\n\nandroid {\n    namespace = \"com.looker.kenko\"\n    compileSdk = 36\n\n    defaultConfig {\n        applicationId = \"com.looker.kenko\"\n        minSdk = 26\n        targetSdk = 36\n        versionName = \"1.3.2\"\n        versionCode = versionCodeFor(versionName)\n\n        testInstrumentationRunner = \"com.looker.kenko.KenkoTestRunner\"\n    }\n\n    room {\n        generateKotlin = true\n        schemaDirectory(\"$projectDir/schemas\")\n    }\n\n    dependenciesInfo {\n        includeInApk = false\n    }\n\n    buildTypes {\n        debug { applicationIdSuffix = \".debug\" }\n        release {\n            isMinifyEnabled = true\n            isShrinkResources = true\n            proguardFiles(\n                getDefaultProguardFile(\"proguard-android-optimize.txt\"),\n                \"proguard-rules.pro\",\n            )\n        }\n    }\n\n    compileOptions {\n        sourceCompatibility = JavaVersion.VERSION_17\n        targetCompatibility = JavaVersion.VERSION_17\n    }\n\n    kotlin {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_17\n            languageVersion = KotlinVersion.KOTLIN_2_2\n            apiVersion = KotlinVersion.KOTLIN_2_2\n\n            freeCompilerArgs.add(\"-Xcontext-parameters\")\n\n            optIn.add(\"kotlin.RequiresOptIn\")\n            optIn.add(\"kotlin.time.ExperimentalTime\")\n        }\n    }\n\n    buildFeatures {\n        compose = true\n        buildConfig = true\n    }\n\n    sourceSets {\n        getByName(\"androidTest\").assets.srcDir(\"$projectDir/schemas\")\n    }\n\n    lint {\n        disable += \"MissingTranslation\"\n    }\n\n    composeCompiler {\n        metricsDestination = file(\"$projectDir/reports/metrics\")\n        reportsDestination = file(\"$projectDir/reports\")\n    }\n\n    packaging {\n        resources {\n            excludes += \"/META-INF/{AL2.0,LGPL2.1,LICENSE*}\"\n            excludes += \"DebugProbesKt.bin\"\n        }\n    }\n\n    testOptions {\n        unitTests.all {\n            it.useJUnitPlatform()\n        }\n    }\n}\n\ndependencies {\n    implementation(libs.core.ktx)\n\n    implementation(platform(libs.compose.bom))\n\n    implementation(libs.bundles.lifecycle)\n    implementation(libs.activity.compose)\n    implementation(libs.navigation.compose)\n\n    implementation(libs.savedstate)\n\n    implementation(libs.kotlinx.datetime)\n    implementation(libs.kotlinx.serialization.json)\n    implementation(libs.bundles.coroutines)\n\n    implementation(libs.bundles.compose)\n    debugImplementation(libs.bundles.compose.debug)\n\n    implementation(libs.hilt.android)\n    implementation(libs.hilt.navigation.compose)\n    ksp(libs.hilt.compiler)\n\n    implementation(libs.datastore)\n    implementation(libs.documentfile)\n\n    implementation(libs.bundles.work)\n\n    implementation(libs.bundles.room)\n    ksp(libs.room.compiler)\n\n    testImplementation(kotlin(\"test-junit5\"))\n\n    androidTestImplementation(kotlin(\"test-junit5\"))\n    androidTestImplementation(platform(libs.compose.bom))\n    androidTestImplementation(libs.bundles.instrumented.test)\n    androidTestImplementation(libs.room.test)\n    androidTestImplementation(libs.hilt.test)\n    androidTestImplementation(libs.work.testing)\n\n    kspAndroidTest(libs.hilt.test)\n}\n\nfun DependencyHandlerScope.kotlin(name: String): Any = kotlin(name, libs.versions.kotlin.get())\n\nfun versionCodeFor(version: String?): Int? {\n    if (version == null) return null\n    val (major, minor, patch) = version\n        .substringBefore('-')\n        .trim()\n        .split('.')\n        .map { it.toUIntOrNull() }\n\n    require(major != null && minor != null && patch != null) {\n        \"Each segment must be within 0..99 for mapping, was: '$version'\"\n    }\n\n    return (major * 100_000u + minor * 1_000u + patch * 10u).toInt()\n}\nval changelogMD by tasks.register(\"changelogMD\") {\n    group = \"build\"\n    description = \"Prepare CHANGELOG.md for release\"\n    notCompatibleWithConfigurationCache(\"Uses Android DSL and Project APIs in task action\")\n\n    doLast {\n        val versionName = requireNotNull(android.defaultConfig.versionName)\n\n        val changelogMd = rootProject.file(\"CHANGELOG.md\")\n        require(changelogMd.exists()) { \"CHANGELOG.md not found at project root\" }\n        val lines = changelogMd.readLines()\n\n        val unreleasedHeaderIdx = lines.indexOfFirst { it.startsWith(\"## [Unreleased]\") }\n        if (unreleasedHeaderIdx == -1) error(\"No [Unreleased] header found in CHANGELOG.md\")\n\n        if (lines.any { it.startsWith(\"## [$versionName\") }) {\n            logger.warn(\"Version $versionName already exists in CHANGELOG.md\")\n            return@doLast\n        }\n\n        val today = LocalDate.now(ZoneId.systemDefault()).toString()\n        val newHeader = \"## [$versionName] - $today\"\n\n        val updated = lines.toMutableList().apply {\n            add(unreleasedHeaderIdx + 1, \"\\n\" + newHeader)\n        }\n        changelogMd.writeText(updated.joinToString(\"\\n\"))\n    }\n}\n\nval fastlaneChangelog by tasks.register(\"fastlaneChangelog\") {\n    group = \"build\"\n    description = \"Prepare Fastlane changelog from CHANGELOG.md and create metadata file\"\n    notCompatibleWithConfigurationCache(\"Uses Android DSL and Project APIs in task action\")\n    dependsOn(changelogMD)\n    doLast {\n        val vCode = requireNotNull(android.defaultConfig.versionCode) {\n            \"versionCode is not configured\"\n        }\n        val vName = requireNotNull(android.defaultConfig.versionName) {\n            \"versionName is not configured\"\n        }\n\n        val fastlaneFile = rootProject.file(\"metadata/en-US/changelogs/${vCode}.txt\")\n        if (fastlaneFile.exists()) {\n            logger.warn(\"Fastlane changelog file already exists: ${fastlaneFile.path}\")\n            return@doLast\n        }\n\n        val changelogs = rootProject.file(\"CHANGELOG.md\").readLines()\n\n        var blockStartIndex = -1\n        var blockEndIndex = changelogs.lastIndex\n\n        for (i in changelogs.indices) {\n            if (changelogs[i].startsWith(\"## [Unreleased]\")) continue\n            if (changelogs[i].startsWith(\"## [$vName\")) {\n                blockStartIndex = i + 1\n                continue\n            }\n            if (changelogs[i].startsWith(\"## [\") && blockStartIndex != -1) {\n                blockEndIndex = i - 1\n                break\n            }\n        }\n\n        val unreleasedBlock = changelogs.subList(blockStartIndex, blockEndIndex + 1)\n\n        val cleanedForFastlane = unreleasedBlock.joinToString(\"\\n\") { raw ->\n            if (raw.startsWith('#')) raw.dropPrefix(\"### \").trim() else raw.trim()\n        }.trim().ifEmpty { \"No changes listed.\" }\n\n        fastlaneFile.writeText(cleanedForFastlane)\n    }\n}\n"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile"
  },
  {
    "path": "app/schemas/com.looker.kenko.data.local.KenkoDatabase/1.json",
    "content": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 1,\n    \"identityHash\": \"1e8dafafc484e5254c66d1c687eebd72\",\n    \"entities\": [\n      {\n        \"tableName\": \"Session\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`date` INTEGER NOT NULL, `sets` TEXT NOT NULL, PRIMARY KEY(`date`))\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"date\",\n            \"columnName\": \"date\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"sets\",\n            \"columnName\": \"sets\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": false,\n          \"columnNames\": [\n            \"date\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      },\n      {\n        \"tableName\": \"Exercise\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `target` TEXT NOT NULL, `reference` TEXT, `isIsometric` INTEGER NOT NULL, PRIMARY KEY(`name`))\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"name\",\n            \"columnName\": \"name\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"target\",\n            \"columnName\": \"target\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"reference\",\n            \"columnName\": \"reference\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"isIsometric\",\n            \"columnName\": \"isIsometric\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": false,\n          \"columnNames\": [\n            \"name\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      },\n      {\n        \"tableName\": \"plan_table\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `exercisesPerDay` TEXT NOT NULL, `isActive` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"name\",\n            \"columnName\": \"name\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"exercisesPerDay\",\n            \"columnName\": \"exercisesPerDay\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"isActive\",\n            \"columnName\": \"isActive\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": false\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      }\n    ],\n    \"views\": [],\n    \"setupQueries\": [\n      \"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)\",\n      \"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '1e8dafafc484e5254c66d1c687eebd72')\"\n    ]\n  }\n}"
  },
  {
    "path": "app/schemas/com.looker.kenko.data.local.KenkoDatabase/2.json",
    "content": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 2,\n    \"identityHash\": \"04f53094bed233a166e553e534b9304f\",\n    \"entities\": [\n      {\n        \"tableName\": \"sessions\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`date` INTEGER NOT NULL, `planId` INTEGER, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`planId`) REFERENCES `plans`(`id`) ON UPDATE NO ACTION ON DELETE SET NULL )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"date\",\n            \"columnName\": \"date\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"planId\",\n            \"columnName\": \"planId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_sessions_planId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"planId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_sessions_planId` ON `${TABLE_NAME}` (`planId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"plans\",\n            \"onDelete\": \"SET NULL\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"planId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"exercises\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `target` TEXT NOT NULL, `reference` TEXT, `isIsometric` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"name\",\n            \"columnName\": \"name\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"target\",\n            \"columnName\": \"target\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"reference\",\n            \"columnName\": \"reference\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"isIsometric\",\n            \"columnName\": \"isIsometric\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      },\n      {\n        \"tableName\": \"plans\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `description` TEXT DEFAULT NULL, `difficulty` TEXT DEFAULT NULL, `focus` TEXT DEFAULT NULL, `equipment` TEXT DEFAULT NULL, `time` TEXT DEFAULT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"name\",\n            \"columnName\": \"name\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"description\",\n            \"columnName\": \"description\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false,\n            \"defaultValue\": \"NULL\"\n          },\n          {\n            \"fieldPath\": \"difficulty\",\n            \"columnName\": \"difficulty\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false,\n            \"defaultValue\": \"NULL\"\n          },\n          {\n            \"fieldPath\": \"focus\",\n            \"columnName\": \"focus\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false,\n            \"defaultValue\": \"NULL\"\n          },\n          {\n            \"fieldPath\": \"equipment\",\n            \"columnName\": \"equipment\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false,\n            \"defaultValue\": \"NULL\"\n          },\n          {\n            \"fieldPath\": \"time\",\n            \"columnName\": \"time\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": false,\n            \"defaultValue\": \"NULL\"\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      },\n      {\n        \"tableName\": \"plan_history\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`planId` INTEGER, `start` INTEGER NOT NULL, `end` INTEGER DEFAULT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`planId`) REFERENCES `plans`(`id`) ON UPDATE NO ACTION ON DELETE SET NULL )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"planId\",\n            \"columnName\": \"planId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": false\n          },\n          {\n            \"fieldPath\": \"start\",\n            \"columnName\": \"start\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"end\",\n            \"columnName\": \"end\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": false,\n            \"defaultValue\": \"NULL\"\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_plan_history_planId_start_end\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"planId\",\n              \"start\",\n              \"end\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_plan_history_planId_start_end` ON `${TABLE_NAME}` (`planId`, `start`, `end`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"plans\",\n            \"onDelete\": \"SET NULL\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"planId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"plan_day\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`planId` INTEGER NOT NULL, `exerciseId` INTEGER NOT NULL, `dayOfWeek` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`planId`) REFERENCES `plans`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`exerciseId`) REFERENCES `exercises`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"planId\",\n            \"columnName\": \"planId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"exerciseId\",\n            \"columnName\": \"exerciseId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"dayOfWeek\",\n            \"columnName\": \"dayOfWeek\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_plan_day_planId_exerciseId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"planId\",\n              \"exerciseId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_plan_day_planId_exerciseId` ON `${TABLE_NAME}` (`planId`, `exerciseId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"plans\",\n            \"onDelete\": \"CASCADE\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"planId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          },\n          {\n            \"table\": \"exercises\",\n            \"onDelete\": \"CASCADE\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"exerciseId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"sets\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`reps` INTEGER NOT NULL, `weight` REAL NOT NULL, `type` TEXT NOT NULL, `order` INTEGER NOT NULL, `sessionId` INTEGER NOT NULL, `exerciseId` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`exerciseId`) REFERENCES `exercises`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`sessionId`) REFERENCES `sessions`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"repsOrDuration\",\n            \"columnName\": \"reps\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"weight\",\n            \"columnName\": \"weight\",\n            \"affinity\": \"REAL\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"type\",\n            \"columnName\": \"type\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"order\",\n            \"columnName\": \"order\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"sessionId\",\n            \"columnName\": \"sessionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"exerciseId\",\n            \"columnName\": \"exerciseId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_sets_sessionId_exerciseId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"sessionId\",\n              \"exerciseId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_sets_sessionId_exerciseId` ON `${TABLE_NAME}` (`sessionId`, `exerciseId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"exercises\",\n            \"onDelete\": \"CASCADE\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"exerciseId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          },\n          {\n            \"table\": \"sessions\",\n            \"onDelete\": \"CASCADE\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"sessionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"set_type\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` TEXT NOT NULL, `modifier` REAL NOT NULL, PRIMARY KEY(`type`))\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"type\",\n            \"columnName\": \"type\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"modifier\",\n            \"columnName\": \"modifier\",\n            \"affinity\": \"REAL\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": false,\n          \"columnNames\": [\n            \"type\"\n          ]\n        },\n        \"indices\": [],\n        \"foreignKeys\": []\n      }\n    ],\n    \"views\": [],\n    \"setupQueries\": [\n      \"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)\",\n      \"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '04f53094bed233a166e553e534b9304f')\"\n    ]\n  }\n}"
  },
  {
    "path": "app/schemas/com.looker.kenko.data.local.KenkoDatabase/3.json",
    "content": "{\n  \"formatVersion\": 1,\n  \"database\": {\n    \"version\": 3,\n    \"identityHash\": \"2fb0608c62826bf785ae6108386f6e5b\",\n    \"entities\": [\n      {\n        \"tableName\": \"sessions\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`date` INTEGER NOT NULL, `planId` INTEGER, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`planId`) REFERENCES `plans`(`id`) ON UPDATE NO ACTION ON DELETE SET NULL )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"date\",\n            \"columnName\": \"date\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"planId\",\n            \"columnName\": \"planId\",\n            \"affinity\": \"INTEGER\"\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_sessions_planId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"planId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_sessions_planId` ON `${TABLE_NAME}` (`planId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"plans\",\n            \"onDelete\": \"SET NULL\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"planId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"exercises\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `target` TEXT NOT NULL, `reference` TEXT, `isIsometric` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"name\",\n            \"columnName\": \"name\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"target\",\n            \"columnName\": \"target\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"reference\",\n            \"columnName\": \"reference\",\n            \"affinity\": \"TEXT\"\n          },\n          {\n            \"fieldPath\": \"isIsometric\",\n            \"columnName\": \"isIsometric\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        }\n      },\n      {\n        \"tableName\": \"plans\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `description` TEXT DEFAULT NULL, `difficulty` TEXT DEFAULT NULL, `focus` TEXT DEFAULT NULL, `equipment` TEXT DEFAULT NULL, `time` TEXT DEFAULT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"name\",\n            \"columnName\": \"name\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"description\",\n            \"columnName\": \"description\",\n            \"affinity\": \"TEXT\",\n            \"defaultValue\": \"NULL\"\n          },\n          {\n            \"fieldPath\": \"difficulty\",\n            \"columnName\": \"difficulty\",\n            \"affinity\": \"TEXT\",\n            \"defaultValue\": \"NULL\"\n          },\n          {\n            \"fieldPath\": \"focus\",\n            \"columnName\": \"focus\",\n            \"affinity\": \"TEXT\",\n            \"defaultValue\": \"NULL\"\n          },\n          {\n            \"fieldPath\": \"equipment\",\n            \"columnName\": \"equipment\",\n            \"affinity\": \"TEXT\",\n            \"defaultValue\": \"NULL\"\n          },\n          {\n            \"fieldPath\": \"time\",\n            \"columnName\": \"time\",\n            \"affinity\": \"TEXT\",\n            \"defaultValue\": \"NULL\"\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        }\n      },\n      {\n        \"tableName\": \"plan_history\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`planId` INTEGER, `start` INTEGER NOT NULL, `end` INTEGER DEFAULT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`planId`) REFERENCES `plans`(`id`) ON UPDATE NO ACTION ON DELETE SET NULL )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"planId\",\n            \"columnName\": \"planId\",\n            \"affinity\": \"INTEGER\"\n          },\n          {\n            \"fieldPath\": \"start\",\n            \"columnName\": \"start\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"end\",\n            \"columnName\": \"end\",\n            \"affinity\": \"INTEGER\",\n            \"defaultValue\": \"NULL\"\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_plan_history_planId_start_end\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"planId\",\n              \"start\",\n              \"end\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_plan_history_planId_start_end` ON `${TABLE_NAME}` (`planId`, `start`, `end`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"plans\",\n            \"onDelete\": \"SET NULL\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"planId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"plan_day\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`planId` INTEGER NOT NULL, `exerciseId` INTEGER NOT NULL, `dayOfWeek` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`planId`) REFERENCES `plans`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`exerciseId`) REFERENCES `exercises`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"planId\",\n            \"columnName\": \"planId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"exerciseId\",\n            \"columnName\": \"exerciseId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"dayOfWeek\",\n            \"columnName\": \"dayOfWeek\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_plan_day_planId_exerciseId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"planId\",\n              \"exerciseId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_plan_day_planId_exerciseId` ON `${TABLE_NAME}` (`planId`, `exerciseId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"plans\",\n            \"onDelete\": \"CASCADE\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"planId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          },\n          {\n            \"table\": \"exercises\",\n            \"onDelete\": \"CASCADE\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"exerciseId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"sets\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`reps` INTEGER NOT NULL, `weight` REAL NOT NULL, `type` TEXT NOT NULL, `order` INTEGER NOT NULL, `sessionId` INTEGER NOT NULL, `exerciseId` INTEGER NOT NULL, `rir` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, FOREIGN KEY(`exerciseId`) REFERENCES `exercises`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`sessionId`) REFERENCES `sessions`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"repsOrDuration\",\n            \"columnName\": \"reps\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"weight\",\n            \"columnName\": \"weight\",\n            \"affinity\": \"REAL\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"type\",\n            \"columnName\": \"type\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"order\",\n            \"columnName\": \"order\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"sessionId\",\n            \"columnName\": \"sessionId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"exerciseId\",\n            \"columnName\": \"exerciseId\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"rir\",\n            \"columnName\": \"rir\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"id\",\n            \"columnName\": \"id\",\n            \"affinity\": \"INTEGER\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": true,\n          \"columnNames\": [\n            \"id\"\n          ]\n        },\n        \"indices\": [\n          {\n            \"name\": \"index_sets_sessionId_exerciseId\",\n            \"unique\": false,\n            \"columnNames\": [\n              \"sessionId\",\n              \"exerciseId\"\n            ],\n            \"orders\": [],\n            \"createSql\": \"CREATE INDEX IF NOT EXISTS `index_sets_sessionId_exerciseId` ON `${TABLE_NAME}` (`sessionId`, `exerciseId`)\"\n          }\n        ],\n        \"foreignKeys\": [\n          {\n            \"table\": \"exercises\",\n            \"onDelete\": \"CASCADE\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"exerciseId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          },\n          {\n            \"table\": \"sessions\",\n            \"onDelete\": \"CASCADE\",\n            \"onUpdate\": \"NO ACTION\",\n            \"columns\": [\n              \"sessionId\"\n            ],\n            \"referencedColumns\": [\n              \"id\"\n            ]\n          }\n        ]\n      },\n      {\n        \"tableName\": \"set_type\",\n        \"createSql\": \"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`type` TEXT NOT NULL, `modifier` REAL NOT NULL, PRIMARY KEY(`type`))\",\n        \"fields\": [\n          {\n            \"fieldPath\": \"type\",\n            \"columnName\": \"type\",\n            \"affinity\": \"TEXT\",\n            \"notNull\": true\n          },\n          {\n            \"fieldPath\": \"modifier\",\n            \"columnName\": \"modifier\",\n            \"affinity\": \"REAL\",\n            \"notNull\": true\n          }\n        ],\n        \"primaryKey\": {\n          \"autoGenerate\": false,\n          \"columnNames\": [\n            \"type\"\n          ]\n        }\n      }\n    ],\n    \"setupQueries\": [\n      \"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)\",\n      \"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '2fb0608c62826bf785ae6108386f6e5b')\"\n    ]\n  }\n}"
  },
  {
    "path": "app/src/androidTest/kotlin/com/looker/kenko/BackupManagerTest.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko\n\nimport android.content.Context\nimport androidx.core.net.toUri\nimport androidx.test.core.app.ApplicationProvider\nimport com.looker.kenko.data.backup.BackupManager\nimport com.looker.kenko.data.backup.BackupResult\nimport com.looker.kenko.data.local.model.SetType\nimport com.looker.kenko.data.model.PlanItem\nimport com.looker.kenko.data.model.RepsInReserve\nimport com.looker.kenko.data.model.Set\nimport com.looker.kenko.data.model.localDate\nimport com.looker.kenko.data.repository.ExerciseRepo\nimport com.looker.kenko.data.repository.PlanRepo\nimport com.looker.kenko.data.repository.SessionRepo\nimport dagger.hilt.android.testing.HiltAndroidRule\nimport dagger.hilt.android.testing.HiltAndroidTest\nimport java.io.File\nimport javax.inject.Inject\nimport kotlin.random.Random\nimport kotlin.test.Ignore\nimport kotlin.test.assertEquals\nimport kotlin.test.assertIs\nimport kotlin.test.assertTrue\nimport kotlinx.coroutines.flow.first\nimport kotlinx.coroutines.test.runTest\nimport kotlinx.datetime.DayOfWeek\nimport org.junit.After\nimport org.junit.Before\nimport org.junit.Rule\nimport org.junit.Test\n\n@HiltAndroidTest\nclass BackupManagerTest {\n\n    @get:Rule\n    val hiltRule = HiltAndroidRule(this)\n\n    @Inject\n    lateinit var backupManager: BackupManager\n\n    @Inject\n    lateinit var sessionRepo: SessionRepo\n\n    @Inject\n    lateinit var planRepo: PlanRepo\n\n    @Inject\n    lateinit var exerciseRepo: ExerciseRepo\n\n    private lateinit var context: Context\n    private lateinit var backupDir: File\n\n    @Before\n    fun setup() {\n        hiltRule.inject()\n        context = ApplicationProvider.getApplicationContext()\n        backupDir = File(context.cacheDir, \"test_backups\").apply {\n            mkdirs()\n        }\n    }\n\n    @After\n    fun tearDown() {\n        backupDir.deleteRecursively()\n    }\n\n    @Test\n    fun createBackup_createsValidZipFile() = runTest {\n        val backupFile = File(backupDir, \"test_backup.zip\")\n        val result = backupManager.createBackup(backupFile.toUri())\n\n        assertIs<BackupResult.Success>(result)\n        assertTrue(backupFile.exists())\n        assertTrue(backupFile.length() > 0)\n    }\n\n    @Test\n    fun createBackup_containsDatabaseFile() = runTest {\n        val backupFile = File(backupDir, \"test_backup_db.zip\")\n        val result = backupManager.createBackup(backupFile.toUri())\n\n        assertIs<BackupResult.Success>(result)\n\n        // Verify zip contains database\n        val extractDir = File(backupDir, \"extracted\")\n        extractDir.mkdirs()\n\n        java.util.zip.ZipFile(backupFile).use { zip ->\n            val entries = zip.entries().toList().map { it.name }\n            assertTrue(entries.any { it.contains(\"kenko_database\") })\n        }\n    }\n\n    @Test\n    @Ignore(\"Don't know how to restart app so we can check if data was preserved\")\n    fun backupAndRestore_preservesData() = runTest {\n        // Create some test data\n        val planId = planRepo.createPlan(\"backup_test_plan\")\n        val exercises = (1..3).mapNotNull { exerciseRepo.get(it) }\n        exercises.forEach {\n            planRepo.addItem(\n                PlanItem(\n                    dayOfWeek = DayOfWeek(Random.nextInt(1, 5)),\n                    exercise = it,\n                    planId = planId,\n                ),\n            )\n        }\n        planRepo.setCurrent(planId)\n\n        val sessionId = sessionRepo.getSessionIdOrCreate(localDate)\n        val sets = (1..5).map {\n            Set(\n                repsOrDuration = 12,\n                weight = 50F,\n                type = SetType.Standard,\n                exercise = exercises.first(),\n                rir = RepsInReserve(2),\n            )\n        }\n        sets.forEach { sessionRepo.addSet(sessionId, it) }\n\n        // Get counts before backup\n        val exerciseCountBefore = exerciseRepo.stream.first().size\n        val planItemsBefore = planRepo.getPlanItems(planId).size\n        val setCountBefore = sessionRepo.getSets(sessionId).size\n\n        // Create backup\n        val backupFile = File(backupDir, \"data_backup.zip\")\n        val backupResult = backupManager.createBackup(backupFile.toUri())\n        assertIs<BackupResult.Success>(backupResult)\n\n        // Restore backup\n        val restoreResult = backupManager.restoreBackup(backupFile.toUri())\n        assertIs<BackupResult.Success>(restoreResult)\n\n        // Verify data is preserved\n        val exerciseCountAfter = exerciseRepo.stream.first().size\n        assertEquals(exerciseCountBefore, exerciseCountAfter)\n    }\n\n    @Test\n    fun restoreBackup_withInvalidFile_returnsError() = runTest {\n        val invalidFile = File(backupDir, \"invalid.zip\")\n        invalidFile.writeText(\"not a zip file\")\n\n        val result = backupManager.restoreBackup(invalidFile.toUri())\n\n        assertIs<BackupResult.Error>(result)\n    }\n\n    @Test\n    fun restoreBackup_withNonExistentFile_returnsError() = runTest {\n        val nonExistentFile = File(backupDir, \"does_not_exist.zip\")\n\n        val result = backupManager.restoreBackup(nonExistentFile.toUri())\n\n        assertIs<BackupResult.Error>(result)\n    }\n\n    @Test\n    fun createBackup_withInvalidUri_returnsError() = runTest {\n        val invalidUri = \"content://invalid/path\".toUri()\n\n        val result = backupManager.createBackup(invalidUri)\n\n        assertIs<BackupResult.Error>(result)\n    }\n}\n"
  },
  {
    "path": "app/src/androidTest/kotlin/com/looker/kenko/KenkoTestRunner.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko\n\nimport android.app.Application\nimport android.content.Context\nimport androidx.test.runner.AndroidJUnitRunner\nimport dagger.hilt.android.testing.HiltTestApplication\nimport kotlin.math.pow\nimport kotlin.math.sqrt\n\nclass KenkoTestRunner : AndroidJUnitRunner() {\n    override fun newApplication(\n        cl: ClassLoader,\n        appName: String,\n        context: Context,\n    ): Application {\n        return super.newApplication(\n            cl,\n            HiltTestApplication::class.java.name,\n            context,\n        )\n    }\n}\n\ninternal inline fun benchmark(\n    repetition: Int,\n    extraMessage: String? = null,\n    block: () -> Long,\n): String {\n    if (extraMessage != null) {\n        println(\"=\".repeat(50))\n        println(extraMessage)\n        println(\"=\".repeat(50))\n    }\n    val times = DoubleArray(repetition)\n    repeat(repetition) { iteration ->\n        System.gc()\n        System.runFinalization()\n        times[iteration] = block().toDouble()\n    }\n    val meanAndDeviation = times.culledMeanAndDeviation()\n    return buildString {\n        append(\"=\".repeat(50))\n        append(\"\\n\")\n        append(times.joinToString(\" | \"))\n        append(\"\\n\")\n        append(\"${meanAndDeviation.first} ms ± ${meanAndDeviation.second.toFloat()} ms\")\n        append(\"\\n\")\n        append(\"=\".repeat(50))\n        append(\"\\n\")\n    }\n}\n\nprivate fun DoubleArray.culledMeanAndDeviation(): Pair<Double, Double> {\n    sort()\n    return meanAndDeviation()\n}\n\nprivate fun DoubleArray.meanAndDeviation(): Pair<Double, Double> {\n    val mean = average()\n    return mean to sqrt(fold(0.0) { acc, value -> acc + (value - mean).pow(2) } / size)\n}\n"
  },
  {
    "path": "app/src/androidTest/kotlin/com/looker/kenko/RepositoryTest.kt",
    "content": "/*\n * Copyright (C) 2025. LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko\n\nimport androidx.test.ext.junit.runners.AndroidJUnit4\nimport com.looker.kenko.data.local.model.SetType\nimport com.looker.kenko.data.model.PlanItem\nimport com.looker.kenko.data.model.RepsInReserve\nimport com.looker.kenko.data.model.Set\nimport com.looker.kenko.data.model.localDate\nimport com.looker.kenko.data.repository.ExerciseRepo\nimport com.looker.kenko.data.repository.PlanRepo\nimport com.looker.kenko.data.repository.SessionRepo\nimport dagger.hilt.android.testing.HiltAndroidRule\nimport dagger.hilt.android.testing.HiltAndroidTest\nimport javax.inject.Inject\nimport kotlin.random.Random\nimport kotlin.test.assertEquals\nimport kotlin.test.assertFails\nimport kotlin.test.assertNotNull\nimport kotlinx.coroutines.flow.first\nimport kotlinx.coroutines.test.runTest\nimport kotlinx.datetime.DayOfWeek\nimport org.junit.Before\nimport org.junit.Rule\nimport org.junit.Test\nimport org.junit.runner.RunWith\n\n@HiltAndroidTest\n@RunWith(AndroidJUnit4::class)\nclass RepositoryTest {\n\n    @get:Rule\n    val hiltRule = HiltAndroidRule(this)\n\n    @Inject\n    lateinit var sessionRepo: SessionRepo\n\n    @Inject\n    lateinit var planRepo: PlanRepo\n\n    @Inject\n    lateinit var exerciseRepo: ExerciseRepo\n\n    @Before\n    fun setup() {\n        hiltRule.inject()\n    }\n\n    @Test\n    fun checkPlanDeletion() = runTest {\n        val planId = planRepo.createPlan(\"test\")\n        val exercises = (1..10).map { exerciseRepo.get(it)!! }\n        exercises.forEach {\n            planRepo.addItem(\n                PlanItem(\n                    dayOfWeek = DayOfWeek(Random.nextInt(1, 5)),\n                    exercise = it,\n                    planId = planId,\n                ),\n            )\n        }\n        val planItems = planRepo.getPlanItems(planId)\n        assertEquals(10, planItems.size)\n        planRepo.setCurrent(planId)\n        val createdSessionId = sessionRepo.getSessionIdOrCreate(localDate)\n        val stream = sessionRepo.streamByDate(localDate)\n        assertNotNull(stream.first())\n        val sessionId = stream.first()!!.id!!\n        val sets = (1..24).map {\n            Set(\n                repsOrDuration = 12,\n                weight = 12F,\n                type = SetType.entries.random(),\n                exercise = exercises.random(),\n                rir = RepsInReserve(2)\n            )\n        }\n        sets.forEach { sessionRepo.addSet(createdSessionId, it) }\n        assertEquals(24, sessionRepo.getSets(sessionId).size)\n        val set = sessionRepo.getSets(sessionId).first()\n        sessionRepo.removeSet(set.id!!)\n        assertEquals(23, sessionRepo.getSets(sessionId).size)\n        val randomPerformedExercise = sets.random().exercise\n        val setsForRandomExercise = sets.filter { it.exercise.id == randomPerformedExercise.id }\n        exerciseRepo.remove(randomPerformedExercise.id!!)\n        assertEquals(23 - setsForRandomExercise.size, sessionRepo.getSets(sessionId).size)\n        planRepo.deletePlan(planId)\n        assertEquals(23 - setsForRandomExercise.size, sessionRepo.getSets(sessionId).size)\n        assertFails {\n            planRepo.addItem(\n                PlanItem(\n                    dayOfWeek = DayOfWeek(Random.nextInt(1, 5)),\n                    exercise = randomPerformedExercise,\n                    planId = planId,\n                ),\n            )\n        }\n        assertEquals(null, stream.first()!!.planId)\n        val planItemsAfter = planRepo.getPlanItems(planId)\n        assertEquals(0, planItemsAfter.size)\n    }\n}\n"
  },
  {
    "path": "app/src/androidTest/kotlin/com/looker/kenko/RoomDatabaseTesting.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko\n\nimport androidx.room.Room\nimport androidx.room.testing.MigrationTestHelper\nimport androidx.sqlite.db.SupportSQLiteDatabase\nimport androidx.test.ext.junit.runners.AndroidJUnit4\nimport androidx.test.platform.app.InstrumentationRegistry\nimport com.looker.kenko.data.local.KenkoDatabase\nimport com.looker.kenko.data.local.MIGRATION_1_2\nimport com.looker.kenko.data.local.dao.ExerciseDao\nimport com.looker.kenko.data.local.dao.PlanDao\nimport com.looker.kenko.data.local.model.ExerciseEntity\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.utils.EpochDays\nimport dagger.hilt.android.testing.HiltAndroidRule\nimport dagger.hilt.android.testing.HiltAndroidTest\nimport kotlinx.coroutines.flow.first\nimport kotlinx.coroutines.test.runTest\nimport org.junit.Before\nimport org.junit.Rule\nimport org.junit.Test\nimport org.junit.runner.RunWith\nimport javax.inject.Inject\nimport kotlin.test.assertContains\nimport kotlin.test.assertContentEquals\nimport kotlin.test.assertEquals\nimport kotlin.test.assertNotNull\nimport kotlin.test.assertTrue\n\n@HiltAndroidTest\n@RunWith(AndroidJUnit4::class)\nclass RoomDatabaseTesting {\n\n    private val DB_NAME = \"test.db\"\n\n    @get:Rule\n    val helper: MigrationTestHelper = MigrationTestHelper(\n        InstrumentationRegistry.getInstrumentation(),\n        KenkoDatabase::class.java,\n    )\n\n    @get:Rule\n    val hiltRule = HiltAndroidRule(this)\n\n    @Inject\n    lateinit var exerciseDao: ExerciseDao\n\n    @Inject\n    lateinit var planDao: PlanDao\n\n    @Before\n    fun setup() {\n        hiltRule.inject()\n    }\n\n    @Test\n    fun schemaMigration1To2() = runTest {\n        val db = helper.createDatabase(DB_NAME, 1)\n        db.addV1Data()\n        helper.runMigrationsAndValidate(DB_NAME, 2, true, MIGRATION_1_2)\n    }\n\n    @Test\n    fun dataMigration1To2() = runTest {\n        val db = helper.createDatabase(DB_NAME, 1)\n        db.addV1Data()\n        val updatedDb = Room.databaseBuilder(\n            InstrumentationRegistry.getInstrumentation().targetContext,\n            KenkoDatabase::class.java,\n            DB_NAME,\n        ).addMigrations(MIGRATION_1_2).build()\n        val exercises = updatedDb.exerciseDao().stream().first()\n        val planHistory = updatedDb.historyDao().getCurrent()\n        assertNotNull(planHistory)\n        assertNotNull(planHistory.planId)\n        val fullHistory = updatedDb.historyDao().getAll()\n        val session = updatedDb.sessionDao().getSession(EpochDays(412))\n        val emptySession = updatedDb.sessionDao().getSession(EpochDays(413))\n        val currentPlan = updatedDb.planDao().getPlanById(planHistory.planId)\n        val currentPlanItems = updatedDb.planDao().getPlanItemsByPlanId(planHistory.planId)\n        assertNotNull(session)\n        assertNotNull(emptySession)\n        assertNotNull(currentPlan)\n        assertEquals(session.sets.size, 6)\n        assertContentEquals(\n            session.sets.map {\n                updatedDb.exerciseDao().get(it.exerciseId)?.name ?: \"\"\n            },\n            listOf(\"Pullups\", \"Rows\", \"Press\", \"Shrugs\", \"Curls\", \"Plank\"),\n        )\n        assertEquals(emptySession.sets.size, 0)\n        assertEquals(exercises.size, 6)\n        assertTrue(currentPlanItems.all { it.exerciseId != 0 })\n        assertContains(\n            exercises,\n            ExerciseEntity(\"Pullups\", MuscleGroups.Lats, isIsometric = false, id = 1),\n        )\n        assertEquals(planHistory.planId, 1)\n        assertEquals(fullHistory.size, 1)\n        println(\"Current plan id: ${planHistory.planId}\")\n        println(\"Full history: $fullHistory\")\n        println(\"Current Plan: $currentPlan\")\n    }\n\n    @Test\n    fun prepopulatedData() = runTest {\n        val plans = planDao.plansFlow().first()\n        assertTrue(plans.isNotEmpty())\n        assertTrue(exerciseDao.stream().first().isNotEmpty())\n        val plan = plans.first()\n        assertTrue(planDao.getPlanItemsByPlanId(plan.id).isNotEmpty())\n    }\n\n    private fun SupportSQLiteDatabase.addV1Data() = use { db ->\n        val setJson = arrayOf(\n            \"{\\\"repsOrDuration\\\":62,\\\"weight\\\":44.85,\\\"type\\\":\\\"Standard\\\",\\\"exercise\\\":{\\\"name\\\":\\\"Pullups\\\",\\\"target\\\":\\\"Lats\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}}\",\n            \"{\\\"repsOrDuration\\\":12,\\\"weight\\\":22.84,\\\"type\\\":\\\"Standard\\\",\\\"exercise\\\":{\\\"name\\\":\\\"Rows\\\",\\\"target\\\":\\\"UpperBack\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}}\",\n            \"{\\\"repsOrDuration\\\":37,\\\"weight\\\":68.43,\\\"type\\\":\\\"Standard\\\",\\\"exercise\\\":{\\\"name\\\":\\\"Press\\\",\\\"target\\\":\\\"Chest\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}}\",\n            \"{\\\"repsOrDuration\\\":90,\\\"weight\\\":67.92,\\\"type\\\":\\\"Standard\\\",\\\"exercise\\\":{\\\"name\\\":\\\"Shrugs\\\",\\\"target\\\":\\\"Traps\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}}\",\n            \"{\\\"repsOrDuration\\\":86,\\\"weight\\\":63.94,\\\"type\\\":\\\"Standard\\\",\\\"exercise\\\":{\\\"name\\\":\\\"Curls\\\",\\\"target\\\":\\\"Biceps\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}}\",\n            \"{\\\"repsOrDuration\\\":86,\\\"weight\\\":63.94,\\\"type\\\":\\\"Standard\\\",\\\"exercise\\\":{\\\"name\\\":\\\"Plank\\\",\\\"target\\\":\\\"Core\\\",\\\"reference\\\":null,\\\"isIsometric\\\":true}}\",\n        ).joinToString(\",\")\n        db.execSQL(\"\"\"INSERT INTO Exercise (name, target, isIsometric) VALUES('Pullups', 'Lats', 0)\"\"\")\n        db.execSQL(\"\"\"INSERT INTO Exercise (name, target, isIsometric) VALUES('Rows', 'UpperBack', 0)\"\"\")\n        db.execSQL(\"\"\"INSERT INTO Exercise (name, target, isIsometric) VALUES('Press', 'Chest', 0)\"\"\")\n        db.execSQL(\"\"\"INSERT INTO Exercise (name, target, isIsometric) VALUES('Shrugs', 'Traps', 0)\"\"\")\n        db.execSQL(\"\"\"INSERT INTO Exercise (name, target, isIsometric) VALUES('Curls', 'Biceps', 0)\"\"\")\n        db.execSQL(\"\"\"INSERT INTO Exercise (name, target, isIsometric) VALUES('Plank', 'Core', 1)\"\"\")\n        val plan =\n            \"{\\\"MONDAY\\\":[{\\\"name\\\":\\\"Pullups\\\",\\\"target\\\":\\\"Lats\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}],\\\"TUESDAY\\\":[{\\\"name\\\":\\\"Rows\\\",\\\"target\\\":\\\"UpperBack\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}],\\\"WEDNESDAY\\\":[{\\\"name\\\":\\\"Press\\\",\\\"target\\\":\\\"Chest\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}],\\\"THURSDAY\\\":[{\\\"name\\\":\\\"Shrugs\\\",\\\"target\\\":\\\"Traps\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}],\\\"FRIDAY\\\":[{\\\"name\\\":\\\"Curls\\\",\\\"target\\\":\\\"Biceps\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}],\\\"SUNDAY\\\":[{\\\"name\\\":\\\"Plank\\\",\\\"target\\\":\\\"Core\\\",\\\"reference\\\":null,\\\"isIsometric\\\":true}]}\"\n        val inactivePlan =\n            \"{\\\"MONDAY\\\":[{\\\"name\\\":\\\"Pullups\\\",\\\"target\\\":\\\"Lats\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}],\\\"TUESDAY\\\":[{\\\"name\\\":\\\"Rows\\\",\\\"target\\\":\\\"UpperBack\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}],\\\"WEDNESDAY\\\":[{\\\"name\\\":\\\"Press\\\",\\\"target\\\":\\\"Chest\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}],\\\"THURSDAY\\\":[{\\\"name\\\":\\\"Shrugs\\\",\\\"target\\\":\\\"Traps\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}],\\\"FRIDAY\\\":[{\\\"name\\\":\\\"Curls\\\",\\\"target\\\":\\\"Biceps\\\",\\\"reference\\\":null,\\\"isIsometric\\\":false}],\\\"SUNDAY\\\":[{\\\"name\\\":\\\"Plank\\\",\\\"target\\\":\\\"Core\\\",\\\"reference\\\":null,\\\"isIsometric\\\":true}]}\"\n        db.execSQL(\"\"\"INSERT INTO plan_table (name, exercisesPerDay, isActive) VALUES ('PPL', '$plan', 1)\"\"\")\n        db.execSQL(\"\"\"INSERT INTO plan_table (name, exercisesPerDay, isActive) VALUES ('SAME', '$inactivePlan', 0)\"\"\")\n        db.execSQL(\"\"\"INSERT INTO Session (date, sets) VALUES (412, '[$setJson]')\"\"\")\n        db.execSQL(\"\"\"INSERT INTO Session (date, sets) VALUES (413, '[]')\"\"\")\n    }\n}\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2025. LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\">\n\n    <application\n        android:name=\".KenkoApp\"\n        android:allowBackup=\"true\"\n        android:dataExtractionRules=\"@xml/data_extraction_rules\"\n        android:fullBackupContent=\"@xml/backup_rules\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:roundIcon=\"@mipmap/ic_launcher_round\"\n        android:enableOnBackInvokedCallback=\"true\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/Theme.Kenko\"\n        tools:targetApi=\"33\">\n        <activity\n            android:name=\".ui.MainActivity\"\n            android:exported=\"true\"\n            android:theme=\"@style/Theme.Kenko\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n\n        <!-- Disable default WorkManager initializer to use Hilt -->\n        <provider\n            android:name=\"androidx.startup.InitializationProvider\"\n            android:authorities=\"${applicationId}.androidx-startup\"\n            android:exported=\"false\"\n            tools:node=\"merge\">\n            <meta-data\n                android:name=\"androidx.work.WorkManagerInitializer\"\n                android:value=\"androidx.startup\"\n                tools:node=\"remove\" />\n        </provider>\n    </application>\n</manifest>\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/KenkoApp.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko\n\nimport android.app.Application\nimport androidx.hilt.work.HiltWorkerFactory\nimport androidx.work.Configuration\nimport dagger.hilt.android.HiltAndroidApp\nimport javax.inject.Inject\n\n@HiltAndroidApp\nclass KenkoApp : Application(), Configuration.Provider {\n\n    @Inject\n    lateinit var workerFactory: HiltWorkerFactory\n\n    override val workManagerConfiguration: Configuration\n        get() = Configuration.Builder()\n            .setWorkerFactory(workerFactory)\n            .build()\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/KenkoUriHandler.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data\n\nimport android.content.ActivityNotFoundException\nimport android.content.Context\nimport android.content.Intent\nimport androidx.compose.ui.platform.UriHandler\nimport androidx.core.net.toUri\nimport com.looker.kenko.R\n\nclass KenkoUriHandler(private val context: Context) : UriHandler {\n    override fun openUri(uri: String) {\n        try {\n            val intent = Intent(\n                Intent.ACTION_VIEW,\n                uri.toUri()\n            ).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)\n            context.startActivity(intent)\n        } catch (_: ActivityNotFoundException) {\n            error(context.getString(R.string.error_invalid_url))\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/StringHandler.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data\n\nimport android.content.Context\nimport android.content.res.Resources\n\nclass StringHandler(context: Context) {\n\n    private val resources: Resources = context.resources\n\n    fun getString(id: Int): String {\n        resources.configuration\n        return resources.getString(id)\n    }\n\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/backup/BackupManager.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.backup\n\nimport android.net.Uri\nimport com.looker.kenko.data.model.settings.BackupInterval\n\ninterface BackupManager {\n\n    suspend fun createBackup(destinationUri: Uri): BackupResult\n\n    suspend fun restoreBackup(sourceUri: Uri): BackupResult\n\n    fun schedulePeriodicBackup(interval: BackupInterval, destinationUri: Uri)\n\n    fun cancelScheduledBackup()\n\n}\n\nsealed interface BackupResult {\n    data object Success : BackupResult\n    data class Error(val message: String, val exception: Throwable? = null) : BackupResult\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/backup/BackupManagerImpl.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.backup\n\nimport android.content.Context\nimport android.net.Uri\nimport androidx.documentfile.provider.DocumentFile\nimport androidx.work.Constraints\nimport androidx.work.ExistingPeriodicWorkPolicy\nimport androidx.work.PeriodicWorkRequestBuilder\nimport androidx.work.WorkManager\nimport androidx.work.workDataOf\nimport com.looker.kenko.data.local.KenkoDatabase\nimport com.looker.kenko.data.model.localDate\nimport com.looker.kenko.data.model.settings.BackupInterval\nimport com.looker.kenko.di.IoDispatcher\nimport com.looker.kenko.utils.DateFormat\nimport dagger.hilt.android.qualifiers.ApplicationContext\nimport java.io.File\nimport java.util.concurrent.TimeUnit\nimport java.util.zip.ZipEntry\nimport java.util.zip.ZipInputStream\nimport java.util.zip.ZipOutputStream\nimport javax.inject.Inject\nimport kotlinx.coroutines.CoroutineDispatcher\nimport kotlinx.coroutines.withContext\nimport kotlinx.datetime.LocalDate\n\nclass BackupManagerImpl @Inject constructor(\n    @param:ApplicationContext private val context: Context,\n    @param:IoDispatcher private val dispatcher: CoroutineDispatcher,\n    private val database: KenkoDatabase,\n) : BackupManager {\n\n    private val databaseName = \"kenko_database\"\n    private val datastoreFileName = \"settings.preferences_pb\"\n\n    override suspend fun createBackup(destinationUri: Uri): BackupResult =\n        withContext(dispatcher) {\n            try {\n                // Checkpoint database to ensure WAL is flushed\n                database.query(\"PRAGMA wal_checkpoint(TRUNCATE)\", null).close()\n\n                val tempZipFile = File(context.cacheDir, \"temp_backup.zip\")\n\n                ZipOutputStream(tempZipFile.outputStream()).use { zipOut ->\n                    val dbFiles = databaseFiles()\n                    if (dbFiles.isNotEmpty()) dbFiles.forEach { zipOut.addEntry(it.name, it) }\n\n                    val datastoreFile = datastoreFile()\n                    if (datastoreFile.exists()) zipOut.addEntry(datastoreFile.name, datastoreFile)\n                }\n\n                tempZipFile.copyTo(destinationUri)\n                tempZipFile.delete()\n\n                BackupResult.Success\n            } catch (e: Exception) {\n                e.printStackTrace()\n                BackupResult.Error(\"Failed to create backup: ${e.message}\", e)\n            }\n        }\n\n    override suspend fun restoreBackup(sourceUri: Uri): BackupResult =\n        withContext(dispatcher) {\n            try {\n                val tempDir = File(context.cacheDir, \"temp_restore\")\n                tempDir.mkdirs()\n\n                extractZipFromUri(sourceUri, tempDir)\n\n                val dbFile = File(tempDir, databaseName)\n                if (!dbFile.exists()) {\n                    tempDir.deleteRecursively()\n                    return@withContext BackupResult.Error(\"Invalid backup: database file not found\")\n                }\n\n                database.close()\n\n                replaceDatabaseFiles(tempDir)\n                replaceDatastoreFile(tempDir)\n                tempDir.deleteRecursively()\n\n                BackupResult.Success\n            } catch (e: Exception) {\n                BackupResult.Error(\"Failed to restore backup: ${e.message}\", e)\n            }\n        }\n\n    override fun schedulePeriodicBackup(interval: BackupInterval, destinationUri: Uri) {\n        if (interval == BackupInterval.Off) {\n            cancelScheduledBackup()\n            return\n        }\n\n        val workRequest = PeriodicWorkRequestBuilder<BackupWorker>(\n            interval.hours,\n            TimeUnit.HOURS,\n        ).setConstraints(\n            Constraints.Builder()\n                .setRequiresBatteryNotLow(true)\n                .build(),\n        ).setInputData(\n            workDataOf(BackupWorker.KEY_BACKUP_URI to destinationUri.toString()),\n        ).build()\n\n        WorkManager.getInstance(context).enqueueUniquePeriodicWork(\n            BACKUP_WORK_NAME,\n            ExistingPeriodicWorkPolicy.UPDATE,\n            workRequest,\n        )\n    }\n\n    override fun cancelScheduledBackup() {\n        WorkManager.getInstance(context).cancelUniqueWork(BACKUP_WORK_NAME)\n    }\n\n    private fun databaseFiles(): List<File> {\n        val dbPath = context.getDatabasePath(databaseName)\n        return listOf(\n            dbPath,\n            File(dbPath.path + \"-shm\"),\n            File(dbPath.path + \"-wal\"),\n        ).filter { it.exists() }\n    }\n\n    private fun datastoreFile(): File {\n        val datastoreDir = File(context.filesDir, \"datastore\")\n        return File(datastoreDir, datastoreFileName)\n    }\n\n    private fun ZipOutputStream.addEntry(name: String, file: File) {\n        putNextEntry(ZipEntry(name))\n        file.inputStream().use { it.copyTo(this) }\n        closeEntry()\n    }\n\n    private suspend fun File.copyTo(destinationUri: Uri) = withContext(dispatcher) {\n        if (destinationUri.scheme == \"file\") {\n            val destFile = File(destinationUri.path!!)\n            copyTo(destFile, overwrite = true)\n            return@withContext\n        }\n\n        val treeUri = destinationUri.toTreeUri()\n\n        val treeDoc = DocumentFile.fromTreeUri(context, treeUri)\n            ?: error(\"Cannot access directory: $treeUri\")\n\n        val fileName = backupFileName(localDate)\n        val backupFile = treeDoc.findFile(fileName)\n            ?: treeDoc.createFile(\"application/zip\", fileName)\n            ?: error(\"Cannot create backup file in: $treeUri\")\n\n        context.contentResolver.openOutputStream(backupFile.uri)?.use { output ->\n            inputStream().use { input ->\n                input.copyTo(output)\n            }\n        } ?: error(\"Cannot open output stream for URI: ${backupFile.uri}\")\n    }\n\n    /**\n     * Extracts the tree URI from a potentially malformed URI that may have a filename appended.\n     * Tree URIs have the pattern: content://authority/tree/treeId\n     * If a filename was appended (e.g., /kenko_backup.zip), strip it.\n     */\n    private fun Uri.toTreeUri(): Uri {\n        val uriString = toString()\n        val treeIndex = uriString.indexOf(\"/tree/\")\n        if (treeIndex == -1) return this\n\n        val treeStart = treeIndex + \"/tree/\".length\n        val nextSlash = uriString.indexOf('/', treeStart)\n\n        return if (nextSlash != -1) {\n            Uri.parse(uriString.take(nextSlash))\n        } else {\n            this\n        }\n    }\n\n    private fun extractZipFromUri(sourceUri: Uri, destDir: File) {\n        val inputStream = when (sourceUri.scheme) {\n            \"file\" -> File(sourceUri.path!!).inputStream()\n            else -> context.contentResolver.openInputStream(sourceUri)\n                ?: error(\"Cannot open input stream for URI: $sourceUri\")\n        }\n\n        ZipInputStream(inputStream).use { zipIn ->\n            var entry = zipIn.nextEntry\n            while (entry != null) {\n                val file = File(destDir, entry.name)\n                if (!entry.isDirectory) {\n                    file.parentFile?.mkdirs()\n                    file.outputStream().use { output ->\n                        zipIn.copyTo(output)\n                    }\n                }\n                zipIn.closeEntry()\n                entry = zipIn.nextEntry\n            }\n        }\n    }\n\n    private fun replaceDatabaseFiles(sourceDir: File) {\n        val dbPath = context.getDatabasePath(databaseName)\n        val dbFiles = listOf(\n            databaseName,\n            \"$databaseName-shm\",\n            \"$databaseName-wal\",\n        )\n\n        dbFiles.forEach { fileName ->\n            val sourceFile = File(sourceDir, fileName)\n            val destFile = if (fileName == databaseName) {\n                dbPath\n            } else {\n                File(dbPath.path.replace(databaseName, fileName))\n            }\n\n            if (sourceFile.exists()) {\n                destFile.parentFile?.mkdirs()\n                sourceFile.copyTo(destFile, overwrite = true)\n            } else {\n                destFile.delete()\n            }\n        }\n    }\n\n    private fun replaceDatastoreFile(sourceDir: File) {\n        val sourceFile = File(sourceDir, datastoreFileName)\n        val datastoreDir = File(context.filesDir, \"datastore\")\n        val destFile = File(datastoreDir, datastoreFileName)\n\n        if (sourceFile.exists()) {\n            datastoreDir.mkdirs()\n            sourceFile.copyTo(destFile, overwrite = true)\n        }\n    }\n\n    fun backupFileName(date: LocalDate): String = buildString {\n        append(\"kenko_backup_\")\n        append(DateFormat.BackupName.format(date))\n    }\n\n    companion object {\n        const val BACKUP_WORK_NAME = \"kenko_backup_work\"\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/backup/BackupWorker.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.backup\n\nimport android.content.Context\nimport androidx.core.net.toUri\nimport androidx.hilt.work.HiltWorker\nimport androidx.work.CoroutineWorker\nimport androidx.work.WorkerParameters\nimport androidx.work.workDataOf\nimport com.looker.kenko.data.repository.SettingsRepo\nimport dagger.assisted.Assisted\nimport dagger.assisted.AssistedInject\nimport kotlin.time.Clock\n\n@HiltWorker\nclass BackupWorker @AssistedInject constructor(\n    @Assisted context: Context,\n    @Assisted params: WorkerParameters,\n    private val backupManager: BackupManager,\n    private val settingsRepo: SettingsRepo,\n) : CoroutineWorker(context, params) {\n\n    override suspend fun doWork(): Result {\n        val backupUri = inputData.getString(KEY_BACKUP_URI)?.toUri() ?: return Result.failure()\n\n        return when (val result = backupManager.createBackup(backupUri)) {\n            is BackupResult.Success -> {\n                settingsRepo.setLastBackupTime(Clock.System.now())\n                Result.success(workDataOf(KEY_BACKED_UP_URI to backupUri.toString()))\n            }\n\n            is BackupResult.Error -> Result.retry()\n        }\n    }\n\n    companion object {\n        const val KEY_BACKUP_URI = \"backup_uri\"\n        const val KEY_BACKED_UP_URI = \"backup_uri\"\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/KenkoDatabase.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local\n\nimport android.content.Context\nimport androidx.room.Database\nimport androidx.room.Room\nimport androidx.room.RoomDatabase\nimport com.looker.kenko.data.local.dao.ExerciseDao\nimport com.looker.kenko.data.local.dao.PerformanceDao\nimport com.looker.kenko.data.local.dao.PlanDao\nimport com.looker.kenko.data.local.dao.PlanHistoryDao\nimport com.looker.kenko.data.local.dao.SessionDao\nimport com.looker.kenko.data.local.dao.SetsDao\nimport com.looker.kenko.data.local.model.ExerciseEntity\nimport com.looker.kenko.data.local.model.PlanDayEntity\nimport com.looker.kenko.data.local.model.PlanEntity\nimport com.looker.kenko.data.local.model.PlanHistoryEntity\nimport com.looker.kenko.data.local.model.SessionDataEntity\nimport com.looker.kenko.data.local.model.SetEntity\nimport com.looker.kenko.data.local.model.SetTypeEntity\n\n@Database(\n    version = 3,\n    entities = [\n        SessionDataEntity::class,\n        ExerciseEntity::class,\n        PlanEntity::class,\n        PlanHistoryEntity::class,\n        PlanDayEntity::class,\n        SetEntity::class,\n        SetTypeEntity::class,\n    ],\n)\nabstract class KenkoDatabase : RoomDatabase() {\n    abstract fun sessionDao(): SessionDao\n    abstract fun exerciseDao(): ExerciseDao\n    abstract fun planDao(): PlanDao\n    abstract fun setsDao(): SetsDao\n    abstract fun historyDao(): PlanHistoryDao\n    abstract fun performanceDao(): PerformanceDao\n}\n\nfun kenkoDatabase(context: Context) = Room\n    .databaseBuilder(\n        context = context,\n        klass = KenkoDatabase::class.java,\n        name = \"kenko_database\",\n    )\n    .createFromAsset(\"kenko.db\")\n    .addMigrations(\n        MIGRATION_1_2,\n        MIGRATION_2_3,\n    )\n    .build()\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/Migrations.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local\n\nimport android.database.Cursor\nimport androidx.room.migration.Migration\nimport androidx.sqlite.db.SupportSQLiteDatabase\nimport androidx.sqlite.db.SupportSQLiteStatement\nimport com.looker.kenko.data.local.model.ExerciseEntity\nimport com.looker.kenko.data.model.Set\nimport com.looker.kenko.data.model.localDate\nimport kotlinx.datetime.DayOfWeek\nimport kotlinx.datetime.isoDayNumber\nimport kotlinx.datetime.serializers.DayOfWeekSerializer\nimport kotlinx.serialization.builtins.ListSerializer\nimport kotlinx.serialization.builtins.MapSerializer\nimport kotlinx.serialization.json.Json\n\nval MIGRATION_1_2 = object : Migration(1, 2) {\n    override fun migrate(db: SupportSQLiteDatabase) {\n        db.migrateExercises()\n        db.migratePlans()\n        db.migrateSessions()\n    }\n\n    private fun SupportSQLiteDatabase.migratePlans() {\n        execSQL(\n            \"\"\"\n            CREATE TABLE plans (\n            `name` TEXT NOT NULL,\n            `description` TEXT DEFAULT NULL,\n            `difficulty` TEXT DEFAULT NULL,\n            `focus` TEXT DEFAULT NULL,\n            `equipment` TEXT DEFAULT NULL,\n            `time` TEXT DEFAULT NULL,\n            `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT)\n            \"\"\".trimIndent(),\n        )\n        execSQL(\n            \"\"\"\n            CREATE TABLE plan_day (\n            `planId` INTEGER NOT NULL CONSTRAINT `fk_sessions_plans_id` REFERENCES `plans` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE,\n            `exerciseId` INTEGER NOT NULL CONSTRAINT `fk_sets_exercises_id` REFERENCES `exercises` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE,\n            `dayOfWeek` INTEGER NOT NULL,\n            `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT)\n            \"\"\".trimIndent(),\n        )\n        createIndex(\"plan_day\", \"planId\", \"exerciseId\")\n        execSQL(\n            \"\"\"\n            CREATE TABLE plan_history (\n            `planId` INTEGER CONSTRAINT `fk_sessions_plans_id` REFERENCES `plans` (`id`) ON UPDATE NO ACTION ON DELETE SET NULL,\n            `start` INTEGER NOT NULL,\n            `end` INTEGER DEFAULT NULL,\n            `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT)\n            \"\"\".trimIndent(),\n        )\n        createIndex(\"plan_history\", \"planId\", \"start\", \"end\")\n        execSQL(\n            \"\"\"\n            INSERT INTO `plans` (`name`)\n            SELECT `name` FROM `plan_table`\n            \"\"\".trimIndent(),\n        )\n        val planHistorySelectStatement = query(\"SELECT `id`, `isActive` FROM `plan_table`\")\n        val planHistoryInsertStatement = compileStatement(\n            \"\"\"\n            INSERT INTO `plan_history` (`planId`, `start`)\n            VALUES (?, ?)\n            \"\"\".trimIndent(),\n        )\n        val selectStatement = query(\"SELECT `id`, `exercisesPerDay` FROM `plan_table`\")\n        val insertStatement = compileStatement(\n            \"\"\"\n            INSERT INTO `plan_day` (`dayOfWeek`, `planId`, `exerciseId`)\n            VALUES (?, ?, ?)\n            \"\"\".trimIndent(),\n        )\n        planHistorySelectStatement.toPlanHistory(planHistoryInsertStatement)\n        selectStatement.toPlanDay(this, insertStatement)\n        execSQL(\"DROP TABLE `plan_table`\")\n    }\n\n    private fun SupportSQLiteDatabase.migrateExercises() {\n        execSQL(\n            \"\"\"\n            CREATE TABLE exercises (\n            `name` TEXT NOT NULL,\n            `target` TEXT NOT NULL,\n            `reference` TEXT,\n            `isIsometric` INTEGER NOT NULL,\n            `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT)\n            \"\"\".trimIndent(),\n        )\n        execSQL(\n            \"\"\"\n            INSERT INTO `exercises` (`name`,`target`,`reference`,`isIsometric`)\n            SELECT `name`,`target`,`reference`,`isIsometric` FROM `Exercise`\n            \"\"\".trimIndent(),\n        )\n        execSQL(\"DROP TABLE `Exercise`\")\n    }\n\n    private fun SupportSQLiteDatabase.migrateSessions() {\n        /**\n         * This `id` can be treated as session id because previous session entity\n         * didn't have any id and creating new id per session is like\n         * creating new session id\n         */\n        execSQL(\n            \"\"\"\n            CREATE TABLE IF NOT EXISTS _tmp_session (\n            `sets` TEXT NOT NULL,\n            `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT)\n            \"\"\".trimIndent(),\n        )\n        execSQL(\n            \"\"\"\n            INSERT INTO `_tmp_session` (`sets`)\n            SELECT (`sets`)\n            FROM `Session`\n            \"\"\".trimIndent(),\n        )\n        execSQL(\n            \"\"\"\n            CREATE TABLE IF NOT EXISTS sessions (\n            `date` INTEGER NOT NULL,\n            `planId` INTEGER CONSTRAINT `fk_sessions_plans_id` REFERENCES `plans` (`id`) ON UPDATE NO ACTION ON DELETE SET NULL,\n            `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT)\n            \"\"\".trimIndent(),\n        )\n        createIndex(\"sessions\", \"planId\")\n        execSQL(\n            \"\"\"\n            INSERT INTO `sessions` (`date`, `planId`)\n            SELECT Session.`date`, plan_history.`planId`\n            FROM `Session`\n            INNER JOIN `plan_history`\n            ON (plan_history.`end` IS NULL\n            AND plan_history.`start` IS NOT NULL)\n            \"\"\".trimIndent(),\n        )\n        execSQL(\n            \"\"\"\n            CREATE TABLE IF NOT EXISTS set_type (\n            `type` TEXT NOT NULL PRIMARY KEY,\n            `modifier` REAL NOT NULL)\n            \"\"\".trimIndent()\n        )\n        execSQL(\n            \"\"\"\n            CREATE TABLE IF NOT EXISTS sets (\n            `reps` INTEGER NOT NULL,\n            `exerciseId` INTEGER NOT NULL CONSTRAINT `fk_sets_exercises_id` REFERENCES `exercises` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE,\n            `weight` REAL NOT NULL,\n            `sessionId` INTEGER NOT NULL CONSTRAINT `fk_sets_sessions_id` REFERENCES `sessions` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE,\n            `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,\n            `type` TEXT NOT NULL,\n            `order` INTEGER NOT NULL)\n            \"\"\".trimIndent(),\n        )\n        createIndex(\"sets\", \"sessionId\", \"exerciseId\")\n        val selectStatement = query(\"SELECT `id`, `sets` FROM `_tmp_session`\")\n        val insertStatement = compileStatement(\n            \"\"\"\n            INSERT INTO `sets` (`reps`, `weight`, `type`, `order`, `sessionId`, `exerciseId`)\n            VALUES (?, ?, ?, ?, ?, ?)\n            \"\"\".trimIndent(),\n        )\n        selectStatement.toSetEntity(this, insertStatement)\n        execSQL(\"DROP TABLE `Session`\")\n        execSQL(\"DROP TABLE `_tmp_session`\")\n    }\n\n    private fun Cursor.toPlanHistory(insert: SupportSQLiteStatement) {\n        if (moveToFirst()) {\n            val idIndex = getColumnIndex(\"id\")\n            val isActiveIndex = getColumnIndex(\"isActive\")\n            do {\n                val id = getInt(idIndex)\n                val isActive = getInt(isActiveIndex) == 1\n                if (isActive) insert.insertPlanHistory(id)\n            } while (moveToNext())\n        }\n    }\n\n    private fun Cursor.toPlanDay(db: SupportSQLiteDatabase, insert: SupportSQLiteStatement) {\n        if (moveToFirst()) {\n            val idIndex = getColumnIndex(\"id\")\n            val exerciseMapIndex = getColumnIndex(\"exercisesPerDay\")\n            do {\n                val id = getInt(idIndex)\n                val exerciseMapString = getString(exerciseMapIndex)\n                val exerciseMap = Json.decodeFromString(exerciseMapSerializer, exerciseMapString)\n                exerciseMap.forEach { (day, exercises) ->\n                    exercises.forEach { exercise ->\n                        insert.insertPlanDays(day, id, db.exerciseId(exercise.name))\n                    }\n                }\n            } while (moveToNext())\n        }\n    }\n\n    @Suppress(\"NOTHING_TO_INLINE\")\n    private inline fun SupportSQLiteStatement.insertPlanDays(\n        dayOfWeek: DayOfWeek,\n        planId: Int,\n        exerciseId: Int,\n    ) {\n        clearBindings()\n        bindLong(1, dayOfWeek.isoDayNumber.toLong())\n        bindLong(2, planId.toLong())\n        bindLong(3, exerciseId.toLong())\n        executeInsert()\n    }\n\n    private fun SupportSQLiteDatabase.exerciseId(name: String): Int {\n        val getId = query(\"SELECT id FROM exercises WHERE name = ?\", arrayOf(name))\n        getId.moveToFirst()\n        return getId.getInt(getId.getColumnIndexOrThrow(\"id\"))\n    }\n\n    private fun Cursor.toSetEntity(db: SupportSQLiteDatabase, insert: SupportSQLiteStatement) {\n        if (moveToFirst()) {\n            val idIndex = getColumnIndex(\"id\")\n            val setsIndex = getColumnIndex(\"sets\")\n            do {\n                val sessionId = getInt(idIndex)\n                val setsString = getString(setsIndex)\n                val sets = Json.decodeFromString(setsSerializer, setsString)\n                for (i in sets.indices) {\n                    insert.insertSet(db, sets[i], sessionId, i)\n                }\n            } while (moveToNext())\n        }\n    }\n\n    @Suppress(\"NOTHING_TO_INLINE\")\n    private inline fun SupportSQLiteStatement.insertSet(\n        db: SupportSQLiteDatabase,\n        set: Set,\n        sessionId: Int,\n        order: Int\n    ) {\n        clearBindings()\n        bindLong(1, set.repsOrDuration.toLong())\n        bindDouble(2, set.weight.toDouble())\n        bindString(3, set.type.name)\n        bindLong(4, order.toLong())\n        bindLong(5, sessionId.toLong())\n        val exerciseId = db.exerciseId(set.exercise.name)\n        bindLong(6, exerciseId.toLong())\n        executeInsert()\n    }\n\n    @Suppress(\"NOTHING_TO_INLINE\")\n    private inline fun SupportSQLiteStatement.insertPlanHistory(id: Int) {\n        clearBindings()\n        bindLong(1, id.toLong())\n        bindLong(2, localDate.toEpochDays().toLong())\n        executeInsert()\n    }\n\n    @Suppress(\"NOTHING_TO_INLINE\")\n    private inline fun SupportSQLiteDatabase.createIndex(\n        tableName: String,\n        vararg column: String,\n    ) {\n        val columns = column.joinToString(\"_\")\n        val columnInTable = column.joinToString(\",\") { \"`$it`\" }\n        execSQL(\n            \"\"\"\n            CREATE INDEX IF NOT EXISTS `index_${tableName}_$columns`\n            ON `$tableName` ($columnInTable)\n            \"\"\".trimIndent()\n        )\n    }\n\n    private val exerciseMapSerializer =\n        MapSerializer(DayOfWeekSerializer, ListSerializer(ExerciseEntity.serializer()))\n\n    private val setsSerializer = ListSerializer(Set.serializer())\n}\n\nval MIGRATION_2_3 = object : Migration(2, 3) {\n    override fun migrate(db: SupportSQLiteDatabase) {\n        db.execSQL(\"ALTER TABLE sets ADD COLUMN rir INTEGER NOT NULL DEFAULT 2\")\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/dao/ExerciseDao.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.dao\n\nimport androidx.room.Dao\nimport androidx.room.Query\nimport androidx.room.Upsert\nimport com.looker.kenko.data.local.model.ExerciseEntity\nimport kotlinx.coroutines.flow.Flow\n\n@Dao\ninterface ExerciseDao {\n\n    @Upsert\n    suspend fun upsert(exercise: ExerciseEntity)\n\n    @Query(\n        \"\"\"\n        DELETE\n        FROM exercises\n        WHERE id = :id\n        \"\"\",\n    )\n    suspend fun delete(id: Int)\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM exercises\n        \"\"\",\n    )\n    fun stream(): Flow<List<ExerciseEntity>>\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM exercises\n        WHERE id = :id\n        \"\"\",\n    )\n    suspend fun get(id: Int): ExerciseEntity?\n\n    @Query(\n        \"\"\"\n        SELECT COUNT(*)\n        FROM exercises\n        \"\"\",\n    )\n    fun number(): Flow<Int>\n\n    @Query(\n        \"\"\"\n        SELECT EXISTS\n        (SELECT *\n        FROM exercises\n        WHERE name = :name)\n        \"\"\",\n    )\n    suspend fun exists(name: String): Boolean\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/dao/PerformanceDao.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.dao\n\nimport androidx.room.Dao\nimport androidx.room.RawQuery\nimport androidx.room.Transaction\nimport androidx.room.Upsert\nimport androidx.sqlite.db.SimpleSQLiteQuery\nimport com.looker.kenko.data.local.model.SetTypeEntity\nimport com.looker.kenko.data.repository.Performance\n\n@Dao\ninterface PerformanceDao {\n\n    @Upsert\n    suspend fun upsertSetTypeLookup(type: List<SetTypeEntity>)\n\n    @RawQuery\n    suspend fun _rawQueryRatingWrappers(query: SimpleSQLiteQuery): List<RatingWrapper>?\n\n    @Transaction\n    suspend fun getPerformance(exerciseId: Int?, planId: Int?): Performance? {\n        val selection = arrayListOf<Any?>()\n        val query = buildString(1024) {\n            append(\"SELECT sessions.date, \")\n            // Sum of all ratings\n            append(\"SUM(\")\n\n            // Ratings = reps * weight * set_type_modifier * rir_modifier\n            append(\"sets.reps * \")\n            append(\"sets.weight * \")\n            append(\"set_type.modifier * \")\n\n            // RIR modifier\n            append(\"CASE WHEN sets.rir <= 0 \")\n            append(\"THEN 1.20 WHEN sets.rir = 1 \")\n            append(\"THEN 1.12 WHEN sets.rir = 2 \")\n            append(\"THEN 1.04 WHEN sets.rir = 3 \")\n            append(\"THEN 0.96 WHEN sets.rir = 4 \")\n            append(\"THEN 0.88 ELSE 0.80 END\")\n\n            append(\") AS rating FROM sets \")\n            append(\"INNER JOIN set_type ON sets.type = set_type.type \")\n            append(\"INNER JOIN sessions ON sets.sessionId = sessions.id \")\n            if (exerciseId != null) {\n                append(\"WHERE (sets.exerciseId = ?) \")\n                selection.add(exerciseId)\n            }\n            if (planId != null) {\n                if (exerciseId != null) {\n                    append(\"AND \")\n                } else {\n                    append(\"WHERE \")\n                }\n                append(\"sessions.planId = ? \")\n                selection.add(planId)\n            }\n            append(\"GROUP BY sessions.date \")\n            append(\"ORDER BY sessions.date ASC\")\n        }\n        val ratingWrapper = _rawQueryRatingWrappers(\n            SimpleSQLiteQuery(\n                query = query,\n                bindArgs = selection.toTypedArray(),\n            ),\n        )\n        return ratingWrapper?.toPerformance()\n    }\n}\n\nclass RatingWrapper(\n    val date: Int,\n    val rating: Float,\n)\n\nfun List<RatingWrapper>.toPerformance(): Performance {\n    val days = IntArray(size)\n    val ratings = FloatArray(size)\n    for (i in indices) {\n        val rating = get(i)\n        days[i] = rating.date\n        ratings[i] = rating.rating\n    }\n    return Performance(\n        days = days,\n        ratings = ratings,\n    )\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/dao/PlanDao.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.dao\n\nimport androidx.room.Dao\nimport androidx.room.Query\nimport androidx.room.RawQuery\nimport androidx.room.Transaction\nimport androidx.room.Upsert\nimport androidx.sqlite.db.SimpleSQLiteQuery\nimport com.looker.kenko.data.local.model.ExerciseEntity\nimport com.looker.kenko.data.local.model.PlanDayEntity\nimport com.looker.kenko.data.local.model.PlanEntity\nimport com.looker.kenko.data.model.Labels\nimport kotlinx.coroutines.flow.Flow\n\n@Dao\ninterface PlanDao {\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM plans\n        \"\"\",\n    )\n    fun plansFlow(): Flow<List<PlanEntity>>\n\n    @Transaction\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM plan_day\n        WHERE planId =\n        (SELECT planId\n        FROM plan_history\n        WHERE `end` IS NULL\n        AND start IS NOT NULL)\n        ORDER BY id ASC\n        \"\"\",\n    )\n    fun currentPlanItemsFlow(): Flow<List<PlanDayEntity>>\n\n    @Transaction\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM plan_day\n        WHERE planId =\n        (SELECT planId\n        FROM plan_history\n        WHERE `end` IS NULL\n        AND start IS NOT NULL)\n        AND dayOfWeek = :day\n        ORDER BY id ASC\n        \"\"\",\n    )\n    fun currentPlanItemsByDayFlow(day: Int): Flow<List<PlanDayEntity>>\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM plans\n        WHERE id = :planId\n        \"\"\",\n    )\n    suspend fun getPlanById(planId: Int): PlanEntity?\n\n    @Query(\n        \"\"\"\n        SELECT EXISTS\n        (SELECT *\n        FROM plans\n        WHERE name = :planName)\n        \"\"\",\n    )\n    suspend fun exists(planName: String): Boolean\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM plan_day\n        WHERE planId = :planId\n        ORDER BY id ASC\n        \"\"\",\n    )\n    fun planItemsByPlanIdFlow(planId: Int): Flow<List<PlanDayEntity>>\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM plan_day\n        WHERE planId = :planId\n        ORDER BY id ASC\n        \"\"\",\n    )\n    suspend fun getPlanItemsByPlanId(planId: Int): List<PlanDayEntity>\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM plans\n        WHERE id =\n        (SELECT planId\n        FROM plan_day\n        WHERE exerciseId = :exerciseId)\n        \"\"\",\n    )\n    suspend fun getPlanByExerciseId(exerciseId: Int): List<PlanEntity>\n\n    @Transaction\n    @Query(\n        \"\"\"\n        SELECT exercises.*\n        FROM exercises\n        INNER JOIN plan_day\n        ON exercises.id = plan_day.exerciseId\n        WHERE plan_day.planId = :planId\n        ORDER BY plan_day.id ASC\n        \"\"\",\n    )\n    fun exerciseByPlanIdFlow(planId: Int): Flow<List<ExerciseEntity>>\n\n    @Transaction\n    @Query(\n        \"\"\"\n        SELECT exercises.*\n        FROM exercises\n        INNER JOIN plan_day\n        ON exercises.id = plan_day.exerciseId\n        WHERE plan_day.planId = :planId\n        ORDER BY plan_day.id ASC\n        \"\"\",\n    )\n    suspend fun getExerciseByPlanId(planId: Int): List<ExerciseEntity>\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM plan_day\n        WHERE planId = :planId\n        AND dayOfWeek = :day\n        ORDER BY id ASC\n        \"\"\",\n    )\n    fun planItemsByPlanIdAndDayFlow(planId: Int, day: Int): Flow<List<PlanDayEntity>>\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM plan_day\n        WHERE planId = :planId\n        AND dayOfWeek = :day\n        ORDER BY id ASC\n        \"\"\",\n    )\n    suspend fun getPlanItemsByPlanIdAndDay(planId: Int, day: Int): List<PlanDayEntity>\n\n    @Query(\n        \"\"\"\n        SELECT COUNT(exerciseId)\n        FROM plan_day\n        WHERE planId = :planId\n        \"\"\",\n    )\n    suspend fun getExerciseCountByPlanId(planId: Int): Int\n\n    @Query(\n        \"\"\"\n        SELECT COUNT(DISTINCT dayOfWeek)\n        FROM plan_day\n        WHERE planId = :planId\n        \"\"\",\n    )\n    suspend fun getWorkDaysByPlanId(planId: Int): Int\n\n    suspend fun searchPlans(\n        query: String? = null,\n        difficulty: Labels.Difficulty? = null,\n        focus: Labels.Focus? = null,\n        equipment: Labels.Equipment? = null,\n        time: Labels.Time? = null,\n    ): List<PlanEntity> {\n        val args = mutableListOf<Any?>()\n        val sql = buildString(256) {\n            append(\"SELECT * FROM plans WHERE 1=1 \")\n            if (!query.isNullOrBlank()) {\n                append(\"AND name LIKE %?% OR description LIKE %?% \")\n                args.add(query)\n                args.add(query)\n            }\n            if (difficulty != null) {\n                append(\"AND difficulty = ? \")\n                args.add(difficulty)\n            }\n            if (focus != null) {\n                append(\"AND focus = ? \")\n                args.add(focus)\n            }\n            if (equipment != null) {\n                append(\"AND equipment = ? \")\n                args.add(equipment)\n            }\n            if (time != null) {\n                append(\"AND time = ? \")\n                args.add(time)\n            }\n        }\n        return _rawSearchPlans(\n            SimpleSQLiteQuery(\n                query = sql,\n                bindArgs = args.toTypedArray(),\n            ),\n        )\n    }\n\n    @RawQuery\n    suspend fun _rawSearchPlans(query: SimpleSQLiteQuery): List<PlanEntity>\n\n    @Upsert\n    suspend fun upsertPlan(plan: PlanEntity): Long\n\n    @Query(\"DELETE FROM plans WHERE id = :planId\")\n    suspend fun deletePlan(planId: Int)\n\n    @Query(\"DELETE FROM plans WHERE id NOT IN (SELECT DISTINCT planId FROM plan_day)\")\n    suspend fun deleteEmptyPlans()\n\n    @Upsert\n    suspend fun insertPlanItem(item: PlanDayEntity)\n\n    @Query(\"DELETE FROM plan_day WHERE id = :planDayId\")\n    suspend fun deleteItem(planDayId: Long)\n\n    @Query(\"DELETE FROM plan_day WHERE exerciseId = :exerciseId\")\n    suspend fun deleteItemByExercise(exerciseId: Int)\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/dao/PlanHistoryDao.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.dao\n\nimport androidx.room.Dao\nimport androidx.room.Query\nimport androidx.room.Upsert\nimport com.looker.kenko.data.local.model.PlanHistoryEntity\nimport kotlinx.coroutines.flow.Flow\n\n@Dao\ninterface PlanHistoryDao {\n\n    @Query(\n        \"\"\"\n        SELECT planId\n        FROM plan_history\n        WHERE `end` IS NULL\n        AND start IS NOT NULL\n        \"\"\",\n    )\n    fun currentIdFlow(): Flow<Int?>\n\n    @Query(\n        \"\"\"\n        SELECT planId\n        FROM plan_history\n        WHERE `end` IS NULL\n        AND start IS NOT NULL\n        \"\"\",\n    )\n    suspend fun getCurrentId(): Int?\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM plan_history\n        WHERE `end` IS NULL\n        AND start IS NOT NULL\n        \"\"\",\n    )\n    fun currentFlow(): Flow<PlanHistoryEntity?>\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM plan_history\n        WHERE `end` IS NULL\n        AND start IS NOT NULL\n        \"\"\",\n    )\n    suspend fun getCurrent(): PlanHistoryEntity?\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM plan_history\n        \"\"\"\n    )\n    suspend fun getAll(): List<PlanHistoryEntity>\n\n    @Upsert\n    suspend fun upsert(history: PlanHistoryEntity)\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/dao/SessionDao.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.dao\n\nimport androidx.room.Dao\nimport androidx.room.Insert\nimport androidx.room.OnConflictStrategy\nimport androidx.room.Query\nimport androidx.room.Transaction\nimport com.looker.kenko.data.local.model.SessionDataEntity\nimport com.looker.kenko.data.local.model.SessionEntity\nimport com.looker.kenko.utils.EpochDays\nimport kotlinx.coroutines.flow.Flow\n\n@Dao\ninterface SessionDao {\n\n    @Insert(onConflict = OnConflictStrategy.IGNORE)\n    suspend fun insert(session: SessionDataEntity): Long\n\n    @Query(\n        \"\"\"\n        SELECT EXISTS\n        (SELECT *\n        FROM sessions\n        WHERE date = :date)\n        \"\"\",\n    )\n    suspend fun sessionExistsOn(date: EpochDays): Boolean\n\n    @Query(\n        \"\"\"\n        SELECT date\n        FROM sessions\n        WHERE id = :sessionId\n        \"\"\",\n    )\n    suspend fun getDatePerformedOn(sessionId: Int): EpochDays\n\n    @Query(\n        \"\"\"\n        SELECT COUNT(*)\n        FROM sessions\n        \"\"\",\n    )\n    suspend fun getTotalSessions(): Int\n\n    @Query(\n        \"\"\"\n        SELECT id\n        FROM sessions\n        WHERE date = :date\n        \"\"\",\n    )\n    suspend fun getSessionId(date: EpochDays): Int?\n\n    @Transaction\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM sessions\n        ORDER BY date DESC\n        \"\"\",\n    )\n    fun stream(): Flow<List<SessionEntity>>\n\n    @Transaction\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM sessions\n        WHERE date = :date\n        \"\"\",\n    )\n    fun session(date: EpochDays): Flow<SessionEntity?>\n\n    @Transaction\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM sessions\n        WHERE date = :date\n        \"\"\",\n    )\n    suspend fun getSession(date: EpochDays): SessionEntity?\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/dao/SetsDao.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.dao\n\nimport androidx.room.Dao\nimport androidx.room.Insert\nimport androidx.room.Query\nimport com.looker.kenko.data.local.model.SetEntity\nimport kotlinx.coroutines.flow.Flow\n\n@Dao\ninterface SetsDao {\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM sets\n        WHERE sessionId = :sessionId\n        ORDER BY `order`\n        \"\"\",\n    )\n    fun setsBySessionId(sessionId: Int): Flow<List<SetEntity>>\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM sets\n        WHERE sessionId = :sessionId\n        ORDER BY `order`\n        \"\"\",\n    )\n    suspend fun getSetsBySessionId(sessionId: Int): List<SetEntity>\n\n    @Query(\n        \"\"\"\n        SELECT COUNT(*)\n        FROM sets\n        WHERE sessionId = :sessionId\n        \"\"\",\n    )\n    suspend fun getSetsCountBySessionId(sessionId: Int): Int?\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM sets\n        WHERE (:exerciseId IS NULL OR exerciseId = :exerciseId)\n        AND sessionId IN (\n            SELECT id\n            FROM sessions\n            WHERE (:planId IS NULL OR planId = :planId)\n        )\n        ORDER BY `order`\n        \"\"\",\n    )\n    fun setsByExerciseIdPerPlan(exerciseId: Int? = null, planId: Int? = null): Flow<List<SetEntity>>\n\n    @Query(\n        \"\"\"\n        SELECT *\n        FROM sets\n        WHERE (:exerciseId IS NULL OR exerciseId = :exerciseId)\n        AND sessionId IN (\n            SELECT id\n            FROM sessions\n            WHERE (:planId IS NULL OR planId = :planId)\n        )\n        ORDER BY `order`\n        \"\"\",\n    )\n    suspend fun getSetsByExerciseIdPerPlan(\n        exerciseId: Int? = null,\n        planId: Int? = null,\n    ): List<SetEntity>\n\n    @Query(\n        \"\"\"\n        SELECT COUNT (*)\n        FROM sets\n        \"\"\",\n    )\n    fun totalSetCount(): Flow<Int>\n\n    @Insert\n    suspend fun insert(set: SetEntity)\n\n    @Query(\n        \"\"\"\n        DELETE\n        FROM sets\n        WHERE id = :setId\n        \"\"\",\n    )\n    suspend fun delete(setId: Int)\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/datastore/DatastoreSettingsRepo.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.datastore\n\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.core.IOException\nimport androidx.datastore.preferences.core.Preferences\nimport androidx.datastore.preferences.core.booleanPreferencesKey\nimport androidx.datastore.preferences.core.edit\nimport androidx.datastore.preferences.core.longPreferencesKey\nimport androidx.datastore.preferences.core.stringPreferencesKey\nimport com.looker.kenko.BuildConfig\nimport com.looker.kenko.data.model.settings.BackupInterval\nimport com.looker.kenko.data.model.settings.ColorPalettes\nimport com.looker.kenko.data.model.settings.Settings\nimport com.looker.kenko.data.model.settings.Theme\nimport com.looker.kenko.data.repository.SettingsRepo\nimport javax.inject.Inject\nimport kotlin.time.Instant\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.catch\nimport kotlinx.coroutines.flow.map\n\nclass DatastoreSettingsRepo @Inject constructor(\n    private val dataStore: DataStore<Preferences>,\n) : SettingsRepo {\n\n    override val stream: Flow<Settings>\n        get() = dataStore.data\n            .catch { if (it is IOException) error(\"Error reading datastore\") }\n            .map(::mapSettings)\n\n    override fun <T> get(block: Settings.() -> T): Flow<T> {\n        return stream.map { it.block() }\n    }\n\n    override suspend fun setOnboardingDone() {\n        if (!BuildConfig.DEBUG) {\n            ONBOARDING_DONE.update(true)\n        }\n    }\n\n    override suspend fun setColorPalette(colorPalette: ColorPalettes) {\n        COLOR_PALETTE.update(colorPalette.name)\n    }\n\n    override suspend fun setTheme(theme: Theme) {\n        THEME.update(theme.name)\n    }\n\n    override suspend fun setLastSetTime(instant: Instant?) {\n        dataStore.edit { preference ->\n            if (instant != null) {\n                preference[LAST_SET_TIME_SECONDS] = instant.epochSeconds\n            } else {\n                preference.remove(LAST_SET_TIME_SECONDS)\n            }\n        }\n    }\n\n    override suspend fun setBackupUri(uri: String?) {\n        dataStore.edit { preference ->\n            if (uri != null) {\n                preference[BACKUP_URI] = uri\n            } else {\n                preference.remove(BACKUP_URI)\n            }\n        }\n    }\n\n    override suspend fun setBackupInterval(interval: BackupInterval) {\n        BACKUP_INTERVAL.update(interval.name)\n    }\n\n    override suspend fun setLastBackupTime(instant: Instant?) {\n        dataStore.edit { preference ->\n            if (instant != null) {\n                preference[LAST_BACKUP_TIME_SECONDS] = instant.epochSeconds\n            } else {\n                preference.remove(LAST_BACKUP_TIME_SECONDS)\n            }\n        }\n    }\n\n    private suspend inline fun <T> Preferences.Key<T>.update(value: T) {\n        dataStore.edit { preference ->\n            preference[this] = value\n        }\n    }\n\n    private fun mapSettings(preferences: Preferences): Settings {\n        val isOnboardingDone = preferences[ONBOARDING_DONE] ?: false\n        val theme = preferences[THEME] ?: Theme.System.name\n        val colorPalettes = preferences[COLOR_PALETTE] ?: ColorPalettes.Zestful.name\n        val lastSetTime = preferences[LAST_SET_TIME_SECONDS]\n        val backupUri = preferences[BACKUP_URI]\n        val backupInterval = preferences[BACKUP_INTERVAL] ?: BackupInterval.Off.name\n        val lastBackupTime = preferences[LAST_BACKUP_TIME_SECONDS]\n        return Settings(\n            isOnboardingDone = isOnboardingDone,\n            theme = Theme.valueOf(theme),\n            colorPalette = ColorPalettes.valueOf(colorPalettes),\n            lastSetTime = lastSetTime?.let { Instant.fromEpochSeconds(it) },\n            backupUri = backupUri,\n            backupInterval = BackupInterval.valueOf(backupInterval),\n            lastBackupTime = lastBackupTime?.let { Instant.fromEpochSeconds(it) },\n        )\n    }\n\n    private companion object Keys {\n        val ONBOARDING_DONE: Preferences.Key<Boolean> = booleanPreferencesKey(\"onboarding_done\")\n        val THEME: Preferences.Key<String> = stringPreferencesKey(\"theme\")\n        val COLOR_PALETTE: Preferences.Key<String> = stringPreferencesKey(\"color_palette\")\n        val LAST_SET_TIME_SECONDS: Preferences.Key<Long> =\n            longPreferencesKey(\"last_set_time_seconds\")\n        val BACKUP_URI: Preferences.Key<String> = stringPreferencesKey(\"backup_uri\")\n        val BACKUP_INTERVAL: Preferences.Key<String> = stringPreferencesKey(\"backup_interval\")\n        val LAST_BACKUP_TIME_SECONDS: Preferences.Key<Long> =\n            longPreferencesKey(\"last_backup_time_seconds\")\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/model/ExerciseEntity.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.model\n\nimport androidx.room.Entity\nimport androidx.room.PrimaryKey\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.MuscleGroups\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@Serializable\n@SerialName(\"exercise\")\n@Entity(\"exercises\")\ndata class ExerciseEntity(\n    val name: String,\n    val target: MuscleGroups,\n    val reference: String? = null,\n    val isIsometric: Boolean = false,\n    @PrimaryKey(autoGenerate = true)\n    val id: Int = 0\n)\nfun ExerciseEntity.toExternal(): Exercise = Exercise(\n    id = id,\n    name = name,\n    target = target,\n    reference = reference,\n    isIsometric = isIsometric\n)\n\nfun Exercise.toEntity(): ExerciseEntity = ExerciseEntity(\n    id = id ?: 0,\n    name = name,\n    target = target,\n    reference = reference,\n    isIsometric = isIsometric\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/model/PlanEntity.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.model\n\nimport androidx.room.ColumnInfo\nimport androidx.room.Entity\nimport androidx.room.ForeignKey\nimport androidx.room.Index\nimport androidx.room.PrimaryKey\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.Labels.Difficulty\nimport com.looker.kenko.data.model.Labels.Equipment\nimport com.looker.kenko.data.model.Labels.Focus\nimport com.looker.kenko.data.model.Labels.Time\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.data.model.Plan\nimport com.looker.kenko.data.model.PlanItem\nimport com.looker.kenko.data.model.PlanStat\nimport kotlinx.datetime.DayOfWeek\nimport kotlinx.datetime.isoDayNumber\n\n@Entity(tableName = \"plans\")\ndata class PlanEntity(\n    val name: String,\n    @ColumnInfo(defaultValue = \"NULL\")\n    val description: String?,\n    @ColumnInfo(defaultValue = \"NULL\")\n    val difficulty: Difficulty?,\n    @ColumnInfo(defaultValue = \"NULL\")\n    val focus: Focus?,\n    @ColumnInfo(defaultValue = \"NULL\")\n    val equipment: Equipment?,\n    @ColumnInfo(defaultValue = \"NULL\")\n    val time: Time?,\n    @PrimaryKey(autoGenerate = true)\n    val id: Int = 0,\n)\n\n@Entity(\n    \"plan_day\",\n    foreignKeys = [\n        ForeignKey(\n            entity = PlanEntity::class,\n            parentColumns = [\"id\"],\n            childColumns = [\"planId\"],\n            onDelete = ForeignKey.CASCADE,\n        ),\n        ForeignKey(\n            entity = ExerciseEntity::class,\n            parentColumns = [\"id\"],\n            childColumns = [\"exerciseId\"],\n            onDelete = ForeignKey.CASCADE,\n        ),\n    ],\n    indices = [\n        Index(\"planId\", \"exerciseId\"),\n    ],\n)\ndata class PlanDayEntity(\n    val planId: Int,\n    val exerciseId: Int,\n    val dayOfWeek: Int,\n    @PrimaryKey(autoGenerate = true)\n    val id: Long = 0,\n)\n\nfun PlanEntity.toExternal(isActive: Boolean, stat: PlanStat) = Plan(\n    id = id,\n    name = name,\n    description = description,\n    difficulty = difficulty,\n    focus = focus,\n    equipment = equipment,\n    time = time,\n    stat = stat,\n    isActive = isActive,\n)\n\nfun Plan.toEntity(): PlanEntity = PlanEntity(\n    id = id ?: 0,\n    name = name,\n    description = description,\n    difficulty = difficulty,\n    focus = focus,\n    equipment = equipment,\n    time = time,\n)\n\nfun PlanItem.toEntity() = PlanDayEntity(\n    id = id ?: 0,\n    planId = planId,\n    exerciseId = requireNotNull(exercise.id) { \"Exercise id cannot be null\" },\n    dayOfWeek = dayOfWeek.isoDayNumber,\n)\n\ninline fun PlanDayEntity.toExternal(block: (exerciseId: Int) -> Exercise?) = PlanItem(\n    planId = planId,\n    dayOfWeek = DayOfWeek(dayOfWeek),\n    exercise = block(exerciseId) ?: DefaultExercise,\n    id = id,\n)\n\nval DefaultExercise = Exercise(\n    name = \"Exercise Deleted\",\n    target = MuscleGroups.Core,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/model/PlanHistoryEntity.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.model\n\nimport androidx.room.ColumnInfo\nimport androidx.room.Entity\nimport androidx.room.ForeignKey\nimport androidx.room.Index\nimport androidx.room.PrimaryKey\nimport com.looker.kenko.utils.EpochDays\n\n@Entity(\n    tableName = \"plan_history\",\n    foreignKeys = [\n        ForeignKey(\n            entity = PlanEntity::class,\n            parentColumns = [\"id\"],\n            childColumns = [\"planId\"],\n            onDelete = ForeignKey.Companion.SET_NULL\n        )\n    ],\n    indices = [\n        Index(\"planId\", \"start\", \"end\")\n    ]\n)\ndata class PlanHistoryEntity(\n    val planId: Int?,\n    val start: EpochDays,\n    @ColumnInfo(defaultValue = \"NULL\")\n    val end: EpochDays? = null,\n    @PrimaryKey(autoGenerate = true)\n    val id: Long = 0\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/model/SessionEntity.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.model\n\nimport androidx.room.ColumnInfo\nimport androidx.room.Embedded\nimport androidx.room.Entity\nimport androidx.room.ForeignKey\nimport androidx.room.PrimaryKey\nimport androidx.room.Relation\nimport com.looker.kenko.data.model.Session\nimport com.looker.kenko.data.model.Set\nimport com.looker.kenko.utils.EpochDays\nimport kotlinx.datetime.LocalDate\n\ndata class SessionEntity(\n    @Embedded\n    val data: SessionDataEntity,\n    @Relation(\n        parentColumn = \"id\",\n        entityColumn = \"sessionId\",\n    )\n    val sets: List<SetEntity>,\n)\n\n@Entity(\n    \"sessions\",\n    foreignKeys = [\n        ForeignKey(\n            entity = PlanEntity::class,\n            parentColumns = [\"id\"],\n            childColumns = [\"planId\"],\n            onDelete = ForeignKey.SET_NULL,\n        ),\n    ],\n)\ndata class SessionDataEntity(\n    val date: EpochDays,\n    @ColumnInfo(index = true)\n    val planId: Int?,\n    @PrimaryKey(autoGenerate = true)\n    val id: Int = 0,\n)\n\nfun Session.data(): SessionDataEntity = SessionDataEntity(\n    date = EpochDays(date.toEpochDays().toInt()),\n    planId = planId,\n    id = id ?: 0,\n)\n\nfun Session.sets(): List<SetEntity> = sets.map { it.toEntity(id!!, sets.indexOf(it)) }\n\nfun SessionEntity.toExternal(\n    setsMap: List<Set>,\n): Session = Session(\n    planId = data.planId,\n    date = LocalDate.fromEpochDays(data.date.value),\n    sets = setsMap,\n    id = data.id,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/model/SetEntity.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.model\n\nimport androidx.room.ColumnInfo\nimport androidx.room.Entity\nimport androidx.room.ForeignKey\nimport androidx.room.Index\nimport androidx.room.PrimaryKey\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.RepsInReserve\nimport com.looker.kenko.data.model.Set\n\n@Entity(\n    \"sets\",\n    foreignKeys = [\n        ForeignKey(\n            entity = ExerciseEntity::class,\n            parentColumns = [\"id\"],\n            childColumns = [\"exerciseId\"],\n            onDelete = ForeignKey.CASCADE,\n        ),\n        ForeignKey(\n            entity = SessionDataEntity::class,\n            parentColumns = [\"id\"],\n            childColumns = [\"sessionId\"],\n            onDelete = ForeignKey.CASCADE,\n        ),\n    ],\n    indices = [\n        Index(\"sessionId\", \"exerciseId\"),\n    ],\n)\ndata class SetEntity(\n    @ColumnInfo(\"reps\")\n    val repsOrDuration: Int,\n    val weight: Float,\n    val type: SetType,\n    val order: Int,\n    val sessionId: Int,\n    val exerciseId: Int,\n    val rir: Int = 2,\n    @PrimaryKey(autoGenerate = true)\n    val id: Int = 0,\n)\n\nfun SetEntity.toExternal(exercise: Exercise): Set = Set(\n    repsOrDuration = repsOrDuration,\n    weight = weight,\n    type = type,\n    exercise = exercise,\n    rir = RepsInReserve(rir),\n    id = id,\n)\n\nfun Set.toEntity(sessionId: Int, order: Int): SetEntity = SetEntity(\n    id = id ?: 0,\n    repsOrDuration = repsOrDuration,\n    weight = weight,\n    type = type,\n    order = order,\n    sessionId = sessionId,\n    exerciseId = requireNotNull(exercise.id),\n    rir = rir.value,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/local/model/SetTypeEntity.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.local.model\n\nimport androidx.room.Entity\nimport androidx.room.PrimaryKey\n\n@Entity(\"set_type\")\ndata class SetTypeEntity(\n    @PrimaryKey\n    val type: SetType,\n    val modifier: Float,\n)\n\nenum class SetType(val ratingModifier: Float) {\n    Standard(STANDARD_SET_RATING_MODIFIER),\n    Drop(DROP_SET_RATING_MODIFIER),\n    RestPause(REST_PAUSE_SET_RATING_MODIFIER),\n}\n\nprivate const val STANDARD_SET_RATING_MODIFIER: Float = 1.0F\nprivate const val DROP_SET_RATING_MODIFIER: Float = 1.35F\nprivate const val REST_PAUSE_SET_RATING_MODIFIER: Float = 1.2F\n\nfun defaultSetTypes()= listOf(\n    SetTypeEntity(SetType.Standard, STANDARD_SET_RATING_MODIFIER),\n    SetTypeEntity(SetType.Drop, DROP_SET_RATING_MODIFIER),\n    SetTypeEntity(SetType.RestPause, REST_PAUSE_SET_RATING_MODIFIER),\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/model/Exercise.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.model\n\nimport androidx.annotation.StringRes\nimport androidx.compose.runtime.Immutable\nimport androidx.compose.runtime.Stable\nimport androidx.compose.ui.tooling.preview.PreviewParameterProvider\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.MuscleGroups.Biceps\nimport com.looker.kenko.data.model.MuscleGroups.Calves\nimport com.looker.kenko.data.model.MuscleGroups.Chest\nimport com.looker.kenko.data.model.MuscleGroups.Core\nimport com.looker.kenko.data.model.MuscleGroups.Glutes\nimport com.looker.kenko.data.model.MuscleGroups.Hamstrings\nimport com.looker.kenko.data.model.MuscleGroups.Lats\nimport com.looker.kenko.data.model.MuscleGroups.Quads\nimport com.looker.kenko.data.model.MuscleGroups.Shoulders\nimport com.looker.kenko.data.model.MuscleGroups.Traps\nimport com.looker.kenko.data.model.MuscleGroups.Triceps\nimport com.looker.kenko.data.model.MuscleGroups.UpperBack\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@Immutable\n@Serializable\n@SerialName(\"exercise\")\ndata class Exercise(\n    val name: String,\n    val target: MuscleGroups,\n    val reference: String? = null,\n    val isIsometric: Boolean = false,\n    val id: Int? = null,\n)\n\n@Stable\nval Exercise.repDurationStringRes: Int\n    @StringRes\n    get() = if (isIsometric) R.string.label_duration else R.string.label_reps\n\nclass ExercisesPreviewParameter : PreviewParameterProvider<List<Exercise>> {\n    override val values = sequenceOf(\n        listOf(\n            Exercise(\"Curls\", Biceps),\n            Exercise(\"Barbell Curls\", Biceps),\n            Exercise(\"Preacher Curls\", Biceps),\n            Exercise(\"B-t-B Curls\", Biceps),\n        ),\n        listOf(\n            Exercise(\"Push-down\", Triceps),\n            Exercise(\"Skull-Crushers\", Triceps),\n            Exercise(\"Push-overs\", Triceps),\n        ),\n        listOf(\n            Exercise(\"Lateral Raises\", Shoulders),\n            Exercise(\"Shoulder Press\", Shoulders),\n            Exercise(\"Face Pulls\", Shoulders),\n        ),\n        listOf(\n            Exercise(\"Squats\", Quads),\n            Exercise(\"Leg Press\", Quads),\n            Exercise(\"Hack Squats\", Quads),\n            Exercise(\"Leg Extensions\", Quads),\n        ),\n        listOf(\n            Exercise(\"SDL\", Hamstrings),\n            Exercise(\"Lying Leg Curls\", Hamstrings),\n        ),\n        listOf(Exercise(\"Calve Raises\", Calves)),\n        listOf(\n            Exercise(\"Hip Thrusts\", Glutes),\n            Exercise(\"Lunges\", Glutes),\n        ),\n        listOf(\n            Exercise(\"Sit-ups\", Core),\n            Exercise(\"Leg Raises\", Core),\n        ),\n        listOf(\n            Exercise(\"Bench Press\", Chest),\n            Exercise(\"Incline Bench\", Chest),\n            Exercise(\"Pec Dec\", Chest),\n            Exercise(\"Chest Fly\", Chest),\n        ),\n        listOf(Exercise(\"Shrugs\", Traps)),\n        listOf(\n            Exercise(\"Lat Pull-down\", Lats),\n            Exercise(\"Pull-ups\", Lats),\n            Exercise(\"Lat Prayers\", Lats),\n        ),\n        listOf(\n            Exercise(\"Bent-over Rows\", UpperBack),\n            Exercise(\"Chest-Supported Rows\", UpperBack),\n            Exercise(\"Rows\", UpperBack),\n        ),\n    )\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/model/Labels.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.model\n\n// TODO: Empahsis on these being a suggestion, \"These labels are just suggestions,\n//  even if you are advanced you can use a beginner plan\n//  and change it to your liking and use it\"\n//  also clarify how you can recognize your own place in this system,\n//  1-3 yrs is beginners, and so on\nsealed interface Labels {\n    enum class Difficulty : Labels {\n        // More free weight exercises, and generally slower plans\n        BEGINNER,\n        INTERMEDIATE,\n        ADVANCED,\n        // Generally need personal additions\n        ADAPTABLE,\n    }\n\n    enum class Focus : Labels {\n        STRENGTH,\n        HYPERTROPHY,\n        POWER_BUILDING,\n    }\n\n    enum class Equipment : Labels {\n        FULL_GYM,\n        DUMBBELLS,\n        BARBELLS,\n        NONE,\n    }\n\n    enum class Time : Labels {\n        QUICK,\n        NORMAL,\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/model/MuscleGroups.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.model\n\nimport androidx.annotation.StringRes\nimport androidx.compose.runtime.Stable\nimport com.looker.kenko.R\nimport kotlinx.serialization.Serializable\n\n@Stable\n@Serializable\nenum class MuscleGroups(@StringRes val stringRes: Int) {\n    // Arms\n    Biceps(R.string.label_muscle_biceps),\n    Triceps(R.string.label_muscle_triceps),\n    Shoulders(R.string.label_muscle_shoulders),\n\n    // Legs\n    Quads(R.string.label_muscle_quads),\n    Hamstrings(R.string.label_muscle_hamstrings),\n    Calves(R.string.label_muscle_calves),\n    Glutes(R.string.label_muscle_glutes),\n\n    // Front\n    Core(R.string.label_muscle_core),\n    Chest(R.string.label_muscle_chest),\n\n    // Back\n    Traps(R.string.label_muscle_traps),\n    Lats(R.string.label_muscle_lats),\n    UpperBack(R.string.label_muscle_back),\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/model/Plan.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.model\n\nimport androidx.compose.runtime.Immutable\nimport androidx.compose.ui.tooling.preview.PreviewParameterProvider\nimport com.looker.kenko.data.model.Labels.Difficulty\nimport com.looker.kenko.data.model.Labels.Equipment\nimport com.looker.kenko.data.model.Labels.Focus\nimport com.looker.kenko.data.model.Labels.Time\nimport kotlin.time.Clock\nimport kotlinx.datetime.DatePeriod\nimport kotlinx.datetime.DayOfWeek\nimport kotlinx.datetime.TimeZone\nimport kotlinx.datetime.toLocalDateTime\n\n@Immutable\ndata class Plan(\n    val name: String,\n    val description: String?,\n    val difficulty: Difficulty?,\n    val focus: Focus?,\n    val equipment: Equipment?,\n    val time: Time?,\n    val isActive: Boolean,\n    val stat: PlanStat = PlanStat(0, 0),\n    val id: Int? = null,\n)\n\n@Immutable\ndata class PlanItem(\n    val dayOfWeek: DayOfWeek,\n    val exercise: Exercise,\n    val planId: Int,\n    val id: Long? = null,\n)\n\nval localDate = Clock.System.now().toLocalDateTime(TimeZone.currentSystemDefault()).date\n\nval week = DatePeriod(days = 7)\n\nclass PlanPreviewParameters : PreviewParameterProvider<List<Plan>> {\n    override val values: Sequence<List<Plan>> = sequenceOf(\n        listOf(\n            Plan(\n                name = \"Push Pull Leg\",\n                description = null,\n                difficulty = Difficulty.ADAPTABLE,\n                focus = null,\n                equipment = Equipment.FULL_GYM,\n                time = Time.NORMAL,\n                isActive = true,\n                stat = PlanStat(21, 5),\n            ),\n            Plan(\n                name = \"Upper Lower\",\n                description = \"Alternative upper lower split\",\n                difficulty = Difficulty.BEGINNER,\n                focus = Focus.POWER_BUILDING,\n                equipment = Equipment.FULL_GYM,\n                time = Time.QUICK,\n                isActive = false,\n                stat = PlanStat(21, 4),\n            ),\n            Plan(\n                name = \"Upper Lower 2\",\n                description = \"Lower Upper split at home\",\n                difficulty = Difficulty.ADAPTABLE,\n                focus = Focus.POWER_BUILDING,\n                equipment = Equipment.DUMBBELLS,\n                time = Time.QUICK,\n                isActive = false,\n                stat = PlanStat(21, 5),\n            ),\n        ),\n    )\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/model/PlanStat.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.model\n\nimport androidx.compose.runtime.Immutable\nimport androidx.compose.runtime.Stable\nimport androidx.compose.ui.util.packInts\nimport androidx.compose.ui.util.unpackInt1\nimport androidx.compose.ui.util.unpackInt2\n\n@Immutable\n@JvmInline\nvalue class PlanStat(private val packedInt: Long) {\n\n    @Stable\n    val exercises: Int get() = unpackInt1(packedInt)\n\n    @Stable\n    val workDays: Int get() = unpackInt2(packedInt)\n\n    @Stable\n    val restDays: Int get() = 7 - workDays\n}\n\nfun PlanStat(exercises: Int, workDays: Int): PlanStat {\n    return PlanStat(packInts(exercises, workDays))\n}\n\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/model/Rating.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.model\n\nimport androidx.compose.runtime.Immutable\n\n@Immutable\n@JvmInline\nvalue class Rating(val value: Float)\n\noperator fun Rating.plus(other: Rating) = Rating(value + other.value)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/model/RepsInReserve.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.model\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\n@JvmInline\nvalue class RepsInReserve(val value: Int) {\n\n    val modifier: Float\n        get() = when {\n            value <= 0 -> 1.20f\n            value == 1 -> 1.12f\n            value == 2 -> 1.04f\n            value == 3 -> 0.96f\n            value == 4 -> 0.88f\n            else -> 0.80f\n        }\n\n    companion object {\n        fun fromRPE(rpe: Int) = RepsInReserve(10 - rpe)\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/model/Session.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.model\n\nimport androidx.compose.runtime.Immutable\nimport kotlinx.datetime.LocalDate\n\n@Immutable\ndata class Session(\n    val date: LocalDate,\n    val sets: List<Set>,\n    val planId: Int?,\n    val id: Int? = null,\n) {\n    val performExercises: List<Exercise>\n        get() = sets.map { it.exercise }.distinct()\n}\n\nfun Session(planId: Int, sets: List<Set>) = Session(planId = planId, date = localDate, sets = sets)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/model/Set.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.model\n\nimport androidx.compose.runtime.Immutable\nimport com.looker.kenko.data.local.model.SetType\nimport kotlinx.serialization.Serializable\n\n@Serializable\n@Immutable\ndata class Set(\n    val repsOrDuration: Int,\n    val weight: Float,\n    val type: SetType,\n    val exercise: Exercise,\n    val rir: RepsInReserve,\n    val id: Int? = null,\n)\n\nval Set.rating: Rating\n    get() = Rating(repsOrDuration * weight * type.ratingModifier * rir.modifier)\n\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/model/settings/BackupInterval.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.model.settings\n\nimport androidx.annotation.StringRes\nimport com.looker.kenko.R\n\nenum class BackupInterval(\n    val hours: Long,\n    @param:StringRes val nameRes: Int,\n) {\n    Off(0, R.string.label_backup_off),\n    Daily(24, R.string.label_backup_daily),\n    Weekly(168, R.string.label_backup_weekly),\n    Monthly(720, R.string.label_backup_monthly),\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/model/settings/Settings.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.model.settings\n\nimport kotlin.time.Instant\n\ndata class Settings(\n    val isOnboardingDone: Boolean,\n    val theme: Theme,\n    val colorPalette: ColorPalettes,\n    val lastSetTime: Instant?,\n    val backupUri: String?,\n    val backupInterval: BackupInterval,\n    val lastBackupTime: Instant?,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/model/settings/Theme.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.model.settings\n\nimport androidx.annotation.StringRes\nimport com.looker.kenko.R\nimport com.looker.kenko.ui.theme.colorSchemes.ColorSchemes\nimport com.looker.kenko.ui.theme.colorSchemes.defaultColorSchemes\nimport com.looker.kenko.ui.theme.colorSchemes.sereneColorSchemes\nimport com.looker.kenko.ui.theme.colorSchemes.twilightColorSchemes\nimport com.looker.kenko.ui.theme.colorSchemes.zestfulColorSchemes\n\nenum class Theme(@StringRes val nameRes: Int) {\n    System(R.string.label_theme_system),\n    Light(R.string.label_theme_light),\n    Dark(R.string.label_theme_dark),\n}\n\nenum class ColorPalettes(val scheme: ColorSchemes?) {\n    Dynamic(null),\n    Default(defaultColorSchemes),\n    Zestful(zestfulColorSchemes),\n    Serene(sereneColorSchemes),\n    Twilight(twilightColorSchemes),\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/repository/ExerciseRepo.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.repository\n\nimport com.looker.kenko.data.model.Exercise\nimport kotlinx.coroutines.flow.Flow\n\ninterface ExerciseRepo {\n\n    val stream: Flow<List<Exercise>>\n\n    val numberOfExercise: Flow<Int>\n\n    suspend fun get(id: Int): Exercise?\n\n    suspend fun upsert(exercise: Exercise)\n\n    suspend fun remove(id: Int)\n\n    suspend fun isExerciseAvailable(name: String): Boolean\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/repository/PerformanceRepo.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.repository\n\nimport androidx.compose.runtime.Immutable\n\ninterface PerformanceRepo {\n\n    suspend fun updateModifiers()\n\n    suspend fun getPerformance(exerciseId: Int? = null, planId: Int? = null): Performance?\n\n}\n\n@Immutable\nclass Performance(\n    val days: IntArray,\n    val ratings: FloatArray,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/repository/PlanRepo.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.repository\n\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.Labels.Difficulty\nimport com.looker.kenko.data.model.Labels.Equipment\nimport com.looker.kenko.data.model.Labels.Focus\nimport com.looker.kenko.data.model.Labels.Time\nimport com.looker.kenko.data.model.Plan\nimport com.looker.kenko.data.model.PlanItem\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.datetime.DayOfWeek\n\ninterface PlanRepo {\n\n    val plans: Flow<List<Plan>>\n\n    val current: Flow<Plan?>\n\n    val planItems: Flow<List<PlanItem>>\n\n    fun planItems(day: DayOfWeek): Flow<List<PlanItem>>\n\n    fun planItems(id: Int): Flow<List<PlanItem>>\n\n    fun planItems(id: Int, day: DayOfWeek): Flow<List<PlanItem>>\n\n    fun activeExercises(day: DayOfWeek): Flow<List<Exercise>>\n\n    suspend fun plan(id: Int): Plan?\n\n    suspend fun planNameExists(name: String): Boolean\n\n    suspend fun getPlanItems(id: Int): List<PlanItem>\n\n    suspend fun getPlanItems(id: Int, day: DayOfWeek): List<PlanItem>\n\n    suspend fun createPlan(\n        name: String,\n        description: String? = null,\n        difficulty: Difficulty? = null,\n        focus: Focus? = null,\n        equipment: Equipment? = null,\n        time: Time? = null,\n    ): Int\n\n    suspend fun updatePlan(plan: Plan)\n\n    suspend fun setCurrent(id: Int)\n\n    suspend fun deletePlan(id: Int)\n\n    suspend fun deleteEmptyPlans()\n\n    suspend fun addItem(planItem: PlanItem)\n\n    suspend fun removeItem(id: Long)\n\n    suspend fun removeItemById(exerciseId: Int)\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/repository/SessionRepo.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.repository\n\nimport com.looker.kenko.data.local.model.SetType\nimport com.looker.kenko.data.model.RepsInReserve\nimport com.looker.kenko.data.model.Session\nimport com.looker.kenko.data.model.Set\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.datetime.LocalDate\n\ninterface SessionRepo {\n\n    val stream: Flow<List<Session>>\n\n    val setsCount: Flow<Int>\n\n    suspend fun addSet(sessionId: Int, set: Set)\n\n    suspend fun addSet(\n        sessionId: Int,\n        exerciseId: Int,\n        weight: Float,\n        reps: Int,\n        setType: SetType,\n        rir: RepsInReserve,\n    )\n\n    suspend fun removeSet(setId: Int)\n\n    suspend fun getSessionIdOrCreate(date: LocalDate): Int\n\n    fun streamByDate(date: LocalDate): Flow<Session?>\n\n    suspend fun getSets(sessionId: Int): List<Set>\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/repository/SettingsRepo.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.repository\n\nimport com.looker.kenko.data.model.settings.BackupInterval\nimport com.looker.kenko.data.model.settings.ColorPalettes\nimport com.looker.kenko.data.model.settings.Settings\nimport com.looker.kenko.data.model.settings.Theme\nimport kotlin.time.Instant\nimport kotlinx.coroutines.flow.Flow\n\ninterface SettingsRepo {\n\n    val stream: Flow<Settings>\n\n    fun <T> get(block: Settings.() -> T): Flow<T>\n\n    suspend fun setOnboardingDone()\n\n    suspend fun setColorPalette(colorPalette: ColorPalettes)\n\n    suspend fun setTheme(theme: Theme)\n\n    suspend fun setLastSetTime(instant: Instant?)\n\n    suspend fun setBackupUri(uri: String?)\n\n    suspend fun setBackupInterval(interval: BackupInterval)\n\n    suspend fun setLastBackupTime(instant: Instant?)\n\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/repository/local/LocalExerciseRepo.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.repository.local\n\nimport com.looker.kenko.data.local.dao.ExerciseDao\nimport com.looker.kenko.data.local.model.ExerciseEntity\nimport com.looker.kenko.data.local.model.toEntity\nimport com.looker.kenko.data.local.model.toExternal\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.repository.ExerciseRepo\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.map\nimport javax.inject.Inject\n\nclass LocalExerciseRepo @Inject constructor(\n    private val dao: ExerciseDao,\n) : ExerciseRepo {\n\n    override val stream: Flow<List<Exercise>> =\n        dao.stream().map { it.map(ExerciseEntity::toExternal) }\n\n    override val numberOfExercise: Flow<Int> = dao.number()\n\n    override suspend fun get(id: Int): Exercise? =\n        dao.get(id)?.toExternal()\n\n    override suspend fun upsert(exercise: Exercise) {\n        dao.upsert(exercise.toEntity())\n    }\n\n    override suspend fun remove(id: Int) {\n        dao.delete(id)\n    }\n\n    override suspend fun isExerciseAvailable(name: String): Boolean =\n        dao.exists(name)\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/repository/local/LocalPerformanceRepo.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.repository.local\n\nimport com.looker.kenko.data.local.dao.PerformanceDao\nimport com.looker.kenko.data.local.model.defaultSetTypes\nimport com.looker.kenko.data.repository.Performance\nimport com.looker.kenko.data.repository.PerformanceRepo\nimport javax.inject.Inject\n\nclass LocalPerformanceRepo @Inject constructor(\n    private val performanceDao: PerformanceDao,\n) : PerformanceRepo {\n\n    override suspend fun updateModifiers() {\n        performanceDao.upsertSetTypeLookup(defaultSetTypes())\n    }\n\n    override suspend fun getPerformance(exerciseId: Int?, planId: Int?): Performance? =\n        performanceDao.getPerformance(exerciseId, planId)\n\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/repository/local/LocalPlanRepo.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.repository.local\n\nimport com.looker.kenko.data.local.dao.ExerciseDao\nimport com.looker.kenko.data.local.dao.PlanDao\nimport com.looker.kenko.data.local.dao.PlanHistoryDao\nimport com.looker.kenko.data.local.model.PlanEntity\nimport com.looker.kenko.data.local.model.PlanHistoryEntity\nimport com.looker.kenko.data.local.model.toEntity\nimport com.looker.kenko.data.local.model.toExternal\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.Labels\nimport com.looker.kenko.data.model.Plan\nimport com.looker.kenko.data.model.PlanItem\nimport com.looker.kenko.data.model.PlanStat\nimport com.looker.kenko.data.model.localDate\nimport com.looker.kenko.data.repository.PlanRepo\nimport com.looker.kenko.utils.toLocalEpochDays\nimport javax.inject.Inject\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.combine\nimport kotlinx.coroutines.flow.first\nimport kotlinx.coroutines.flow.map\nimport kotlinx.datetime.DayOfWeek\nimport kotlinx.datetime.isoDayNumber\n\nclass LocalPlanRepo @Inject constructor(\n    private val dao: PlanDao,\n    private val exerciseDao: ExerciseDao,\n    private val historyDao: PlanHistoryDao,\n) : PlanRepo {\n\n    override val plans: Flow<List<Plan>> =\n        combine(dao.plansFlow(), historyDao.currentIdFlow()) { plans, current ->\n            plans.map {\n                it.toExternal(isActive = it.id == current, stat = stats(it.id))\n            }\n        }\n\n    override val current: Flow<Plan?> =\n        historyDao.currentIdFlow().map { current ->\n            if (current != null) {\n                dao.getPlanById(current)?.toExternal(true, stats(current))\n            } else {\n                null\n            }\n        }\n\n    override val planItems: Flow<List<PlanItem>> =\n        dao.currentPlanItemsFlow().map { planDays ->\n            planDays.map { planDay ->\n                planDay.toExternal { exerciseId ->\n                    exerciseDao.get(exerciseId)?.toExternal()\n                }\n            }\n        }\n\n    override fun planItems(day: DayOfWeek): Flow<List<PlanItem>> =\n        dao.currentPlanItemsByDayFlow(day.isoDayNumber).map { planDays ->\n            planDays.map { planDay ->\n                planDay.toExternal { exerciseId ->\n                    exerciseDao.get(exerciseId)?.toExternal()\n                }\n            }\n        }\n\n    override suspend fun plan(id: Int): Plan? {\n        val isCurrent = current.first()?.id\n        return dao.getPlanById(id)?.toExternal(isCurrent == id, stats(id))\n    }\n\n    override suspend fun planNameExists(name: String): Boolean =\n        dao.exists(name)\n\n    override fun planItems(id: Int): Flow<List<PlanItem>> =\n        dao.planItemsByPlanIdFlow(id).map {\n            it.map { planDay ->\n                planDay.toExternal { exerciseId ->\n                    exerciseDao.get(exerciseId)?.toExternal()\n                }\n            }\n        }\n\n    override fun planItems(id: Int, day: DayOfWeek): Flow<List<PlanItem>> =\n        dao.planItemsByPlanIdAndDayFlow(id, day.isoDayNumber).map {\n            it.map { planDay ->\n                planDay.toExternal { exerciseId ->\n                    exerciseDao.get(exerciseId)?.toExternal()\n                }\n            }\n        }\n\n    override fun activeExercises(day: DayOfWeek): Flow<List<Exercise>> =\n        dao.currentPlanItemsByDayFlow(day.isoDayNumber).map {\n            it.mapNotNull { planDay ->\n                exerciseDao.get(planDay.exerciseId)?.toExternal()\n            }\n        }\n\n    override suspend fun getPlanItems(id: Int): List<PlanItem> =\n        dao.getPlanItemsByPlanId(id).map {\n            it.toExternal { exerciseId ->\n                exerciseDao.get(exerciseId)?.toExternal()\n            }\n        }\n\n    override suspend fun getPlanItems(id: Int, day: DayOfWeek): List<PlanItem> =\n        dao.getPlanItemsByPlanIdAndDay(id, day.isoDayNumber).map {\n            it.toExternal { exerciseId ->\n                exerciseDao.get(exerciseId)?.toExternal()\n            }\n        }\n\n    private suspend fun stats(id: Int): PlanStat =\n        PlanStat(dao.getExerciseCountByPlanId(id), dao.getWorkDaysByPlanId(id))\n\n    override suspend fun createPlan(\n        name: String,\n        description: String?,\n        difficulty: Labels.Difficulty?,\n        focus: Labels.Focus?,\n        equipment: Labels.Equipment?,\n        time: Labels.Time?,\n    ): Int = dao.upsertPlan(\n        PlanEntity(\n            name = name,\n            description = description,\n            difficulty = difficulty,\n            focus = focus,\n            equipment = equipment,\n            time = time,\n        ),\n    ).toInt()\n\n    override suspend fun updatePlan(plan: Plan) {\n        dao.upsertPlan(plan.toEntity())\n    }\n\n    override suspend fun setCurrent(id: Int) {\n        val current = historyDao.getCurrent()\n        if (current != null) {\n            historyDao.upsert(current.copy(end = localDate.toLocalEpochDays()))\n        }\n        historyDao.upsert(PlanHistoryEntity(planId = id, start = localDate.toLocalEpochDays()))\n    }\n\n    override suspend fun deletePlan(id: Int) {\n        dao.deletePlan(id)\n    }\n\n    override suspend fun deleteEmptyPlans() {\n        dao.deleteEmptyPlans()\n    }\n\n    override suspend fun addItem(planItem: PlanItem) {\n        dao.insertPlanItem(planItem.toEntity())\n    }\n\n    override suspend fun removeItem(id: Long) {\n        dao.deleteItem(id)\n    }\n\n    override suspend fun removeItemById(exerciseId: Int) {\n        dao.deleteItemByExercise(exerciseId)\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/data/repository/local/LocalSessionRepo.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.data.repository.local\n\nimport com.looker.kenko.data.local.dao.ExerciseDao\nimport com.looker.kenko.data.local.dao.PlanHistoryDao\nimport com.looker.kenko.data.local.dao.SessionDao\nimport com.looker.kenko.data.local.dao.SetsDao\nimport com.looker.kenko.data.local.model.SessionDataEntity\nimport com.looker.kenko.data.local.model.SetEntity\nimport com.looker.kenko.data.local.model.SetType\nimport com.looker.kenko.data.local.model.toEntity\nimport com.looker.kenko.data.local.model.toExternal\nimport com.looker.kenko.data.model.RepsInReserve\nimport com.looker.kenko.data.model.Session\nimport com.looker.kenko.data.model.Set\nimport com.looker.kenko.data.model.localDate\nimport com.looker.kenko.data.repository.SessionRepo\nimport com.looker.kenko.utils.toLocalEpochDays\nimport javax.inject.Inject\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.map\nimport kotlinx.datetime.LocalDate\n\nclass LocalSessionRepo @Inject constructor(\n    private val dao: SessionDao,\n    private val setsDao: SetsDao,\n    private val historyDao: PlanHistoryDao,\n    private val exerciseDao: ExerciseDao,\n) : SessionRepo {\n\n    override val stream: Flow<List<Session>> =\n        dao.stream().map {\n            it.map { session ->\n                session.toExternal(session.sets.toExternal())\n            }\n        }\n    override val setsCount: Flow<Int> =\n        setsDao.totalSetCount()\n\n    override suspend fun addSet(sessionId: Int, set: Set) {\n        setsDao.insert(\n            set.toEntity(\n                sessionId,\n                setsDao.getSetsCountBySessionId(sessionId) ?: 0,\n            ),\n        )\n    }\n\n    override suspend fun addSet(\n        sessionId: Int,\n        exerciseId: Int,\n        weight: Float,\n        reps: Int,\n        setType: SetType,\n        rir: RepsInReserve,\n    ) {\n        setsDao.insert(\n            SetEntity(\n                repsOrDuration = reps,\n                weight = weight,\n                exerciseId = exerciseId,\n                sessionId = sessionId,\n                type = setType,\n                order = setsDao.getSetsCountBySessionId(sessionId) ?: 0,\n                rir = rir.value,\n            ),\n        )\n    }\n\n    override suspend fun removeSet(setId: Int) {\n        if (!dao.sessionExistsOn(localDate.toLocalEpochDays())) {\n            error(\"Session does not exist so set cannot be removed\")\n        }\n        setsDao.delete(setId)\n    }\n\n    override suspend fun getSessionIdOrCreate(date: LocalDate): Int {\n        val currentPlanId = requireNotNull(historyDao.getCurrentId()) { \"No plan active\" }\n        val existingId = dao.getSessionId(date.toLocalEpochDays())\n        if (existingId != null) {\n            return existingId\n        }\n        return dao.insert(SessionDataEntity(date.toLocalEpochDays(), currentPlanId)).toInt()\n    }\n\n    override fun streamByDate(date: LocalDate): Flow<Session?> {\n        return dao\n            .session(date.toLocalEpochDays())\n            .map { session ->\n                if (session == null) return@map null\n                session.toExternal(session.sets.toExternal())\n            }\n    }\n\n    override suspend fun getSets(sessionId: Int): List<Set> =\n        setsDao.getSetsBySessionId(sessionId).toExternal()\n\n    private suspend fun List<SetEntity>.toExternal(): List<Set> = mapNotNull {\n        val exercise = exerciseDao.get(it.exerciseId) ?: return@mapNotNull null\n        it.toExternal(exercise.toExternal())\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/di/AppModule.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.di\n\nimport dagger.Module\nimport dagger.Provides\nimport dagger.hilt.InstallIn\nimport dagger.hilt.components.SingletonComponent\nimport kotlinx.coroutines.CoroutineDispatcher\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.SupervisorJob\nimport javax.inject.Qualifier\nimport javax.inject.Singleton\n\n@Retention(AnnotationRetention.RUNTIME)\n@Qualifier\nannotation class IoDispatcher\n\n@Retention(AnnotationRetention.RUNTIME)\n@Qualifier\nannotation class DefaultDispatcher\n\n@Retention(AnnotationRetention.RUNTIME)\n@Qualifier\nannotation class ApplicationScope\n\n@Module\n@InstallIn(SingletonComponent::class)\nobject AppModule {\n\n    @Provides\n    @IoDispatcher\n    fun providesIODispatcher(): CoroutineDispatcher = Dispatchers.IO\n\n    @Provides\n    @DefaultDispatcher\n    fun providesDefaultDispatcher(): CoroutineDispatcher = Dispatchers.Default\n\n    @Provides\n    @Singleton\n    @ApplicationScope\n    fun providesCoroutineScope(\n        @DefaultDispatcher dispatcher: CoroutineDispatcher,\n    ): CoroutineScope = CoroutineScope(SupervisorJob() + dispatcher)\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/di/BackupModule.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.di\n\nimport com.looker.kenko.data.backup.BackupManager\nimport com.looker.kenko.data.backup.BackupManagerImpl\nimport dagger.Binds\nimport dagger.Module\nimport dagger.hilt.InstallIn\nimport dagger.hilt.components.SingletonComponent\nimport javax.inject.Singleton\n\n@Module\n@InstallIn(SingletonComponent::class)\nabstract class BackupModule {\n\n    @Binds\n    @Singleton\n    abstract fun bindBackupManager(\n        impl: BackupManagerImpl,\n    ): BackupManager\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/di/DatabaseModule.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.di\n\nimport android.content.Context\nimport com.looker.kenko.data.local.KenkoDatabase\nimport com.looker.kenko.data.local.dao.ExerciseDao\nimport com.looker.kenko.data.local.dao.PerformanceDao\nimport com.looker.kenko.data.local.dao.PlanDao\nimport com.looker.kenko.data.local.dao.PlanHistoryDao\nimport com.looker.kenko.data.local.dao.SessionDao\nimport com.looker.kenko.data.local.dao.SetsDao\nimport com.looker.kenko.data.local.kenkoDatabase\nimport dagger.Module\nimport dagger.Provides\nimport dagger.hilt.InstallIn\nimport dagger.hilt.android.qualifiers.ApplicationContext\nimport dagger.hilt.components.SingletonComponent\nimport javax.inject.Singleton\n\n@Module\n@InstallIn(SingletonComponent::class)\nobject DatabaseModule {\n\n    @Provides\n    @Singleton\n    fun provideDatabase(\n        @ApplicationContext context: Context,\n    ): KenkoDatabase = kenkoDatabase(context)\n\n    @Provides\n    @Singleton\n    fun provideExerciseDao(\n        database: KenkoDatabase,\n    ): ExerciseDao = database.exerciseDao()\n\n    @Provides\n    @Singleton\n    fun provideSessionDao(\n        database: KenkoDatabase,\n    ): SessionDao = database.sessionDao()\n\n    @Provides\n    @Singleton\n    fun providePlanDao(\n        database: KenkoDatabase,\n    ): PlanDao = database.planDao()\n\n    @Provides\n    @Singleton\n    fun provideSetsDao(\n        database: KenkoDatabase,\n    ): SetsDao = database.setsDao()\n\n    @Provides\n    @Singleton\n    fun providePlanHistoryDao(\n        database: KenkoDatabase,\n    ): PlanHistoryDao = database.historyDao()\n\n    @Provides\n    @Singleton\n    fun providePerformanceDao(\n        database: KenkoDatabase,\n    ): PerformanceDao = database.performanceDao()\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/di/DatastoreModule.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.di\n\nimport android.content.Context\nimport androidx.datastore.preferences.core.PreferenceDataStoreFactory\nimport androidx.datastore.preferences.preferencesDataStoreFile\nimport dagger.Module\nimport dagger.Provides\nimport dagger.hilt.InstallIn\nimport dagger.hilt.android.qualifiers.ApplicationContext\nimport dagger.hilt.components.SingletonComponent\nimport javax.inject.Singleton\n\nprivate const val DATASTORE_FILE_NAME = \"settings\"\n\n@Module\n@InstallIn(SingletonComponent::class)\nobject DatastoreModule {\n\n    @Provides\n    @Singleton\n    fun provideDatastore(\n        @ApplicationContext context: Context,\n    ) = PreferenceDataStoreFactory.create(\n        produceFile = { context.preferencesDataStoreFile(DATASTORE_FILE_NAME) }\n    )\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/di/HandlersModule.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.di\n\nimport android.content.Context\nimport androidx.compose.ui.platform.UriHandler\nimport com.looker.kenko.data.KenkoUriHandler\nimport com.looker.kenko.data.StringHandler\nimport dagger.Module\nimport dagger.Provides\nimport dagger.hilt.InstallIn\nimport dagger.hilt.android.components.ViewModelComponent\nimport dagger.hilt.android.qualifiers.ApplicationContext\nimport dagger.hilt.android.scopes.ViewModelScoped\n\n@Module\n@InstallIn(ViewModelComponent::class)\nobject HandlersModule {\n\n    @Provides\n    @ViewModelScoped\n    fun provideContext(\n        @ApplicationContext context: Context\n    ): Context = context\n\n    @Provides\n    @ViewModelScoped\n    fun provideUriHandler(\n        @ApplicationContext context: Context\n    ): UriHandler = KenkoUriHandler(context)\n\n    @Provides\n    @ViewModelScoped\n    fun provideStringHandler(\n        @ApplicationContext context: Context\n    ): StringHandler = StringHandler(context)\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/di/RepositoryModule.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.di\n\nimport com.looker.kenko.data.local.datastore.DatastoreSettingsRepo\nimport com.looker.kenko.data.repository.ExerciseRepo\nimport com.looker.kenko.data.repository.PerformanceRepo\nimport com.looker.kenko.data.repository.PlanRepo\nimport com.looker.kenko.data.repository.SessionRepo\nimport com.looker.kenko.data.repository.SettingsRepo\nimport com.looker.kenko.data.repository.local.LocalExerciseRepo\nimport com.looker.kenko.data.repository.local.LocalPerformanceRepo\nimport com.looker.kenko.data.repository.local.LocalPlanRepo\nimport com.looker.kenko.data.repository.local.LocalSessionRepo\nimport dagger.Binds\nimport dagger.Module\nimport dagger.hilt.InstallIn\nimport dagger.hilt.components.SingletonComponent\n\n@Module\n@InstallIn(SingletonComponent::class)\nabstract class RepositoryModule {\n\n    @Binds\n    abstract fun bindSessionRepo(\n        repo: LocalSessionRepo,\n    ): SessionRepo\n\n    @Binds\n    abstract fun bindPlanRepo(\n        repo: LocalPlanRepo,\n    ): PlanRepo\n\n    @Binds\n    abstract fun bindExerciseRepo(\n        repo: LocalExerciseRepo,\n    ): ExerciseRepo\n\n    @Binds\n    abstract fun bindPerformanceRepo(\n        repo: LocalPerformanceRepo,\n    ): PerformanceRepo\n\n    @Binds\n    abstract fun bindSettingsRepo(\n        repo: DatastoreSettingsRepo,\n    ): SettingsRepo\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/MainActivity.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui\n\nimport android.os.Bundle\nimport androidx.activity.ComponentActivity\nimport androidx.activity.compose.setContent\nimport androidx.activity.enableEdgeToEdge\nimport androidx.activity.viewModels\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.WindowInsets\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Scaffold\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.ui.Modifier\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport androidx.navigation.compose.rememberNavController\nimport com.looker.kenko.ui.getStarted.navigation.GetStartedRoute\nimport com.looker.kenko.ui.navigation.KenkoNavHost\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport dagger.hilt.android.AndroidEntryPoint\n\n@AndroidEntryPoint\nclass MainActivity : ComponentActivity() {\n\n    private val viewModel: MainViewModel by viewModels()\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        enableEdgeToEdge()\n        super.onCreate(savedInstanceState)\n        setContent {\n            val theme by viewModel.theme.collectAsStateWithLifecycle()\n            val colorScheme by viewModel.colorScheme.collectAsStateWithLifecycle()\n            KenkoTheme(\n                theme = theme,\n                colorSchemes = colorScheme,\n            ) {\n                Kenko {\n                    KenkoNavHost(\n                        navController = rememberNavController(),\n                        startDestination = GetStartedRoute(viewModel.isOnboardingDone),\n                    )\n                }\n            }\n        }\n    }\n}\n\n@Composable\nfun Kenko(\n    content: @Composable (innerPadding: PaddingValues) -> Unit,\n) {\n    Scaffold(\n        modifier = Modifier.fillMaxSize(),\n        containerColor = MaterialTheme.colorScheme.surface,\n        contentWindowInsets = WindowInsets(0),\n        content = content,\n    )\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/MainViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui\n\nimport android.content.Context\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport com.looker.kenko.data.model.settings.Theme\nimport com.looker.kenko.data.repository.PerformanceRepo\nimport com.looker.kenko.data.repository.SettingsRepo\nimport com.looker.kenko.ui.theme.colorSchemes.ColorSchemes\nimport com.looker.kenko.ui.theme.colorSchemes.zestfulColorSchemes\nimport com.looker.kenko.ui.theme.dynamicColorSchemes\nimport com.looker.kenko.utils.asStateFlow\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport javax.inject.Inject\nimport kotlinx.coroutines.flow.StateFlow\nimport kotlinx.coroutines.flow.first\nimport kotlinx.coroutines.flow.map\nimport kotlinx.coroutines.launch\nimport kotlinx.coroutines.runBlocking\n\n@HiltViewModel\nclass MainViewModel @Inject constructor(\n    repo: SettingsRepo,\n    performanceRepo: PerformanceRepo,\n    context: Context,\n) : ViewModel() {\n\n    val theme: StateFlow<Theme> = repo.get { theme }\n        .asStateFlow(Theme.System)\n\n    val colorScheme: StateFlow<ColorSchemes> = repo.stream\n        .map { it.colorPalette.scheme ?: dynamicColorSchemes(context) ?: zestfulColorSchemes }\n        .asStateFlow(zestfulColorSchemes)\n\n    val isOnboardingDone: Boolean = runBlocking { repo.stream.first().isOnboardingDone }\n\n    init {\n        viewModelScope.launch {\n            performanceRepo.updateModifiers()\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/addEditExercise/AddEditExercise.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.addEditExercise\n\nimport androidx.compose.foundation.clickable\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.navigationBarsPadding\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.rememberScrollState\nimport androidx.compose.foundation.text.KeyboardOptions\nimport androidx.compose.foundation.verticalScroll\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Scaffold\nimport androidx.compose.material3.SnackbarHost\nimport androidx.compose.material3.SnackbarHostState\nimport androidx.compose.material3.Switch\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TextField\nimport androidx.compose.material3.TopAppBar\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.input.KeyboardType\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.tooling.preview.PreviewLightDark\nimport androidx.compose.ui.unit.dp\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.ui.components.BackButton\nimport com.looker.kenko.ui.components.ErrorSnackbar\nimport com.looker.kenko.ui.components.FlowTargets\nimport com.looker.kenko.ui.components.KenkoButton\nimport com.looker.kenko.ui.components.TargetChip\nimport com.looker.kenko.ui.components.kenkoTextFieldColor\nimport com.looker.kenko.ui.exercises.string\nimport com.looker.kenko.ui.extensions.plus\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\n\n@Composable\nfun AddEditExercise(\n    onDone: () -> Unit,\n    onBackPress: () -> Unit,\n) {\n    val viewModel: AddEditExerciseViewModel = hiltViewModel()\n    val state by viewModel.state.collectAsStateWithLifecycle()\n\n    AddEditExercise(\n        exerciseName = viewModel.exerciseName,\n        exerciseReference = viewModel.reference,\n        state = state,\n        snackbarState = viewModel.snackbarState,\n        onSelectTarget = viewModel::setTargetMuscle,\n        onSelectIsometric = viewModel::setIsometric,\n        onNameChange = viewModel::setName,\n        onReferenceChange = viewModel::addReference,\n        onBackPress = onBackPress,\n        onDone = { viewModel.addNewExercise(onDone) },\n    )\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun AddEditExercise(\n    exerciseName: String,\n    exerciseReference: String,\n    state: AddEditExerciseUiState,\n    snackbarState: SnackbarHostState,\n    onSelectTarget: (MuscleGroups) -> Unit,\n    onSelectIsometric: (Boolean) -> Unit,\n    onNameChange: (String) -> Unit,\n    onReferenceChange: (String) -> Unit,\n    onDone: () -> Unit,\n    onBackPress: () -> Unit,\n) {\n    Scaffold(\n        topBar = {\n            TopAppBar(\n                navigationIcon = { BackButton(onBackPress) },\n                title = {\n                    Text(\n                        text = stringResource(\n                            if (exerciseName.isBlank()) {\n                                R.string.label_new_exercise\n                            } else {\n                                R.string.label_edit_exercise\n                            }\n                        ),\n                    )\n                }\n            )\n        },\n        snackbarHost = {\n            SnackbarHost(hostState = snackbarState) {\n                ErrorSnackbar(data = it)\n            }\n        },\n    ) { innerPadding ->\n        Column(\n            modifier = Modifier\n                .verticalScroll(rememberScrollState())\n                .padding(PaddingValues(horizontal = 16.dp) + innerPadding),\n        ) {\n            ExerciseTextField(\n                exerciseName = exerciseName,\n                onNameChange = onNameChange,\n                isError = state.isError,\n                isReadOnly = state.isReadOnly,\n                modifier = Modifier.fillMaxWidth()\n            )\n            Text(\n                modifier = Modifier.padding(vertical = 8.dp),\n                text = stringResource(R.string.label_target),\n                style = MaterialTheme.typography.labelLarge,\n                color = MaterialTheme.colorScheme.outline\n            )\n            FlowTargets {\n                TargetChip(\n                    selected = state.targetMuscle == it,\n                    onClick = { onSelectTarget(it) },\n                    text = stringResource(it.string),\n                )\n            }\n            Spacer(modifier = Modifier.height(12.dp))\n            IsIsometricButton(isIsometric = state.isIsometric, onChange = onSelectIsometric)\n            Spacer(modifier = Modifier.height(18.dp))\n            ReferenceTextField(\n                reference = exerciseReference,\n                onReferenceChange = onReferenceChange,\n                isError = state.isReferenceInvalid,\n                modifier = Modifier.fillMaxWidth()\n            )\n            Spacer(modifier = Modifier.height(18.dp))\n            KenkoButton(\n                modifier = Modifier\n                    .align(Alignment.CenterHorizontally)\n                    .navigationBarsPadding(),\n                onClick = onDone,\n                label = {\n                    Icon(\n                        painter = KenkoIcons.Save,\n                        contentDescription = null,\n                    )\n                },\n                icon = {\n                    Text(stringResource(R.string.label_save))\n                }\n            )\n            Spacer(\n                modifier = Modifier\n                    .navigationBarsPadding()\n                    .padding(bottom = 8.dp)\n            )\n        }\n    }\n}\n\n@Composable\nprivate fun ReferenceTextField(\n    reference: String,\n    isError: Boolean,\n    onReferenceChange: (String) -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    TextField(\n        modifier = modifier,\n        value = reference,\n        onValueChange = onReferenceChange,\n        colors = kenkoTextFieldColor(),\n        keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Uri),\n        shape = MaterialTheme.shapes.large,\n        supportingText = {\n            Text(text = stringResource(R.string.label_reference_optional))\n        },\n        label = {\n            Text(text = stringResource(R.string.label_reference))\n        },\n        isError = isError,\n        leadingIcon = {\n            Icon(painter = KenkoIcons.Lightbulb, contentDescription = null)\n        }\n    )\n}\n\n@Composable\nprivate fun ExerciseTextField(\n    exerciseName: String,\n    isError: Boolean,\n    isReadOnly: Boolean,\n    onNameChange: (String) -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    TextField(\n        modifier = modifier,\n        value = exerciseName,\n        onValueChange = onNameChange,\n        colors = kenkoTextFieldColor(),\n        readOnly = isReadOnly,\n        shape = MaterialTheme.shapes.large,\n        label = {\n            Text(text = stringResource(R.string.label_name))\n        },\n        isError = isError,\n        leadingIcon = {\n            Icon(painter = KenkoIcons.Rename, contentDescription = null)\n        },\n        supportingText = {\n            if (isError) {\n                Text(text = stringResource(R.string.label_exercise_exists))\n            }\n        }\n    )\n}\n\n@Composable\nprivate fun IsIsometricButton(isIsometric: Boolean, onChange: (Boolean) -> Unit) {\n    Row(\n        verticalAlignment = Alignment.CenterVertically,\n        modifier = Modifier.clickable { onChange(!isIsometric) }\n    ) {\n        Column(modifier = Modifier.weight(1F)) {\n            Text(\n                text = stringResource(R.string.label_is_isometric),\n                style = MaterialTheme.typography.bodyLarge,\n            )\n            Text(\n                text = stringResource(R.string.label_is_isometric_DESC),\n                style = MaterialTheme.typography.bodyMedium,\n                color = MaterialTheme.colorScheme.outline,\n            )\n        }\n        Switch(checked = isIsometric, onCheckedChange = onChange)\n    }\n}\n\n@PreviewLightDark\n@Composable\nprivate fun ReferenceTextFieldPreview() {\n    KenkoTheme {\n        ReferenceTextField(\n            reference = \"https://youtu.be\",\n            onReferenceChange = {},\n            isError = false,\n            modifier = Modifier.fillMaxWidth()\n        )\n    }\n}\n\n@Preview(showBackground = true)\n@Composable\nprivate fun IsIsometricButtonPreview() {\n    KenkoTheme {\n        var isIso by remember {\n            mutableStateOf(false)\n        }\n        IsIsometricButton(isIsometric = isIso, onChange = { isIso = !isIso })\n    }\n}\n\n@Preview(name = \"Exercise Name Field\")\n@Composable\nprivate fun NameTextFieldPreview() {\n    KenkoTheme {\n        ExerciseTextField(\n            exerciseName = \"Bench Press\",\n            onNameChange = {},\n            isError = false,\n            isReadOnly = true,\n            modifier = Modifier.fillMaxWidth()\n        )\n    }\n}\n\n@Preview(name = \"Exercise Name Field - Error\")\n@Composable\nprivate fun ErrorNameTextFieldPreview() {\n    KenkoTheme {\n        ExerciseTextField(\n            exerciseName = \"Bench Press\",\n            onNameChange = {},\n            isError = true,\n            isReadOnly = true,\n            modifier = Modifier.fillMaxWidth()\n        )\n    }\n}\n\n@Preview(showBackground = true)\n@Composable\nprivate fun AddEditPreview() {\n    KenkoTheme {\n        AddEditExercise(\n            exerciseName = \"BenchPress\",\n            exerciseReference = \"yt.be\",\n            state = AddEditExerciseUiState(MuscleGroups.Chest, false, false, false, false),\n            snackbarState = SnackbarHostState(),\n            onSelectTarget = {},\n            onSelectIsometric = {},\n            onNameChange = {},\n            onReferenceChange = {},\n            onDone = {},\n            onBackPress = {}\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/addEditExercise/AddEditExerciseViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.addEditExercise\n\nimport androidx.compose.material3.SnackbarHostState\nimport androidx.compose.runtime.Stable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.setValue\nimport androidx.compose.runtime.snapshotFlow\nimport androidx.lifecycle.SavedStateHandle\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport androidx.navigation.toRoute\nimport com.looker.kenko.R\nimport com.looker.kenko.data.StringHandler\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.data.repository.ExerciseRepo\nimport com.looker.kenko.ui.addEditExercise.navigation.AddEditExerciseRoute\nimport com.looker.kenko.utils.asStateFlow\nimport com.looker.kenko.utils.isValidUrl\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport javax.inject.Inject\nimport kotlin.time.Duration.Companion.milliseconds\nimport kotlinx.coroutines.ExperimentalCoroutinesApi\nimport kotlinx.coroutines.FlowPreview\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.combine\nimport kotlinx.coroutines.flow.debounce\nimport kotlinx.coroutines.flow.flowOf\nimport kotlinx.coroutines.flow.mapLatest\nimport kotlinx.coroutines.launch\n\n@HiltViewModel\n@OptIn(ExperimentalCoroutinesApi::class, FlowPreview::class)\nclass AddEditExerciseViewModel @Inject constructor(\n    private val repo: ExerciseRepo,\n    private val stringHandler: StringHandler,\n    savedStateHandle: SavedStateHandle,\n) : ViewModel() {\n\n    private val routeData: AddEditExerciseRoute = savedStateHandle.toRoute()\n\n    private val exerciseId: Int? = routeData.id\n\n    private val defaultTarget: MuscleGroups? = routeData.target?.let { MuscleGroups.valueOf(it) }\n\n    private val targetMuscle = MutableStateFlow(MuscleGroups.Chest)\n\n    private val isIsometric = MutableStateFlow(false)\n\n    private val isReadOnly: Boolean = exerciseId != null\n\n    val snackbarState = SnackbarHostState()\n\n    var exerciseName: String by mutableStateOf(\"\")\n        private set\n\n    var reference: String by mutableStateOf(\"\")\n        private set\n\n    private val isReferenceInvalid = snapshotFlow { reference }\n        .debounce(200.milliseconds)\n        .mapLatest { it.isValidUrl() && it.isNotBlank() }\n\n    private val exerciseAlreadyExistError = snapshotFlow { exerciseName }\n        .debounce(200.milliseconds)\n        .mapLatest { repo.isExerciseAvailable(it) && !isReadOnly }\n\n    val state = combine(\n        targetMuscle,\n        isIsometric,\n        flowOf(isReadOnly),\n        exerciseAlreadyExistError,\n        isReferenceInvalid,\n    ) { target, isometric, readOnly, alreadyExist, referenceInvalid ->\n        AddEditExerciseUiState(\n            targetMuscle = target,\n            isIsometric = isometric,\n            isReadOnly = readOnly,\n            isError = alreadyExist,\n            isReferenceInvalid = referenceInvalid,\n        )\n    }.asStateFlow(\n        AddEditExerciseUiState(\n            targetMuscle = MuscleGroups.Chest,\n            isIsometric = false,\n            isError = false,\n            isReadOnly = false,\n            isReferenceInvalid = false,\n        ),\n    )\n\n    fun setName(value: String) {\n        exerciseName = value\n    }\n\n    fun addReference(value: String) {\n        reference = value\n    }\n\n    fun setTargetMuscle(value: MuscleGroups) {\n        viewModelScope.launch {\n            targetMuscle.emit(value)\n        }\n    }\n\n    fun setIsometric(value: Boolean) {\n        viewModelScope.launch {\n            isIsometric.emit(value)\n        }\n    }\n\n    fun addNewExercise(onDone: () -> Unit) {\n        viewModelScope.launch {\n            if (exerciseName.isBlank()) {\n                snackbarState.showSnackbar(stringHandler.getString(R.string.error_exercise_name_empty))\n                return@launch\n            }\n            if (state.value.isReferenceInvalid) {\n                snackbarState.showSnackbar(stringHandler.getString(R.string.error_invalid_reference_format))\n                return@launch\n            }\n            repo.upsert(\n                Exercise(\n                    name = exerciseName,\n                    target = targetMuscle.value,\n                    reference = reference.ifBlank { null },\n                    isIsometric = isIsometric.value,\n                    id = exerciseId,\n                ),\n            )\n            onDone()\n        }\n    }\n\n    init {\n        viewModelScope.launch {\n            if (exerciseId != null) {\n                val exercise = repo.get(exerciseId)\n                exercise?.let {\n                    setName(it.name)\n                    addReference(it.reference ?: \"\")\n                    setIsometric(it.isIsometric)\n                    setTargetMuscle(it.target)\n                }\n            } else {\n                if (routeData.name != null) setName(routeData.name)\n                if (defaultTarget != null) setTargetMuscle(defaultTarget)\n            }\n        }\n    }\n}\n\n@Stable\ndata class AddEditExerciseUiState(\n    val targetMuscle: MuscleGroups,\n    val isIsometric: Boolean,\n    val isError: Boolean,\n    val isReadOnly: Boolean,\n    val isReferenceInvalid: Boolean,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/addEditExercise/navigation/AddEditExerciseNavigation.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.addEditExercise.navigation\n\nimport androidx.navigation.NavController\nimport androidx.navigation.NavGraphBuilder\nimport androidx.navigation.NavOptions\nimport androidx.navigation.compose.composable\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.ui.addEditExercise.AddEditExercise\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class AddEditExerciseRoute(\n    val id: Int? = null,\n    val name: String? = null,\n    val target: String? = null,\n)\n\nfun NavController.navigateToAddEditExercise(\n    id: Int? = null,\n    name: String? = null,\n    target: MuscleGroups? = null,\n    navOptions: NavOptions? = null,\n) {\n    navigate(AddEditExerciseRoute(id, name, target?.name), navOptions)\n}\n\nfun NavGraphBuilder.addEditExercise(\n    onBackPress: () -> Unit,\n) {\n    composable<AddEditExerciseRoute> {\n        AddEditExercise(onBackPress, onBackPress)\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/addSet/AddSet.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.addSet\n\nimport androidx.compose.animation.core.Animatable\nimport androidx.compose.foundation.Canvas\nimport androidx.compose.foundation.interaction.MutableInteractionSource\nimport androidx.compose.foundation.interaction.collectIsPressedAsState\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.RowScope\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.requiredHeight\nimport androidx.compose.foundation.layout.size\nimport androidx.compose.foundation.layout.wrapContentHeight\nimport androidx.compose.foundation.shape.CircleShape\nimport androidx.compose.material3.ButtonDefaults\nimport androidx.compose.material3.ButtonGroupDefaults\nimport androidx.compose.material3.ExperimentalMaterial3ExpressiveApi\nimport androidx.compose.material3.FilledTonalIconButton\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialShapes\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.OutlinedToggleButton\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TextButton\nimport androidx.compose.material3.ToggleButtonDefaults\nimport androidx.compose.material3.toPath\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.LaunchedEffect\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Alignment.Companion.CenterHorizontally\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.geometry.Size\nimport androidx.compose.ui.geometry.center\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.Matrix\nimport androidx.compose.ui.graphics.Path\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.semantics.Role\nimport androidx.compose.ui.semantics.role\nimport androidx.compose.ui.semantics.semantics\nimport androidx.compose.ui.unit.dp\nimport androidx.compose.ui.zIndex\nimport androidx.graphics.shapes.Morph\nimport androidx.graphics.shapes.RoundedPolygon\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport com.looker.kenko.R\nimport com.looker.kenko.data.local.model.SetType\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.repDurationStringRes\nimport com.looker.kenko.ui.addSet.AddSetViewModel.FloatTransformation\nimport com.looker.kenko.ui.addSet.AddSetViewModel.IntTransformation\nimport com.looker.kenko.ui.addSet.components.DraggableTextField\nimport com.looker.kenko.ui.addSet.components.rememberDraggableTextFieldState\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport kotlinx.coroutines.launch\n\nprivate val incrementButtonModifier = Modifier\n    .height(48.dp)\n    .zIndex(0f)\n\nprivate val zIndexModifier = Modifier.zIndex(1F)\n\n@Composable\nfun AddSet(exercise: Exercise, onDone: () -> Unit) {\n    val viewModel: AddSetViewModel =\n        hiltViewModel<AddSetViewModel, AddSetViewModel.AddSetViewModelFactory>(key = exercise.name) {\n            it.create(exercise.id!!)\n        }\n    Column(\n        modifier = Modifier\n            .padding(horizontal = 16.dp)\n            .wrapContentHeight(),\n    ) {\n        Spacer(modifier = Modifier.height(16.dp))\n        AddSetHeader(\n            modifier = Modifier.fillMaxWidth(),\n            exerciseName = exercise.name,\n            onClick = {\n                viewModel.addSet()\n                onDone()\n            },\n        )\n\n        Spacer(modifier = Modifier.height(16.dp))\n\n        SetTypeSelector(\n            modifier = Modifier.align(CenterHorizontally),\n            selected = viewModel.selectedSetType,\n            onSelect = viewModel::setSetType,\n        )\n\n        Spacer(modifier = Modifier.height(16.dp))\n\n        SwipeableTextField(\n            modifier = Modifier.align(CenterHorizontally),\n        ) {\n            TextButton(\n                modifier = incrementButtonModifier,\n                onClick = { viewModel.addRep(-1) },\n            ) {\n                Text(text = stringResource(R.string.label_minus_int, 1))\n            }\n            val reps = rememberDraggableTextFieldState(viewModel.repsBoundReached)\n            DraggableTextField(\n                dragState = reps,\n                textFieldState = viewModel.reps,\n                inputTransformation = IntTransformation,\n                supportingText = stringResource(exercise.repDurationStringRes),\n                modifier = zIndexModifier,\n            )\n            TextButton(\n                modifier = incrementButtonModifier,\n                onClick = { viewModel.addRep(1) },\n            ) {\n                Text(text = stringResource(R.string.label_plus_int, 1))\n            }\n            TextButton(\n                modifier = incrementButtonModifier,\n                onClick = { viewModel.addRep(5) },\n            ) {\n                Text(text = stringResource(R.string.label_plus_int, 5))\n            }\n        }\n        Spacer(modifier = Modifier.height(24.dp))\n        SwipeableTextField(\n            modifier = Modifier.align(CenterHorizontally),\n        ) {\n            TextButton(\n                modifier = incrementButtonModifier,\n                onClick = { viewModel.addWeight(-1F) },\n            ) {\n                Text(text = stringResource(R.string.label_minus_int, 1F))\n            }\n            val weights = rememberDraggableTextFieldState(viewModel.weightsBoundReached)\n            DraggableTextField(\n                dragState = weights,\n                textFieldState = viewModel.weights,\n                supportingText = stringResource(R.string.label_weight),\n                inputTransformation = FloatTransformation,\n                modifier = zIndexModifier,\n            )\n            TextButton(\n                modifier = incrementButtonModifier,\n                onClick = { viewModel.addWeight(1F) },\n            ) {\n                Text(text = stringResource(R.string.label_plus_int, 1F))\n            }\n            TextButton(\n                modifier = incrementButtonModifier,\n                onClick = { viewModel.addWeight(5F) },\n            ) {\n                Text(text = stringResource(R.string.label_plus_int, 5F))\n            }\n        }\n        Spacer(modifier = Modifier.height(36.dp))\n    }\n}\n\n@Composable\nprivate fun AddSetHeader(\n    exerciseName: String,\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Row(\n        modifier = modifier,\n        horizontalArrangement = Arrangement.SpaceBetween,\n        verticalAlignment = Alignment.CenterVertically,\n    ) {\n        Column(modifier = Modifier.weight(1F)) {\n            Text(\n                text = stringResource(R.string.label_add_set_for).uppercase(),\n                style = MaterialTheme.typography.titleMedium,\n                color = MaterialTheme.colorScheme.outline,\n            )\n            Text(\n                text = exerciseName,\n                style = MaterialTheme.typography.displaySmall,\n                color = MaterialTheme.colorScheme.tertiary,\n            )\n        }\n        FilledTonalIconButton(onClick = onClick) {\n            Icon(\n                painter = KenkoIcons.Done,\n                contentDescription = \"\",\n            )\n        }\n    }\n}\n\n@Composable\nprivate fun SwipeableTextField(\n    modifier: Modifier = Modifier,\n    content: @Composable RowScope.() -> Unit,\n) {\n    Surface(\n        modifier = modifier.requiredHeight(48.dp),\n        shape = CircleShape,\n        color = MaterialTheme.colorScheme.surfaceContainerHigh,\n    ) {\n        Row(\n            verticalAlignment = Alignment.CenterVertically,\n            content = content,\n        )\n    }\n}\n\n@OptIn(ExperimentalMaterial3ExpressiveApi::class)\n@Composable\nprivate fun SetTypeSelector(\n    selected: SetType,\n    onSelect: (SetType) -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    val options = listOf(SetType.Standard, SetType.Drop, SetType.RestPause)\n    Row(\n        modifier.padding(horizontal = 8.dp),\n        horizontalArrangement = Arrangement.spacedBy(ButtonGroupDefaults.ConnectedSpaceBetween),\n    ) {\n        options.forEachIndexed { index, type ->\n            val interactionSource = remember { MutableInteractionSource() }\n            val checked = selected == type\n            OutlinedToggleButton(\n                checked = checked,\n                onCheckedChange = { onSelect(type) },\n                interactionSource = interactionSource,\n                modifier = Modifier.semantics { role = Role.RadioButton },\n                border = if (checked) ButtonDefaults.outlinedButtonBorder(true) else null,\n                colors = ToggleButtonDefaults.outlinedToggleButtonColors(\n                    checkedContainerColor = MaterialTheme.colorScheme.surfaceContainerHigh,\n                    checkedContentColor = MaterialTheme.colorScheme.onSurface,\n                ),\n                shapes =\n                    when (index) {\n                        0 -> ButtonGroupDefaults.connectedLeadingButtonShapes()\n                        options.lastIndex -> ButtonGroupDefaults.connectedTrailingButtonShapes()\n                        else -> ButtonGroupDefaults.connectedMiddleButtonShapes()\n                    },\n            ) {\n                SetTypeIndicator(\n                    selected = checked,\n                    type = type,\n                    interactionSource = interactionSource,\n                    modifier = Modifier.size(12.dp),\n                )\n                Spacer(Modifier.size(ToggleButtonDefaults.IconSpacing))\n                Text(text = setTypeLabel(type))\n            }\n        }\n    }\n}\n\n@OptIn(ExperimentalMaterial3ExpressiveApi::class)\n@Composable\nprivate fun SetTypeIndicator(\n    selected: Boolean,\n    type: SetType,\n    interactionSource: MutableInteractionSource,\n    modifier: Modifier = Modifier,\n) {\n    val isPressed by interactionSource.collectIsPressedAsState()\n    val morphAnimatable = remember { Animatable(0F) }\n    val morph = remember { Morph(MaterialShapes.Circle, setTypeShape(type)) }\n    val path = remember { Path() }\n\n    LaunchedEffect(isPressed || selected) {\n        launch {\n            if (isPressed || selected) {\n                morphAnimatable.animateTo(1F)\n            } else {\n                morphAnimatable.animateTo(0F)\n            }\n        }\n    }\n\n    Canvas(modifier) {\n        drawPath(\n            color = setTypeColor(type),\n            path = processPath(\n                path = morph.toPath(progress = morphAnimatable.value, path = path),\n                size = size,\n                scaleFactor = 1F,\n            ),\n        )\n    }\n}\n\nprivate fun processPath(\n    path: Path,\n    size: Size,\n    scaleFactor: Float,\n    scaleMatrix: Matrix = Matrix(),\n): Path {\n    scaleMatrix.reset()\n\n    scaleMatrix.apply { scale(x = size.width * scaleFactor, y = size.height * scaleFactor) }\n\n    // Scale to the desired size.\n    path.transform(scaleMatrix)\n\n    // Translate the path to align its center with the available size center.\n    path.translate(size.center - path.getBounds().center)\n    return path\n}\n\n@OptIn(ExperimentalMaterial3ExpressiveApi::class)\nprivate fun setTypeShape(type: SetType): RoundedPolygon = when (type) {\n    SetType.Standard -> MaterialShapes.Ghostish\n    SetType.Drop -> MaterialShapes.Arrow\n    SetType.RestPause -> MaterialShapes.Bun\n}\n\nprivate fun setTypeColor(type: SetType): Color = when (type) {\n    SetType.Standard -> Color(0xFF2196F3) // Blue\n    SetType.Drop -> Color(0xFFFFC107) // Amber/Yellow\n    SetType.RestPause -> Color(0xFFFF7043) // Red/Orange (Deep Orange)\n}\n\nprivate fun setTypeLabel(type: SetType): String = when (type) {\n    SetType.Standard -> \"Standard\"\n    SetType.Drop -> \"Drop\"\n    SetType.RestPause -> \"Rest-Pause\"\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/addSet/AddSetViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.addSet\n\nimport androidx.compose.foundation.text.KeyboardOptions\nimport androidx.compose.foundation.text.input.InputTransformation\nimport androidx.compose.foundation.text.input.TextFieldBuffer\nimport androidx.compose.foundation.text.input.TextFieldState\nimport androidx.compose.foundation.text.input.setTextAndPlaceCursorAtEnd\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.text.input.KeyboardType\nimport androidx.core.text.isDigitsOnly\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport com.looker.kenko.data.local.model.SetType\nimport com.looker.kenko.data.model.RepsInReserve\nimport com.looker.kenko.data.model.localDate\nimport com.looker.kenko.data.repository.SessionRepo\nimport com.looker.kenko.ui.addSet.components.BoundReached\nimport com.looker.kenko.ui.addSet.components.Direction\nimport dagger.assisted.Assisted\nimport dagger.assisted.AssistedFactory\nimport dagger.assisted.AssistedInject\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport kotlinx.coroutines.launch\n\n@HiltViewModel(assistedFactory = AddSetViewModel.AddSetViewModelFactory::class)\nclass AddSetViewModel @AssistedInject constructor(\n    private val sessionRepo: SessionRepo,\n    @Assisted private val id: Int,\n) : ViewModel() {\n\n    val reps: TextFieldState = TextFieldState(\"12\")\n    val weights: TextFieldState = TextFieldState(\"20.0\")\n\n    var selectedSetType by mutableStateOf(SetType.Standard)\n        private set\n\n    fun setSetType(type: SetType) {\n        selectedSetType = type\n    }\n\n    fun addRep(value: Int) {\n        reps.setTextAndPlaceCursorAtEnd((repInt + value).toString())\n    }\n\n    fun addWeight(value: Float) {\n        weights.setTextAndPlaceCursorAtEnd((weightFloat + value).toString())\n    }\n\n    val repsBoundReached = BoundReached { direction ->\n        when (direction) {\n            Direction.Left -> addRep(-1)\n            Direction.Right -> addRep(1)\n        }\n    }\n\n    val weightsBoundReached = BoundReached { direction ->\n        when (direction) {\n            Direction.Left -> addWeight(-1F)\n            Direction.Right -> addWeight(1F)\n        }\n    }\n\n    fun addSet() {\n        viewModelScope.launch {\n            val sessionId = sessionRepo.getSessionIdOrCreate(localDate)\n            sessionRepo.addSet(\n                sessionId = sessionId,\n                exerciseId = id,\n                weight = weightFloat,\n                reps = repInt,\n                setType = selectedSetType,\n                rir = RepsInReserve(2),\n            )\n        }\n    }\n\n    private inline val repInt: Int\n        get() = reps.text.toString().toIntOrNull() ?: 0\n\n    private inline val weightFloat: Float\n        get() = weights.text.toString().toFloatOrNull() ?: 0F\n\n    @AssistedFactory\n    interface AddSetViewModelFactory {\n        fun create(id: Int): AddSetViewModel\n    }\n\n    object IntTransformation : InputTransformation {\n        override val keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number)\n        override fun TextFieldBuffer.transformInput() {\n            if (!asCharSequence().isDigitsOnly()) {\n                revertAllChanges()\n            }\n        }\n    }\n\n    object FloatTransformation : InputTransformation {\n        override val keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number)\n        override fun TextFieldBuffer.transformInput() {\n            toString().toFloatOrNull() ?: revertAllChanges()\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/addSet/components/DragState.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.addSet.components\n\nimport androidx.compose.animation.core.Animatable\nimport androidx.compose.animation.core.AnimationVector1D\nimport androidx.compose.animation.core.Spring\nimport androidx.compose.animation.core.spring\nimport androidx.compose.foundation.gestures.DraggableState\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.Immutable\nimport androidx.compose.runtime.Stable\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.rememberCoroutineScope\nimport androidx.compose.ui.platform.LocalDensity\nimport androidx.compose.ui.unit.Density\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.ui.components.DpRange\nimport com.looker.kenko.ui.components.contains\nimport com.looker.kenko.ui.components.rangeTo\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.delay\nimport kotlinx.coroutines.launch\n\nprivate const val OFFSET_DAMPING = 0.998F\n\n@Stable\nclass DragState(\n    density: Density,\n    swipeRange: DpRange,\n    noIncrementRange: DpRange,\n    incrementDelay: Long,\n    private val events: BoundReached,\n    private val scope: CoroutineScope,\n) {\n\n    val offset: Animatable<Float, AnimationVector1D> = Animatable(0F)\n\n    private val highBouncySpring = spring<Float>(Spring.DampingRatioHighBouncy)\n    private val mediumBouncySpring = spring<Float>(Spring.DampingRatioMediumBouncy)\n\n    val state: DraggableState = DraggableState { delta ->\n        val targetOffset = offset.value + delta\n        val adjustedOffset = OFFSET_DAMPING * targetOffset\n        scope.launch { offset.animateTo(adjustedOffset, highBouncySpring) }\n    }\n\n    @Stable\n    fun onDragStop(velocity: Float) {\n        scope.launch {\n            offset.animateTo(\n                targetValue = 0F,\n                animationSpec = mediumBouncySpring,\n                initialVelocity = velocity,\n            )\n        }\n    }\n\n    init {\n        with(density) {\n            offset.updateBounds(\n                swipeRange.start.toPx(),\n                swipeRange.end.toPx(),\n            )\n            scope.launch {\n                while (true) {\n                    val isOutsideBounds = offset.value !in noIncrementRange\n                    if (isOutsideBounds) {\n                        val direction = if (offset.value > 0) Direction.Right else Direction.Left\n                        events.onReached(direction)\n                    }\n                    delay(incrementDelay)\n                }\n            }\n        }\n    }\n}\n\n@Composable\nfun rememberDraggableTextFieldState(\n    onBoundReached: BoundReached,\n    incrementDelay: Long = 200,\n    swipeRange: DpRange = (-48).dp..96.dp,\n    noIncrementRange: DpRange = (-24).dp..24.dp,\n): DragState {\n    val density = LocalDensity.current\n    val scope = rememberCoroutineScope()\n    return remember {\n        DragState(\n            density = density,\n            swipeRange = swipeRange,\n            noIncrementRange = noIncrementRange,\n            events = onBoundReached,\n            scope = scope,\n            incrementDelay = incrementDelay,\n        )\n    }\n}\n\n@Stable\nfun interface BoundReached {\n    fun onReached(direction: Direction)\n}\n\n@JvmInline\n@Immutable\nvalue class Direction private constructor(val value: Int) {\n    companion object {\n        val Left = Direction(1)\n        val Right = Direction(2)\n    }\n\n    override fun toString(): String {\n        return when (this) {\n            Left -> \"Left\"\n            Right -> \"Right\"\n            else -> \"Invalid\"\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/addSet/components/DraggableTextField.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.addSet.components\n\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.gestures.Orientation\nimport androidx.compose.foundation.gestures.draggable\nimport androidx.compose.foundation.layout.requiredHeight\nimport androidx.compose.foundation.layout.requiredWidthIn\nimport androidx.compose.foundation.layout.wrapContentWidth\nimport androidx.compose.foundation.shape.CircleShape\nimport androidx.compose.foundation.text.BasicTextField\nimport androidx.compose.foundation.text.KeyboardOptions\nimport androidx.compose.foundation.text.input.InputTransformation\nimport androidx.compose.foundation.text.input.TextFieldLineLimits\nimport androidx.compose.foundation.text.input.TextFieldState\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.draw.clip\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.graphicsLayer\nimport androidx.compose.ui.text.TextStyle\nimport androidx.compose.ui.text.input.ImeAction\nimport androidx.compose.ui.text.input.KeyboardType\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.ui.components.kenkoTextDecorator\n\n@Composable\nfun DraggableTextField(\n    dragState: DragState,\n    textFieldState: TextFieldState,\n    supportingText: String,\n    inputTransformation: InputTransformation,\n    modifier: Modifier = Modifier,\n    containerColor: Color = MaterialTheme.colorScheme.secondaryContainer,\n    textColor: Color = MaterialTheme.colorScheme.onSecondaryContainer,\n    style: TextStyle = MaterialTheme.typography.titleMedium.copy(color = textColor),\n    options: KeyboardOptions = KeyboardOptions(\n        keyboardType = KeyboardType.Number,\n        imeAction = ImeAction.Next,\n    ),\n) {\n    BasicTextField(\n        modifier = modifier\n            .requiredHeight(40.dp)\n            .requiredWidthIn(40.dp)\n            .wrapContentWidth()\n            .graphicsLayer { translationX = dragState.offset.value }\n            .draggable(\n                orientation = Orientation.Horizontal,\n                state = dragState.state,\n                startDragImmediately = true,\n                onDragStopped = { dragState.onDragStop(it) },\n            )\n            .clip(CircleShape)\n            .background(containerColor),\n        state = textFieldState,\n        lineLimits = TextFieldLineLimits.SingleLine,\n        inputTransformation = inputTransformation,\n        cursorBrush = SolidColor(MaterialTheme.colorScheme.onSecondaryContainer),\n        keyboardOptions = options,\n        decorator = kenkoTextDecorator(supportingText),\n        textStyle = style.copy(textAlign = TextAlign.Center),\n    )\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/Border.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.foundation.BorderStroke\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.unit.Dp\nimport androidx.compose.ui.unit.dp\n\nval KenkoBorderWidth: Dp = 1.4.dp\n\nval PrimaryBorder: BorderStroke\n    @Composable\n    get() = BorderStroke(KenkoBorderWidth, MaterialTheme.colorScheme.primary)\n\nval SecondaryBorder: BorderStroke\n    @Composable\n    get() = BorderStroke(KenkoBorderWidth, MaterialTheme.colorScheme.secondary)\n\nval OutlineBorder: BorderStroke\n    @Composable\n    get() = BorderStroke(KenkoBorderWidth, MaterialTheme.colorScheme.secondary)\n\nval OnSurfaceBorder: BorderStroke\n    @Composable\n    get() = BorderStroke(KenkoBorderWidth, MaterialTheme.colorScheme.onSurface)\n\nval OnSurfaceVariantBorder: BorderStroke\n    @Composable\n    get() = BorderStroke(KenkoBorderWidth, MaterialTheme.colorScheme.onSurfaceVariant)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/Button.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.size\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.material3.Button\nimport androidx.compose.material3.ButtonDefaults\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.IconButton\nimport androidx.compose.material3.IconButtonColors\nimport androidx.compose.material3.IconButtonDefaults\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.ui.theme.KenkoIcons\n\n@Composable\nfun KenkoButton(\n    modifier: Modifier = Modifier,\n    onClick: () -> Unit,\n    label: @Composable () -> Unit,\n    icon: @Composable () -> Unit,\n) {\n    Button(\n        modifier = modifier,\n        onClick = onClick,\n        contentPadding = PaddingValues(\n            vertical = 24.dp,\n            horizontal = 40.dp\n        ),\n    ) {\n        label()\n        Spacer(modifier = Modifier.width(8.dp))\n        icon()\n    }\n}\n\n@Composable\nfun SecondaryKenkoButton(\n    modifier: Modifier = Modifier,\n    onClick: () -> Unit,\n    label: @Composable () -> Unit,\n    icon: @Composable () -> Unit,\n) {\n    Button(\n        modifier = modifier,\n        onClick = onClick,\n        colors = ButtonDefaults.buttonColors(\n            containerColor = MaterialTheme.colorScheme.secondaryContainer,\n            contentColor = MaterialTheme.colorScheme.onSecondaryContainer,\n        ),\n        contentPadding = PaddingValues(\n            vertical = 24.dp,\n            horizontal = 40.dp\n        ),\n    ) {\n        label()\n        Spacer(modifier = Modifier.width(8.dp))\n        icon()\n    }\n}\n\n@Composable\nfun TertiaryKenkoButton(\n    modifier: Modifier = Modifier,\n    onClick: () -> Unit,\n    label: @Composable () -> Unit,\n    icon: @Composable () -> Unit,\n) {\n    Button(\n        modifier = modifier,\n        onClick = onClick,\n        colors = ButtonDefaults.buttonColors(\n            containerColor = MaterialTheme.colorScheme.tertiary,\n            contentColor = MaterialTheme.colorScheme.onTertiary,\n        ),\n        contentPadding = PaddingValues(\n            vertical = 24.dp,\n            horizontal = 40.dp\n        ),\n    ) {\n        label()\n        Spacer(modifier = Modifier.width(8.dp))\n        Box(Modifier.size(18.dp)) {\n            icon()\n        }\n    }\n}\n\n@Composable\nfun BackButton(\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n    colors: IconButtonColors = IconButtonDefaults.iconButtonColors(),\n) {\n    IconButton(\n        modifier = modifier,\n        colors = colors,\n        onClick = onClick,\n    ) {\n        Icon(painter = KenkoIcons.ArrowBack, contentDescription = null)\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/Days.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.animation.animateColor\nimport androidx.compose.animation.core.animateDp\nimport androidx.compose.animation.core.updateTransition\nimport androidx.compose.foundation.clickable\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.lazy.LazyRow\nimport androidx.compose.foundation.lazy.items\nimport androidx.compose.foundation.shape.RoundedCornerShape\nimport androidx.compose.material3.LocalContentColor\nimport androidx.compose.material3.LocalTextStyle\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.CompositionLocalProvider\nimport androidx.compose.runtime.getValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.draw.drawBehind\nimport androidx.compose.ui.graphics.graphicsLayer\nimport androidx.compose.ui.unit.dp\nimport kotlinx.datetime.DayOfWeek\n\n@Composable\nfun HorizontalDaySelector(\n    item: @Composable (DayOfWeek) -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    LazyRow(\n        modifier = modifier.fillMaxWidth(),\n        horizontalArrangement = Arrangement.Center,\n    ) {\n        items(DayOfWeek.entries) {\n            item(it)\n        }\n    }\n}\n\n@Composable\nfun DaySelectorChip(\n    selected: Boolean,\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n    content: @Composable () -> Unit,\n) {\n    val transition = updateTransition(selected, label = \"Day Selector\")\n    val background by transition.animateColor(label = \"Color\") {\n        if (it) {\n            MaterialTheme.colorScheme.secondaryContainer\n        } else {\n            MaterialTheme.colorScheme.surfaceContainer\n        }\n    }\n    val corner by transition.animateDp(label = \"Corner\") {\n        if (it) {\n            28.dp\n        } else {\n            12.dp\n        }\n    }\n    Box(\n        modifier = Modifier\n            .padding(horizontal = 4.dp)\n            .graphicsLayer {\n                clip = true\n                shape = RoundedCornerShape(corner)\n            }\n            .drawBehind {\n                drawRect(color = background)\n            }\n            .clickable(onClick = onClick)\n            .padding(vertical = 8.dp, horizontal = 12.dp)\n            .then(modifier),\n        contentAlignment = Alignment.Center,\n    ) {\n        CompositionLocalProvider(\n            LocalTextStyle provides MaterialTheme.typography.labelLarge,\n            LocalContentColor provides MaterialTheme.colorScheme.onSurface,\n            content = content,\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/Dp.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.runtime.Immutable\nimport androidx.compose.runtime.Stable\nimport androidx.compose.ui.unit.Density\nimport androidx.compose.ui.unit.Dp\nimport androidx.compose.ui.util.packFloats\nimport androidx.compose.ui.util.unpackFloat1\nimport androidx.compose.ui.util.unpackFloat2\n\n@Immutable\n@JvmInline\nvalue class DpRange(private val packedFloat: Long) {\n\n    @Stable\n    val start: Dp get() = Dp(unpackFloat1(packedFloat))\n\n    @Stable\n    val end: Dp get() = Dp(unpackFloat2(packedFloat))\n\n}\n\noperator fun Dp.rangeTo(other: Dp): DpRange = DpRange(packFloats(value, other.value))\n\ncontext(density: Density)\noperator fun DpRange.contains(other: Float): Boolean = with(density) {\n    other > start.toPx() && other < end.toPx()\n}\n\noperator fun DpRange.contains(other: Dp): Boolean = other > start && other < end\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/EmptyPageIndicator.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.material3.ContainedLoadingIndicator\nimport androidx.compose.material3.ExperimentalMaterial3ExpressiveApi\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.unit.dp\n\n@OptIn(ExperimentalMaterial3ExpressiveApi::class)\n@Composable\nfun EmptyPage(\n    text: String,\n    modifier: Modifier = Modifier,\n    hero: @Composable () -> Unit = { ContainedLoadingIndicator() },\n) {\n    Column(\n        verticalArrangement = Arrangement.Center,\n        horizontalAlignment = Alignment.CenterHorizontally,\n        modifier = modifier.fillMaxSize(),\n    ) {\n        hero()\n        Spacer(Modifier.height(12.dp))\n        Text(\n            text = text,\n            style = MaterialTheme.typography.titleMedium,\n            color = MaterialTheme.colorScheme.outline,\n        )\n    }\n}"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/Labels.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.res.stringArrayResource\nimport androidx.compose.ui.text.TextStyle\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.R\n\n@Composable\nfun LiftingQuotes(\n    modifier: Modifier = Modifier,\n    color: Color = MaterialTheme.colorScheme.onSurfaceVariant,\n    style: TextStyle = MaterialTheme.typography.labelSmall,\n) {\n    val array = stringArrayResource(R.array.label_lifting_quotes)\n    val randomQuote = remember {\n        array.random()\n    }\n    Text(\n        text = randomQuote,\n        style = style,\n        color = color,\n        modifier = Modifier\n            .padding(top = 8.dp, bottom = 6.dp)\n            .then(modifier),\n    )\n}\n\n@Composable\nfun HealthQuotes(\n    modifier: Modifier = Modifier,\n    color: Color = MaterialTheme.colorScheme.onSurfaceVariant,\n    style: TextStyle = MaterialTheme.typography.labelSmall,\n) {\n    val array = stringArrayResource(R.array.label_health_quotes)\n    val randomQuote = remember {\n        array.random()\n    }\n    Text(\n        text = randomQuote,\n        style = style,\n        color = color,\n        modifier = Modifier\n            .padding(top = 8.dp, bottom = 6.dp)\n            .then(modifier),\n    )\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/List.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.lazy.LazyListScope\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.unit.Dp\nimport androidx.compose.ui.unit.dp\n\nprivate val FAB_PADDING = 88.dp\n\nfun LazyListScope.endItem(\n    height: Dp = FAB_PADDING,\n) {\n    item {\n        Spacer(Modifier.height(height))\n        // TODO: Add some item here to make list end look good behind FAB\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/ReferenceItem.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.material3.FilledTonalIconButton\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.R\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\n\n@Composable\nfun ReferenceItem(\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Surface(\n        modifier = modifier,\n        shape = MaterialTheme.shapes.extraLarge,\n        color = MaterialTheme.colorScheme.surfaceContainer,\n        onClick = onClick\n    ) {\n        Row(\n            modifier = Modifier.padding(16.dp),\n            verticalAlignment = Alignment.CenterVertically\n        ) {\n            Icon(painter = KenkoIcons.Lightbulb, contentDescription = null)\n            Spacer(modifier = Modifier.width(8.dp))\n            Text(\n                text = stringResource(R.string.label_reference),\n                style = MaterialTheme.typography.titleMedium\n            )\n            Spacer(modifier = Modifier.weight(1F))\n            FilledTonalIconButton(onClick = onClick) {\n                Icon(painter = KenkoIcons.ArrowOutward, contentDescription = null)\n            }\n        }\n    }\n}\n\n@Preview\n@Composable\nprivate fun ReferenceItemPreview() {\n    KenkoTheme {\n        ReferenceItem(onClick = {})\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/Snackbar.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.foundation.layout.heightIn\nimport androidx.compose.foundation.shape.CircleShape\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Snackbar\nimport androidx.compose.material3.SnackbarData\nimport androidx.compose.material3.SnackbarDuration\nimport androidx.compose.material3.SnackbarVisuals\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.tooling.preview.PreviewLightDark\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.ui.theme.KenkoTheme\n\n@Composable\nfun ErrorSnackbar(\n    data: SnackbarData,\n    modifier: Modifier = Modifier,\n) {\n    Snackbar(\n        modifier = modifier.heightIn(84.dp),\n        shape = CircleShape,\n        containerColor = MaterialTheme.colorScheme.error,\n        contentColor = MaterialTheme.colorScheme.onError,\n        dismissActionContentColor = MaterialTheme.colorScheme.onError,\n        snackbarData = data,\n    )\n}\n\n@PreviewLightDark\n@Composable\nprivate fun SnackbarPreview() {\n    KenkoTheme {\n        ErrorSnackbar(\n            data = object : SnackbarData {\n                override val visuals: SnackbarVisuals\n                    get() = object : SnackbarVisuals {\n                        override val actionLabel: String?\n                            get() = null\n                        override val duration: SnackbarDuration\n                            get() = SnackbarDuration.Long\n                        override val message: String\n                            get() = \"Error\"\n                        override val withDismissAction: Boolean\n                            get() = false\n                    }\n\n                override fun dismiss() {}\n\n                override fun performAction() {}\n            }\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/SwipeToDeleteBox.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.animation.animateColorAsState\nimport androidx.compose.animation.core.tween\nimport androidx.compose.foundation.clickable\nimport androidx.compose.foundation.gestures.AnchoredDraggableDefaults\nimport androidx.compose.foundation.gestures.AnchoredDraggableState\nimport androidx.compose.foundation.gestures.DraggableAnchors\nimport androidx.compose.foundation.gestures.Orientation\nimport androidx.compose.foundation.gestures.anchoredDraggable\nimport androidx.compose.foundation.gestures.snapTo\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.IntrinsicSize\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.offset\nimport androidx.compose.foundation.layout.requiredWidth\nimport androidx.compose.foundation.shape.RoundedCornerShape\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.derivedStateOf\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.rememberCoroutineScope\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.draw.drawBehind\nimport androidx.compose.ui.geometry.Offset\nimport androidx.compose.ui.graphics.graphicsLayer\nimport androidx.compose.ui.input.nestedscroll.NestedScrollConnection\nimport androidx.compose.ui.input.nestedscroll.NestedScrollSource\nimport androidx.compose.ui.platform.LocalDensity\nimport androidx.compose.ui.unit.IntOffset\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport kotlinx.coroutines.launch\nimport kotlin.math.roundToInt\n\n@Composable\nfun SwipeToDeleteBox(\n    onDismiss: () -> Unit,\n    modifier: Modifier = Modifier,\n    content: @Composable () -> Unit,\n) {\n    val density = LocalDensity.current\n    val scope = rememberCoroutineScope()\n    val actionWidth = 96.dp\n    val actionWidthPx = with(density) { actionWidth.toPx() }\n    val anchors = remember {\n        DraggableAnchors {\n            DragPositions.Settle at 0F\n            DragPositions.End at actionWidthPx\n        }\n    }\n    val state = remember {\n        AnchoredDraggableState(\n            initialValue = DragPositions.Settle,\n            anchors = anchors,\n        )\n    }\n    val isOutsideBound by remember {\n        derivedStateOf {\n            state.currentValue == DragPositions.End\n        }\n    }\n    val background by animateColorAsState(\n        targetValue = if (isOutsideBound) {\n            MaterialTheme.colorScheme.errorContainer\n        } else {\n            MaterialTheme.colorScheme.surfaceContainer\n        },\n        label = \"\",\n    )\n    Box(\n        modifier = modifier\n            .height(IntrinsicSize.Min)\n            .drawBehind { drawRect(background) },\n    ) {\n        Box(\n            modifier = Modifier\n                .matchParentSize()\n                .align(Alignment.CenterEnd)\n                .clickable {\n                    scope.launch {\n                        state.snapTo(DragPositions.Settle)\n                        onDismiss()\n                    }\n                },\n            contentAlignment = Alignment.Center,\n        ) {\n            Icon(\n                modifier = Modifier\n                    .requiredWidth(actionWidth)\n                    .align(Alignment.CenterEnd),\n                painter = KenkoIcons.Delete,\n                tint = MaterialTheme.colorScheme.onErrorContainer,\n                contentDescription = null,\n            )\n        }\n        Box(\n            modifier = Modifier\n                .fillMaxWidth()\n                .offset {\n                    IntOffset(\n                        x = -state\n                            .requireOffset()\n                            .roundToInt(),\n                        y = 0,\n                    )\n                }\n                .graphicsLayer {\n                    val offset = state.requireOffset()\n                    val scale = 1 - (offset / actionWidthPx)\n                    val cornerRadius = actionWidthPx / 4F\n                    clip = true\n                    scaleX = scale.coerceAtLeast(0.9F)\n                    scaleY = scale.coerceAtLeast(0.9F)\n                    shape = RoundedCornerShape(cornerRadius * ((offset / actionWidthPx)))\n                }\n                .anchoredDraggable(\n                    state = state,\n                    orientation = Orientation.Horizontal,\n                    reverseDirection = true,\n                    flingBehavior = AnchoredDraggableDefaults.flingBehavior(\n                        state = state,\n                        positionalThreshold = { distance: Float -> distance * 0.5F },\n                        animationSpec = tween(),\n                    ),\n                ),\n        ) {\n            content()\n        }\n    }\n}\n\n@Composable\nfun disableScrollConnection() = remember {\n    object : NestedScrollConnection {\n        override fun onPostScroll(\n            consumed: Offset,\n            available: Offset,\n            source: NestedScrollSource,\n        ): Offset {\n            return available\n        }\n    }\n}\n\nprivate enum class DragPositions {\n    Settle,\n    End,\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/Targets.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.foundation.horizontalScroll\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.FlowRow\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.calculateEndPadding\nimport androidx.compose.foundation.layout.calculateStartPadding\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.foundation.lazy.LazyRow\nimport androidx.compose.foundation.lazy.items\nimport androidx.compose.foundation.rememberScrollState\nimport androidx.compose.material3.FilterChip\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.platform.LocalLayoutDirection\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.ui.exercises.string\nimport com.looker.kenko.ui.theme.KenkoTheme\n\nprivate val SortedTargets = MuscleGroups.entries.sortedBy { it.string }\nprivate val Targets = listOf(null) + SortedTargets\n\n@Composable\nfun FlowTargets(\n    modifier: Modifier = Modifier,\n    content: @Composable (MuscleGroups) -> Unit,\n) {\n    FlowRow(\n        horizontalArrangement = Arrangement.spacedBy(8.dp),\n        modifier = modifier,\n    ) {\n        SortedTargets.forEach { target ->\n            content(target)\n        }\n    }\n}\n\n@Composable\nfun LazyTargets(\n    modifier: Modifier = Modifier,\n    contentPadding: PaddingValues = PaddingValues(0.dp),\n    content: @Composable (MuscleGroups?) -> Unit,\n) {\n    LazyRow(\n        horizontalArrangement = Arrangement.spacedBy(8.dp),\n        contentPadding = contentPadding,\n        modifier = modifier,\n    ) {\n        items(Targets) { target ->\n            content(target)\n        }\n    }\n}\n\n@Composable\nfun TargetChip(\n    selected: Boolean,\n    onClick: () -> Unit,\n    text: String,\n    modifier: Modifier = Modifier,\n) {\n    FilterChip(\n        selected = selected,\n        onClick = onClick,\n        label = { Text(text = text) },\n        modifier = modifier,\n    )\n}\n\n@Composable\nfun HorizontalTargetChips(\n    target: MuscleGroups?,\n    onSelect: (MuscleGroups?) -> Unit,\n    modifier: Modifier = Modifier,\n    contentPadding: PaddingValues = PaddingValues(0.dp),\n) {\n    Row(\n        modifier = modifier\n            .fillMaxWidth()\n            .horizontalScroll(rememberScrollState())\n            .padding(bottom = 4.dp),\n    ) {\n        Spacer(modifier = Modifier.width(contentPadding.calculateStartPadding(LocalLayoutDirection.current)))\n        val sortedTargets = remember { Targets.sortedBy { it?.string } }\n        sortedTargets.forEachIndexed { index, muscle ->\n            FilterChip(\n                selected = target == muscle,\n                onClick = { onSelect(muscle) },\n                label = { Text(text = stringResource(muscle.string)) },\n            )\n            if (sortedTargets.lastIndex != index) {\n                Spacer(modifier = Modifier.width(8.dp))\n            }\n        }\n        Spacer(modifier = Modifier.width(contentPadding.calculateEndPadding(LocalLayoutDirection.current)))\n    }\n}\n\n@Preview(showBackground = true)\n@Composable\nprivate fun HorizontalTargetChipsPreview() {\n    KenkoTheme {\n        LazyTargets {\n            TargetChip(\n                selected = it == null,\n                onClick = {},\n                text = stringResource(it.string),\n                modifier = Modifier.padding(horizontal = 4.dp),\n            )\n        }\n    }\n}\n\n@Preview(showBackground = true)\n@Composable\nprivate fun FlowTargetChipsPreview() {\n    KenkoTheme {\n        FlowTargets {\n            TargetChip(\n                selected = false,\n                onClick = {},\n                text = stringResource(it.stringRes),\n                modifier = Modifier.padding(horizontal = 4.dp),\n            )\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/Text.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.foundation.basicMarquee\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.material3.LocalContentColor\nimport androidx.compose.material3.LocalTextStyle\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.LaunchedEffect\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.text.TextStyle\nimport androidx.compose.ui.unit.dp\nimport kotlinx.coroutines.delay\nimport kotlin.time.Duration\nimport kotlin.time.Duration.Companion.milliseconds\n\n@Composable\nfun TypingText(\n    text: String,\n    modifier: Modifier = Modifier,\n    startTyping: Boolean = true,\n    style: TextStyle = LocalTextStyle.current,\n    color: Color = LocalContentColor.current,\n    initialDelay: Duration = 100.milliseconds,\n    typingDelay: Duration = 50.milliseconds,\n    onCompleteListener: (() -> Unit)? = null,\n) {\n    var substringText by remember { mutableStateOf(\"\") }\n    val textArray = remember(text) { CharArray(text.length) }\n    LaunchedEffect(text, startTyping) {\n        if (startTyping) {\n            delay(initialDelay)\n            for (i in textArray.indices) {\n                textArray[i] = text[i]\n                substringText = textArray.concatToString()\n                delay(typingDelay)\n            }\n            onCompleteListener?.invoke()\n        }\n    }\n    Text(\n        modifier = modifier,\n        text = substringText,\n        style = style,\n        color = color,\n    )\n}\n\n@Composable\nfun TickerText(\n    text: String,\n    modifier: Modifier = Modifier,\n    style: TextStyle = MaterialTheme.typography.labelLarge,\n    color: Color = LocalContentColor.current,\n) {\n    val tickerMarquee = remember {\n        List(10) {\n            text\n        }.joinToString(\n            separator = \" ${Typography.bullet} \",\n            prefix = \" ${Typography.bullet} \",\n        )\n    }\n    Column(\n        modifier = modifier,\n        verticalArrangement = Arrangement.Center,\n    ) {\n        Text(\n            modifier = Modifier\n                .padding(vertical = 4.dp)\n                .basicMarquee(\n                    initialDelayMillis = 0,\n                    iterations = Int.MAX_VALUE,\n                ),\n            text = tickerMarquee,\n            style = style,\n            color = color,\n        )\n    }\n}\n\n@Composable\nfun TickerText(\n    texts: Array<String>,\n    modifier: Modifier = Modifier,\n    style: TextStyle = MaterialTheme.typography.labelLarge,\n    color: Color = LocalContentColor.current,\n) {\n    val tickerMarquee = remember {\n        texts.joinToString(\n            separator = \" ${Typography.bullet} \",\n            prefix = \" ${Typography.bullet} \",\n        )\n    }\n    Column(\n        modifier = modifier,\n        verticalArrangement = Arrangement.Center,\n    ) {\n        Text(\n            modifier = Modifier\n                .padding(vertical = 4.dp)\n                .basicMarquee(\n                    initialDelayMillis = 0,\n                    iterations = Int.MAX_VALUE,\n                ),\n            text = tickerMarquee,\n            style = style,\n            color = color,\n        )\n    }\n}\n\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/TextField.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.foundation.text.input.TextFieldDecorator\nimport androidx.compose.material3.HorizontalDivider\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TextFieldColors\nimport androidx.compose.material3.TextFieldDefaults\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.unit.dp\n\nfun kenkoTextDecorator(supportingText: String) = TextFieldDecorator {\n    val outlineColor = MaterialTheme.colorScheme.outline\n    Column(horizontalAlignment = Alignment.CenterHorizontally) {\n        Text(\n            text = supportingText,\n            style = MaterialTheme.typography.labelSmall,\n            color = outlineColor,\n        )\n        it()\n        HorizontalDivider(\n            modifier = Modifier.width(48.dp),\n            color = outlineColor,\n        )\n    }\n}\n\n@Composable\nfun kenkoTextFieldColor(): TextFieldColors = TextFieldDefaults.colors(\n    disabledIndicatorColor = Color.Transparent,\n    errorIndicatorColor = Color.Transparent,\n    focusedIndicatorColor = Color.Transparent,\n    unfocusedIndicatorColor = Color.Transparent,\n    errorContainerColor = MaterialTheme.colorScheme.errorContainer\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/Wave.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components\n\nimport androidx.annotation.FloatRange\nimport androidx.compose.animation.core.LinearEasing\nimport androidx.compose.animation.core.animateFloat\nimport androidx.compose.animation.core.infiniteRepeatable\nimport androidx.compose.animation.core.rememberInfiniteTransition\nimport androidx.compose.animation.core.tween\nimport androidx.compose.foundation.Canvas\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.Path\nimport androidx.compose.ui.graphics.StrokeCap\nimport androidx.compose.ui.graphics.drawscope.DrawScope\nimport androidx.compose.ui.graphics.drawscope.Stroke\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport kotlin.math.PI\nimport kotlin.math.sin\n\nprivate const val WAVE_AMPLITUDE = 12F\nprivate const val WAVE_FREQUENCY = 0.055F\n\nprivate const val INITIAL_PHASE = 0F\nprivate const val FINAL_PHASE = (2 * PI).toFloat()\n\n@Composable\nfun Wave(\n    modifier: Modifier = Modifier,\n    strokeWidth: Float = 4F,\n    amplitude: Float = WAVE_AMPLITUDE,\n    frequency: Float = WAVE_FREQUENCY,\n    color: Color = MaterialTheme.colorScheme.tertiary,\n) {\n    Canvas(modifier = modifier) {\n        drawWave(\n            strokeColor = color,\n            strokeWidth = strokeWidth,\n            amplitude = amplitude,\n            frequency = frequency\n        )\n    }\n}\n\n@Composable\nfun AnimatedWave(\n    modifier: Modifier = Modifier,\n    strokeWidth: Float = 4F,\n    amplitude: Float = WAVE_AMPLITUDE,\n    frequency: Float = WAVE_FREQUENCY,\n    color: Color = MaterialTheme.colorScheme.tertiary,\n    durationMillis: Int = 1_000,\n) {\n    val transition = rememberInfiniteTransition(\"Wave\")\n    val phase by transition.animateFloat(\n        initialValue = INITIAL_PHASE,\n        targetValue = FINAL_PHASE,\n        animationSpec = infiniteRepeatable(tween(durationMillis, easing = LinearEasing)),\n        label = \"Phase\"\n    )\n\n    Canvas(modifier = modifier) {\n        drawWave(\n            strokeColor = color,\n            strokeWidth = strokeWidth,\n            amplitude = amplitude,\n            frequency = frequency,\n            phase = phase\n        )\n    }\n}\n\nfun DrawScope.drawWave(\n    strokeColor: Color,\n    strokeWidth: Float = 4F,\n    amplitude: Float = WAVE_AMPLITUDE,\n    frequency: Float = WAVE_FREQUENCY,\n    @FloatRange(INITIAL_PHASE.toDouble(), FINAL_PHASE.toDouble()) phase: Float = 0F,\n) {\n    val path = Path()\n    val centerY = center.y\n    path.moveTo(0F, amplitude * sin(phase) + centerY)\n    for (x in 0..size.width.toInt()) {\n        val y = amplitude * sin((frequency * x) + phase)\n        path.lineTo(x.toFloat(), y + centerY)\n    }\n    drawPath(\n        path = path,\n        color = strokeColor,\n        style = Stroke(\n            width = strokeWidth,\n            cap = StrokeCap.Round\n        )\n    )\n}\n\n@Preview(showBackground = true)\n@Composable\nprivate fun WavePreview() {\n    KenkoTheme {\n        Row(modifier = Modifier.fillMaxWidth()) {\n            Text(text = \"How the Wave?\")\n            Wave(\n                modifier = Modifier\n                    .weight(1F)\n                    .height(24.dp)\n            )\n        }\n    }\n}\n\n@Preview(showBackground = true)\n@Composable\nprivate fun AnimatedWavePreview() {\n    KenkoTheme {\n        Row(modifier = Modifier.fillMaxWidth()) {\n            Text(text = \"How the Wave?\")\n            AnimatedWave(\n                modifier = Modifier\n                    .weight(1F)\n                    .height(24.dp)\n            )\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/AddLarge.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.NonZero\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap\nimport androidx.compose.ui.graphics.StrokeJoin\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.path\nimport androidx.compose.ui.unit.dp\n\nval AddLarge: ImageVector\n    get() {\n        if (_addLarge != null) {\n            return _addLarge!!\n        }\n        _addLarge = icon(\n            name = \"AddLarge\",\n            viewPort = 960.0F to 960.0F,\n            size = 120.dp to 120.dp,\n        ) {\n            path(\n                fill = null,\n                stroke = SolidColor(Color.Black),\n                strokeLineWidth = 12.0f,\n                strokeLineCap = StrokeCap.Round,\n                strokeLineJoin = StrokeJoin.Round,\n                strokeLineMiter = 0.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(450.0f, 510.0f)\n                lineTo(250.0f, 510.0f)\n                quadTo(237.25f, 510.0f, 228.63f, 501.37f)\n                quadTo(220.0f, 492.74f, 220.0f, 479.99f)\n                quadTo(220.0f, 467.23f, 228.63f, 458.62f)\n                quadTo(237.25f, 450.0f, 250.0f, 450.0f)\n                lineTo(450.0f, 450.0f)\n                lineTo(450.0f, 250.0f)\n                quadTo(450.0f, 237.25f, 458.63f, 228.63f)\n                quadTo(467.26f, 220.0f, 480.01f, 220.0f)\n                quadTo(492.77f, 220.0f, 501.38f, 228.63f)\n                quadTo(510.0f, 237.25f, 510.0f, 250.0f)\n                lineTo(510.0f, 450.0f)\n                lineTo(710.0f, 450.0f)\n                quadTo(722.75f, 450.0f, 731.37f, 458.63f)\n                quadTo(740.0f, 467.26f, 740.0f, 480.01f)\n                quadTo(740.0f, 492.77f, 731.37f, 501.38f)\n                quadTo(722.75f, 510.0f, 710.0f, 510.0f)\n                lineTo(510.0f, 510.0f)\n                lineTo(510.0f, 710.0f)\n                quadTo(510.0f, 722.75f, 501.37f, 731.37f)\n                quadTo(492.74f, 740.0f, 479.99f, 740.0f)\n                quadTo(467.23f, 740.0f, 458.62f, 731.37f)\n                quadTo(450.0f, 722.75f, 450.0f, 710.0f)\n                lineTo(450.0f, 510.0f)\n                close()\n            }\n\n        }\n        return _addLarge!!\n    }\n\nprivate var _addLarge: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/Arrow1.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap.Companion.Butt\nimport androidx.compose.ui.graphics.StrokeJoin.Companion.Miter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.path\n\nval Arrow1: ImageVector\n    get() {\n        if (_arrow1 != null) {\n            return _arrow1!!\n        }\n        _arrow1 = icon(\n            name = \"Arrow1\",\n            viewPort = 57.0f to 57.0f\n        ) {\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = EvenOdd\n            ) {\n                moveTo(11.4129f, 20.3807f)\n                curveTo(11.8677f, 20.1523f, 12.2584f, 19.9533f, 12.4643f, 19.847f)\n                curveTo(13.7156f, 19.1974f, 17.0194f, 17.961f, 19.0214f, 16.3208f)\n                curveTo(20.5492f, 15.07f, 21.326f, 13.5811f, 20.3871f, 11.9663f)\n                curveTo(19.5338f, 10.4987f, 17.6564f, 9.9976f, 15.3326f, 10.1916f)\n                curveTo(10.3313f, 10.6092f, 3.217f, 14.1335f, 1.3427f, 15.7533f)\n                curveTo(1.1381f, 15.9302f, 1.1153f, 16.2385f, 1.2922f, 16.443f)\n                curveTo(1.4683f, 16.6467f, 1.7766f, 16.6695f, 1.9811f, 16.4925f)\n                curveTo(3.7802f, 14.9386f, 10.6128f, 11.5664f, 15.4141f, 11.1654f)\n                curveTo(17.2908f, 11.0089f, 18.8532f, 11.2725f, 19.5423f, 12.4582f)\n                curveTo(20.223f, 13.6281f, 19.51f, 14.6577f, 18.4024f, 15.5645f)\n                curveTo(16.4544f, 17.1611f, 13.2325f, 18.3475f, 12.0138f, 18.9794f)\n                curveTo(11.25f, 19.3759f, 8.2942f, 20.8058f, 8.0703f, 20.9894f)\n                curveTo(7.7899f, 21.2191f, 7.882f, 21.4884f, 7.9189f, 21.5745f)\n                curveTo(7.9474f, 21.6413f, 8.1109f, 21.965f, 8.5402f, 21.8504f)\n                curveTo(14.6622f, 20.2202f, 25.185f, 21.9561f, 33.3426f, 26.7524f)\n                curveTo(41.4286f, 31.5065f, 47.1978f, 39.3f, 43.8692f, 49.8987f)\n                curveTo(43.7888f, 50.1563f, 43.9323f, 50.4309f, 44.189f, 50.5121f)\n                curveTo(44.4466f, 50.5925f, 44.7211f, 50.449f, 44.8015f, 50.1914f)\n                curveTo(48.2889f, 39.0862f, 42.3096f, 30.8905f, 33.8386f, 25.91f)\n                curveTo(26.6995f, 21.7122f, 17.7953f, 19.8224f, 11.4129f, 20.3807f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color(0xFFE5E2DE)), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = EvenOdd\n            ) {\n                moveTo(44.4335f, 49.4713f)\n                curveTo(44.0066f, 48.4008f, 43.6156f, 47.3214f, 43.1053f, 46.2836f)\n                curveTo(41.7461f, 43.5182f, 39.7482f, 40.9328f, 37.2431f, 39.1197f)\n                curveTo(37.0235f, 38.9615f, 36.7183f, 39.0111f, 36.5602f, 39.229f)\n                curveTo(36.402f, 39.4486f, 36.4516f, 39.7538f, 36.6695f, 39.912f)\n                curveTo(39.0479f, 41.6312f, 40.9382f, 44.091f, 42.2275f, 46.7147f)\n                curveTo(42.811f, 47.9029f, 43.2367f, 49.1478f, 43.742f, 50.3687f)\n                curveTo(43.768f, 50.4293f, 43.9714f, 50.9665f, 44.0455f, 51.0681f)\n                curveTo(44.2166f, 51.3057f, 44.4392f, 51.2948f, 44.5415f, 51.2765f)\n                curveTo(44.6272f, 51.2623f, 44.7264f, 51.2248f, 44.823f, 51.1366f)\n                curveTo(44.9019f, 51.0639f, 45.0192f, 50.8907f, 45.1267f, 50.6257f)\n                curveTo(45.4737f, 49.7781f, 45.9994f, 47.6848f, 46.1221f, 47.3504f)\n                curveTo(47.5276f, 43.5163f, 49.4788f, 40.1852f, 51.4454f, 36.6269f)\n                curveTo(51.5751f, 36.3902f, 51.4896f, 36.0922f, 51.2539f, 35.9617f)\n                curveTo(51.0181f, 35.8311f, 50.7209f, 35.9175f, 50.5904f, 36.1533f)\n                curveTo(48.5986f, 39.7565f, 46.6274f, 43.1325f, 45.2054f, 47.0134f)\n                curveTo(45.1203f, 47.243f, 44.7192f, 48.5406f, 44.4335f, 49.4713f)\n                close()\n            }\n        }\n        return _arrow1!!\n    }\n\nprivate var _arrow1: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/Arrow2.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap.Companion.Butt\nimport androidx.compose.ui.graphics.StrokeJoin.Companion.Miter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.path\n\nval Arrow2: ImageVector\n    get() {\n        if (_arrow2 != null) {\n            return _arrow2!!\n        }\n        _arrow2 = icon(\n            name = \"Arrow2\",\n            viewPort = 60F to 60F,\n        ) {\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = EvenOdd\n            ) {\n                moveTo(25.0814f, 0.6872f)\n                curveTo(29.776f, 4.8349f, 32.4145f, 10.6669f, 33.6055f, 17.025f)\n                curveTo(35.4039f, 26.6272f, 33.9028f, 37.4312f, 31.1225f, 45.5342f)\n                curveTo(29.3757f, 50.6271f, 26.4914f, 53.4886f, 23.7002f, 58.0623f)\n                curveTo(23.5873f, 58.2476f, 23.6457f, 58.4893f, 23.831f, 58.6023f)\n                curveTo(24.0153f, 58.7153f, 24.258f, 58.6568f, 24.37f, 58.4715f)\n                curveTo(27.1939f, 53.8443f, 30.098f, 50.9412f, 31.8656f, 45.7889f)\n                curveTo(34.6845f, 37.5729f, 36.2005f, 26.6173f, 34.3774f, 16.8804f)\n                curveTo(33.1537f, 10.3468f, 30.426f, 4.3612f, 25.6016f, 0.0987f)\n                curveTo(25.4391f, -0.045f, 25.1914f, -0.0301f, 25.0477f, 0.1324f)\n                curveTo(24.9041f, 0.2949f, 24.9189f, 0.5436f, 25.0814f, 0.6872f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color(0xFFE5E2DE)), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = EvenOdd\n            ) {\n                moveTo(23.9498f, 59.5777f)\n                curveTo(23.9607f, 59.5618f, 24.031f, 59.4548f, 24.0994f, 59.3716f)\n                curveTo(24.3808f, 59.0248f, 24.9287f, 58.463f, 25.6619f, 57.7952f)\n                curveTo(28.1241f, 55.5579f, 32.6671f, 52.1395f, 36.4115f, 51.7967f)\n                curveTo(36.6275f, 51.7769f, 36.786f, 51.5856f, 36.7662f, 51.3696f)\n                curveTo(36.7464f, 51.1536f, 36.5561f, 50.9941f, 36.3401f, 51.0139f)\n                curveTo(32.4442f, 51.3706f, 27.6951f, 54.8861f, 25.1338f, 57.2145f)\n                curveTo(24.791f, 57.5266f, 24.4858f, 57.8169f, 24.2282f, 58.0756f)\n                curveTo(24.4502f, 56.9827f, 24.6998f, 55.8977f, 24.9624f, 54.8128f)\n                curveTo(25.7194f, 51.6897f, 25.7273f, 48.8311f, 25.0823f, 45.6584f)\n                curveTo(25.0397f, 45.4464f, 24.8316f, 45.3087f, 24.6196f, 45.3523f)\n                curveTo(24.4075f, 45.3949f, 24.2698f, 45.603f, 24.3134f, 45.815f)\n                curveTo(24.9337f, 48.8687f, 24.9277f, 51.6213f, 24.1995f, 54.6275f)\n                curveTo(23.8567f, 56.0453f, 23.5356f, 57.4652f, 23.2671f, 58.8989f)\n                curveTo(23.2403f, 59.0416f, 23.175f, 59.4132f, 23.174f, 59.4667f)\n                curveTo(23.168f, 59.7719f, 23.4157f, 59.8472f, 23.4712f, 59.861f)\n                curveTo(23.498f, 59.868f, 23.8349f, 59.9344f, 23.9498f, 59.5777f)\n                close()\n                moveTo(23.2116f, 59.3101f)\n                curveTo(23.2086f, 59.32f, 23.2047f, 59.3299f, 23.2017f, 59.3408f)\n                curveTo(23.2037f, 59.3319f, 23.2076f, 59.322f, 23.2116f, 59.3101f)\n                close()\n            }\n        }\n        return _arrow2!!\n    }\n\nprivate var _arrow2: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/Arrow3.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap.Companion.Butt\nimport androidx.compose.ui.graphics.StrokeJoin.Companion.Miter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.group\nimport androidx.compose.ui.graphics.vector.path\n\nval Arrow3: ImageVector\n    get() {\n        if (_arrow3 != null) {\n            return _arrow3!!\n        }\n        _arrow3 = icon(\n            name = \"Arrow3\",\n            viewPort = 80F to 80F,\n        ) {\n            group {\n                path(\n                    fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                    strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                    pathFillType = EvenOdd\n                ) {\n                    moveTo(37.615f, 26.0972f)\n                    curveTo(28.649f, 27.4448f, 19.4581f, 30.3978f, 12.613f, 36.3343f)\n                    curveTo(10.1222f, 38.4941f, 8.2614f, 41.0838f, 6.3325f, 43.7179f)\n                    curveTo(6.197f, 43.9024f, 6.2371f, 44.1632f, 6.4222f, 44.2996f)\n                    curveTo(6.6082f, 44.4353f, 6.8691f, 44.3953f, 7.0048f, 44.2092f)\n                    curveTo(8.8967f, 41.6263f, 10.716f, 39.0817f, 13.1587f, 36.9637f)\n                    curveTo(19.9066f, 31.1114f, 28.9792f, 28.2256f, 37.8172f, 26.9085f)\n                    lineTo(37.8484f, 27.0428f)\n                    curveTo(38.1835f, 28.5022f, 39.6864f, 29.8681f, 41.7434f, 30.9401f)\n                    curveTo(44.6917f, 32.4771f, 48.7588f, 33.451f, 51.7441f, 33.4322f)\n                    curveTo(53.0856f, 33.4235f, 54.2157f, 33.2089f, 54.9591f, 32.7818f)\n                    curveTo(55.539f, 32.4491f, 55.9037f, 31.9876f, 56.016f, 31.4061f)\n                    curveTo(56.2544f, 30.1667f, 55.3591f, 29.0333f, 53.7589f, 28.143f)\n                    curveTo(50.4125f, 26.28f, 43.9984f, 25.3394f, 41.1348f, 25.6454f)\n                    curveTo(40.2406f, 25.7413f, 39.3405f, 25.8512f, 38.4381f, 25.978f)\n                    curveTo(38.3721f, 25.723f, 38.3086f, 25.4729f, 38.2579f, 25.227f)\n                    curveTo(38.1153f, 24.5259f, 38.0776f, 23.8473f, 38.4269f, 23.0995f)\n                    curveTo(38.9727f, 21.9346f, 39.9983f, 21.0312f, 41.2058f, 20.3163f)\n                    curveTo(43.0909f, 19.2019f, 45.4227f, 18.5526f, 47.2047f, 18.1611f)\n                    curveTo(57.1293f, 15.9813f, 65.2005f, 19.09f, 71.5946f, 23.4982f)\n                    curveTo(78.0512f, 27.9512f, 82.8103f, 33.7274f, 86.0504f, 36.8085f)\n                    curveTo(86.2168f, 36.9673f, 86.4801f, 36.9597f, 86.6389f, 36.7933f)\n                    curveTo(86.7977f, 36.627f, 86.791f, 36.363f, 86.6238f, 36.2048f)\n                    curveTo(83.363f, 33.1036f, 78.567f, 27.2948f, 72.0666f, 22.813f)\n                    curveTo(65.5037f, 18.2864f, 57.2141f, 15.1102f, 47.0264f, 17.3469f)\n                    curveTo(45.1701f, 17.7545f, 42.745f, 18.4385f, 40.7821f, 19.5991f)\n                    curveTo(39.4235f, 20.4032f, 38.2865f, 21.4357f, 37.6725f, 22.7468f)\n                    curveTo(37.1219f, 23.9236f, 37.3291f, 24.9563f, 37.615f, 26.0972f)\n                    close()\n                    moveTo(38.6449f, 26.79f)\n                    lineTo(38.6598f, 26.857f)\n                    curveTo(38.9525f, 28.1327f, 40.3295f, 29.2641f, 42.1283f, 30.2011f)\n                    curveTo(44.9614f, 31.6781f, 48.869f, 32.6171f, 51.7392f, 32.5985f)\n                    curveTo(52.7232f, 32.5928f, 53.5805f, 32.4753f, 54.218f, 32.2173f)\n                    curveTo(54.7436f, 32.0039f, 55.1111f, 31.7009f, 55.1973f, 31.2487f)\n                    curveTo(55.2807f, 30.8221f, 55.1424f, 30.4253f, 54.8576f, 30.0565f)\n                    curveTo(54.524f, 29.6228f, 54.0005f, 29.2307f, 53.3544f, 28.8706f)\n                    curveTo(50.1387f, 27.0807f, 43.9751f, 26.1792f, 41.2235f, 26.4736f)\n                    curveTo(40.369f, 26.5657f, 39.5088f, 26.6703f, 38.6449f, 26.79f)\n                    close()\n                }\n                path(\n                    fill = SolidColor(Color(0xFFE5E2DE)), stroke = null, strokeLineWidth = 0.0f,\n                    strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                    pathFillType = EvenOdd\n                ) {\n                    moveTo(6.2642f, 45.3833f)\n                    curveTo(6.1855f, 45.2188f, 6.1475f, 44.9661f, 6.1098f, 44.6938f)\n                    curveTo(6.0193f, 44.0454f, 6.0141f, 43.2861f, 5.997f, 42.9283f)\n                    curveTo(5.9855f, 42.6981f, 5.7895f, 42.5218f, 5.5602f, 42.5326f)\n                    curveTo(5.33f, 42.5441f, 5.153f, 42.7392f, 5.1645f, 42.9694f)\n                    curveTo(5.1859f, 43.4077f, 5.1948f, 44.4196f, 5.3423f, 45.1527f)\n                    curveTo(5.4217f, 45.5459f, 5.5511f, 45.8671f, 5.7114f, 46.047f)\n                    curveTo(5.9837f, 46.3538f, 6.3958f, 46.3631f, 6.8988f, 45.9649f)\n                    curveTo(7.4935f, 45.4934f, 8.3896f, 44.3417f, 9.6069f, 43.9969f)\n                    curveTo(9.8278f, 43.9348f, 9.9566f, 43.7032f, 9.8936f, 43.483f)\n                    curveTo(9.8309f, 43.2612f, 9.6008f, 43.1326f, 9.379f, 43.1953f)\n                    curveTo(8.2187f, 43.5247f, 7.2975f, 44.481f, 6.6455f, 45.0822f)\n                    curveTo(6.5214f, 45.1963f, 6.3607f, 45.3147f, 6.2642f, 45.3833f)\n                    close()\n                }\n            }\n        }\n        return _arrow3!!\n    }\n\nprivate var _arrow3: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/Arrow4.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap.Companion.Butt\nimport androidx.compose.ui.graphics.StrokeJoin.Companion.Miter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.group\nimport androidx.compose.ui.graphics.vector.path\n\nval Arrow4: ImageVector\n    get() {\n        if (_arrow4 != null) {\n            return _arrow4!!\n        }\n        _arrow4 = icon(\n            name = \"Arrow4\",\n            viewPort = 62.0f to 62.0f\n        ) {\n            group {\n                path(\n                    fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                    strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                    pathFillType = EvenOdd\n                ) {\n                    moveTo(36.5224f, 31.7713f)\n                    curveTo(36.2713f, 31.6744f, 35.9937f, 31.621f, 35.7165f, 31.5679f)\n                    curveTo(34.2685f, 31.2034f, 32.5932f, 30.7571f, 31.07f, 30.8859f)\n                    curveTo(29.0619f, 31.0721f, 27.8076f, 31.9092f, 27.0907f, 33.0823f)\n                    curveTo(26.0832f, 34.7341f, 26.2413f, 37.1742f, 27.2523f, 39.2468f)\n                    curveTo(28.2481f, 41.3099f, 30.036f, 43.0278f, 32.0984f, 43.4159f)\n                    curveTo(33.5042f, 43.694f, 35.0671f, 43.3498f, 36.6209f, 42.0393f)\n                    curveTo(38.3908f, 40.5636f, 38.9983f, 38.4816f, 38.8949f, 36.2557f)\n                    curveTo(38.8693f, 35.3992f, 38.7077f, 34.5778f, 38.4969f, 33.7257f)\n                    curveTo(39.2812f, 34.0357f, 40.0726f, 34.3498f, 40.8737f, 34.6703f)\n                    curveTo(43.4475f, 35.7983f, 45.98f, 37.2605f, 48.276f, 38.8754f)\n                    curveTo(51.3393f, 40.9696f, 53.9423f, 43.4971f, 56.0927f, 46.5219f)\n                    curveTo(56.3073f, 46.776f, 56.6957f, 46.8385f, 56.9681f, 46.6485f)\n                    curveTo(57.2401f, 46.4583f, 57.3011f, 46.0763f, 57.1134f, 45.779f)\n                    curveTo(54.8756f, 42.6395f, 52.1814f, 39.9949f, 48.9946f, 37.8234f)\n                    curveTo(46.6025f, 36.2086f, 44.0252f, 34.6586f, 41.3557f, 33.5309f)\n                    curveTo(40.2426f, 33.0755f, 39.1481f, 32.6316f, 38.0378f, 32.238f)\n                    curveTo(37.3786f, 30.4452f, 36.4424f, 28.7795f, 35.5302f, 27.549f)\n                    curveTo(29.3312f, 19.4728f, 15.9851f, 16.5965f, 6.2282f, 15.9031f)\n                    curveTo(5.8908f, 15.8723f, 5.6042f, 16.1139f, 5.5779f, 16.4577f)\n                    curveTo(5.552f, 16.8017f, 5.8163f, 17.0869f, 6.1537f, 17.1176f)\n                    curveTo(15.5944f, 17.7935f, 28.5453f, 20.4825f, 34.5384f, 28.31f)\n                    curveTo(35.2431f, 29.2307f, 35.9489f, 30.4523f, 36.5224f, 31.7713f)\n                    close()\n                    moveTo(37.0563f, 33.2458f)\n                    curveTo(36.5403f, 33.0435f, 36.0005f, 32.886f, 35.4349f, 32.7727f)\n                    curveTo(34.0876f, 32.4711f, 32.5739f, 32.0054f, 31.1918f, 32.1024f)\n                    curveTo(29.6789f, 32.2378f, 28.7f, 32.8273f, 28.169f, 33.6962f)\n                    curveTo(27.3199f, 35.0869f, 27.5512f, 37.0323f, 28.3801f, 38.6909f)\n                    curveTo(29.1967f, 40.402f, 30.6168f, 41.8899f, 32.3359f, 42.1836f)\n                    curveTo(33.4326f, 42.3886f, 34.618f, 42.1084f, 35.8102f, 41.1123f)\n                    curveTo(37.2837f, 39.8717f, 37.7553f, 38.1254f, 37.6522f, 36.3199f)\n                    curveTo(37.6182f, 35.278f, 37.3951f, 34.238f, 37.0563f, 33.2458f)\n                    close()\n                }\n                path(\n                    fill = SolidColor(Color(0xFFE5E2DE)), stroke = null, strokeLineWidth = 0.0f,\n                    strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                    pathFillType = EvenOdd\n                ) {\n                    moveTo(5.8248f, 16.3705f)\n                    curveTo(6.1121f, 16.2498f, 6.475f, 16.1764f, 6.8383f, 16.1032f)\n                    curveTo(7.5472f, 15.9459f, 8.2556f, 15.848f, 8.7167f, 15.6558f)\n                    curveTo(11.5221f, 14.5271f, 14.8724f, 13.1385f, 17.2022f, 11.1721f)\n                    curveTo(17.4534f, 10.9689f, 17.4907f, 10.572f, 17.2684f, 10.3129f)\n                    curveTo(17.0464f, 10.0542f, 16.6689f, 9.9983f, 16.3906f, 10.2447f)\n                    curveTo(14.1737f, 12.1014f, 10.9604f, 13.3959f, 8.2428f, 14.5195f)\n                    curveTo(7.7618f, 14.6993f, 6.9039f, 14.8233f, 6.1841f, 14.9739f)\n                    curveTo(5.5596f, 15.124f, 5.0123f, 15.3225f, 4.6589f, 15.642f)\n                    curveTo(4.4463f, 15.8093f, 4.2899f, 16.2519f, 4.6142f, 16.8148f)\n                    curveTo(5.0874f, 17.5908f, 6.8121f, 19.0891f, 6.9703f, 19.248f)\n                    curveTo(8.5771f, 20.8524f, 9.9584f, 22.3158f, 10.118f, 24.697f)\n                    curveTo(10.1536f, 25.0194f, 10.4562f, 25.2684f, 10.7716f, 25.2854f)\n                    curveTo(11.1139f, 25.2592f, 11.3816f, 24.946f, 11.3456f, 24.6233f)\n                    curveTo(11.1551f, 21.9227f, 9.6835f, 20.1627f, 7.8412f, 18.3511f)\n                    curveTo(7.7048f, 18.2658f, 6.6689f, 17.3784f, 6.0359f, 16.6226f)\n                    curveTo(5.9769f, 16.5257f, 5.8824f, 16.4666f, 5.8248f, 16.3705f)\n                    close()\n                }\n            }\n        }\n        return _arrow4!!\n    }\n\nprivate var _arrow4: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/ArrowOutwardLarge.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.NonZero\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap\nimport androidx.compose.ui.graphics.StrokeJoin\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.path\nimport androidx.compose.ui.unit.dp\n\nval ArrowOutwardLarge: ImageVector\n    get() {\n        if (_arrowOutwardLarge != null) {\n            return _arrowOutwardLarge!!\n        }\n        _arrowOutwardLarge = icon(\n            name = \"ArrowOutwardLarge\",\n            viewPort = 960.0F to 960.0F,\n            size = 120.dp to 120.dp,\n        ) {\n            path(\n                fill = null,\n                stroke = SolidColor(Color.Black),\n                strokeLineWidth = 12.0f,\n                strokeLineCap = StrokeCap.Round,\n                strokeLineJoin = StrokeJoin.Round,\n                strokeLineMiter = 0.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(645.77f, 312.15f)\n                lineTo(272.46f, 685.08f)\n                quadTo(264.15f, 693.38f, 251.58f, 693.19f)\n                quadTo(239.0f, 693.0f, 230.69f, 684.69f)\n                quadTo(222.39f, 676.38f, 222.39f, 664.0f)\n                quadTo(222.39f, 651.62f, 230.69f, 643.31f)\n                lineTo(603.62f, 270.0f)\n                lineTo(275.77f, 270.0f)\n                quadTo(263.02f, 270.0f, 254.39f, 261.37f)\n                quadTo(245.77f, 252.74f, 245.77f, 239.99f)\n                quadTo(245.77f, 227.23f, 254.39f, 218.62f)\n                quadTo(263.02f, 210.0f, 275.77f, 210.0f)\n                lineTo(669.61f, 210.0f)\n                quadTo(684.98f, 210.0f, 695.37f, 220.39f)\n                quadTo(705.77f, 230.79f, 705.77f, 246.15f)\n                lineTo(705.77f, 640.0f)\n                quadTo(705.77f, 652.75f, 697.14f, 661.37f)\n                quadTo(688.51f, 670.0f, 675.76f, 670.0f)\n                quadTo(663.0f, 670.0f, 654.38f, 661.37f)\n                quadTo(645.77f, 652.75f, 645.77f, 640.0f)\n                lineTo(645.77f, 312.15f)\n                close()\n            }\n        }\n        return _arrowOutwardLarge!!\n    }\n\nprivate var _arrowOutwardLarge: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/Cloud.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap.Companion.Butt\nimport androidx.compose.ui.graphics.StrokeJoin.Companion.Miter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.path\n\nval Cloud: ImageVector\n    get() {\n        if (_cloud != null) {\n            return _cloud!!\n        }\n        _cloud = icon(\n            name = \"Cloud\",\n            viewPort = 118F to 100F\n        ) {\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = EvenOdd\n            ) {\n                moveTo(69.705f, 23.878f)\n                curveTo(67.542f, 22.111f, 65.151f, 20.573f, 62.675f, 19.323f)\n                curveTo(57.833f, 16.879f, 50.563f, 14.678f, 43.832f, 14.616f)\n                curveTo(39.218f, 14.573f, 34.86f, 15.541f, 31.64f, 18.035f)\n                curveTo(25.509f, 22.783f, 24.246f, 30.986f, 25.998f, 39.508f)\n                curveTo(27.276f, 45.724f, 30.145f, 52.102f, 33.769f, 57.338f)\n                curveTo(29.653f, 54.981f, 24.33f, 52.795f, 19.161f, 52.257f)\n                curveTo(13.367f, 51.649f, 7.773f, 53.089f, 4.122f, 58.449f)\n                curveTo(-3.509f, 69.652f, 0.312f, 80.491f, 8.602f, 88.315f)\n                curveTo(16.746f, 96.0f, 29.235f, 100.717f, 39.092f, 99.911f)\n                curveTo(39.613f, 99.866f, 40.001f, 99.408f, 39.958f, 98.885f)\n                curveTo(39.916f, 98.364f, 39.458f, 97.974f, 38.938f, 98.019f)\n                curveTo(29.546f, 98.784f, 17.66f, 94.257f, 9.901f, 86.933f)\n                curveTo(2.287f, 79.747f, -1.322f, 69.807f, 5.686f, 59.521f)\n                curveTo(8.902f, 54.801f, 13.861f, 53.608f, 18.965f, 54.143f)\n                curveTo(24.275f, 54.699f, 29.749f, 57.101f, 33.766f, 59.537f)\n                curveTo(34.854f, 60.195f, 35.952f, 60.847f, 37.041f, 61.514f)\n                curveTo(39.961f, 64.795f, 43.162f, 67.266f, 46.306f, 68.462f)\n                curveTo(47.087f, 68.756f, 47.446f, 68.244f, 47.54f, 68.095f)\n                curveTo(47.668f, 67.893f, 47.792f, 67.567f, 47.585f, 67.146f)\n                curveTo(47.546f, 67.067f, 47.451f, 66.918f, 47.28f, 66.754f)\n                curveTo(47.048f, 66.532f, 46.53f, 66.124f, 46.315f, 65.925f)\n                curveTo(45.428f, 65.096f, 44.455f, 64.333f, 43.498f, 63.593f)\n                curveTo(41.834f, 62.302f, 40.067f, 61.154f, 38.274f, 60.049f)\n                curveTo(38.017f, 59.755f, 37.763f, 59.458f, 37.512f, 59.154f)\n                curveTo(33.015f, 53.703f, 29.328f, 46.303f, 27.853f, 39.126f)\n                curveTo(26.259f, 31.37f, 27.219f, 23.858f, 32.799f, 19.537f)\n                curveTo(35.703f, 17.288f, 39.652f, 16.476f, 43.815f, 16.514f)\n                curveTo(50.248f, 16.574f, 57.195f, 18.682f, 61.823f, 21.019f)\n                curveTo(64.65f, 22.446f, 67.362f, 24.266f, 69.719f, 26.388f)\n                curveTo(70.501f, 27.092f, 71.215f, 27.892f, 71.899f, 28.692f)\n                curveTo(71.974f, 28.78f, 72.077f, 28.91f, 72.193f, 29.059f)\n                curveTo(72.491f, 29.506f, 72.807f, 29.936f, 73.14f, 30.349f)\n                curveTo(73.315f, 30.566f, 73.435f, 30.644f, 73.457f, 30.658f)\n                curveTo(74.03f, 31.025f, 74.436f, 30.717f, 74.609f, 30.557f)\n                curveTo(74.661f, 30.51f, 75.18f, 30.0f, 74.758f, 29.33f)\n                curveTo(74.672f, 29.195f, 74.137f, 28.468f, 73.711f, 27.921f)\n                curveTo(70.552f, 23.151f, 69.568f, 16.438f, 70.964f, 10.989f)\n                curveTo(71.849f, 7.534f, 73.695f, 4.582f, 76.621f, 3.042f)\n                curveTo(78.567f, 2.018f, 80.98f, 1.628f, 83.876f, 2.094f)\n                curveTo(90.859f, 3.216f, 96.708f, 7.21f, 101.914f, 12.126f)\n                curveTo(107.239f, 17.156f, 111.889f, 23.156f, 116.346f, 28.176f)\n                curveTo(116.693f, 28.568f, 117.292f, 28.603f, 117.683f, 28.254f)\n                curveTo(118.073f, 27.906f, 118.108f, 27.306f, 117.761f, 26.914f)\n                curveTo(113.27f, 21.855f, 108.579f, 15.814f, 103.213f, 10.745f)\n                curveTo(97.727f, 5.563f, 91.535f, 1.402f, 84.176f, 0.219f)\n                curveTo(80.807f, -0.322f, 78.004f, 0.17f, 75.74f, 1.361f)\n                curveTo(72.353f, 3.145f, 70.153f, 6.517f, 69.129f, 10.517f)\n                curveTo(68.059f, 14.696f, 68.281f, 19.553f, 69.705f, 23.878f)\n                close()\n            }\n        }\n        return _cloud!!\n    }\n\nprivate var _cloud: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/Colony.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.NonZero\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap.Companion.Butt\nimport androidx.compose.ui.graphics.StrokeJoin.Companion.Miter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.group\nimport androidx.compose.ui.graphics.vector.path\nimport androidx.compose.ui.unit.dp\n\nval Colony: ImageVector\n    get() {\n        if (_colony != null) {\n            return _colony!!\n        }\n        _colony = icon(\n            name = \"Colony\",\n            viewPort = 500F to 500F,\n            size = 150.dp to 150.dp,\n        ) {\n            group {\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(174.4f, 87.9f)\n                    curveTo(149.1f, 95.2f, 126.0f, 109.2f, 107.8f, 128.2f)\n                    curveTo(102.7f, 133.5f, 98.0f, 139.3f, 93.7f, 145.3f)\n                    curveTo(93.4f, 145.7f, 93.7f, 147.3f, 93.7f, 147.8f)\n                    curveTo(93.7f, 148.4f, 93.7f, 149.0f, 93.7f, 149.6f)\n                    curveTo(93.7f, 149.7f, 93.8f, 150.2f, 93.7f, 150.3f)\n                    curveTo(108.9f, 128.8f, 129.8f, 111.5f, 153.7f, 100.6f)\n                    curveTo(160.4f, 97.5f, 167.4f, 95.0f, 174.5f, 92.9f)\n                    curveTo(174.6f, 92.9f, 174.5f, 90.6f, 174.5f, 90.4f)\n                    curveTo(174.4f, 90.2f, 174.3f, 88.0f, 174.4f, 87.9f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(81.9f, 169.0f)\n                    curveTo(73.6f, 187.0f, 69.0f, 206.1f, 67.2f, 225.8f)\n                    curveTo(66.7f, 231.4f, 66.4f, 237.1f, 66.1f, 242.8f)\n                    curveTo(66.1f, 243.8f, 66.1f, 244.9f, 66.1f, 245.9f)\n                    curveTo(66.1f, 246.4f, 66.1f, 246.9f, 66.1f, 247.4f)\n                    curveTo(66.1f, 247.4f, 66.1f, 247.9f, 66.1f, 247.7f)\n                    curveTo(66.6f, 237.5f, 67.3f, 227.2f, 68.9f, 217.1f)\n                    curveTo(70.4f, 207.6f, 72.7f, 198.2f, 75.9f, 189.1f)\n                    curveTo(77.7f, 184.0f, 79.7f, 179.0f, 82.0f, 174.1f)\n                    curveTo(82.3f, 173.5f, 82.0f, 172.2f, 82.0f, 171.6f)\n                    curveTo(82.0f, 171.0f, 82.0f, 170.4f, 82.0f, 169.8f)\n                    curveTo(81.9f, 169.6f, 81.8f, 169.2f, 81.9f, 169.0f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(67.6f, 271.1f)\n                    curveTo(68.8f, 291.5f, 73.3f, 311.7f, 80.8f, 330.8f)\n                    curveTo(83.0f, 336.2f, 85.4f, 341.6f, 88.0f, 346.8f)\n                    curveTo(88.0f, 346.7f, 88.0f, 346.1f, 88.0f, 346.1f)\n                    curveTo(88.0f, 345.5f, 88.0f, 344.9f, 88.0f, 344.3f)\n                    curveTo(88.0f, 343.7f, 88.0f, 343.1f, 88.0f, 342.5f)\n                    curveTo(88.0f, 342.3f, 88.1f, 341.9f, 88.0f, 341.8f)\n                    curveTo(78.8f, 323.6f, 72.5f, 304.0f, 69.4f, 283.9f)\n                    curveTo(68.5f, 278.1f, 67.9f, 272.2f, 67.5f, 266.3f)\n                    curveTo(67.5f, 266.0f, 67.5f, 266.7f, 67.5f, 266.6f)\n                    curveTo(67.5f, 267.1f, 67.5f, 267.6f, 67.5f, 268.1f)\n                    curveTo(67.5f, 269.0f, 67.5f, 270.1f, 67.6f, 271.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(100.0f, 364.4f)\n                    curveTo(106.9f, 371.8f, 113.8f, 379.2f, 120.7f, 386.6f)\n                    curveTo(124.2f, 390.3f, 127.6f, 394.1f, 131.1f, 397.8f)\n                    curveTo(134.3f, 401.2f, 137.5f, 404.4f, 141.3f, 407.1f)\n                    curveTo(145.6f, 410.1f, 150.2f, 412.5f, 154.9f, 414.8f)\n                    curveTo(154.8f, 414.7f, 154.9f, 412.5f, 154.9f, 412.3f)\n                    curveTo(154.9f, 412.0f, 155.1f, 409.9f, 154.9f, 409.8f)\n                    curveTo(150.8f, 407.7f, 146.8f, 405.7f, 143.0f, 403.2f)\n                    curveTo(139.1f, 400.6f, 135.6f, 397.5f, 132.4f, 394.2f)\n                    curveTo(125.5f, 387.0f, 118.7f, 379.6f, 111.9f, 372.2f)\n                    curveTo(107.9f, 368.0f, 104.0f, 363.7f, 100.0f, 359.5f)\n                    curveTo(100.2f, 359.8f, 100.0f, 361.6f, 100.0f, 362.0f)\n                    curveTo(100.0f, 362.6f, 100.0f, 363.2f, 100.0f, 363.8f)\n                    curveTo(100.0f, 363.8f, 99.9f, 364.3f, 100.0f, 364.4f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(191.7f, 431.1f)\n                    curveTo(214.6f, 436.3f, 237.7f, 441.5f, 261.3f, 441.9f)\n                    curveTo(282.7f, 442.3f, 303.9f, 438.2f, 323.3f, 429.1f)\n                    curveTo(333.6f, 424.2f, 343.3f, 418.1f, 352.1f, 410.8f)\n                    curveTo(352.4f, 410.6f, 352.1f, 408.7f, 352.1f, 408.3f)\n                    curveTo(352.1f, 408.0f, 351.8f, 406.0f, 352.1f, 405.8f)\n                    curveTo(336.4f, 418.8f, 317.8f, 428.2f, 298.1f, 433.1f)\n                    curveTo(275.9f, 438.5f, 253.0f, 437.6f, 230.6f, 434.0f)\n                    curveTo(217.5f, 431.9f, 204.6f, 429.0f, 191.8f, 426.1f)\n                    curveTo(192.0f, 426.2f, 191.3f, 431.0f, 191.7f, 431.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(380.0f, 389.1f)\n                    curveTo(388.1f, 379.2f, 396.3f, 369.4f, 404.4f, 359.5f)\n                    curveTo(408.2f, 354.8f, 411.8f, 350.0f, 414.6f, 344.7f)\n                    curveTo(417.5f, 339.3f, 419.5f, 333.5f, 421.5f, 327.7f)\n                    curveTo(423.8f, 320.9f, 426.1f, 314.0f, 428.5f, 307.1f)\n                    curveTo(428.7f, 306.4f, 428.5f, 305.3f, 428.5f, 304.6f)\n                    curveTo(428.5f, 303.9f, 428.2f, 302.8f, 428.5f, 302.1f)\n                    curveTo(426.4f, 308.2f, 424.4f, 314.3f, 422.3f, 320.4f)\n                    curveTo(420.3f, 326.2f, 418.4f, 332.0f, 415.7f, 337.6f)\n                    curveTo(410.3f, 348.7f, 401.7f, 357.9f, 393.9f, 367.3f)\n                    curveTo(389.3f, 372.9f, 384.7f, 378.5f, 380.1f, 384.1f)\n                    curveTo(379.8f, 384.4f, 380.1f, 386.1f, 380.1f, 386.6f)\n                    curveTo(380.1f, 387.2f, 380.1f, 387.8f, 380.1f, 388.4f)\n                    curveTo(380.0f, 388.5f, 380.1f, 389.0f, 380.0f, 389.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(431.5f, 274.8f)\n                    curveTo(433.9f, 261.5f, 434.4f, 247.9f, 433.6f, 234.4f)\n                    curveTo(432.7f, 221.1f, 430.1f, 207.9f, 425.7f, 195.3f)\n                    curveTo(423.2f, 188.2f, 420.2f, 181.3f, 416.6f, 174.6f)\n                    curveTo(416.6f, 174.7f, 416.6f, 175.3f, 416.6f, 175.3f)\n                    curveTo(416.6f, 175.9f, 416.6f, 176.5f, 416.6f, 177.1f)\n                    curveTo(416.6f, 177.7f, 416.6f, 178.3f, 416.6f, 178.9f)\n                    curveTo(416.6f, 179.1f, 416.5f, 179.5f, 416.6f, 179.6f)\n                    curveTo(422.3f, 190.3f, 426.7f, 201.8f, 429.6f, 213.6f)\n                    curveTo(431.0f, 219.4f, 432.1f, 225.2f, 432.8f, 231.1f)\n                    curveTo(433.2f, 234.2f, 433.5f, 237.4f, 433.6f, 240.5f)\n                    curveTo(433.7f, 241.9f, 433.7f, 243.4f, 433.8f, 244.8f)\n                    curveTo(433.8f, 245.2f, 433.8f, 245.7f, 433.8f, 246.1f)\n                    curveTo(433.8f, 247.0f, 433.8f, 244.8f, 433.8f, 246.3f)\n                    curveTo(433.8f, 247.2f, 433.8f, 248.2f, 433.7f, 249.1f)\n                    curveTo(433.4f, 256.0f, 432.7f, 262.9f, 431.4f, 269.7f)\n                    curveTo(431.2f, 271.4f, 431.8f, 273.2f, 431.5f, 274.8f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(402.4f, 154.0f)\n                    curveTo(395.8f, 131.4f, 378.9f, 114.1f, 361.1f, 99.7f)\n                    curveTo(355.7f, 95.4f, 350.2f, 91.2f, 344.7f, 87.1f)\n                    curveTo(344.9f, 87.2f, 344.7f, 89.3f, 344.7f, 89.6f)\n                    curveTo(344.7f, 89.9f, 344.4f, 91.9f, 344.7f, 92.1f)\n                    curveTo(363.5f, 106.2f, 383.0f, 120.9f, 395.0f, 141.7f)\n                    curveTo(398.1f, 147.2f, 400.7f, 152.9f, 402.5f, 159.0f)\n                    curveTo(402.3f, 158.3f, 402.5f, 157.2f, 402.5f, 156.5f)\n                    curveTo(402.4f, 155.7f, 402.6f, 154.7f, 402.4f, 154.0f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(317.0f, 77.7f)\n                    curveTo(296.8f, 69.6f, 275.7f, 63.7f, 254.2f, 60.3f)\n                    curveTo(248.2f, 59.3f, 242.1f, 58.6f, 236.0f, 58.0f)\n                    curveTo(236.1f, 58.0f, 235.8f, 63.0f, 236.0f, 63.0f)\n                    curveTo(257.7f, 65.0f, 279.1f, 69.5f, 299.7f, 76.3f)\n                    curveTo(305.5f, 78.2f, 311.2f, 80.3f, 316.9f, 82.6f)\n                    curveTo(316.8f, 82.6f, 316.9f, 80.3f, 316.9f, 80.1f)\n                    curveTo(317.0f, 80.0f, 317.2f, 77.8f, 317.0f, 77.7f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(198.0f, 64.7f)\n                    curveTo(187.5f, 66.0f, 177.0f, 68.3f, 166.9f, 71.7f)\n                    curveTo(161.9f, 73.3f, 157.0f, 75.2f, 152.2f, 77.3f)\n                    curveTo(148.1f, 79.1f, 144.1f, 81.0f, 140.4f, 83.5f)\n                    curveTo(136.4f, 86.3f, 132.9f, 89.8f, 130.8f, 94.2f)\n                    curveTo(130.5f, 94.8f, 130.8f, 96.1f, 130.8f, 96.7f)\n                    curveTo(130.8f, 97.3f, 130.8f, 97.9f, 130.8f, 98.5f)\n                    curveTo(130.8f, 98.7f, 130.9f, 99.1f, 130.8f, 99.2f)\n                    curveTo(134.6f, 91.1f, 142.7f, 86.5f, 150.5f, 83.0f)\n                    curveTo(160.0f, 78.7f, 170.0f, 75.3f, 180.2f, 72.9f)\n                    curveTo(186.0f, 71.5f, 192.0f, 70.5f, 197.9f, 69.7f)\n                    curveTo(198.2f, 69.6f, 197.8f, 64.7f, 198.0f, 64.7f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(191.1f, 90.5f)\n                    curveTo(208.4f, 88.9f, 225.9f, 88.6f, 243.3f, 89.5f)\n                    curveTo(243.2f, 89.5f, 243.4f, 84.5f, 243.3f, 84.5f)\n                    curveTo(225.9f, 83.5f, 208.5f, 83.8f, 191.1f, 85.5f)\n                    curveTo(191.0f, 85.5f, 191.3f, 90.5f, 191.1f, 90.5f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(271.0f, 91.3f)\n                    curveTo(295.9f, 92.8f, 320.1f, 101.4f, 340.5f, 115.8f)\n                    curveTo(346.2f, 119.9f, 351.6f, 124.4f, 356.7f, 129.3f)\n                    curveTo(356.5f, 129.1f, 356.7f, 127.2f, 356.7f, 126.8f)\n                    curveTo(356.7f, 126.2f, 356.7f, 125.6f, 356.7f, 125.0f)\n                    curveTo(356.7f, 124.9f, 356.8f, 124.3f, 356.7f, 124.3f)\n                    curveTo(338.9f, 106.9f, 316.2f, 94.7f, 291.9f, 89.3f)\n                    curveTo(285.0f, 87.8f, 278.1f, 86.8f, 271.1f, 86.4f)\n                    curveTo(271.0f, 86.3f, 270.8f, 91.2f, 271.0f, 91.3f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(370.7f, 142.6f)\n                    curveTo(383.6f, 162.5f, 396.6f, 182.7f, 404.3f, 205.2f)\n                    curveTo(406.4f, 211.4f, 408.1f, 217.8f, 409.3f, 224.3f)\n                    curveTo(409.0f, 222.7f, 409.6f, 220.9f, 409.3f, 219.3f)\n                    curveTo(405.1f, 195.8f, 393.9f, 174.5f, 381.4f, 154.4f)\n                    curveTo(377.9f, 148.7f, 374.3f, 143.1f, 370.7f, 137.5f)\n                    curveTo(370.7f, 137.6f, 370.7f, 138.2f, 370.7f, 138.2f)\n                    curveTo(370.7f, 138.8f, 370.7f, 139.4f, 370.7f, 140.0f)\n                    curveTo(370.7f, 140.6f, 370.7f, 141.2f, 370.7f, 141.8f)\n                    curveTo(370.7f, 142.0f, 370.6f, 142.4f, 370.7f, 142.6f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(411.5f, 247.7f)\n                    curveTo(412.4f, 258.1f, 412.2f, 267.6f, 411.0f, 278.1f)\n                    curveTo(409.9f, 288.0f, 408.0f, 297.7f, 405.4f, 307.3f)\n                    curveTo(405.2f, 308.0f, 405.4f, 309.1f, 405.4f, 309.8f)\n                    curveTo(405.4f, 310.5f, 405.6f, 311.6f, 405.4f, 312.3f)\n                    curveTo(410.3f, 294.4f, 412.3f, 276.2f, 412.1f, 257.7f)\n                    curveTo(412.1f, 252.7f, 411.9f, 247.7f, 411.4f, 242.7f)\n                    curveTo(411.7f, 244.4f, 411.4f, 246.1f, 411.5f, 247.7f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(399.4f, 328.8f)\n                    curveTo(391.3f, 344.6f, 382.9f, 360.7f, 369.6f, 372.9f)\n                    curveTo(369.3f, 373.1f, 369.6f, 375.0f, 369.6f, 375.4f)\n                    curveTo(369.6f, 376.0f, 369.6f, 376.6f, 369.6f, 377.2f)\n                    curveTo(369.6f, 377.3f, 369.7f, 377.9f, 369.6f, 377.9f)\n                    curveTo(382.9f, 365.8f, 391.3f, 349.6f, 399.4f, 333.8f)\n                    curveTo(399.7f, 333.3f, 399.4f, 331.9f, 399.4f, 331.3f)\n                    curveTo(399.4f, 330.7f, 399.4f, 330.1f, 399.4f, 329.5f)\n                    curveTo(399.5f, 329.3f, 399.4f, 328.9f, 399.4f, 328.8f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(351.4f, 388.9f)\n                    curveTo(330.9f, 399.1f, 309.2f, 406.8f, 286.9f, 411.7f)\n                    curveTo(280.6f, 413.1f, 274.3f, 414.3f, 267.9f, 415.2f)\n                    curveTo(267.6f, 415.2f, 268.1f, 420.2f, 267.9f, 420.2f)\n                    curveTo(290.5f, 416.8f, 312.7f, 410.6f, 333.9f, 401.9f)\n                    curveTo(339.9f, 399.4f, 345.7f, 396.7f, 351.5f, 393.9f)\n                    curveTo(351.7f, 393.8f, 351.5f, 391.7f, 351.5f, 391.4f)\n                    curveTo(351.4f, 391.2f, 351.2f, 389.0f, 351.4f, 388.9f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(237.7f, 413.3f)\n                    curveTo(216.9f, 411.1f, 196.5f, 405.4f, 177.6f, 396.5f)\n                    curveTo(172.2f, 394.0f, 167.0f, 391.2f, 161.9f, 388.1f)\n                    curveTo(162.1f, 388.2f, 161.9f, 390.3f, 161.9f, 390.6f)\n                    curveTo(161.9f, 390.9f, 161.7f, 393.0f, 161.9f, 393.1f)\n                    curveTo(179.9f, 403.8f, 199.6f, 411.4f, 220.1f, 415.6f)\n                    curveTo(225.9f, 416.8f, 231.8f, 417.7f, 237.7f, 418.3f)\n                    curveTo(237.5f, 418.3f, 237.9f, 413.4f, 237.7f, 413.3f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(143.6f, 375.1f)\n                    curveTo(124.2f, 362.6f, 108.3f, 345.0f, 97.9f, 324.5f)\n                    curveTo(94.9f, 318.7f, 92.4f, 312.6f, 90.4f, 306.4f)\n                    curveTo(90.6f, 307.0f, 90.4f, 308.2f, 90.4f, 308.9f)\n                    curveTo(90.4f, 309.6f, 90.2f, 310.7f, 90.4f, 311.4f)\n                    curveTo(97.6f, 333.3f, 110.8f, 353.1f, 128.0f, 368.3f)\n                    curveTo(132.9f, 372.6f, 138.1f, 376.6f, 143.6f, 380.1f)\n                    curveTo(143.4f, 380.0f, 143.6f, 377.9f, 143.6f, 377.6f)\n                    curveTo(143.6f, 377.3f, 143.8f, 375.3f, 143.6f, 375.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(86.9f, 289.1f)\n                    curveTo(85.7f, 277.2f, 85.3f, 265.3f, 85.9f, 253.4f)\n                    curveTo(86.4f, 241.6f, 87.7f, 229.9f, 89.7f, 218.3f)\n                    curveTo(90.8f, 211.7f, 92.2f, 205.1f, 93.8f, 198.6f)\n                    curveTo(94.0f, 197.9f, 93.8f, 196.9f, 93.8f, 196.1f)\n                    curveTo(93.8f, 195.3f, 93.6f, 194.3f, 93.8f, 193.6f)\n                    curveTo(87.5f, 219.4f, 85.0f, 245.8f, 85.6f, 272.3f)\n                    curveTo(85.8f, 279.6f, 86.2f, 286.9f, 86.9f, 294.1f)\n                    curveTo(86.7f, 292.4f, 87.0f, 290.7f, 86.9f, 289.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(102.9f, 178.3f)\n                    curveTo(109.0f, 160.2f, 119.9f, 143.7f, 134.1f, 131.0f)\n                    curveTo(138.1f, 127.4f, 142.4f, 124.1f, 146.9f, 121.1f)\n                    curveTo(147.1f, 121.0f, 146.9f, 118.9f, 146.9f, 118.6f)\n                    curveTo(146.9f, 118.3f, 146.7f, 116.2f, 146.9f, 116.1f)\n                    curveTo(130.9f, 126.7f, 117.9f, 141.4f, 109.2f, 158.4f)\n                    curveTo(106.7f, 163.2f, 104.7f, 168.2f, 102.9f, 173.3f)\n                    curveTo(102.7f, 174.0f, 102.9f, 175.1f, 102.9f, 175.8f)\n                    curveTo(102.9f, 176.5f, 103.1f, 177.6f, 102.9f, 178.3f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(178.1f, 113.6f)\n                    curveTo(202.7f, 107.5f, 228.3f, 105.4f, 253.5f, 107.6f)\n                    curveTo(260.6f, 108.2f, 267.7f, 109.2f, 274.7f, 110.5f)\n                    curveTo(274.4f, 110.5f, 275.0f, 105.6f, 274.7f, 105.5f)\n                    curveTo(249.8f, 101.0f, 224.1f, 100.6f, 199.0f, 104.4f)\n                    curveTo(192.0f, 105.5f, 185.0f, 106.9f, 178.0f, 108.6f)\n                    curveTo(177.7f, 108.7f, 178.5f, 113.5f, 178.1f, 113.6f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(300.5f, 118.3f)\n                    curveTo(310.7f, 122.8f, 320.9f, 127.4f, 331.1f, 131.9f)\n                    curveTo(335.7f, 134.0f, 340.0f, 136.2f, 343.6f, 139.8f)\n                    curveTo(347.4f, 143.5f, 350.7f, 147.8f, 354.2f, 151.8f)\n                    curveTo(358.2f, 156.6f, 362.1f, 161.4f, 366.0f, 166.2f)\n                    curveTo(366.0f, 166.2f, 366.0f, 165.4f, 366.0f, 165.5f)\n                    curveTo(366.0f, 164.9f, 366.0f, 164.3f, 366.0f, 163.7f)\n                    curveTo(366.0f, 163.1f, 366.0f, 162.5f, 366.0f, 161.9f)\n                    curveTo(366.0f, 161.8f, 366.1f, 161.3f, 366.0f, 161.2f)\n                    curveTo(359.3f, 152.8f, 352.5f, 144.2f, 345.2f, 136.3f)\n                    curveTo(341.7f, 132.6f, 337.8f, 129.9f, 333.2f, 127.7f)\n                    curveTo(328.2f, 125.4f, 323.0f, 123.2f, 318.0f, 120.9f)\n                    curveTo(312.2f, 118.3f, 306.4f, 115.7f, 300.6f, 113.2f)\n                    curveTo(300.7f, 113.3f, 300.6f, 115.5f, 300.6f, 115.7f)\n                    curveTo(300.5f, 116.1f, 300.3f, 118.2f, 300.5f, 118.3f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(378.0f, 183.7f)\n                    curveTo(387.6f, 200.9f, 397.3f, 218.6f, 400.1f, 238.3f)\n                    curveTo(400.3f, 239.7f, 400.5f, 241.1f, 400.6f, 242.5f)\n                    curveTo(400.7f, 243.2f, 400.7f, 244.0f, 400.8f, 244.7f)\n                    curveTo(400.8f, 245.1f, 401.1f, 246.7f, 400.9f, 247.0f)\n                    curveTo(400.9f, 247.0f, 401.0f, 244.9f, 400.9f, 246.0f)\n                    curveTo(400.9f, 246.4f, 400.9f, 246.8f, 400.9f, 247.3f)\n                    curveTo(400.9f, 248.1f, 400.8f, 248.9f, 400.7f, 249.8f)\n                    curveTo(400.6f, 251.3f, 400.4f, 252.7f, 400.2f, 254.2f)\n                    curveTo(399.9f, 255.8f, 400.5f, 257.6f, 400.2f, 259.2f)\n                    curveTo(401.0f, 253.7f, 401.1f, 248.2f, 401.0f, 242.7f)\n                    curveTo(400.9f, 237.2f, 400.1f, 231.8f, 398.9f, 226.4f)\n                    curveTo(396.5f, 215.5f, 392.1f, 205.2f, 387.0f, 195.3f)\n                    curveTo(384.1f, 189.7f, 381.1f, 184.2f, 378.0f, 178.7f)\n                    curveTo(378.0f, 178.8f, 378.0f, 179.4f, 378.0f, 179.4f)\n                    curveTo(378.0f, 180.0f, 378.0f, 180.6f, 378.0f, 181.2f)\n                    curveTo(378.0f, 181.8f, 378.0f, 182.4f, 378.0f, 183.0f)\n                    curveTo(378.0f, 183.1f, 377.9f, 183.5f, 378.0f, 183.7f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(402.3f, 281.4f)\n                    curveTo(400.2f, 299.9f, 393.2f, 317.8f, 382.2f, 332.8f)\n                    curveTo(379.1f, 337.0f, 375.7f, 341.0f, 372.0f, 344.8f)\n                    curveTo(371.7f, 345.1f, 372.0f, 346.9f, 372.0f, 347.3f)\n                    curveTo(372.0f, 347.9f, 372.0f, 348.5f, 372.0f, 349.1f)\n                    curveTo(372.0f, 349.2f, 372.1f, 349.8f, 372.0f, 349.8f)\n                    curveTo(385.1f, 336.5f, 394.6f, 319.9f, 399.4f, 301.9f)\n                    curveTo(400.8f, 296.8f, 401.7f, 291.7f, 402.3f, 286.4f)\n                    curveTo(402.5f, 284.7f, 402.1f, 283.0f, 402.3f, 281.4f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(358.0f, 360.1f)\n                    curveTo(344.4f, 371.5f, 328.6f, 380.2f, 311.6f, 385.5f)\n                    curveTo(306.8f, 387.0f, 301.9f, 388.2f, 297.0f, 389.2f)\n                    curveTo(296.7f, 389.3f, 297.3f, 394.1f, 297.0f, 394.2f)\n                    curveTo(314.4f, 390.8f, 331.1f, 383.9f, 345.9f, 374.1f)\n                    curveTo(350.1f, 371.3f, 354.1f, 368.3f, 357.9f, 365.1f)\n                    curveTo(358.2f, 364.9f, 357.9f, 363.0f, 357.9f, 362.6f)\n                    curveTo(358.0f, 362.2f, 357.7f, 360.3f, 358.0f, 360.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(270.6f, 393.0f)\n                    curveTo(249.7f, 395.9f, 227.9f, 396.1f, 207.5f, 389.9f)\n                    curveTo(201.7f, 388.1f, 196.2f, 385.9f, 190.8f, 383.1f)\n                    curveTo(190.9f, 383.2f, 190.8f, 385.4f, 190.8f, 385.6f)\n                    curveTo(190.8f, 385.9f, 190.6f, 388.0f, 190.8f, 388.1f)\n                    curveTo(209.7f, 398.0f, 231.3f, 400.8f, 252.4f, 399.8f)\n                    curveTo(258.5f, 399.5f, 264.5f, 398.9f, 270.6f, 398.1f)\n                    curveTo(270.9f, 398.0f, 270.4f, 393.1f, 270.6f, 393.0f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(167.9f, 373.1f)\n                    curveTo(149.7f, 365.3f, 133.9f, 352.4f, 122.4f, 336.3f)\n                    curveTo(119.2f, 331.8f, 116.3f, 327.0f, 113.9f, 322.0f)\n                    curveTo(113.9f, 322.1f, 113.9f, 322.7f, 113.9f, 322.7f)\n                    curveTo(113.9f, 323.3f, 113.9f, 323.9f, 113.9f, 324.5f)\n                    curveTo(113.9f, 325.1f, 113.9f, 325.7f, 113.9f, 326.3f)\n                    curveTo(113.9f, 326.5f, 113.8f, 326.9f, 113.9f, 327.0f)\n                    curveTo(122.7f, 344.7f, 136.4f, 359.8f, 153.2f, 370.4f)\n                    curveTo(157.9f, 373.4f, 162.8f, 375.9f, 167.9f, 378.1f)\n                    curveTo(167.8f, 378.1f, 167.9f, 375.8f, 167.9f, 375.6f)\n                    curveTo(167.9f, 375.4f, 168.1f, 373.2f, 167.9f, 373.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(106.0f, 293.8f)\n                    curveTo(104.1f, 280.3f, 103.3f, 266.8f, 104.2f, 253.2f)\n                    curveTo(105.0f, 239.7f, 107.1f, 226.2f, 110.4f, 213.0f)\n                    curveTo(112.2f, 205.6f, 114.5f, 198.3f, 117.1f, 191.2f)\n                    curveTo(117.3f, 190.5f, 117.1f, 189.4f, 117.1f, 188.7f)\n                    curveTo(117.1f, 188.0f, 116.8f, 186.9f, 117.1f, 186.2f)\n                    curveTo(112.0f, 200.2f, 108.3f, 214.7f, 106.2f, 229.5f)\n                    curveTo(104.0f, 244.2f, 103.4f, 259.1f, 103.9f, 273.9f)\n                    curveTo(104.2f, 282.2f, 104.9f, 290.5f, 106.1f, 298.8f)\n                    curveTo(105.8f, 297.2f, 106.2f, 295.4f, 106.0f, 293.8f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(125.7f, 177.6f)\n                    curveTo(139.2f, 158.4f, 154.4f, 137.4f, 178.0f, 130.4f)\n                    curveTo(184.9f, 128.3f, 192.2f, 128.0f, 199.0f, 125.8f)\n                    curveTo(199.1f, 125.8f, 199.0f, 123.5f, 199.0f, 123.3f)\n                    curveTo(199.0f, 123.1f, 198.9f, 120.8f, 199.0f, 120.8f)\n                    curveTo(192.9f, 122.8f, 186.4f, 123.2f, 180.2f, 124.8f)\n                    curveTo(174.7f, 126.2f, 169.4f, 128.5f, 164.5f, 131.4f)\n                    curveTo(154.3f, 137.5f, 145.9f, 146.0f, 138.5f, 155.3f)\n                    curveTo(134.0f, 160.9f, 129.8f, 166.8f, 125.7f, 172.7f)\n                    curveTo(125.4f, 173.1f, 125.7f, 174.7f, 125.7f, 175.2f)\n                    curveTo(125.7f, 175.8f, 125.7f, 176.4f, 125.7f, 177.0f)\n                    curveTo(125.7f, 177.0f, 125.8f, 177.5f, 125.7f, 177.6f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(223.5f, 125.6f)\n                    curveTo(250.3f, 124.1f, 278.5f, 124.8f, 302.7f, 137.9f)\n                    curveTo(308.8f, 141.2f, 314.4f, 145.2f, 319.4f, 150.0f)\n                    curveTo(319.2f, 149.8f, 319.4f, 147.9f, 319.4f, 147.5f)\n                    curveTo(319.4f, 146.9f, 319.4f, 146.3f, 319.4f, 145.7f)\n                    curveTo(319.4f, 145.6f, 319.5f, 145.0f, 319.4f, 145.0f)\n                    curveTo(300.3f, 126.8f, 273.4f, 120.8f, 247.8f, 120.1f)\n                    curveTo(239.7f, 119.9f, 231.6f, 120.2f, 223.5f, 120.6f)\n                    curveTo(223.3f, 120.6f, 223.5f, 125.6f, 223.5f, 125.6f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(338.1f, 165.6f)\n                    curveTo(354.1f, 179.4f, 367.4f, 196.3f, 377.0f, 215.1f)\n                    curveTo(379.7f, 220.4f, 382.1f, 225.8f, 384.2f, 231.4f)\n                    curveTo(384.0f, 230.8f, 384.2f, 229.6f, 384.2f, 228.9f)\n                    curveTo(384.2f, 228.2f, 384.4f, 227.1f, 384.2f, 226.4f)\n                    curveTo(376.7f, 206.6f, 365.4f, 188.4f, 350.9f, 172.9f)\n                    curveTo(346.8f, 168.6f, 342.6f, 164.4f, 338.1f, 160.6f)\n                    curveTo(338.3f, 160.8f, 338.1f, 162.8f, 338.1f, 163.1f)\n                    curveTo(338.1f, 163.7f, 338.1f, 164.3f, 338.1f, 164.9f)\n                    curveTo(338.0f, 164.9f, 338.0f, 165.5f, 338.1f, 165.6f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(386.3f, 248.2f)\n                    curveTo(386.8f, 253.1f, 387.2f, 258.0f, 387.5f, 263.0f)\n                    curveTo(387.8f, 268.0f, 387.7f, 272.2f, 387.1f, 277.4f)\n                    curveTo(386.0f, 286.9f, 382.8f, 295.7f, 378.0f, 303.9f)\n                    curveTo(375.3f, 308.5f, 372.2f, 312.9f, 369.2f, 317.3f)\n                    curveTo(368.9f, 317.7f, 369.2f, 319.3f, 369.2f, 319.8f)\n                    curveTo(369.2f, 320.4f, 369.2f, 321.0f, 369.2f, 321.6f)\n                    curveTo(369.2f, 321.7f, 369.3f, 322.2f, 369.2f, 322.3f)\n                    curveTo(375.4f, 313.4f, 381.6f, 304.4f, 384.8f, 293.9f)\n                    curveTo(387.9f, 283.5f, 388.1f, 272.4f, 387.7f, 261.6f)\n                    curveTo(387.5f, 255.5f, 387.0f, 249.3f, 386.4f, 243.2f)\n                    curveTo(386.4f, 244.9f, 386.1f, 246.6f, 386.3f, 248.2f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(359.8f, 333.6f)\n                    curveTo(354.6f, 344.6f, 346.3f, 354.1f, 336.0f, 360.5f)\n                    curveTo(330.2f, 364.1f, 323.9f, 366.6f, 317.4f, 368.6f)\n                    curveTo(310.3f, 370.8f, 303.0f, 372.8f, 295.8f, 374.5f)\n                    curveTo(287.5f, 376.6f, 279.0f, 378.4f, 270.6f, 379.9f)\n                    curveTo(270.3f, 380.0f, 270.9f, 384.9f, 270.6f, 384.9f)\n                    curveTo(285.6f, 382.1f, 300.4f, 378.6f, 315.0f, 374.3f)\n                    curveTo(321.6f, 372.3f, 328.2f, 370.0f, 334.2f, 366.5f)\n                    curveTo(339.4f, 363.5f, 344.2f, 359.7f, 348.3f, 355.4f)\n                    curveTo(353.0f, 350.4f, 356.9f, 344.7f, 359.9f, 338.5f)\n                    curveTo(360.2f, 337.9f, 359.9f, 336.6f, 359.9f, 336.0f)\n                    curveTo(359.9f, 335.4f, 359.9f, 334.8f, 359.9f, 334.2f)\n                    curveTo(359.8f, 334.1f, 359.7f, 333.7f, 359.8f, 333.6f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(238.2f, 379.1f)\n                    curveTo(212.6f, 380.1f, 185.6f, 376.7f, 164.6f, 360.8f)\n                    curveTo(159.3f, 356.8f, 154.6f, 352.1f, 150.6f, 346.8f)\n                    curveTo(150.6f, 346.9f, 150.6f, 347.6f, 150.6f, 347.5f)\n                    curveTo(150.6f, 348.1f, 150.6f, 348.7f, 150.6f, 349.3f)\n                    curveTo(150.6f, 349.9f, 150.6f, 350.5f, 150.6f, 351.1f)\n                    curveTo(150.6f, 351.3f, 150.5f, 351.7f, 150.6f, 351.8f)\n                    curveTo(165.5f, 372.1f, 190.4f, 381.4f, 214.8f, 383.7f)\n                    curveTo(222.6f, 384.4f, 230.4f, 384.5f, 238.2f, 384.2f)\n                    curveTo(238.3f, 384.1f, 238.2f, 379.1f, 238.2f, 379.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(137.5f, 325.6f)\n                    curveTo(131.1f, 317.1f, 126.1f, 307.6f, 122.7f, 297.5f)\n                    curveTo(121.0f, 292.4f, 119.7f, 287.1f, 118.9f, 281.8f)\n                    curveTo(118.5f, 279.2f, 118.2f, 276.6f, 118.0f, 274.0f)\n                    curveTo(117.9f, 272.6f, 117.8f, 271.2f, 117.8f, 269.9f)\n                    curveTo(117.8f, 269.6f, 117.8f, 269.4f, 117.8f, 269.1f)\n                    curveTo(117.8f, 268.9f, 117.8f, 268.7f, 117.8f, 268.5f)\n                    curveTo(117.8f, 267.7f, 117.8f, 268.0f, 117.8f, 269.2f)\n                    curveTo(117.9f, 268.5f, 117.8f, 267.7f, 117.9f, 267.0f)\n                    curveTo(118.1f, 260.8f, 119.0f, 254.7f, 120.4f, 248.7f)\n                    curveTo(120.6f, 248.0f, 120.4f, 247.0f, 120.4f, 246.2f)\n                    curveTo(120.4f, 245.4f, 120.2f, 244.4f, 120.4f, 243.7f)\n                    curveTo(117.6f, 255.2f, 117.1f, 267.4f, 118.1f, 279.1f)\n                    curveTo(119.1f, 290.9f, 122.2f, 302.5f, 127.2f, 313.2f)\n                    curveTo(130.1f, 319.3f, 133.6f, 325.1f, 137.6f, 330.4f)\n                    curveTo(137.6f, 330.3f, 137.6f, 329.6f, 137.6f, 329.7f)\n                    curveTo(137.6f, 329.1f, 137.6f, 328.5f, 137.6f, 327.9f)\n                    curveTo(137.6f, 327.3f, 137.6f, 326.7f, 137.6f, 326.1f)\n                    curveTo(137.6f, 326.2f, 137.6f, 325.7f, 137.5f, 325.6f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(125.4f, 223.7f)\n                    curveTo(127.2f, 212.3f, 131.5f, 201.5f, 137.0f, 191.4f)\n                    curveTo(139.7f, 186.3f, 142.7f, 181.4f, 145.8f, 176.5f)\n                    curveTo(148.7f, 172.0f, 151.6f, 167.4f, 155.0f, 163.2f)\n                    curveTo(158.6f, 158.8f, 162.9f, 154.9f, 168.2f, 152.9f)\n                    curveTo(168.4f, 152.8f, 168.2f, 150.6f, 168.2f, 150.4f)\n                    curveTo(168.2f, 150.2f, 168.0f, 147.9f, 168.2f, 147.9f)\n                    curveTo(158.3f, 151.6f, 152.4f, 161.2f, 147.0f, 169.7f)\n                    curveTo(140.7f, 179.4f, 134.8f, 189.4f, 130.5f, 200.2f)\n                    curveTo(128.1f, 206.2f, 126.4f, 212.4f, 125.4f, 218.7f)\n                    curveTo(125.2f, 220.4f, 125.7f, 222.1f, 125.4f, 223.7f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(193.1f, 145.5f)\n                    curveTo(213.9f, 138.3f, 236.5f, 136.6f, 258.2f, 140.6f)\n                    curveTo(264.3f, 141.7f, 270.4f, 143.3f, 276.3f, 145.4f)\n                    curveTo(276.2f, 145.4f, 276.3f, 143.1f, 276.3f, 142.9f)\n                    curveTo(276.3f, 142.7f, 276.5f, 140.5f, 276.3f, 140.4f)\n                    curveTo(255.5f, 133.2f, 232.8f, 131.6f, 211.2f, 135.7f)\n                    curveTo(205.1f, 136.9f, 199.0f, 138.5f, 193.2f, 140.5f)\n                    curveTo(193.1f, 140.6f, 193.2f, 142.8f, 193.2f, 143.0f)\n                    curveTo(193.0f, 143.2f, 193.2f, 145.4f, 193.1f, 145.5f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(295.5f, 151.7f)\n                    curveTo(310.9f, 159.8f, 325.2f, 169.9f, 338.0f, 181.7f)\n                    curveTo(341.6f, 185.0f, 345.1f, 188.5f, 348.5f, 192.1f)\n                    curveTo(348.3f, 191.8f, 348.5f, 190.0f, 348.5f, 189.6f)\n                    curveTo(348.5f, 189.0f, 348.5f, 188.4f, 348.5f, 187.8f)\n                    curveTo(348.5f, 187.7f, 348.6f, 187.2f, 348.5f, 187.1f)\n                    curveTo(336.6f, 174.4f, 323.1f, 163.3f, 308.3f, 154.1f)\n                    curveTo(304.1f, 151.5f, 299.8f, 149.0f, 295.5f, 146.7f)\n                    curveTo(295.6f, 146.8f, 295.5f, 149.0f, 295.5f, 149.2f)\n                    curveTo(295.5f, 149.4f, 295.3f, 151.5f, 295.5f, 151.7f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(358.1f, 210.6f)\n                    curveTo(361.5f, 220.0f, 364.9f, 229.5f, 367.4f, 239.2f)\n                    curveTo(368.7f, 244.0f, 369.7f, 248.8f, 370.4f, 253.7f)\n                    curveTo(370.8f, 256.2f, 371.1f, 258.6f, 371.3f, 261.1f)\n                    curveTo(371.4f, 262.5f, 371.5f, 263.8f, 371.5f, 265.2f)\n                    curveTo(371.5f, 266.2f, 371.5f, 266.1f, 371.5f, 264.8f)\n                    curveTo(371.5f, 265.2f, 371.5f, 265.6f, 371.5f, 266.0f)\n                    curveTo(371.5f, 266.6f, 371.4f, 267.3f, 371.4f, 267.9f)\n                    curveTo(371.3f, 268.9f, 371.4f, 270.0f, 371.4f, 271.0f)\n                    curveTo(371.4f, 271.5f, 371.4f, 272.0f, 371.4f, 272.5f)\n                    curveTo(371.4f, 272.5f, 371.4f, 273.0f, 371.4f, 272.8f)\n                    curveTo(371.9f, 264.0f, 371.5f, 255.1f, 370.0f, 246.4f)\n                    curveTo(368.5f, 237.5f, 365.9f, 228.7f, 363.1f, 220.2f)\n                    curveTo(361.5f, 215.3f, 359.7f, 210.5f, 358.0f, 205.7f)\n                    curveTo(358.2f, 206.3f, 358.0f, 207.5f, 358.0f, 208.2f)\n                    curveTo(358.0f, 208.8f, 357.8f, 209.9f, 358.1f, 210.6f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(369.6f, 287.5f)\n                    curveTo(361.1f, 305.3f, 350.6f, 322.8f, 335.6f, 335.9f)\n                    curveTo(331.4f, 339.6f, 326.9f, 342.8f, 322.1f, 345.6f)\n                    curveTo(321.9f, 345.7f, 322.1f, 347.8f, 322.1f, 348.1f)\n                    curveTo(322.1f, 348.4f, 322.3f, 350.5f, 322.1f, 350.6f)\n                    curveTo(339.4f, 340.6f, 352.0f, 324.5f, 361.7f, 307.4f)\n                    curveTo(364.5f, 302.5f, 367.1f, 297.5f, 369.5f, 292.4f)\n                    curveTo(369.8f, 291.8f, 369.5f, 290.5f, 369.5f, 289.9f)\n                    curveTo(369.5f, 289.3f, 369.5f, 288.7f, 369.5f, 288.1f)\n                    curveTo(369.6f, 288.1f, 369.5f, 287.7f, 369.6f, 287.5f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(299.3f, 355.9f)\n                    curveTo(288.1f, 359.7f, 276.4f, 361.9f, 264.8f, 364.0f)\n                    curveTo(258.8f, 365.1f, 252.7f, 366.2f, 246.6f, 366.6f)\n                    curveTo(240.7f, 367.0f, 234.8f, 366.5f, 228.9f, 365.5f)\n                    curveTo(222.3f, 364.3f, 215.9f, 362.5f, 209.4f, 360.7f)\n                    curveTo(209.5f, 360.7f, 209.4f, 363.0f, 209.4f, 363.2f)\n                    curveTo(209.4f, 363.4f, 209.3f, 365.7f, 209.4f, 365.7f)\n                    curveTo(220.8f, 368.9f, 232.4f, 372.1f, 244.3f, 371.8f)\n                    curveTo(250.5f, 371.6f, 256.5f, 370.6f, 262.6f, 369.5f)\n                    curveTo(268.4f, 368.5f, 274.2f, 367.4f, 280.0f, 366.2f)\n                    curveTo(286.5f, 364.8f, 293.0f, 363.2f, 299.3f, 361.1f)\n                    curveTo(299.4f, 361.1f, 299.3f, 358.8f, 299.3f, 358.6f)\n                    curveTo(299.4f, 358.2f, 299.2f, 356.0f, 299.3f, 355.9f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(183.5f, 351.5f)\n                    curveTo(178.8f, 348.7f, 174.1f, 345.9f, 169.8f, 342.5f)\n                    curveTo(166.0f, 339.5f, 162.4f, 336.3f, 159.1f, 332.8f)\n                    curveTo(152.5f, 325.7f, 147.0f, 317.6f, 142.9f, 308.8f)\n                    curveTo(140.6f, 303.8f, 138.7f, 298.7f, 137.3f, 293.4f)\n                    curveTo(137.5f, 294.1f, 137.3f, 295.2f, 137.3f, 295.9f)\n                    curveTo(137.3f, 296.7f, 137.1f, 297.6f, 137.3f, 298.4f)\n                    curveTo(142.2f, 317.2f, 153.3f, 334.2f, 168.4f, 346.5f)\n                    curveTo(173.1f, 350.3f, 178.3f, 353.5f, 183.5f, 356.6f)\n                    curveTo(183.3f, 356.5f, 183.5f, 354.4f, 183.5f, 354.1f)\n                    curveTo(183.5f, 353.8f, 183.7f, 351.7f, 183.5f, 351.5f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(133.8f, 266.2f)\n                    curveTo(133.3f, 263.9f, 133.0f, 261.6f, 132.7f, 259.3f)\n                    curveTo(132.6f, 258.1f, 132.5f, 256.9f, 132.5f, 255.7f)\n                    curveTo(132.5f, 255.3f, 132.5f, 254.9f, 132.5f, 254.6f)\n                    curveTo(132.5f, 254.4f, 132.4f, 257.6f, 132.5f, 256.3f)\n                    curveTo(132.5f, 255.6f, 132.5f, 254.8f, 132.6f, 254.1f)\n                    curveTo(132.9f, 249.4f, 133.6f, 244.7f, 134.6f, 240.1f)\n                    curveTo(136.7f, 231.0f, 140.0f, 222.3f, 143.8f, 213.7f)\n                    curveTo(146.0f, 208.8f, 148.3f, 204.0f, 150.6f, 199.2f)\n                    curveTo(150.9f, 198.6f, 150.6f, 197.3f, 150.6f, 196.7f)\n                    curveTo(150.6f, 196.1f, 150.6f, 195.5f, 150.6f, 194.9f)\n                    curveTo(150.6f, 194.7f, 150.5f, 194.3f, 150.6f, 194.2f)\n                    curveTo(141.5f, 213.0f, 132.6f, 232.3f, 132.4f, 253.6f)\n                    curveTo(132.4f, 259.5f, 132.5f, 265.4f, 133.8f, 271.2f)\n                    curveTo(133.5f, 269.6f, 134.2f, 267.8f, 133.8f, 266.2f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(162.2f, 180.1f)\n                    curveTo(178.9f, 166.5f, 197.9f, 154.4f, 219.7f, 151.8f)\n                    curveTo(225.9f, 151.1f, 232.1f, 151.2f, 238.2f, 152.2f)\n                    curveTo(238.0f, 152.2f, 238.5f, 147.3f, 238.2f, 147.2f)\n                    curveTo(216.3f, 143.5f, 194.7f, 152.0f, 176.8f, 164.1f)\n                    curveTo(171.8f, 167.5f, 166.9f, 171.2f, 162.2f, 175.1f)\n                    curveTo(161.9f, 175.3f, 162.2f, 177.3f, 162.2f, 177.6f)\n                    curveTo(162.1f, 178.0f, 162.4f, 179.9f, 162.2f, 180.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(259.4f, 155.4f)\n                    curveTo(279.5f, 159.3f, 300.7f, 163.5f, 316.6f, 177.4f)\n                    curveTo(320.6f, 180.9f, 324.0f, 184.9f, 326.8f, 189.4f)\n                    curveTo(326.8f, 189.3f, 326.8f, 188.7f, 326.8f, 188.7f)\n                    curveTo(326.8f, 188.1f, 326.8f, 187.5f, 326.8f, 186.9f)\n                    curveTo(326.8f, 186.3f, 326.8f, 185.7f, 326.8f, 185.1f)\n                    curveTo(326.8f, 184.9f, 326.9f, 184.5f, 326.8f, 184.4f)\n                    curveTo(316.2f, 167.2f, 296.7f, 158.9f, 277.8f, 154.3f)\n                    curveTo(271.7f, 152.8f, 265.6f, 151.6f, 259.4f, 150.5f)\n                    curveTo(259.7f, 150.5f, 259.1f, 155.3f, 259.4f, 155.4f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(336.1f, 200.3f)\n                    curveTo(338.9f, 205.0f, 341.7f, 209.6f, 344.5f, 214.3f)\n                    curveTo(347.2f, 218.9f, 350.1f, 223.4f, 352.5f, 228.2f)\n                    curveTo(354.6f, 232.5f, 356.2f, 237.0f, 357.3f, 241.6f)\n                    curveTo(357.8f, 243.8f, 358.2f, 246.1f, 358.5f, 248.4f)\n                    curveTo(358.7f, 249.7f, 358.8f, 250.9f, 358.8f, 252.2f)\n                    curveTo(358.8f, 252.8f, 358.8f, 253.3f, 358.9f, 253.9f)\n                    curveTo(359.0f, 255.3f, 358.9f, 252.8f, 358.9f, 252.8f)\n                    curveTo(358.8f, 253.3f, 358.9f, 253.8f, 358.8f, 254.3f)\n                    curveTo(358.5f, 259.7f, 357.6f, 265.1f, 355.9f, 270.3f)\n                    curveTo(355.7f, 271.0f, 355.9f, 272.1f, 355.9f, 272.8f)\n                    curveTo(355.9f, 273.5f, 356.1f, 274.6f, 355.9f, 275.3f)\n                    curveTo(357.5f, 270.3f, 358.4f, 265.2f, 358.7f, 260.0f)\n                    curveTo(359.0f, 254.7f, 359.0f, 249.2f, 358.4f, 243.9f)\n                    curveTo(357.8f, 238.6f, 356.5f, 233.4f, 354.6f, 228.5f)\n                    curveTo(352.5f, 223.1f, 349.6f, 218.2f, 346.6f, 213.3f)\n                    curveTo(343.0f, 207.4f, 339.5f, 201.4f, 335.9f, 195.5f)\n                    curveTo(335.9f, 195.6f, 335.9f, 196.2f, 335.9f, 196.2f)\n                    curveTo(335.9f, 196.8f, 335.9f, 197.4f, 335.9f, 198.0f)\n                    curveTo(335.9f, 198.6f, 335.9f, 199.2f, 335.9f, 199.8f)\n                    curveTo(336.1f, 199.7f, 336.0f, 200.1f, 336.1f, 200.3f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(351.0f, 287.7f)\n                    curveTo(340.1f, 308.7f, 321.9f, 325.7f, 300.4f, 335.5f)\n                    curveTo(294.3f, 338.3f, 288.0f, 340.5f, 281.5f, 342.1f)\n                    curveTo(281.1f, 342.2f, 281.8f, 347.0f, 281.5f, 347.1f)\n                    curveTo(304.5f, 341.5f, 325.4f, 328.0f, 340.1f, 309.5f)\n                    curveTo(344.3f, 304.3f, 347.9f, 298.6f, 351.0f, 292.7f)\n                    curveTo(351.3f, 292.2f, 351.0f, 290.8f, 351.0f, 290.2f)\n                    curveTo(351.0f, 289.6f, 351.0f, 289.0f, 351.0f, 288.4f)\n                    curveTo(351.0f, 288.3f, 350.9f, 287.8f, 351.0f, 287.7f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(251.7f, 343.6f)\n                    curveTo(246.5f, 345.3f, 241.1f, 345.5f, 235.8f, 345.6f)\n                    curveTo(230.3f, 345.7f, 224.8f, 345.7f, 219.3f, 345.5f)\n                    curveTo(209.5f, 345.1f, 199.5f, 343.5f, 190.7f, 338.7f)\n                    curveTo(186.2f, 336.3f, 182.1f, 333.0f, 178.9f, 329.0f)\n                    curveTo(178.9f, 329.0f, 178.9f, 329.8f, 178.9f, 329.7f)\n                    curveTo(178.9f, 330.3f, 178.9f, 330.9f, 178.9f, 331.5f)\n                    curveTo(178.9f, 332.1f, 178.9f, 332.7f, 178.9f, 333.3f)\n                    curveTo(178.9f, 333.5f, 178.8f, 333.9f, 178.9f, 334.0f)\n                    curveTo(191.8f, 350.5f, 214.6f, 350.8f, 233.6f, 350.6f)\n                    curveTo(239.7f, 350.5f, 245.8f, 350.4f, 251.7f, 348.6f)\n                    curveTo(251.8f, 348.6f, 251.7f, 346.3f, 251.7f, 346.1f)\n                    curveTo(251.8f, 345.9f, 251.6f, 343.7f, 251.7f, 343.6f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(164.7f, 313.5f)\n                    curveTo(160.1f, 307.0f, 155.5f, 300.5f, 151.8f, 293.5f)\n                    curveTo(148.0f, 286.2f, 145.6f, 278.5f, 144.8f, 270.4f)\n                    curveTo(144.3f, 265.4f, 144.3f, 260.7f, 144.4f, 255.7f)\n                    curveTo(144.4f, 254.6f, 144.4f, 253.4f, 144.4f, 252.3f)\n                    curveTo(144.4f, 252.1f, 144.4f, 250.5f, 144.4f, 251.4f)\n                    curveTo(144.2f, 261.1f, 143.8f, 270.9f, 145.5f, 280.5f)\n                    curveTo(147.1f, 289.6f, 151.1f, 298.0f, 156.0f, 305.7f)\n                    curveTo(158.7f, 310.1f, 161.7f, 314.3f, 164.7f, 318.5f)\n                    curveTo(164.7f, 318.4f, 164.7f, 317.7f, 164.7f, 317.8f)\n                    curveTo(164.7f, 317.2f, 164.7f, 316.6f, 164.7f, 316.0f)\n                    curveTo(164.7f, 315.4f, 164.7f, 314.8f, 164.7f, 314.2f)\n                    curveTo(164.7f, 314.1f, 164.8f, 313.6f, 164.7f, 313.5f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(151.3f, 233.1f)\n                    curveTo(153.0f, 223.9f, 157.2f, 215.6f, 161.9f, 207.6f)\n                    curveTo(166.1f, 200.5f, 170.2f, 193.1f, 175.8f, 187.0f)\n                    curveTo(178.9f, 183.7f, 182.4f, 180.9f, 186.6f, 179.2f)\n                    curveTo(186.8f, 179.1f, 186.6f, 176.9f, 186.6f, 176.7f)\n                    curveTo(186.6f, 176.5f, 186.4f, 174.3f, 186.6f, 174.2f)\n                    curveTo(179.2f, 177.4f, 173.9f, 183.7f, 169.5f, 190.3f)\n                    curveTo(164.6f, 197.6f, 160.0f, 205.3f, 156.3f, 213.2f)\n                    curveTo(154.1f, 217.9f, 152.3f, 222.9f, 151.4f, 228.1f)\n                    curveTo(151.0f, 229.7f, 151.6f, 231.5f, 151.3f, 233.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(205.6f, 172.8f)\n                    curveTo(224.8f, 167.4f, 245.3f, 162.7f, 265.0f, 168.4f)\n                    curveTo(270.1f, 169.9f, 274.9f, 172.0f, 279.3f, 174.9f)\n                    curveTo(279.1f, 174.8f, 279.3f, 172.7f, 279.3f, 172.4f)\n                    curveTo(279.3f, 172.1f, 279.5f, 170.1f, 279.3f, 169.9f)\n                    curveTo(262.6f, 159.0f, 241.7f, 159.5f, 222.9f, 163.5f)\n                    curveTo(217.1f, 164.7f, 211.3f, 166.3f, 205.6f, 167.9f)\n                    curveTo(205.5f, 167.9f, 205.6f, 170.2f, 205.6f, 170.4f)\n                    curveTo(205.6f, 170.5f, 205.7f, 172.8f, 205.6f, 172.8f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(292.9f, 182.4f)\n                    curveTo(301.4f, 187.0f, 309.5f, 192.4f, 317.0f, 198.5f)\n                    curveTo(320.7f, 201.5f, 324.2f, 204.7f, 327.6f, 208.1f)\n                    curveTo(330.9f, 211.4f, 334.1f, 214.8f, 336.8f, 218.5f)\n                    curveTo(339.9f, 222.8f, 342.3f, 227.6f, 342.5f, 233.0f)\n                    curveTo(342.5f, 233.3f, 342.5f, 232.6f, 342.5f, 232.7f)\n                    curveTo(342.5f, 232.2f, 342.5f, 231.7f, 342.5f, 231.2f)\n                    curveTo(342.5f, 230.2f, 342.5f, 229.1f, 342.5f, 228.1f)\n                    curveTo(342.1f, 218.7f, 335.5f, 211.2f, 329.2f, 204.7f)\n                    curveTo(322.4f, 197.7f, 314.9f, 191.4f, 306.9f, 185.8f)\n                    curveTo(302.4f, 182.7f, 297.7f, 179.8f, 292.8f, 177.2f)\n                    curveTo(292.9f, 177.3f, 292.8f, 179.5f, 292.8f, 179.7f)\n                    curveTo(292.9f, 180.2f, 292.7f, 182.3f, 292.9f, 182.4f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(344.5f, 249.8f)\n                    curveTo(344.6f, 250.9f, 344.7f, 252.0f, 344.8f, 253.2f)\n                    curveTo(344.8f, 253.6f, 344.8f, 254.1f, 344.9f, 254.5f)\n                    curveTo(345.0f, 255.5f, 345.0f, 252.3f, 344.9f, 253.5f)\n                    curveTo(344.9f, 253.8f, 344.9f, 254.2f, 344.9f, 254.5f)\n                    curveTo(344.8f, 256.6f, 344.6f, 258.8f, 344.3f, 260.9f)\n                    curveTo(343.7f, 264.9f, 342.8f, 268.8f, 341.5f, 272.7f)\n                    curveTo(338.9f, 280.4f, 335.0f, 287.7f, 329.9f, 294.0f)\n                    curveTo(327.0f, 297.6f, 323.7f, 300.9f, 320.2f, 303.8f)\n                    curveTo(319.9f, 304.0f, 320.2f, 306.0f, 320.2f, 306.3f)\n                    curveTo(320.2f, 306.6f, 320.5f, 308.6f, 320.2f, 308.8f)\n                    curveTo(334.5f, 297.2f, 343.5f, 279.6f, 344.8f, 261.2f)\n                    curveTo(345.2f, 255.8f, 345.2f, 250.2f, 344.6f, 244.8f)\n                    curveTo(344.7f, 246.5f, 344.3f, 248.2f, 344.5f, 249.8f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(300.1f, 317.7f)\n                    curveTo(284.8f, 328.3f, 266.4f, 334.1f, 247.8f, 334.3f)\n                    curveTo(242.5f, 334.4f, 237.2f, 333.9f, 232.0f, 333.1f)\n                    curveTo(232.2f, 333.1f, 231.7f, 338.0f, 232.0f, 338.1f)\n                    curveTo(250.3f, 341.1f, 269.5f, 338.5f, 286.3f, 330.7f)\n                    curveTo(291.1f, 328.5f, 295.7f, 325.8f, 300.1f, 322.8f)\n                    curveTo(300.3f, 322.6f, 300.1f, 320.6f, 300.1f, 320.3f)\n                    curveTo(300.1f, 319.8f, 299.8f, 317.8f, 300.1f, 317.7f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(201.7f, 325.8f)\n                    curveTo(197.4f, 323.7f, 193.2f, 321.6f, 188.9f, 319.5f)\n                    curveTo(185.3f, 317.7f, 181.6f, 316.0f, 178.3f, 313.8f)\n                    curveTo(175.0f, 311.6f, 172.2f, 309.0f, 170.1f, 305.6f)\n                    curveTo(167.8f, 302.0f, 166.2f, 297.9f, 164.6f, 294.0f)\n                    curveTo(162.7f, 289.2f, 160.9f, 284.4f, 159.4f, 279.5f)\n                    curveTo(159.6f, 280.2f, 159.4f, 281.3f, 159.4f, 282.0f)\n                    curveTo(159.4f, 282.7f, 159.2f, 283.8f, 159.4f, 284.5f)\n                    curveTo(160.8f, 288.8f, 162.3f, 293.0f, 163.9f, 297.2f)\n                    curveTo(165.5f, 301.2f, 167.1f, 305.3f, 169.2f, 309.1f)\n                    curveTo(171.2f, 312.6f, 173.7f, 315.5f, 177.0f, 317.8f)\n                    curveTo(180.2f, 320.1f, 183.7f, 321.9f, 187.2f, 323.6f)\n                    curveTo(192.0f, 326.0f, 196.9f, 328.4f, 201.7f, 330.7f)\n                    curveTo(201.6f, 330.6f, 201.7f, 328.4f, 201.7f, 328.2f)\n                    curveTo(201.8f, 328.1f, 202.0f, 325.9f, 201.7f, 325.8f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(158.9f, 263.4f)\n                    curveTo(161.4f, 246.3f, 166.6f, 229.7f, 174.1f, 214.2f)\n                    curveTo(174.4f, 213.6f, 174.1f, 212.3f, 174.1f, 211.7f)\n                    curveTo(174.1f, 211.1f, 174.1f, 210.5f, 174.1f, 209.9f)\n                    curveTo(174.1f, 209.7f, 174.0f, 209.3f, 174.1f, 209.2f)\n                    curveTo(166.5f, 224.7f, 161.4f, 241.3f, 158.9f, 258.4f)\n                    curveTo(158.6f, 260.0f, 159.1f, 261.7f, 158.9f, 263.4f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(183.9f, 205.0f)\n                    curveTo(188.1f, 197.2f, 196.2f, 192.7f, 204.0f, 189.0f)\n                    curveTo(212.9f, 184.8f, 222.2f, 181.6f, 231.9f, 180.0f)\n                    curveTo(237.4f, 179.1f, 243.0f, 178.7f, 248.5f, 178.9f)\n                    curveTo(248.5f, 178.9f, 248.6f, 173.9f, 248.5f, 173.9f)\n                    curveTo(238.7f, 173.6f, 228.9f, 175.1f, 219.6f, 177.9f)\n                    curveTo(214.9f, 179.3f, 210.3f, 181.1f, 205.8f, 183.1f)\n                    curveTo(201.7f, 185.0f, 197.6f, 187.0f, 193.8f, 189.5f)\n                    curveTo(189.8f, 192.2f, 186.2f, 195.6f, 183.8f, 199.9f)\n                    curveTo(183.5f, 200.4f, 183.8f, 201.8f, 183.8f, 202.4f)\n                    curveTo(183.8f, 203.0f, 183.8f, 203.6f, 183.8f, 204.2f)\n                    curveTo(183.9f, 204.4f, 184.0f, 204.8f, 183.9f, 205.0f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(261.6f, 181.5f)\n                    curveTo(269.5f, 182.9f, 277.5f, 184.7f, 284.7f, 188.3f)\n                    curveTo(291.6f, 191.8f, 297.4f, 196.9f, 302.7f, 202.5f)\n                    curveTo(305.7f, 205.7f, 308.6f, 209.1f, 311.4f, 212.5f)\n                    curveTo(311.4f, 212.5f, 311.4f, 211.7f, 311.4f, 211.8f)\n                    curveTo(311.4f, 211.2f, 311.4f, 210.6f, 311.4f, 210.0f)\n                    curveTo(311.4f, 209.4f, 311.4f, 208.8f, 311.4f, 208.2f)\n                    curveTo(311.4f, 208.1f, 311.5f, 207.6f, 311.4f, 207.5f)\n                    curveTo(306.5f, 201.6f, 301.5f, 195.7f, 295.7f, 190.7f)\n                    curveTo(289.7f, 185.5f, 282.8f, 181.9f, 275.2f, 179.6f)\n                    curveTo(270.8f, 178.3f, 266.2f, 177.3f, 261.6f, 176.5f)\n                    curveTo(261.8f, 176.5f, 261.3f, 181.4f, 261.6f, 181.5f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(320.5f, 223.7f)\n                    curveTo(324.8f, 230.4f, 327.8f, 238.0f, 329.3f, 245.9f)\n                    curveTo(329.6f, 247.8f, 329.9f, 249.7f, 330.1f, 251.6f)\n                    curveTo(330.2f, 252.7f, 330.3f, 253.9f, 330.3f, 255.0f)\n                    curveTo(330.4f, 257.4f, 330.4f, 252.9f, 330.3f, 254.5f)\n                    curveTo(330.3f, 255.1f, 330.3f, 255.6f, 330.2f, 256.2f)\n                    curveTo(329.9f, 260.3f, 329.3f, 264.4f, 328.2f, 268.3f)\n                    curveTo(328.0f, 269.0f, 328.2f, 270.0f, 328.2f, 270.8f)\n                    curveTo(328.2f, 271.5f, 328.4f, 272.6f, 328.2f, 273.3f)\n                    curveTo(330.2f, 266.0f, 330.5f, 258.5f, 330.4f, 250.9f)\n                    curveTo(330.2f, 243.7f, 328.9f, 236.6f, 326.3f, 229.9f)\n                    curveTo(324.8f, 226.0f, 322.9f, 222.2f, 320.6f, 218.7f)\n                    curveTo(320.6f, 218.8f, 320.6f, 219.4f, 320.6f, 219.4f)\n                    curveTo(320.6f, 220.0f, 320.6f, 220.6f, 320.6f, 221.2f)\n                    curveTo(320.6f, 221.8f, 320.6f, 222.4f, 320.6f, 223.0f)\n                    curveTo(320.5f, 223.2f, 320.4f, 223.6f, 320.5f, 223.7f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(315.4f, 287.1f)\n                    curveTo(312.9f, 290.3f, 310.3f, 293.4f, 307.6f, 296.5f)\n                    curveTo(305.1f, 299.3f, 302.6f, 302.1f, 299.8f, 304.5f)\n                    curveTo(294.3f, 309.2f, 287.5f, 311.5f, 280.5f, 312.8f)\n                    curveTo(276.5f, 313.5f, 272.4f, 313.9f, 268.3f, 314.3f)\n                    curveTo(268.1f, 314.3f, 268.4f, 319.3f, 268.3f, 319.3f)\n                    curveTo(275.3f, 318.7f, 282.5f, 318.0f, 289.2f, 315.6f)\n                    curveTo(292.6f, 314.4f, 295.8f, 312.7f, 298.6f, 310.5f)\n                    curveTo(301.5f, 308.2f, 304.0f, 305.5f, 306.5f, 302.8f)\n                    curveTo(309.6f, 299.4f, 312.5f, 295.8f, 315.4f, 292.2f)\n                    curveTo(315.7f, 291.8f, 315.4f, 290.2f, 315.4f, 289.7f)\n                    curveTo(315.4f, 289.1f, 315.4f, 288.5f, 315.4f, 287.9f)\n                    curveTo(315.4f, 287.7f, 315.3f, 287.2f, 315.4f, 287.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(244.4f, 318.0f)\n                    curveTo(228.4f, 318.8f, 211.5f, 319.3f, 196.7f, 312.0f)\n                    curveTo(192.9f, 310.1f, 189.4f, 307.8f, 186.3f, 305.0f)\n                    curveTo(186.5f, 305.2f, 186.3f, 307.2f, 186.3f, 307.5f)\n                    curveTo(186.3f, 308.1f, 186.3f, 308.7f, 186.3f, 309.3f)\n                    curveTo(186.3f, 309.4f, 186.2f, 310.0f, 186.3f, 310.0f)\n                    curveTo(198.0f, 320.7f, 214.2f, 323.4f, 229.5f, 323.4f)\n                    curveTo(234.4f, 323.4f, 239.4f, 323.2f, 244.3f, 322.9f)\n                    curveTo(244.6f, 323.0f, 244.4f, 318.0f, 244.4f, 318.0f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(178.8f, 293.4f)\n                    curveTo(177.2f, 287.2f, 175.7f, 281.0f, 174.6f, 274.8f)\n                    curveTo(174.0f, 271.7f, 173.6f, 268.6f, 173.3f, 265.5f)\n                    curveTo(173.1f, 263.8f, 173.0f, 262.1f, 172.9f, 260.3f)\n                    curveTo(172.9f, 259.9f, 172.9f, 259.5f, 172.9f, 259.1f)\n                    curveTo(173.0f, 261.4f, 172.9f, 260.2f, 172.9f, 259.6f)\n                    curveTo(172.9f, 258.6f, 173.0f, 257.6f, 173.1f, 256.6f)\n                    curveTo(173.2f, 254.9f, 173.0f, 253.3f, 173.1f, 251.6f)\n                    curveTo(172.5f, 259.3f, 172.7f, 267.2f, 173.8f, 274.8f)\n                    curveTo(174.9f, 282.8f, 176.9f, 290.6f, 178.9f, 298.4f)\n                    curveTo(178.7f, 297.7f, 178.9f, 296.6f, 178.9f, 295.9f)\n                    curveTo(178.8f, 295.1f, 179.0f, 294.1f, 178.8f, 293.4f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(179.3f, 233.7f)\n                    curveTo(182.1f, 227.1f, 184.9f, 220.3f, 189.9f, 215.0f)\n                    curveTo(194.9f, 209.6f, 201.5f, 206.3f, 208.0f, 203.1f)\n                    curveTo(208.2f, 203.0f, 208.0f, 200.9f, 208.0f, 200.6f)\n                    curveTo(208.0f, 200.4f, 207.8f, 198.2f, 208.0f, 198.1f)\n                    curveTo(201.5f, 201.3f, 194.9f, 204.6f, 189.9f, 210.0f)\n                    curveTo(185.0f, 215.3f, 182.1f, 222.1f, 179.3f, 228.7f)\n                    curveTo(179.0f, 229.3f, 179.3f, 230.5f, 179.3f, 231.2f)\n                    curveTo(179.3f, 231.8f, 179.3f, 232.4f, 179.3f, 233.0f)\n                    curveTo(179.3f, 233.1f, 179.4f, 233.5f, 179.3f, 233.7f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(229.1f, 197.9f)\n                    curveTo(245.8f, 195.8f, 263.7f, 193.7f, 279.2f, 201.6f)\n                    curveTo(279.1f, 201.5f, 279.2f, 199.3f, 279.2f, 199.1f)\n                    curveTo(279.2f, 198.8f, 279.4f, 196.7f, 279.2f, 196.6f)\n                    curveTo(263.6f, 188.7f, 245.7f, 190.8f, 229.1f, 192.9f)\n                    curveTo(228.9f, 192.9f, 229.3f, 197.8f, 229.1f, 197.9f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(293.1f, 213.1f)\n                    curveTo(300.9f, 221.2f, 307.3f, 230.6f, 311.8f, 240.9f)\n                    curveTo(311.8f, 240.8f, 311.8f, 240.2f, 311.8f, 240.2f)\n                    curveTo(311.8f, 239.6f, 311.8f, 239.0f, 311.8f, 238.4f)\n                    curveTo(311.8f, 237.7f, 312.1f, 236.5f, 311.8f, 235.9f)\n                    curveTo(307.3f, 225.6f, 301.0f, 216.2f, 293.1f, 208.1f)\n                    curveTo(293.3f, 208.3f, 293.1f, 210.2f, 293.1f, 210.6f)\n                    curveTo(293.1f, 211.2f, 293.1f, 211.8f, 293.1f, 212.4f)\n                    curveTo(293.0f, 212.5f, 293.0f, 213.0f, 293.1f, 213.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(312.2f, 254.4f)\n                    curveTo(312.2f, 254.7f, 312.2f, 255.1f, 312.3f, 255.4f)\n                    curveTo(312.4f, 257.1f, 312.3f, 254.2f, 312.3f, 254.0f)\n                    curveTo(312.2f, 254.8f, 312.2f, 255.6f, 312.1f, 256.3f)\n                    curveTo(312.0f, 257.7f, 311.8f, 259.1f, 311.5f, 260.5f)\n                    curveTo(311.0f, 263.2f, 310.2f, 265.9f, 309.2f, 268.4f)\n                    curveTo(307.1f, 273.5f, 304.1f, 278.3f, 300.3f, 282.3f)\n                    curveTo(300.0f, 282.6f, 300.3f, 284.4f, 300.3f, 284.8f)\n                    curveTo(300.3f, 285.4f, 300.3f, 286.0f, 300.3f, 286.6f)\n                    curveTo(300.3f, 286.7f, 300.4f, 287.3f, 300.3f, 287.3f)\n                    curveTo(305.0f, 282.4f, 308.4f, 276.4f, 310.4f, 270.0f)\n                    curveTo(312.4f, 263.4f, 312.7f, 256.4f, 312.2f, 249.5f)\n                    curveTo(312.2f, 249.2f, 312.2f, 249.9f, 312.2f, 249.8f)\n                    curveTo(312.2f, 250.3f, 312.2f, 250.8f, 312.2f, 251.3f)\n                    curveTo(312.1f, 252.4f, 312.1f, 253.4f, 312.2f, 254.4f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(283.5f, 295.9f)\n                    curveTo(273.7f, 301.0f, 262.8f, 303.7f, 251.7f, 303.7f)\n                    verticalLineTo(308.7f)\n                    curveTo(262.8f, 308.7f, 273.7f, 306.0f, 283.5f, 300.9f)\n                    curveTo(283.7f, 300.8f, 283.5f, 298.7f, 283.5f, 298.4f)\n                    curveTo(283.5f, 298.2f, 283.3f, 296.0f, 283.5f, 295.9f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(220.5f, 303.4f)\n                    curveTo(210.0f, 301.3f, 198.4f, 298.7f, 191.1f, 290.2f)\n                    curveTo(191.1f, 290.2f, 191.1f, 291.0f, 191.1f, 290.9f)\n                    curveTo(191.1f, 291.5f, 191.1f, 292.1f, 191.1f, 292.7f)\n                    curveTo(191.1f, 293.3f, 191.1f, 293.9f, 191.1f, 294.5f)\n                    curveTo(191.1f, 294.6f, 191.0f, 295.1f, 191.1f, 295.2f)\n                    curveTo(198.4f, 303.8f, 209.9f, 306.3f, 220.5f, 308.4f)\n                    curveTo(220.2f, 308.3f, 220.9f, 303.5f, 220.5f, 303.4f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(185.6f, 271.5f)\n                    curveTo(185.6f, 270.5f, 185.5f, 269.4f, 185.5f, 268.4f)\n                    curveTo(185.5f, 267.3f, 185.3f, 266.1f, 185.4f, 265.1f)\n                    curveTo(185.2f, 266.9f, 185.4f, 264.7f, 185.4f, 264.3f)\n                    curveTo(185.4f, 263.9f, 185.4f, 263.4f, 185.5f, 263.0f)\n                    curveTo(185.6f, 261.8f, 185.7f, 260.5f, 185.8f, 259.3f)\n                    curveTo(186.3f, 255.1f, 187.3f, 251.0f, 189.0f, 247.2f)\n                    curveTo(189.3f, 246.6f, 189.0f, 245.3f, 189.0f, 244.7f)\n                    curveTo(189.0f, 244.1f, 189.0f, 243.5f, 189.0f, 242.9f)\n                    curveTo(189.0f, 242.7f, 188.9f, 242.3f, 189.0f, 242.2f)\n                    curveTo(186.7f, 247.4f, 185.7f, 253.0f, 185.4f, 258.6f)\n                    curveTo(185.1f, 264.5f, 185.3f, 270.5f, 185.5f, 276.4f)\n                    curveTo(185.5f, 276.7f, 185.5f, 276.0f, 185.5f, 276.1f)\n                    curveTo(185.5f, 275.6f, 185.5f, 275.1f, 185.5f, 274.6f)\n                    curveTo(185.6f, 273.6f, 185.6f, 272.5f, 185.6f, 271.5f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(200.1f, 233.1f)\n                    curveTo(207.3f, 225.4f, 216.3f, 219.5f, 226.2f, 215.9f)\n                    curveTo(226.4f, 215.8f, 226.2f, 213.6f, 226.2f, 213.4f)\n                    curveTo(226.2f, 213.2f, 226.0f, 210.9f, 226.2f, 210.9f)\n                    curveTo(216.3f, 214.5f, 207.3f, 220.4f, 200.1f, 228.1f)\n                    curveTo(199.8f, 228.4f, 200.1f, 230.2f, 200.1f, 230.6f)\n                    curveTo(200.1f, 231.2f, 200.1f, 231.8f, 200.1f, 232.4f)\n                    curveTo(200.0f, 232.5f, 200.1f, 233.1f, 200.1f, 233.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(250.1f, 215.6f)\n                    curveTo(260.4f, 215.5f, 270.5f, 218.7f, 278.8f, 224.7f)\n                    curveTo(278.6f, 224.6f, 278.8f, 222.5f, 278.8f, 222.2f)\n                    curveTo(278.8f, 221.9f, 279.1f, 219.9f, 278.8f, 219.7f)\n                    curveTo(270.4f, 213.7f, 260.3f, 210.5f, 250.1f, 210.6f)\n                    verticalLineTo(215.6f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(290.1f, 236.8f)\n                    curveTo(291.5f, 240.1f, 292.9f, 243.4f, 293.9f, 246.9f)\n                    curveTo(294.4f, 248.6f, 294.7f, 250.3f, 294.9f, 252.1f)\n                    curveTo(295.0f, 252.6f, 295.0f, 253.1f, 295.0f, 253.6f)\n                    curveTo(294.5f, 249.1f, 295.1f, 249.7f, 294.9f, 251.5f)\n                    curveTo(294.8f, 252.4f, 294.6f, 253.4f, 294.4f, 254.3f)\n                    curveTo(294.2f, 255.1f, 294.4f, 256.0f, 294.4f, 256.8f)\n                    curveTo(294.4f, 257.6f, 294.6f, 258.6f, 294.4f, 259.3f)\n                    curveTo(294.9f, 257.1f, 295.0f, 254.9f, 295.0f, 252.7f)\n                    curveTo(295.0f, 250.2f, 295.0f, 247.8f, 294.6f, 245.3f)\n                    curveTo(293.8f, 240.6f, 291.9f, 236.2f, 290.0f, 231.9f)\n                    curveTo(290.0f, 232.0f, 290.0f, 232.6f, 290.0f, 232.6f)\n                    curveTo(290.0f, 233.2f, 290.0f, 233.8f, 290.0f, 234.4f)\n                    curveTo(290.0f, 235.0f, 290.0f, 235.6f, 290.0f, 236.2f)\n                    curveTo(290.1f, 236.3f, 290.0f, 236.6f, 290.1f, 236.8f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(283.5f, 269.8f)\n                    curveTo(277.7f, 279.4f, 267.5f, 286.0f, 256.4f, 287.5f)\n                    curveTo(256.1f, 287.5f, 256.6f, 292.5f, 256.4f, 292.5f)\n                    curveTo(267.5f, 291.0f, 277.7f, 284.4f, 283.5f, 274.8f)\n                    curveTo(283.8f, 274.3f, 283.5f, 272.9f, 283.5f, 272.3f)\n                    curveTo(283.5f, 271.7f, 283.5f, 271.1f, 283.5f, 270.5f)\n                    curveTo(283.5f, 270.4f, 283.4f, 269.9f, 283.5f, 269.8f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(240.2f, 290.5f)\n                    curveTo(224.9f, 292.5f, 210.3f, 285.7f, 196.9f, 279.2f)\n                    curveTo(197.0f, 279.3f, 196.9f, 281.5f, 196.9f, 281.7f)\n                    curveTo(196.9f, 282.0f, 196.7f, 284.1f, 196.9f, 284.2f)\n                    curveTo(210.3f, 290.7f, 224.9f, 297.5f, 240.2f, 295.5f)\n                    curveTo(240.5f, 295.4f, 240.0f, 290.5f, 240.2f, 290.5f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(194.8f, 269.6f)\n                    curveTo(196.3f, 258.3f, 202.7f, 248.0f, 212.1f, 241.5f)\n                    curveTo(212.3f, 241.3f, 212.1f, 239.3f, 212.1f, 239.0f)\n                    curveTo(212.1f, 238.7f, 211.8f, 236.7f, 212.1f, 236.5f)\n                    curveTo(202.7f, 242.9f, 196.3f, 253.3f, 194.8f, 264.6f)\n                    curveTo(194.6f, 266.3f, 195.0f, 268.0f, 194.8f, 269.6f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(235.0f, 233.7f)\n                    curveTo(244.6f, 231.6f, 255.6f, 229.4f, 264.3f, 235.4f)\n                    curveTo(264.1f, 235.3f, 264.3f, 233.2f, 264.3f, 232.9f)\n                    curveTo(264.3f, 232.6f, 264.6f, 230.6f, 264.3f, 230.4f)\n                    curveTo(255.6f, 224.3f, 244.6f, 226.5f, 235.0f, 228.7f)\n                    curveTo(234.6f, 228.8f, 235.3f, 233.6f, 235.0f, 233.7f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(271.9f, 244.1f)\n                    curveTo(273.0f, 246.7f, 274.0f, 249.4f, 274.7f, 252.2f)\n                    curveTo(275.0f, 253.6f, 275.2f, 255.0f, 275.4f, 256.5f)\n                    curveTo(274.9f, 252.3f, 275.5f, 252.5f, 275.3f, 254.2f)\n                    curveTo(275.3f, 254.5f, 275.2f, 254.8f, 275.2f, 255.2f)\n                    curveTo(275.1f, 256.0f, 274.9f, 256.7f, 274.6f, 257.4f)\n                    curveTo(274.5f, 257.6f, 274.6f, 258.0f, 274.6f, 258.1f)\n                    curveTo(274.6f, 258.7f, 274.6f, 259.3f, 274.6f, 259.9f)\n                    curveTo(274.6f, 260.5f, 274.6f, 261.1f, 274.6f, 261.7f)\n                    curveTo(274.6f, 261.9f, 274.7f, 262.2f, 274.6f, 262.4f)\n                    curveTo(275.1f, 260.7f, 275.4f, 259.0f, 275.4f, 257.3f)\n                    curveTo(275.4f, 254.9f, 275.5f, 252.5f, 275.2f, 250.2f)\n                    curveTo(274.7f, 246.4f, 273.3f, 242.7f, 271.9f, 239.2f)\n                    curveTo(271.9f, 239.3f, 271.9f, 239.9f, 271.9f, 239.9f)\n                    curveTo(271.9f, 240.5f, 271.9f, 241.1f, 271.9f, 241.7f)\n                    curveTo(271.9f, 242.3f, 271.9f, 242.9f, 271.9f, 243.5f)\n                    curveTo(271.8f, 243.5f, 271.8f, 243.9f, 271.9f, 244.1f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(263.7f, 267.9f)\n                    curveTo(256.2f, 272.1f, 247.7f, 274.0f, 239.1f, 273.5f)\n                    curveTo(239.2f, 273.5f, 238.9f, 278.5f, 239.1f, 278.5f)\n                    curveTo(247.6f, 279.1f, 256.2f, 277.2f, 263.7f, 272.9f)\n                    curveTo(263.9f, 272.8f, 263.7f, 270.7f, 263.7f, 270.4f)\n                    curveTo(263.8f, 270.1f, 263.5f, 268.0f, 263.7f, 267.9f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(220.2f, 269.5f)\n                    curveTo(216.4f, 266.2f, 213.6f, 262.0f, 212.0f, 257.3f)\n                    curveTo(212.0f, 257.4f, 212.0f, 257.9f, 212.0f, 258.0f)\n                    curveTo(212.0f, 258.6f, 212.0f, 259.2f, 212.0f, 259.8f)\n                    curveTo(212.0f, 260.4f, 212.0f, 261.0f, 212.0f, 261.6f)\n                    curveTo(212.0f, 261.8f, 211.9f, 262.1f, 212.0f, 262.3f)\n                    curveTo(213.6f, 267.0f, 216.4f, 271.2f, 220.2f, 274.5f)\n                    curveTo(220.2f, 274.5f, 220.2f, 273.7f, 220.2f, 273.8f)\n                    curveTo(220.2f, 273.2f, 220.2f, 272.6f, 220.2f, 272.0f)\n                    curveTo(220.2f, 271.4f, 220.2f, 270.8f, 220.2f, 270.2f)\n                    curveTo(220.2f, 270.2f, 220.3f, 269.6f, 220.2f, 269.5f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(229.0f, 250.4f)\n                    curveTo(231.2f, 245.5f, 236.5f, 242.4f, 241.8f, 242.9f)\n                    curveTo(241.7f, 242.9f, 242.0f, 237.9f, 241.8f, 237.9f)\n                    curveTo(236.5f, 237.5f, 231.2f, 240.6f, 229.0f, 245.4f)\n                    curveTo(228.9f, 245.5f, 229.0f, 246.0f, 229.0f, 246.1f)\n                    curveTo(229.0f, 246.7f, 229.0f, 247.3f, 229.0f, 247.9f)\n                    curveTo(229.0f, 248.5f, 229.0f, 249.1f, 229.0f, 249.7f)\n                    curveTo(228.9f, 249.9f, 229.0f, 250.3f, 229.0f, 250.4f)\n                    close()\n                }\n                path(fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                        strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                        pathFillType = NonZero) {\n                    moveTo(253.1f, 251.5f)\n                    curveTo(254.3f, 252.0f, 255.3f, 252.9f, 256.0f, 254.1f)\n                    curveTo(256.3f, 254.7f, 256.5f, 255.3f, 256.7f, 256.0f)\n                    curveTo(257.0f, 257.6f, 256.0f, 257.5f, 256.8f, 253.0f)\n                    curveTo(256.7f, 253.3f, 256.7f, 253.6f, 256.7f, 253.9f)\n                    curveTo(256.0f, 256.7f, 253.8f, 258.8f, 251.2f, 259.9f)\n                    curveTo(248.2f, 261.1f, 244.6f, 261.0f, 241.5f, 260.1f)\n                    curveTo(240.1f, 259.7f, 238.7f, 259.1f, 237.6f, 258.1f)\n                    curveTo(237.1f, 257.6f, 236.6f, 257.0f, 236.2f, 256.4f)\n                    curveTo(236.1f, 256.1f, 235.9f, 255.8f, 235.8f, 255.5f)\n                    curveTo(235.7f, 255.3f, 235.7f, 255.1f, 235.6f, 254.9f)\n                    curveTo(235.4f, 253.5f, 235.3f, 254.5f, 235.5f, 257.9f)\n                    curveTo(235.5f, 258.1f, 235.5f, 258.4f, 235.5f, 258.6f)\n                    curveTo(235.7f, 255.6f, 238.6f, 254.3f, 241.3f, 254.0f)\n                    curveTo(242.7f, 253.8f, 244.2f, 253.8f, 245.5f, 254.3f)\n                    curveTo(246.1f, 254.6f, 246.6f, 255.0f, 246.9f, 255.6f)\n                    curveTo(247.0f, 255.8f, 247.0f, 255.9f, 247.1f, 256.1f)\n                    curveTo(247.5f, 252.1f, 247.5f, 250.8f, 247.0f, 252.3f)\n                    curveTo(246.8f, 252.6f, 246.7f, 252.8f, 246.4f, 253.0f)\n                    curveTo(246.2f, 253.2f, 246.4f, 255.2f, 246.4f, 255.5f)\n                    curveTo(246.4f, 256.1f, 246.4f, 256.7f, 246.4f, 257.3f)\n                    curveTo(246.4f, 257.4f, 246.5f, 258.0f, 246.4f, 258.0f)\n                    curveTo(247.1f, 257.4f, 247.1f, 256.7f, 247.1f, 255.8f)\n                    curveTo(247.1f, 254.3f, 247.4f, 252.5f, 247.0f, 251.0f)\n                    curveTo(246.5f, 248.8f, 243.8f, 248.7f, 242.0f, 248.9f)\n                    curveTo(240.2f, 249.0f, 238.1f, 249.5f, 236.7f, 250.8f)\n                    curveTo(234.8f, 252.6f, 235.4f, 255.8f, 235.4f, 258.2f)\n                    curveTo(235.4f, 260.4f, 236.2f, 262.2f, 238.0f, 263.5f)\n                    curveTo(239.9f, 264.8f, 242.3f, 265.4f, 244.5f, 265.6f)\n                    curveTo(249.0f, 266.0f, 254.1f, 264.5f, 256.1f, 260.0f)\n                    curveTo(256.6f, 258.9f, 256.7f, 257.8f, 256.7f, 256.7f)\n                    curveTo(256.7f, 255.1f, 256.8f, 253.5f, 256.7f, 251.9f)\n                    curveTo(256.5f, 249.6f, 255.2f, 247.5f, 253.0f, 246.6f)\n                    curveTo(253.1f, 246.6f, 253.0f, 248.9f, 253.0f, 249.1f)\n                    curveTo(253.1f, 249.3f, 252.9f, 251.5f, 253.1f, 251.5f)\n                    close()\n                }\n            }\n        }\n        return _colony!!\n    }\n\nprivate var _colony: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/ConcentricTriangles.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.NonZero\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap.Companion.Butt\nimport androidx.compose.ui.graphics.StrokeJoin.Companion.Miter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.path\nimport androidx.compose.ui.unit.dp\n\nval ConcentricTriangles: ImageVector\n    get() {\n        if (_concentricTriangles != null) {\n            return _concentricTriangles!!\n        }\n        _concentricTriangles = icon(\n            name = \"ConcentricTriangles\",\n            viewPort = 107F to 144F,\n            size = (85.6).dp to (115.2).dp,\n        ) {\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(106.834f, 142.343f)\n                lineTo(14.895f, 0.467f)\n                curveTo(14.682f, 0.17f, 14.341f, 0.0f, 14.0f, 0.0f)\n                curveTo(13.659f, 0.0f, 13.318f, 0.17f, 13.105f, 0.467f)\n                lineTo(-78.835f, 142.343f)\n                curveTo(-79.048f, 142.683f, -79.048f, 143.065f, -78.877f, 143.448f)\n                curveTo(-78.707f, 143.788f, -78.323f, 144.0f, -77.94f, 144.0f)\n                horizontalLineTo(105.94f)\n                curveTo(106.323f, 144.0f, 106.707f, 143.788f, 106.877f, 143.448f)\n                curveTo(107.047f, 143.065f, 107.047f, 142.64f, 106.834f, 142.343f)\n                close()\n                moveTo(-75.98f, 141.833f)\n                lineTo(14.0f, 3.017f)\n                lineTo(103.98f, 141.875f)\n                horizontalLineTo(-75.98f)\n                verticalLineTo(141.833f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color(0xFF78786D)), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(13.105f, 18.186f)\n                lineTo(-60.685f, 132.06f)\n                curveTo(-60.898f, 132.4f, -60.898f, 132.783f, -60.728f, 133.165f)\n                curveTo(-60.557f, 133.505f, -60.174f, 133.717f, -59.79f, 133.717f)\n                horizontalLineTo(87.833f)\n                curveTo(88.216f, 133.717f, 88.6f, 133.505f, 88.77f, 133.165f)\n                curveTo(88.941f, 132.825f, 88.941f, 132.4f, 88.728f, 132.06f)\n                lineTo(14.937f, 18.186f)\n                curveTo(14.724f, 17.889f, 14.384f, 17.719f, 14.043f, 17.719f)\n                curveTo(13.702f, 17.719f, 13.318f, 17.889f, 13.105f, 18.186f)\n                close()\n                moveTo(85.831f, 131.593f)\n                horizontalLineTo(-57.831f)\n                lineTo(14.0f, 20.735f)\n                lineTo(85.831f, 131.593f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color(0xFF78786D)), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(13.105f, 35.947f)\n                lineTo(-42.578f, 121.82f)\n                curveTo(-42.791f, 122.16f, -42.791f, 122.542f, -42.621f, 122.925f)\n                curveTo(-42.451f, 123.265f, -42.067f, 123.477f, -41.684f, 123.477f)\n                horizontalLineTo(69.684f)\n                curveTo(70.067f, 123.477f, 70.451f, 123.265f, 70.621f, 122.925f)\n                curveTo(70.791f, 122.585f, 70.791f, 122.16f, 70.578f, 121.82f)\n                lineTo(14.895f, 35.947f)\n                curveTo(14.682f, 35.649f, 14.341f, 35.479f, 14.0f, 35.479f)\n                curveTo(13.659f, 35.479f, 13.318f, 35.649f, 13.105f, 35.947f)\n                close()\n                moveTo(67.724f, 121.353f)\n                horizontalLineTo(-39.724f)\n                lineTo(14.0f, 38.454f)\n                lineTo(67.724f, 121.353f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color(0xFF78786D)), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(13.105f, 53.665f)\n                lineTo(-24.429f, 111.58f)\n                curveTo(-24.642f, 111.92f, -24.642f, 112.302f, -24.472f, 112.685f)\n                curveTo(-24.301f, 113.024f, -23.918f, 113.237f, -23.534f, 113.237f)\n                horizontalLineTo(51.534f)\n                curveTo(51.918f, 113.237f, 52.301f, 113.024f, 52.472f, 112.685f)\n                curveTo(52.642f, 112.345f, 52.642f, 111.92f, 52.429f, 111.58f)\n                lineTo(14.895f, 53.665f)\n                curveTo(14.682f, 53.368f, 14.341f, 53.198f, 14.0f, 53.198f)\n                curveTo(13.659f, 53.198f, 13.318f, 53.368f, 13.105f, 53.665f)\n                close()\n                moveTo(49.575f, 111.112f)\n                horizontalLineTo(-21.574f)\n                lineTo(14.0f, 56.215f)\n                lineTo(49.575f, 111.112f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color(0xFF78786D)), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(13.105f, 71.384f)\n                lineTo(-6.28f, 101.34f)\n                curveTo(-6.493f, 101.68f, -6.493f, 102.062f, -6.322f, 102.444f)\n                curveTo(-6.152f, 102.784f, -5.768f, 102.997f, -5.385f, 102.997f)\n                horizontalLineTo(33.428f)\n                curveTo(33.811f, 102.997f, 34.194f, 102.784f, 34.365f, 102.444f)\n                curveTo(34.535f, 102.104f, 34.535f, 101.68f, 34.322f, 101.34f)\n                lineTo(14.937f, 71.384f)\n                curveTo(14.724f, 71.087f, 14.383f, 70.916f, 14.043f, 70.916f)\n                curveTo(13.702f, 70.916f, 13.318f, 71.087f, 13.105f, 71.384f)\n                close()\n                moveTo(31.468f, 100.872f)\n                horizontalLineTo(-3.468f)\n                lineTo(14.0f, 73.933f)\n                lineTo(31.468f, 100.872f)\n                close()\n            }\n        }\n        return _concentricTriangles!!\n    }\n\nprivate var _concentricTriangles: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/Dawn.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.NonZero\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap.Companion.Butt\nimport androidx.compose.ui.graphics.StrokeJoin.Companion.Miter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.path\nimport androidx.compose.ui.unit.dp\n\nval Dawn: ImageVector\n    get() {\n        if (_dawn != null) {\n            return _dawn!!\n        }\n        _dawn = icon(\n            name = \"Dawn\",\n            viewPort = 92F to 92F,\n            size = 164.dp to 164.dp,\n        ) {\n            path(\n                fill = SolidColor(Color.Black), stroke = SolidColor(Color.Black),\n                strokeLineWidth = 3.0f, strokeLineCap = Butt, strokeLineJoin = Miter,\n                strokeLineMiter = 4.0f, pathFillType = NonZero\n            ) {\n                moveTo(46.0f, 0.0f)\n                lineTo(46.0089f, 45.9547f)\n                lineTo(63.6035f, 3.5015f)\n                lineTo(46.0256f, 45.9618f)\n                lineTo(78.5268f, 13.4731f)\n                lineTo(46.0382f, 45.9744f)\n                lineTo(88.4984f, 28.3965f)\n                lineTo(46.0453f, 45.9911f)\n                lineTo(92.0f, 46.0f)\n                lineTo(46.0453f, 46.0089f)\n                lineTo(88.4984f, 63.6035f)\n                lineTo(46.0382f, 46.0256f)\n                lineTo(78.5268f, 78.5268f)\n                lineTo(46.0256f, 46.0382f)\n                lineTo(63.6035f, 88.4984f)\n                lineTo(46.0089f, 46.0453f)\n                lineTo(46.0f, 92.0f)\n                lineTo(45.9911f, 46.0453f)\n                lineTo(28.3965f, 88.4984f)\n                lineTo(45.9744f, 46.0382f)\n                lineTo(13.4731f, 78.5268f)\n                lineTo(45.9618f, 46.0256f)\n                lineTo(3.5015f, 63.6035f)\n                lineTo(45.9547f, 46.0089f)\n                lineTo(0.0f, 46.0f)\n                lineTo(45.9547f, 45.9911f)\n                lineTo(3.5015f, 28.3965f)\n                lineTo(45.9618f, 45.9744f)\n                lineTo(13.4731f, 13.4731f)\n                lineTo(45.9744f, 45.9618f)\n                lineTo(28.3965f, 3.5015f)\n                lineTo(45.9911f, 45.9547f)\n                lineTo(46.0f, 0.0f)\n                close()\n            }\n        }\n        return _dawn!!\n    }\n\nprivate var _dawn: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/Helper.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.unit.Dp\nimport androidx.compose.ui.unit.dp\n\nfun icon(\n    name: String,\n    viewPort: Pair<Float, Float>,\n    size: Pair<Dp, Dp> = viewPort.first.dp to viewPort.second.dp,\n    autoMirror: Boolean = false,\n    block: ImageVector.Builder.() -> ImageVector.Builder,\n): ImageVector {\n    return ImageVector.Builder(\n        name = name,\n        defaultWidth = size.first,\n        defaultHeight = size.second,\n        viewportWidth = viewPort.first,\n        viewportHeight = viewPort.second,\n        autoMirror = autoMirror\n    ).block().build()\n}"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/QuarterCircles.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.NonZero\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap.Companion.Butt\nimport androidx.compose.ui.graphics.StrokeJoin.Companion.Miter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.path\nimport androidx.compose.ui.unit.dp\n\nval QuarterCircles: ImageVector\n    get() {\n        if (_quarterCircles != null) {\n            return _quarterCircles!!\n        }\n        _quarterCircles = icon(\n            name = \"QuarterCircles\",\n            viewPort = 246F to 311F,\n            size = 180.dp to 228.dp,\n        ) {\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(247.924f, 192.73f)\n                lineTo(247.136f, 63.733f)\n                lineTo(118.115f, 65.16f)\n                curveTo(118.348f, 99.402f, 131.87f, 130.272f, 153.731f, 153.174f)\n                lineTo(25.528f, 154.57f)\n                curveTo(26.027f, 225.81f, 84.129f, 282.901f, 155.424f, 282.141f)\n                lineTo(154.533f, 154.004f)\n                curveTo(178.177f, 178.225f, 211.308f, 193.116f, 247.924f, 192.73f)\n                close()\n            }\n        }\n        return _quarterCircles!!\n    }\n\nprivate var _quarterCircles: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/Reveal.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.NonZero\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap.Companion.Butt\nimport androidx.compose.ui.graphics.StrokeJoin.Companion.Miter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.path\nimport androidx.compose.ui.unit.dp\n\nval Reveal: ImageVector\n    get() {\n        if (_reveal != null) {\n            return _reveal!!\n        }\n        _reveal = icon(\n            name = \"Reveal\",\n            viewPort = 374F to 394F,\n            size = 125.dp to 131.dp,\n        ) {\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(187.0f, 187.6f)\n                curveTo(290.277f, 187.6f, 374.0f, 145.783f, 374.0f, 94.2f)\n                curveTo(374.0f, 42.616f, 290.277f, 0.8f, 187.0f, 0.8f)\n                curveTo(83.723f, 0.8f, 0.0f, 42.616f, 0.0f, 94.2f)\n                curveTo(0.0f, 145.783f, 83.723f, 187.6f, 187.0f, 187.6f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color(0xFFffffff)), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(187.0f, 298.0f)\n                curveTo(290.277f, 298.0f, 374.0f, 273.286f, 374.0f, 242.8f)\n                curveTo(374.0f, 212.313f, 290.277f, 187.6f, 187.0f, 187.6f)\n                curveTo(83.723f, 187.6f, 0.0f, 212.313f, 0.0f, 242.8f)\n                curveTo(0.0f, 273.286f, 83.723f, 298.0f, 187.0f, 298.0f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color(0xFFffffff)), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(187.0f, 361.4f)\n                curveTo(290.277f, 361.4f, 374.0f, 347.207f, 374.0f, 329.7f)\n                curveTo(374.0f, 312.193f, 290.277f, 298.0f, 187.0f, 298.0f)\n                curveTo(83.723f, 298.0f, 0.0f, 312.193f, 0.0f, 329.7f)\n                curveTo(0.0f, 347.207f, 83.723f, 361.4f, 187.0f, 361.4f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color(0xFFffffff)), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(187.0f, 393.2f)\n                curveTo(290.277f, 393.2f, 374.0f, 386.081f, 374.0f, 377.3f)\n                curveTo(374.0f, 368.519f, 290.277f, 361.4f, 187.0f, 361.4f)\n                curveTo(83.723f, 361.4f, 0.0f, 368.519f, 0.0f, 377.3f)\n                curveTo(0.0f, 386.081f, 83.723f, 393.2f, 187.0f, 393.2f)\n                close()\n            }\n        }\n        return _reveal!!\n    }\n\nprivate var _reveal: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/Stack.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.NonZero\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap.Companion.Butt\nimport androidx.compose.ui.graphics.StrokeJoin.Companion.Miter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.path\n\nval Stack: ImageVector\n    get() {\n        if (_stack != null) {\n            return _stack!!\n        }\n        _stack = icon(\n            name = \"Stack\",\n            viewPort = 65F to 100F,\n        ) {\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(91.0f, 39.814f)\n                curveTo(91.0f, 37.94f, 89.368f, 36.224f, 86.421f, 34.983f)\n                lineTo(73.658f, 29.625f)\n                lineTo(86.421f, 24.266f)\n                curveTo(89.368f, 23.025f, 91.0f, 21.309f, 91.0f, 19.435f)\n                curveTo(91.0f, 17.561f, 89.368f, 15.845f, 86.421f, 14.604f)\n                lineTo(55.842f, 1.802f)\n                curveTo(50.132f, -0.601f, 40.842f, -0.601f, 35.132f, 1.802f)\n                lineTo(4.579f, 14.604f)\n                curveTo(1.632f, 15.845f, 0.0f, 17.561f, 0.0f, 19.435f)\n                curveTo(0.0f, 21.309f, 1.632f, 23.025f, 4.579f, 24.266f)\n                lineTo(17.342f, 29.625f)\n                lineTo(4.579f, 34.983f)\n                curveTo(1.632f, 36.224f, 0.0f, 37.94f, 0.0f, 39.814f)\n                curveTo(0.0f, 41.688f, 1.632f, 43.404f, 4.579f, 44.645f)\n                lineTo(17.342f, 50.003f)\n                lineTo(4.579f, 55.362f)\n                curveTo(1.632f, 56.603f, 0.0f, 58.319f, 0.0f, 60.193f)\n                curveTo(0.0f, 62.067f, 1.632f, 63.783f, 4.579f, 65.023f)\n                lineTo(17.342f, 70.382f)\n                lineTo(4.579f, 75.741f)\n                curveTo(1.632f, 76.981f, 0.0f, 78.697f, 0.0f, 80.572f)\n                curveTo(0.0f, 82.446f, 1.632f, 84.162f, 4.579f, 85.402f)\n                lineTo(35.132f, 98.205f)\n                curveTo(37.974f, 99.393f, 41.737f, 100.0f, 45.474f, 100.0f)\n                curveTo(49.21f, 100.0f, 52.974f, 99.393f, 55.816f, 98.205f)\n                lineTo(86.368f, 85.402f)\n                curveTo(89.316f, 84.162f, 90.947f, 82.446f, 90.947f, 80.572f)\n                curveTo(90.947f, 78.697f, 89.316f, 76.981f, 86.368f, 75.741f)\n                lineTo(73.605f, 70.382f)\n                lineTo(86.368f, 65.023f)\n                curveTo(89.316f, 63.783f, 90.947f, 62.067f, 90.947f, 60.193f)\n                curveTo(90.947f, 58.319f, 89.316f, 56.603f, 86.368f, 55.362f)\n                lineTo(73.632f, 50.003f)\n                lineTo(86.395f, 44.645f)\n                curveTo(89.368f, 43.404f, 91.0f, 41.688f, 91.0f, 39.814f)\n                close()\n                moveTo(5.079f, 23.052f)\n                curveTo(2.684f, 22.048f, 1.289f, 20.729f, 1.289f, 19.435f)\n                curveTo(1.289f, 18.142f, 2.658f, 16.822f, 5.079f, 15.819f)\n                lineTo(35.658f, 3.016f)\n                curveTo(38.368f, 1.881f, 41.947f, 1.3f, 45.5f, 1.3f)\n                curveTo(49.079f, 1.3f, 52.632f, 1.881f, 55.342f, 3.016f)\n                lineTo(85.895f, 15.819f)\n                curveTo(88.289f, 16.822f, 89.684f, 18.142f, 89.684f, 19.435f)\n                curveTo(89.684f, 20.729f, 88.316f, 22.048f, 85.895f, 23.052f)\n                lineTo(71.921f, 28.912f)\n                lineTo(55.842f, 22.18f)\n                curveTo(50.132f, 19.778f, 40.842f, 19.778f, 35.132f, 22.18f)\n                lineTo(19.053f, 28.912f)\n                lineTo(5.079f, 23.052f)\n                close()\n                moveTo(70.237f, 29.625f)\n                lineTo(55.342f, 35.854f)\n                curveTo(49.921f, 38.125f, 41.079f, 38.125f, 35.658f, 35.854f)\n                lineTo(20.763f, 29.625f)\n                lineTo(35.658f, 23.395f)\n                curveTo(38.368f, 22.26f, 41.947f, 21.679f, 45.5f, 21.679f)\n                curveTo(49.079f, 21.679f, 52.632f, 22.26f, 55.342f, 23.395f)\n                lineTo(70.237f, 29.625f)\n                close()\n                moveTo(85.921f, 76.955f)\n                curveTo(88.316f, 77.958f, 89.711f, 79.278f, 89.711f, 80.572f)\n                curveTo(89.711f, 81.865f, 88.342f, 83.185f, 85.921f, 84.188f)\n                lineTo(55.342f, 96.991f)\n                curveTo(49.921f, 99.261f, 41.079f, 99.261f, 35.658f, 96.991f)\n                lineTo(5.079f, 84.188f)\n                curveTo(2.684f, 83.185f, 1.289f, 81.865f, 1.289f, 80.572f)\n                curveTo(1.289f, 79.278f, 2.658f, 77.958f, 5.079f, 76.955f)\n                lineTo(19.053f, 71.095f)\n                lineTo(35.132f, 77.826f)\n                curveTo(37.974f, 79.014f, 41.737f, 79.621f, 45.474f, 79.621f)\n                curveTo(49.21f, 79.621f, 52.974f, 79.014f, 55.816f, 77.826f)\n                lineTo(71.895f, 71.095f)\n                lineTo(85.921f, 76.955f)\n                close()\n                moveTo(20.763f, 70.382f)\n                lineTo(35.658f, 64.152f)\n                curveTo(38.368f, 63.017f, 41.947f, 62.437f, 45.5f, 62.437f)\n                curveTo(49.079f, 62.437f, 52.632f, 63.017f, 55.342f, 64.152f)\n                lineTo(70.237f, 70.382f)\n                lineTo(55.342f, 76.612f)\n                curveTo(49.921f, 78.882f, 41.079f, 78.882f, 35.658f, 76.612f)\n                lineTo(20.763f, 70.382f)\n                close()\n                moveTo(85.921f, 56.576f)\n                curveTo(88.316f, 57.579f, 89.711f, 58.899f, 89.711f, 60.193f)\n                curveTo(89.711f, 61.486f, 88.342f, 62.806f, 85.921f, 63.809f)\n                lineTo(71.947f, 69.669f)\n                lineTo(55.842f, 62.938f)\n                curveTo(50.132f, 60.536f, 40.842f, 60.536f, 35.132f, 62.938f)\n                lineTo(19.053f, 69.669f)\n                lineTo(5.079f, 63.809f)\n                curveTo(2.684f, 62.806f, 1.289f, 61.486f, 1.289f, 60.193f)\n                curveTo(1.289f, 58.899f, 2.658f, 57.579f, 5.079f, 56.576f)\n                lineTo(19.053f, 50.716f)\n                lineTo(35.132f, 57.447f)\n                curveTo(37.974f, 58.635f, 41.737f, 59.242f, 45.474f, 59.242f)\n                curveTo(49.21f, 59.242f, 52.974f, 58.635f, 55.816f, 57.447f)\n                lineTo(71.895f, 50.716f)\n                lineTo(85.921f, 56.576f)\n                close()\n                moveTo(20.763f, 50.003f)\n                lineTo(35.658f, 43.773f)\n                curveTo(38.368f, 42.638f, 41.947f, 42.058f, 45.5f, 42.058f)\n                curveTo(49.079f, 42.058f, 52.632f, 42.638f, 55.342f, 43.773f)\n                lineTo(70.237f, 50.003f)\n                lineTo(55.342f, 56.233f)\n                curveTo(49.921f, 58.503f, 41.079f, 58.503f, 35.658f, 56.233f)\n                lineTo(20.763f, 50.003f)\n                close()\n                moveTo(71.947f, 49.291f)\n                lineTo(55.868f, 42.559f)\n                curveTo(50.158f, 40.157f, 40.868f, 40.157f, 35.158f, 42.559f)\n                lineTo(19.079f, 49.291f)\n                lineTo(5.105f, 43.43f)\n                curveTo(2.711f, 42.427f, 1.316f, 41.107f, 1.316f, 39.814f)\n                curveTo(1.316f, 38.52f, 2.684f, 37.201f, 5.105f, 36.197f)\n                lineTo(19.079f, 30.337f)\n                lineTo(35.158f, 37.069f)\n                curveTo(38.0f, 38.257f, 41.763f, 38.864f, 45.5f, 38.864f)\n                curveTo(49.237f, 38.864f, 53.0f, 38.257f, 55.842f, 37.069f)\n                lineTo(71.921f, 30.337f)\n                lineTo(85.895f, 36.197f)\n                curveTo(88.289f, 37.201f, 89.684f, 38.52f, 89.684f, 39.814f)\n                curveTo(89.684f, 41.107f, 88.316f, 42.427f, 85.895f, 43.43f)\n                lineTo(71.947f, 49.291f)\n                close()\n            }\n        }\n        return _stack!!\n    }\n\nprivate var _stack: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/components/icons/Wireframe.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.components.icons\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.PathFillType.Companion.NonZero\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.graphics.StrokeCap.Companion.Butt\nimport androidx.compose.ui.graphics.StrokeJoin.Companion.Miter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.graphics.vector.path\n\nval Wireframe: ImageVector\n    get() {\n        if (wireframe != null) {\n            return wireframe!!\n        }\n        wireframe = icon(\n            name = \"Wireframe\",\n            viewPort = 119.0f to 154.0f,\n        ) {\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(101.271f, 153.154f)\n                curveTo(99.535f, 153.154f, 97.763f, 152.98f, 95.922f, 152.632f)\n                curveTo(89.358f, 151.378f, 82.828f, 148.138f, 76.507f, 145.038f)\n                curveTo(75.708f, 144.655f, 74.909f, 144.237f, 74.11f, 143.854f)\n                curveTo(73.068f, 143.331f, 72.026f, 142.809f, 70.949f, 142.286f)\n                curveTo(64.906f, 139.256f, 58.619f, 136.121f, 52.054f, 134.797f)\n                curveTo(44.239f, 133.23f, 36.181f, 135.146f, 28.366f, 136.992f)\n                curveTo(27.394f, 137.236f, 26.456f, 137.445f, 25.483f, 137.654f)\n                curveTo(25.24f, 137.688f, 24.997f, 137.723f, 24.719f, 137.758f)\n                curveTo(21.871f, 138.106f, 17.946f, 138.559f, 16.244f, 135.494f)\n                curveTo(13.188f, 127.099f, 13.188f, 118.565f, 13.223f, 110.309f)\n                curveTo(13.223f, 104.457f, 13.223f, 98.396f, 12.181f, 92.405f)\n                curveTo(10.687f, 84.01f, 7.631f, 75.511f, 4.644f, 67.29f)\n                curveTo(3.15f, 63.145f, 1.587f, 58.861f, 0.302f, 54.716f)\n                curveTo(-0.532f, 52.068f, 0.406f, 49.177f, 2.56f, 47.784f)\n                curveTo(6.415f, 45.485f, 10.479f, 43.569f, 14.404f, 41.688f)\n                curveTo(20.343f, 38.867f, 26.491f, 35.975f, 31.944f, 31.691f)\n                curveTo(37.918f, 27.023f, 43.545f, 21.729f, 48.963f, 16.608f)\n                curveTo(54.486f, 11.383f, 60.182f, 6.019f, 66.295f, 1.247f)\n                curveTo(68.414f, -0.356f, 71.366f, -0.425f, 73.763f, 1.107f)\n                curveTo(79.702f, 4.416f, 86.301f, 5.287f, 92.658f, 6.123f)\n                curveTo(98.805f, 6.924f, 105.161f, 7.76f, 110.823f, 10.826f)\n                curveTo(119.367f, 15.459f, 124.022f, 24.236f, 128.502f, 32.701f)\n                curveTo(131.211f, 37.787f, 133.99f, 43.047f, 137.568f, 47.261f)\n                curveTo(139.652f, 49.386f, 140.485f, 52.208f, 139.721f, 54.646f)\n                curveTo(138.158f, 59.488f, 136.56f, 64.364f, 134.963f, 69.102f)\n                curveTo(132.462f, 76.626f, 129.891f, 84.428f, 127.53f, 92.161f)\n                curveTo(123.848f, 104.144f, 122.459f, 116.754f, 121.139f, 128.98f)\n                curveTo(120.757f, 132.603f, 120.34f, 136.365f, 119.854f, 140.057f)\n                curveTo(119.402f, 143.401f, 117.665f, 146.71f, 115.581f, 148.243f)\n                curveTo(111.205f, 151.517f, 106.516f, 153.154f, 101.271f, 153.154f)\n                close()\n                moveTo(45.837f, 133.857f)\n                curveTo(47.921f, 133.857f, 50.005f, 134.031f, 52.054f, 134.449f)\n                curveTo(58.688f, 135.773f, 64.975f, 138.908f, 71.053f, 141.973f)\n                curveTo(72.095f, 142.495f, 73.172f, 143.018f, 74.214f, 143.54f)\n                curveTo(75.013f, 143.924f, 75.812f, 144.342f, 76.611f, 144.725f)\n                curveTo(89.427f, 151.064f, 102.661f, 157.613f, 115.269f, 147.964f)\n                curveTo(117.283f, 146.466f, 118.951f, 143.262f, 119.402f, 140.022f)\n                curveTo(119.854f, 136.365f, 120.27f, 132.603f, 120.687f, 128.98f)\n                curveTo(122.042f, 116.754f, 123.396f, 104.109f, 127.113f, 92.127f)\n                curveTo(129.475f, 84.394f, 132.08f, 76.626f, 134.58f, 69.067f)\n                curveTo(136.143f, 64.33f, 137.776f, 59.453f, 139.339f, 54.611f)\n                curveTo(140.068f, 52.312f, 139.269f, 49.63f, 137.255f, 47.575f)\n                curveTo(133.643f, 43.325f, 130.864f, 38.065f, 128.155f, 32.945f)\n                curveTo(123.674f, 24.515f, 119.055f, 15.772f, 110.615f, 11.209f)\n                curveTo(105.022f, 8.178f, 98.666f, 7.342f, 92.553f, 6.541f)\n                curveTo(86.162f, 5.705f, 79.528f, 4.834f, 73.52f, 1.49f)\n                curveTo(71.227f, 0.027f, 68.448f, 0.062f, 66.434f, 1.595f)\n                curveTo(60.356f, 6.332f, 54.659f, 11.697f, 49.137f, 16.922f)\n                curveTo(43.718f, 22.042f, 38.092f, 27.372f, 32.118f, 32.039f)\n                curveTo(26.63f, 36.324f, 20.482f, 39.25f, 14.508f, 42.071f)\n                curveTo(10.583f, 43.917f, 6.554f, 45.833f, 2.698f, 48.132f)\n                curveTo(0.719f, 49.421f, -0.184f, 52.173f, 0.614f, 54.646f)\n                curveTo(1.9f, 58.791f, 3.463f, 63.076f, 4.956f, 67.221f)\n                curveTo(7.908f, 75.441f, 11.0f, 83.941f, 12.493f, 92.37f)\n                curveTo(13.57f, 98.396f, 13.57f, 104.457f, 13.57f, 110.344f)\n                curveTo(13.57f, 118.565f, 13.57f, 127.029f, 16.557f, 135.355f)\n                curveTo(18.155f, 138.176f, 21.941f, 137.723f, 24.685f, 137.41f)\n                curveTo(24.928f, 137.375f, 25.171f, 137.34f, 25.414f, 137.34f)\n                curveTo(26.352f, 137.131f, 27.29f, 136.887f, 28.262f, 136.678f)\n                curveTo(34.028f, 135.25f, 39.967f, 133.857f, 45.837f, 133.857f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(100.924f, 146.85f)\n                curveTo(92.831f, 146.85f, 84.634f, 142.983f, 77.166f, 139.43f)\n                curveTo(76.055f, 138.908f, 74.978f, 138.385f, 73.901f, 137.898f)\n                curveTo(73.172f, 137.549f, 72.443f, 137.236f, 71.713f, 136.887f)\n                curveTo(65.982f, 134.205f, 60.078f, 131.453f, 53.895f, 129.886f)\n                curveTo(46.219f, 127.9f, 38.995f, 129.329f, 31.388f, 130.826f)\n                lineTo(30.902f, 130.931f)\n                curveTo(26.769f, 131.802f, 23.26f, 130.687f, 22.462f, 128.214f)\n                curveTo(20.621f, 121.735f, 20.1f, 115.012f, 19.579f, 108.498f)\n                curveTo(19.093f, 102.472f, 18.606f, 96.202f, 17.078f, 90.211f)\n                curveTo(15.411f, 83.801f, 13.084f, 77.392f, 10.826f, 71.227f)\n                curveTo(9.089f, 66.524f, 7.318f, 61.647f, 5.859f, 56.806f)\n                curveTo(5.06f, 54.054f, 5.929f, 51.337f, 7.943f, 50.362f)\n                curveTo(10.791f, 49.003f, 13.605f, 47.819f, 16.349f, 46.704f)\n                curveTo(22.601f, 44.126f, 28.471f, 41.688f, 34.097f, 37.229f)\n                curveTo(40.419f, 32.248f, 46.184f, 26.396f, 51.777f, 20.719f)\n                curveTo(56.396f, 16.016f, 61.189f, 11.174f, 66.26f, 6.855f)\n                curveTo(68.344f, 5.183f, 71.297f, 4.8f, 74.006f, 5.88f)\n                curveTo(79.077f, 7.482f, 84.599f, 7.482f, 89.948f, 7.482f)\n                curveTo(96.582f, 7.482f, 103.425f, 7.447f, 109.329f, 10.547f)\n                curveTo(118.568f, 15.389f, 123.084f, 25.7f, 127.495f, 35.662f)\n                curveTo(129.197f, 39.528f, 130.795f, 43.151f, 132.635f, 46.391f)\n                curveTo(134.476f, 49.351f, 135.136f, 52.347f, 134.407f, 54.611f)\n                curveTo(132.74f, 59.906f, 130.933f, 65.235f, 129.232f, 70.425f)\n                curveTo(127.078f, 76.87f, 124.855f, 83.558f, 122.806f, 90.141f)\n                curveTo(118.951f, 102.542f, 118.013f, 115.709f, 117.075f, 128.458f)\n                curveTo(116.901f, 130.722f, 116.728f, 133.021f, 116.554f, 135.32f)\n                curveTo(116.241f, 139.117f, 114.539f, 142.53f, 112.386f, 143.784f)\n                curveTo(108.635f, 145.979f, 104.779f, 146.85f, 100.924f, 146.85f)\n                close()\n                moveTo(45.907f, 128.527f)\n                curveTo(48.581f, 128.527f, 51.256f, 128.806f, 53.999f, 129.503f)\n                curveTo(60.182f, 131.105f, 66.121f, 133.857f, 71.852f, 136.539f)\n                curveTo(72.582f, 136.887f, 73.311f, 137.236f, 74.04f, 137.549f)\n                curveTo(75.117f, 138.037f, 76.194f, 138.559f, 77.305f, 139.082f)\n                curveTo(88.281f, 144.272f, 100.75f, 150.194f, 112.178f, 143.436f)\n                curveTo(114.262f, 142.252f, 115.859f, 138.942f, 116.172f, 135.25f)\n                curveTo(116.346f, 132.986f, 116.519f, 130.652f, 116.693f, 128.388f)\n                curveTo(117.631f, 115.639f, 118.568f, 102.437f, 122.424f, 90.002f)\n                curveTo(124.473f, 83.383f, 126.696f, 76.73f, 128.849f, 70.286f)\n                curveTo(130.586f, 65.096f, 132.358f, 59.766f, 134.025f, 54.472f)\n                curveTo(134.719f, 52.347f, 134.059f, 49.351f, 132.288f, 46.53f)\n                curveTo(130.447f, 43.256f, 128.849f, 39.633f, 127.148f, 35.766f)\n                curveTo(122.806f, 25.839f, 118.291f, 15.598f, 109.156f, 10.826f)\n                curveTo(103.321f, 7.761f, 96.513f, 7.795f, 89.914f, 7.795f)\n                curveTo(84.53f, 7.795f, 78.973f, 7.83f, 73.832f, 6.193f)\n                curveTo(71.227f, 5.148f, 68.414f, 5.496f, 66.434f, 7.099f)\n                curveTo(61.363f, 11.418f, 56.604f, 16.26f, 51.985f, 20.962f)\n                curveTo(46.393f, 26.64f, 40.627f, 32.492f, 34.271f, 37.473f)\n                curveTo(28.609f, 41.897f, 22.705f, 44.37f, 16.453f, 46.948f)\n                curveTo(13.709f, 48.097f, 10.896f, 49.247f, 8.047f, 50.605f)\n                curveTo(6.172f, 51.511f, 5.373f, 54.054f, 6.137f, 56.632f)\n                curveTo(7.596f, 61.473f, 9.402f, 66.315f, 11.104f, 71.018f)\n                curveTo(13.362f, 77.218f, 15.723f, 83.592f, 17.391f, 90.037f)\n                curveTo(18.954f, 96.063f, 19.44f, 102.333f, 19.891f, 108.359f)\n                curveTo(20.412f, 114.838f, 20.933f, 121.561f, 22.74f, 128.005f)\n                curveTo(23.504f, 130.304f, 26.838f, 131.349f, 30.798f, 130.513f)\n                lineTo(31.284f, 130.408f)\n                curveTo(36.251f, 129.468f, 41.044f, 128.527f, 45.907f, 128.527f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(100.056f, 139.36f)\n                curveTo(92.38f, 139.36f, 84.426f, 135.947f, 77.201f, 132.847f)\n                curveTo(75.881f, 132.289f, 74.666f, 131.767f, 73.415f, 131.244f)\n                curveTo(60.356f, 125.845f, 50.075f, 122.188f, 36.077f, 124.208f)\n                curveTo(32.291f, 124.835f, 29.13f, 123.476f, 28.401f, 120.968f)\n                curveTo(27.151f, 116.161f, 26.386f, 111.18f, 25.622f, 106.373f)\n                curveTo(24.685f, 100.278f, 23.677f, 93.973f, 21.767f, 88.016f)\n                curveTo(20.204f, 83.14f, 18.259f, 78.298f, 16.383f, 73.595f)\n                curveTo(14.542f, 68.997f, 12.632f, 64.26f, 11.069f, 59.488f)\n                curveTo(10.236f, 56.806f, 11.069f, 54.263f, 12.979f, 53.601f)\n                lineTo(14.681f, 53.009f)\n                curveTo(22.601f, 50.327f, 29.443f, 47.993f, 36.216f, 42.559f)\n                curveTo(42.919f, 37.229f, 48.789f, 30.75f, 54.486f, 24.48f)\n                curveTo(58.272f, 20.335f, 62.162f, 16.051f, 66.26f, 12.115f)\n                curveTo(68.379f, 10.199f, 71.436f, 9.363f, 74.457f, 9.885f)\n                curveTo(78.521f, 10.268f, 83.002f, 9.641f, 87.309f, 9.084f)\n                curveTo(94.359f, 8.109f, 101.619f, 7.133f, 107.766f, 10.199f)\n                curveTo(117.249f, 14.936f, 121.521f, 26.431f, 125.272f, 36.568f)\n                curveTo(126.244f, 39.215f, 127.182f, 41.688f, 128.155f, 43.987f)\n                curveTo(129.787f, 47.54f, 130.274f, 50.884f, 129.509f, 53.253f)\n                curveTo(127.773f, 58.617f, 125.967f, 64.016f, 124.195f, 69.241f)\n                curveTo(122.111f, 75.372f, 119.993f, 81.711f, 118.013f, 87.981f)\n                curveTo(114.088f, 100.382f, 113.463f, 113.584f, 112.803f, 126.333f)\n                curveTo(112.768f, 127.343f, 112.699f, 128.318f, 112.664f, 129.328f)\n                curveTo(112.455f, 133.474f, 110.753f, 136.887f, 108.461f, 137.758f)\n                curveTo(105.752f, 138.873f, 102.904f, 139.36f, 100.056f, 139.36f)\n                close()\n                moveTo(43.684f, 123.337f)\n                curveTo(54.138f, 123.337f, 62.926f, 126.577f, 73.554f, 130.966f)\n                curveTo(74.77f, 131.488f, 76.02f, 132.011f, 77.34f, 132.568f)\n                curveTo(87.204f, 136.818f, 98.388f, 141.59f, 108.426f, 137.445f)\n                curveTo(110.58f, 136.609f, 112.212f, 133.299f, 112.421f, 129.328f)\n                curveTo(112.455f, 128.318f, 112.525f, 127.343f, 112.56f, 126.333f)\n                curveTo(113.185f, 113.549f, 113.845f, 100.347f, 117.77f, 87.912f)\n                curveTo(119.749f, 81.642f, 121.903f, 75.302f, 123.952f, 69.171f)\n                curveTo(125.723f, 63.946f, 127.564f, 58.513f, 129.266f, 53.183f)\n                curveTo(129.996f, 50.919f, 129.509f, 47.645f, 127.912f, 44.161f)\n                curveTo(126.939f, 41.862f, 126.001f, 39.354f, 125.029f, 36.742f)\n                curveTo(121.278f, 26.64f, 117.075f, 15.215f, 107.697f, 10.547f)\n                curveTo(101.653f, 7.517f, 94.429f, 8.527f, 87.448f, 9.467f)\n                curveTo(83.106f, 10.059f, 78.59f, 10.686f, 74.492f, 10.268f)\n                curveTo(71.574f, 9.746f, 68.622f, 10.582f, 66.573f, 12.428f)\n                curveTo(62.474f, 16.329f, 58.584f, 20.614f, 54.798f, 24.759f)\n                curveTo(49.102f, 31.029f, 43.197f, 37.508f, 36.459f, 42.872f)\n                curveTo(29.617f, 48.306f, 22.74f, 50.675f, 14.82f, 53.357f)\n                lineTo(13.118f, 53.949f)\n                curveTo(11.382f, 54.576f, 10.652f, 56.91f, 11.417f, 59.418f)\n                curveTo(12.979f, 64.19f, 14.855f, 68.928f, 16.696f, 73.526f)\n                curveTo(18.572f, 78.228f, 20.517f, 83.07f, 22.114f, 87.981f)\n                curveTo(24.025f, 93.973f, 25.032f, 100.278f, 25.97f, 106.373f)\n                curveTo(26.734f, 111.18f, 27.498f, 116.161f, 28.714f, 120.934f)\n                curveTo(29.408f, 123.302f, 32.395f, 124.521f, 36.008f, 123.929f)\n                curveTo(38.717f, 123.511f, 41.252f, 123.337f, 43.684f, 123.337f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(98.458f, 130.931f)\n                curveTo(91.233f, 130.931f, 83.662f, 128.144f, 76.784f, 125.636f)\n                curveTo(75.395f, 125.114f, 74.04f, 124.626f, 72.755f, 124.173f)\n                curveTo(62.683f, 120.655f, 52.298f, 117.032f, 40.801f, 117.903f)\n                curveTo(37.397f, 118.251f, 34.549f, 116.719f, 33.819f, 114.176f)\n                curveTo(32.986f, 111.041f, 32.256f, 107.802f, 31.562f, 104.667f)\n                curveTo(30.172f, 98.466f, 28.748f, 92.092f, 26.421f, 86.066f)\n                curveTo(24.962f, 82.234f, 23.226f, 78.437f, 21.559f, 74.78f)\n                curveTo(19.753f, 70.809f, 17.842f, 66.698f, 16.314f, 62.484f)\n                curveTo(15.793f, 60.986f, 15.828f, 59.557f, 16.383f, 58.513f)\n                curveTo(16.765f, 57.816f, 17.321f, 57.363f, 18.051f, 57.154f)\n                curveTo(35.695f, 52.8f, 46.219f, 40.573f, 57.368f, 27.65f)\n                curveTo(60.321f, 24.237f, 63.377f, 20.684f, 66.573f, 17.27f)\n                curveTo(68.83f, 14.971f, 71.991f, 13.578f, 75.291f, 13.473f)\n                curveTo(78.417f, 13.194f, 81.821f, 12.289f, 85.398f, 11.313f)\n                curveTo(92.658f, 9.398f, 100.125f, 7.412f, 106.273f, 10.129f)\n                curveTo(115.512f, 14.17f, 119.298f, 25.943f, 122.354f, 35.383f)\n                curveTo(122.98f, 37.334f, 123.57f, 39.145f, 124.16f, 40.817f)\n                curveTo(125.341f, 43.639f, 126.071f, 47.923f, 125.098f, 51.128f)\n                curveTo(123.118f, 57.119f, 121.069f, 63.145f, 119.055f, 68.997f)\n                curveTo(117.249f, 74.362f, 115.338f, 79.865f, 113.532f, 85.334f)\n                curveTo(109.711f, 96.829f, 108.982f, 108.254f, 108.461f, 122.048f)\n                curveTo(108.322f, 126.402f, 106.551f, 129.677f, 104.085f, 130.164f)\n                curveTo(102.244f, 130.757f, 100.368f, 130.931f, 98.458f, 130.931f)\n                close()\n                moveTo(44.274f, 117.45f)\n                curveTo(54.486f, 117.45f, 63.829f, 120.725f, 72.894f, 123.86f)\n                curveTo(74.214f, 124.312f, 75.534f, 124.8f, 76.958f, 125.323f)\n                curveTo(85.572f, 128.492f, 95.332f, 132.045f, 104.05f, 129.955f)\n                curveTo(106.342f, 129.503f, 108.01f, 126.298f, 108.183f, 122.153f)\n                curveTo(108.739f, 108.359f, 109.434f, 96.864f, 113.289f, 85.334f)\n                curveTo(115.095f, 79.865f, 116.971f, 74.362f, 118.812f, 68.997f)\n                curveTo(120.791f, 63.145f, 122.875f, 57.084f, 124.82f, 51.128f)\n                curveTo(125.793f, 47.993f, 125.029f, 43.813f, 123.883f, 41.026f)\n                curveTo(123.257f, 39.319f, 122.667f, 37.508f, 122.042f, 35.557f)\n                curveTo(119.02f, 26.187f, 115.234f, 14.483f, 106.169f, 10.512f)\n                curveTo(100.125f, 7.865f, 92.692f, 9.816f, 85.502f, 11.731f)\n                curveTo(81.89f, 12.672f, 78.452f, 13.578f, 75.326f, 13.891f)\n                curveTo(72.095f, 13.996f, 69.004f, 15.319f, 66.816f, 17.549f)\n                curveTo(63.62f, 20.962f, 60.564f, 24.48f, 57.612f, 27.894f)\n                curveTo(46.428f, 40.852f, 35.869f, 53.113f, 18.12f, 57.502f)\n                curveTo(17.495f, 57.676f, 16.974f, 58.06f, 16.661f, 58.687f)\n                curveTo(16.14f, 59.662f, 16.14f, 60.986f, 16.626f, 62.379f)\n                curveTo(18.19f, 66.559f, 20.065f, 70.669f, 21.871f, 74.64f)\n                curveTo(23.538f, 78.298f, 25.275f, 82.095f, 26.769f, 85.926f)\n                curveTo(29.096f, 91.952f, 30.52f, 98.396f, 31.909f, 104.562f)\n                curveTo(32.604f, 107.697f, 33.333f, 110.902f, 34.167f, 114.037f)\n                curveTo(34.827f, 116.405f, 37.571f, 117.833f, 40.801f, 117.52f)\n                curveTo(41.947f, 117.52f, 43.093f, 117.45f, 44.274f, 117.45f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(99.187f, 121.804f)\n                curveTo(89.809f, 121.7f, 80.709f, 119.296f, 71.887f, 116.928f)\n                curveTo(63.169f, 114.594f, 54.138f, 112.19f, 44.83f, 112.086f)\n                curveTo(41.843f, 112.156f, 39.203f, 110.484f, 38.439f, 107.941f)\n                curveTo(37.953f, 106.234f, 37.466f, 104.457f, 37.015f, 102.751f)\n                curveTo(35.348f, 96.62f, 33.611f, 90.245f, 30.937f, 84.394f)\n                curveTo(29.513f, 81.293f, 27.915f, 78.263f, 26.317f, 75.337f)\n                curveTo(24.65f, 72.202f, 22.913f, 68.962f, 21.42f, 65.653f)\n                curveTo(20.864f, 64.33f, 20.829f, 63.041f, 21.316f, 62.1f)\n                curveTo(21.663f, 61.438f, 22.219f, 61.02f, 22.983f, 60.881f)\n                curveTo(39.168f, 57.711f, 49.206f, 44.788f, 58.897f, 32.248f)\n                curveTo(61.432f, 28.974f, 64.037f, 25.595f, 66.712f, 22.495f)\n                curveTo(69.595f, 19.917f, 72.269f, 17.757f, 76.02f, 17.061f)\n                curveTo(78.174f, 16.538f, 80.744f, 15.563f, 83.453f, 14.553f)\n                curveTo(90.435f, 11.94f, 98.354f, 9.014f, 104.258f, 11.174f)\n                curveTo(112.768f, 14.309f, 116.068f, 25.073f, 118.707f, 33.711f)\n                curveTo(119.159f, 35.174f, 119.576f, 36.602f, 120.027f, 37.856f)\n                curveTo(120.965f, 40.713f, 121.833f, 44.997f, 120.548f, 49.212f)\n                curveTo(119.402f, 52.591f, 118.221f, 56.004f, 117.075f, 59.279f)\n                curveTo(110.719f, 77.497f, 104.71f, 94.704f, 103.772f, 114.246f)\n                curveTo(103.703f, 118.635f, 101.827f, 121.665f, 99.187f, 121.804f)\n                close()\n                moveTo(44.865f, 111.738f)\n                curveTo(54.208f, 111.842f, 63.238f, 114.28f, 71.991f, 116.614f)\n                curveTo(80.779f, 118.948f, 89.844f, 121.386f, 99.187f, 121.456f)\n                curveTo(101.584f, 121.352f, 103.355f, 118.391f, 103.494f, 114.246f)\n                curveTo(104.432f, 94.669f, 110.441f, 77.427f, 116.797f, 59.174f)\n                curveTo(117.943f, 55.9f, 119.124f, 52.521f, 120.27f, 49.142f)\n                curveTo(121.521f, 45.032f, 120.687f, 40.817f, 119.749f, 37.996f)\n                curveTo(119.333f, 36.707f, 118.881f, 35.313f, 118.43f, 33.816f)\n                curveTo(115.825f, 25.247f, 112.56f, 14.553f, 104.189f, 11.488f)\n                curveTo(98.423f, 9.363f, 90.539f, 12.289f, 83.627f, 14.866f)\n                curveTo(80.918f, 15.877f, 78.313f, 16.852f, 76.159f, 17.374f)\n                curveTo(72.478f, 18.036f, 69.838f, 20.196f, 66.99f, 22.704f)\n                curveTo(64.315f, 25.804f, 61.71f, 29.183f, 59.175f, 32.457f)\n                curveTo(49.449f, 45.032f, 39.377f, 58.025f, 23.052f, 61.195f)\n                curveTo(22.427f, 61.334f, 21.941f, 61.682f, 21.628f, 62.24f)\n                curveTo(21.177f, 63.076f, 21.246f, 64.26f, 21.732f, 65.479f)\n                curveTo(23.191f, 68.788f, 24.928f, 71.993f, 26.63f, 75.128f)\n                curveTo(28.193f, 78.089f, 29.825f, 81.119f, 31.249f, 84.219f)\n                curveTo(33.924f, 90.106f, 35.695f, 96.446f, 37.362f, 102.611f)\n                curveTo(37.814f, 104.318f, 38.3f, 106.06f, 38.786f, 107.767f)\n                curveTo(39.516f, 110.205f, 42.016f, 111.807f, 44.865f, 111.738f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(94.151f, 112.783f)\n                horizontalLineTo(94.116f)\n                curveTo(86.406f, 112.399f, 78.695f, 111.006f, 71.262f, 109.648f)\n                curveTo(63.829f, 108.289f, 56.153f, 106.896f, 48.477f, 106.513f)\n                curveTo(45.733f, 106.478f, 43.302f, 104.701f, 42.503f, 102.124f)\n                curveTo(38.821f, 90.28f, 33.75f, 81.154f, 27.845f, 70.6f)\n                lineTo(26.699f, 68.544f)\n                curveTo(26.109f, 67.395f, 26.004f, 66.315f, 26.386f, 65.479f)\n                curveTo(26.699f, 64.817f, 27.29f, 64.399f, 28.054f, 64.225f)\n                curveTo(42.468f, 61.369f, 51.985f, 48.132f, 60.39f, 36.463f)\n                curveTo(62.648f, 33.328f, 64.767f, 30.402f, 66.955f, 27.65f)\n                curveTo(69.629f, 24.376f, 73.137f, 21.868f, 76.889f, 20.579f)\n                curveTo(78.556f, 19.987f, 80.466f, 19.151f, 82.446f, 18.315f)\n                curveTo(88.767f, 15.598f, 95.922f, 12.498f, 101.723f, 13.821f)\n                curveTo(109.329f, 15.598f, 112.525f, 25.386f, 114.817f, 32.527f)\n                curveTo(115.165f, 33.537f, 115.442f, 34.512f, 115.755f, 35.383f)\n                curveTo(117.075f, 39.528f, 117.144f, 43.848f, 115.929f, 47.644f)\n                curveTo(114.47f, 51.894f, 112.872f, 56.213f, 111.309f, 60.393f)\n                curveTo(105.891f, 75.058f, 100.264f, 90.211f, 99.014f, 105.955f)\n                curveTo(98.805f, 110.031f, 96.826f, 112.783f, 94.151f, 112.783f)\n                close()\n                moveTo(67.233f, 27.859f)\n                curveTo(65.045f, 30.576f, 62.926f, 33.537f, 60.703f, 36.672f)\n                curveTo(52.263f, 48.411f, 42.711f, 61.682f, 28.158f, 64.573f)\n                curveTo(27.498f, 64.713f, 26.977f, 65.061f, 26.734f, 65.618f)\n                curveTo(26.386f, 66.35f, 26.491f, 67.36f, 27.012f, 68.37f)\n                lineTo(28.158f, 70.425f)\n                curveTo(34.063f, 81.015f, 39.134f, 90.141f, 42.85f, 102.019f)\n                curveTo(43.614f, 104.457f, 45.872f, 106.129f, 48.477f, 106.164f)\n                curveTo(56.188f, 106.547f, 63.898f, 107.941f, 71.331f, 109.299f)\n                curveTo(78.764f, 110.658f, 86.44f, 112.051f, 94.116f, 112.434f)\n                horizontalLineTo(94.151f)\n                curveTo(96.582f, 112.434f, 98.458f, 109.752f, 98.736f, 105.92f)\n                curveTo(99.986f, 90.141f, 105.613f, 74.954f, 111.031f, 60.254f)\n                curveTo(112.56f, 56.074f, 114.157f, 51.755f, 115.616f, 47.54f)\n                curveTo(116.797f, 43.848f, 116.728f, 39.563f, 115.442f, 35.522f)\n                curveTo(115.13f, 34.652f, 114.817f, 33.676f, 114.505f, 32.666f)\n                curveTo(112.212f, 25.595f, 109.052f, 15.911f, 101.653f, 14.205f)\n                curveTo(95.957f, 12.881f, 88.872f, 15.946f, 82.585f, 18.663f)\n                curveTo(80.57f, 19.534f, 78.695f, 20.335f, 76.993f, 20.962f)\n                curveTo(73.346f, 22.181f, 69.872f, 24.654f, 67.233f, 27.859f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(89.288f, 104.179f)\n                curveTo(89.254f, 104.179f, 89.219f, 104.179f, 89.184f, 104.179f)\n                curveTo(82.967f, 103.9f, 76.68f, 103.238f, 70.602f, 102.576f)\n                curveTo(64.524f, 101.915f, 58.237f, 101.253f, 52.054f, 100.974f)\n                curveTo(49.241f, 100.904f, 46.879f, 99.198f, 46.08f, 96.62f)\n                curveTo(43.128f, 87.354f, 38.786f, 80.91f, 33.785f, 73.456f)\n                curveTo(33.264f, 72.655f, 32.708f, 71.854f, 32.152f, 71.018f)\n                curveTo(31.562f, 70.077f, 31.388f, 69.171f, 31.666f, 68.405f)\n                curveTo(31.909f, 67.743f, 32.534f, 67.256f, 33.403f, 67.012f)\n                curveTo(45.768f, 63.842f, 54.243f, 51.546f, 61.71f, 40.643f)\n                curveTo(63.62f, 37.891f, 65.392f, 35.244f, 67.198f, 32.875f)\n                curveTo(70.15f, 29.009f, 73.763f, 26.083f, 77.653f, 24.376f)\n                curveTo(78.903f, 23.853f, 80.223f, 23.226f, 81.612f, 22.565f)\n                curveTo(87.031f, 19.987f, 93.144f, 17.096f, 98.597f, 18.001f)\n                curveTo(105.335f, 19.151f, 108.183f, 26.361f, 110.441f, 32.178f)\n                curveTo(110.684f, 32.771f, 110.892f, 33.363f, 111.136f, 33.92f)\n                curveTo(112.525f, 37.961f, 112.525f, 42.559f, 111.066f, 46.843f)\n                curveTo(109.468f, 51.406f, 107.662f, 56.004f, 105.752f, 60.846f)\n                curveTo(100.959f, 73.003f, 96.027f, 85.578f, 94.498f, 97.944f)\n                curveTo(93.943f, 101.706f, 91.893f, 104.179f, 89.288f, 104.179f)\n                close()\n                moveTo(67.406f, 33.084f)\n                curveTo(65.6f, 35.453f, 63.829f, 38.065f, 61.919f, 40.817f)\n                curveTo(54.416f, 51.755f, 45.907f, 64.12f, 33.437f, 67.325f)\n                curveTo(32.673f, 67.534f, 32.152f, 67.917f, 31.944f, 68.475f)\n                curveTo(31.701f, 69.102f, 31.874f, 69.938f, 32.395f, 70.774f)\n                curveTo(32.951f, 71.61f, 33.507f, 72.411f, 34.028f, 73.212f)\n                curveTo(39.064f, 80.701f, 43.406f, 87.18f, 46.393f, 96.481f)\n                curveTo(47.157f, 98.919f, 49.38f, 100.521f, 52.054f, 100.591f)\n                curveTo(58.272f, 100.87f, 64.558f, 101.531f, 70.637f, 102.193f)\n                curveTo(76.715f, 102.855f, 83.002f, 103.517f, 89.184f, 103.796f)\n                curveTo(89.219f, 103.796f, 89.254f, 103.796f, 89.288f, 103.796f)\n                curveTo(91.65f, 103.796f, 93.595f, 101.357f, 94.081f, 97.874f)\n                curveTo(95.645f, 85.438f, 100.577f, 72.864f, 105.37f, 60.672f)\n                curveTo(107.28f, 55.83f, 109.086f, 51.267f, 110.684f, 46.704f)\n                curveTo(112.108f, 42.489f, 112.108f, 37.996f, 110.753f, 34.025f)\n                curveTo(110.545f, 33.467f, 110.302f, 32.91f, 110.059f, 32.283f)\n                curveTo(107.836f, 26.57f, 105.057f, 19.43f, 98.493f, 18.315f)\n                curveTo(93.178f, 17.409f, 87.1f, 20.3f, 81.716f, 22.843f)\n                curveTo(80.327f, 23.505f, 78.973f, 24.132f, 77.722f, 24.654f)\n                curveTo(73.901f, 26.396f, 70.324f, 29.287f, 67.406f, 33.084f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(84.738f, 96.481f)\n                curveTo(84.704f, 96.481f, 84.704f, 96.481f, 84.669f, 96.481f)\n                curveTo(79.806f, 96.376f, 74.874f, 96.167f, 70.116f, 95.958f)\n                curveTo(65.357f, 95.749f, 60.425f, 95.54f, 55.597f, 95.436f)\n                curveTo(52.853f, 95.401f, 50.422f, 93.659f, 49.623f, 91.082f)\n                curveTo(46.775f, 83.418f, 42.989f, 78.994f, 37.744f, 72.829f)\n                curveTo(37.119f, 72.098f, 36.911f, 71.331f, 37.084f, 70.634f)\n                curveTo(37.293f, 69.903f, 37.918f, 69.346f, 38.89f, 68.997f)\n                curveTo(48.789f, 65.549f, 56.604f, 53.915f, 62.891f, 44.579f)\n                curveTo(64.419f, 42.315f, 65.843f, 40.19f, 67.233f, 38.309f)\n                curveTo(70.22f, 34.687f, 73.485f, 30.959f, 78.07f, 28.695f)\n                curveTo(89.149f, 23.749f, 98.875f, 20.753f, 105.752f, 33.955f)\n                curveTo(107.836f, 39.076f, 106.516f, 44.44f, 105.578f, 47.192f)\n                curveTo(104.015f, 51.581f, 102.383f, 56.039f, 100.75f, 60.324f)\n                curveTo(96.999f, 70.391f, 93.109f, 80.771f, 90.296f, 91.186f)\n                curveTo(89.393f, 94.844f, 86.892f, 96.481f, 84.738f, 96.481f)\n                close()\n                moveTo(67.511f, 38.483f)\n                curveTo(66.156f, 40.364f, 64.697f, 42.489f, 63.204f, 44.753f)\n                curveTo(56.882f, 54.124f, 48.998f, 65.827f, 39.029f, 69.311f)\n                curveTo(38.161f, 69.624f, 37.605f, 70.112f, 37.432f, 70.704f)\n                curveTo(37.293f, 71.261f, 37.466f, 71.923f, 38.022f, 72.55f)\n                curveTo(43.093f, 78.507f, 47.088f, 83.209f, 49.97f, 90.907f)\n                curveTo(50.735f, 93.311f, 53.027f, 94.983f, 55.632f, 95.018f)\n                curveTo(60.494f, 95.122f, 65.392f, 95.331f, 70.15f, 95.54f)\n                curveTo(74.909f, 95.749f, 79.841f, 95.958f, 84.704f, 96.063f)\n                curveTo(87.1f, 96.098f, 89.254f, 94.042f, 89.983f, 91.047f)\n                curveTo(92.831f, 80.597f, 96.687f, 70.216f, 100.438f, 60.15f)\n                curveTo(102.035f, 55.83f, 103.703f, 51.372f, 105.266f, 47.018f)\n                curveTo(106.203f, 44.3f, 107.489f, 39.006f, 105.474f, 34.025f)\n                curveTo(102.383f, 28.103f, 98.666f, 25.177f, 93.769f, 24.794f)\n                curveTo(89.358f, 24.446f, 84.391f, 26.187f, 78.278f, 28.904f)\n                curveTo(73.728f, 31.203f, 70.463f, 34.896f, 67.511f, 38.483f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(80.674f, 90.002f)\n                curveTo(77.027f, 90.002f, 73.346f, 90.002f, 69.699f, 90.002f)\n                curveTo(66.191f, 90.002f, 62.683f, 90.002f, 59.175f, 90.002f)\n                curveTo(56.604f, 90.002f, 54.069f, 88.434f, 52.992f, 86.17f)\n                curveTo(50.144f, 80.945f, 47.331f, 77.287f, 43.579f, 73.943f)\n                curveTo(43.024f, 73.386f, 42.746f, 72.829f, 42.781f, 72.271f)\n                curveTo(42.85f, 71.47f, 43.51f, 70.6f, 44.83f, 69.694f)\n                curveTo(52.714f, 63.981f, 58.688f, 55.656f, 64.489f, 47.61f)\n                curveTo(65.392f, 46.356f, 66.26f, 45.136f, 67.163f, 43.917f)\n                curveTo(70.116f, 40.225f, 73.485f, 36.08f, 78.209f, 33.816f)\n                curveTo(85.919f, 31.168f, 92.345f, 29.67f, 99.535f, 36.184f)\n                lineTo(99.569f, 36.219f)\n                curveTo(102.035f, 39.981f, 100.924f, 45.241f, 99.569f, 49.003f)\n                lineTo(97.485f, 54.82f)\n                curveTo(93.977f, 64.643f, 90.365f, 74.78f, 86.926f, 84.846f)\n                curveTo(85.884f, 88.086f, 83.557f, 90.002f, 80.674f, 90.002f)\n                close()\n                moveTo(67.511f, 44.057f)\n                curveTo(66.642f, 45.276f, 65.739f, 46.495f, 64.836f, 47.749f)\n                curveTo(59.001f, 55.83f, 52.992f, 64.19f, 45.073f, 69.938f)\n                curveTo(43.857f, 70.809f, 43.232f, 71.54f, 43.163f, 72.271f)\n                curveTo(43.128f, 72.759f, 43.336f, 73.212f, 43.823f, 73.665f)\n                curveTo(47.574f, 77.044f, 50.422f, 80.736f, 53.305f, 85.996f)\n                curveTo(54.312f, 88.121f, 56.743f, 89.618f, 59.175f, 89.618f)\n                curveTo(62.683f, 89.618f, 66.191f, 89.618f, 69.699f, 89.618f)\n                curveTo(73.346f, 89.618f, 76.993f, 89.618f, 80.674f, 89.618f)\n                curveTo(83.418f, 89.618f, 85.572f, 87.807f, 86.649f, 84.637f)\n                curveTo(90.052f, 74.605f, 93.7f, 64.434f, 97.207f, 54.611f)\n                lineTo(99.291f, 48.794f)\n                curveTo(100.611f, 45.102f, 101.688f, 39.981f, 99.326f, 36.324f)\n                curveTo(92.275f, 29.949f, 86.197f, 31.342f, 78.382f, 34.025f)\n                curveTo(73.763f, 36.289f, 70.428f, 40.399f, 67.511f, 44.057f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(62.196f, 84.812f)\n                curveTo(59.73f, 84.812f, 57.368f, 83.558f, 56.292f, 81.607f)\n                curveTo(54.764f, 78.681f, 52.471f, 75.72f, 50.04f, 73.456f)\n                curveTo(49.554f, 73.003f, 49.31f, 72.446f, 49.31f, 71.854f)\n                curveTo(49.31f, 70.739f, 50.109f, 69.415f, 51.811f, 67.778f)\n                curveTo(57.334f, 62.483f, 62.023f, 56.213f, 66.573f, 50.187f)\n                lineTo(67.233f, 49.282f)\n                lineTo(67.511f, 48.933f)\n                curveTo(70.463f, 45.345f, 73.52f, 41.618f, 78.0f, 39.946f)\n                curveTo(83.419f, 38.832f, 87.864f, 38.205f, 92.414f, 40.956f)\n                curveTo(95.575f, 43.778f, 94.116f, 49.386f, 92.97f, 52.451f)\n                lineTo(92.484f, 53.775f)\n                curveTo(89.775f, 61.369f, 86.996f, 69.206f, 84.287f, 76.974f)\n                curveTo(83.523f, 79.97f, 80.57f, 83.314f, 77.444f, 83.558f)\n                curveTo(74.978f, 83.767f, 72.512f, 83.941f, 70.046f, 84.15f)\n                curveTo(67.58f, 84.359f, 65.149f, 84.568f, 62.683f, 84.742f)\n                curveTo(62.509f, 84.812f, 62.335f, 84.812f, 62.196f, 84.812f)\n                close()\n                moveTo(67.476f, 49.56f)\n                lineTo(66.816f, 50.466f)\n                curveTo(62.266f, 56.527f, 57.577f, 62.797f, 52.02f, 68.126f)\n                curveTo(50.457f, 69.659f, 49.658f, 70.913f, 49.658f, 71.923f)\n                curveTo(49.658f, 72.446f, 49.866f, 72.864f, 50.248f, 73.247f)\n                curveTo(52.714f, 75.511f, 55.007f, 78.507f, 56.57f, 81.467f)\n                curveTo(57.646f, 83.418f, 60.147f, 84.637f, 62.648f, 84.463f)\n                curveTo(65.114f, 84.289f, 67.545f, 84.08f, 70.011f, 83.871f)\n                curveTo(72.478f, 83.662f, 74.943f, 83.453f, 77.41f, 83.279f)\n                curveTo(80.362f, 83.07f, 83.21f, 79.796f, 83.939f, 76.939f)\n                curveTo(86.649f, 69.171f, 89.427f, 61.334f, 92.136f, 53.74f)\n                lineTo(92.623f, 52.417f)\n                curveTo(93.734f, 49.421f, 95.158f, 43.952f, 92.171f, 41.305f)\n                curveTo(87.76f, 38.657f, 83.349f, 39.25f, 78.07f, 40.364f)\n                curveTo(73.728f, 41.967f, 70.671f, 45.659f, 67.754f, 49.247f)\n                lineTo(67.476f, 49.56f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(64.836f, 79.029f)\n                curveTo(62.648f, 79.029f, 60.703f, 78.054f, 59.8f, 76.417f)\n                curveTo(58.723f, 74.431f, 58.133f, 73.525f, 56.847f, 71.888f)\n                curveTo(55.632f, 70.286f, 56.431f, 67.778f, 59.244f, 64.643f)\n                curveTo(61.71f, 61.856f, 64.28f, 58.721f, 67.094f, 55.064f)\n                curveTo(69.386f, 52.068f, 72.964f, 47.993f, 77.444f, 46.948f)\n                curveTo(80.466f, 46.599f, 81.925f, 46.599f, 84.669f, 47.366f)\n                horizontalLineTo(84.704f)\n                curveTo(87.934f, 49.038f, 86.822f, 53.427f, 86.093f, 56.318f)\n                curveTo(85.989f, 56.666f, 85.919f, 57.014f, 85.85f, 57.293f)\n                curveTo(84.426f, 61.299f, 83.002f, 65.305f, 81.612f, 69.276f)\n                curveTo(80.223f, 73.351f, 77.514f, 76.277f, 74.318f, 77.078f)\n                curveTo(72.755f, 77.427f, 71.574f, 77.705f, 70.394f, 77.949f)\n                curveTo(69.213f, 78.228f, 68.032f, 78.472f, 66.503f, 78.82f)\n                curveTo(65.948f, 78.959f, 65.392f, 79.029f, 64.836f, 79.029f)\n                close()\n                moveTo(80.431f, 47.052f)\n                curveTo(79.563f, 47.052f, 78.625f, 47.122f, 77.479f, 47.261f)\n                curveTo(73.137f, 48.271f, 69.629f, 52.312f, 67.372f, 55.238f)\n                curveTo(64.558f, 58.896f, 61.988f, 62.065f, 59.522f, 64.852f)\n                curveTo(56.847f, 67.848f, 56.049f, 70.216f, 57.16f, 71.645f)\n                curveTo(58.445f, 73.316f, 59.036f, 74.222f, 60.147f, 76.242f)\n                curveTo(61.189f, 78.158f, 63.794f, 79.099f, 66.469f, 78.507f)\n                curveTo(68.032f, 78.158f, 69.213f, 77.914f, 70.359f, 77.636f)\n                curveTo(71.54f, 77.357f, 72.721f, 77.113f, 74.249f, 76.765f)\n                curveTo(77.305f, 75.999f, 79.945f, 73.142f, 81.3f, 69.171f)\n                curveTo(82.689f, 65.165f, 84.113f, 61.194f, 85.537f, 57.189f)\n                curveTo(85.607f, 56.91f, 85.676f, 56.562f, 85.78f, 56.213f)\n                curveTo(86.475f, 53.427f, 87.552f, 49.212f, 84.565f, 47.679f)\n                curveTo(82.932f, 47.226f, 81.751f, 47.052f, 80.431f, 47.052f)\n                close()\n            }\n            path(\n                fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,\n                strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,\n                pathFillType = NonZero\n            ) {\n                moveTo(67.997f, 71.993f)\n                curveTo(66.121f, 71.993f, 64.593f, 71.192f, 63.898f, 69.729f)\n                curveTo(62.891f, 67.639f, 63.968f, 64.504f, 66.92f, 60.846f)\n                curveTo(70.394f, 56.562f, 73.589f, 54.402f, 76.715f, 54.228f)\n                curveTo(77.583f, 54.298f, 78.243f, 54.716f, 78.695f, 55.412f)\n                curveTo(79.667f, 56.91f, 79.598f, 59.557f, 78.556f, 62.553f)\n                curveTo(77.062f, 66.768f, 74.284f, 70.007f, 70.88f, 71.401f)\n                curveTo(69.872f, 71.819f, 68.9f, 71.993f, 67.997f, 71.993f)\n                close()\n                moveTo(76.715f, 54.611f)\n                curveTo(73.728f, 54.785f, 70.602f, 56.91f, 67.198f, 61.09f)\n                curveTo(64.315f, 64.643f, 63.238f, 67.639f, 64.211f, 69.59f)\n                curveTo(65.184f, 71.575f, 67.893f, 72.202f, 70.776f, 71.087f)\n                curveTo(74.075f, 69.729f, 76.819f, 66.559f, 78.243f, 62.449f)\n                curveTo(79.251f, 59.592f, 79.32f, 56.98f, 78.417f, 55.621f)\n                curveTo(78.0f, 54.994f, 77.444f, 54.646f, 76.715f, 54.611f)\n                close()\n            }\n        }\n        return wireframe!!\n    }\n\nprivate var wireframe: ImageVector? = null\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/exercises/Exercises.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.exercises\n\nimport androidx.annotation.StringRes\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.size\nimport androidx.compose.foundation.lazy.LazyColumn\nimport androidx.compose.foundation.lazy.items\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.FabPosition\nimport androidx.compose.material3.FilledTonalIconButton\nimport androidx.compose.material3.HorizontalDivider\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Scaffold\nimport androidx.compose.material3.SnackbarHost\nimport androidx.compose.material3.SnackbarHostState\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TopAppBar\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.rememberUpdatedState\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.tooling.preview.PreviewParameter\nimport androidx.compose.ui.unit.dp\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.ExercisesPreviewParameter\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.ui.components.BackButton\nimport com.looker.kenko.ui.components.ErrorSnackbar\nimport com.looker.kenko.ui.components.KenkoBorderWidth\nimport com.looker.kenko.ui.components.LazyTargets\nimport com.looker.kenko.ui.components.SecondaryKenkoButton\nimport com.looker.kenko.ui.components.SwipeToDeleteBox\nimport com.looker.kenko.ui.components.TargetChip\nimport com.looker.kenko.ui.extensions.plus\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\n\n@Composable\nfun Exercises(\n    viewModel: ExercisesViewModel,\n    onExerciseClick: (id: Int?) -> Unit,\n    onCreateClick: (target: MuscleGroups?) -> Unit,\n    onBackPress: () -> Unit,\n) {\n    val state by viewModel.exercises.collectAsStateWithLifecycle()\n    Exercises(\n        state = state,\n        snackbarState = viewModel.snackbarState,\n        onBackPress = onBackPress,\n        onExerciseClick = onExerciseClick,\n        onCreateClick = onCreateClick,\n        onSelectTarget = viewModel::setTarget,\n        onReferenceClick = viewModel::onReferenceClick,\n        onRemove = viewModel::removeExercise,\n    )\n}\n\n@Composable\nprivate fun Exercises(\n    state: ExercisesUiState,\n    snackbarState: SnackbarHostState,\n    onExerciseClick: (id: Int?) -> Unit,\n    onCreateClick: (target: MuscleGroups?) -> Unit,\n    onSelectTarget: (MuscleGroups?) -> Unit,\n    onRemove: (Int?) -> Unit,\n    onBackPress: () -> Unit,\n    onReferenceClick: (String) -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Scaffold(\n        modifier = modifier.fillMaxWidth(),\n        floatingActionButton = {\n            SecondaryKenkoButton(\n                onClick = { onCreateClick(state.selected) },\n                label = {\n                    Icon(\n                        painter = KenkoIcons.Add,\n                        contentDescription = null,\n                    )\n                },\n                icon = {\n                    Text(stringResource(R.string.label_create_exercise))\n                }\n            )\n        },\n        floatingActionButtonPosition = FabPosition.Center,\n        snackbarHost = {\n            SnackbarHost(hostState = snackbarState) {\n                ErrorSnackbar(data = it)\n            }\n        },\n        topBar = {\n            Header(\n                target = state.selected,\n                onSelect = onSelectTarget,\n                onBackPress = onBackPress,\n            )\n        },\n    ) { innerPadding ->\n        ExercisesList(\n            exercises = state.exercises,\n            contentPadding = innerPadding + PaddingValues(bottom = 80.dp),\n            onExerciseClick = onExerciseClick,\n            onReferenceClick = onReferenceClick,\n            onRemove = onRemove,\n        )\n    }\n}\n\n@Composable\nprivate fun ExercisesList(\n    exercises: List<Exercise>,\n    contentPadding: PaddingValues,\n    onExerciseClick: (id: Int?) -> Unit,\n    onRemove: (Int?) -> Unit,\n    onReferenceClick: (String) -> Unit,\n) {\n    LazyColumn(\n        contentPadding = contentPadding,\n    ) {\n        items(exercises, key = { it.id!! }) { exercise ->\n            val exerciseId by rememberUpdatedState(exercise.id)\n            SwipeToDeleteBox(\n                modifier = Modifier.animateItem(),\n                onDismiss = { onRemove(exerciseId) }\n            ) {\n                ExerciseItem(\n                    exercise = exercise,\n                    onClick = { onExerciseClick(exerciseId) },\n                    referenceButton = {\n                        if (exercise.reference != null) {\n                            FilledTonalIconButton(\n                                modifier = Modifier.size(56.dp),\n                                shape = MaterialTheme.shapes.extraLarge,\n                                onClick = { onReferenceClick(exercise.reference) }\n                            ) {\n                                Icon(painter = KenkoIcons.Lightbulb, contentDescription = null)\n                            }\n                        }\n                    }\n                )\n            }\n        }\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun Header(\n    target: MuscleGroups?,\n    onSelect: (MuscleGroups?) -> Unit,\n    onBackPress: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Column(modifier = modifier.background(MaterialTheme.colorScheme.background)) {\n        TopAppBar(\n            title = {\n                Text(text = stringResource(id = R.string.label_browse_exercises))\n            },\n            navigationIcon = {\n                BackButton(onClick = onBackPress)\n            }\n        )\n        LazyTargets(contentPadding = PaddingValues(horizontal = 8.dp)) {\n            TargetChip(\n                selected = target == it,\n                onClick = { onSelect(it) },\n                text = stringResource(it.string),\n            )\n        }\n        HorizontalDivider(thickness = KenkoBorderWidth)\n    }\n}\n\n@Composable\nprivate fun ExerciseItem(\n    exercise: Exercise,\n    onClick: () -> Unit,\n    referenceButton: @Composable () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    @StringRes\n    val targetName: Int = remember { exercise.target.stringRes }\n    Surface(\n        modifier = modifier,\n        onClick = onClick,\n    ) {\n        Row(\n            modifier = Modifier\n                .fillMaxWidth()\n                .padding(horizontal = 20.dp, vertical = 8.dp),\n            verticalAlignment = Alignment.CenterVertically,\n            horizontalArrangement = Arrangement.SpaceBetween,\n        ) {\n            Column(\n                modifier = Modifier.weight(1f),\n            ) {\n                Text(\n                    text = exercise.name,\n                    style = MaterialTheme.typography.titleMedium,\n                )\n                Text(\n                    text = stringResource(targetName),\n                    style = MaterialTheme.typography.bodyMedium,\n                    color = MaterialTheme.colorScheme.outline,\n                )\n            }\n            Box(modifier = Modifier.size(56.dp)) {\n                referenceButton()\n            }\n        }\n    }\n}\n\n@Preview\n@Composable\nprivate fun ExercisesPreview(\n    @PreviewParameter(ExercisesPreviewParameter::class, limit = 2) exercises: List<Exercise>,\n) {\n    KenkoTheme {\n        Exercises(\n            state = ExercisesUiState(MuscleGroups.entries.flatMap { exercises }),\n            snackbarState = SnackbarHostState(),\n            onExerciseClick = {},\n            onCreateClick = {},\n            onSelectTarget = {},\n            onBackPress = {},\n            onReferenceClick = {},\n            onRemove = {}\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/exercises/ExercisesViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.exercises\n\nimport androidx.annotation.StringRes\nimport androidx.compose.material3.SnackbarHostState\nimport androidx.compose.runtime.Stable\nimport androidx.compose.ui.platform.UriHandler\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport com.looker.kenko.R\nimport com.looker.kenko.data.StringHandler\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.data.repository.ExerciseRepo\nimport com.looker.kenko.utils.asStateFlow\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.StateFlow\nimport kotlinx.coroutines.flow.combine\nimport kotlinx.coroutines.launch\nimport javax.inject.Inject\n\n@HiltViewModel\nclass ExercisesViewModel @Inject constructor(\n    private val repo: ExerciseRepo,\n    private val uriHandler: UriHandler,\n    private val stringHandler: StringHandler,\n) : ViewModel() {\n\n    // null -> all\n    private val selectedTarget: MutableStateFlow<MuscleGroups?> = MutableStateFlow(null)\n\n    private val exercisesStream: Flow<List<Exercise>> = repo.stream\n\n    val snackbarState = SnackbarHostState()\n\n    val exercises: StateFlow<ExercisesUiState> = combine(\n        exercisesStream,\n        selectedTarget,\n    ) { exercises, target ->\n        val selectedExercises = if (target == null) {\n            exercises\n        } else {\n            exercises.filter { it.target == target }\n        }\n        ExercisesUiState(\n            exercises = selectedExercises,\n            selected = target,\n        )\n    }.asStateFlow(ExercisesUiState())\n\n    fun removeExercise(id: Int?) {\n        viewModelScope.launch {\n            if (id == null) {\n                snackbarState.showSnackbar(stringHandler.getString(R.string.error_unknown))\n                return@launch\n            }\n            repo.remove(id)\n        }\n    }\n\n    fun setTarget(value: MuscleGroups?) {\n        viewModelScope.launch {\n            selectedTarget.emit(value)\n        }\n    }\n\n    fun onReferenceClick(reference: String) {\n        viewModelScope.launch {\n            try {\n                uriHandler.openUri(reference)\n            } catch (e: IllegalStateException) {\n                snackbarState.showSnackbar(\n                    e.message ?: stringHandler.getString(R.string.error_invalid_url)\n                )\n            }\n        }\n    }\n}\n\nval MuscleGroups?.string: Int\n    @StringRes\n    get() = this?.stringRes ?: R.string.label_all_muscle_groups\n\n@Stable\nclass ExercisesUiState(\n    val exercises: List<Exercise> = emptyList(),\n    val selected: MuscleGroups? = null,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/exercises/navigation/ExercisesNavigation.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.exercises.navigation\n\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.navigation.NavController\nimport androidx.navigation.NavGraphBuilder\nimport androidx.navigation.NavOptions\nimport androidx.navigation.compose.composable\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.ui.exercises.Exercises\nimport kotlinx.serialization.Serializable\n\n@Serializable\nobject ExercisesRoute\n\nfun NavController.navigateToExercises(navOptions: NavOptions? = null) {\n    navigate(ExercisesRoute, navOptions = navOptions)\n}\n\nfun NavGraphBuilder.exercises(\n    onExerciseClick: (id: Int?) -> Unit,\n    onCreateClick: (target: MuscleGroups?) -> Unit,\n    onBackPress: () -> Unit,\n) {\n    composable<ExercisesRoute> {\n        Exercises(\n            onExerciseClick = onExerciseClick,\n            onCreateClick = onCreateClick,\n            onBackPress = onBackPress,\n            viewModel = hiltViewModel(),\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/extensions/Modifier.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.extensions\n\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.draw.rotate\nimport androidx.compose.ui.layout.layout\n\nfun Modifier.vertical(towardsRight: Boolean = true) =\n    layout { measurable, constraints ->\n        val placeable = measurable.measure(constraints)\n        layout(placeable.height, placeable.width) {\n            placeable.place(\n                x = -(placeable.width / 2 - placeable.height / 2),\n                y = -(placeable.height / 2 - placeable.width / 2)\n            )\n        }\n    }.rotate(90F * (if (towardsRight) 1 else -1))\n\nconst val PHI = 16F / 10F\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/extensions/PaddingValues.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.extensions\n\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.calculateEndPadding\nimport androidx.compose.foundation.layout.calculateStartPadding\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.platform.LocalLayoutDirection\nimport androidx.compose.ui.unit.LayoutDirection\n\n@Composable\noperator fun PaddingValues.plus(other: PaddingValues): PaddingValues {\n    val layoutDirection: LayoutDirection = LocalLayoutDirection.current\n    return PaddingValues(\n        start = calculateStartPadding(layoutDirection) + other.calculateStartPadding(layoutDirection),\n        end = calculateEndPadding(layoutDirection) + other.calculateEndPadding(layoutDirection),\n        top = calculateTopPadding() + other.calculateTopPadding(),\n        bottom = calculateBottomPadding() + other.calculateBottomPadding()\n    )\n}\n\n@Composable\noperator fun PaddingValues.minus(other: PaddingValues): PaddingValues {\n    val layoutDirection: LayoutDirection = LocalLayoutDirection.current\n    return PaddingValues(\n        start = calculateStartPadding(layoutDirection) - other.calculateStartPadding(layoutDirection),\n        end = calculateEndPadding(layoutDirection) - other.calculateEndPadding(layoutDirection),\n        top = calculateTopPadding() - other.calculateTopPadding(),\n        bottom = calculateBottomPadding() - other.calculateBottomPadding()\n    )\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/extensions/String.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.extensions\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.remember\n\n@Composable\nfun normalizeInt(value: Int, padding: Char = '0', length: Int = 2): String {\n    return remember(value) {\n        value.toString().padStart(length, padding)\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/getStarted/GetStarted.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.getStarted\n\nimport androidx.compose.animation.core.Animatable\nimport androidx.compose.animation.core.Spring\nimport androidx.compose.animation.core.spring\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.fillMaxHeight\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.navigationBarsPadding\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.foundation.shape.CircleShape\nimport androidx.compose.material3.Button\nimport androidx.compose.material3.ButtonDefaults\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.LaunchedEffect\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.graphicsLayer\nimport androidx.compose.ui.res.stringArrayResource\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.tooling.preview.PreviewScreenSizes\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.R\nimport com.looker.kenko.ui.components.HealthQuotes\nimport com.looker.kenko.ui.components.TickerText\nimport com.looker.kenko.ui.components.TypingText\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport com.looker.kenko.ui.theme.header\nimport kotlinx.coroutines.launch\nimport kotlin.time.Duration.Companion.milliseconds\n\n@Composable\nfun GetStarted(onNext: () -> Unit) {\n    GetStarted(onNextClick = onNext)\n}\n\n@Composable\nprivate fun GetStarted(\n    modifier: Modifier = Modifier,\n    onNextClick: () -> Unit,\n) {\n    Surface(\n        modifier = modifier.fillMaxSize(),\n    ) {\n        val iconVisibility = remember { Animatable(-50F) }\n        val buttonVisibility = remember { Animatable(0.75F) }\n        LaunchedEffect(true) {\n            buttonVisibility.animateTo(\n                targetValue = 0.85F,\n                animationSpec = spring(),\n            )\n            launch {\n                iconVisibility.animateTo(\n                    targetValue = 0F,\n                    animationSpec = spring(\n                        stiffness = Spring.StiffnessVeryLow,\n                        dampingRatio = Spring.DampingRatioMediumBouncy,\n                    ),\n                )\n            }\n            launch {\n                buttonVisibility.animateTo(\n                    targetValue = 1F,\n                    animationSpec = spring(\n                        stiffness = Spring.StiffnessVeryLow,\n                        dampingRatio = Spring.DampingRatioMediumBouncy,\n                    ),\n                )\n            }\n        }\n        Column(\n            modifier = Modifier\n                .fillMaxSize(),\n        ) {\n            var startShowingFirstMeaning by remember { mutableStateOf(false) }\n            var startShowingSecondMeaning by remember { mutableStateOf(false) }\n            Spacer(modifier = Modifier.height(80.dp))\n            Text(\n                text = stringResource(R.string.label_kenko),\n                style = MaterialTheme.typography.header(),\n                color = MaterialTheme.colorScheme.primary,\n                modifier = Modifier.padding(horizontal = 18.dp),\n            )\n            TypingText(\n                text = stringResource(R.string.label_kenko_jp),\n                style = MaterialTheme.typography.titleMedium,\n                color = MaterialTheme.colorScheme.secondary,\n                typingDelay = 10.milliseconds,\n                onCompleteListener = { startShowingFirstMeaning = true },\n                modifier = Modifier.padding(horizontal = 18.dp),\n            )\n            TypingText(\n                text = stringResource(R.string.label_kenko_meaning),\n                style = MaterialTheme.typography.titleMedium,\n                color = MaterialTheme.colorScheme.outline,\n                startTyping = startShowingFirstMeaning,\n                typingDelay = 10.milliseconds,\n                initialDelay = 0.milliseconds,\n                onCompleteListener = { startShowingSecondMeaning = true },\n                modifier = Modifier.padding(horizontal = 18.dp),\n            )\n            TypingText(\n                text = stringResource(R.string.label_kenko_meaning_ALT),\n                style = MaterialTheme.typography.titleMedium,\n                color = MaterialTheme.colorScheme.outline,\n                startTyping = startShowingSecondMeaning,\n                typingDelay = 10.milliseconds,\n                initialDelay = 0.milliseconds,\n                modifier = Modifier.padding(horizontal = 18.dp),\n            )\n            Spacer(modifier = Modifier.weight(1F))\n            TickerText(\n                texts = stringArrayResource(R.array.label_features),\n                color = MaterialTheme.colorScheme.onTertiaryContainer,\n                modifier = Modifier.background(MaterialTheme.colorScheme.tertiaryContainer),\n            )\n            Column(\n                modifier = Modifier\n                    .fillMaxWidth()\n                    .fillMaxHeight(0.6F)\n                    .background(MaterialTheme.colorScheme.primaryContainer)\n                    .navigationBarsPadding(),\n                verticalArrangement = Arrangement.Bottom,\n                horizontalAlignment = Alignment.CenterHorizontally,\n            ) {\n                Spacer(modifier = Modifier.weight(1F))\n                Text(\n                    text = stringResource(R.string.label_boarding_quote),\n                    style = MaterialTheme.typography.displaySmall,\n                    color = MaterialTheme.colorScheme.onPrimaryContainer,\n                    textAlign = TextAlign.Center,\n                )\n                Spacer(modifier = Modifier.weight(1F))\n                Button(\n                    modifier = Modifier\n                        .graphicsLayer {\n                            scaleX = buttonVisibility.value\n                            scaleY = buttonVisibility.value\n                            translationY = (1F - buttonVisibility.value) * 15F\n                        },\n                    colors = ButtonDefaults.buttonColors(\n                        containerColor = MaterialTheme.colorScheme.inverseSurface,\n                        contentColor = MaterialTheme.colorScheme.inverseOnSurface,\n                    ),\n                    onClick = onNextClick,\n                    contentPadding = PaddingValues(\n                        vertical = 24.dp,\n                        horizontal = 40.dp,\n                    ),\n                ) {\n                    ButtonIcon(\n                        modifier = Modifier\n                            .graphicsLayer {\n                                translationX = iconVisibility.value\n                                rotationZ = iconVisibility.value\n                            },\n                        backgroundColor = MaterialTheme.colorScheme.primaryContainer,\n                        iconColor = MaterialTheme.colorScheme.onPrimaryContainer,\n                    )\n                    Spacer(modifier = Modifier.width(8.dp))\n                    Text(text = stringResource(R.string.label_lets_go))\n                }\n                HealthQuotes(\n                    modifier = Modifier.align(Alignment.CenterHorizontally),\n                    color = MaterialTheme.colorScheme.outline,\n                )\n            }\n        }\n    }\n}\n\n@Composable\nprivate fun ButtonIcon(\n    iconColor: Color,\n    backgroundColor: Color,\n    modifier: Modifier = Modifier,\n) {\n    Icon(\n        modifier = modifier\n            .background(backgroundColor, CircleShape)\n            .padding(8.dp),\n        painter = KenkoIcons.ArrowForward,\n        tint = iconColor,\n        contentDescription = \"\",\n    )\n}\n\n@Preview\n@PreviewScreenSizes\n@Composable\nprivate fun GetStartedPreview() {\n    KenkoTheme {\n        GetStarted(onNextClick = {})\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/getStarted/GetStartedButton.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.getStarted\n\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.material3.Icon\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.layout.Layout\nimport androidx.compose.ui.layout.Measurable\nimport androidx.compose.ui.layout.layoutId\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.ui.theme.KenkoIcons\n\n@Composable\nfun ButtonGroup(\n    content: @Composable () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Layout(\n        modifier = modifier,\n        content = {\n            Icon(\n                modifier = Modifier.Companion.layoutId(ButtonID.Cloud),\n                imageVector = KenkoIcons.Cloud,\n                contentDescription = null,\n            )\n            Icon(\n                modifier = Modifier.Companion.layoutId(ButtonID.Arrow1),\n                imageVector = KenkoIcons.Arrow1,\n                contentDescription = null,\n            )\n            Icon(\n                modifier = Modifier.Companion.layoutId(ButtonID.Arrow2),\n                imageVector = KenkoIcons.Arrow2,\n                contentDescription = null,\n            )\n            Icon(\n                modifier = Modifier.Companion.layoutId(ButtonID.Arrow3),\n                imageVector = KenkoIcons.Arrow3,\n                contentDescription = null,\n            )\n            Icon(\n                modifier = Modifier.Companion.layoutId(ButtonID.Arrow4),\n                imageVector = KenkoIcons.Arrow4,\n                contentDescription = null,\n            )\n            Box(modifier = Modifier.layoutId(ButtonID.Button)) {\n                content()\n            }\n        },\n    ) { measurables, constraints ->\n        lateinit var cloud: Measurable\n        lateinit var arrow1: Measurable\n        lateinit var arrow2: Measurable\n        lateinit var arrow3: Measurable\n        lateinit var arrow4: Measurable\n        lateinit var button: Measurable\n        measurables.forEach { measurable ->\n            when (measurable.layoutId) {\n                ButtonID.Button -> button = measurable\n                ButtonID.Cloud -> cloud = measurable\n                ButtonID.Arrow1 -> arrow1 = measurable\n                ButtonID.Arrow2 -> arrow2 = measurable\n                ButtonID.Arrow3 -> arrow3 = measurable\n                ButtonID.Arrow4 -> arrow4 = measurable\n                else -> error(\"Unknown Element\")\n            }\n        }\n        val cloudPlaceable = cloud.measure(constraints)\n        val arrow1Placeable = arrow1.measure(constraints)\n        val arrow2Placeable = arrow2.measure(constraints)\n        val arrow3Placeable = arrow3.measure(constraints)\n        val arrow4Placeable = arrow4.measure(constraints)\n        val buttonPlaceable = button.measure(constraints)\n        val width = 360.dp.toPx().toInt()\n        layout(width, 162.dp.toPx().toInt()) {\n            val x = (width / 2) - (buttonPlaceable.width / 2)\n            cloudPlaceable.placeRelative(16.dp.toPx().toInt(), 31.dp.toPx().toInt())\n            arrow1Placeable.placeRelative(148.dp.toPx().toInt(), 2.dp.toPx().toInt())\n            arrow2Placeable.placeRelative(200.dp.toPx().toInt(), 0.dp.toPx().toInt())\n            arrow3Placeable.placeRelative(270.dp.toPx().toInt(), 26.dp.toPx().toInt())\n            arrow4Placeable.placeRelative(290.dp.toPx().toInt(), 100.dp.toPx().toInt())\n            buttonPlaceable.placeRelative(x, 68.dp.toPx().toInt())\n        }\n    }\n}\n\nprivate enum class ButtonID {\n    Cloud, Arrow1, Arrow2, Arrow3, Arrow4, Button\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/getStarted/GetStartedOld.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.getStarted\n\nimport androidx.compose.animation.core.Animatable\nimport androidx.compose.animation.core.Spring\nimport androidx.compose.animation.core.spring\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.border\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.aspectRatio\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.navigationBarsPadding\nimport androidx.compose.foundation.layout.offset\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.foundation.shape.CircleShape\nimport androidx.compose.material3.FilledTonalButton\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.LocalContentColor\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.CompositionLocalProvider\nimport androidx.compose.runtime.LaunchedEffect\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.rememberUpdatedState\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.graphicsLayer\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.tooling.preview.PreviewScreenSizes\nimport androidx.compose.ui.unit.dp\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport com.looker.kenko.R\nimport com.looker.kenko.ui.components.HealthQuotes\nimport com.looker.kenko.ui.components.TypingText\nimport com.looker.kenko.ui.extensions.PHI\nimport com.looker.kenko.ui.extensions.vertical\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport kotlin.time.Duration.Companion.milliseconds\nimport kotlinx.coroutines.delay\nimport kotlinx.coroutines.launch\n\n@Composable\nfun GetStartedOld(onNext: () -> Unit) {\n    val viewModel: GetStartedOldViewModel = hiltViewModel()\n\n    val isOnboardingDone = viewModel.isOnboardingDone\n    val updatedOnNext by rememberUpdatedState(newValue = onNext)\n\n    LaunchedEffect(Unit) {\n        if (isOnboardingDone) {\n            delay(300)\n            updatedOnNext()\n        }\n    }\n\n    GetStarted(\n        isOnboardingDone = isOnboardingDone,\n        onNextClick = updatedOnNext,\n    )\n}\n\n@Composable\nprivate fun GetStarted(\n    isOnboardingDone: Boolean,\n    onNextClick: () -> Unit,\n) {\n    Surface {\n        Box(\n            modifier = Modifier.fillMaxSize(),\n        ) {\n            val iconVisibility = remember { Animatable(-50F) }\n            val buttonVisibility = remember { Animatable(0.75F) }\n            LaunchedEffect(true) {\n                buttonVisibility.animateTo(\n                    targetValue = 0.85F,\n                    animationSpec = spring(),\n                )\n                launch {\n                    iconVisibility.animateTo(\n                        targetValue = 0F,\n                        animationSpec = spring(\n                            stiffness = Spring.StiffnessVeryLow,\n                            dampingRatio = Spring.DampingRatioMediumBouncy,\n                        ),\n                    )\n                }\n                buttonVisibility.animateTo(\n                    targetValue = 1F,\n                    animationSpec = spring(\n                        stiffness = Spring.StiffnessVeryLow,\n                        dampingRatio = Spring.DampingRatioMediumBouncy,\n                    ),\n                )\n            }\n            Icon(\n                modifier = Modifier\n                    .align(Alignment.TopEnd)\n                    .offset(x = 50.dp, y = 56.dp)\n                    .graphicsLayer {\n                        translationX = iconVisibility.value * 2\n                        rotationZ = iconVisibility.value\n                    },\n                imageVector = KenkoIcons.Dawn,\n                tint = MaterialTheme.colorScheme.secondary,\n                contentDescription = null,\n            )\n            HeroTitle(modifier = Modifier.align(Alignment.CenterStart))\n            Column(\n                modifier = Modifier\n                    .align(Alignment.BottomCenter)\n                    .navigationBarsPadding(),\n                horizontalAlignment = Alignment.CenterHorizontally,\n            ) {\n                if (!isOnboardingDone) {\n                    CompositionLocalProvider(LocalContentColor provides MaterialTheme.colorScheme.secondary) {\n                        ButtonGroup(\n                            content = {\n                                FilledTonalButton(\n                                    modifier = Modifier\n                                        .graphicsLayer {\n                                            scaleX = buttonVisibility.value\n                                            scaleY = buttonVisibility.value\n                                            translationY = (1F - buttonVisibility.value) * 15F\n                                        },\n                                    onClick = onNextClick,\n                                    contentPadding = PaddingValues(\n                                        vertical = 24.dp,\n                                        horizontal = 40.dp,\n                                    ),\n                                ) {\n                                    ButtonIcon(\n                                        modifier = Modifier\n                                            .graphicsLayer {\n                                                translationX = iconVisibility.value\n                                                rotationZ = iconVisibility.value\n                                            },\n                                    )\n                                    Spacer(modifier = Modifier.width(8.dp))\n                                    TypingText(text = stringResource(R.string.label_lets_go))\n                                }\n                            },\n                        )\n                    }\n                }\n                Spacer(modifier = Modifier.height(8.dp))\n                HealthQuotes()\n                Spacer(modifier = Modifier.height(4.dp))\n            }\n        }\n    }\n}\n\n@Composable\nprivate fun HeroTitle(modifier: Modifier = Modifier) {\n    Row(modifier, horizontalArrangement = Arrangement.spacedBy((-12).dp)) {\n        Column(\n            horizontalAlignment = Alignment.CenterHorizontally,\n            verticalArrangement = Arrangement.spacedBy(4.dp),\n        ) {\n            Text(\n                modifier = Modifier.vertical(),\n                text = stringResource(R.string.label_kenko).uppercase(),\n                style = MaterialTheme.typography.displayLarge,\n                color = MaterialTheme.colorScheme.tertiary,\n            )\n            Box(\n                modifier = Modifier\n                    .width(48.dp)\n                    .aspectRatio(1 / PHI)\n                    .border(2.dp, MaterialTheme.colorScheme.outline, CircleShape),\n            )\n        }\n        Column {\n            var startShowingFirstMeaning by remember { mutableStateOf(false) }\n            var startShowingSecondMeaning by remember { mutableStateOf(false) }\n            TypingText(\n                text = stringResource(R.string.label_kenko_jp),\n                style = MaterialTheme.typography.titleMedium,\n                color = MaterialTheme.colorScheme.primary,\n                typingDelay = 10.milliseconds,\n                onCompleteListener = { startShowingFirstMeaning = true },\n            )\n            TypingText(\n                text = stringResource(R.string.label_kenko_meaning),\n                style = MaterialTheme.typography.titleMedium,\n                color = MaterialTheme.colorScheme.secondary,\n                startTyping = startShowingFirstMeaning,\n                typingDelay = 10.milliseconds,\n                initialDelay = 0.milliseconds,\n                onCompleteListener = { startShowingSecondMeaning = true },\n            )\n            TypingText(\n                text = stringResource(R.string.label_kenko_meaning_ALT),\n                style = MaterialTheme.typography.titleMedium,\n                color = MaterialTheme.colorScheme.secondary,\n                startTyping = startShowingSecondMeaning,\n                typingDelay = 10.milliseconds,\n                initialDelay = 0.milliseconds,\n            )\n        }\n    }\n}\n\n@Composable\nprivate fun ButtonIcon(\n    modifier: Modifier = Modifier,\n) {\n    Icon(\n        modifier = modifier\n            .background(MaterialTheme.colorScheme.onSecondaryContainer, CircleShape)\n            .padding(8.dp),\n        painter = KenkoIcons.ArrowForward,\n        tint = MaterialTheme.colorScheme.secondaryContainer,\n        contentDescription = \"\",\n    )\n}\n\n@Preview\n@PreviewScreenSizes\n@Composable\nprivate fun GetStartedPreview() {\n    KenkoTheme {\n        GetStarted(isOnboardingDone = false, onNextClick = {})\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/getStarted/GetStartedOldViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.getStarted\n\nimport androidx.lifecycle.SavedStateHandle\nimport androidx.lifecycle.ViewModel\nimport androidx.navigation.toRoute\nimport com.looker.kenko.ui.getStarted.navigation.GetStartedRoute\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport javax.inject.Inject\n\n@HiltViewModel\nclass GetStartedOldViewModel @Inject constructor(\n    savedStateHandle: SavedStateHandle,\n) : ViewModel() {\n\n    private val routeData: GetStartedRoute = savedStateHandle.toRoute()\n    val isOnboardingDone = routeData.isOnboardingDone\n\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/getStarted/navigation/GetStartedNavigation.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.getStarted.navigation\n\nimport androidx.navigation.NavGraphBuilder\nimport androidx.navigation.compose.composable\nimport com.looker.kenko.ui.getStarted.GetStartedOld\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class GetStartedRoute(val isOnboardingDone: Boolean)\n\nfun NavGraphBuilder.getStarted(onNext: () -> Unit) {\n    composable<GetStartedRoute> {\n        GetStartedOld(onNext)\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/home/Home.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.home\n\nimport androidx.compose.animation.AnimatedContent\nimport androidx.compose.foundation.Image\nimport androidx.compose.foundation.combinedClickable\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.BoxScope\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.ColumnScope\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.RowScope\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.size\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.foundation.layout.widthIn\nimport androidx.compose.foundation.rememberScrollState\nimport androidx.compose.foundation.shape.CircleShape\nimport androidx.compose.foundation.verticalScroll\nimport androidx.compose.material3.Button\nimport androidx.compose.material3.ButtonDefaults\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.FilledTonalIconButton\nimport androidx.compose.material3.HorizontalDivider\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.ProvideTextStyle\nimport androidx.compose.material3.Scaffold\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TopAppBar\nimport androidx.compose.material3.VerticalDivider\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Alignment.Companion.CenterHorizontally\nimport androidx.compose.ui.Alignment.Companion.TopEnd\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.draw.clip\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.RectangleShape\nimport androidx.compose.ui.graphics.Shape\nimport androidx.compose.ui.res.painterResource\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.TextStyle\nimport androidx.compose.ui.text.font.FontWeight\nimport androidx.compose.ui.text.style.LineBreak\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.dp\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport com.looker.kenko.R\nimport com.looker.kenko.ui.components.KenkoBorderWidth\nimport com.looker.kenko.ui.components.LiftingQuotes\nimport com.looker.kenko.ui.components.TertiaryKenkoButton\nimport com.looker.kenko.ui.components.TickerText\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport com.looker.kenko.ui.theme.header\n\n@Composable\nfun Home(\n    viewModel: HomeViewModel,\n    onProfileClick: () -> Unit,\n    onSelectPlanClick: () -> Unit,\n    onAddExerciseClick: () -> Unit,\n    onExploreSessionsClick: () -> Unit,\n    onExploreExercisesClick: () -> Unit,\n    onStartSessionClick: () -> Unit,\n    onCurrentPlanClick: (Int) -> Unit,\n) {\n    val state by viewModel.state.collectAsStateWithLifecycle()\n    Home(\n        state = state,\n        onProfileClick = onProfileClick,\n        onSelectPlanClick = onSelectPlanClick,\n        onAddExerciseClick = onAddExerciseClick,\n        onExploreSessionsClick = onExploreSessionsClick,\n        onExploreExercisesClick = onExploreExercisesClick,\n        onStartSessionClick = onStartSessionClick,\n        onCurrentPlanClick = onCurrentPlanClick,\n    )\n}\n\n// TODO: Add current plan indicator on this page\n@Composable\nprivate fun Home(\n    state: HomeUiData,\n    onProfileClick: () -> Unit = {},\n    onSelectPlanClick: () -> Unit = {},\n    onAddExerciseClick: () -> Unit = {},\n    onExploreSessionsClick: () -> Unit = {},\n    onExploreExercisesClick: () -> Unit = {},\n    onStartSessionClick: () -> Unit = {},\n    onCurrentPlanClick: (Int) -> Unit = {},\n) {\n    Scaffold(\n        topBar = {\n            KenkoTopBar {\n                FilledTonalIconButton(onClick = onProfileClick) {\n                    Icon(painter = KenkoIcons.Person, contentDescription = null)\n                }\n            }\n        },\n    ) { innerPadding ->\n        Column(\n            modifier = Modifier\n                .fillMaxSize()\n                .verticalScroll(rememberScrollState())\n                .padding(innerPadding),\n        ) {\n            HorizontalDivider(thickness = KenkoBorderWidth)\n            AnimatedContent(\n                modifier = Modifier.align(CenterHorizontally),\n                targetState = state.isPlanSelected,\n                label = \"\",\n            ) { isPlanActive ->\n                if (isPlanActive) {\n                    Row(\n                        modifier = Modifier\n                            .widthIn(240.dp, 420.dp)\n                            .height(120.dp),\n                    ) {\n                        ExploreExerciseCard(\n                            onClick = onExploreExercisesClick,\n                            onLongClick = onAddExerciseClick,\n                            modifier = Modifier.weight(1F),\n                        )\n                        VerticalDivider()\n                        SessionHistoryCard(\n                            onClick = onExploreSessionsClick,\n                            modifier = Modifier.weight(1F),\n                        )\n                    }\n                } else {\n                    TickerText(\n                        text = stringResource(R.string.label_select_a_plan),\n                        color = MaterialTheme.colorScheme.outline,\n                    )\n                }\n            }\n            HorizontalDivider(thickness = KenkoBorderWidth)\n            if (state.isPlanSelected) {\n                StartSession(\n                    onStartSessionClick = {\n                        if (state.isTodayEmpty) {\n                            onCurrentPlanClick(state.currentPlanId!!)\n                        } else {\n                            onStartSessionClick()\n                        }\n                    },\n                    content = {\n                        val heading = remember(state.isSessionStarted, state.isTodayEmpty) {\n                            if (state.isTodayEmpty) {\n                                R.string.label_nothing_today\n                            } else if (state.isSessionStarted) {\n                                R.string.label_continue_session_heading\n                            } else {\n                                if (state.isFirstSession) {\n                                    R.string.label_start_first_session\n                                } else {\n                                    R.string.label_start_session_heading\n                                }\n                            }\n                        }\n                        Text(\n                            modifier = Modifier\n                                .align(CenterHorizontally)\n                                .padding(horizontal = 16.dp),\n                            text = stringResource(heading),\n                            style = MaterialTheme.typography.header()\n                                .merge(\n                                    lineBreak = LineBreak.Heading,\n                                    color = MaterialTheme.colorScheme.primary,\n                                ),\n                        )\n                    },\n                    buttonText = {\n                        val stringRes = remember(state.isSessionStarted, state.isTodayEmpty) {\n                            if (state.isTodayEmpty) {\n                                R.string.label_edit_plan\n                            } else if (state.isSessionStarted) {\n                                R.string.label_continue_session\n                            } else {\n                                R.string.label_start_session\n                            }\n                        }\n                        Text(text = stringResource(stringRes))\n                    },\n                )\n            } else {\n                SelectPlan(onSelectPlanClick = onSelectPlanClick)\n            }\n            LiftingQuotes(Modifier.align(CenterHorizontally))\n        }\n    }\n}\n\n@Composable\nprivate fun ColumnScope.StartSession(\n    onStartSessionClick: () -> Unit,\n    content: @Composable () -> Unit,\n    buttonText: @Composable () -> Unit,\n) {\n    Spacer(modifier = Modifier.weight(1F))\n    content()\n    Spacer(modifier = Modifier.weight(1F))\n    TertiaryKenkoButton(\n        modifier = Modifier.align(CenterHorizontally),\n        onClick = onStartSessionClick,\n        label = buttonText,\n        icon = {\n            Icon(\n                modifier = Modifier.size(18.dp),\n                painter = KenkoIcons.ArrowOutward,\n                contentDescription = null,\n            )\n        },\n    )\n}\n\n@Composable\nprivate fun ColumnScope.SelectPlan(\n    onSelectPlanClick: () -> Unit,\n) {\n    Spacer(modifier = Modifier.weight(1F))\n    Text(\n        modifier = Modifier\n            .align(CenterHorizontally)\n            .padding(horizontal = 16.dp),\n        text = stringResource(R.string.label_selecting_a_plan),\n        style = MaterialTheme.typography.header().copy(\n            lineBreak = LineBreak.Heading,\n        ),\n        color = MaterialTheme.colorScheme.primary,\n    )\n    Spacer(modifier = Modifier.weight(1F))\n    Button(\n        modifier = Modifier.align(CenterHorizontally),\n        onClick = onSelectPlanClick,\n        colors = ButtonDefaults.buttonColors(\n            containerColor = MaterialTheme.colorScheme.tertiary,\n            contentColor = MaterialTheme.colorScheme.onTertiary,\n        ),\n        contentPadding = PaddingValues(\n            vertical = 24.dp,\n            horizontal = 40.dp,\n        ),\n    ) {\n        Text(text = stringResource(R.string.label_select_plan_one))\n        Spacer(modifier = Modifier.width(12.dp))\n        Icon(\n            painter = KenkoIcons.ArrowOutward,\n            contentDescription = null,\n        )\n    }\n}\n\n@Composable\nprivate fun ExploreExerciseCard(\n    onClick: () -> Unit,\n    onLongClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    HelperCards(\n        onClick = onClick,\n        onLongClick = onLongClick,\n        modifier = modifier,\n    ) {\n        Text(text = stringResource(R.string.label_explore_exercises))\n        Icon(\n            painter = KenkoIcons.ArrowOutward,\n            contentDescription = null,\n            modifier = Modifier\n                .padding(16.dp)\n                .align(TopEnd),\n        )\n    }\n}\n\n@Composable\nprivate fun SessionHistoryCard(\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    HelperCards(onClick = onClick, modifier = modifier) {\n        Text(text = stringResource(R.string.label_session_history_home))\n        Icon(\n            painter = KenkoIcons.History,\n            contentDescription = null,\n            modifier = Modifier\n                .padding(16.dp)\n                .align(TopEnd),\n        )\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun KenkoTopBar(\n    modifier: Modifier = Modifier,\n    actions: @Composable RowScope.() -> Unit = {},\n) {\n    TopAppBar(\n        title = {\n            Row(\n                verticalAlignment = Alignment.CenterVertically,\n                horizontalArrangement = Arrangement.spacedBy(8.dp),\n            ) {\n                Image(\n                    painter = painterResource(R.drawable.ic_app_icon),\n                    contentDescription = null,\n                    modifier = Modifier.clip(CircleShape)\n                )\n                Text(\n                    text = \"KENKO\",\n                    fontWeight = FontWeight.Bold,\n                )\n            }\n        },\n        actions = actions,\n        modifier = modifier,\n    )\n}\n\n@Composable\nprivate fun HelperCards(\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n    onLongClick: () -> Unit = {},\n    shape: Shape = RectangleShape,\n    color: Color = MaterialTheme.colorScheme.surface,\n    textStyle: TextStyle = MaterialTheme.typography.titleLarge.copy(fontWeight = FontWeight.Bold),\n    content: @Composable BoxScope.() -> Unit,\n) {\n    Surface(\n        shape = shape,\n        color = color,\n        modifier = modifier.combinedClickable(\n            onClick = onClick,\n            onLongClick = onLongClick,\n        ),\n    ) {\n        Box(\n            modifier = Modifier.fillMaxSize(),\n            contentAlignment = Alignment.Center,\n        ) {\n            ProvideTextStyle(textStyle) { content() }\n        }\n    }\n}\n\n@Preview\n@Composable\nprivate fun HomePreview() {\n    KenkoTheme {\n        Home(\n            state = HomeUiData(\n                isPlanSelected = true,\n                isSessionStarted = true,\n                isTodayEmpty = false,\n                isFirstSession = false,\n                currentPlanId = null,\n            ),\n        )\n    }\n}\n\n@Preview\n@Composable\nprivate fun StartTodayPreview() {\n    KenkoTheme {\n        Home(\n            state = HomeUiData(\n                isPlanSelected = true,\n                isSessionStarted = false,\n                isTodayEmpty = false,\n                isFirstSession = false,\n                currentPlanId = null,\n            ),\n        )\n    }\n}\n\n@Preview\n@Composable\nprivate fun TodayEmptyPreview() {\n    KenkoTheme {\n        Home(\n            state = HomeUiData(\n                isPlanSelected = true,\n                isSessionStarted = false,\n                isTodayEmpty = true,\n                isFirstSession = false,\n                currentPlanId = null,\n            ),\n        )\n    }\n}\n\n@Preview\n@Composable\nprivate fun FirstStartHomePreview() {\n    KenkoTheme {\n        Home(\n            state = HomeUiData(\n                isPlanSelected = false,\n                isSessionStarted = false,\n                isTodayEmpty = false,\n                isFirstSession = true,\n                currentPlanId = null,\n            ),\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/home/HomeViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.home\n\nimport androidx.compose.runtime.Immutable\nimport androidx.lifecycle.ViewModel\nimport com.looker.kenko.data.model.localDate\nimport com.looker.kenko.data.repository.PlanRepo\nimport com.looker.kenko.data.repository.SessionRepo\nimport com.looker.kenko.utils.asStateFlow\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport javax.inject.Inject\nimport kotlinx.coroutines.flow.combine\n\n@HiltViewModel\nclass HomeViewModel @Inject constructor(\n    planRepo: PlanRepo,\n    sessionRepo: SessionRepo,\n) : ViewModel() {\n\n    private val planStream = planRepo.current\n\n    private val sessionStream = sessionRepo.streamByDate(localDate)\n\n    private val sessionsStream = sessionRepo.stream\n\n    private val planItemStream = planRepo.planItems(localDate.dayOfWeek)\n\n    val state = combine(\n        planStream,\n        sessionStream,\n        sessionsStream,\n        planItemStream,\n    ) { currentPlan, currentSession, sessions, planItems ->\n        val isFirstSession = sessions.size <= 1 && sessions.firstOrNull()?.date == localDate\n        HomeUiData(\n            isPlanSelected = currentPlan != null,\n            isSessionStarted = currentSession != null && currentSession.sets.isNotEmpty(),\n            isTodayEmpty = planItems.isEmpty(),\n            isFirstSession = isFirstSession,\n            currentPlanId = currentPlan?.id,\n        )\n    }.asStateFlow(\n        HomeUiData(\n            isPlanSelected = true,\n            isSessionStarted = false,\n            isTodayEmpty = false,\n            isFirstSession = false,\n            currentPlanId = null,\n        ),\n    )\n}\n\n@Immutable\ndata class HomeUiData(\n    val isPlanSelected: Boolean,\n    val isSessionStarted: Boolean,\n    val isTodayEmpty: Boolean,\n    val isFirstSession: Boolean,\n    val currentPlanId: Int?,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/home/navigation/HomeNavigation.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.home.navigation\n\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.navigation.NavController\nimport androidx.navigation.NavGraphBuilder\nimport androidx.navigation.NavOptions\nimport androidx.navigation.compose.composable\nimport com.looker.kenko.ui.home.Home\nimport kotlinx.serialization.Serializable\n\n@Serializable\nobject HomeRoute\n\nfun NavController.navigateToHome(navOptions: NavOptions? = null) {\n    navigate(HomeRoute, navOptions = navOptions)\n}\n\nfun NavGraphBuilder.home(\n    onSelectPlanClick: () -> Unit,\n    onProfileClick: () -> Unit,\n    onAddExerciseClick: () -> Unit,\n    onExploreSessionsClick: () -> Unit,\n    onExploreExercisesClick: () -> Unit,\n    onStartSessionClick: () -> Unit,\n    onCurrentPlanClick: (Int) -> Unit,\n) {\n    composable<HomeRoute> {\n        Home(\n            onProfileClick = onProfileClick,\n            onSelectPlanClick = onSelectPlanClick,\n            onAddExerciseClick = onAddExerciseClick,\n            onExploreSessionsClick = onExploreSessionsClick,\n            onExploreExercisesClick = onExploreExercisesClick,\n            onStartSessionClick = onStartSessionClick,\n            onCurrentPlanClick = onCurrentPlanClick,\n            viewModel = hiltViewModel(),\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/navigation/KenkoNavHost.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.navigation\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Modifier\nimport androidx.lifecycle.Lifecycle\nimport androidx.navigation.NavController\nimport androidx.navigation.NavHostController\nimport androidx.navigation.compose.NavHost\nimport androidx.navigation.navOptions\nimport com.looker.kenko.ui.addEditExercise.navigation.addEditExercise\nimport com.looker.kenko.ui.addEditExercise.navigation.navigateToAddEditExercise\nimport com.looker.kenko.ui.exercises.navigation.exercises\nimport com.looker.kenko.ui.exercises.navigation.navigateToExercises\nimport com.looker.kenko.ui.getStarted.navigation.GetStartedRoute\nimport com.looker.kenko.ui.getStarted.navigation.getStarted\nimport com.looker.kenko.ui.home.navigation.home\nimport com.looker.kenko.ui.home.navigation.navigateToHome\nimport com.looker.kenko.ui.performance.navigation.performance\nimport com.looker.kenko.ui.planEdit.navigation.navigateToPlanEdit\nimport com.looker.kenko.ui.planEdit.navigation.planEdit\nimport com.looker.kenko.ui.plans.navigation.navigateToPlans\nimport com.looker.kenko.ui.plans.navigation.plans\nimport com.looker.kenko.ui.profile.navigation.navigateToProfile\nimport com.looker.kenko.ui.profile.navigation.profile\nimport com.looker.kenko.ui.sessionDetail.navigation.navigateToSessionDetail\nimport com.looker.kenko.ui.sessionDetail.navigation.sessionDetail\nimport com.looker.kenko.ui.sessions.navigation.navigateToSessions\nimport com.looker.kenko.ui.sessions.navigation.sessions\nimport com.looker.kenko.ui.settings.navigation.navigateToSettings\nimport com.looker.kenko.ui.settings.navigation.settings\n\nprivate val singleTopNavOptions = navOptions {\n    launchSingleTop = true\n}\n\nprivate val splashNavOptions = navOptions {\n    launchSingleTop = true\n    popUpTo<GetStartedRoute> {\n        inclusive = true\n    }\n}\n\n@Composable\nfun KenkoNavHost(\n    navController: NavController,\n    modifier: Modifier = Modifier,\n    startDestination: Any = GetStartedRoute,\n) {\n    NavHost(\n        modifier = modifier,\n        navController = navController as NavHostController,\n        startDestination = startDestination,\n    ) {\n        getStarted {\n            navController.navigateToHome(splashNavOptions)\n        }\n\n        home(\n            onProfileClick = {\n                navController.navigateToProfile(navOptions = singleTopNavOptions)\n            },\n            onSelectPlanClick = {\n                navController.navigateToPlans(navOptions = singleTopNavOptions)\n            },\n            onAddExerciseClick = {\n                navController.navigateToAddEditExercise(navOptions = singleTopNavOptions)\n            },\n            onExploreSessionsClick = {\n                navController.navigateToSessions(navOptions = singleTopNavOptions)\n            },\n            onExploreExercisesClick = {\n                navController.navigateToExercises(navOptions = singleTopNavOptions)\n            },\n            onStartSessionClick = {\n                navController.navigateToSessionDetail(date = null, navOptions = singleTopNavOptions)\n            },\n            onCurrentPlanClick = {\n                navController.navigateToPlanEdit(id = it, navOptions = singleTopNavOptions)\n            },\n        )\n\n        sessions(\n            onSessionClick = { date ->\n                navController.navigateToSessionDetail(\n                    date = date,\n                    navOptions = singleTopNavOptions\n                )\n            },\n            onBackPress = navController::popBackStackOnResume\n        )\n\n        plans(\n            onPlanClick = {\n                navController.navigateToPlanEdit(\n                    id = it,\n                    navOptions = singleTopNavOptions\n                )\n            },\n            onBackPress = navController::popBackStackOnResume\n        )\n\n        settings(navController::popBackStackOnResume)\n\n        profile(\n            onAddExerciseClick = {\n                navController.navigateToAddEditExercise(navOptions = singleTopNavOptions)\n            },\n            onExercisesClick = {\n                navController.navigateToExercises(navOptions = singleTopNavOptions)\n            },\n            onPlanClick = {\n                navController.navigateToPlans(navOptions = singleTopNavOptions)\n            },\n            onSettingsClick = {\n                navController.navigateToSettings(navOptions = singleTopNavOptions)\n            },\n            onBackPress = navController::popBackStackOnResume,\n        )\n\n        exercises(\n            onExerciseClick = { id ->\n                navController.navigateToAddEditExercise(\n                    id = id,\n                    navOptions = singleTopNavOptions\n                )\n            },\n            onCreateClick = { target ->\n                navController.navigateToAddEditExercise(\n                    target = target,\n                    navOptions = singleTopNavOptions\n                )\n            },\n            onBackPress = navController::popBackStackOnResume\n        )\n\n        planEdit(navController::popBackStackOnResume) { name, target ->\n            navController.navigateToAddEditExercise(\n                name = name,\n                target = target,\n                navOptions = singleTopNavOptions,\n            )\n        }\n\n        sessionDetail(\n            onBackPress = navController::popBackStackOnResume,\n            onHistoryClick = navController::navigateToSessionDetail,\n        )\n\n        addEditExercise(navController::popBackStackOnResume)\n\n        performance()\n    }\n}\n\nprivate fun NavHostController.popBackStackOnResume() {\n    if (lifecycleState?.isAtLeast(Lifecycle.State.RESUMED) == true) {\n        popBackStack()\n    }\n}\n\nprivate val NavHostController.lifecycleState: Lifecycle.State?\n    get() = currentBackStackEntry?.lifecycle?.currentState\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/performance/Performance.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.performance\n\nimport androidx.compose.foundation.Canvas\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.safeContentPadding\nimport androidx.compose.material3.CircularProgressIndicator\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.dp\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport com.looker.kenko.ui.performance.components.Plot\nimport com.looker.kenko.ui.performance.components.drawAxes\nimport com.looker.kenko.ui.performance.components.drawGrid\nimport com.looker.kenko.ui.performance.components.mapXY\nimport com.looker.kenko.ui.performance.components.pathFor\nimport com.looker.kenko.ui.performance.components.rememberPlot\nimport com.looker.kenko.ui.theme.KenkoTheme\n\n@Composable\nfun Performance(viewModel: PerformanceViewModel) {\n    val uiState by viewModel.state.collectAsStateWithLifecycle()\n\n    Surface(Modifier.safeContentPadding()) {\n        when (uiState) {\n            is PerformanceUiState.Loading -> {\n                Box(\n                    modifier = Modifier\n                        .fillMaxSize()\n                        .padding(bottom = 80.dp),\n                    contentAlignment = Alignment.Center,\n                ) {\n                    CircularProgressIndicator()\n                }\n            }\n\n            is PerformanceUiState.Success -> {\n                val data = (uiState as PerformanceUiState.Success).data\n                PerformancePlot(\n                    plot = rememberPlot(data.performance.ratings, data.performance.days),\n                    modifier = Modifier\n                        .fillMaxWidth()\n                        .height(300.dp),\n                )\n            }\n\n            is PerformanceStateError -> {\n                val message = when (uiState) {\n                    PerformanceStateError.NoValidPerformance -> \"No performance\"\n                    PerformanceStateError.NotEnoughData -> \"Not enough data\"\n                    else -> error(\"Unknown\")\n                }\n                Box(\n                    modifier = Modifier\n                        .fillMaxSize()\n                        .padding(bottom = 80.dp),\n                    contentAlignment = Alignment.Center,\n                ) {\n                    Text(text = message, color = MaterialTheme.colorScheme.tertiary)\n                }\n            }\n        }\n    }\n}\n\n@Composable\nprivate fun PerformancePlot(\n    plot: Plot,\n    modifier: Modifier = Modifier,\n) {\n    val axesColor = MaterialTheme.colorScheme.outline\n    val gridColor = MaterialTheme.colorScheme.surfaceVariant.copy(0.3F)\n    Canvas(modifier) {\n        val points = plot.mapXY(size)\n        drawGrid(gridColor)\n        drawAxes(axesColor)\n\n        drawPath(\n            path = pathFor(points),\n            color = plot.lineColor,\n            style = plot.style,\n        )\n\n        points.forEach {\n            drawCircle(\n                center = it,\n                color = plot.pointColor,\n                radius = plot.pointRadius,\n            )\n        }\n    }\n}\n\n@Preview\n@Composable\nprivate fun PerformanceSmallPreview() {\n    val ratings = floatArrayOf(8852.628F, 5092.6157F, 7432.0F)\n    val days = intArrayOf(0, 1, 9)\n    KenkoTheme {\n        PerformancePlot(\n            rememberPlot(ratings, days),\n            modifier = Modifier\n                .fillMaxWidth()\n                .height(300.dp)\n                .padding(8.dp),\n        )\n    }\n}\n\n@Preview\n@Composable\nprivate fun PerformancePreview() {\n    val ratings = floatArrayOf(\n        8852.628F,\n        3092.6155F,\n        2661.0654F,\n        11071.365F,\n        5737.648F,\n        4238.7886F,\n        11071.365F\n    )\n    val days = intArrayOf(0, 1, 2, 3, 11, 15, 20)\n    KenkoTheme {\n        PerformancePlot(\n            rememberPlot(ratings, days),\n            modifier = Modifier\n                .fillMaxWidth()\n                .height(300.dp)\n                .padding(8.dp),\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/performance/PerformanceViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.performance\n\nimport androidx.compose.runtime.Stable\nimport androidx.lifecycle.ViewModel\nimport com.looker.kenko.data.model.Plan\nimport com.looker.kenko.data.repository.Performance\nimport com.looker.kenko.data.repository.PerformanceRepo\nimport com.looker.kenko.data.repository.PlanRepo\nimport com.looker.kenko.utils.asStateFlow\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport javax.inject.Inject\nimport kotlinx.coroutines.flow.StateFlow\nimport kotlinx.coroutines.flow.map\nimport kotlinx.coroutines.flow.onStart\n\n@HiltViewModel\nclass PerformanceViewModel @Inject constructor(\n    private val repo: PerformanceRepo,\n    planRepo: PlanRepo,\n) : ViewModel() {\n\n    val currentPlan = planRepo.current\n\n    val state: StateFlow<PerformanceUiState> = currentPlan\n        .map { plan ->\n            if (plan == null) {\n                PerformanceStateError.NoValidPerformance\n            } else {\n                val performance = repo.getPerformance(planId = plan.id)\n                when {\n                    performance == null -> PerformanceStateError.NoValidPerformance\n                    performance.ratings.size < MinDataRequired -> PerformanceStateError.NotEnoughData\n                    else -> PerformanceUiState.Success(\n                        PerformanceUiData(\n                            plan = plan,\n                            performance = performance,\n                        ),\n                    )\n                }\n            }\n        }\n        .onStart { emit(PerformanceUiState.Loading) }\n        .asStateFlow(PerformanceUiState.Loading)\n\n}\n\nprivate const val MinDataRequired = 1\n\nsealed interface PerformanceUiState {\n    object Loading : PerformanceUiState\n    class Success(val data: PerformanceUiData) : PerformanceUiState\n}\n\nsealed interface PerformanceStateError : PerformanceUiState {\n    object NoValidPerformance : PerformanceStateError\n    object NotEnoughData : PerformanceStateError\n}\n\n@Stable\nclass PerformanceUiData(\n    val plan: Plan?,\n    val performance: Performance,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/performance/components/Axes.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.performance.components\n\nimport androidx.compose.ui.geometry.Offset\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.StrokeCap\nimport androidx.compose.ui.graphics.drawscope.DrawScope\n\nfun DrawScope.drawAxes(\n    axesColor: Color,\n    axisStroke: Float = 7F,\n    strokeCap: StrokeCap = StrokeCap.Round,\n) {\n    val axisStrokePadding = axisStroke / 2\n\n    drawLine(\n        color = axesColor,\n        start = Offset(axisStrokePadding, axisStrokePadding),\n        end = Offset(axisStrokePadding, size.height - axisStrokePadding),\n        strokeWidth = axisStroke,\n        cap = strokeCap,\n    )\n\n    drawLine(\n        color = axesColor,\n        start = Offset(axisStrokePadding, size.height - axisStrokePadding),\n        end = Offset(\n            size.width - axisStrokePadding,\n            size.height - axisStrokePadding\n        ),\n        strokeWidth = axisStroke,\n        cap = strokeCap,\n    )\n}"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/performance/components/Grid.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.performance.components\n\nimport androidx.compose.ui.geometry.Offset\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.drawscope.DrawScope\n\nfun DrawScope.drawGrid(\n    gridColor: Color,\n    gridStroke: Float = 2F,\n    verticalGridCount: Int = 4,\n    horizontalGridCount: Int = 3,\n) {\n    if (verticalGridCount > 0) {\n        val dx = size.width / (verticalGridCount + 1)\n        for (i in 1..verticalGridCount) {\n            val x = i * dx\n            drawLine(\n                color = gridColor,\n                start = Offset(x, 0F),\n                end = Offset(x, size.height),\n                strokeWidth = gridStroke,\n            )\n        }\n    }\n\n    if (horizontalGridCount > 0) {\n        val dy = size.height / (horizontalGridCount + 1)\n        for (j in 1..horizontalGridCount) {\n            val y = j * dy\n            drawLine(\n                color = gridColor,\n                start = Offset(0F, y),\n                end = Offset(size.width, y),\n                strokeWidth = gridStroke,\n            )\n        }\n    }\n}"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/performance/components/Plot.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.performance.components\n\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.Immutable\nimport androidx.compose.ui.geometry.Offset\nimport androidx.compose.ui.geometry.Size\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.Path\nimport androidx.compose.ui.graphics.StrokeCap\nimport androidx.compose.ui.graphics.StrokeJoin\nimport androidx.compose.ui.graphics.drawscope.Stroke\nimport androidx.compose.ui.util.fastCoerceAtLeast\nimport com.looker.kenko.utils.moveTo\nimport kotlin.math.sign\n\n@Immutable\nclass Plot(\n    val ratings: FloatArray,\n    val days: IntArray,\n    val pointColor: Color,\n    val pointRadius: Float,\n    val lineColor: Color,\n    val style: Stroke,\n)\n\nfun pathFor(points: Array<Offset>) = Path().apply {\n    if (points.isEmpty()) return@apply\n\n    val slope = FloatArray(points.size)\n\n    moveTo(points[0])\n    // knowingly ignore the last index so the last tangent is horizontal\n    for (i in 0..<points.lastIndex) {\n        val (y, x) = points[i + 1] + points[i]\n        slope[i] = if (x == 0F) Float.POSITIVE_INFINITY * sign(y)\n        else (y / x) * Smoother\n    }\n\n    for (i in 0..<points.lastIndex) {\n        val (x1, y1) = points[i]\n        val (x2, y2) = points[i + 1]\n        val deltaX = x2 - x1\n        cubicTo(\n            x1 = x1 + deltaX / 3f,\n            y1 = y1 + (slope[i] * deltaX) / 3f,\n            x2 = x2 - deltaX / 3f,\n            y2 = y2 - (slope[i + 1] * deltaX) / 3f,\n            x3 = x2, y3 = y2,\n        )\n    }\n}\n\nprivate const val Smoother = 0.3F\n\nprivate const val HorizontalInset = 0.04F\nprivate const val VerticalInset = 0.06F\n\nfun Plot.mapXY(\n    size: Size,\n    horizontalPaddingPercentage: Float = HorizontalInset,\n    verticalPaddingPercentage: Float = VerticalInset,\n): Array<Offset> {\n    val pointCount = ratings.size\n\n    val horizontalInset = size.width * horizontalPaddingPercentage\n    val verticalInset = size.height * verticalPaddingPercentage\n\n    val usableWidth = (size.width - horizontalInset - horizontalInset).fastCoerceAtLeast(0f)\n    val usableHeight = (size.height - verticalInset - verticalInset).fastCoerceAtLeast(0f)\n\n    var minRating = Float.POSITIVE_INFINITY\n    var maxRating = Float.NEGATIVE_INFINITY\n    for (i in 0..<pointCount) {\n        val rating = ratings[i]\n        if (rating < minRating) minRating = rating\n        if (rating > maxRating) maxRating = rating\n    }\n\n    val minDay = days.first()\n    val maxDay = days.last()\n\n    return Array(pointCount) { i ->\n        val rating = ratings[i]\n        val normalized = (rating - minRating) / (maxRating - minRating)\n        val y = verticalInset + (1f - normalized) * usableHeight\n\n        val day = days[i]\n        val normalizedDay = (day - minDay).toFloat() / (maxDay - minDay)\n        val x = horizontalInset + normalizedDay * usableWidth\n        Offset(x, y)\n    }\n}\n\n@Composable\nfun rememberPlot(\n    points: FloatArray,\n    days: IntArray,\n    pointColor: Color = MaterialTheme.colorScheme.primary,\n    pointRadius: Float = 8F,\n    lineColor: Color = MaterialTheme.colorScheme.primaryContainer,\n    style: Stroke = PlotStyle,\n): Plot = Plot(\n    ratings = points,\n    days = days,\n    pointColor = pointColor,\n    pointRadius = pointRadius,\n    lineColor = lineColor,\n    style = style,\n)\n\nprivate val PlotStyle = Stroke(\n    width = 8F,\n    cap = StrokeCap.Round,\n    join = StrokeJoin.Round,\n    miter = 0F\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/performance/navigation/PerformanceNavigation.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.performance.navigation\n\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.navigation.NavController\nimport androidx.navigation.NavGraphBuilder\nimport androidx.navigation.NavOptions\nimport androidx.navigation.compose.composable\nimport com.looker.kenko.ui.performance.Performance\nimport kotlinx.serialization.Serializable\n\n@Serializable\nobject PerformanceRoute\n\nfun NavController.navigateToPerformance(navOptions: NavOptions? = null) {\n    navigate(PerformanceRoute, navOptions)\n}\n\nfun NavGraphBuilder.performance() {\n    composable<PerformanceRoute> {\n        Performance(viewModel = hiltViewModel())\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/planEdit/PlanEdit.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.planEdit\n\nimport androidx.activity.compose.BackHandler\nimport androidx.compose.animation.AnimatedContent\nimport androidx.compose.animation.SizeTransform\nimport androidx.compose.animation.fadeIn\nimport androidx.compose.animation.fadeOut\nimport androidx.compose.animation.slideInHorizontally\nimport androidx.compose.animation.slideInVertically\nimport androidx.compose.animation.slideOutHorizontally\nimport androidx.compose.animation.slideOutVertically\nimport androidx.compose.animation.togetherWith\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.foundation.lazy.itemsIndexed\nimport androidx.compose.foundation.text.input.TextFieldState\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.FabPosition\nimport androidx.compose.material3.FilledTonalIconButton\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.IconButton\nimport androidx.compose.material3.IconButtonDefaults\nimport androidx.compose.material3.LocalTextStyle\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.ModalBottomSheet\nimport androidx.compose.material3.Scaffold\nimport androidx.compose.material3.SnackbarHost\nimport androidx.compose.material3.SnackbarHostState\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TopAppBar\nimport androidx.compose.material3.rememberModalBottomSheetState\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.derivedStateOf\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.rememberCoroutineScope\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.platform.LocalFocusManager\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.tooling.preview.PreviewParameter\nimport androidx.compose.ui.unit.dp\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport com.looker.kenko.BuildConfig\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.ExercisesPreviewParameter\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.ui.components.BackButton\nimport com.looker.kenko.ui.components.DaySelectorChip\nimport com.looker.kenko.ui.components.ErrorSnackbar\nimport com.looker.kenko.ui.components.HorizontalDaySelector\nimport com.looker.kenko.ui.components.KenkoButton\nimport com.looker.kenko.ui.extensions.normalizeInt\nimport com.looker.kenko.ui.extensions.plus\nimport com.looker.kenko.ui.planEdit.components.DaySwitcher\nimport com.looker.kenko.ui.planEdit.components.ExerciseItem\nimport com.looker.kenko.ui.planEdit.components.kenkoDayName\nimport com.looker.kenko.ui.selectExercise.SelectExercise\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport com.looker.kenko.ui.theme.numbers\nimport com.looker.kenko.utils.minus\nimport com.looker.kenko.utils.plus\nimport kotlinx.coroutines.launch\nimport kotlinx.datetime.DayOfWeek\n\n@Composable\nfun PlanEdit(\n    viewModel: PlanEditViewModel,\n    onBackPress: () -> Unit,\n    onAddNewExerciseClick: (name: String?, target: MuscleGroups?) -> Unit,\n) {\n    val pageStage by viewModel.pageState.collectAsStateWithLifecycle()\n    val state by viewModel.state.collectAsStateWithLifecycle()\n    BackHandler {\n        viewModel.onBackPress(pageStage, onBackPress)\n    }\n    FullEdit(\n        snackbarHostState = viewModel.snackbarState,\n        stage = pageStage,\n        fab = {\n            PlanEditFAB(\n                pageStage = pageStage,\n                onClick = {\n                    if (pageStage == PlanEditStage.NameEdit) {\n                        viewModel.saveName()\n                    } else {\n                        viewModel.openSheet()\n                    }\n                },\n            )\n        },\n        onBackPress = { viewModel.onBackPress(pageStage, onBackPress) },\n        onDebugMockClick = viewModel::debugFillMockData,\n    ) { stage ->\n        when (stage) {\n            PlanEditStage.NameEdit -> {\n                val isNameAlreadyUsed by viewModel.isNameAlreadyUsed.collectAsStateWithLifecycle()\n                NameEdit(\n                    state = viewModel.planNameState,\n                    isNameAlreadyUsed = isNameAlreadyUsed,\n                    onSaveClick = viewModel::saveName,\n                )\n            }\n\n            PlanEditStage.PlanEdit -> {\n                PlanEdit(\n                    state = state,\n                    onSelectDay = viewModel::setCurrentDay,\n                    onRemoveExerciseClick = viewModel::removeExercise,\n                    onFullDaySelection = viewModel::openFullDaySelection,\n                )\n            }\n        }\n    }\n\n    if (state.exerciseSheetVisible) {\n        AddExerciseSheet(\n            onDismiss = viewModel::closeSheet,\n            onDone = viewModel::addExercise,\n            onAddNewExerciseClick = onAddNewExerciseClick,\n        )\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun FullEdit(\n    snackbarHostState: SnackbarHostState,\n    stage: PlanEditStage,\n    fab: @Composable () -> Unit,\n    onBackPress: () -> Unit,\n    onDebugMockClick: (() -> Unit)? = null,\n    ui: @Composable (stage: PlanEditStage) -> Unit,\n) {\n    Scaffold(\n        floatingActionButton = fab,\n        snackbarHost = {\n            SnackbarHost(hostState = snackbarHostState) {\n                ErrorSnackbar(data = it)\n            }\n        },\n        floatingActionButtonPosition = FabPosition.Center,\n        topBar = {\n            TopAppBar(\n                title = {},\n                navigationIcon = { BackButton(onBackPress) },\n                actions = {\n                    if (BuildConfig.DEBUG && stage == PlanEditStage.PlanEdit) {\n                        IconButton(onClick = { onDebugMockClick?.invoke() }) {\n                            Icon(painter = KenkoIcons.Add, contentDescription = \"Mock data\")\n                        }\n                    }\n                },\n            )\n        },\n    ) { innerPadding ->\n        AnimatedContent(\n            modifier = Modifier.padding(innerPadding + PaddingValues(horizontal = 16.dp)),\n            targetState = stage,\n            label = \"Plan edit stage\",\n            transitionSpec = {\n                when (targetState) {\n                    PlanEditStage.NameEdit -> {\n                        slideInHorizontally { -it / 2 } + fadeIn() togetherWith\n                                slideOutHorizontally { it / 2 } + fadeOut()\n                    }\n\n                    PlanEditStage.PlanEdit -> {\n                        slideInHorizontally { it / 2 } + fadeIn() togetherWith\n                                slideOutHorizontally { -it / 2 } + fadeOut()\n                    }\n                } using SizeTransform(clip = false)\n            },\n        ) {\n            ui(it)\n        }\n    }\n}\n\n@Composable\nprivate fun PlanEditFAB(\n    pageStage: PlanEditStage,\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    KenkoButton(\n        modifier = modifier,\n        onClick = onClick,\n        label = {\n            AnimatedContent(\n                targetState = pageStage,\n                label = \"FAB label\",\n                transitionSpec = {\n                    when (targetState) {\n                        PlanEditStage.NameEdit -> {\n                            slideInVertically { it } + fadeIn() togetherWith\n                                    slideOutVertically { -it } + fadeOut()\n                        }\n\n                        PlanEditStage.PlanEdit -> {\n                            slideInVertically { -it } + fadeIn() togetherWith\n                                    slideOutVertically { it } + fadeOut()\n                        }\n                    } using SizeTransform(clip = false)\n                },\n            ) {\n                if (it == PlanEditStage.NameEdit) {\n                    Text(stringResource(R.string.label_next))\n                } else {\n                    Text(stringResource(R.string.label_add))\n                }\n            }\n        },\n        icon = {\n            AnimatedContent(\n                targetState = pageStage,\n                label = \"FAB icon\",\n                transitionSpec = {\n                    when (targetState) {\n                        PlanEditStage.NameEdit -> {\n                            slideInHorizontally { it * 2 } + fadeIn() togetherWith\n                                    slideOutHorizontally { -it * 2 } + fadeOut()\n                        }\n\n                        PlanEditStage.PlanEdit -> {\n                            slideInHorizontally { -it * 2 } + fadeIn() togetherWith\n                                    slideOutHorizontally { it * 2 } + fadeOut()\n                        }\n                    } using SizeTransform(clip = false)\n                },\n            ) {\n                if (it == PlanEditStage.NameEdit) {\n                    Icon(\n                        painter = KenkoIcons.ArrowForward,\n                        contentDescription = stringResource(R.string.label_next),\n                    )\n                } else {\n                    Icon(\n                        painter = KenkoIcons.Add,\n                        contentDescription = stringResource(R.string.label_add),\n                    )\n                }\n            }\n        },\n    )\n}\n\n@Composable\nprivate fun NameEdit(\n    state: TextFieldState,\n    isNameAlreadyUsed: Boolean,\n    onSaveClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    PlanName(\n        planName = state,\n        error = isNameAlreadyUsed,\n        onNext = { onSaveClick() },\n        modifier = modifier.fillMaxSize(),\n    )\n}\n\n@Composable\nprivate fun PlanEdit(\n    state: PlanEditState,\n    onSelectDay: (DayOfWeek) -> Unit,\n    onRemoveExerciseClick: (Exercise) -> Unit,\n    onFullDaySelection: () -> Unit,\n) {\n    val focusManager = LocalFocusManager.current\n    val isCurrentDayBlank by remember(state.exercises) { derivedStateOf { state.exercises.isEmpty() } }\n    PlanExercise(\n        modifier = Modifier.fillMaxSize(),\n        header = {\n            Header(\n                isExpandedView = state.selectionMode,\n                daySelector = {\n                    HorizontalDaySelector(\n                        item = { dayOfWeek ->\n                            DaySelectorChip(\n                                selected = dayOfWeek == state.currentDay,\n                                onClick = { onSelectDay(dayOfWeek) },\n                            ) {\n                                Text(kenkoDayName(dayOfWeek))\n                            }\n                        },\n                    )\n                },\n                daySwitcher = {\n                    DaySwitcher(\n                        selected = state.currentDay,\n                        onNext = { onSelectDay(state.currentDay + 1) },\n                        onPrevious = { onSelectDay(state.currentDay - 1) },\n                        onClick = onFullDaySelection,\n                    )\n                },\n            )\n        },\n        items = {\n            if (isCurrentDayBlank) {\n                item {\n                    Box(\n                        modifier = Modifier.fillMaxSize(),\n                        contentAlignment = Alignment.Center,\n                    ) {\n                        Text(\n                            text = stringResource(R.string.no_exercises_yet),\n                            style = MaterialTheme.typography.titleLarge,\n                            color = MaterialTheme.colorScheme.error,\n                        )\n                    }\n                }\n            } else {\n                itemsIndexed(state.exercises) { index, exercise ->\n                    ExerciseItem(\n                        modifier = Modifier.animateItem(),\n                        exercise = exercise,\n                    ) {\n                        ExerciseItemActions(\n                            index = index,\n                            onRemove = {\n                                focusManager.clearFocus()\n                                onRemoveExerciseClick(exercise)\n                            },\n                        )\n                    }\n                }\n            }\n        },\n    )\n}\n\n@Composable\nprivate fun ExerciseItemActions(\n    index: Int,\n    onRemove: () -> Unit,\n) {\n    Row(\n        verticalAlignment = Alignment.CenterVertically,\n    ) {\n        FilledTonalIconButton(\n            onClick = onRemove,\n            colors = IconButtonDefaults.filledTonalIconButtonColors(\n                containerColor = MaterialTheme.colorScheme.errorContainer,\n            ),\n        ) {\n            Icon(painter = KenkoIcons.Remove, contentDescription = null)\n        }\n        Spacer(modifier = Modifier.width(12.dp))\n        Text(\n            text = normalizeInt(index + 1),\n            style = LocalTextStyle.current.numbers(),\n        )\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun AddExerciseSheet(\n    onDismiss: () -> Unit,\n    onDone: (Exercise) -> Unit,\n    onAddNewExerciseClick: (name: String?, target: MuscleGroups?) -> Unit,\n) {\n    val scope = rememberCoroutineScope()\n    val state = rememberModalBottomSheetState(skipPartiallyExpanded = true)\n    ModalBottomSheet(sheetState = state, onDismissRequest = onDismiss) {\n        SelectExercise(\n            onRequestNewExercise = onAddNewExerciseClick,\n            onDone = { exercise ->\n                scope.launch {\n                    onDone(exercise)\n                    state.hide()\n                }.invokeOnCompletion {\n                    if (!state.isVisible) onDismiss()\n                }\n            },\n        )\n    }\n}\n\n@Preview\n@Composable\nprivate fun ExerciseItemPreview(\n    @PreviewParameter(ExercisesPreviewParameter::class, limit = 2) exercises: List<Exercise>,\n) {\n    KenkoTheme {\n        ExerciseItem(exercise = exercises.first()) {\n            ExerciseItemActions(index = 1) {\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/planEdit/PlanEditViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.planEdit\n\nimport androidx.compose.foundation.text.input.TextFieldState\nimport androidx.compose.material3.SnackbarHostState\nimport androidx.compose.runtime.Stable\nimport androidx.compose.runtime.snapshotFlow\nimport androidx.lifecycle.SavedStateHandle\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport androidx.navigation.toRoute\nimport com.looker.kenko.R\nimport com.looker.kenko.data.StringHandler\nimport com.looker.kenko.data.local.model.SetType\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.PlanItem\nimport com.looker.kenko.data.model.RepsInReserve\nimport com.looker.kenko.data.model.localDate\nimport com.looker.kenko.data.repository.PlanRepo\nimport com.looker.kenko.ui.planEdit.navigation.PlanEditRoute\nimport com.looker.kenko.utils.asStateFlow\nimport com.looker.kenko.utils.nextLocalDateTime\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport javax.inject.Inject\nimport kotlin.concurrent.atomics.AtomicInt\nimport kotlin.concurrent.atomics.ExperimentalAtomicApi\nimport kotlin.concurrent.atomics.incrementAndFetch\nimport kotlin.random.Random\nimport kotlin.time.Clock\nimport kotlin.time.Duration.Companion.days\nimport kotlin.time.Duration.Companion.milliseconds\nimport kotlinx.coroutines.ExperimentalCoroutinesApi\nimport kotlinx.coroutines.FlowPreview\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.StateFlow\nimport kotlinx.coroutines.flow.combine\nimport kotlinx.coroutines.flow.debounce\nimport kotlinx.coroutines.flow.flatMapLatest\nimport kotlinx.coroutines.flow.map\nimport kotlinx.coroutines.launch\nimport kotlinx.datetime.DayOfWeek\n\n@HiltViewModel\nclass PlanEditViewModel @Inject constructor(\n    private val repo: PlanRepo,\n    private val stringHandler: StringHandler,\n    private val sessionRepo: com.looker.kenko.data.repository.SessionRepo,\n    savedStateHandle: SavedStateHandle,\n) : ViewModel() {\n\n    private val routeData: PlanEditRoute = savedStateHandle.toRoute()\n\n    private val _planId: Int = routeData.id\n\n    // if null show name edit else plan edit\n    private val planIdStream = MutableStateFlow(_planId)\n\n    val planNameState: TextFieldState = TextFieldState(\"\")\n\n    val snackbarState = SnackbarHostState()\n\n    private val _isBackAlreadyPressedOnce = MutableStateFlow(false)\n\n    @OptIn(ExperimentalCoroutinesApi::class)\n    private val _planItemsStream = planIdStream.flatMapLatest { repo.planItems(it) }\n\n    private val _dayOfWeek: MutableStateFlow<DayOfWeek> = MutableStateFlow(localDate.dayOfWeek)\n\n    private val _isSheetVisible: MutableStateFlow<Boolean> = MutableStateFlow(false)\n\n    private val _fullDaySelection: MutableStateFlow<Boolean> = MutableStateFlow(false)\n\n    @OptIn(FlowPreview::class)\n    val isNameAlreadyUsed = snapshotFlow { planNameState.text.trim().toString() }\n        .debounce(200.milliseconds)\n        .map { repo.planNameExists(it) }\n        .asStateFlow(false)\n\n    val pageState: StateFlow<PlanEditStage> = planIdStream.map { id ->\n        if (id == -1) PlanEditStage.NameEdit else PlanEditStage.PlanEdit\n    }.asStateFlow(PlanEditStage.NameEdit)\n\n    val state: StateFlow<PlanEditState> = combine(\n        _planItemsStream,\n        _dayOfWeek,\n        _fullDaySelection,\n        _isSheetVisible,\n    ) { items, day, daySelection, sheetVisible ->\n        PlanEditState(\n            currentDay = day,\n            selectionMode = daySelection,\n            exerciseSheetVisible = sheetVisible,\n            exercises = items.filter { it.dayOfWeek == day }.map(PlanItem::exercise),\n        )\n    }.asStateFlow(\n        PlanEditState(\n            currentDay = localDate.dayOfWeek,\n            selectionMode = false,\n            exerciseSheetVisible = false,\n            exercises = emptyList(),\n        ),\n    )\n\n    fun saveName() {\n        viewModelScope.launch {\n            if (planNameState.text.isBlank()) {\n                snackbarState.showSnackbar(stringHandler.getString(R.string.error_plan_name_empty))\n                return@launch\n            }\n            if (isNameAlreadyUsed.value) {\n                snackbarState.showSnackbar(stringHandler.getString(R.string.error_plan_name_exists))\n                return@launch\n            }\n            val createId = repo.createPlan(planNameState.text.toString())\n            planIdStream.emit(createId)\n        }\n    }\n\n    fun setCurrentDay(dayOfWeek: DayOfWeek) {\n        viewModelScope.launch {\n            _dayOfWeek.emit(dayOfWeek)\n            if (_fullDaySelection.value) {\n                _fullDaySelection.emit(false)\n            }\n        }\n    }\n\n    fun openFullDaySelection() {\n        viewModelScope.launch {\n            _fullDaySelection.emit(true)\n        }\n    }\n\n    fun openSheet() {\n        viewModelScope.launch {\n            _isSheetVisible.emit(true)\n        }\n    }\n\n    fun closeSheet() {\n        viewModelScope.launch {\n            _isSheetVisible.emit(false)\n        }\n    }\n\n    fun addExercise(exercise: Exercise) {\n        viewModelScope.launch {\n            repo.addItem(\n                PlanItem(\n                    dayOfWeek = _dayOfWeek.value,\n                    exercise = exercise,\n                    planId = planIdStream.value,\n                ),\n            )\n        }\n    }\n\n    fun removeExercise(exercise: Exercise) {\n        viewModelScope.launch {\n            repo.removeItemById(exercise.id!!)\n        }\n    }\n\n    fun onBackPress(stage: PlanEditStage, onBackPress: () -> Unit) {\n        viewModelScope.launch {\n            if (stage == PlanEditStage.NameEdit) {\n                onBackPress()\n                return@launch\n            }\n            if (_isBackAlreadyPressedOnce.value) {\n                repo.deletePlan(planIdStream.value)\n                onBackPress()\n                return@launch\n            }\n            if (repo.getPlanItems(planIdStream.value).isEmpty()) {\n                _isBackAlreadyPressedOnce.emit(true)\n                snackbarState.showSnackbar(stringHandler.getString(R.string.error_plan_empty_prompt))\n                return@launch\n            }\n            onBackPress()\n        }\n    }\n\n    @OptIn(ExperimentalAtomicApi::class)\n    fun debugFillMockData(sessions: Int = 9) {\n        viewModelScope.launch {\n            val now = Clock.System.now()\n            val rand = Random.Default\n            val added = AtomicInt(0)\n            val planId = planIdStream.value\n            var sessionsAdded = 0\n            while (sessionsAdded < sessions) {\n                val date = rand.nextLocalDateTime(now - (sessions * 2).days, now).date\n\n                val items = repo.getPlanItems(planId, date.dayOfWeek).ifEmpty { continue }\n                sessionsAdded++\n\n                val sessionId = sessionRepo.getSessionIdOrCreate(date)\n                for (item in items) {\n                    val exerciseId = item.exercise.id ?: continue\n                    val setsCount = rand.nextInt(1, 4)\n                    repeat(setsCount) {\n                        val weight = rand.nextInt(10, 80) + rand.nextFloat()\n                        val reps = rand.nextInt(5, 15)\n                        sessionRepo.addSet(\n                            sessionId = sessionId,\n                            exerciseId = exerciseId,\n                            weight = weight,\n                            reps = reps,\n                            setType = SetType.entries.random(),\n                            rir = RepsInReserve(2),\n                        )\n                        added.incrementAndFetch()\n                    }\n                }\n            }\n            snackbarState.showSnackbar(\"Mock data added: ${added.load()} sets\")\n        }\n    }\n}\n\n@Stable\nenum class PlanEditStage {\n    NameEdit,\n    PlanEdit,\n}\n\n@Stable\ndata class PlanEditState(\n    val currentDay: DayOfWeek,\n    val selectionMode: Boolean,\n    val exerciseSheetVisible: Boolean,\n    val exercises: List<Exercise>,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/planEdit/PlanExercise.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.planEdit\n\nimport androidx.compose.animation.AnimatedContent\nimport androidx.compose.animation.SizeTransform\nimport androidx.compose.animation.fadeIn\nimport androidx.compose.animation.fadeOut\nimport androidx.compose.animation.slideInVertically\nimport androidx.compose.animation.slideOutVertically\nimport androidx.compose.animation.togetherWith\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.lazy.LazyColumn\nimport androidx.compose.foundation.lazy.LazyListScope\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.R\n\n@Composable\nfun PlanExercise(\n    header: @Composable () -> Unit,\n    items: LazyListScope.() -> Unit,\n    modifier: Modifier = Modifier,\n    contentPadding: PaddingValues = PaddingValues(0.dp),\n) {\n    LazyColumn(\n        modifier = modifier,\n        contentPadding = contentPadding,\n    ) {\n        stickyHeader {\n            header()\n        }\n        items()\n    }\n}\n\n@Composable\nfun Header(\n    isExpandedView: Boolean,\n    modifier: Modifier = Modifier,\n    daySelector: @Composable () -> Unit,\n    daySwitcher: @Composable () -> Unit,\n) {\n    Column {\n        Text(\n            text = stringResource(R.string.heading_select_plan_items),\n            style = MaterialTheme.typography.displayMedium,\n            color = MaterialTheme.colorScheme.secondary,\n        )\n        Spacer(Modifier.height(8.dp))\n        AnimatedContent(\n            modifier = modifier.background(MaterialTheme.colorScheme.surface),\n            targetState = isExpandedView,\n            label = \"Header\",\n            transitionSpec = {\n                if (targetState) {\n                    slideInVertically { it / 3 } + fadeIn() togetherWith slideOutVertically { -it / 3 } + fadeOut()\n                } else {\n                    slideInVertically { -it / 3 } + fadeIn() togetherWith slideOutVertically { it / 3 } + fadeOut()\n                } using SizeTransform(clip = false)\n            },\n            contentAlignment = Alignment.Center,\n        ) { expanded ->\n            if (expanded) {\n                daySelector()\n            } else {\n                daySwitcher()\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/planEdit/PlanName.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.planEdit\n\nimport androidx.compose.animation.animateColorAsState\nimport androidx.compose.animation.animateContentSize\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.text.BasicTextField\nimport androidx.compose.foundation.text.KeyboardOptions\nimport androidx.compose.foundation.text.input.KeyboardActionHandler\nimport androidx.compose.foundation.text.input.TextFieldState\nimport androidx.compose.material3.HorizontalDivider\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.LocalContentColor\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.ProvideTextStyle\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.CompositionLocalProvider\nimport androidx.compose.runtime.getValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.SolidColor\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.input.ImeAction\nimport androidx.compose.ui.text.input.KeyboardCapitalization\nimport androidx.compose.ui.text.style.LineBreak\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.R\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\n\n@Composable\nfun PlanName(\n    planName: TextFieldState,\n    onNext: KeyboardActionHandler,\n    modifier: Modifier = Modifier,\n    error: Boolean = false,\n) {\n    Column(\n        modifier = modifier,\n        horizontalAlignment = Alignment.Start,\n        verticalArrangement = Arrangement.spacedBy(16.dp),\n    ) {\n        Text(\n            text = stringResource(R.string.heading_select_plan_name),\n            style = MaterialTheme.typography.displayMedium,\n            color = MaterialTheme.colorScheme.secondary,\n        )\n        PlanNameField(state = planName, onNext = onNext)\n        val contentColor by animateColorAsState(\n            targetValue = if (error) {\n                MaterialTheme.colorScheme.error\n            } else {\n                MaterialTheme.colorScheme.outline\n            },\n        )\n        CompositionLocalProvider(LocalContentColor provides contentColor) {\n            PlanNameSuggestion {\n                if (error) {\n                    Text(text = stringResource(R.string.error_plan_name_exists))\n                } else {\n                    Text(text = stringResource(R.string.desc_select_plan_name))\n                }\n            }\n        }\n    }\n}\n\n@Composable\nprivate fun PlanNameSuggestion(\n    modifier: Modifier = Modifier,\n    content: @Composable () -> Unit,\n) {\n    Row(\n        modifier = modifier.animateContentSize(),\n        horizontalArrangement = Arrangement.spacedBy(8.dp),\n        verticalAlignment = Alignment.Top,\n    ) {\n        Icon(\n            painter = KenkoIcons.Info,\n            contentDescription = null,\n        )\n        ProvideTextStyle(\n            value = MaterialTheme.typography.labelLarge.copy(lineBreak = LineBreak.Paragraph),\n            content = content,\n        )\n    }\n}\n\n@Composable\nprivate fun PlanNameField(\n    state: TextFieldState,\n    onNext: KeyboardActionHandler,\n    modifier: Modifier = Modifier,\n) {\n    BasicTextField(\n        state = state,\n        modifier = modifier,\n        textStyle = MaterialTheme.typography.titleLarge\n            .merge(color = LocalContentColor.current),\n        cursorBrush = SolidColor(LocalContentColor.current),\n        keyboardOptions = KeyboardOptions(\n            capitalization = KeyboardCapitalization.Words,\n            imeAction = ImeAction.Next,\n        ),\n        onKeyboardAction = onNext,\n        decorator = {\n            Column(\n                modifier = Modifier.padding(horizontal = 8.dp),\n            ) {\n                it()\n                HorizontalDivider()\n            }\n        },\n    )\n}\n\n@Preview\n@Composable\nprivate fun FieldPreview() {\n    KenkoTheme {\n        PlanName(\n            planName = TextFieldState(\"Winter Arc\"),\n            error = false,\n            onNext = {},\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/planEdit/components/DaySwitcher.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.planEdit.components\n\nimport androidx.compose.animation.AnimatedContent\nimport androidx.compose.animation.ContentTransform\nimport androidx.compose.animation.SizeTransform\nimport androidx.compose.animation.fadeIn\nimport androidx.compose.animation.fadeOut\nimport androidx.compose.animation.slideInHorizontally\nimport androidx.compose.animation.slideOutHorizontally\nimport androidx.compose.animation.togetherWith\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.clickable\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.foundation.layout.widthIn\nimport androidx.compose.material3.Button\nimport androidx.compose.material3.ButtonDefaults\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.draw.clip\nimport androidx.compose.ui.res.stringArrayResource\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.R\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport com.looker.kenko.utils.minus\nimport com.looker.kenko.utils.plus\nimport kotlinx.datetime.DayOfWeek\nimport kotlinx.datetime.DayOfWeek.MONDAY\nimport kotlinx.datetime.DayOfWeek.SUNDAY\nimport kotlinx.datetime.DayOfWeek.THURSDAY\n\n@Composable\nfun DaySwitcher(\n    selected: DayOfWeek,\n    onNext: () -> Unit,\n    onPrevious: () -> Unit,\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Row(\n        modifier = modifier.widthIn(max = 400.dp),\n        horizontalArrangement = Arrangement.Center,\n    ) {\n        val buttonColors = ButtonDefaults.buttonColors(\n            containerColor = MaterialTheme.colorScheme.surfaceVariant,\n            contentColor = MaterialTheme.colorScheme.onSurfaceVariant,\n        )\n        Button(\n            modifier = Modifier.height(56.dp),\n            colors = buttonColors,\n            onClick = onPrevious,\n        ) {\n            Icon(\n                painter = KenkoIcons.KeyboardArrowLeft,\n                contentDescription = null,\n            )\n        }\n        Spacer(modifier = Modifier.width(6.dp))\n        Box(\n            modifier = Modifier\n                .height(56.dp)\n                .weight(1F)\n                .clip(MaterialTheme.shapes.large)\n                .background(MaterialTheme.colorScheme.secondaryContainer)\n                .clickable(onClick = onClick),\n            contentAlignment = Alignment.Center,\n            content = {\n                AnimatedContent(\n                    targetState = selected,\n                    label = \"\",\n                    transitionSpec = {\n                        fadeAndSlideHorizontally(\n                            (initialState == SUNDAY && targetState == MONDAY) ||\n                                    (targetState > initialState && !(initialState == MONDAY && targetState == SUNDAY)),\n                        ) using SizeTransform(clip = false)\n                    },\n                ) { day ->\n                    Text(\n                        text = kenkoDayName(dayOfWeek = day),\n                        style = MaterialTheme.typography.labelLarge,\n                    )\n                }\n            },\n        )\n        Spacer(modifier = Modifier.width(6.dp))\n        Button(\n            modifier = Modifier.height(56.dp),\n            colors = buttonColors,\n            onClick = onNext,\n        ) {\n            Icon(\n                painter = KenkoIcons.KeyboardArrowRight,\n                contentDescription = null,\n            )\n        }\n    }\n}\n\nfun fadeAndSlideHorizontally(rightToLeft: Boolean = true): ContentTransform {\n    return slideInHorizontally { it * if (rightToLeft) 1 else -1 } + fadeIn() togetherWith\n            slideOutHorizontally { -it * if (rightToLeft) 1 else -1 } + fadeOut()\n}\n\n@Composable\nfun kenkoDayName(dayOfWeek: DayOfWeek): String {\n    val kenkoNames = stringArrayResource(R.array.kenko_day_of_week)\n    return remember(dayOfWeek) { kenkoNames[dayOfWeek.ordinal] }\n}\n\n@Composable\nfun dayName(dayOfWeek: DayOfWeek): String {\n    val names = stringArrayResource(R.array.day_of_week)\n    return remember(dayOfWeek) { names[dayOfWeek.ordinal] }\n}\n\n@Preview\n@Composable\nprivate fun DaySelectorPreview() {\n    KenkoTheme {\n        var isSelected by remember {\n            mutableStateOf(THURSDAY)\n        }\n        DaySwitcher(\n            onNext = {\n                isSelected += 1\n            },\n            onPrevious = {\n                isSelected -= 1\n            },\n            onClick = {\n            },\n            selected = isSelected,\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/planEdit/components/ExerciseItem.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.planEdit.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.heightIn\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.material3.Button\nimport androidx.compose.material3.ButtonDefaults\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.LocalContentColor\nimport androidx.compose.material3.LocalTextStyle\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.CompositionLocalProvider\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.tooling.preview.PreviewLightDark\nimport androidx.compose.ui.tooling.preview.PreviewParameter\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.ExercisesPreviewParameter\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\n\n@Composable\nfun ExerciseItem(\n    exercise: Exercise,\n    modifier: Modifier = Modifier,\n    onClick: () -> Unit = {},\n    content: @Composable () -> Unit = {},\n) {\n    Surface(\n        modifier = modifier,\n        color = Color.Transparent,\n        onClick = onClick,\n        shape = MaterialTheme.shapes.large,\n    ) {\n        Row(\n            modifier = Modifier\n                .fillMaxWidth()\n                .heightIn(24.dp)\n                .padding(horizontal = 16.dp, vertical = 8.dp),\n            verticalAlignment = Alignment.CenterVertically,\n            horizontalArrangement = Arrangement.SpaceBetween,\n        ) {\n            Column(\n                modifier = Modifier.weight(1f),\n                verticalArrangement = Arrangement.SpaceAround,\n            ) {\n                Text(\n                    text = exercise.name,\n                    maxLines = 2,\n                    style = MaterialTheme.typography.titleMedium,\n                    color = MaterialTheme.colorScheme.onSurface,\n                )\n                Text(\n                    text = stringResource(exercise.target.stringRes),\n                    style = MaterialTheme.typography.bodySmall,\n                    color = MaterialTheme.colorScheme.outline,\n                )\n            }\n            CompositionLocalProvider(\n                LocalTextStyle provides MaterialTheme.typography.headlineSmall,\n                LocalContentColor provides MaterialTheme.colorScheme.primary,\n                content = content,\n            )\n        }\n    }\n}\n\n@Composable\nfun KenkoAddButton(onClick: () -> Unit) {\n    Button(\n        onClick = onClick,\n        contentPadding = PaddingValues(\n            top = 20.dp,\n            bottom = 20.dp,\n            start = 32.dp,\n            end = 40.dp,\n        ),\n        colors = ButtonDefaults.buttonColors(\n            containerColor = MaterialTheme.colorScheme.primaryContainer,\n            contentColor = MaterialTheme.colorScheme.onPrimaryContainer,\n        ),\n    ) {\n        Icon(painter = KenkoIcons.Add, contentDescription = null)\n        Spacer(modifier = Modifier.width(8.dp))\n        Text(text = stringResource(R.string.label_add))\n    }\n}\n\n@Preview(showBackground = true)\n@Composable\nprivate fun ExerciseItemPreview(\n    @PreviewParameter(ExercisesPreviewParameter::class, limit = 2) exercises: List<Exercise>,\n) {\n    KenkoTheme {\n        ExerciseItem(exercise = exercises.first()) {\n            Text(text = \"01\")\n        }\n    }\n}\n\n@PreviewLightDark\n@Composable\nprivate fun ExerciseButtonPreview() {\n    KenkoTheme {\n        KenkoAddButton {\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/planEdit/navigation/PlanEditNavigation.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.planEdit.navigation\n\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.navigation.NavController\nimport androidx.navigation.NavGraphBuilder\nimport androidx.navigation.NavOptions\nimport androidx.navigation.compose.composable\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.ui.planEdit.PlanEdit\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class PlanEditRoute(\n    val id: Int,\n)\n\nfun NavController.navigateToPlanEdit(id: Int = -1, navOptions: NavOptions? = null) {\n    navigate(PlanEditRoute(id), navOptions)\n}\n\nfun NavGraphBuilder.planEdit(\n    onBackPress: () -> Unit,\n    onAddNewExerciseClick: (name: String?, target: MuscleGroups?) -> Unit,\n) {\n    composable<PlanEditRoute> {\n        PlanEdit(\n            onBackPress = onBackPress,\n            onAddNewExerciseClick = onAddNewExerciseClick,\n            viewModel = hiltViewModel()\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/plans/Plan.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.plans\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.lazy.LazyColumn\nimport androidx.compose.foundation.lazy.items\nimport androidx.compose.material3.AlertDialog\nimport androidx.compose.material3.Button\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.FabPosition\nimport androidx.compose.material3.HorizontalDivider\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.IconButton\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Scaffold\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TextButton\nimport androidx.compose.material3.TopAppBar\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.tooling.preview.PreviewParameter\nimport androidx.compose.ui.unit.dp\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.Plan\nimport com.looker.kenko.data.model.PlanPreviewParameters\nimport com.looker.kenko.ui.components.BackButton\nimport com.looker.kenko.ui.components.KenkoBorderWidth\nimport com.looker.kenko.ui.components.SwipeToDeleteBox\nimport com.looker.kenko.ui.components.endItem\nimport com.looker.kenko.ui.planEdit.components.KenkoAddButton\nimport com.looker.kenko.ui.plans.components.PlanItem\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\n\n@Composable\nfun Plan(\n    viewModel: PlanViewModel,\n    onBackPress: () -> Unit,\n    onPlanClick: (Int) -> Unit,\n) {\n    var showHelpDialog by remember { mutableStateOf(false) }\n    val plans: List<Plan> by viewModel.plans.collectAsStateWithLifecycle()\n\n    Plan(\n        plans = plans,\n        onBackPress = onBackPress,\n        onInfoClick = { showHelpDialog = true },\n        onSelectPlan = viewModel::switchPlan,\n        onRemove = viewModel::removePlan,\n        onPlanClick = onPlanClick,\n    )\n\n    if (showHelpDialog) {\n        AlertDialog(\n            onDismissRequest = { showHelpDialog = false },\n            title = { Text(text = stringResource(R.string.label_clean_up)) },\n            text = { Text(text = stringResource(R.string.label_clean_up_plans)) },\n            confirmButton = {\n                Button(\n                    onClick = {\n                        viewModel.cleanupPlans { showHelpDialog = false }\n                    },\n                ) {\n                    Text(text = stringResource(R.string.label_yes))\n                }\n            },\n            dismissButton = {\n                TextButton(onClick = { showHelpDialog = false }) {\n                    Text(text = stringResource(R.string.label_no))\n                }\n            }\n        )\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun Plan(\n    plans: List<Plan>,\n    onBackPress: () -> Unit,\n    onInfoClick: () -> Unit,\n    onSelectPlan: (Plan) -> Unit,\n    onRemove: (Int) -> Unit,\n    onPlanClick: (Int) -> Unit,\n) {\n    Scaffold(\n        topBar = {\n            TopAppBar(\n                navigationIcon = { BackButton(onClick = onBackPress) },\n                title = { Text(text = stringResource(R.string.label_plans_title)) },\n                actions = {\n                    IconButton(onClick = onInfoClick) {\n                        Icon(\n                            painter = KenkoIcons.Info,\n                            contentDescription = \"Info\"\n                        )\n                    }\n                }\n            )\n        },\n        floatingActionButtonPosition = FabPosition.Center,\n        floatingActionButton = { KenkoAddButton(onClick = { onPlanClick(-1) }) },\n        containerColor = MaterialTheme.colorScheme.surface,\n    ) {\n        LazyColumn(\n            contentPadding = it,\n            verticalArrangement = Arrangement.spacedBy(1.dp),\n        ) {\n            items(\n                items = plans,\n                key = { plan -> plan.id!! },\n            ) { plan ->\n                val isLast = remember(plan) {\n                    plans.last() == plan\n                }\n                SwipeToDeleteBox(\n                    modifier = Modifier.animateItem(),\n                    onDismiss = { onRemove(plan.id!!) },\n                ) {\n                    PlanItem(\n                        plan = plan,\n                        onClick = { onPlanClick(plan.id!!) },\n                        onActiveChange = { onSelectPlan(plan) },\n                    )\n                }\n                if (!isLast) HorizontalDivider(thickness = KenkoBorderWidth)\n            }\n            endItem()\n        }\n    }\n}\n\n@Preview\n@Composable\nprivate fun PlanPreview(\n    @PreviewParameter(PlanPreviewParameters::class) plans: List<Plan>,\n) {\n    KenkoTheme {\n        Plan(\n            plans = plans,\n            onSelectPlan = {},\n            onInfoClick = {},\n            onBackPress = {},\n            onPlanClick = {},\n            onRemove = {},\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/plans/PlanViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.plans\n\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport com.looker.kenko.data.model.Plan\nimport com.looker.kenko.data.repository.PlanRepo\nimport com.looker.kenko.data.repository.SettingsRepo\nimport com.looker.kenko.utils.asStateFlow\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport javax.inject.Inject\nimport kotlinx.coroutines.flow.first\nimport kotlinx.coroutines.launch\n\n@HiltViewModel\nclass PlanViewModel @Inject constructor(\n    private val repo: PlanRepo,\n    private val settingsRepo: SettingsRepo,\n) : ViewModel() {\n\n    val plans = repo.plans.asStateFlow(emptyList())\n\n    fun removePlan(id: Int) {\n        viewModelScope.launch {\n            repo.deletePlan(id)\n        }\n    }\n\n    fun switchPlan(plan: Plan) {\n        viewModelScope.launch {\n            if (!plan.isActive) {\n                repo.setCurrent(plan.id!!)\n            } else {\n                repo.updatePlan(plan.copy(isActive = false))\n            }\n            if (repo.current.first() != null) {\n                settingsRepo.setOnboardingDone()\n            }\n        }\n    }\n\n    fun cleanupPlans(onDone: () -> Unit) {\n        viewModelScope.launch {\n            repo.deleteEmptyPlans()\n            onDone()\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/plans/components/PlanItem.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.plans.components\n\nimport androidx.compose.animation.AnimatedVisibility\nimport androidx.compose.animation.animateColor\nimport androidx.compose.animation.core.updateTransition\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.OutlinedIconToggleButton\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.PreviewLightDark\nimport androidx.compose.ui.tooling.preview.PreviewParameter\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.Plan\nimport com.looker.kenko.data.model.PlanPreviewParameters\nimport com.looker.kenko.ui.extensions.normalizeInt\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\n\n@Composable\nfun PlanItem(\n    plan: Plan,\n    onActiveChange: (Boolean) -> Unit,\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    val transition = updateTransition(targetState = plan.isActive, label = null)\n    val background by transition.animateColor(label = \"background\") {\n        if (it) {\n            MaterialTheme.colorScheme.secondaryContainer\n        } else {\n            MaterialTheme.colorScheme.surfaceContainer\n        }\n    }\n    val contentColor by transition.animateColor(label = \"foreground\") {\n        if (it) {\n            MaterialTheme.colorScheme.onSecondaryContainer\n        } else {\n            MaterialTheme.colorScheme.onSurface\n        }\n    }\n\n    Surface(\n        onClick = onClick,\n        color = background,\n        contentColor = contentColor,\n    ) {\n        Column(\n            modifier = modifier.padding(16.dp),\n        ) {\n            Row(\n                modifier = Modifier.fillMaxWidth(),\n                verticalAlignment = Alignment.CenterVertically,\n                horizontalArrangement = Arrangement.SpaceBetween,\n            ) {\n                Text(\n                    modifier = Modifier.weight(1F),\n                    text = plan.name,\n                    maxLines = 2,\n                    style = MaterialTheme.typography.headlineMedium,\n                )\n                OutlinedIconToggleButton(\n                    checked = plan.isActive,\n                    onCheckedChange = onActiveChange,\n                ) {\n                    Icon(painter = KenkoIcons.Done, contentDescription = null)\n                }\n            }\n            AnimatedVisibility(visible = plan.isActive) {\n                Text(\n                    text = \".selected\",\n                    style = MaterialTheme.typography.labelMedium,\n                    color = MaterialTheme.colorScheme.outline,\n                )\n            }\n            if (plan.isActive) {\n                Spacer(modifier = Modifier.height(4.dp))\n            }\n            val stats = remember(plan) { plan.stat }\n            Text(\n                text = stringResource(\n                    R.string.label_plan_description,\n                    stats.exercises,\n                    normalizeInt(stats.workDays),\n                    normalizeInt(7 - stats.workDays),\n                ),\n            )\n        }\n    }\n}\n\n@PreviewLightDark\n@Composable\nprivate fun PlanItemPreview(@PreviewParameter(PlanPreviewParameters::class) plans: List<Plan>) {\n    KenkoTheme {\n        var plan by remember { mutableStateOf(plans.first()) }\n        PlanItem(plan = plan, { plan = plan.copy(isActive = it) }, {})\n    }\n}\n\n@PreviewLightDark\n@Composable\nprivate fun PlanItemInActivePreview(@PreviewParameter(PlanPreviewParameters::class) plans: List<Plan>) {\n    KenkoTheme {\n        PlanItem(plan = plans.first(), {}, {})\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/plans/navigation/PlanNavigation.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.plans.navigation\n\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.navigation.NavController\nimport androidx.navigation.NavGraphBuilder\nimport androidx.navigation.NavOptions\nimport androidx.navigation.compose.composable\nimport com.looker.kenko.ui.plans.Plan\nimport kotlinx.serialization.Serializable\n\n@Serializable\nobject PlanRoute\n\nfun NavController.navigateToPlans(navOptions: NavOptions? = null) {\n    navigate(PlanRoute, navOptions)\n}\n\nfun NavGraphBuilder.plans(\n    onPlanClick: (Int) -> Unit,\n    onBackPress: () -> Unit,\n) {\n    composable<PlanRoute> {\n        Plan(\n            onPlanClick = onPlanClick,\n            onBackPress = onBackPress,\n            viewModel = hiltViewModel(),\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/profile/Profile.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.profile\n\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.border\nimport androidx.compose.foundation.clickable\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.ColumnScope\nimport androidx.compose.foundation.layout.IntrinsicSize\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.aspectRatio\nimport androidx.compose.foundation.layout.fillMaxHeight\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.offset\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.paddingFromBaseline\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.foundation.layout.wrapContentHeight\nimport androidx.compose.foundation.rememberScrollState\nimport androidx.compose.foundation.shape.CircleShape\nimport androidx.compose.foundation.verticalScroll\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.FilledIconButton\nimport androidx.compose.material3.HorizontalDivider\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.IconButton\nimport androidx.compose.material3.LocalContentColor\nimport androidx.compose.material3.LocalTextStyle\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Scaffold\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TopAppBar\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.CompositionLocalProvider\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.draw.clip\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.dp\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.PlanStat\nimport com.looker.kenko.ui.components.BackButton\nimport com.looker.kenko.ui.components.HealthQuotes\nimport com.looker.kenko.ui.components.KenkoBorderWidth\nimport com.looker.kenko.ui.components.OutlineBorder\nimport com.looker.kenko.ui.components.SecondaryBorder\nimport com.looker.kenko.ui.extensions.PHI\nimport com.looker.kenko.ui.extensions.normalizeInt\nimport com.looker.kenko.ui.extensions.plus\nimport com.looker.kenko.ui.extensions.vertical\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport com.looker.kenko.ui.theme.end\nimport com.looker.kenko.ui.theme.numbers\nimport com.looker.kenko.ui.theme.start\n\n@Composable\nfun Profile(\n    viewModel: ProfileViewModel,\n    onBackPress: () -> Unit,\n    onExercisesClick: () -> Unit,\n    onAddExerciseClick: () -> Unit,\n    onPlanClick: () -> Unit,\n    onSettingsClick: () -> Unit,\n) {\n    val state by viewModel.state.collectAsStateWithLifecycle()\n    Profile(\n        state = state,\n        onBackPress = onBackPress,\n        onSettingsClick = onSettingsClick,\n        onPlanClick = onPlanClick,\n        onAddExerciseClick = onAddExerciseClick,\n        onExercisesClick = onExercisesClick,\n    )\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun Profile(\n    state: ProfileUiState,\n    onBackPress: () -> Unit,\n    onSettingsClick: () -> Unit,\n    onPlanClick: () -> Unit,\n    onAddExerciseClick: () -> Unit,\n    onExercisesClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Scaffold(\n        topBar = {\n            TopAppBar(\n                title = { Text(text = stringResource(R.string.label_profile)) },\n                navigationIcon = { BackButton(onBackPress) },\n                actions = {\n                    IconButton(onClick = onSettingsClick) {\n                        Icon(painter = KenkoIcons.Settings, contentDescription = null)\n                    }\n                },\n            )\n        },\n        containerColor = MaterialTheme.colorScheme.surface,\n    ) { innerPadding ->\n        Column(\n            modifier = modifier\n                .fillMaxSize()\n                .padding(innerPadding + PaddingValues(horizontal = 16.dp))\n                .verticalScroll(rememberScrollState()),\n        ) {\n            if (state.isPlanAvailable) {\n                CurrentPlanCard(\n                    onPlanClick = onPlanClick,\n                    name = state.planName,\n                    content = {\n                        Text(\n                            text = stringResource(\n                                R.string.label_plan_description,\n                                state.planStat!!.exercises,\n                                normalizeInt(state.planStat.workDays),\n                                normalizeInt(state.planStat.restDays),\n                            ),\n                        )\n                    },\n                )\n            } else {\n                SelectPlanCard(onPlanClick)\n            }\n            Spacer(modifier = Modifier.height(12.dp))\n            ExerciseCard(\n                numberOfExercises = state.numberOfExercises,\n                onAddClick = onAddExerciseClick,\n                onExercisesClick = onExercisesClick,\n            )\n            if (state.totalLifts > 0) {\n                Spacer(modifier = Modifier.height(12.dp))\n                LiftsCard(state.totalLifts)\n            }\n            Spacer(modifier = Modifier.weight(1F))\n            HealthQuotes(Modifier.align(Alignment.CenterHorizontally))\n        }\n    }\n}\n\n@Composable\nprivate fun CurrentPlanCard(\n    onPlanClick: () -> Unit,\n    name: String,\n    content: @Composable ColumnScope.() -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Surface(\n        modifier = modifier\n            .fillMaxWidth()\n            .aspectRatio(PHI),\n        color = MaterialTheme.colorScheme.surfaceContainerHigh,\n        shape = MaterialTheme.shapes.extraLarge,\n        border = SecondaryBorder,\n        onClick = onPlanClick,\n    ) {\n        Column(\n            modifier = Modifier.fillMaxSize(),\n            verticalArrangement = Arrangement.SpaceEvenly,\n        ) {\n            Row(\n                modifier = Modifier\n                    .fillMaxWidth()\n                    .padding(start = 24.dp, top = 2.dp, end = 12.dp),\n                verticalAlignment = Alignment.CenterVertically,\n            ) {\n                Icon(painter = KenkoIcons.Plan, contentDescription = null)\n                Spacer(modifier = Modifier.width(12.dp))\n                Text(\n                    text = stringResource(R.string.label_current_plan),\n                    style = MaterialTheme.typography.titleMedium,\n                )\n                Spacer(modifier = Modifier.weight(1F))\n                FilledIconButton(onClick = onPlanClick) {\n                    Icon(painter = KenkoIcons.Rename, contentDescription = null)\n                }\n            }\n            HorizontalDivider(\n                thickness = KenkoBorderWidth,\n                color = MaterialTheme.colorScheme.secondary,\n            )\n            Row(\n                modifier = Modifier.fillMaxWidth(),\n                horizontalArrangement = Arrangement.SpaceBetween,\n                verticalAlignment = Alignment.CenterVertically,\n            ) {\n                Column(\n                    modifier = Modifier\n                        .padding(start = 24.dp, bottom = 16.dp),\n                ) {\n                    Text(\n                        text = name,\n                        style = MaterialTheme.typography.titleLarge,\n                    )\n                    Spacer(modifier = Modifier.height(8.dp))\n                    CompositionLocalProvider(\n                        LocalTextStyle provides MaterialTheme.typography.bodyLarge,\n                        LocalContentColor provides MaterialTheme.colorScheme.outline,\n                    ) {\n                        content()\n                    }\n                }\n                Icon(\n                    imageVector = KenkoIcons.Stack,\n                    contentDescription = null,\n                    tint = MaterialTheme.colorScheme.secondary,\n                    modifier = Modifier.offset(x = 0.dp),\n                )\n            }\n        }\n    }\n}\n\n@Composable\nfun SelectPlanCard(\n    onSelectPlanClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    CompositionLocalProvider(LocalContentColor provides MaterialTheme.colorScheme.onTertiaryContainer) {\n        Row(\n            modifier = modifier\n                .fillMaxWidth()\n                .wrapContentHeight()\n                .clip(CircleShape)\n                .background(MaterialTheme.colorScheme.tertiaryContainer)\n                .clickable(onClick = onSelectPlanClick)\n                .padding(vertical = 24.dp),\n            horizontalArrangement = Arrangement.SpaceAround,\n            verticalAlignment = Alignment.CenterVertically,\n        ) {\n            Text(\n                text = stringResource(R.string.label_select_plan),\n                style = MaterialTheme.typography.headlineLarge,\n                modifier = Modifier.paddingFromBaseline(bottom = 16.dp)\n            )\n\n            Icon(\n                painter = KenkoIcons.ArrowOutward,\n                contentDescription = null,\n            )\n        }\n    }\n}\n\n@Composable\nprivate fun ExerciseCard(\n    numberOfExercises: Int,\n    onAddClick: () -> Unit,\n    onExercisesClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Row(\n        modifier = modifier.height(IntrinsicSize.Max),\n        horizontalArrangement = Arrangement.spacedBy(8.dp),\n        verticalAlignment = Alignment.CenterVertically,\n    ) {\n        val cardShape = MaterialTheme.shapes.extraLarge\n        val surfaceShape = remember(cardShape) {\n            cardShape.end(16.dp, 16.dp)\n        }\n        Surface(\n            modifier = Modifier.weight(1.5F),\n            shape = surfaceShape,\n            border = OutlineBorder,\n            onClick = onExercisesClick,\n        ) {\n            Column(Modifier.padding(24.dp)) {\n                Text(\n                    text = stringResource(R.string.label_exercise),\n                    style = MaterialTheme.typography.titleMedium,\n                )\n                Text(\n                    text = numberOfExercises.toString(),\n                    style = MaterialTheme.typography.headlineLarge,\n                )\n            }\n        }\n        val buttonShape = remember(cardShape) {\n            cardShape.start(16.dp, 16.dp)\n        }\n        Box(\n            modifier = Modifier\n                .weight(1F)\n                .fillMaxHeight()\n                .clip(buttonShape)\n                .clickable(onClick = onAddClick)\n                .border(\n                    border = SecondaryBorder,\n                    shape = buttonShape,\n                )\n                .background(MaterialTheme.colorScheme.secondaryContainer),\n            contentAlignment = Alignment.Center,\n        ) {\n            Icon(\n                painter = KenkoIcons.Add,\n                tint = MaterialTheme.colorScheme.onSecondaryContainer,\n                contentDescription = stringResource(R.string.label_add),\n            )\n        }\n    }\n}\n\n@Composable\nprivate fun LiftsCard(setsPerformed: Int) {\n    Surface(\n        modifier = Modifier.fillMaxWidth(),\n        shape = MaterialTheme.shapes.extraLarge,\n        border = SecondaryBorder,\n    ) {\n        Row(\n            modifier = Modifier\n                .fillMaxWidth()\n                .padding(horizontal = 8.dp, vertical = 16.dp),\n            verticalAlignment = Alignment.CenterVertically,\n        ) {\n            Text(\n                modifier = Modifier.vertical(false),\n                text = stringResource(R.string.label_lifts),\n                style = MaterialTheme.typography.titleMedium,\n            )\n            Spacer(modifier = Modifier.width(12.dp))\n            Text(\n                text = setsPerformed.toString(),\n                style = MaterialTheme.typography.displayLarge.numbers(),\n            )\n            Spacer(modifier = Modifier.weight(1F))\n            Icon(\n                imageVector = KenkoIcons.Reveal,\n                tint = MaterialTheme.colorScheme.surfaceContainerHigh,\n                contentDescription = null,\n                modifier = Modifier.offset(x = 30.dp),\n            )\n        }\n    }\n}\n\n@Preview(showBackground = true)\n@Composable\nprivate fun PlanCard() {\n    KenkoTheme {\n        CurrentPlanCard(\n            onPlanClick = {\n            },\n            name = \"Push-Pull-Leg\",\n            content = {\n                Text(\n                    text = stringResource(\n                        R.string.label_plan_description,\n                        12,\n                        normalizeInt(5),\n                        normalizeInt(2),\n                    ),\n                )\n            },\n        )\n    }\n}\n\n@Preview(showBackground = true)\n@Composable\nprivate fun EmptyPlanCardPreview() {\n    KenkoTheme {\n        SelectPlanCard({})\n    }\n}\n\n@Preview(showBackground = true)\n@Composable\nprivate fun ExerciseCardPreview() {\n    KenkoTheme {\n        ExerciseCard(21, {}, {})\n    }\n}\n\n@Preview\n@Composable\nprivate fun ProfileNoPlanPreview() {\n    KenkoTheme {\n        Profile(\n            state = ProfileUiState(12, false, \"Push-Pull-Leg\", 2, PlanStat(12, 5)),\n            onBackPress = { },\n            onSettingsClick = { },\n            onPlanClick = { },\n            onAddExerciseClick = { },\n            onExercisesClick = { },\n        )\n    }\n}\n\n@Preview\n@Composable\nprivate fun ProfilePreview() {\n    KenkoTheme {\n        Profile(\n            state = ProfileUiState(12, true, \"Push-Pull-Leg\", 2, PlanStat(12, 5)),\n            onBackPress = { },\n            onSettingsClick = { },\n            onPlanClick = { },\n            onAddExerciseClick = { },\n            onExercisesClick = { },\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/profile/ProfileViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.profile\n\nimport androidx.compose.runtime.Stable\nimport androidx.lifecycle.ViewModel\nimport com.looker.kenko.data.model.Plan\nimport com.looker.kenko.data.model.PlanStat\nimport com.looker.kenko.data.repository.ExerciseRepo\nimport com.looker.kenko.data.repository.PlanRepo\nimport com.looker.kenko.data.repository.SessionRepo\nimport com.looker.kenko.utils.asStateFlow\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport javax.inject.Inject\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.StateFlow\nimport kotlinx.coroutines.flow.combine\n\n@HiltViewModel\nclass ProfileViewModel @Inject constructor(\n    planRepo: PlanRepo,\n    sessionRepo: SessionRepo,\n    exerciseRepo: ExerciseRepo,\n) : ViewModel() {\n\n    private val currentPlan: Flow<Plan?> = planRepo.current\n\n    val state: StateFlow<ProfileUiState> = combine(\n        currentPlan,\n        sessionRepo.setsCount,\n        exerciseRepo.numberOfExercise,\n    ) { plan, sets, number ->\n        ProfileUiState(\n            numberOfExercises = number,\n            totalLifts = sets,\n            isPlanAvailable = plan != null,\n            planName = plan?.name ?: \"\",\n            planStat = plan?.stat,\n        )\n    }.asStateFlow(ProfileUiState())\n}\n\n@Stable\ndata class ProfileUiState(\n    val numberOfExercises: Int = 0,\n    val isPlanAvailable: Boolean = false,\n    val planName: String = \"\",\n    val totalLifts: Int = 0,\n    val planStat: PlanStat? = null,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/profile/navigation/ProfileNavigation.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.profile.navigation\n\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.navigation.NavController\nimport androidx.navigation.NavGraphBuilder\nimport androidx.navigation.NavOptions\nimport androidx.navigation.compose.composable\nimport com.looker.kenko.ui.profile.Profile\nimport kotlinx.serialization.Serializable\n\n@Serializable\nobject ProfileRoute\n\nfun NavController.navigateToProfile(navOptions: NavOptions? = null) {\n    navigate(ProfileRoute, navOptions)\n}\n\nfun NavGraphBuilder.profile(\n    onBackPress: () -> Unit,\n    onExercisesClick: () -> Unit,\n    onAddExerciseClick: () -> Unit,\n    onPlanClick: () -> Unit,\n    onSettingsClick: () -> Unit,\n) {\n    composable<ProfileRoute> {\n        Profile(\n            onBackPress = onBackPress,\n            onExercisesClick = onExercisesClick,\n            onAddExerciseClick = onAddExerciseClick,\n            onPlanClick = onPlanClick,\n            onSettingsClick = onSettingsClick,\n            viewModel = hiltViewModel(),\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/selectExercise/SelectExercise.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.selectExercise\n\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.size\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.foundation.layout.wrapContentHeight\nimport androidx.compose.foundation.lazy.LazyColumn\nimport androidx.compose.foundation.lazy.items\nimport androidx.compose.foundation.text.KeyboardOptions\nimport androidx.compose.material3.Button\nimport androidx.compose.material3.ButtonDefaults\nimport androidx.compose.material3.ContainedLoadingIndicator\nimport androidx.compose.material3.ExperimentalMaterial3ExpressiveApi\nimport androidx.compose.material3.FilledTonalIconButton\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TextField\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.input.nestedscroll.nestedScroll\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.input.KeyboardType\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.dp\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.ui.components.LazyTargets\nimport com.looker.kenko.ui.components.TargetChip\nimport com.looker.kenko.ui.components.disableScrollConnection\nimport com.looker.kenko.ui.components.kenkoTextFieldColor\nimport com.looker.kenko.ui.exercises.string\nimport com.looker.kenko.ui.planEdit.components.ExerciseItem\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport com.looker.kenko.ui.theme.end\nimport com.looker.kenko.ui.theme.start\n\n@OptIn(ExperimentalMaterial3ExpressiveApi::class)\n@Composable\nfun SelectExercise(\n    onDone: (Exercise) -> Unit,\n    onRequestNewExercise: (name: String?, target: MuscleGroups?) -> Unit,\n) {\n    val viewModel: SelectExerciseViewModel = hiltViewModel()\n\n    Column(\n        modifier = Modifier\n            .nestedScroll(disableScrollConnection())\n            .wrapContentHeight(),\n    ) {\n        val target by viewModel.targetMuscle.collectAsStateWithLifecycle()\n        val searchResult by viewModel.searchResult.collectAsStateWithLifecycle()\n\n        AddExerciseHeader(modifier = Modifier.padding(horizontal = 16.dp))\n        ExerciseSearchField(\n            modifier = Modifier.padding(horizontal = 16.dp),\n            name = viewModel.searchQuery,\n            onNameChange = viewModel::setSearch,\n            onAddClick = {\n                onRequestNewExercise(viewModel.searchQuery.ifBlank { null }, target)\n            },\n        )\n        LazyTargets(contentPadding = PaddingValues(horizontal = 8.dp)) {\n            TargetChip(\n                selected = target == it,\n                onClick = { viewModel.setTarget(it) },\n                text = stringResource(it.string),\n            )\n        }\n\n        Box(\n            contentAlignment = Alignment.Center,\n            modifier = Modifier.height(240.dp),\n        ) {\n            when (searchResult) {\n                SearchResult.Loading -> ContainedLoadingIndicator()\n                SearchResult.NotFound -> SearchNotFound(\n                    onAddNewExercise = { onRequestNewExercise(viewModel.searchQuery, target) }\n                )\n\n                is SearchResult.Success -> SearchResult(\n                    searchResult = searchResult as SearchResult.Success,\n                    onClick = onDone\n                )\n            }\n        }\n    }\n}\n\n@Composable\nprivate fun SearchResult(\n    searchResult: SearchResult.Success,\n    onClick: (Exercise) -> Unit,\n) {\n    LazyColumn(Modifier.fillMaxSize()) {\n        items(searchResult.exercises) { exercise ->\n            ExerciseItem(\n                exercise = exercise,\n                onClick = { onClick(exercise) },\n            )\n        }\n    }\n}\n\n@Composable\nprivate fun SearchNotFound(onAddNewExercise: () -> Unit, modifier: Modifier = Modifier) {\n    Box(\n        contentAlignment = Alignment.Center,\n        modifier = modifier\n            .fillMaxSize()\n            .padding(horizontal = 12.dp)\n            .background(\n                color = MaterialTheme.colorScheme.errorContainer,\n                shape = MaterialTheme.shapes.large\n            )\n    ) {\n        Column(horizontalAlignment = Alignment.CenterHorizontally) {\n            Text(\n                text = stringResource(R.string.error_cant_find_exercise),\n                style = MaterialTheme.typography.titleLarge,\n                color = MaterialTheme.colorScheme.onErrorContainer,\n            )\n            Spacer(modifier = Modifier.height(12.dp))\n            Button(\n                onClick = onAddNewExercise,\n                colors = ButtonDefaults.buttonColors(\n                    containerColor = MaterialTheme.colorScheme.onErrorContainer,\n                    contentColor = MaterialTheme.colorScheme.errorContainer\n                ),\n            ) {\n                Icon(painter = KenkoIcons.Add, contentDescription = null)\n                Spacer(modifier = Modifier.width(4.dp))\n                Text(text = stringResource(R.string.label_create_exercise))\n            }\n        }\n    }\n}\n\n@Composable\nprivate fun ExerciseSearchField(\n    name: String,\n    onNameChange: (String) -> Unit,\n    onAddClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Row(\n        modifier = modifier,\n        verticalAlignment = Alignment.CenterVertically,\n    ) {\n        TextField(\n            modifier = Modifier.weight(1f),\n            value = name,\n            onValueChange = onNameChange,\n            colors = kenkoTextFieldColor(),\n            keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Uri),\n            shape = MaterialTheme.shapes.large.end(8.dp),\n            label = {\n                Text(text = stringResource(R.string.label_search_exercise))\n            },\n        )\n        Spacer(modifier = Modifier.width(8.dp))\n        FilledTonalIconButton(\n            modifier = Modifier.size(56.dp),\n            shape = MaterialTheme.shapes.large.start(8.dp),\n            onClick = onAddClick,\n        ) {\n            Icon(painter = KenkoIcons.Add, contentDescription = null)\n        }\n    }\n}\n\n@Composable\nprivate fun AddExerciseHeader(\n    modifier: Modifier = Modifier,\n) {\n    Text(\n        modifier = modifier,\n        text = stringResource(R.string.label_add_exercise_header),\n        style = MaterialTheme.typography.displayMedium,\n        color = MaterialTheme.colorScheme.tertiary\n    )\n}\n\n@Preview\n@Composable\nprivate fun ErrorPreview() {\n    KenkoTheme {\n        SearchNotFound(onAddNewExercise = {})\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/selectExercise/SelectExerciseViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.selectExercise\n\nimport androidx.compose.runtime.Stable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.setValue\nimport androidx.compose.runtime.snapshotFlow\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.MuscleGroups\nimport com.looker.kenko.data.repository.ExerciseRepo\nimport com.looker.kenko.utils.asStateFlow\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.StateFlow\nimport kotlinx.coroutines.flow.asStateFlow\nimport kotlinx.coroutines.flow.combine\nimport kotlinx.coroutines.launch\nimport javax.inject.Inject\n\n@HiltViewModel\nclass SelectExerciseViewModel @Inject constructor(\n    repo: ExerciseRepo,\n) : ViewModel() {\n\n    var searchQuery: String by mutableStateOf(\"\")\n        private set\n\n    private val searchQueryFlow = snapshotFlow { searchQuery }\n\n    private val exerciseStream = repo.stream\n\n    private val _targetMuscle: MutableStateFlow<MuscleGroups?> = MutableStateFlow(null)\n    val targetMuscle: StateFlow<MuscleGroups?> = _targetMuscle.asStateFlow()\n\n    val searchResult = combine(\n        searchQueryFlow,\n        targetMuscle,\n        exerciseStream,\n    ) { query, target, exercises ->\n        val filteredExercises = exercises\n            .filter {\n                (it.target == target || target == null) && it.satisfiesSearch(query)\n            }\n        if (filteredExercises.isNotEmpty()) {\n            SearchResult.Success(filteredExercises)\n        } else {\n            SearchResult.NotFound\n        }\n    }.asStateFlow(SearchResult.Loading)\n\n    fun setTarget(target: MuscleGroups?) {\n        viewModelScope.launch {\n            _targetMuscle.emit(target)\n        }\n    }\n\n    fun setSearch(value: String) {\n        searchQuery = value\n    }\n\n    private fun Exercise.satisfiesSearch(query: String): Boolean {\n        return query.isBlank() || name.contains(query, ignoreCase = true)\n    }\n}\n\n@Stable\nsealed interface SearchResult {\n\n    @Stable\n    data object Loading : SearchResult\n\n    @Stable\n    data class Success(val exercises: List<Exercise>) : SearchResult\n\n    @Stable\n    data object NotFound : SearchResult\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/sessionDetail/SessionDetail.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.sessionDetail\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.RowScope\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.WindowInsets\nimport androidx.compose.foundation.layout.asPaddingValues\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.heightIn\nimport androidx.compose.foundation.layout.navigationBars\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.statusBarsPadding\nimport androidx.compose.foundation.lazy.grid.GridCells\nimport androidx.compose.foundation.lazy.grid.GridItemSpan\nimport androidx.compose.foundation.lazy.grid.LazyVerticalGrid\nimport androidx.compose.foundation.lazy.grid.itemsIndexed\nimport androidx.compose.foundation.shape.CircleShape\nimport androidx.compose.material3.CircularProgressIndicator\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.ExperimentalMaterial3ExpressiveApi\nimport androidx.compose.material3.FilledTonalIconButton\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.IconButton\nimport androidx.compose.material3.IconButtonShapes\nimport androidx.compose.material3.MaterialShapes\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.ModalBottomSheet\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TopAppBar\nimport androidx.compose.material3.rememberModalBottomSheetState\nimport androidx.compose.material3.toShape\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.LaunchedEffect\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableLongStateOf\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.rememberCoroutineScope\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.platform.LocalDensity\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.PreviewLightDark\nimport androidx.compose.ui.unit.dp\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.Set\nimport com.looker.kenko.ui.addSet.AddSet\nimport com.looker.kenko.ui.components.BackButton\nimport com.looker.kenko.ui.components.SwipeToDeleteBox\nimport com.looker.kenko.ui.components.TypingText\nimport com.looker.kenko.ui.extensions.normalizeInt\nimport com.looker.kenko.ui.extensions.plus\nimport com.looker.kenko.ui.planEdit.components.dayName\nimport com.looker.kenko.ui.sessionDetail.components.SetItem\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport com.looker.kenko.utils.DateFormat\nimport com.looker.kenko.utils.formatDate\nimport java.util.*\nimport kotlin.time.Clock\nimport kotlin.time.Duration.Companion.hours\nimport kotlin.time.Duration.Companion.milliseconds\nimport kotlin.time.Instant\nimport kotlinx.coroutines.delay\nimport kotlinx.coroutines.launch\nimport kotlinx.datetime.LocalDate\n\n@Composable\nfun SessionDetails(\n    viewModel: SessionDetailViewModel,\n    onBackPress: () -> Unit,\n    onHistoryClick: (LocalDate) -> Unit,\n) {\n    val state by viewModel.state.collectAsStateWithLifecycle()\n    SessionDetail(\n        state = state,\n        onBackPress = onBackPress,\n        onTimerClick = viewModel::resetRestTimer,\n        onRemoveSet = viewModel::removeSet,\n        onReferenceClick = viewModel::openReference,\n        onSelectBottomSheet = viewModel::showBottomSheet,\n        onHistoryClick = { onHistoryClick(viewModel.previousSessionDate) },\n    )\n    val exercise by viewModel.current.collectAsStateWithLifecycle()\n    if (exercise != null) {\n        AddSetSheet(\n            exercise = exercise!!,\n            onDismiss = viewModel::hideSheet,\n            onAddSet = viewModel::startRestTimer,\n        )\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun SessionDetail(\n    state: SessionDetailState,\n    onBackPress: () -> Unit = {},\n    onTimerClick: () -> Unit = {},\n    onRemoveSet: (Int?) -> Unit = {},\n    onReferenceClick: (String) -> Unit = {},\n    onSelectBottomSheet: (Exercise) -> Unit = {},\n    onHistoryClick: () -> Unit = {},\n) {\n    when (state) {\n        is SessionDetailState.Error -> {\n            Column(Modifier.statusBarsPadding()) {\n                TopAppBar(\n                    navigationIcon = {\n                        BackButton(onClick = onBackPress)\n                    },\n                    title = {},\n                )\n                SessionError(\n                    title = stringResource(state.title),\n                    message = stringResource(state.errorMessage),\n                    modifier = Modifier.fillMaxSize(),\n                )\n            }\n        }\n\n        SessionDetailState.Loading -> {\n            Column(Modifier.statusBarsPadding()) {\n                TopAppBar(\n                    navigationIcon = {\n                        BackButton(onClick = onBackPress)\n                    },\n                    title = {},\n                )\n                Box(\n                    modifier = Modifier.fillMaxSize(),\n                    contentAlignment = Alignment.Center,\n                ) {\n                    CircularProgressIndicator()\n                }\n            }\n        }\n\n        is SessionDetailState.Success -> {\n            val data = state.data\n            SetsList(\n                date = data.date,\n                exerciseSets = data.sets,\n                lastSetTime = data.lastSetTime,\n                isEditable = data.isToday,\n                hasPreviousSession = data.hasPreviousSession,\n                onBackPress = onBackPress,\n                onTimerClick = onTimerClick,\n                onRemoveSet = onRemoveSet,\n                onReferenceClick = onReferenceClick,\n                onSelectBottomSheet = onSelectBottomSheet,\n                onHistoryClick = onHistoryClick,\n            )\n        }\n    }\n}\n\n@OptIn(ExperimentalMaterial3ExpressiveApi::class)\n@Composable\nprivate fun SetsList(\n    date: LocalDate,\n    exerciseSets: Map<Exercise, List<Set>>,\n    lastSetTime: Instant?,\n    isEditable: Boolean,\n    hasPreviousSession: Boolean,\n    onBackPress: () -> Unit,\n    onTimerClick: () -> Unit,\n    onRemoveSet: (Int?) -> Unit,\n    onReferenceClick: (String) -> Unit,\n    onSelectBottomSheet: (Exercise) -> Unit,\n    onHistoryClick: () -> Unit,\n) {\n    LazyVerticalGrid(\n        columns = GridCells.Adaptive(360.dp),\n        horizontalArrangement = Arrangement.SpaceEvenly,\n        contentPadding = WindowInsets.navigationBars.asPaddingValues(LocalDensity.current) +\n                PaddingValues(bottom = 12.dp),\n    ) {\n        item(\n            span = { GridItemSpan(maxLineSpan) },\n        ) {\n            Header(\n                performedOn = date,\n                onBackPress = onBackPress,\n                actions = {\n                    if (hasPreviousSession) {\n                        IconButton(onClick = onHistoryClick) {\n                            Icon(\n                                painter = KenkoIcons.History,\n                                contentDescription = null,\n                            )\n                        }\n                    }\n\n                    if (lastSetTime != null && lastSetTime - Clock.System.now() < 1.hours) {\n                        TimerBox(\n                            lastSetTime = lastSetTime,\n                            onTimerClick = onTimerClick\n                        )\n                    }\n                },\n            )\n        }\n        exerciseSets.forEach { (exercise, sets) ->\n            item(\n                span = { GridItemSpan(maxLineSpan) },\n            ) {\n                StickyHeader(name = exercise.name) {\n                    if (!exercise.reference.isNullOrBlank()) {\n                        FilledTonalIconButton(onClick = { onReferenceClick(exercise.reference) }) {\n                            Icon(painter = KenkoIcons.Lightbulb, contentDescription = null)\n                        }\n                    }\n                    if (isEditable) {\n                        FilledTonalIconButton(\n                            shapes = IconButtonShapes(\n                                shape = MaterialShapes.Circle.toShape(),\n                                pressedShape = MaterialShapes.Cookie6Sided.toShape(),\n                            ),\n                            onClick = { onSelectBottomSheet(exercise) },\n                        ) {\n                            Icon(painter = KenkoIcons.Add, contentDescription = null)\n                        }\n                    }\n                }\n            }\n            itemsIndexed(items = sets) { index, set ->\n                SwipeToDeleteBox(\n                    modifier = Modifier.animateItem(),\n                    onDismiss = { onRemoveSet(set.id) },\n                ) {\n                    SetItem(\n                        modifier = Modifier.padding(horizontal = 16.dp, vertical = 6.dp),\n                        set = set,\n                        title = {\n                            Text(normalizeInt(index + 1))\n                        },\n                    )\n                }\n            }\n        }\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun Header(\n    performedOn: LocalDate,\n    onBackPress: () -> Unit,\n    modifier: Modifier = Modifier,\n    actions: @Composable (RowScope.() -> Unit),\n) {\n    val date = remember {\n        formatDate(performedOn, DateFormat.SessionLabel)\n    }\n    TopAppBar(\n        modifier = modifier,\n        actions = actions,\n        navigationIcon = { BackButton(onClick = onBackPress) },\n        title = {\n            Column(\n                verticalArrangement = Arrangement.Center,\n            ) {\n                var startAnimatingDate by remember {\n                    mutableStateOf(false)\n                }\n                TypingText(\n                    text = dayName(performedOn.dayOfWeek),\n                    onCompleteListener = {\n                        startAnimatingDate = true\n                    },\n                )\n                TypingText(\n                    text = date,\n                    startTyping = startAnimatingDate,\n                    initialDelay = 0.milliseconds,\n                    style = MaterialTheme.typography.labelLarge,\n                    color = MaterialTheme.colorScheme.outline,\n                )\n            }\n        },\n\n    )\n}\n\n@Composable\nfun TimerBox(\n    lastSetTime: Instant,\n    onTimerClick: () -> Unit,\n) {\n    var restTimeInSeconds by remember { mutableLongStateOf(0L) }\n\n    LaunchedEffect(Unit) {\n        while (true) {\n            restTimeInSeconds = (Clock.System.now() - lastSetTime).inWholeSeconds\n            delay(1000)\n        }\n    }\n\n    Surface(\n        color = MaterialTheme.colorScheme.secondaryContainer,\n        onClick = onTimerClick,\n        shape = CircleShape,\n    ) {\n        Text(\n            text = formatTime(restTimeInSeconds),\n            style = MaterialTheme.typography.labelLarge,\n            modifier = Modifier.padding(\n                horizontal = 12.dp,\n                vertical = 6.dp,\n            ),\n        )\n    }\n}\n\n@Composable\nprivate fun formatTime(seconds: Long): String = remember(seconds) {\n    val minutes = seconds % 3600 / 60\n    val secs = seconds % 60\n    String.format(Locale.getDefault(), \"%02d:%02d\", minutes, secs)\n}\n\n@Composable\nprivate fun StickyHeader(\n    name: String,\n    actions: (@Composable RowScope.() -> Unit)? = null,\n) {\n    Surface(\n        color = MaterialTheme.colorScheme.surfaceContainerLow,\n    ) {\n        Row(\n            modifier = Modifier\n                .fillMaxWidth()\n                .heightIn(24.dp)\n                .padding(horizontal = 16.dp, vertical = 8.dp),\n            verticalAlignment = Alignment.CenterVertically,\n        ) {\n            Text(\n                text = name,\n                style = MaterialTheme.typography.titleMedium,\n                color = MaterialTheme.colorScheme.primary,\n            )\n            Spacer(modifier = Modifier.weight(1F))\n            if (actions != null) {\n                actions()\n            }\n        }\n    }\n}\n\n@Composable\nprivate fun SessionError(\n    title: String,\n    message: String,\n    modifier: Modifier = Modifier,\n) {\n    Box(modifier = modifier.fillMaxWidth(), contentAlignment = Alignment.Center) {\n        Column(horizontalAlignment = Alignment.CenterHorizontally) {\n            Text(\n                text = title,\n                style = MaterialTheme.typography.titleLarge,\n                color = MaterialTheme.colorScheme.error,\n            )\n            Text(\n                text = message,\n                style = MaterialTheme.typography.labelLarge,\n                color = MaterialTheme.colorScheme.outline,\n            )\n        }\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun AddSetSheet(\n    exercise: Exercise,\n    onDismiss: () -> Unit,\n    onAddSet: () -> Unit,\n) {\n    val scope = rememberCoroutineScope()\n    val state = rememberModalBottomSheetState(skipPartiallyExpanded = true)\n    ModalBottomSheet(\n        sheetState = state,\n        onDismissRequest = onDismiss,\n        containerColor = MaterialTheme.colorScheme.surfaceContainer,\n    ) {\n        AddSet(\n            exercise = exercise,\n            onDone = {\n                onAddSet()\n                scope.launch { state.hide() }.invokeOnCompletion {\n                    if (!state.isVisible) onDismiss()\n                }\n            },\n        )\n    }\n}\n\n@PreviewLightDark\n@Composable\nprivate fun SessionDetailPreview() {\n    KenkoTheme {\n        val data = remember {\n            SessionDetailState.Success(\n                SessionUiData(\n                    date = LocalDate(2024, 4, 15),\n                    sets = emptyMap(),\n                    isToday = true,\n                ),\n            )\n        }\n        Surface(modifier = Modifier.fillMaxSize()) {\n            SessionDetail(state = data)\n        }\n    }\n}\n\n@PreviewLightDark\n@Composable\nprivate fun SessionErrorPreview() {\n    KenkoTheme {\n        val data = remember {\n            SessionDetailState.Error.InvalidSession\n        }\n        Surface(modifier = Modifier.fillMaxSize()) {\n            SessionDetail(state = data)\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/sessionDetail/SessionDetailViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.sessionDetail\n\nimport androidx.annotation.StringRes\nimport androidx.compose.runtime.Stable\nimport androidx.compose.ui.platform.UriHandler\nimport androidx.lifecycle.SavedStateHandle\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport androidx.navigation.toRoute\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.PlanItem\nimport com.looker.kenko.data.model.Session\nimport com.looker.kenko.data.model.Set\nimport com.looker.kenko.data.model.localDate\nimport com.looker.kenko.data.model.week\nimport com.looker.kenko.data.repository.PlanRepo\nimport com.looker.kenko.data.repository.SessionRepo\nimport com.looker.kenko.data.repository.SettingsRepo\nimport com.looker.kenko.ui.sessionDetail.navigation.SessionDetailRoute\nimport com.looker.kenko.utils.asStateFlow\nimport com.looker.kenko.utils.isToday\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport javax.inject.Inject\nimport kotlin.time.Clock\nimport kotlin.time.Instant\nimport kotlinx.coroutines.ExperimentalCoroutinesApi\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.StateFlow\nimport kotlinx.coroutines.flow.combine\nimport kotlinx.coroutines.flow.flatMapLatest\nimport kotlinx.coroutines.flow.flowOf\nimport kotlinx.coroutines.flow.map\nimport kotlinx.coroutines.flow.onStart\nimport kotlinx.coroutines.launch\nimport kotlinx.datetime.LocalDate\nimport kotlinx.datetime.minus\n\n@HiltViewModel\nclass SessionDetailViewModel @Inject constructor(\n    private val repo: SessionRepo,\n    private val planRepo: PlanRepo,\n    private val settingsRepo: SettingsRepo,\n    savedStateHandle: SavedStateHandle,\n    private val uriHandler: UriHandler,\n) : ViewModel() {\n\n    private val routeData: SessionDetailRoute = savedStateHandle.toRoute<SessionDetailRoute>()\n\n    private val epochDays: Int? = routeData.epochDays.takeIf { it != -1 }\n\n    private val sessionDate: LocalDate = epochDays?.let {\n        LocalDate.fromEpochDays(it)\n    } ?: localDate\n\n    val previousSessionDate = sessionDate - week\n\n    private val previousSessionExists: Flow<Boolean> = repo.streamByDate(previousSessionDate)\n        .map { it != null }\n\n    private val sessionStream: Flow<Session?> = repo.streamByDate(sessionDate)\n\n    @OptIn(ExperimentalCoroutinesApi::class)\n    private val exercisesToday: Flow<List<Exercise>> = sessionStream.flatMapLatest { session ->\n        if (sessionDate.isToday) {\n            planRepo.activeExercises(sessionDate.dayOfWeek)\n        } else if (session != null) {\n            if (session.planId != null) {\n                planRepo.planItems(session.planId, sessionDate.dayOfWeek)\n                    .map { it.map(PlanItem::exercise) }\n            } else {\n                flowOf(session.sets.map { it.exercise })\n            }\n        } else {\n            flowOf(emptyList())\n        }\n    }\n\n    private val lastSetTimeStream = settingsRepo.get { lastSetTime }\n\n    private val _currentExercise: MutableStateFlow<Exercise?> = MutableStateFlow(null)\n    val current: StateFlow<Exercise?> = _currentExercise\n\n    val state: StateFlow<SessionDetailState> =\n        combine(\n            sessionStream,\n            exercisesToday,\n            lastSetTimeStream,\n            previousSessionExists,\n        ) { session, exercises, lastSetTime, previousSession ->\n            if (session == null && epochDays != null) {\n                return@combine SessionDetailState.Error.InvalidSession\n            }\n\n            if (exercises.isEmpty() && sessionDate.isToday) {\n                return@combine SessionDetailState.Error.EmptyPlan\n            }\n\n            val currentSession = session ?: Session(-1, emptyList())\n\n            val exerciseMap = when {\n                sessionDate.isToday || exercises.isNotEmpty() -> exercises.associateWith { exercise ->\n                    currentSession.sets.filter { it.exercise.id == exercise.id }\n                }\n\n                currentSession.sets.isNotEmpty() -> currentSession.sets.groupBy { it.exercise }\n                else -> emptyMap()\n            }\n\n            SessionDetailState.Success(\n                SessionUiData(\n                    date = currentSession.date,\n                    sets = exerciseMap,\n                    isToday = currentSession.date.isToday,\n                    lastSetTime = lastSetTime,\n                    hasPreviousSession = previousSession,\n                ),\n            )\n        }.onStart { emit(SessionDetailState.Loading) }\n            .asStateFlow(SessionDetailState.Loading)\n\n    fun startRestTimer() {\n        viewModelScope.launch {\n            settingsRepo.setLastSetTime(Clock.System.now())\n        }\n    }\n\n    fun resetRestTimer() {\n        viewModelScope.launch {\n            settingsRepo.setLastSetTime(null)\n        }\n    }\n\n    fun removeSet(setId: Int?) {\n        if (setId == null) return\n        viewModelScope.launch {\n            repo.removeSet(setId)\n        }\n    }\n\n    fun showBottomSheet(exercise: Exercise) {\n        viewModelScope.launch {\n            _currentExercise.emit(exercise)\n        }\n    }\n\n    fun hideSheet() {\n        viewModelScope.launch {\n            _currentExercise.emit(null)\n        }\n    }\n\n    fun openReference(reference: String) {\n        viewModelScope.launch {\n            try {\n                uriHandler.openUri(reference)\n            } catch (e: IllegalStateException) {\n                e.printStackTrace()\n            }\n        }\n    }\n}\n\n@Stable\ndata class SessionUiData(\n    val date: LocalDate,\n    val sets: Map<Exercise, List<Set>>,\n    val isToday: Boolean = false,\n    val lastSetTime: Instant? = null,\n    val hasPreviousSession: Boolean = false,\n)\n\nsealed interface SessionDetailState {\n\n    data object Loading : SessionDetailState\n\n    data class Success(val data: SessionUiData) : SessionDetailState\n\n    sealed class Error(\n        @param:StringRes val title: Int,\n        @param:StringRes val errorMessage: Int,\n    ) : SessionDetailState {\n        data object InvalidSession : Error(\n            title = R.string.label_missed_day,\n            errorMessage = R.string.error_cant_find_session,\n        )\n\n        data object EmptyPlan : Error(\n            title = R.string.label_nothing_today,\n            errorMessage = R.string.label_no_exercise_today,\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/sessionDetail/components/SetItem.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.sessionDetail.components\n\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.heightIn\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.foundation.layout.widthIn\nimport androidx.compose.material3.LocalContentColor\nimport androidx.compose.material3.LocalTextStyle\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.CompositionLocalProvider\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.draw.clip\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.PreviewParameter\nimport androidx.compose.ui.tooling.preview.PreviewScreenSizes\nimport androidx.compose.ui.unit.dp\nimport com.looker.kenko.R\nimport com.looker.kenko.data.local.model.SetType\nimport com.looker.kenko.data.model.Exercise\nimport com.looker.kenko.data.model.ExercisesPreviewParameter\nimport com.looker.kenko.data.model.RepsInReserve\nimport com.looker.kenko.data.model.Set\nimport com.looker.kenko.data.model.repDurationStringRes\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport com.looker.kenko.ui.theme.numbers\n\n@Composable\nfun SetItem(\n    set: Set,\n    modifier: Modifier = Modifier,\n    title: @Composable () -> Unit,\n) {\n    Row(\n        modifier = Modifier\n            .heightIn(64.dp)\n            .widthIn(240.dp, 420.dp)\n            .background(MaterialTheme.colorScheme.surface)\n            .then(modifier),\n        verticalAlignment = Alignment.CenterVertically,\n    ) {\n        CompositionLocalProvider(\n            LocalContentColor provides MaterialTheme.colorScheme.outline,\n            LocalTextStyle provides MaterialTheme.typography.displayMedium.numbers(),\n        ) {\n            Box(modifier = Modifier.padding(horizontal = 16.dp)) {\n                title()\n            }\n        }\n        Spacer(modifier = Modifier.width(12.dp))\n        Row(\n            modifier = Modifier\n                .weight(1F)\n                .clip(MaterialTheme.shapes.large)\n                .background(MaterialTheme.colorScheme.surfaceContainerHigh)\n                .padding(vertical = 16.dp, horizontal = 24.dp),\n            horizontalArrangement = Arrangement.SpaceBetween,\n        ) {\n            PerformedItem(\n                title = stringResource(set.exercise.repDurationStringRes),\n                performance = \"${set.repsOrDuration}\",\n            )\n            PerformedItem(\n                title = stringResource(R.string.label_weight),\n                performance = \"${set.weight} KG\",\n            )\n        }\n    }\n}\n\n@Composable\nprivate fun PerformedItem(\n    title: String,\n    performance: String,\n    modifier: Modifier = Modifier,\n) {\n    Column(modifier = modifier, horizontalAlignment = Alignment.CenterHorizontally) {\n        Text(\n            text = title,\n            style = MaterialTheme.typography.titleSmall,\n            color = MaterialTheme.colorScheme.outline,\n        )\n        Text(\n            text = performance,\n            style = MaterialTheme.typography.titleMedium,\n        )\n    }\n}\n\n@PreviewScreenSizes\n@Composable\nprivate fun SetItemPreview(\n    @PreviewParameter(ExercisesPreviewParameter::class, limit = 2) exercises: List<Exercise>,\n) {\n    KenkoTheme {\n        SetItem(\n            Set(12, 40F, SetType.Drop, exercises.first(), RepsInReserve(2)),\n        ) {\n            Text(text = \"01\")\n        }\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/sessionDetail/navigation/SessionDetailNavigation.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.sessionDetail.navigation\n\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.navigation.NavController\nimport androidx.navigation.NavGraphBuilder\nimport androidx.navigation.NavOptions\nimport androidx.navigation.compose.composable\nimport com.looker.kenko.ui.sessionDetail.SessionDetails\nimport kotlinx.datetime.LocalDate\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class SessionDetailRoute(\n    val epochDays: Int,\n)\n\nfun NavController.navigateToSessionDetail(date: LocalDate?, navOptions: NavOptions? = null) {\n    navigate(SessionDetailRoute(date?.toEpochDays()?.toInt() ?: -1), navOptions)\n}\n\nfun NavGraphBuilder.sessionDetail(\n    onBackPress: () -> Unit,\n    onHistoryClick: (LocalDate) -> Unit,\n) {\n    composable<SessionDetailRoute> {\n        SessionDetails(\n            onBackPress = onBackPress,\n            onHistoryClick = onHistoryClick,\n            viewModel = hiltViewModel(),\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/sessions/Sessions.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.sessions\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.size\nimport androidx.compose.foundation.layout.wrapContentHeight\nimport androidx.compose.foundation.lazy.LazyColumn\nimport androidx.compose.foundation.lazy.items\nimport androidx.compose.foundation.shape.CircleShape\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.ExperimentalMaterial3ExpressiveApi\nimport androidx.compose.material3.FabPosition\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Scaffold\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TopAppBar\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.text.buildAnnotatedString\nimport androidx.compose.ui.text.font.FontWeight\nimport androidx.compose.ui.text.withStyle\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.tooling.preview.PreviewLightDark\nimport androidx.compose.ui.unit.dp\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.Session\nimport com.looker.kenko.ui.components.BackButton\nimport com.looker.kenko.ui.components.EmptyPage\nimport com.looker.kenko.ui.components.TertiaryKenkoButton\nimport com.looker.kenko.ui.extensions.plus\nimport com.looker.kenko.ui.planEdit.components.dayName\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport com.looker.kenko.utils.DateFormat\nimport com.looker.kenko.utils.formatDate\nimport com.looker.kenko.utils.isToday\nimport kotlinx.datetime.LocalDate\n\n@Composable\nfun Sessions(\n    viewModel: SessionsViewModel,\n    onSessionClick: (LocalDate?) -> Unit,\n    onBackPress: () -> Unit,\n) {\n    val state by viewModel.state.collectAsStateWithLifecycle()\n    Sessions(\n        state = state,\n        onSessionClick = onSessionClick,\n        onBackPress = onBackPress,\n    )\n}\n\n@OptIn(ExperimentalMaterial3Api::class, ExperimentalMaterial3ExpressiveApi::class)\n@Composable\nprivate fun Sessions(\n    state: SessionsUiData,\n    onSessionClick: (LocalDate?) -> Unit,\n    onBackPress: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Scaffold(\n        modifier = modifier,\n        topBar = {\n            TopAppBar(\n                navigationIcon = {\n                    BackButton(onClick = onBackPress)\n                },\n                title = {\n                    Text(text = stringResource(id = R.string.label_sessions_title))\n                },\n            )\n        },\n        floatingActionButton = {\n            TertiaryKenkoButton(\n                onClick = { onSessionClick(null) },\n                label = {\n                    val isCurrentSessionActive = state.isCurrentSessionActive\n                    val text = remember(isCurrentSessionActive) {\n                        if (isCurrentSessionActive) {\n                            R.string.label_continue_session\n                        } else {\n                            R.string.label_start_session\n                        }\n                    }\n                    Text(text = stringResource(id = text))\n                },\n                icon = {\n                    Icon(\n                        modifier = Modifier.size(18.dp),\n                        painter = KenkoIcons.ArrowOutward,\n                        contentDescription = null,\n                    )\n                },\n            )\n        },\n        floatingActionButtonPosition = FabPosition.Center,\n        containerColor = MaterialTheme.colorScheme.surface,\n    ) { padding ->\n        if (state.sessions.isEmpty()) {\n            EmptyPage(stringResource(id = R.string.label_no_sessions))\n        } else {\n            LazyColumn(\n                modifier = Modifier.fillMaxSize(),\n                contentPadding = padding + PaddingValues(bottom = 96.dp),\n                verticalArrangement = Arrangement.spacedBy(2.dp),\n            ) {\n                items(\n                    items = state.sessions,\n                    key = { it.id!! },\n                ) { session ->\n                    SessionCard(\n                        modifier = Modifier.padding(horizontal = 14.dp),\n                        session = session,\n                        onClick = { onSessionClick(session.date) },\n                    )\n                }\n            }\n        }\n    }\n}\n\n@Composable\nfun SessionCard(\n    session: Session,\n    modifier: Modifier = Modifier,\n    onClick: () -> Unit = {},\n) {\n    val containerColor = if (session.date.isToday) {\n        MaterialTheme.colorScheme.secondaryContainer\n    } else {\n        MaterialTheme.colorScheme.surfaceContainerLow\n    }\n    val containerShape = if (session.date.isToday) {\n        CircleShape\n    } else {\n        MaterialTheme.shapes.extraLarge\n    }\n    Surface(\n        modifier = modifier,\n        color = containerColor,\n        shape = containerShape,\n        onClick = onClick,\n    ) {\n        Column(\n            modifier = Modifier\n                .fillMaxWidth()\n                .wrapContentHeight()\n                .padding(16.dp),\n        ) {\n            val titleStyle = MaterialTheme.typography.titleLarge\n            val secondaryEmphasis = MaterialTheme.colorScheme.outline\n            val dayName = dayName(session.date.dayOfWeek)\n            val string = remember(session.date, dayName) {\n                buildAnnotatedString {\n                    withStyle(titleStyle.toSpanStyle().copy(fontWeight = FontWeight.Bold)) {\n                        append(formatDate(session.date, dateTimeFormat = DateFormat.SessionLabel))\n                    }\n                    append(\" ${Typography.bullet} \")\n                    withStyle(titleStyle.toSpanStyle().copy(color = secondaryEmphasis)) {\n                        append(dayName)\n                    }\n                }\n            }\n            Text(text = string)\n\n            val exerciseNames = remember(session.performExercises) {\n                session.performExercises.joinToString { it.name }\n            }\n            Text(\n                text = exerciseNames,\n                style = MaterialTheme.typography.labelMedium,\n                color = MaterialTheme.colorScheme.outline,\n                maxLines = 3,\n            )\n        }\n    }\n}\n\n@PreviewLightDark\n@Composable\nprivate fun SessionCardPreview() {\n    KenkoTheme {\n        SessionCard(\n            session = Session(\n                planId = 1,\n                date = LocalDate(2024, 4, 15),\n                sets = emptyList(),\n            ),\n            modifier = Modifier.fillMaxWidth(),\n        )\n    }\n}\n\n@Preview\n@Composable\nprivate fun SessionsPreview() {\n    KenkoTheme {\n        Sessions(\n            state = SessionsUiData(listOf(Session(1, emptyList())), false),\n            onBackPress = {},\n            onSessionClick = {},\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/sessions/SessionsViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.sessions\n\nimport androidx.compose.runtime.Stable\nimport androidx.lifecycle.ViewModel\nimport com.looker.kenko.data.model.Session\nimport com.looker.kenko.data.model.localDate\nimport com.looker.kenko.data.repository.SessionRepo\nimport com.looker.kenko.utils.asStateFlow\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport javax.inject.Inject\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.StateFlow\nimport kotlinx.coroutines.flow.combine\nimport kotlinx.coroutines.flow.map\n\n@HiltViewModel\nclass SessionsViewModel @Inject constructor(\n    repo: SessionRepo,\n) : ViewModel() {\n    private val sessionsStream: Flow<List<Session>> = repo.stream\n\n    private val isCurrentSessionActive: Flow<Boolean> = repo.streamByDate(localDate).map { it != null }\n\n    val state: StateFlow<SessionsUiData> = combine(\n        sessionsStream,\n        isCurrentSessionActive,\n    ) { sessions, isCurrentSessionActive ->\n        SessionsUiData(\n            sessions = sessions.filter { it.sets.isNotEmpty() },\n            isCurrentSessionActive = isCurrentSessionActive,\n        )\n    }.asStateFlow(SessionsUiData(emptyList(), false))\n}\n\n@Stable\ndata class SessionsUiData(\n    val sessions: List<Session>,\n    val isCurrentSessionActive: Boolean,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/sessions/navigation/SessionsPageNavigation.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.sessions.navigation\n\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.navigation.NavController\nimport androidx.navigation.NavGraphBuilder\nimport androidx.navigation.NavOptions\nimport androidx.navigation.compose.composable\nimport com.looker.kenko.ui.sessions.Sessions\nimport kotlinx.datetime.LocalDate\nimport kotlinx.serialization.Serializable\n\n@Serializable\nobject SessionRoute\n\nfun NavController.navigateToSessions(navOptions: NavOptions? = null) {\n    navigate(SessionRoute, navOptions = navOptions)\n}\n\nfun NavGraphBuilder.sessions(\n    onSessionClick: (LocalDate?) -> Unit,\n    onBackPress: () -> Unit,\n) {\n    composable<SessionRoute> {\n        Sessions(\n            onSessionClick = onSessionClick,\n            onBackPress = onBackPress,\n            viewModel = hiltViewModel(),\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/settings/Settings.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.settings\n\nimport android.net.Uri\nimport androidx.activity.compose.rememberLauncherForActivityResult\nimport androidx.activity.result.contract.ActivityResultContracts\nimport androidx.compose.animation.Crossfade\nimport androidx.compose.animation.animateColor\nimport androidx.compose.animation.core.animateDp\nimport androidx.compose.animation.core.updateTransition\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.clickable\nimport androidx.compose.foundation.horizontalScroll\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.size\nimport androidx.compose.foundation.layout.width\nimport androidx.compose.foundation.rememberScrollState\nimport androidx.compose.foundation.shape.CircleShape\nimport androidx.compose.foundation.shape.RoundedCornerShape\nimport androidx.compose.foundation.verticalScroll\nimport androidx.compose.material3.AlertDialog\nimport androidx.compose.material3.Button\nimport androidx.compose.material3.CircularProgressIndicator\nimport androidx.compose.material3.ExperimentalMaterial3Api\nimport androidx.compose.material3.HorizontalDivider\nimport androidx.compose.material3.Icon\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.OutlinedButton\nimport androidx.compose.material3.Scaffold\nimport androidx.compose.material3.SegmentedButton\nimport androidx.compose.material3.SegmentedButtonColors\nimport androidx.compose.material3.SegmentedButtonDefaults\nimport androidx.compose.material3.SingleChoiceSegmentedButtonRow\nimport androidx.compose.material3.SingleChoiceSegmentedButtonRowScope\nimport androidx.compose.material3.SnackbarHost\nimport androidx.compose.material3.SnackbarHostState\nimport androidx.compose.material3.Text\nimport androidx.compose.material3.TextButton\nimport androidx.compose.material3.TopAppBar\nimport androidx.compose.material3.TopAppBarDefaults\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.LaunchedEffect\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Alignment.Companion.CenterHorizontally\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.draw.clip\nimport androidx.compose.ui.draw.drawBehind\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphics.graphicsLayer\nimport androidx.compose.ui.platform.LocalContext\nimport androidx.compose.ui.res.stringResource\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.dp\nimport androidx.core.net.toUri\nimport androidx.lifecycle.compose.collectAsStateWithLifecycle\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.settings.BackupInterval\nimport com.looker.kenko.data.model.settings.ColorPalettes\nimport com.looker.kenko.data.model.settings.Theme\nimport com.looker.kenko.ui.components.BackButton\nimport com.looker.kenko.ui.components.HealthQuotes\nimport com.looker.kenko.ui.components.KenkoBorderWidth\nimport com.looker.kenko.ui.theme.KenkoIcons\nimport com.looker.kenko.ui.theme.KenkoTheme\nimport com.looker.kenko.ui.theme.colorSchemes.sereneColorSchemes\nimport com.looker.kenko.ui.theme.dynamicColorSchemes\nimport com.looker.kenko.ui.theme.end\nimport com.looker.kenko.ui.theme.start\nimport com.looker.kenko.utils.toFormat\nimport kotlin.time.Instant\nimport kotlinx.datetime.TimeZone\nimport kotlinx.datetime.toLocalDateTime\n\n@Composable\nfun Settings(\n    viewModel: SettingsViewModel,\n    onBackPress: () -> Unit,\n) {\n    val state by viewModel.state.collectAsStateWithLifecycle()\n    Settings(\n        state = state,\n        onSelectTheme = viewModel::updateTheme,\n        onSelectColorPalette = viewModel::updateColorPalette,\n        onSelectBackupLocation = viewModel::setBackupLocation,\n        onSelectBackupInterval = viewModel::setBackupInterval,\n        onBackupNow = viewModel::backupNow,\n        onRestore = viewModel::restore,\n        onClearMessage = viewModel::clearBackupMessage,\n        onBackPress = onBackPress,\n    )\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun Settings(\n    state: SettingsUiData,\n    onSelectTheme: (Theme) -> Unit,\n    onSelectColorPalette: (ColorPalettes) -> Unit,\n    onSelectBackupLocation: (Uri) -> Unit,\n    onSelectBackupInterval: (BackupInterval) -> Unit,\n    onBackupNow: () -> Unit,\n    onRestore: (Uri) -> Unit,\n    onClearMessage: () -> Unit,\n    onBackPress: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    val snackbarHostState = remember { SnackbarHostState() }\n    val context = LocalContext.current\n\n    // Handle backup messages\n    LaunchedEffect(state.backupMessage) {\n        state.backupMessage?.let { message ->\n            val text = when (message) {\n                BackupMessage.BackupSuccess -> context.getString(R.string.label_backup_success)\n                BackupMessage.BackupFailed -> context.getString(R.string.error_backup_failed)\n                BackupMessage.RestoreSuccess -> context.getString(R.string.label_restore_success)\n                BackupMessage.RestoreFailed -> context.getString(R.string.error_restore_failed)\n            }\n            snackbarHostState.showSnackbar(text)\n            onClearMessage()\n        }\n    }\n\n    Scaffold(\n        modifier = modifier,\n        containerColor = Color.Transparent,\n        snackbarHost = { SnackbarHost(snackbarHostState) },\n        topBar = {\n            TopAppBar(\n                colors = TopAppBarDefaults.topAppBarColors(containerColor = Color.Transparent),\n                navigationIcon = { BackButton(onClick = onBackPress) },\n                title = { Text(text = stringResource(R.string.label_settings)) },\n            )\n        },\n    ) {\n        Column(\n            modifier = Modifier\n                .fillMaxSize()\n                .padding(it)\n                .verticalScroll(rememberScrollState()),\n        ) {\n            HorizontalDivider(thickness = KenkoBorderWidth)\n            Spacer(modifier = Modifier.height(16.dp))\n            CategoryHeader(title = stringResource(R.string.label_theme))\n            Spacer(modifier = Modifier.height(4.dp))\n            ThemeButton(\n                modifier = Modifier.align(CenterHorizontally),\n                selectedTheme = state.selectedTheme,\n                onClick = onSelectTheme,\n            )\n            Spacer(modifier = Modifier.height(16.dp))\n            CategoryHeader(title = stringResource(R.string.label_color_palettes))\n            Spacer(modifier = Modifier.height(8.dp))\n            ColorPaletteSelection(\n                selectedColorPalette = state.selectedColorPalette,\n                selectedTheme = state.selectedTheme,\n                onClickPalette = onSelectColorPalette,\n            )\n            Spacer(modifier = Modifier.height(24.dp))\n            CategoryHeader(title = stringResource(R.string.label_backup))\n            Spacer(modifier = Modifier.height(8.dp))\n            BackupSection(\n                backupUri = state.backupUri,\n                backupInterval = state.backupInterval,\n                lastBackupTime = state.lastBackupTime,\n                isBackingUp = state.isBackingUp,\n                isRestoring = state.isRestoring,\n                onSelectLocation = onSelectBackupLocation,\n                onSelectInterval = onSelectBackupInterval,\n                onBackupNow = onBackupNow,\n                onRestore = onRestore,\n            )\n            Spacer(modifier = Modifier.weight(1F))\n            HealthQuotes(Modifier.align(CenterHorizontally))\n        }\n    }\n}\n\n@Composable\nprivate fun CategoryHeader(\n    title: String,\n    modifier: Modifier = Modifier,\n) {\n    Row(\n        modifier = modifier\n            .fillMaxWidth()\n            .padding(start = 16.dp),\n        verticalAlignment = Alignment.CenterVertically,\n    ) {\n        Text(text = title, style = MaterialTheme.typography.titleLarge)\n        Spacer(modifier = Modifier.width(4.dp))\n    }\n}\n\n@Composable\nprivate fun ColorPaletteSelection(\n    selectedColorPalette: ColorPalettes,\n    selectedTheme: Theme,\n    onClickPalette: (ColorPalettes) -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Row(\n        modifier = modifier\n            .fillMaxWidth()\n            .horizontalScroll(rememberScrollState()),\n        horizontalArrangement = Arrangement.spacedBy(12.dp),\n    ) {\n        Spacer(modifier = Modifier.width(16.dp))\n        ColorPalettes.entries.forEach { colorPalette ->\n            ColorPaletteItem(\n                isSelected = selectedColorPalette == colorPalette,\n                theme = selectedTheme,\n                colorPalette = colorPalette,\n                modifier = Modifier.clickable { onClickPalette(colorPalette) },\n            )\n        }\n        Spacer(modifier = Modifier.width(16.dp))\n    }\n}\n\n@Composable\nprivate fun ColorPaletteItem(\n    isSelected: Boolean,\n    theme: Theme,\n    colorPalette: ColorPalettes,\n    modifier: Modifier = Modifier,\n) {\n    val context = LocalContext.current\n    val colorSchemes = remember(colorPalette) {\n        colorPalette.scheme ?: dynamicColorSchemes(context)\n    }\n    if (colorSchemes == null) return\n    val transition = updateTransition(targetState = isSelected, label = null)\n    val corner by transition.animateDp(label = \"\") {\n        if (it) 32.dp else 16.dp\n    }\n    val background by transition.animateColor(label = \"\") {\n        if (it) {\n            MaterialTheme.colorScheme.primaryContainer\n        } else {\n            MaterialTheme.colorScheme.surfaceContainerHigh\n        }\n    }\n    val contentColor by transition.animateColor(label = \"\") {\n        if (it) {\n            MaterialTheme.colorScheme.onPrimaryContainer\n        } else {\n            MaterialTheme.colorScheme.onSurface\n        }\n    }\n    Column(\n        modifier = Modifier\n            .graphicsLayer {\n                clip = true\n                shape = RoundedCornerShape(corner, corner, 16.dp, 16.dp)\n            }\n            .drawBehind { drawRect(background) }\n            .then(modifier),\n        horizontalAlignment = CenterHorizontally,\n    ) {\n        KenkoTheme(\n            theme = theme,\n            colorSchemes = colorSchemes,\n        ) {\n            Box(Modifier.size(80.dp)) {\n                ColorPaletteSample()\n                Crossfade(targetState = isSelected, label = \"\") {\n                    if (it) {\n                        Box(\n                            modifier = Modifier\n                                .fillMaxSize()\n                                .background(MaterialTheme.colorScheme.surface.copy(alpha = 0.45f)),\n                            contentAlignment = Alignment.Center,\n                        ) {\n                            Icon(\n                                painter = KenkoIcons.Done,\n                                contentDescription = null,\n                            )\n                        }\n                    }\n                }\n            }\n        }\n        Text(\n            modifier = Modifier.padding(vertical = 2.dp),\n            text = stringResource(colorSchemes.nameRes),\n            style = MaterialTheme.typography.labelMedium,\n            color = contentColor,\n        )\n    }\n}\n\n@Composable\nprivate fun ColorPaletteSample(\n    modifier: Modifier = Modifier,\n) {\n    Box(\n        modifier = Modifier\n            .size(80.dp)\n            .then(modifier)\n            .padding(8.dp)\n            .clip(CircleShape),\n    ) {\n        Spacer(\n            modifier = Modifier\n                .size(31.dp)\n                .align(Alignment.TopStart)\n                .background(MaterialTheme.colorScheme.primary, RoundedCornerShape(4.dp)),\n        )\n        Spacer(\n            modifier = Modifier\n                .size(31.dp)\n                .align(Alignment.TopEnd)\n                .background(MaterialTheme.colorScheme.secondary, RoundedCornerShape(4.dp)),\n        )\n        Spacer(\n            modifier = Modifier\n                .size(64.dp, 31.dp)\n                .align(Alignment.BottomStart)\n                .background(MaterialTheme.colorScheme.tertiary, RoundedCornerShape(4.dp)),\n        )\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun ThemeButton(\n    selectedTheme: Theme,\n    onClick: (Theme) -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    SingleChoiceSegmentedButtonRow(modifier = modifier) {\n        val isSystem = remember(selectedTheme) { selectedTheme == Theme.System }\n        val isDark = remember(selectedTheme) { selectedTheme == Theme.Dark }\n        val isLight = remember(selectedTheme) { selectedTheme == Theme.Light }\n        SystemButton(isSelected = isSystem, onClick = onClick)\n        LightButton(isSelected = isLight, onClick = onClick)\n        DarkButton(isSelected = isDark, onClick = onClick)\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun SingleChoiceSegmentedButtonRowScope.SystemButton(\n    isSelected: Boolean,\n    onClick: (Theme) -> Unit,\n) {\n    val theme = Theme.System\n    SegmentedButton(\n        selected = isSelected,\n        onClick = { onClick(theme) },\n        shape = CircleShape.end(4.dp),\n        colors = themeButtonColors,\n        modifier = Modifier.padding(2.dp),\n    ) {\n        Text(text = stringResource(theme.nameRes))\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun SingleChoiceSegmentedButtonRowScope.LightButton(\n    isSelected: Boolean,\n    onClick: (Theme) -> Unit,\n) {\n    val theme = Theme.Light\n    SegmentedButton(\n        selected = isSelected,\n        onClick = { onClick(theme) },\n        shape = RoundedCornerShape(4.dp),\n        colors = themeButtonColors,\n        modifier = Modifier.padding(2.dp),\n    ) {\n        Text(text = stringResource(theme.nameRes))\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun SingleChoiceSegmentedButtonRowScope.DarkButton(\n    isSelected: Boolean,\n    onClick: (Theme) -> Unit,\n) {\n    val theme = Theme.Dark\n    SegmentedButton(\n        selected = isSelected,\n        onClick = { onClick(theme) },\n        shape = CircleShape.start(4.dp),\n        colors = themeButtonColors,\n        modifier = Modifier.padding(2.dp),\n    ) {\n        Text(text = stringResource(theme.nameRes))\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\nprivate val themeButtonColors: SegmentedButtonColors\n    @Composable\n    get() = SegmentedButtonDefaults.colors(\n        activeBorderColor = Color.Transparent,\n        inactiveBorderColor = Color.Transparent,\n        inactiveContainerColor = MaterialTheme.colorScheme.surfaceContainerLow,\n    )\n\n@Composable\nprivate fun BackupSection(\n    backupUri: String?,\n    backupInterval: BackupInterval,\n    lastBackupTime: Instant?,\n    isBackingUp: Boolean,\n    isRestoring: Boolean,\n    onSelectLocation: (Uri) -> Unit,\n    onSelectInterval: (BackupInterval) -> Unit,\n    onBackupNow: () -> Unit,\n    onRestore: (Uri) -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    val context = LocalContext.current\n    var showRestoreDialog by remember { mutableStateOf(false) }\n    var pendingRestoreUri by remember { mutableStateOf<Uri?>(null) }\n\n    val folderPickerLauncher = rememberLauncherForActivityResult(\n        contract = ActivityResultContracts.OpenDocumentTree(),\n    ) { uri ->\n        uri?.let {\n            // Take persistable permission\n            context.contentResolver.takePersistableUriPermission(\n                it,\n                android.content.Intent.FLAG_GRANT_READ_URI_PERMISSION or\n                        android.content.Intent.FLAG_GRANT_WRITE_URI_PERMISSION,\n            )\n            // Store the tree URI - file will be created by BackupManager\n            onSelectLocation(it)\n        }\n    }\n\n    val filePickerLauncher = rememberLauncherForActivityResult(\n        contract = ActivityResultContracts.OpenDocument(),\n    ) { uri ->\n        uri?.let {\n            pendingRestoreUri = it\n            showRestoreDialog = true\n        }\n    }\n\n    if (showRestoreDialog) {\n        RestoreConfirmationDialog(\n            onConfirm = {\n                pendingRestoreUri?.let { onRestore(it) }\n                showRestoreDialog = false\n                pendingRestoreUri = null\n            },\n            onDismiss = {\n                showRestoreDialog = false\n                pendingRestoreUri = null\n            },\n        )\n    }\n\n    Column(\n        modifier = modifier,\n        verticalArrangement = Arrangement.spacedBy(12.dp),\n    ) {\n        BackupSettingRow(\n            title = stringResource(R.string.label_backup_location),\n            value = backupUri?.let { extractFolderName(it) }\n                ?: stringResource(R.string.label_backup_location_not_set),\n            onClick = { folderPickerLauncher.launch(null) },\n        )\n\n        Text(\n            text = stringResource(R.string.label_backup_interval),\n            style = MaterialTheme.typography.bodyMedium,\n            color = MaterialTheme.colorScheme.onSurfaceVariant,\n            modifier = Modifier.padding(horizontal = 16.dp),\n        )\n        BackupIntervalSelector(\n            selectedInterval = backupInterval,\n            onSelectInterval = onSelectInterval,\n            enabled = backupUri != null,\n            modifier = Modifier.padding(horizontal = 16.dp),\n        )\n\n        if (lastBackupTime != null) {\n\n            Text(\n                text = stringResource(R.string.label_last_backup, lastBackupTime.toFormat()),\n                style = MaterialTheme.typography.bodySmall,\n                color = MaterialTheme.colorScheme.outline,\n                modifier = Modifier.padding(horizontal = 16.dp),\n            )\n        }\n\n        Row(\n            horizontalArrangement = Arrangement.spacedBy(12.dp),\n            modifier = Modifier\n                .fillMaxWidth()\n                .padding(horizontal = 16.dp),\n        ) {\n            OutlinedButton(\n                onClick = onBackupNow,\n                enabled = backupUri != null && !isBackingUp && !isRestoring,\n                modifier = Modifier.weight(1f),\n            ) {\n                if (isBackingUp) {\n                    CircularProgressIndicator(\n                        modifier = Modifier.size(16.dp),\n                        strokeWidth = 2.dp,\n                    )\n                    Spacer(modifier = Modifier.width(8.dp))\n                }\n                Text(\n                    text = if (isBackingUp) {\n                        stringResource(R.string.label_backup_in_progress)\n                    } else {\n                        stringResource(R.string.label_backup_now)\n                    },\n                )\n            }\n\n            OutlinedButton(\n                onClick = { filePickerLauncher.launch(arrayOf(\"application/zip\")) },\n                enabled = !isBackingUp && !isRestoring,\n                modifier = Modifier.weight(1f),\n            ) {\n                if (isRestoring) {\n                    CircularProgressIndicator(\n                        modifier = Modifier.size(16.dp),\n                        strokeWidth = 2.dp,\n                    )\n                    Spacer(modifier = Modifier.width(8.dp))\n                }\n                Text(\n                    text = if (isRestoring) {\n                        stringResource(R.string.label_restore_in_progress)\n                    } else {\n                        stringResource(R.string.label_restore)\n                    },\n                )\n            }\n        }\n    }\n}\n\n@Composable\nprivate fun BackupSettingRow(\n    title: String,\n    value: String,\n    onClick: () -> Unit,\n    modifier: Modifier = Modifier,\n) {\n    Row(\n        modifier = modifier\n            .fillMaxWidth()\n            .clickable(onClick = onClick)\n            .padding(vertical = 8.dp, horizontal = 16.dp),\n        horizontalArrangement = Arrangement.SpaceBetween,\n        verticalAlignment = Alignment.CenterVertically,\n    ) {\n        Column(modifier = Modifier.weight(1f)) {\n            Text(\n                text = title,\n                style = MaterialTheme.typography.bodyMedium,\n            )\n            Text(\n                text = value,\n                style = MaterialTheme.typography.bodySmall,\n                color = MaterialTheme.colorScheme.outline,\n            )\n        }\n        Icon(\n            painter = KenkoIcons.ArrowForward,\n            contentDescription = null,\n            tint = MaterialTheme.colorScheme.outline,\n        )\n    }\n}\n\n@OptIn(ExperimentalMaterial3Api::class)\n@Composable\nprivate fun BackupIntervalSelector(\n    selectedInterval: BackupInterval,\n    onSelectInterval: (BackupInterval) -> Unit,\n    enabled: Boolean,\n    modifier: Modifier = Modifier,\n) {\n    SingleChoiceSegmentedButtonRow(modifier = modifier.fillMaxWidth()) {\n        BackupInterval.entries.forEachIndexed { index, interval ->\n            SegmentedButton(\n                selected = selectedInterval == interval,\n                onClick = { onSelectInterval(interval) },\n                enabled = enabled,\n                shape = when (index) {\n                    0 -> CircleShape.end(4.dp)\n                    BackupInterval.entries.lastIndex -> CircleShape.start(4.dp)\n                    else -> RoundedCornerShape(4.dp)\n                },\n                colors = themeButtonColors,\n                modifier = Modifier.padding(2.dp),\n            ) {\n                Text(\n                    text = stringResource(interval.nameRes),\n                    style = MaterialTheme.typography.labelSmall,\n                )\n            }\n        }\n    }\n}\n\n@Composable\nprivate fun RestoreConfirmationDialog(\n    onConfirm: () -> Unit,\n    onDismiss: () -> Unit,\n) {\n    AlertDialog(\n        onDismissRequest = onDismiss,\n        title = { Text(stringResource(R.string.label_restore)) },\n        text = { Text(stringResource(R.string.label_restore_warning)) },\n        confirmButton = {\n            Button(onClick = onConfirm) {\n                Text(stringResource(R.string.label_yes))\n            }\n        },\n        dismissButton = {\n            TextButton(onClick = onDismiss) {\n                Text(stringResource(R.string.label_no))\n            }\n        },\n    )\n}\n\nprivate fun extractFolderName(uri: String): String {\n    return try {\n        uri.toUri().lastPathSegment?.substringAfterLast('/') ?: uri\n    } catch (_: Exception) {\n        uri\n    }\n}\n\nprivate fun formatBackupTime(instant: Instant): String {\n    val localDateTime = instant.toLocalDateTime(TimeZone.currentSystemDefault())\n    return \"${localDateTime.date} ${localDateTime.hour}:${\n        localDateTime.minute.toString().padStart(2, '0')\n    }\"\n}\n\n@Preview\n@Composable\nprivate fun ColorSelectionPreview() {\n    KenkoTheme(colorSchemes = sereneColorSchemes) {\n        var isSelected by remember { mutableStateOf(false) }\n        ColorPaletteItem(\n            modifier = Modifier.clickable {\n                isSelected = !isSelected\n            },\n            isSelected = isSelected,\n            theme = Theme.System,\n            colorPalette = ColorPalettes.Serene,\n        )\n    }\n}\n\n@Preview\n@Composable\nprivate fun ThemePreview() {\n    KenkoTheme {\n        ThemeButton(selectedTheme = Theme.System, onClick = {})\n    }\n}\n\n@Preview\n@Composable\nprivate fun SettingsPreview() {\n    KenkoTheme {\n        Settings(\n            state = SettingsUiData(\n                selectedTheme = Theme.System,\n                selectedColorPalette = ColorPalettes.Default,\n                backupUri = null,\n                backupInterval = BackupInterval.Off,\n                lastBackupTime = null,\n                isBackingUp = false,\n                isRestoring = false,\n                backupMessage = null,\n            ),\n            onSelectTheme = {},\n            onSelectColorPalette = {},\n            onSelectBackupLocation = {},\n            onSelectBackupInterval = {},\n            onBackupNow = {},\n            onRestore = {},\n            onClearMessage = {},\n            onBackPress = {},\n        )\n    }\n}\n\n@Preview\n@Composable\nprivate fun BackupSectionPreview() {\n    KenkoTheme {\n        BackupSection(\n            backupUri = \"content://com.android.providers.downloads/tree/downloads\",\n            backupInterval = BackupInterval.Daily,\n            lastBackupTime = null,\n            isBackingUp = false,\n            isRestoring = false,\n            onSelectLocation = {},\n            onSelectInterval = {},\n            onBackupNow = {},\n            onRestore = {},\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/settings/SettingsViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.settings\n\nimport android.net.Uri\nimport androidx.compose.runtime.Stable\nimport androidx.core.net.toUri\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport com.looker.kenko.data.backup.BackupManager\nimport com.looker.kenko.data.backup.BackupResult\nimport com.looker.kenko.data.model.settings.BackupInterval\nimport com.looker.kenko.data.model.settings.ColorPalettes\nimport com.looker.kenko.data.model.settings.Theme\nimport com.looker.kenko.data.repository.SettingsRepo\nimport com.looker.kenko.utils.asStateFlow\nimport dagger.hilt.android.lifecycle.HiltViewModel\nimport javax.inject.Inject\nimport kotlin.time.Clock\nimport kotlin.time.Instant\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.StateFlow\nimport kotlinx.coroutines.flow.combine\nimport kotlinx.coroutines.flow.update\nimport kotlinx.coroutines.launch\n\n@HiltViewModel\nclass SettingsViewModel @Inject constructor(\n    private val repo: SettingsRepo,\n    private val backupManager: BackupManager,\n) : ViewModel() {\n\n    private val _backupState = MutableStateFlow(BackupState())\n\n    val state: StateFlow<SettingsUiData> = combine(\n        repo.stream,\n        _backupState,\n    ) { settings, backupState ->\n        SettingsUiData(\n            selectedTheme = settings.theme,\n            selectedColorPalette = settings.colorPalette,\n            backupUri = settings.backupUri,\n            backupInterval = settings.backupInterval,\n            lastBackupTime = settings.lastBackupTime,\n            isBackingUp = backupState.isBackingUp,\n            isRestoring = backupState.isRestoring,\n            backupMessage = backupState.message,\n        )\n    }.asStateFlow(\n        SettingsUiData(\n            selectedTheme = Theme.System,\n            selectedColorPalette = ColorPalettes.Default,\n            backupUri = null,\n            backupInterval = BackupInterval.Off,\n            lastBackupTime = null,\n            isBackingUp = false,\n            isRestoring = false,\n            backupMessage = null,\n        ),\n    )\n\n    fun updateTheme(theme: Theme) {\n        viewModelScope.launch {\n            repo.setTheme(theme)\n        }\n    }\n\n    fun updateColorPalette(colorPalette: ColorPalettes) {\n        viewModelScope.launch {\n            repo.setColorPalette(colorPalette)\n        }\n    }\n\n    fun setBackupLocation(uri: Uri) {\n        viewModelScope.launch {\n            repo.setBackupUri(uri.toString())\n            backupManager.schedulePeriodicBackup(state.value.backupInterval, uri)\n        }\n    }\n\n    fun setBackupInterval(interval: BackupInterval) {\n        viewModelScope.launch {\n            repo.setBackupInterval(interval)\n            val backupUri = state.value.backupUri?.toUri()\n            if (backupUri != null) {\n                backupManager.schedulePeriodicBackup(interval, backupUri)\n            }\n        }\n    }\n\n    fun backupNow() {\n        val backupUri = state.value.backupUri?.toUri() ?: return\n\n        viewModelScope.launch {\n            _backupState.update { it.copy(isBackingUp = true, message = null) }\n\n            when (backupManager.createBackup(backupUri)) {\n                is BackupResult.Success -> {\n                    repo.setLastBackupTime(Clock.System.now())\n                    _backupState.update {\n                        it.copy(isBackingUp = false, message = BackupMessage.BackupSuccess)\n                    }\n                }\n\n                is BackupResult.Error -> {\n                    _backupState.update {\n                        it.copy(isBackingUp = false, message = BackupMessage.BackupFailed)\n                    }\n                }\n            }\n        }\n    }\n\n    fun restore(uri: Uri) {\n        viewModelScope.launch {\n            _backupState.update { it.copy(isRestoring = true, message = null) }\n\n            when (backupManager.restoreBackup(uri)) {\n                is BackupResult.Success -> {\n                    repo.setBackupUri(null)\n                    repo.setLastBackupTime(null)\n                    _backupState.update {\n                        it.copy(isRestoring = false, message = BackupMessage.RestoreSuccess)\n                    }\n                }\n\n                is BackupResult.Error -> {\n                    _backupState.update {\n                        it.copy(isRestoring = false, message = BackupMessage.RestoreFailed)\n                    }\n                }\n            }\n        }\n    }\n\n    fun clearBackupMessage() {\n        _backupState.update { it.copy(message = null) }\n    }\n}\n\nprivate data class BackupState(\n    val isBackingUp: Boolean = false,\n    val isRestoring: Boolean = false,\n    val message: BackupMessage? = null,\n)\n\nenum class BackupMessage {\n    BackupSuccess,\n    BackupFailed,\n    RestoreSuccess,\n    RestoreFailed,\n}\n\n@Stable\ndata class SettingsUiData(\n    val selectedTheme: Theme,\n    val selectedColorPalette: ColorPalettes,\n    val backupUri: String?,\n    val backupInterval: BackupInterval,\n    val lastBackupTime: Instant?,\n    val isBackingUp: Boolean,\n    val isRestoring: Boolean,\n    val backupMessage: BackupMessage?,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/settings/navigation/SettingsNavigation.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.settings.navigation\n\nimport androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel\nimport androidx.navigation.NavController\nimport androidx.navigation.NavGraphBuilder\nimport androidx.navigation.NavOptions\nimport androidx.navigation.compose.composable\nimport com.looker.kenko.ui.settings.Settings\nimport kotlinx.serialization.Serializable\n\n@Serializable\nobject SettingsRoute\n\nfun NavController.navigateToSettings(navOptions: NavOptions? = null) {\n    navigate(SettingsRoute, navOptions)\n}\n\nfun NavGraphBuilder.settings(\n    onBackPress: () -> Unit,\n) {\n    composable<SettingsRoute> {\n        Settings(\n            onBackPress = onBackPress,\n            viewModel = hiltViewModel(),\n        )\n    }\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/theme/KenkoIcons.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.theme\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.graphics.painter.Painter\nimport androidx.compose.ui.graphics.vector.ImageVector\nimport androidx.compose.ui.res.painterResource\nimport com.looker.kenko.R\n\n/**\n * Material Symbols Settings\n *\n * Weight: 300\n * Grade: 0\n * Optical Size: 24px\n * Style: Rounded\n * Fill: False\n */\nobject KenkoIcons {\n\n    val ArrowBack: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_arrow_back)\n\n    val ArrowForward: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_arrow_forward)\n\n    val ArrowOutward: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_arrow_outward)\n\n    val Circle: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_radio_button_unchecked)\n\n    val Lightbulb: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_lightbulb)\n\n    val Add: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_add)\n\n    val Info: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_info)\n\n    val Done: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_check)\n\n    val History: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_history)\n\n    val Delete: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_delete)\n\n    val Remove: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_remove)\n\n    val Save: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_save)\n\n    val Rename: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_edit)\n\n    val Plan: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_tactic)\n\n    val Home: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_home)\n\n    val Person: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_person)\n\n    val Performance: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_show_chart)\n\n    val Settings: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_settings)\n\n    val KeyboardArrowRight: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_keyboard_arrow_right)\n\n    val KeyboardArrowLeft: Painter\n        @Composable\n        get() = painterResource(R.drawable.ic_keyboard_arrow_left)\n\n    // Brutalist Icons\n    val AddLarge: ImageVector = com.looker.kenko.ui.components.icons.AddLarge\n\n    val ArrowOutwardLarge: ImageVector = com.looker.kenko.ui.components.icons.ArrowOutwardLarge\n\n    val Cloud: ImageVector = com.looker.kenko.ui.components.icons.Cloud\n\n    val Colony: ImageVector = com.looker.kenko.ui.components.icons.Colony\n\n    val Arrow1: ImageVector = com.looker.kenko.ui.components.icons.Arrow1\n\n    val Arrow2: ImageVector = com.looker.kenko.ui.components.icons.Arrow2\n\n    val Arrow3: ImageVector = com.looker.kenko.ui.components.icons.Arrow3\n\n    val Arrow4: ImageVector = com.looker.kenko.ui.components.icons.Arrow4\n\n    val Dawn: ImageVector = com.looker.kenko.ui.components.icons.Dawn\n\n    val ConcentricTriangles: ImageVector = com.looker.kenko.ui.components.icons.ConcentricTriangles\n\n    val Stack: ImageVector = com.looker.kenko.ui.components.icons.Stack\n\n    val Reveal: ImageVector = com.looker.kenko.ui.components.icons.Reveal\n\n    val QuarterCircles: ImageVector = com.looker.kenko.ui.components.icons.QuarterCircles\n\n    val Wireframe: ImageVector = com.looker.kenko.ui.components.icons.Wireframe\n}\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/theme/Shapes.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.theme\n\nimport androidx.compose.foundation.shape.CornerBasedShape\nimport androidx.compose.foundation.shape.CornerSize\nimport androidx.compose.foundation.shape.RoundedCornerShape\nimport androidx.compose.material3.Shapes\nimport androidx.compose.ui.unit.Dp\nimport androidx.compose.ui.unit.dp\n\nval Shapes = Shapes(\n    extraSmall = RoundedCornerShape(4.dp),\n    small = RoundedCornerShape(8.dp),\n    medium = RoundedCornerShape(14.dp),\n    large = RoundedCornerShape(20.dp),\n    extraLarge = RoundedCornerShape(28.dp),\n)\n\nfun CornerBasedShape.end(\n    bottomEnd: Dp = 0.dp,\n    topEnd: Dp = bottomEnd,\n): CornerBasedShape =\n    copy(bottomEnd = CornerSize(bottomEnd), topEnd = CornerSize(topEnd))\n\nfun CornerBasedShape.start(\n    bottomStart: Dp = 0.dp,\n    topStart: Dp = bottomStart,\n): CornerBasedShape =\n    copy(bottomStart = CornerSize(bottomStart), topStart = CornerSize(topStart))\n\nfun CornerBasedShape.end(\n    end: CornerBasedShape,\n): CornerBasedShape =\n    copy(bottomEnd = end.bottomEnd, topEnd = end.topEnd)\n\nfun CornerBasedShape.start(\n    start: CornerBasedShape,\n): CornerBasedShape =\n    copy(bottomStart = start.bottomStart, topStart = start.topStart)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/theme/Theme.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.theme\n\nimport android.app.Activity\nimport android.content.Context\nimport android.os.Build\nimport android.view.View\nimport androidx.compose.foundation.isSystemInDarkTheme\nimport androidx.compose.material3.ExperimentalMaterial3ExpressiveApi\nimport androidx.compose.material3.MaterialExpressiveTheme\nimport androidx.compose.material3.dynamicDarkColorScheme\nimport androidx.compose.material3.dynamicLightColorScheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.SideEffect\nimport androidx.compose.runtime.remember\nimport androidx.compose.ui.platform.LocalView\nimport androidx.core.view.WindowCompat\nimport com.looker.kenko.R\nimport com.looker.kenko.data.model.settings.Theme\nimport com.looker.kenko.ui.theme.colorSchemes.ColorSchemes\nimport com.looker.kenko.ui.theme.colorSchemes.zestfulColorSchemes\n\n@OptIn(ExperimentalMaterial3ExpressiveApi::class)\n@Composable\nfun KenkoTheme(\n    theme: Theme = Theme.System,\n    colorSchemes: ColorSchemes = zestfulColorSchemes,\n    content: @Composable () -> Unit,\n) {\n    val systemTheme = isSystemInDarkTheme()\n    val isDarkTheme = remember(theme) {\n        when (theme) {\n            Theme.System -> systemTheme\n            Theme.Light -> false\n            Theme.Dark -> true\n        }\n    }\n    val colorScheme = if (isDarkTheme) {\n        colorSchemes.dark\n    } else {\n        colorSchemes.light\n    }\n\n    val localView = LocalView.current\n    SideEffect { setupSystemBar(localView, isDarkTheme) }\n\n    MaterialExpressiveTheme(\n        colorScheme = colorScheme,\n        typography = Typography,\n        shapes = Shapes,\n        content = content,\n    )\n}\n\nfun setupSystemBar(view: View, isDarkTheme: Boolean) {\n    if (view.isInEditMode) return\n    val window = (view.context as Activity).window\n    with(WindowCompat.getInsetsController(window, view)) {\n        isAppearanceLightStatusBars = !isDarkTheme\n        isAppearanceLightNavigationBars = !isDarkTheme\n    }\n}\n\nfun dynamicColorSchemes(context: Context): ColorSchemes? =\n    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {\n        ColorSchemes(\n            light = dynamicLightColorScheme(context),\n            dark = dynamicDarkColorScheme(context),\n            nameRes = R.string.label_color_scheme_dynamic,\n        )\n    } else {\n        null\n    }\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/theme/Type.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.theme\n\nimport androidx.compose.material3.Typography\nimport androidx.compose.ui.text.TextStyle\nimport androidx.compose.ui.text.font.Font\nimport androidx.compose.ui.text.font.FontFamily\nimport androidx.compose.ui.text.font.FontWeight\nimport androidx.compose.ui.unit.sp\nimport com.looker.kenko.R\n\nval FontFamily.Companion.Numbers\n    get() = FontFamily(Font(R.font.spacemono_bold))\n\nval displayFont = FontFamily(\n    Font(R.font.darkergrotesque_bold, weight = FontWeight.Bold),\n    Font(R.font.darkergrotesque_semibold, weight = FontWeight.SemiBold),\n)\n\nval bodyFont = FontFamily(\n    Font(R.font.spacemono_bold, weight = FontWeight.Bold),\n    Font(R.font.spacemono_normal, weight = FontWeight.Normal),\n)\n\nfun Typography.header() = displayLarge.copy(\n    fontSize = 78.sp,\n    lineHeight = 70.sp,\n)\n\nfun TextStyle.numbers() = copy(fontFamily = FontFamily.Numbers)\n\nval baseline = Typography()\n\nval Typography = Typography().copy(\n    displayLarge = baseline.displayLarge.copy(\n        fontFamily = displayFont,\n        fontWeight = FontWeight.Bold,\n    ),\n    displayMedium = baseline.displayMedium.copy(\n        fontFamily = displayFont,\n        fontWeight = FontWeight.Bold,\n        lineHeight = 45.sp,\n    ),\n    displaySmall = baseline.displaySmall.copy(\n        fontFamily = displayFont,\n        fontWeight = FontWeight.SemiBold,\n    ),\n    headlineLarge = baseline.headlineLarge.copy(\n        fontFamily = displayFont,\n        fontWeight = FontWeight.Bold,\n    ),\n    headlineMedium = baseline.headlineMedium.copy(\n        fontFamily = displayFont,\n        fontWeight = FontWeight.Bold,\n    ),\n    headlineSmall = baseline.headlineSmall.copy(\n        fontFamily = displayFont,\n        fontWeight = FontWeight.SemiBold,\n    ),\n    titleLarge = baseline.titleLarge.copy(\n        fontFamily = displayFont,\n        fontWeight = FontWeight.SemiBold,\n    ),\n    titleMedium = baseline.titleMedium.copy(\n        fontFamily = displayFont,\n        fontWeight = FontWeight.SemiBold,\n        fontSize = 17.sp,\n    ),\n    titleSmall = baseline.titleSmall.copy(\n        fontFamily = displayFont,\n        fontWeight = FontWeight.SemiBold,\n    ),\n    bodyLarge = baseline.bodyLarge.copy(\n        fontFamily = bodyFont,\n        fontWeight = FontWeight.Normal,\n    ),\n    bodyMedium = baseline.bodyMedium.copy(\n        fontFamily = bodyFont,\n        fontWeight = FontWeight.Normal,\n    ),\n    bodySmall = baseline.bodySmall.copy(\n        fontFamily = bodyFont,\n        fontWeight = FontWeight.Normal,\n    ),\n    labelLarge = baseline.labelLarge.copy(\n        fontFamily = bodyFont,\n        fontWeight = FontWeight.Normal,\n    ),\n    labelMedium = baseline.labelMedium.copy(\n        fontFamily = bodyFont,\n        fontWeight = FontWeight.Normal,\n    ),\n    labelSmall = baseline.labelSmall.copy(\n        fontFamily = bodyFont,\n        fontWeight = FontWeight.Normal,\n    ),\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/theme/colorSchemes/ColorSchemes.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.theme.colorSchemes\n\nimport androidx.annotation.StringRes\nimport androidx.compose.material3.ColorScheme\nimport androidx.compose.runtime.Immutable\n\n@Immutable\ndata class ColorSchemes(\n    val light: ColorScheme,\n    val dark: ColorScheme,\n    val mediumContrastLight: ColorScheme? = null,\n    val mediumContrastDark: ColorScheme? = null,\n    val highContrastLight: ColorScheme? = null,\n    val highContrastDark: ColorScheme? = null,\n    @StringRes val nameRes: Int,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/theme/colorSchemes/Default.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.theme.colorSchemes\n\nimport androidx.compose.material3.darkColorScheme\nimport androidx.compose.material3.lightColorScheme\nimport androidx.compose.ui.graphics.Color\nimport com.looker.kenko.R\n\n// Green & Brown\n\nprivate val primaryLight = Color(0xFF5D6146)\nprivate val onPrimaryLight = Color(0xFFFDFFDC)\nprivate val primaryContainerLight = Color(0xFFE2E5C3)\nprivate val onPrimaryContainerLight = Color(0xFF2F321B)\nprivate val secondaryLight = Color(0xFF5F5F53)\nprivate val onSecondaryLight = Color(0xFFFDFFDC)\nprivate val secondaryContainerLight = Color(0xFFE5E4D4)\nprivate val onSecondaryContainerLight = Color(0xFF48493D)\nprivate val tertiaryLight = Color(0xFF6E3D00)\nprivate val onTertiaryLight = Color(0xFFFFDCBF)\nprivate val tertiaryContainerLight = Color(0xFF9E5E12)\nprivate val onTertiaryContainerLight = Color(0xFFFFEEE1)\nprivate val errorLight = Color(0xFFBA1A1A)\nprivate val onErrorLight = Color(0xFFFFEDEA)\nprivate val errorContainerLight = Color(0xFFFFDAD6)\nprivate val onErrorContainerLight = Color(0xFF410002)\nprivate val backgroundLight = Color(0xFFFCF9F5)\nprivate val onBackgroundLight = Color(0xFF1C1C19)\nprivate val surfaceLight = Color(0xFFFCF9F5)\nprivate val onSurfaceLight = Color(0xFF1C1C19)\nprivate val surfaceVariantLight = Color(0xFFE4E3D6)\nprivate val onSurfaceVariantLight = Color(0xFF47473E)\nprivate val outlineLight = Color(0xFF78786D)\nprivate val outlineVariantLight = Color(0xFFC8C7BB)\nprivate val scrimLight = Color(0xFF000000)\nprivate val inverseSurfaceLight = Color(0xFF31302E)\nprivate val inverseOnSurfaceLight = Color(0xFFF4F0EC)\nprivate val inversePrimaryLight = Color(0xFFC6C9A9)\nprivate val surfaceDimLight = Color(0xFFDDD9D5)\nprivate val surfaceBrightLight = Color(0xFFFCF9F5)\nprivate val surfaceContainerLowestLight = Color(0xFFFFFFFF)\nprivate val surfaceContainerLowLight = Color(0xFFF7F3EF)\nprivate val surfaceContainerLight = Color(0xFFF1EDE9)\nprivate val surfaceContainerHighLight = Color(0xFFEBE8E3)\nprivate val surfaceContainerHighestLight = Color(0xFFE5E2DE)\n\nprivate val primaryDark = Color(0xFFC6C9A9)\nprivate val onPrimaryDark = Color(0xFF2F321B)\nprivate val primaryContainerDark = Color(0xFF464930)\nprivate val onPrimaryContainerDark = Color(0xFFBFC2AE)\nprivate val secondaryDark = Color(0xFFC8C7B8)\nprivate val onSecondaryDark = Color(0xFF303126)\nprivate val secondaryContainerDark = Color(0xFF3D3E33)\nprivate val onSecondaryContainerDark = Color(0xFFD3D2C2)\nprivate val tertiaryDark = Color(0xFFFFB873)\nprivate val onTertiaryDark = Color(0xFF4A2800)\nprivate val tertiaryContainerDark = Color(0xFF7F4800)\nprivate val onTertiaryContainerDark = Color(0xFFFFF8F5)\nprivate val errorDark = Color(0xFFFFB4AB)\nprivate val onErrorDark = Color(0xFF690005)\nprivate val errorContainerDark = Color(0xFF93000A)\nprivate val onErrorContainerDark = Color(0xFFFFDAD6)\nprivate val backgroundDark = Color(0xFF141311)\nprivate val onBackgroundDark = Color(0xFFE5E2DE)\nprivate val surfaceDark = Color(0xFF141311)\nprivate val onSurfaceDark = Color(0xFFE5E2DE)\nprivate val surfaceVariantDark = Color(0xFF47473E)\nprivate val onSurfaceVariantDark = Color(0xFFC8C7BB)\nprivate val outlineDark = Color(0xFF929186)\nprivate val outlineVariantDark = Color(0xFF47473E)\nprivate val scrimDark = Color(0xFF000000)\nprivate val inverseSurfaceDark = Color(0xFFE0DCD5)\nprivate val inverseOnSurfaceDark = Color(0xFF31302E)\nprivate val inversePrimaryDark = Color(0xFF5D6146)\nprivate val surfaceDimDark = Color(0xFF141311)\nprivate val surfaceBrightDark = Color(0xFF3A3936)\nprivate val surfaceContainerLowestDark = Color(0xFF0E0E0C)\nprivate val surfaceContainerLowDark = Color(0xFF1C1C19)\nprivate val surfaceContainerDark = Color(0xFF20201D)\nprivate val surfaceContainerHighDark = Color(0xFF2A2A27)\nprivate val surfaceContainerHighestDark = Color(0xFF353532)\n\nprivate val JapanRed = Color(0xFFE03523)\n\nprivate val defaultLightScheme = lightColorScheme(\n    primary = primaryLight,\n    onPrimary = onPrimaryLight,\n    primaryContainer = primaryContainerLight,\n    onPrimaryContainer = onPrimaryContainerLight,\n    secondary = secondaryLight,\n    onSecondary = onSecondaryLight,\n    secondaryContainer = secondaryContainerLight,\n    onSecondaryContainer = onSecondaryContainerLight,\n    tertiary = tertiaryLight,\n    onTertiary = onTertiaryLight,\n    tertiaryContainer = tertiaryContainerLight,\n    onTertiaryContainer = onTertiaryContainerLight,\n    error = errorLight,\n    onError = onErrorLight,\n    errorContainer = errorContainerLight,\n    onErrorContainer = onErrorContainerLight,\n    background = backgroundLight,\n    onBackground = onBackgroundLight,\n    surface = surfaceLight,\n    onSurface = onSurfaceLight,\n    surfaceVariant = surfaceVariantLight,\n    onSurfaceVariant = onSurfaceVariantLight,\n    outline = outlineLight,\n    outlineVariant = outlineVariantLight,\n    scrim = scrimLight,\n    inverseSurface = inverseSurfaceLight,\n    inverseOnSurface = inverseOnSurfaceLight,\n    inversePrimary = inversePrimaryLight,\n    surfaceDim = surfaceDimLight,\n    surfaceBright = surfaceBrightLight,\n    surfaceContainerLowest = surfaceContainerLowestLight,\n    surfaceContainerLow = surfaceContainerLowLight,\n    surfaceContainer = surfaceContainerLight,\n    surfaceContainerHigh = surfaceContainerHighLight,\n    surfaceContainerHighest = surfaceContainerHighestLight,\n)\n\nprivate val defaultDarkScheme = darkColorScheme(\n    primary = primaryDark,\n    onPrimary = onPrimaryDark,\n    primaryContainer = primaryContainerDark,\n    onPrimaryContainer = onPrimaryContainerDark,\n    secondary = secondaryDark,\n    onSecondary = onSecondaryDark,\n    secondaryContainer = secondaryContainerDark,\n    onSecondaryContainer = onSecondaryContainerDark,\n    tertiary = tertiaryDark,\n    onTertiary = onTertiaryDark,\n    tertiaryContainer = tertiaryContainerDark,\n    onTertiaryContainer = onTertiaryContainerDark,\n    error = errorDark,\n    onError = onErrorDark,\n    errorContainer = errorContainerDark,\n    onErrorContainer = onErrorContainerDark,\n    background = backgroundDark,\n    onBackground = onBackgroundDark,\n    surface = surfaceDark,\n    onSurface = onSurfaceDark,\n    surfaceVariant = surfaceVariantDark,\n    onSurfaceVariant = onSurfaceVariantDark,\n    outline = outlineDark,\n    outlineVariant = outlineVariantDark,\n    scrim = scrimDark,\n    inverseSurface = inverseSurfaceDark,\n    inverseOnSurface = inverseOnSurfaceDark,\n    inversePrimary = inversePrimaryDark,\n    surfaceDim = surfaceDimDark,\n    surfaceBright = surfaceBrightDark,\n    surfaceContainerLowest = surfaceContainerLowestDark,\n    surfaceContainerLow = surfaceContainerLowDark,\n    surfaceContainer = surfaceContainerDark,\n    surfaceContainerHigh = surfaceContainerHighDark,\n    surfaceContainerHighest = surfaceContainerHighestDark,\n)\n\nval defaultColorSchemes = ColorSchemes(\n    light = defaultLightScheme,\n    dark = defaultDarkScheme,\n    nameRes = R.string.label_color_scheme_default,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/theme/colorSchemes/Serene.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.theme.colorSchemes\n\nimport androidx.compose.material3.darkColorScheme\nimport androidx.compose.material3.lightColorScheme\nimport androidx.compose.ui.graphics.Color\nimport com.looker.kenko.R\n\n// Blue & Pink\n\nprivate val primaryLight = Color(0xFF0005B8)\nprivate val onPrimaryLight = Color(0xFFFFFFFF)\nprivate val primaryContainerLight = Color(0xFF2631FC)\nprivate val onPrimaryContainerLight = Color(0xFFFFFDFF)\nprivate val secondaryLight = Color(0xFF4E55B0)\nprivate val onSecondaryLight = Color(0xFFFFFFFF)\nprivate val secondaryContainerLight = Color(0xFFA4AAFF)\nprivate val onSecondaryContainerLight = Color(0xFF0F1475)\nprivate val tertiaryLight = Color(0xFF5D0071)\nprivate val onTertiaryLight = Color(0xFFFFFFFF)\nprivate val tertiaryContainerLight = Color(0xFF8E20A7)\nprivate val onTertiaryContainerLight = Color(0xFFFFFCFF)\nprivate val errorLight = Color(0xFFBA1A1A)\nprivate val onErrorLight = Color(0xFFFFFFFF)\nprivate val errorContainerLight = Color(0xFFFFDAD6)\nprivate val onErrorContainerLight = Color(0xFF410002)\nprivate val backgroundLight = Color(0xFFFBF8FF)\nprivate val onBackgroundLight = Color(0xFF1A1B25)\nprivate val surfaceLight = Color(0xFFFBF8FF)\nprivate val onSurfaceLight = Color(0xFF1A1B25)\nprivate val surfaceVariantLight = Color(0xFFE2E0F7)\nprivate val onSurfaceVariantLight = Color(0xFF454557)\nprivate val outlineLight = Color(0xFF757589)\nprivate val outlineVariantLight = Color(0xFFC5C4DA)\nprivate val scrimLight = Color(0xFF000000)\nprivate val inverseSurfaceLight = Color(0xFF2F2F3B)\nprivate val inverseOnSurfaceLight = Color(0xFFF1EFFE)\nprivate val inversePrimaryLight = Color(0xFFBEC2FF)\nprivate val surfaceDimLight = Color(0xFFDAD8E7)\nprivate val surfaceBrightLight = Color(0xFFFBF8FF)\nprivate val surfaceContainerLowestLight = Color(0xFFFFFFFF)\nprivate val surfaceContainerLowLight = Color(0xFFF4F2FF)\nprivate val surfaceContainerLight = Color(0xFFEEECFB)\nprivate val surfaceContainerHighLight = Color(0xFFE9E6F6)\nprivate val surfaceContainerHighestLight = Color(0xFFE3E1F0)\n\nprivate val primaryLightMediumContrast = Color(0xFF0005B8)\nprivate val onPrimaryLightMediumContrast = Color(0xFFFFFFFF)\nprivate val primaryContainerLightMediumContrast = Color(0xFF2631FC)\nprivate val onPrimaryContainerLightMediumContrast = Color(0xFFFFFFFF)\nprivate val secondaryLightMediumContrast = Color(0xFF313892)\nprivate val onSecondaryLightMediumContrast = Color(0xFFFFFFFF)\nprivate val secondaryContainerLightMediumContrast = Color(0xFF656CC8)\nprivate val onSecondaryContainerLightMediumContrast = Color(0xFFFFFFFF)\nprivate val tertiaryLightMediumContrast = Color(0xFF5D0071)\nprivate val onTertiaryLightMediumContrast = Color(0xFFFFFFFF)\nprivate val tertiaryContainerLightMediumContrast = Color(0xFF8E20A7)\nprivate val onTertiaryContainerLightMediumContrast = Color(0xFFFFFFFF)\nprivate val errorLightMediumContrast = Color(0xFF8C0009)\nprivate val onErrorLightMediumContrast = Color(0xFFFFFFFF)\nprivate val errorContainerLightMediumContrast = Color(0xFFDA342E)\nprivate val onErrorContainerLightMediumContrast = Color(0xFFFFFFFF)\nprivate val backgroundLightMediumContrast = Color(0xFFFBF8FF)\nprivate val onBackgroundLightMediumContrast = Color(0xFF1A1B25)\nprivate val surfaceLightMediumContrast = Color(0xFFFBF8FF)\nprivate val onSurfaceLightMediumContrast = Color(0xFF1A1B25)\nprivate val surfaceVariantLightMediumContrast = Color(0xFFE2E0F7)\nprivate val onSurfaceVariantLightMediumContrast = Color(0xFF414153)\nprivate val outlineLightMediumContrast = Color(0xFF5D5E70)\nprivate val outlineVariantLightMediumContrast = Color(0xFF79798C)\nprivate val scrimLightMediumContrast = Color(0xFF000000)\nprivate val inverseSurfaceLightMediumContrast = Color(0xFF2F2F3B)\nprivate val inverseOnSurfaceLightMediumContrast = Color(0xFFF1EFFE)\nprivate val inversePrimaryLightMediumContrast = Color(0xFFBEC2FF)\nprivate val surfaceDimLightMediumContrast = Color(0xFFDAD8E7)\nprivate val surfaceBrightLightMediumContrast = Color(0xFFFBF8FF)\nprivate val surfaceContainerLowestLightMediumContrast = Color(0xFFFFFFFF)\nprivate val surfaceContainerLowLightMediumContrast = Color(0xFFF4F2FF)\nprivate val surfaceContainerLightMediumContrast = Color(0xFFEEECFB)\nprivate val surfaceContainerHighLightMediumContrast = Color(0xFFE9E6F6)\nprivate val surfaceContainerHighestLightMediumContrast = Color(0xFFE3E1F0)\n\nprivate val primaryLightHighContrast = Color(0xFF000380)\nprivate val onPrimaryLightHighContrast = Color(0xFFFFFFFF)\nprivate val primaryContainerLightHighContrast = Color(0xFF0008E0)\nprivate val onPrimaryContainerLightHighContrast = Color(0xFFFFFFFF)\nprivate val secondaryLightHighContrast = Color(0xFF090F72)\nprivate val onSecondaryLightHighContrast = Color(0xFFFFFFFF)\nprivate val secondaryContainerLightHighContrast = Color(0xFF313892)\nprivate val onSecondaryContainerLightHighContrast = Color(0xFFFFFFFF)\nprivate val tertiaryLightHighContrast = Color(0xFF3F004E)\nprivate val onTertiaryLightHighContrast = Color(0xFFFFFFFF)\nprivate val tertiaryContainerLightHighContrast = Color(0xFF73008C)\nprivate val onTertiaryContainerLightHighContrast = Color(0xFFFFFFFF)\nprivate val errorLightHighContrast = Color(0xFF4E0002)\nprivate val onErrorLightHighContrast = Color(0xFFFFFFFF)\nprivate val errorContainerLightHighContrast = Color(0xFF8C0009)\nprivate val onErrorContainerLightHighContrast = Color(0xFFFFFFFF)\nprivate val backgroundLightHighContrast = Color(0xFFFBF8FF)\nprivate val onBackgroundLightHighContrast = Color(0xFF1A1B25)\nprivate val surfaceLightHighContrast = Color(0xFFFBF8FF)\nprivate val onSurfaceLightHighContrast = Color(0xFF000000)\nprivate val surfaceVariantLightHighContrast = Color(0xFFE2E0F7)\nprivate val onSurfaceVariantLightHighContrast = Color(0xFF222333)\nprivate val outlineLightHighContrast = Color(0xFF414153)\nprivate val outlineVariantLightHighContrast = Color(0xFF414153)\nprivate val scrimLightHighContrast = Color(0xFF000000)\nprivate val inverseSurfaceLightHighContrast = Color(0xFF2F2F3B)\nprivate val inverseOnSurfaceLightHighContrast = Color(0xFFFFFFFF)\nprivate val inversePrimaryLightHighContrast = Color(0xFFEBEAFF)\nprivate val surfaceDimLightHighContrast = Color(0xFFDAD8E7)\nprivate val surfaceBrightLightHighContrast = Color(0xFFFBF8FF)\nprivate val surfaceContainerLowestLightHighContrast = Color(0xFFFFFFFF)\nprivate val surfaceContainerLowLightHighContrast = Color(0xFFF4F2FF)\nprivate val surfaceContainerLightHighContrast = Color(0xFFEEECFB)\nprivate val surfaceContainerHighLightHighContrast = Color(0xFFE9E6F6)\nprivate val surfaceContainerHighestLightHighContrast = Color(0xFFE3E1F0)\n\nprivate val primaryDark = Color(0xFFBEC2FF)\nprivate val onPrimaryDark = Color(0xFF0004AA)\nprivate val primaryContainerDark = Color(0xFF0007D8)\nprivate val onPrimaryContainerDark = Color(0xFFD0D2FF)\nprivate val secondaryDark = Color(0xFFBEC2FF)\nprivate val onSecondaryDark = Color(0xFF1D237F)\nprivate val secondaryContainerDark = Color(0xFF2E358F)\nprivate val onSecondaryContainerDark = Color(0xFFCFD1FF)\nprivate val tertiaryDark = Color(0xFFF6ADFF)\nprivate val onTertiaryDark = Color(0xFF560069)\nprivate val tertiaryContainerDark = Color(0xFF6F0087)\nprivate val onTertiaryContainerDark = Color(0xFFFAC3FF)\nprivate val errorDark = Color(0xFFFFB4AB)\nprivate val onErrorDark = Color(0xFF690005)\nprivate val errorContainerDark = Color(0xFF93000A)\nprivate val onErrorContainerDark = Color(0xFFFFDAD6)\nprivate val backgroundDark = Color(0xFF12131D)\nprivate val onBackgroundDark = Color(0xFFE3E1F0)\nprivate val surfaceDark = Color(0xFF12131D)\nprivate val onSurfaceDark = Color(0xFFE3E1F0)\nprivate val surfaceVariantDark = Color(0xFF454557)\nprivate val onSurfaceVariantDark = Color(0xFFC5C4DA)\nprivate val outlineDark = Color(0xFF8F8FA3)\nprivate val outlineVariantDark = Color(0xFF454557)\nprivate val scrimDark = Color(0xFF000000)\nprivate val inverseSurfaceDark = Color(0xFFE3E1F0)\nprivate val inverseOnSurfaceDark = Color(0xFF2F2F3B)\nprivate val inversePrimaryDark = Color(0xFF323DFF)\nprivate val surfaceDimDark = Color(0xFF12131D)\nprivate val surfaceBrightDark = Color(0xFF383844)\nprivate val surfaceContainerLowestDark = Color(0xFF0D0D17)\nprivate val surfaceContainerLowDark = Color(0xFF1A1B25)\nprivate val surfaceContainerDark = Color(0xFF1E1F29)\nprivate val surfaceContainerHighDark = Color(0xFF292934)\nprivate val surfaceContainerHighestDark = Color(0xFF34343F)\n\nprivate val primaryDarkMediumContrast = Color(0xFFC3C6FF)\nprivate val onPrimaryDarkMediumContrast = Color(0xFF00015D)\nprivate val primaryContainerDarkMediumContrast = Color(0xFF7B85FF)\nprivate val onPrimaryContainerDarkMediumContrast = Color(0xFF000000)\nprivate val secondaryDarkMediumContrast = Color(0xFFC3C6FF)\nprivate val onSecondaryDarkMediumContrast = Color(0xFF00015D)\nprivate val secondaryContainerDarkMediumContrast = Color(0xFF8188E7)\nprivate val onSecondaryContainerDarkMediumContrast = Color(0xFF000000)\nprivate val tertiaryDarkMediumContrast = Color(0xFFF7B3FF)\nprivate val onTertiaryDarkMediumContrast = Color(0xFF2C0037)\nprivate val tertiaryContainerDarkMediumContrast = Color(0xFFD063E7)\nprivate val onTertiaryContainerDarkMediumContrast = Color(0xFF000000)\nprivate val errorDarkMediumContrast = Color(0xFFFFBAB1)\nprivate val onErrorDarkMediumContrast = Color(0xFF370001)\nprivate val errorContainerDarkMediumContrast = Color(0xFFFF5449)\nprivate val onErrorContainerDarkMediumContrast = Color(0xFF000000)\nprivate val backgroundDarkMediumContrast = Color(0xFF12131D)\nprivate val onBackgroundDarkMediumContrast = Color(0xFFE3E1F0)\nprivate val surfaceDarkMediumContrast = Color(0xFF12131D)\nprivate val onSurfaceDarkMediumContrast = Color(0xFFFDF9FF)\nprivate val surfaceVariantDarkMediumContrast = Color(0xFF454557)\nprivate val onSurfaceVariantDarkMediumContrast = Color(0xFFCAC9DE)\nprivate val outlineDarkMediumContrast = Color(0xFFA1A1B6)\nprivate val outlineVariantDarkMediumContrast = Color(0xFF818195)\nprivate val scrimDarkMediumContrast = Color(0xFF000000)\nprivate val inverseSurfaceDarkMediumContrast = Color(0xFFE3E1F0)\nprivate val inverseOnSurfaceDarkMediumContrast = Color(0xFF292934)\nprivate val inversePrimaryDarkMediumContrast = Color(0xFF020BEE)\nprivate val surfaceDimDarkMediumContrast = Color(0xFF12131D)\nprivate val surfaceBrightDarkMediumContrast = Color(0xFF383844)\nprivate val surfaceContainerLowestDarkMediumContrast = Color(0xFF0D0D17)\nprivate val surfaceContainerLowDarkMediumContrast = Color(0xFF1A1B25)\nprivate val surfaceContainerDarkMediumContrast = Color(0xFF1E1F29)\nprivate val surfaceContainerHighDarkMediumContrast = Color(0xFF292934)\nprivate val surfaceContainerHighestDarkMediumContrast = Color(0xFF34343F)\n\nprivate val primaryDarkHighContrast = Color(0xFFFDF9FF)\nprivate val onPrimaryDarkHighContrast = Color(0xFF000000)\nprivate val primaryContainerDarkHighContrast = Color(0xFFC3C6FF)\nprivate val onPrimaryContainerDarkHighContrast = Color(0xFF000000)\nprivate val secondaryDarkHighContrast = Color(0xFFFDF9FF)\nprivate val onSecondaryDarkHighContrast = Color(0xFF000000)\nprivate val secondaryContainerDarkHighContrast = Color(0xFFC3C6FF)\nprivate val onSecondaryContainerDarkHighContrast = Color(0xFF000000)\nprivate val tertiaryDarkHighContrast = Color(0xFFFFF9FA)\nprivate val onTertiaryDarkHighContrast = Color(0xFF000000)\nprivate val tertiaryContainerDarkHighContrast = Color(0xFFF7B3FF)\nprivate val onTertiaryContainerDarkHighContrast = Color(0xFF000000)\nprivate val errorDarkHighContrast = Color(0xFFFFF9F9)\nprivate val onErrorDarkHighContrast = Color(0xFF000000)\nprivate val errorContainerDarkHighContrast = Color(0xFFFFBAB1)\nprivate val onErrorContainerDarkHighContrast = Color(0xFF000000)\nprivate val backgroundDarkHighContrast = Color(0xFF12131D)\nprivate val onBackgroundDarkHighContrast = Color(0xFFE3E1F0)\nprivate val surfaceDarkHighContrast = Color(0xFF12131D)\nprivate val onSurfaceDarkHighContrast = Color(0xFFFFFFFF)\nprivate val surfaceVariantDarkHighContrast = Color(0xFF454557)\nprivate val onSurfaceVariantDarkHighContrast = Color(0xFFFDF9FF)\nprivate val outlineDarkHighContrast = Color(0xFFCAC9DE)\nprivate val outlineVariantDarkHighContrast = Color(0xFFCAC9DE)\nprivate val scrimDarkHighContrast = Color(0xFF000000)\nprivate val inverseSurfaceDarkHighContrast = Color(0xFFE3E1F0)\nprivate val inverseOnSurfaceDarkHighContrast = Color(0xFF000000)\nprivate val inversePrimaryDarkHighContrast = Color(0xFF000497)\nprivate val surfaceDimDarkHighContrast = Color(0xFF12131D)\nprivate val surfaceBrightDarkHighContrast = Color(0xFF383844)\nprivate val surfaceContainerLowestDarkHighContrast = Color(0xFF0D0D17)\nprivate val surfaceContainerLowDarkHighContrast = Color(0xFF1A1B25)\nprivate val surfaceContainerDarkHighContrast = Color(0xFF1E1F29)\nprivate val surfaceContainerHighDarkHighContrast = Color(0xFF292934)\nprivate val surfaceContainerHighestDarkHighContrast = Color(0xFF34343F)\n\nprivate val sereneLightScheme = lightColorScheme(\n    primary = primaryLight,\n    onPrimary = onPrimaryLight,\n    primaryContainer = primaryContainerLight,\n    onPrimaryContainer = onPrimaryContainerLight,\n    secondary = secondaryLight,\n    onSecondary = onSecondaryLight,\n    secondaryContainer = secondaryContainerLight,\n    onSecondaryContainer = onSecondaryContainerLight,\n    tertiary = tertiaryLight,\n    onTertiary = onTertiaryLight,\n    tertiaryContainer = tertiaryContainerLight,\n    onTertiaryContainer = onTertiaryContainerLight,\n    error = errorLight,\n    onError = onErrorLight,\n    errorContainer = errorContainerLight,\n    onErrorContainer = onErrorContainerLight,\n    background = backgroundLight,\n    onBackground = onBackgroundLight,\n    surface = surfaceLight,\n    onSurface = onSurfaceLight,\n    surfaceVariant = surfaceVariantLight,\n    onSurfaceVariant = onSurfaceVariantLight,\n    outline = outlineLight,\n    outlineVariant = outlineVariantLight,\n    scrim = scrimLight,\n    inverseSurface = inverseSurfaceLight,\n    inverseOnSurface = inverseOnSurfaceLight,\n    inversePrimary = inversePrimaryLight,\n    surfaceDim = surfaceDimLight,\n    surfaceBright = surfaceBrightLight,\n    surfaceContainerLowest = surfaceContainerLowestLight,\n    surfaceContainerLow = surfaceContainerLowLight,\n    surfaceContainer = surfaceContainerLight,\n    surfaceContainerHigh = surfaceContainerHighLight,\n    surfaceContainerHighest = surfaceContainerHighestLight,\n)\n\nprivate val sereneDarkScheme = darkColorScheme(\n    primary = primaryDark,\n    onPrimary = onPrimaryDark,\n    primaryContainer = primaryContainerDark,\n    onPrimaryContainer = onPrimaryContainerDark,\n    secondary = secondaryDark,\n    onSecondary = onSecondaryDark,\n    secondaryContainer = secondaryContainerDark,\n    onSecondaryContainer = onSecondaryContainerDark,\n    tertiary = tertiaryDark,\n    onTertiary = onTertiaryDark,\n    tertiaryContainer = tertiaryContainerDark,\n    onTertiaryContainer = onTertiaryContainerDark,\n    error = errorDark,\n    onError = onErrorDark,\n    errorContainer = errorContainerDark,\n    onErrorContainer = onErrorContainerDark,\n    background = backgroundDark,\n    onBackground = onBackgroundDark,\n    surface = surfaceDark,\n    onSurface = onSurfaceDark,\n    surfaceVariant = surfaceVariantDark,\n    onSurfaceVariant = onSurfaceVariantDark,\n    outline = outlineDark,\n    outlineVariant = outlineVariantDark,\n    scrim = scrimDark,\n    inverseSurface = inverseSurfaceDark,\n    inverseOnSurface = inverseOnSurfaceDark,\n    inversePrimary = inversePrimaryDark,\n    surfaceDim = surfaceDimDark,\n    surfaceBright = surfaceBrightDark,\n    surfaceContainerLowest = surfaceContainerLowestDark,\n    surfaceContainerLow = surfaceContainerLowDark,\n    surfaceContainer = surfaceContainerDark,\n    surfaceContainerHigh = surfaceContainerHighDark,\n    surfaceContainerHighest = surfaceContainerHighestDark,\n)\n\nprivate val sereneMediumContrastLightColorScheme = lightColorScheme(\n    primary = primaryLightMediumContrast,\n    onPrimary = onPrimaryLightMediumContrast,\n    primaryContainer = primaryContainerLightMediumContrast,\n    onPrimaryContainer = onPrimaryContainerLightMediumContrast,\n    secondary = secondaryLightMediumContrast,\n    onSecondary = onSecondaryLightMediumContrast,\n    secondaryContainer = secondaryContainerLightMediumContrast,\n    onSecondaryContainer = onSecondaryContainerLightMediumContrast,\n    tertiary = tertiaryLightMediumContrast,\n    onTertiary = onTertiaryLightMediumContrast,\n    tertiaryContainer = tertiaryContainerLightMediumContrast,\n    onTertiaryContainer = onTertiaryContainerLightMediumContrast,\n    error = errorLightMediumContrast,\n    onError = onErrorLightMediumContrast,\n    errorContainer = errorContainerLightMediumContrast,\n    onErrorContainer = onErrorContainerLightMediumContrast,\n    background = backgroundLightMediumContrast,\n    onBackground = onBackgroundLightMediumContrast,\n    surface = surfaceLightMediumContrast,\n    onSurface = onSurfaceLightMediumContrast,\n    surfaceVariant = surfaceVariantLightMediumContrast,\n    onSurfaceVariant = onSurfaceVariantLightMediumContrast,\n    outline = outlineLightMediumContrast,\n    outlineVariant = outlineVariantLightMediumContrast,\n    scrim = scrimLightMediumContrast,\n    inverseSurface = inverseSurfaceLightMediumContrast,\n    inverseOnSurface = inverseOnSurfaceLightMediumContrast,\n    inversePrimary = inversePrimaryLightMediumContrast,\n    surfaceDim = surfaceDimLightMediumContrast,\n    surfaceBright = surfaceBrightLightMediumContrast,\n    surfaceContainerLowest = surfaceContainerLowestLightMediumContrast,\n    surfaceContainerLow = surfaceContainerLowLightMediumContrast,\n    surfaceContainer = surfaceContainerLightMediumContrast,\n    surfaceContainerHigh = surfaceContainerHighLightMediumContrast,\n    surfaceContainerHighest = surfaceContainerHighestLightMediumContrast,\n)\n\nprivate val sereneHighContrastLightColorScheme = lightColorScheme(\n    primary = primaryLightHighContrast,\n    onPrimary = onPrimaryLightHighContrast,\n    primaryContainer = primaryContainerLightHighContrast,\n    onPrimaryContainer = onPrimaryContainerLightHighContrast,\n    secondary = secondaryLightHighContrast,\n    onSecondary = onSecondaryLightHighContrast,\n    secondaryContainer = secondaryContainerLightHighContrast,\n    onSecondaryContainer = onSecondaryContainerLightHighContrast,\n    tertiary = tertiaryLightHighContrast,\n    onTertiary = onTertiaryLightHighContrast,\n    tertiaryContainer = tertiaryContainerLightHighContrast,\n    onTertiaryContainer = onTertiaryContainerLightHighContrast,\n    error = errorLightHighContrast,\n    onError = onErrorLightHighContrast,\n    errorContainer = errorContainerLightHighContrast,\n    onErrorContainer = onErrorContainerLightHighContrast,\n    background = backgroundLightHighContrast,\n    onBackground = onBackgroundLightHighContrast,\n    surface = surfaceLightHighContrast,\n    onSurface = onSurfaceLightHighContrast,\n    surfaceVariant = surfaceVariantLightHighContrast,\n    onSurfaceVariant = onSurfaceVariantLightHighContrast,\n    outline = outlineLightHighContrast,\n    outlineVariant = outlineVariantLightHighContrast,\n    scrim = scrimLightHighContrast,\n    inverseSurface = inverseSurfaceLightHighContrast,\n    inverseOnSurface = inverseOnSurfaceLightHighContrast,\n    inversePrimary = inversePrimaryLightHighContrast,\n    surfaceDim = surfaceDimLightHighContrast,\n    surfaceBright = surfaceBrightLightHighContrast,\n    surfaceContainerLowest = surfaceContainerLowestLightHighContrast,\n    surfaceContainerLow = surfaceContainerLowLightHighContrast,\n    surfaceContainer = surfaceContainerLightHighContrast,\n    surfaceContainerHigh = surfaceContainerHighLightHighContrast,\n    surfaceContainerHighest = surfaceContainerHighestLightHighContrast,\n)\n\nprivate val sereneMediumContrastDarkColorScheme = darkColorScheme(\n    primary = primaryDarkMediumContrast,\n    onPrimary = onPrimaryDarkMediumContrast,\n    primaryContainer = primaryContainerDarkMediumContrast,\n    onPrimaryContainer = onPrimaryContainerDarkMediumContrast,\n    secondary = secondaryDarkMediumContrast,\n    onSecondary = onSecondaryDarkMediumContrast,\n    secondaryContainer = secondaryContainerDarkMediumContrast,\n    onSecondaryContainer = onSecondaryContainerDarkMediumContrast,\n    tertiary = tertiaryDarkMediumContrast,\n    onTertiary = onTertiaryDarkMediumContrast,\n    tertiaryContainer = tertiaryContainerDarkMediumContrast,\n    onTertiaryContainer = onTertiaryContainerDarkMediumContrast,\n    error = errorDarkMediumContrast,\n    onError = onErrorDarkMediumContrast,\n    errorContainer = errorContainerDarkMediumContrast,\n    onErrorContainer = onErrorContainerDarkMediumContrast,\n    background = backgroundDarkMediumContrast,\n    onBackground = onBackgroundDarkMediumContrast,\n    surface = surfaceDarkMediumContrast,\n    onSurface = onSurfaceDarkMediumContrast,\n    surfaceVariant = surfaceVariantDarkMediumContrast,\n    onSurfaceVariant = onSurfaceVariantDarkMediumContrast,\n    outline = outlineDarkMediumContrast,\n    outlineVariant = outlineVariantDarkMediumContrast,\n    scrim = scrimDarkMediumContrast,\n    inverseSurface = inverseSurfaceDarkMediumContrast,\n    inverseOnSurface = inverseOnSurfaceDarkMediumContrast,\n    inversePrimary = inversePrimaryDarkMediumContrast,\n    surfaceDim = surfaceDimDarkMediumContrast,\n    surfaceBright = surfaceBrightDarkMediumContrast,\n    surfaceContainerLowest = surfaceContainerLowestDarkMediumContrast,\n    surfaceContainerLow = surfaceContainerLowDarkMediumContrast,\n    surfaceContainer = surfaceContainerDarkMediumContrast,\n    surfaceContainerHigh = surfaceContainerHighDarkMediumContrast,\n    surfaceContainerHighest = surfaceContainerHighestDarkMediumContrast,\n)\n\nprivate val sereneHighContrastDarkColorScheme = darkColorScheme(\n    primary = primaryDarkHighContrast,\n    onPrimary = onPrimaryDarkHighContrast,\n    primaryContainer = primaryContainerDarkHighContrast,\n    onPrimaryContainer = onPrimaryContainerDarkHighContrast,\n    secondary = secondaryDarkHighContrast,\n    onSecondary = onSecondaryDarkHighContrast,\n    secondaryContainer = secondaryContainerDarkHighContrast,\n    onSecondaryContainer = onSecondaryContainerDarkHighContrast,\n    tertiary = tertiaryDarkHighContrast,\n    onTertiary = onTertiaryDarkHighContrast,\n    tertiaryContainer = tertiaryContainerDarkHighContrast,\n    onTertiaryContainer = onTertiaryContainerDarkHighContrast,\n    error = errorDarkHighContrast,\n    onError = onErrorDarkHighContrast,\n    errorContainer = errorContainerDarkHighContrast,\n    onErrorContainer = onErrorContainerDarkHighContrast,\n    background = backgroundDarkHighContrast,\n    onBackground = onBackgroundDarkHighContrast,\n    surface = surfaceDarkHighContrast,\n    onSurface = onSurfaceDarkHighContrast,\n    surfaceVariant = surfaceVariantDarkHighContrast,\n    onSurfaceVariant = onSurfaceVariantDarkHighContrast,\n    outline = outlineDarkHighContrast,\n    outlineVariant = outlineVariantDarkHighContrast,\n    scrim = scrimDarkHighContrast,\n    inverseSurface = inverseSurfaceDarkHighContrast,\n    inverseOnSurface = inverseOnSurfaceDarkHighContrast,\n    inversePrimary = inversePrimaryDarkHighContrast,\n    surfaceDim = surfaceDimDarkHighContrast,\n    surfaceBright = surfaceBrightDarkHighContrast,\n    surfaceContainerLowest = surfaceContainerLowestDarkHighContrast,\n    surfaceContainerLow = surfaceContainerLowDarkHighContrast,\n    surfaceContainer = surfaceContainerDarkHighContrast,\n    surfaceContainerHigh = surfaceContainerHighDarkHighContrast,\n    surfaceContainerHighest = surfaceContainerHighestDarkHighContrast,\n)\n\nval sereneColorSchemes = ColorSchemes(\n    light = sereneLightScheme,\n    dark = sereneDarkScheme,\n    mediumContrastLight = sereneMediumContrastLightColorScheme,\n    mediumContrastDark = sereneMediumContrastDarkColorScheme,\n    highContrastLight = sereneHighContrastLightColorScheme,\n    highContrastDark = sereneHighContrastDarkColorScheme,\n    nameRes = R.string.label_color_scheme_serene,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/theme/colorSchemes/Twilight.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.theme.colorSchemes\n\nimport androidx.compose.material3.darkColorScheme\nimport androidx.compose.material3.lightColorScheme\nimport androidx.compose.ui.graphics.Color\nimport com.looker.kenko.R\n\n// Purple & Orange\n\nprivate val primaryLight = Color(0xFF7900A9)\nprivate val onPrimaryLight = Color(0xFFFFFFFF)\nprivate val primaryContainerLight = Color(0xFFA92CE2)\nprivate val onPrimaryContainerLight = Color(0xFFFFFFFF)\nprivate val secondaryLight = Color(0xFF80459B)\nprivate val onSecondaryLight = Color(0xFFFFFFFF)\nprivate val secondaryContainerLight = Color(0xFFE7ABFF)\nprivate val onSecondaryContainerLight = Color(0xFF4F146B)\nprivate val tertiaryLight = Color(0xFFA40022)\nprivate val onTertiaryLight = Color(0xFFFFFFFF)\nprivate val tertiaryContainerLight = Color(0xFFE0273C)\nprivate val onTertiaryContainerLight = Color(0xFFFFFFFF)\nprivate val errorLight = Color(0xFFBA1A1A)\nprivate val onErrorLight = Color(0xFFFFFFFF)\nprivate val errorContainerLight = Color(0xFFFFDAD6)\nprivate val onErrorContainerLight = Color(0xFF410002)\nprivate val backgroundLight = Color(0xFFFFF7FB)\nprivate val onBackgroundLight = Color(0xFF211923)\nprivate val surfaceLight = Color(0xFFFFF7FB)\nprivate val onSurfaceLight = Color(0xFF211923)\nprivate val surfaceVariantLight = Color(0xFFF0DCF2)\nprivate val onSurfaceVariantLight = Color(0xFF4F4253)\nprivate val outlineLight = Color(0xFF817285)\nprivate val outlineVariantLight = Color(0xFFD3C1D5)\nprivate val scrimLight = Color(0xFF000000)\nprivate val inverseSurfaceLight = Color(0xFF362D38)\nprivate val inverseOnSurfaceLight = Color(0xFFFBECFB)\nprivate val inversePrimaryLight = Color(0xFFEAB2FF)\nprivate val surfaceDimLight = Color(0xFFE4D6E4)\nprivate val surfaceBrightLight = Color(0xFFFFF7FB)\nprivate val surfaceContainerLowestLight = Color(0xFFFFFFFF)\nprivate val surfaceContainerLowLight = Color(0xFFFEEFFE)\nprivate val surfaceContainerLight = Color(0xFFF8E9F8)\nprivate val surfaceContainerHighLight = Color(0xFFF2E4F2)\nprivate val surfaceContainerHighestLight = Color(0xFFEDDEED)\n\nprivate val primaryLightMediumContrast = Color(0xFF6D0099)\nprivate val onPrimaryLightMediumContrast = Color(0xFFFFFFFF)\nprivate val primaryContainerLightMediumContrast = Color(0xFFA92CE2)\nprivate val onPrimaryContainerLightMediumContrast = Color(0xFFFFFFFF)\nprivate val secondaryLightMediumContrast = Color(0xFF62287D)\nprivate val onSecondaryLightMediumContrast = Color(0xFFFFFFFF)\nprivate val secondaryContainerLightMediumContrast = Color(0xFF985CB3)\nprivate val onSecondaryContainerLightMediumContrast = Color(0xFFFFFFFF)\nprivate val tertiaryLightMediumContrast = Color(0xFF8B001B)\nprivate val onTertiaryLightMediumContrast = Color(0xFFFFFFFF)\nprivate val tertiaryContainerLightMediumContrast = Color(0xFFE0273C)\nprivate val onTertiaryContainerLightMediumContrast = Color(0xFFFFFFFF)\nprivate val errorLightMediumContrast = Color(0xFF8C0009)\nprivate val onErrorLightMediumContrast = Color(0xFFFFFFFF)\nprivate val errorContainerLightMediumContrast = Color(0xFFDA342E)\nprivate val onErrorContainerLightMediumContrast = Color(0xFFFFFFFF)\nprivate val backgroundLightMediumContrast = Color(0xFFFFF7FB)\nprivate val onBackgroundLightMediumContrast = Color(0xFF211923)\nprivate val surfaceLightMediumContrast = Color(0xFFFFF7FB)\nprivate val onSurfaceLightMediumContrast = Color(0xFF211923)\nprivate val surfaceVariantLightMediumContrast = Color(0xFFF0DCF2)\nprivate val onSurfaceVariantLightMediumContrast = Color(0xFF4B3E4F)\nprivate val outlineLightMediumContrast = Color(0xFF685A6C)\nprivate val outlineVariantLightMediumContrast = Color(0xFF857688)\nprivate val scrimLightMediumContrast = Color(0xFF000000)\nprivate val inverseSurfaceLightMediumContrast = Color(0xFF362D38)\nprivate val inverseOnSurfaceLightMediumContrast = Color(0xFFFBECFB)\nprivate val inversePrimaryLightMediumContrast = Color(0xFFEAB2FF)\nprivate val surfaceDimLightMediumContrast = Color(0xFFE4D6E4)\nprivate val surfaceBrightLightMediumContrast = Color(0xFFFFF7FB)\nprivate val surfaceContainerLowestLightMediumContrast = Color(0xFFFFFFFF)\nprivate val surfaceContainerLowLightMediumContrast = Color(0xFFFEEFFE)\nprivate val surfaceContainerLightMediumContrast = Color(0xFFF8E9F8)\nprivate val surfaceContainerHighLightMediumContrast = Color(0xFFF2E4F2)\nprivate val surfaceContainerHighestLightMediumContrast = Color(0xFFEDDEED)\n\nprivate val primaryLightHighContrast = Color(0xFF3C0055)\nprivate val onPrimaryLightHighContrast = Color(0xFFFFFFFF)\nprivate val primaryContainerLightHighContrast = Color(0xFF6D0099)\nprivate val onPrimaryContainerLightHighContrast = Color(0xFFFFFFFF)\nprivate val secondaryLightHighContrast = Color(0xFF3C0055)\nprivate val onSecondaryLightHighContrast = Color(0xFFFFFFFF)\nprivate val secondaryContainerLightHighContrast = Color(0xFF62287D)\nprivate val onSecondaryContainerLightHighContrast = Color(0xFFFFFFFF)\nprivate val tertiaryLightHighContrast = Color(0xFF4D000A)\nprivate val onTertiaryLightHighContrast = Color(0xFFFFFFFF)\nprivate val tertiaryContainerLightHighContrast = Color(0xFF8B001B)\nprivate val onTertiaryContainerLightHighContrast = Color(0xFFFFFFFF)\nprivate val errorLightHighContrast = Color(0xFF4E0002)\nprivate val onErrorLightHighContrast = Color(0xFFFFFFFF)\nprivate val errorContainerLightHighContrast = Color(0xFF8C0009)\nprivate val onErrorContainerLightHighContrast = Color(0xFFFFFFFF)\nprivate val backgroundLightHighContrast = Color(0xFFFFF7FB)\nprivate val onBackgroundLightHighContrast = Color(0xFF211923)\nprivate val surfaceLightHighContrast = Color(0xFFFFF7FB)\nprivate val onSurfaceLightHighContrast = Color(0xFF000000)\nprivate val surfaceVariantLightHighContrast = Color(0xFFF0DCF2)\nprivate val onSurfaceVariantLightHighContrast = Color(0xFF2B202F)\nprivate val outlineLightHighContrast = Color(0xFF4B3E4F)\nprivate val outlineVariantLightHighContrast = Color(0xFF4B3E4F)\nprivate val scrimLightHighContrast = Color(0xFF000000)\nprivate val inverseSurfaceLightHighContrast = Color(0xFF362D38)\nprivate val inverseOnSurfaceLightHighContrast = Color(0xFFFFFFFF)\nprivate val inversePrimaryLightHighContrast = Color(0xFFFBE5FF)\nprivate val surfaceDimLightHighContrast = Color(0xFFE4D6E4)\nprivate val surfaceBrightLightHighContrast = Color(0xFFFFF7FB)\nprivate val surfaceContainerLowestLightHighContrast = Color(0xFFFFFFFF)\nprivate val surfaceContainerLowLightHighContrast = Color(0xFFFEEFFE)\nprivate val surfaceContainerLightHighContrast = Color(0xFFF8E9F8)\nprivate val surfaceContainerHighLightHighContrast = Color(0xFFF2E4F2)\nprivate val surfaceContainerHighestLightHighContrast = Color(0xFFEDDEED)\n\nprivate val primaryDark = Color(0xFFEAB2FF)\nprivate val onPrimaryDark = Color(0xFF510073)\nprivate val primaryContainerDark = Color(0xFF8E00C5)\nprivate val onPrimaryContainerDark = Color(0xFFFFFEFF)\nprivate val secondaryDark = Color(0xFFEAB2FF)\nprivate val onSecondaryDark = Color(0xFF4D1169)\nprivate val secondaryContainerDark = Color(0xFF5C2277)\nprivate val onSecondaryContainerDark = Color(0xFFEFC2FF)\nprivate val tertiaryDark = Color(0xFFFFB3B1)\nprivate val onTertiaryDark = Color(0xFF680012)\nprivate val tertiaryContainerDark = Color(0xFFE0273C)\nprivate val onTertiaryContainerDark = Color(0xFFFFFFFF)\nprivate val errorDark = Color(0xFFFFB4AB)\nprivate val onErrorDark = Color(0xFF690005)\nprivate val errorContainerDark = Color(0xFF93000A)\nprivate val onErrorContainerDark = Color(0xFFFFDAD6)\nprivate val backgroundDark = Color(0xFF18111B)\nprivate val onBackgroundDark = Color(0xFFEDDEED)\nprivate val surfaceDark = Color(0xFF18111B)\nprivate val onSurfaceDark = Color(0xFFEDDEED)\nprivate val surfaceVariantDark = Color(0xFF4F4253)\nprivate val onSurfaceVariantDark = Color(0xFFD3C1D5)\nprivate val outlineDark = Color(0xFF9C8B9F)\nprivate val outlineVariantDark = Color(0xFF4F4253)\nprivate val scrimDark = Color(0xFF000000)\nprivate val inverseSurfaceDark = Color(0xFFEDDEED)\nprivate val inverseOnSurfaceDark = Color(0xFF362D38)\nprivate val inversePrimaryDark = Color(0xFF9708D0)\nprivate val surfaceDimDark = Color(0xFF18111B)\nprivate val surfaceBrightDark = Color(0xFF3F3641)\nprivate val surfaceContainerLowestDark = Color(0xFF130C15)\nprivate val surfaceContainerLowDark = Color(0xFF211923)\nprivate val surfaceContainerDark = Color(0xFF251D27)\nprivate val surfaceContainerHighDark = Color(0xFF2F2732)\nprivate val surfaceContainerHighestDark = Color(0xFF3B323D)\n\nprivate val primaryDarkMediumContrast = Color(0xFFECB8FF)\nprivate val onPrimaryDarkMediumContrast = Color(0xFF29003D)\nprivate val primaryContainerDarkMediumContrast = Color(0xFFCC5FFF)\nprivate val onPrimaryContainerDarkMediumContrast = Color(0xFF000000)\nprivate val secondaryDarkMediumContrast = Color(0xFFECB8FF)\nprivate val onSecondaryDarkMediumContrast = Color(0xFF29003D)\nprivate val secondaryContainerDarkMediumContrast = Color(0xFFB778D2)\nprivate val onSecondaryContainerDarkMediumContrast = Color(0xFF000000)\nprivate val tertiaryDarkMediumContrast = Color(0xFFFFB9B7)\nprivate val onTertiaryDarkMediumContrast = Color(0xFF370005)\nprivate val tertiaryContainerDarkMediumContrast = Color(0xFFFF525B)\nprivate val onTertiaryContainerDarkMediumContrast = Color(0xFF000000)\nprivate val errorDarkMediumContrast = Color(0xFFFFBAB1)\nprivate val onErrorDarkMediumContrast = Color(0xFF370001)\nprivate val errorContainerDarkMediumContrast = Color(0xFFFF5449)\nprivate val onErrorContainerDarkMediumContrast = Color(0xFF000000)\nprivate val backgroundDarkMediumContrast = Color(0xFF18111B)\nprivate val onBackgroundDarkMediumContrast = Color(0xFFEDDEED)\nprivate val surfaceDarkMediumContrast = Color(0xFF18111B)\nprivate val onSurfaceDarkMediumContrast = Color(0xFFFFF9FB)\nprivate val surfaceVariantDarkMediumContrast = Color(0xFF4F4253)\nprivate val onSurfaceVariantDarkMediumContrast = Color(0xFFD7C5DA)\nprivate val outlineDarkMediumContrast = Color(0xFFAE9DB1)\nprivate val outlineVariantDarkMediumContrast = Color(0xFF8E7E91)\nprivate val scrimDarkMediumContrast = Color(0xFF000000)\nprivate val inverseSurfaceDarkMediumContrast = Color(0xFFEDDEED)\nprivate val inverseOnSurfaceDarkMediumContrast = Color(0xFF2F2732)\nprivate val inversePrimaryDarkMediumContrast = Color(0xFF7500A3)\nprivate val surfaceDimDarkMediumContrast = Color(0xFF18111B)\nprivate val surfaceBrightDarkMediumContrast = Color(0xFF3F3641)\nprivate val surfaceContainerLowestDarkMediumContrast = Color(0xFF130C15)\nprivate val surfaceContainerLowDarkMediumContrast = Color(0xFF211923)\nprivate val surfaceContainerDarkMediumContrast = Color(0xFF251D27)\nprivate val surfaceContainerHighDarkMediumContrast = Color(0xFF2F2732)\nprivate val surfaceContainerHighestDarkMediumContrast = Color(0xFF3B323D)\n\nprivate val primaryDarkHighContrast = Color(0xFFFFF9FB)\nprivate val onPrimaryDarkHighContrast = Color(0xFF000000)\nprivate val primaryContainerDarkHighContrast = Color(0xFFECB8FF)\nprivate val onPrimaryContainerDarkHighContrast = Color(0xFF000000)\nprivate val secondaryDarkHighContrast = Color(0xFFFFF9FB)\nprivate val onSecondaryDarkHighContrast = Color(0xFF000000)\nprivate val secondaryContainerDarkHighContrast = Color(0xFFECB8FF)\nprivate val onSecondaryContainerDarkHighContrast = Color(0xFF000000)\nprivate val tertiaryDarkHighContrast = Color(0xFFFFF9F9)\nprivate val onTertiaryDarkHighContrast = Color(0xFF000000)\nprivate val tertiaryContainerDarkHighContrast = Color(0xFFFFB9B7)\nprivate val onTertiaryContainerDarkHighContrast = Color(0xFF000000)\nprivate val errorDarkHighContrast = Color(0xFFFFF9F9)\nprivate val onErrorDarkHighContrast = Color(0xFF000000)\nprivate val errorContainerDarkHighContrast = Color(0xFFFFBAB1)\nprivate val onErrorContainerDarkHighContrast = Color(0xFF000000)\nprivate val backgroundDarkHighContrast = Color(0xFF18111B)\nprivate val onBackgroundDarkHighContrast = Color(0xFFEDDEED)\nprivate val surfaceDarkHighContrast = Color(0xFF18111B)\nprivate val onSurfaceDarkHighContrast = Color(0xFFFFFFFF)\nprivate val surfaceVariantDarkHighContrast = Color(0xFF4F4253)\nprivate val onSurfaceVariantDarkHighContrast = Color(0xFFFFF9FB)\nprivate val outlineDarkHighContrast = Color(0xFFD7C5DA)\nprivate val outlineVariantDarkHighContrast = Color(0xFFD7C5DA)\nprivate val scrimDarkHighContrast = Color(0xFF000000)\nprivate val inverseSurfaceDarkHighContrast = Color(0xFFEDDEED)\nprivate val inverseOnSurfaceDarkHighContrast = Color(0xFF000000)\nprivate val inversePrimaryDarkHighContrast = Color(0xFF470065)\nprivate val surfaceDimDarkHighContrast = Color(0xFF18111B)\nprivate val surfaceBrightDarkHighContrast = Color(0xFF3F3641)\nprivate val surfaceContainerLowestDarkHighContrast = Color(0xFF130C15)\nprivate val surfaceContainerLowDarkHighContrast = Color(0xFF211923)\nprivate val surfaceContainerDarkHighContrast = Color(0xFF251D27)\nprivate val surfaceContainerHighDarkHighContrast = Color(0xFF2F2732)\nprivate val surfaceContainerHighestDarkHighContrast = Color(0xFF3B323D)\n\nprivate val twilightLightScheme = lightColorScheme(\n    primary = primaryLight,\n    onPrimary = onPrimaryLight,\n    primaryContainer = primaryContainerLight,\n    onPrimaryContainer = onPrimaryContainerLight,\n    secondary = secondaryLight,\n    onSecondary = onSecondaryLight,\n    secondaryContainer = secondaryContainerLight,\n    onSecondaryContainer = onSecondaryContainerLight,\n    tertiary = tertiaryLight,\n    onTertiary = onTertiaryLight,\n    tertiaryContainer = tertiaryContainerLight,\n    onTertiaryContainer = onTertiaryContainerLight,\n    error = errorLight,\n    onError = onErrorLight,\n    errorContainer = errorContainerLight,\n    onErrorContainer = onErrorContainerLight,\n    background = backgroundLight,\n    onBackground = onBackgroundLight,\n    surface = surfaceLight,\n    onSurface = onSurfaceLight,\n    surfaceVariant = surfaceVariantLight,\n    onSurfaceVariant = onSurfaceVariantLight,\n    outline = outlineLight,\n    outlineVariant = outlineVariantLight,\n    scrim = scrimLight,\n    inverseSurface = inverseSurfaceLight,\n    inverseOnSurface = inverseOnSurfaceLight,\n    inversePrimary = inversePrimaryLight,\n    surfaceDim = surfaceDimLight,\n    surfaceBright = surfaceBrightLight,\n    surfaceContainerLowest = surfaceContainerLowestLight,\n    surfaceContainerLow = surfaceContainerLowLight,\n    surfaceContainer = surfaceContainerLight,\n    surfaceContainerHigh = surfaceContainerHighLight,\n    surfaceContainerHighest = surfaceContainerHighestLight,\n)\n\nprivate val twilightDarkScheme = darkColorScheme(\n    primary = primaryDark,\n    onPrimary = onPrimaryDark,\n    primaryContainer = primaryContainerDark,\n    onPrimaryContainer = onPrimaryContainerDark,\n    secondary = secondaryDark,\n    onSecondary = onSecondaryDark,\n    secondaryContainer = secondaryContainerDark,\n    onSecondaryContainer = onSecondaryContainerDark,\n    tertiary = tertiaryDark,\n    onTertiary = onTertiaryDark,\n    tertiaryContainer = tertiaryContainerDark,\n    onTertiaryContainer = onTertiaryContainerDark,\n    error = errorDark,\n    onError = onErrorDark,\n    errorContainer = errorContainerDark,\n    onErrorContainer = onErrorContainerDark,\n    background = backgroundDark,\n    onBackground = onBackgroundDark,\n    surface = surfaceDark,\n    onSurface = onSurfaceDark,\n    surfaceVariant = surfaceVariantDark,\n    onSurfaceVariant = onSurfaceVariantDark,\n    outline = outlineDark,\n    outlineVariant = outlineVariantDark,\n    scrim = scrimDark,\n    inverseSurface = inverseSurfaceDark,\n    inverseOnSurface = inverseOnSurfaceDark,\n    inversePrimary = inversePrimaryDark,\n    surfaceDim = surfaceDimDark,\n    surfaceBright = surfaceBrightDark,\n    surfaceContainerLowest = surfaceContainerLowestDark,\n    surfaceContainerLow = surfaceContainerLowDark,\n    surfaceContainer = surfaceContainerDark,\n    surfaceContainerHigh = surfaceContainerHighDark,\n    surfaceContainerHighest = surfaceContainerHighestDark,\n)\n\nprivate val twilightMediumContrastLightColorScheme = lightColorScheme(\n    primary = primaryLightMediumContrast,\n    onPrimary = onPrimaryLightMediumContrast,\n    primaryContainer = primaryContainerLightMediumContrast,\n    onPrimaryContainer = onPrimaryContainerLightMediumContrast,\n    secondary = secondaryLightMediumContrast,\n    onSecondary = onSecondaryLightMediumContrast,\n    secondaryContainer = secondaryContainerLightMediumContrast,\n    onSecondaryContainer = onSecondaryContainerLightMediumContrast,\n    tertiary = tertiaryLightMediumContrast,\n    onTertiary = onTertiaryLightMediumContrast,\n    tertiaryContainer = tertiaryContainerLightMediumContrast,\n    onTertiaryContainer = onTertiaryContainerLightMediumContrast,\n    error = errorLightMediumContrast,\n    onError = onErrorLightMediumContrast,\n    errorContainer = errorContainerLightMediumContrast,\n    onErrorContainer = onErrorContainerLightMediumContrast,\n    background = backgroundLightMediumContrast,\n    onBackground = onBackgroundLightMediumContrast,\n    surface = surfaceLightMediumContrast,\n    onSurface = onSurfaceLightMediumContrast,\n    surfaceVariant = surfaceVariantLightMediumContrast,\n    onSurfaceVariant = onSurfaceVariantLightMediumContrast,\n    outline = outlineLightMediumContrast,\n    outlineVariant = outlineVariantLightMediumContrast,\n    scrim = scrimLightMediumContrast,\n    inverseSurface = inverseSurfaceLightMediumContrast,\n    inverseOnSurface = inverseOnSurfaceLightMediumContrast,\n    inversePrimary = inversePrimaryLightMediumContrast,\n    surfaceDim = surfaceDimLightMediumContrast,\n    surfaceBright = surfaceBrightLightMediumContrast,\n    surfaceContainerLowest = surfaceContainerLowestLightMediumContrast,\n    surfaceContainerLow = surfaceContainerLowLightMediumContrast,\n    surfaceContainer = surfaceContainerLightMediumContrast,\n    surfaceContainerHigh = surfaceContainerHighLightMediumContrast,\n    surfaceContainerHighest = surfaceContainerHighestLightMediumContrast,\n)\n\nprivate val twilightHighContrastLightColorScheme = lightColorScheme(\n    primary = primaryLightHighContrast,\n    onPrimary = onPrimaryLightHighContrast,\n    primaryContainer = primaryContainerLightHighContrast,\n    onPrimaryContainer = onPrimaryContainerLightHighContrast,\n    secondary = secondaryLightHighContrast,\n    onSecondary = onSecondaryLightHighContrast,\n    secondaryContainer = secondaryContainerLightHighContrast,\n    onSecondaryContainer = onSecondaryContainerLightHighContrast,\n    tertiary = tertiaryLightHighContrast,\n    onTertiary = onTertiaryLightHighContrast,\n    tertiaryContainer = tertiaryContainerLightHighContrast,\n    onTertiaryContainer = onTertiaryContainerLightHighContrast,\n    error = errorLightHighContrast,\n    onError = onErrorLightHighContrast,\n    errorContainer = errorContainerLightHighContrast,\n    onErrorContainer = onErrorContainerLightHighContrast,\n    background = backgroundLightHighContrast,\n    onBackground = onBackgroundLightHighContrast,\n    surface = surfaceLightHighContrast,\n    onSurface = onSurfaceLightHighContrast,\n    surfaceVariant = surfaceVariantLightHighContrast,\n    onSurfaceVariant = onSurfaceVariantLightHighContrast,\n    outline = outlineLightHighContrast,\n    outlineVariant = outlineVariantLightHighContrast,\n    scrim = scrimLightHighContrast,\n    inverseSurface = inverseSurfaceLightHighContrast,\n    inverseOnSurface = inverseOnSurfaceLightHighContrast,\n    inversePrimary = inversePrimaryLightHighContrast,\n    surfaceDim = surfaceDimLightHighContrast,\n    surfaceBright = surfaceBrightLightHighContrast,\n    surfaceContainerLowest = surfaceContainerLowestLightHighContrast,\n    surfaceContainerLow = surfaceContainerLowLightHighContrast,\n    surfaceContainer = surfaceContainerLightHighContrast,\n    surfaceContainerHigh = surfaceContainerHighLightHighContrast,\n    surfaceContainerHighest = surfaceContainerHighestLightHighContrast,\n)\n\nprivate val twilightMediumContrastDarkColorScheme = darkColorScheme(\n    primary = primaryDarkMediumContrast,\n    onPrimary = onPrimaryDarkMediumContrast,\n    primaryContainer = primaryContainerDarkMediumContrast,\n    onPrimaryContainer = onPrimaryContainerDarkMediumContrast,\n    secondary = secondaryDarkMediumContrast,\n    onSecondary = onSecondaryDarkMediumContrast,\n    secondaryContainer = secondaryContainerDarkMediumContrast,\n    onSecondaryContainer = onSecondaryContainerDarkMediumContrast,\n    tertiary = tertiaryDarkMediumContrast,\n    onTertiary = onTertiaryDarkMediumContrast,\n    tertiaryContainer = tertiaryContainerDarkMediumContrast,\n    onTertiaryContainer = onTertiaryContainerDarkMediumContrast,\n    error = errorDarkMediumContrast,\n    onError = onErrorDarkMediumContrast,\n    errorContainer = errorContainerDarkMediumContrast,\n    onErrorContainer = onErrorContainerDarkMediumContrast,\n    background = backgroundDarkMediumContrast,\n    onBackground = onBackgroundDarkMediumContrast,\n    surface = surfaceDarkMediumContrast,\n    onSurface = onSurfaceDarkMediumContrast,\n    surfaceVariant = surfaceVariantDarkMediumContrast,\n    onSurfaceVariant = onSurfaceVariantDarkMediumContrast,\n    outline = outlineDarkMediumContrast,\n    outlineVariant = outlineVariantDarkMediumContrast,\n    scrim = scrimDarkMediumContrast,\n    inverseSurface = inverseSurfaceDarkMediumContrast,\n    inverseOnSurface = inverseOnSurfaceDarkMediumContrast,\n    inversePrimary = inversePrimaryDarkMediumContrast,\n    surfaceDim = surfaceDimDarkMediumContrast,\n    surfaceBright = surfaceBrightDarkMediumContrast,\n    surfaceContainerLowest = surfaceContainerLowestDarkMediumContrast,\n    surfaceContainerLow = surfaceContainerLowDarkMediumContrast,\n    surfaceContainer = surfaceContainerDarkMediumContrast,\n    surfaceContainerHigh = surfaceContainerHighDarkMediumContrast,\n    surfaceContainerHighest = surfaceContainerHighestDarkMediumContrast,\n)\n\nprivate val twilightHighContrastDarkColorScheme = darkColorScheme(\n    primary = primaryDarkHighContrast,\n    onPrimary = onPrimaryDarkHighContrast,\n    primaryContainer = primaryContainerDarkHighContrast,\n    onPrimaryContainer = onPrimaryContainerDarkHighContrast,\n    secondary = secondaryDarkHighContrast,\n    onSecondary = onSecondaryDarkHighContrast,\n    secondaryContainer = secondaryContainerDarkHighContrast,\n    onSecondaryContainer = onSecondaryContainerDarkHighContrast,\n    tertiary = tertiaryDarkHighContrast,\n    onTertiary = onTertiaryDarkHighContrast,\n    tertiaryContainer = tertiaryContainerDarkHighContrast,\n    onTertiaryContainer = onTertiaryContainerDarkHighContrast,\n    error = errorDarkHighContrast,\n    onError = onErrorDarkHighContrast,\n    errorContainer = errorContainerDarkHighContrast,\n    onErrorContainer = onErrorContainerDarkHighContrast,\n    background = backgroundDarkHighContrast,\n    onBackground = onBackgroundDarkHighContrast,\n    surface = surfaceDarkHighContrast,\n    onSurface = onSurfaceDarkHighContrast,\n    surfaceVariant = surfaceVariantDarkHighContrast,\n    onSurfaceVariant = onSurfaceVariantDarkHighContrast,\n    outline = outlineDarkHighContrast,\n    outlineVariant = outlineVariantDarkHighContrast,\n    scrim = scrimDarkHighContrast,\n    inverseSurface = inverseSurfaceDarkHighContrast,\n    inverseOnSurface = inverseOnSurfaceDarkHighContrast,\n    inversePrimary = inversePrimaryDarkHighContrast,\n    surfaceDim = surfaceDimDarkHighContrast,\n    surfaceBright = surfaceBrightDarkHighContrast,\n    surfaceContainerLowest = surfaceContainerLowestDarkHighContrast,\n    surfaceContainerLow = surfaceContainerLowDarkHighContrast,\n    surfaceContainer = surfaceContainerDarkHighContrast,\n    surfaceContainerHigh = surfaceContainerHighDarkHighContrast,\n    surfaceContainerHighest = surfaceContainerHighestDarkHighContrast,\n)\n\nval twilightColorSchemes = ColorSchemes(\n    light = twilightLightScheme,\n    dark = twilightDarkScheme,\n    mediumContrastLight = twilightMediumContrastLightColorScheme,\n    mediumContrastDark = twilightMediumContrastDarkColorScheme,\n    highContrastLight = twilightHighContrastLightColorScheme,\n    highContrastDark = twilightHighContrastDarkColorScheme,\n    nameRes = R.string.label_color_scheme_twilight,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/ui/theme/colorSchemes/Zestful.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.ui.theme.colorSchemes\n\nimport androidx.compose.material3.darkColorScheme\nimport androidx.compose.material3.lightColorScheme\nimport androidx.compose.ui.graphics.Color\nimport com.looker.kenko.R\n\n// Lime & Purple\n\nprivate val primaryLight = Color(0xFF63611E)\nprivate val onPrimaryLight = Color(0xFFFFFFFF)\nprivate val primaryContainerLight = Color(0xFFF7F3A1)\nprivate val onPrimaryContainerLight = Color(0xFF545210)\nprivate val secondaryLight = Color(0xFF62603E)\nprivate val onSecondaryLight = Color(0xFFFFFFFF)\nprivate val secondaryContainerLight = Color(0xFFF5F1C6)\nprivate val onSecondaryContainerLight = Color(0xFF525131)\nprivate val tertiaryLight = Color(0xFF70576B)\nprivate val onTertiaryLight = Color(0xFFFFFFFF)\nprivate val tertiaryContainerLight = Color(0xFFE5C4DC)\nprivate val onTertiaryContainerLight = Color(0xFF4A3447)\nprivate val errorLight = Color(0xFFBA1A1A)\nprivate val onErrorLight = Color(0xFFFFFFFF)\nprivate val errorContainerLight = Color(0xFFFFDAD6)\nprivate val onErrorContainerLight = Color(0xFF410002)\nprivate val backgroundLight = Color(0xFFFDF9F0)\nprivate val onBackgroundLight = Color(0xFF1C1C16)\nprivate val surfaceLight = Color(0xFFFDF9F0)\nprivate val onSurfaceLight = Color(0xFF1C1C16)\nprivate val surfaceVariantLight = Color(0xFFE7E3D0)\nprivate val onSurfaceVariantLight = Color(0xFF49473A)\nprivate val outlineLight = Color(0xFF7A7768)\nprivate val outlineVariantLight = Color(0xFFCAC7B5)\nprivate val scrimLight = Color(0xFF000000)\nprivate val inverseSurfaceLight = Color(0xFF31302A)\nprivate val inverseOnSurfaceLight = Color(0xFFF4F0E7)\nprivate val inversePrimaryLight = Color(0xFFCDCA7C)\nprivate val surfaceDimLight = Color(0xFFDDDAD1)\nprivate val surfaceBrightLight = Color(0xFFFDF9F0)\nprivate val surfaceContainerLowestLight = Color(0xFFFFFFFF)\nprivate val surfaceContainerLowLight = Color(0xFFF7F3EA)\nprivate val surfaceContainerLight = Color(0xFFF2EEE4)\nprivate val surfaceContainerHighLight = Color(0xFFECE8DF)\nprivate val surfaceContainerHighestLight = Color(0xFFE6E2D9)\n\nprivate val primaryLightMediumContrast = Color(0xFF474502)\nprivate val onPrimaryLightMediumContrast = Color(0xFFFFFFFF)\nprivate val primaryContainerLightMediumContrast = Color(0xFF7A7733)\nprivate val onPrimaryContainerLightMediumContrast = Color(0xFFFFFFFF)\nprivate val secondaryLightMediumContrast = Color(0xFF464425)\nprivate val onSecondaryLightMediumContrast = Color(0xFFFFFFFF)\nprivate val secondaryContainerLightMediumContrast = Color(0xFF787653)\nprivate val onSecondaryContainerLightMediumContrast = Color(0xFFFFFFFF)\nprivate val tertiaryLightMediumContrast = Color(0xFF533B4F)\nprivate val onTertiaryLightMediumContrast = Color(0xFFFFFFFF)\nprivate val tertiaryContainerLightMediumContrast = Color(0xFF876C82)\nprivate val onTertiaryContainerLightMediumContrast = Color(0xFFFFFFFF)\nprivate val errorLightMediumContrast = Color(0xFF8C0009)\nprivate val onErrorLightMediumContrast = Color(0xFFFFFFFF)\nprivate val errorContainerLightMediumContrast = Color(0xFFDA342E)\nprivate val onErrorContainerLightMediumContrast = Color(0xFFFFFFFF)\nprivate val backgroundLightMediumContrast = Color(0xFFFDF9F0)\nprivate val onBackgroundLightMediumContrast = Color(0xFF1C1C16)\nprivate val surfaceLightMediumContrast = Color(0xFFFDF9F0)\nprivate val onSurfaceLightMediumContrast = Color(0xFF1C1C16)\nprivate val surfaceVariantLightMediumContrast = Color(0xFFE7E3D0)\nprivate val onSurfaceVariantLightMediumContrast = Color(0xFF454336)\nprivate val outlineLightMediumContrast = Color(0xFF616051)\nprivate val outlineVariantLightMediumContrast = Color(0xFF7D7B6C)\nprivate val scrimLightMediumContrast = Color(0xFF000000)\nprivate val inverseSurfaceLightMediumContrast = Color(0xFF31302A)\nprivate val inverseOnSurfaceLightMediumContrast = Color(0xFFF4F0E7)\nprivate val inversePrimaryLightMediumContrast = Color(0xFFCDCA7C)\nprivate val surfaceDimLightMediumContrast = Color(0xFFDDDAD1)\nprivate val surfaceBrightLightMediumContrast = Color(0xFFFDF9F0)\nprivate val surfaceContainerLowestLightMediumContrast = Color(0xFFFFFFFF)\nprivate val surfaceContainerLowLightMediumContrast = Color(0xFFF7F3EA)\nprivate val surfaceContainerLightMediumContrast = Color(0xFFF2EEE4)\nprivate val surfaceContainerHighLightMediumContrast = Color(0xFFECE8DF)\nprivate val surfaceContainerHighestLightMediumContrast = Color(0xFFE6E2D9)\n\nprivate val primaryLightHighContrast = Color(0xFF252300)\nprivate val onPrimaryLightHighContrast = Color(0xFFFFFFFF)\nprivate val primaryContainerLightHighContrast = Color(0xFF474502)\nprivate val onPrimaryContainerLightHighContrast = Color(0xFFFFFFFF)\nprivate val secondaryLightHighContrast = Color(0xFF242308)\nprivate val onSecondaryLightHighContrast = Color(0xFFFFFFFF)\nprivate val secondaryContainerLightHighContrast = Color(0xFF464425)\nprivate val onSecondaryContainerLightHighContrast = Color(0xFFFFFFFF)\nprivate val tertiaryLightHighContrast = Color(0xFF301B2D)\nprivate val onTertiaryLightHighContrast = Color(0xFFFFFFFF)\nprivate val tertiaryContainerLightHighContrast = Color(0xFF533B4F)\nprivate val onTertiaryContainerLightHighContrast = Color(0xFFFFFFFF)\nprivate val errorLightHighContrast = Color(0xFF4E0002)\nprivate val onErrorLightHighContrast = Color(0xFFFFFFFF)\nprivate val errorContainerLightHighContrast = Color(0xFF8C0009)\nprivate val onErrorContainerLightHighContrast = Color(0xFFFFFFFF)\nprivate val backgroundLightHighContrast = Color(0xFFFDF9F0)\nprivate val onBackgroundLightHighContrast = Color(0xFF1C1C16)\nprivate val surfaceLightHighContrast = Color(0xFFFDF9F0)\nprivate val onSurfaceLightHighContrast = Color(0xFF000000)\nprivate val surfaceVariantLightHighContrast = Color(0xFFE7E3D0)\nprivate val onSurfaceVariantLightHighContrast = Color(0xFF252419)\nprivate val outlineLightHighContrast = Color(0xFF454336)\nprivate val outlineVariantLightHighContrast = Color(0xFF454336)\nprivate val scrimLightHighContrast = Color(0xFF000000)\nprivate val inverseSurfaceLightHighContrast = Color(0xFF31302A)\nprivate val inverseOnSurfaceLightHighContrast = Color(0xFFFFFFFF)\nprivate val inversePrimaryLightHighContrast = Color(0xFFF4F09E)\nprivate val surfaceDimLightHighContrast = Color(0xFFDDDAD1)\nprivate val surfaceBrightLightHighContrast = Color(0xFFFDF9F0)\nprivate val surfaceContainerLowestLightHighContrast = Color(0xFFFFFFFF)\nprivate val surfaceContainerLowLightHighContrast = Color(0xFFF7F3EA)\nprivate val surfaceContainerLightHighContrast = Color(0xFFF2EEE4)\nprivate val surfaceContainerHighLightHighContrast = Color(0xFFECE8DF)\nprivate val surfaceContainerHighestLightHighContrast = Color(0xFFE6E2D9)\n\nprivate val primaryDark = Color(0xFFCECA75)\nprivate val onPrimaryDark = Color(0xFF333200)\nprivate val primaryContainerDark = Color(0xFFDCD888)\nprivate val onPrimaryContainerDark = Color(0xFF434100)\nprivate val secondaryDark = Color(0xFFCBC8A4)\nprivate val onSecondaryDark = Color(0xFF333214)\nprivate val secondaryContainerDark = Color(0xFF49482C)\nprivate val onSecondaryContainerDark = Color(0xFFE8E4BE)\nprivate val tertiaryDark = Color(0xFFFFE4F7)\nprivate val onTertiaryDark = Color(0xFF3F293C)\nprivate val tertiaryContainerDark = Color(0xFFD8B8D0)\nprivate val onTertiaryContainerDark = Color(0xFF412C3E)\nprivate val errorDark = Color(0xFFFFB4AB)\nprivate val onErrorDark = Color(0xFF690005)\nprivate val errorContainerDark = Color(0xFF93000A)\nprivate val onErrorContainerDark = Color(0xFFFFDAD6)\nprivate val backgroundDark = Color(0xFF14140E)\nprivate val onBackgroundDark = Color(0xFFE6E2D9)\nprivate val surfaceDark = Color(0xFF14140E)\nprivate val onSurfaceDark = Color(0xFFE6E2D9)\nprivate val surfaceVariantDark = Color(0xFF49473A)\nprivate val onSurfaceVariantDark = Color(0xFFCAC7B5)\nprivate val outlineDark = Color(0xFF949181)\nprivate val outlineVariantDark = Color(0xFF49473A)\nprivate val scrimDark = Color(0xFF000000)\nprivate val inverseSurfaceDark = Color(0xFFE6E2D9)\nprivate val inverseOnSurfaceDark = Color(0xFF31302A)\nprivate val inversePrimaryDark = Color(0xFF63611E)\nprivate val surfaceDimDark = Color(0xFF14140E)\nprivate val surfaceBrightDark = Color(0xFF3A3933)\nprivate val surfaceContainerLowestDark = Color(0xFF0F0E09)\nprivate val surfaceContainerLowDark = Color(0xFF1C1C16)\nprivate val surfaceContainerDark = Color(0xFF20201A)\nprivate val surfaceContainerHighDark = Color(0xFF2B2A24)\nprivate val surfaceContainerHighestDark = Color(0xFF36352F)\n\nprivate val primaryDarkMediumContrast = Color(0xFFFFFFFF)\nprivate val onPrimaryDarkMediumContrast = Color(0xFF333200)\nprivate val primaryContainerDarkMediumContrast = Color(0xFFDCD888)\nprivate val onPrimaryContainerDarkMediumContrast = Color(0xFF222100)\nprivate val secondaryDarkMediumContrast = Color(0xFFFFFFFF)\nprivate val onSecondaryDarkMediumContrast = Color(0xFF333214)\nprivate val secondaryContainerDarkMediumContrast = Color(0xFFDAD6AC)\nprivate val onSecondaryContainerDarkMediumContrast = Color(0xFF212005)\nprivate val tertiaryDarkMediumContrast = Color(0xFFFFE4F7)\nprivate val onTertiaryDarkMediumContrast = Color(0xFF3F293C)\nprivate val tertiaryContainerDarkMediumContrast = Color(0xFFD8B8D0)\nprivate val onTertiaryContainerDarkMediumContrast = Color(0xFF140413)\nprivate val errorDarkMediumContrast = Color(0xFFFFBAB1)\nprivate val onErrorDarkMediumContrast = Color(0xFF370001)\nprivate val errorContainerDarkMediumContrast = Color(0xFFFF5449)\nprivate val onErrorContainerDarkMediumContrast = Color(0xFF000000)\nprivate val backgroundDarkMediumContrast = Color(0xFF14140E)\nprivate val onBackgroundDarkMediumContrast = Color(0xFFE6E2D9)\nprivate val surfaceDarkMediumContrast = Color(0xFF14140E)\nprivate val onSurfaceDarkMediumContrast = Color(0xFFFFFAF1)\nprivate val surfaceVariantDarkMediumContrast = Color(0xFF49473A)\nprivate val onSurfaceVariantDarkMediumContrast = Color(0xFFCECBB9)\nprivate val outlineDarkMediumContrast = Color(0xFFA6A393)\nprivate val outlineVariantDarkMediumContrast = Color(0xFF868474)\nprivate val scrimDarkMediumContrast = Color(0xFF000000)\nprivate val inverseSurfaceDarkMediumContrast = Color(0xFFE6E2D9)\nprivate val inverseOnSurfaceDarkMediumContrast = Color(0xFF2B2A24)\nprivate val inversePrimaryDarkMediumContrast = Color(0xFF4C4A07)\nprivate val surfaceDimDarkMediumContrast = Color(0xFF14140E)\nprivate val surfaceBrightDarkMediumContrast = Color(0xFF3A3933)\nprivate val surfaceContainerLowestDarkMediumContrast = Color(0xFF0F0E09)\nprivate val surfaceContainerLowDarkMediumContrast = Color(0xFF1C1C16)\nprivate val surfaceContainerDarkMediumContrast = Color(0xFF20201A)\nprivate val surfaceContainerHighDarkMediumContrast = Color(0xFF2B2A24)\nprivate val surfaceContainerHighestDarkMediumContrast = Color(0xFF36352F)\n\nprivate val primaryDarkHighContrast = Color(0xFFFFFFFF)\nprivate val onPrimaryDarkHighContrast = Color(0xFF000000)\nprivate val primaryContainerDarkHighContrast = Color(0xFFDCD888)\nprivate val onPrimaryContainerDarkHighContrast = Color(0xFF000000)\nprivate val secondaryDarkHighContrast = Color(0xFFFFFFFF)\nprivate val onSecondaryDarkHighContrast = Color(0xFF000000)\nprivate val secondaryContainerDarkHighContrast = Color(0xFFDAD6AC)\nprivate val onSecondaryContainerDarkHighContrast = Color(0xFF000000)\nprivate val tertiaryDarkHighContrast = Color(0xFFFFF9FA)\nprivate val onTertiaryDarkHighContrast = Color(0xFF000000)\nprivate val tertiaryContainerDarkHighContrast = Color(0xFFE2C1D9)\nprivate val onTertiaryContainerDarkHighContrast = Color(0xFF000000)\nprivate val errorDarkHighContrast = Color(0xFFFFF9F9)\nprivate val onErrorDarkHighContrast = Color(0xFF000000)\nprivate val errorContainerDarkHighContrast = Color(0xFFFFBAB1)\nprivate val onErrorContainerDarkHighContrast = Color(0xFF000000)\nprivate val backgroundDarkHighContrast = Color(0xFF14140E)\nprivate val onBackgroundDarkHighContrast = Color(0xFFE6E2D9)\nprivate val surfaceDarkHighContrast = Color(0xFF14140E)\nprivate val onSurfaceDarkHighContrast = Color(0xFFFFFFFF)\nprivate val surfaceVariantDarkHighContrast = Color(0xFF49473A)\nprivate val onSurfaceVariantDarkHighContrast = Color(0xFFFFFBEA)\nprivate val outlineDarkHighContrast = Color(0xFFCECBB9)\nprivate val outlineVariantDarkHighContrast = Color(0xFFCECBB9)\nprivate val scrimDarkHighContrast = Color(0xFF000000)\nprivate val inverseSurfaceDarkHighContrast = Color(0xFFE6E2D9)\nprivate val inverseOnSurfaceDarkHighContrast = Color(0xFF000000)\nprivate val inversePrimaryDarkHighContrast = Color(0xFF2D2B00)\nprivate val surfaceDimDarkHighContrast = Color(0xFF14140E)\nprivate val surfaceBrightDarkHighContrast = Color(0xFF3A3933)\nprivate val surfaceContainerLowestDarkHighContrast = Color(0xFF0F0E09)\nprivate val surfaceContainerLowDarkHighContrast = Color(0xFF1C1C16)\nprivate val surfaceContainerDarkHighContrast = Color(0xFF20201A)\nprivate val surfaceContainerHighDarkHighContrast = Color(0xFF2B2A24)\nprivate val surfaceContainerHighestDarkHighContrast = Color(0xFF36352F)\n\nprivate val zestfulLightScheme = lightColorScheme(\n    primary = primaryLight,\n    onPrimary = onPrimaryLight,\n    primaryContainer = primaryContainerLight,\n    onPrimaryContainer = onPrimaryContainerLight,\n    secondary = secondaryLight,\n    onSecondary = onSecondaryLight,\n    secondaryContainer = secondaryContainerLight,\n    onSecondaryContainer = onSecondaryContainerLight,\n    tertiary = tertiaryLight,\n    onTertiary = onTertiaryLight,\n    tertiaryContainer = tertiaryContainerLight,\n    onTertiaryContainer = onTertiaryContainerLight,\n    error = errorLight,\n    onError = onErrorLight,\n    errorContainer = errorContainerLight,\n    onErrorContainer = onErrorContainerLight,\n    background = backgroundLight,\n    onBackground = onBackgroundLight,\n    surface = surfaceLight,\n    onSurface = onSurfaceLight,\n    surfaceVariant = surfaceVariantLight,\n    onSurfaceVariant = onSurfaceVariantLight,\n    outline = outlineLight,\n    outlineVariant = outlineVariantLight,\n    scrim = scrimLight,\n    inverseSurface = inverseSurfaceLight,\n    inverseOnSurface = inverseOnSurfaceLight,\n    inversePrimary = inversePrimaryLight,\n    surfaceDim = surfaceDimLight,\n    surfaceBright = surfaceBrightLight,\n    surfaceContainerLowest = surfaceContainerLowestLight,\n    surfaceContainerLow = surfaceContainerLowLight,\n    surfaceContainer = surfaceContainerLight,\n    surfaceContainerHigh = surfaceContainerHighLight,\n    surfaceContainerHighest = surfaceContainerHighestLight,\n)\n\nprivate val zestfulDarkScheme = darkColorScheme(\n    primary = primaryDark,\n    onPrimary = onPrimaryDark,\n    primaryContainer = primaryContainerDark,\n    onPrimaryContainer = onPrimaryContainerDark,\n    secondary = secondaryDark,\n    onSecondary = onSecondaryDark,\n    secondaryContainer = secondaryContainerDark,\n    onSecondaryContainer = onSecondaryContainerDark,\n    tertiary = tertiaryDark,\n    onTertiary = onTertiaryDark,\n    tertiaryContainer = tertiaryContainerDark,\n    onTertiaryContainer = onTertiaryContainerDark,\n    error = errorDark,\n    onError = onErrorDark,\n    errorContainer = errorContainerDark,\n    onErrorContainer = onErrorContainerDark,\n    background = backgroundDark,\n    onBackground = onBackgroundDark,\n    surface = surfaceDark,\n    onSurface = onSurfaceDark,\n    surfaceVariant = surfaceVariantDark,\n    onSurfaceVariant = onSurfaceVariantDark,\n    outline = outlineDark,\n    outlineVariant = outlineVariantDark,\n    scrim = scrimDark,\n    inverseSurface = inverseSurfaceDark,\n    inverseOnSurface = inverseOnSurfaceDark,\n    inversePrimary = inversePrimaryDark,\n    surfaceDim = surfaceDimDark,\n    surfaceBright = surfaceBrightDark,\n    surfaceContainerLowest = surfaceContainerLowestDark,\n    surfaceContainerLow = surfaceContainerLowDark,\n    surfaceContainer = surfaceContainerDark,\n    surfaceContainerHigh = surfaceContainerHighDark,\n    surfaceContainerHighest = surfaceContainerHighestDark,\n)\n\nprivate val zestfulMediumContrastLightColorScheme = lightColorScheme(\n    primary = primaryLightMediumContrast,\n    onPrimary = onPrimaryLightMediumContrast,\n    primaryContainer = primaryContainerLightMediumContrast,\n    onPrimaryContainer = onPrimaryContainerLightMediumContrast,\n    secondary = secondaryLightMediumContrast,\n    onSecondary = onSecondaryLightMediumContrast,\n    secondaryContainer = secondaryContainerLightMediumContrast,\n    onSecondaryContainer = onSecondaryContainerLightMediumContrast,\n    tertiary = tertiaryLightMediumContrast,\n    onTertiary = onTertiaryLightMediumContrast,\n    tertiaryContainer = tertiaryContainerLightMediumContrast,\n    onTertiaryContainer = onTertiaryContainerLightMediumContrast,\n    error = errorLightMediumContrast,\n    onError = onErrorLightMediumContrast,\n    errorContainer = errorContainerLightMediumContrast,\n    onErrorContainer = onErrorContainerLightMediumContrast,\n    background = backgroundLightMediumContrast,\n    onBackground = onBackgroundLightMediumContrast,\n    surface = surfaceLightMediumContrast,\n    onSurface = onSurfaceLightMediumContrast,\n    surfaceVariant = surfaceVariantLightMediumContrast,\n    onSurfaceVariant = onSurfaceVariantLightMediumContrast,\n    outline = outlineLightMediumContrast,\n    outlineVariant = outlineVariantLightMediumContrast,\n    scrim = scrimLightMediumContrast,\n    inverseSurface = inverseSurfaceLightMediumContrast,\n    inverseOnSurface = inverseOnSurfaceLightMediumContrast,\n    inversePrimary = inversePrimaryLightMediumContrast,\n    surfaceDim = surfaceDimLightMediumContrast,\n    surfaceBright = surfaceBrightLightMediumContrast,\n    surfaceContainerLowest = surfaceContainerLowestLightMediumContrast,\n    surfaceContainerLow = surfaceContainerLowLightMediumContrast,\n    surfaceContainer = surfaceContainerLightMediumContrast,\n    surfaceContainerHigh = surfaceContainerHighLightMediumContrast,\n    surfaceContainerHighest = surfaceContainerHighestLightMediumContrast,\n)\n\nprivate val zestfulHighContrastLightColorScheme = lightColorScheme(\n    primary = primaryLightHighContrast,\n    onPrimary = onPrimaryLightHighContrast,\n    primaryContainer = primaryContainerLightHighContrast,\n    onPrimaryContainer = onPrimaryContainerLightHighContrast,\n    secondary = secondaryLightHighContrast,\n    onSecondary = onSecondaryLightHighContrast,\n    secondaryContainer = secondaryContainerLightHighContrast,\n    onSecondaryContainer = onSecondaryContainerLightHighContrast,\n    tertiary = tertiaryLightHighContrast,\n    onTertiary = onTertiaryLightHighContrast,\n    tertiaryContainer = tertiaryContainerLightHighContrast,\n    onTertiaryContainer = onTertiaryContainerLightHighContrast,\n    error = errorLightHighContrast,\n    onError = onErrorLightHighContrast,\n    errorContainer = errorContainerLightHighContrast,\n    onErrorContainer = onErrorContainerLightHighContrast,\n    background = backgroundLightHighContrast,\n    onBackground = onBackgroundLightHighContrast,\n    surface = surfaceLightHighContrast,\n    onSurface = onSurfaceLightHighContrast,\n    surfaceVariant = surfaceVariantLightHighContrast,\n    onSurfaceVariant = onSurfaceVariantLightHighContrast,\n    outline = outlineLightHighContrast,\n    outlineVariant = outlineVariantLightHighContrast,\n    scrim = scrimLightHighContrast,\n    inverseSurface = inverseSurfaceLightHighContrast,\n    inverseOnSurface = inverseOnSurfaceLightHighContrast,\n    inversePrimary = inversePrimaryLightHighContrast,\n    surfaceDim = surfaceDimLightHighContrast,\n    surfaceBright = surfaceBrightLightHighContrast,\n    surfaceContainerLowest = surfaceContainerLowestLightHighContrast,\n    surfaceContainerLow = surfaceContainerLowLightHighContrast,\n    surfaceContainer = surfaceContainerLightHighContrast,\n    surfaceContainerHigh = surfaceContainerHighLightHighContrast,\n    surfaceContainerHighest = surfaceContainerHighestLightHighContrast,\n)\n\nprivate val zestfulMediumContrastDarkColorScheme = darkColorScheme(\n    primary = primaryDarkMediumContrast,\n    onPrimary = onPrimaryDarkMediumContrast,\n    primaryContainer = primaryContainerDarkMediumContrast,\n    onPrimaryContainer = onPrimaryContainerDarkMediumContrast,\n    secondary = secondaryDarkMediumContrast,\n    onSecondary = onSecondaryDarkMediumContrast,\n    secondaryContainer = secondaryContainerDarkMediumContrast,\n    onSecondaryContainer = onSecondaryContainerDarkMediumContrast,\n    tertiary = tertiaryDarkMediumContrast,\n    onTertiary = onTertiaryDarkMediumContrast,\n    tertiaryContainer = tertiaryContainerDarkMediumContrast,\n    onTertiaryContainer = onTertiaryContainerDarkMediumContrast,\n    error = errorDarkMediumContrast,\n    onError = onErrorDarkMediumContrast,\n    errorContainer = errorContainerDarkMediumContrast,\n    onErrorContainer = onErrorContainerDarkMediumContrast,\n    background = backgroundDarkMediumContrast,\n    onBackground = onBackgroundDarkMediumContrast,\n    surface = surfaceDarkMediumContrast,\n    onSurface = onSurfaceDarkMediumContrast,\n    surfaceVariant = surfaceVariantDarkMediumContrast,\n    onSurfaceVariant = onSurfaceVariantDarkMediumContrast,\n    outline = outlineDarkMediumContrast,\n    outlineVariant = outlineVariantDarkMediumContrast,\n    scrim = scrimDarkMediumContrast,\n    inverseSurface = inverseSurfaceDarkMediumContrast,\n    inverseOnSurface = inverseOnSurfaceDarkMediumContrast,\n    inversePrimary = inversePrimaryDarkMediumContrast,\n    surfaceDim = surfaceDimDarkMediumContrast,\n    surfaceBright = surfaceBrightDarkMediumContrast,\n    surfaceContainerLowest = surfaceContainerLowestDarkMediumContrast,\n    surfaceContainerLow = surfaceContainerLowDarkMediumContrast,\n    surfaceContainer = surfaceContainerDarkMediumContrast,\n    surfaceContainerHigh = surfaceContainerHighDarkMediumContrast,\n    surfaceContainerHighest = surfaceContainerHighestDarkMediumContrast,\n)\n\nprivate val zestfulHighContrastDarkColorScheme = darkColorScheme(\n    primary = primaryDarkHighContrast,\n    onPrimary = onPrimaryDarkHighContrast,\n    primaryContainer = primaryContainerDarkHighContrast,\n    onPrimaryContainer = onPrimaryContainerDarkHighContrast,\n    secondary = secondaryDarkHighContrast,\n    onSecondary = onSecondaryDarkHighContrast,\n    secondaryContainer = secondaryContainerDarkHighContrast,\n    onSecondaryContainer = onSecondaryContainerDarkHighContrast,\n    tertiary = tertiaryDarkHighContrast,\n    onTertiary = onTertiaryDarkHighContrast,\n    tertiaryContainer = tertiaryContainerDarkHighContrast,\n    onTertiaryContainer = onTertiaryContainerDarkHighContrast,\n    error = errorDarkHighContrast,\n    onError = onErrorDarkHighContrast,\n    errorContainer = errorContainerDarkHighContrast,\n    onErrorContainer = onErrorContainerDarkHighContrast,\n    background = backgroundDarkHighContrast,\n    onBackground = onBackgroundDarkHighContrast,\n    surface = surfaceDarkHighContrast,\n    onSurface = onSurfaceDarkHighContrast,\n    surfaceVariant = surfaceVariantDarkHighContrast,\n    onSurfaceVariant = onSurfaceVariantDarkHighContrast,\n    outline = outlineDarkHighContrast,\n    outlineVariant = outlineVariantDarkHighContrast,\n    scrim = scrimDarkHighContrast,\n    inverseSurface = inverseSurfaceDarkHighContrast,\n    inverseOnSurface = inverseOnSurfaceDarkHighContrast,\n    inversePrimary = inversePrimaryDarkHighContrast,\n    surfaceDim = surfaceDimDarkHighContrast,\n    surfaceBright = surfaceBrightDarkHighContrast,\n    surfaceContainerLowest = surfaceContainerLowestDarkHighContrast,\n    surfaceContainerLow = surfaceContainerLowDarkHighContrast,\n    surfaceContainer = surfaceContainerDarkHighContrast,\n    surfaceContainerHigh = surfaceContainerHighDarkHighContrast,\n    surfaceContainerHighest = surfaceContainerHighestDarkHighContrast,\n)\n\nval zestfulColorSchemes = ColorSchemes(\n    light = zestfulLightScheme,\n    dark = zestfulDarkScheme,\n    mediumContrastLight = zestfulMediumContrastLightColorScheme,\n    mediumContrastDark = zestfulMediumContrastDarkColorScheme,\n    highContrastLight = zestfulHighContrastLightColorScheme,\n    highContrastDark = zestfulHighContrastDarkColorScheme,\n    nameRes = R.string.label_color_scheme_zestful,\n)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/utils/DateFormat.kt",
    "content": "package com.looker.kenko.utils\n\nimport java.text.SimpleDateFormat\nimport java.util.*\nimport kotlin.time.Duration.Companion.days\nimport kotlinx.datetime.LocalDate\n\n@JvmInline\nvalue class DateFormat(private val value: String) {\n\n    fun format(\n        localDate: LocalDate,\n        locale: Locale = Locale.getDefault(Locale.Category.FORMAT),\n    ): String {\n        val date = Date(localDate.toEpochDays().days.inWholeMilliseconds)\n        val javaFormat = SimpleDateFormat(value, locale)\n        return javaFormat.format(date)\n    }\n\n    companion object {\n        val SessionLabel = DateFormat(\"dd-MMM\")\n        val BackupName = DateFormat(\"dd_MM\")\n    }\n}\n\nfun formatDate(\n    date: LocalDate,\n    dateTimeFormat: DateFormat = DateFormat.SessionLabel,\n    locale: Locale = Locale.getDefault(Locale.Category.FORMAT),\n): String = dateTimeFormat.format(localDate = date, locale = locale)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/utils/DateTime.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.utils\n\nimport kotlin.random.Random\nimport kotlin.time.Clock\nimport kotlin.time.Instant\nimport kotlinx.datetime.DayOfWeek\nimport kotlinx.datetime.LocalDate\nimport kotlinx.datetime.LocalDateTime\nimport kotlinx.datetime.TimeZone\nimport kotlinx.datetime.daysUntil\nimport kotlinx.datetime.format\nimport kotlinx.datetime.format.char\nimport kotlinx.datetime.toLocalDateTime\nimport kotlinx.datetime.todayIn\n\n@JvmInline\nvalue class EpochDays(val value: Int)\n\noperator fun EpochDays.plus(other: EpochDays) = EpochDays(value + other.value)\n\nfun LocalDate.toLocalEpochDays() = EpochDays(toEpochDays().toInt())\n\ninline operator fun DayOfWeek.plus(days: Int): DayOfWeek {\n    val amount = (days % 7)\n    return DayOfWeek(((ordinal + (amount + 7)) % 7) + 1)\n}\n\ninline operator fun DayOfWeek.minus(days: Int): DayOfWeek = plus(-days)\n\nval LocalDate.isToday: Boolean\n    get() = daysUntil(Clock.System.todayIn(TimeZone.currentSystemDefault())) == 0\n\nfun Instant.toFormat(): String {\n    val dateTime = toLocalDateTime(TimeZone.currentSystemDefault())\n    val formatter = LocalDateTime.Format {\n        year()\n        char('-')\n        monthNumber()\n        char('-')\n        day()\n        char(' ')\n        hour()\n        char(':')\n        minute()\n    }\n    return dateTime.format(formatter)\n}\n\nfun Random.nextInstant(\n    from: Instant = Instant.DISTANT_PAST,\n    until: Instant = Instant.DISTANT_FUTURE,\n): Instant = Instant.fromEpochMilliseconds(\n    nextLong(\n        from = from.toEpochMilliseconds(),\n        until = until.toEpochMilliseconds(),\n    ),\n)\n\nfun Random.nextLocalDateTime(\n    from: Instant = Instant.DISTANT_PAST,\n    until: Instant = Instant.DISTANT_FUTURE,\n): LocalDateTime = nextInstant(from, until)\n    .toLocalDateTime(TimeZone.currentSystemDefault())\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/utils/Path.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.utils\n\nimport androidx.compose.ui.geometry.Offset\nimport androidx.compose.ui.graphics.Path\n\nfun Path.moveTo(point: Offset) = moveTo(point.x, point.y)\n\nfun Path.lineTo(point: Offset) = lineTo(point.x, point.y)\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/utils/Url.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\n@file:Suppress(\"NOTHING_TO_INLINE\")\n\npackage com.looker.kenko.utils\n\ninline fun String.isValidUrl(): Boolean = startsWith(\"http://\") || startsWith(\"https://\")\n"
  },
  {
    "path": "app/src/main/kotlin/com/looker/kenko/utils/ViewModel.kt",
    "content": "/*\n * Copyright (C) 2025 LooKeR & Contributors\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n */\n\npackage com.looker.kenko.utils\n\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.SharingStarted\nimport kotlinx.coroutines.flow.StateFlow\nimport kotlinx.coroutines.flow.stateIn\n\nprivate const val SharingStartedDefault = 5_000L\n\ncontext(viewModel: ViewModel)\nfun <T> Flow<T>.asStateFlow(\n    initial: T,\n    coroutineScope: CoroutineScope = viewModel.viewModelScope,\n    started: SharingStarted = SharingStarted.WhileSubscribed(SharingStartedDefault)\n): StateFlow<T> = stateIn(\n    scope = coroutineScope,\n    started = started,\n    initialValue = initial\n)\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_add.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M450,510L250,510Q237.25,510 228.63,501.37Q220,492.74 220,479.99Q220,467.23 228.63,458.62Q237.25,450 250,450L450,450L450,250Q450,237.25 458.63,228.63Q467.26,220 480.01,220Q492.77,220 501.38,228.63Q510,237.25 510,250L510,450L710,450Q722.75,450 731.37,458.63Q740,467.26 740,480.01Q740,492.77 731.37,501.38Q722.75,510 710,510L510,510L510,710Q510,722.75 501.37,731.37Q492.74,740 479.99,740Q467.23,740 458.62,731.37Q450,722.75 450,710L450,510Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_app_icon.xml",
    "content": "<!--\n  ~ Copyright (C) 2025. LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:aapt=\"http://schemas.android.com/aapt\"\n    android:width=\"32dp\"\n    android:height=\"32dp\"\n    android:viewportWidth=\"128\"\n    android:viewportHeight=\"128\">\n    <path\n        android:pathData=\"M0,0L128,0L128,128L0,128L0,0Z\"\n        android:fillColor=\"@android:color/black\" />\n    <group\n        android:scaleX=\"0.36666667\"\n        android:scaleY=\"0.36666667\"\n        android:translateX=\"40.533333\"\n        android:translateY=\"29.017284\">\n        <path\n            android:pathData=\"M128,128C128,92.1 99.35,63 64,63C28.65,63 0,92.1 0,128H128Z\"\n            android:fillType=\"evenOdd\">\n            <aapt:attr name=\"android:fillColor\">\n                <gradient\n                    android:startX=\"17.6\"\n                    android:startY=\"69.17\"\n                    android:endX=\"45.5\"\n                    android:endY=\"139.5\"\n                    android:type=\"linear\">\n                    <item\n                        android:offset=\"0\"\n                        android:color=\"#FFFFD9A0\" />\n                    <item\n                        android:offset=\"1\"\n                        android:color=\"#FFFFF5F1\" />\n                </gradient>\n            </aapt:attr>\n        </path>\n    </group>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_arrow_back.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\"\n    android:autoMirrored=\"true\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M294.92,510L501.69,716.77Q510.61,725.69 510.5,737.65Q510.38,749.61 501.08,758.92Q491.77,767.61 480,767.92Q468.23,768.23 458.92,758.92L205.31,505.31Q199.69,499.69 197.39,493.46Q195.08,487.23 195.08,480Q195.08,472.77 197.39,466.54Q199.69,460.31 205.31,454.69L458.92,201.08Q467.23,192.77 479.5,192.58Q491.77,192.39 501.08,201.08Q510.38,210.39 510.38,222.46Q510.38,234.54 501.08,243.85L294.92,450L750,450Q762.77,450 771.38,458.62Q780,467.23 780,480Q780,492.77 771.38,501.38Q762.77,510 750,510L294.92,510Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_arrow_forward.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\"\n    android:autoMirrored=\"true\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M665.08,510L210,510Q197.23,510 188.62,501.38Q180,492.77 180,480Q180,467.23 188.62,458.62Q197.23,450 210,450L665.08,450L458.31,243.23Q449.39,234.31 449.5,222.35Q449.62,210.39 458.92,201.08Q468.23,192.39 480,192.08Q491.77,191.77 501.08,201.08L754.69,454.69Q760.31,460.31 762.61,466.54Q764.92,472.77 764.92,480Q764.92,487.23 762.61,493.46Q760.31,499.69 754.69,505.31L501.08,758.92Q492.77,767.23 480.5,767.42Q468.23,767.61 458.92,758.92Q449.62,749.61 449.62,737.54Q449.62,725.46 458.92,716.15L665.08,510Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_arrow_outward.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\"\n    android:autoMirrored=\"true\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M645.77,312.15L272.46,685.08Q264.15,693.38 251.58,693.19Q239,693 230.69,684.69Q222.39,676.38 222.39,664Q222.39,651.62 230.69,643.31L603.62,270L275.77,270Q263.02,270 254.39,261.37Q245.77,252.74 245.77,239.99Q245.77,227.23 254.39,218.62Q263.02,210 275.77,210L669.61,210Q684.98,210 695.37,220.39Q705.77,230.79 705.77,246.15L705.77,640Q705.77,652.75 697.14,661.37Q688.51,670 675.76,670Q663,670 654.38,661.37Q645.77,652.75 645.77,640L645.77,312.15Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_check.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M382,620.62L727.54,275.08Q736.46,266.15 748.42,265.96Q760.38,265.77 769.69,275.08Q779,284.39 779,296.46Q779,308.54 769.69,317.85L407.31,680.85Q396.46,691.69 382,691.69Q367.54,691.69 356.69,680.85L189.69,513.85Q180.77,504.92 180.89,492.65Q181,480.39 190.31,471.08Q199.62,461.77 211.69,461.77Q223.77,461.77 233.08,471.08L382,620.62Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_close.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M480,522.15L277.08,725.08Q268.77,733.38 256.19,733.58Q243.62,733.77 234.92,725.08Q226.23,716.38 226.23,704Q226.23,691.62 234.92,682.92L437.85,480L234.92,277.08Q226.62,268.77 226.42,256.19Q226.23,243.62 234.92,234.92Q243.62,226.23 256,226.23Q268.38,226.23 277.08,234.92L480,437.85L682.92,234.92Q691.23,226.62 703.81,226.42Q716.38,226.23 725.08,234.92Q733.77,243.62 733.77,256Q733.77,268.38 725.08,277.08L522.15,480L725.08,682.92Q733.38,691.23 733.58,703.81Q733.77,716.38 725.08,725.08Q716.38,733.77 704,733.77Q691.62,733.77 682.92,725.08L480,522.15Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_delete.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M292.31,820Q262.48,820 241.24,798.76Q220,777.52 220,747.69L220,240L210,240Q197.25,240 188.63,231.37Q180,222.74 180,209.99Q180,197.23 188.63,188.62Q197.25,180 210,180L360,180L360,180Q360,165.31 370.35,154.96Q380.69,144.62 395.38,144.62L564.62,144.62Q579.31,144.62 589.65,154.96Q600,165.31 600,180L600,180L750,180Q762.75,180 771.37,188.63Q780,197.26 780,210.01Q780,222.77 771.37,231.38Q762.75,240 750,240L740,240L740,747.69Q740,777.52 718.76,798.76Q697.52,820 667.69,820L292.31,820ZM680,240L280,240L280,747.69Q280,753.08 283.46,756.54Q286.92,760 292.31,760L667.69,760Q673.08,760 676.54,756.54Q680,753.08 680,747.69L680,240ZM406.17,680Q418.92,680 427.54,671.38Q436.15,662.75 436.15,650L436.15,350Q436.15,337.25 427.52,328.62Q418.9,320 406.14,320Q393.39,320 384.77,328.62Q376.16,337.25 376.16,350L376.16,650Q376.16,662.75 384.78,671.38Q393.41,680 406.17,680ZM553.86,680Q566.61,680 575.23,671.38Q583.84,662.75 583.84,650L583.84,350Q583.84,337.25 575.22,328.62Q566.59,320 553.83,320Q541.08,320 532.46,328.62Q523.85,337.25 523.85,350L523.85,650Q523.85,662.75 532.48,671.38Q541.1,680 553.86,680ZM280,240L280,240L280,747.69Q280,753.08 280,756.54Q280,760 280,760L280,760Q280,760 280,756.54Q280,753.08 280,747.69L280,240Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_edit.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M200,760L250.46,760L659.92,350.54L609.46,300.08L200,709.54L200,760ZM176.16,820Q160.79,820 150.4,809.6Q140,799.21 140,783.84L140,714.54Q140,699.91 145.62,686.65Q151.23,673.39 161.08,663.54L667.62,157.23Q676.69,148.99 687.65,144.5Q698.62,140 710.65,140Q722.68,140 733.95,144.27Q745.23,148.54 753.92,157.85L802.77,207.31Q812.08,216 816.04,227.31Q820,238.62 820,249.93Q820,262 815.88,272.96Q811.76,283.93 802.77,293L296.46,798.92Q286.61,808.77 273.35,814.38Q260.09,820 245.46,820L176.16,820ZM760.38,249.85L760.38,249.85L710.15,199.62L710.15,199.62L760.38,249.85ZM634.25,325.75L609.46,300.08L609.46,300.08L659.92,350.54L659.92,350.54L634.25,325.75Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_history.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M479.23,820Q358.62,820 266.62,746.38Q174.62,672.77 148.69,558Q145.46,546.08 152.58,536.08Q159.69,526.08 172.73,524.46Q185,522.85 194.73,529.31Q204.46,535.77 208.31,548.31Q231.15,641 306.73,700.5Q382.31,760 479.23,760Q596.23,760 677.73,678.5Q759.23,597 759.23,480Q759.23,363 677.73,281.5Q596.23,200 479.23,200Q413.69,200 356.39,229.12Q299.08,258.23 257.69,309.23L332.31,309.23Q345.06,309.23 353.68,317.86Q362.31,326.49 362.31,339.24Q362.31,352 353.68,360.61Q345.06,369.23 332.31,369.23L195.39,369.23Q180.02,369.23 169.63,358.83Q159.23,348.44 159.23,333.07L159.23,196.15Q159.23,183.4 167.86,174.78Q176.49,166.15 189.25,166.15Q202,166.15 210.62,174.78Q219.23,183.4 219.23,196.15L219.23,260.92Q267.92,203.46 335.85,171.73Q403.77,140 479.23,140Q550.03,140 611.86,166.77Q673.69,193.54 719.69,239.54Q765.69,285.54 792.46,347.36Q819.23,409.19 819.23,479.98Q819.23,550.77 792.46,612.61Q765.69,674.46 719.69,720.46Q673.69,766.46 611.86,793.23Q550.03,820 479.23,820ZM510.38,467.85L620.38,577.85Q628.69,586.15 628.88,598.73Q629.08,611.31 620.38,620Q611.69,628.69 599.31,628.69Q586.92,628.69 578.23,620L461.23,503Q455.62,497.38 453,490.76Q450.39,484.14 450.39,477.08L450.39,310Q450.39,297.25 459.01,288.62Q467.64,280 480.4,280Q493.15,280 501.77,288.62Q510.38,297.25 510.38,310L510.38,467.85Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_home.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M240,760L373.85,760L373.85,558.46Q373.85,543.1 384.24,532.7Q394.64,522.31 410,522.31L550,522.31Q565.36,522.31 575.76,532.7Q586.15,543.1 586.15,558.46L586.15,760L720,760L720,406.15Q720,403.08 718.65,400.58Q717.31,398.08 715,396.15L487.31,225Q484.23,222.31 480,222.31Q475.77,222.31 472.69,225L245,396.15Q242.69,398.08 241.35,400.58Q240,403.08 240,406.15L240,760ZM180,760L180,406.15Q180,388.98 187.68,373.62Q195.37,358.25 208.92,348.31L436.62,176.77Q455.57,162.31 479.94,162.31Q504.31,162.31 523.38,176.77L751.08,348.31Q764.63,358.25 772.32,373.62Q780,388.98 780,406.15L780,760Q780,784.54 762.27,802.27Q744.54,820 720,820L562.31,820Q546.94,820 536.55,809.6Q526.15,799.21 526.15,783.84L526.15,582.31Q526.15,582.31 526.15,582.31Q526.15,582.31 526.15,582.31L433.85,582.31Q433.85,582.31 433.85,582.31Q433.85,582.31 433.85,582.31L433.85,783.84Q433.85,799.21 423.45,809.6Q413.06,820 397.69,820L240,820Q215.46,820 197.73,802.27Q180,784.54 180,760ZM480,490.77L480,490.77L480,490.77Q480,490.77 480,490.77Q480,490.77 480,490.77L480,490.77L480,490.77L480,490.77L480,490.77Q480,490.77 480,490.77Q480,490.77 480,490.77L480,490.77Q480,490.77 480,490.77Q480,490.77 480,490.77L480,490.77Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_info.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M480.01,670Q492.77,670 501.38,661.37Q510,652.75 510,640L510,470Q510,457.25 501.37,448.62Q492.74,440 479.99,440Q467.23,440 458.62,448.62Q450,457.25 450,470L450,640Q450,652.75 458.63,661.37Q467.26,670 480.01,670ZM480,371.54Q493.73,371.54 503.02,362.25Q512.31,352.96 512.31,339.23Q512.31,325.5 503.02,316.21Q493.73,306.93 480,306.93Q466.27,306.93 456.98,316.21Q447.69,325.5 447.69,339.23Q447.69,352.96 456.98,362.25Q466.27,371.54 480,371.54ZM480.07,860Q401.23,860 331.86,830.08Q262.49,800.16 211.18,748.87Q159.87,697.58 129.93,628.24Q100,558.9 100,480.07Q100,401.23 129.92,331.86Q159.84,262.49 211.13,211.18Q262.42,159.87 331.76,129.93Q401.1,100 479.93,100Q558.77,100 628.14,129.92Q697.51,159.84 748.82,211.13Q800.13,262.42 830.07,331.76Q860,401.1 860,479.93Q860,558.77 830.08,628.14Q800.16,697.51 748.87,748.82Q697.58,800.13 628.24,830.07Q558.9,860 480.07,860ZM480,800Q614,800 707,707Q800,614 800,480Q800,346 707,253Q614,160 480,160Q346,160 253,253Q160,346 160,480Q160,614 253,707Q346,800 480,800ZM480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_keyboard_arrow_left.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\"\n    android:autoMirrored=\"true\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M418.15,480L581.08,642.92Q589.38,651.23 589.58,663.81Q589.77,676.38 581.08,685.08Q572.38,693.77 560,693.77Q547.62,693.77 538.92,685.08L359.15,505.31Q353.54,499.69 351.23,493.46Q348.92,487.23 348.92,480Q348.92,472.77 351.23,466.54Q353.54,460.31 359.15,454.69L538.92,274.92Q547.23,266.62 559.81,266.42Q572.38,266.23 581.08,274.92Q589.77,283.62 589.77,296Q589.77,308.38 581.08,317.08L418.15,480Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_keyboard_arrow_right.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\"\n    android:autoMirrored=\"true\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M517.85,480L354.92,317.08Q346.62,308.77 346.42,296.19Q346.23,283.62 354.92,274.92Q363.62,266.23 376,266.23Q388.38,266.23 397.08,274.92L576.85,454.69Q582.46,460.31 584.77,466.54Q587.08,472.77 587.08,480Q587.08,487.23 584.77,493.46Q582.46,499.69 576.85,505.31L397.08,685.08Q388.77,693.38 376.19,693.58Q363.62,693.77 354.92,685.08Q346.23,676.38 346.23,664Q346.23,651.62 354.92,642.92L517.85,480Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_foreground.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:aapt=\"http://schemas.android.com/aapt\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"128\"\n    android:viewportHeight=\"128\">\n    <group\n        android:scaleX=\"0.36666667\"\n        android:scaleY=\"0.36666667\"\n        android:translateX=\"40.533333\"\n        android:translateY=\"29.017284\">\n        <path\n            android:pathData=\"M128,128C128,92.1 99.35,63 64,63C28.65,63 0,92.1 0,128H128Z\"\n            android:fillType=\"evenOdd\">\n            <aapt:attr name=\"android:fillColor\">\n                <gradient\n                    android:startX=\"17.6\"\n                    android:startY=\"69.17\"\n                    android:endX=\"45.5\"\n                    android:endY=\"139.5\"\n                    android:type=\"linear\">\n                    <item\n                        android:offset=\"0\"\n                        android:color=\"#FFFFD9A0\" />\n                    <item\n                        android:offset=\"1\"\n                        android:color=\"#FFFFF5F1\" />\n                </gradient>\n            </aapt:attr>\n        </path>\n    </group>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_monochrome.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:aapt=\"http://schemas.android.com/aapt\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"128\"\n    android:viewportHeight=\"128\">\n    <group\n        android:scaleX=\"0.36666667\"\n        android:scaleY=\"0.36666667\"\n        android:translateX=\"40.533333\"\n        android:translateY=\"29.017284\">\n        <path\n            android:pathData=\"M128,128C128,92.1 99.35,63 64,63C28.65,63 0,92.1 0,128H128Z\"\n            android:fillType=\"evenOdd\">\n            <aapt:attr name=\"android:fillColor\">\n                <gradient\n                    android:startX=\"17.6\"\n                    android:startY=\"69.17\"\n                    android:endX=\"45.5\"\n                    android:endY=\"139.5\"\n                    android:type=\"linear\">\n                    <item\n                        android:offset=\"0\"\n                        android:color=\"#60000000\" />\n                    <item\n                        android:offset=\"1\"\n                        android:color=\"#FF000000\" />\n                </gradient>\n            </aapt:attr>\n        </path>\n    </group>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_lightbulb.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M480,863.08Q449.69,863.08 427.73,842.08Q405.77,821.08 403.85,790.77L556.15,790.77Q554.23,821.08 532.27,842.08Q510.31,863.08 480,863.08ZM360,735.38Q347.23,735.38 338.62,726.77Q330,718.15 330,705.38Q330,692.61 338.62,684Q347.23,675.38 360,675.38L600,675.38Q612.77,675.38 621.38,684Q630,692.61 630,705.38Q630,718.15 621.38,726.77Q612.77,735.38 600,735.38L360,735.38ZM336.15,620Q273.31,580.92 236.66,517.88Q200,454.85 200,380Q200,263.08 281.54,181.54Q363.08,100 480,100Q596.92,100 678.46,181.54Q760,263.08 760,380Q760,454.85 723.34,517.88Q686.69,580.92 623.85,620L336.15,620ZM354,560L606,560Q651,528 675.5,481Q700,434 700,380Q700,288 636,224Q572,160 480,160Q388,160 324,224Q260,288 260,380Q260,434 284.5,481Q309,528 354,560ZM480,560Q480,560 480,560Q480,560 480,560Q480,560 480,560Q480,560 480,560Q480,560 480,560Q480,560 480,560Q480,560 480,560Q480,560 480,560Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_person.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"#e3e3e3\"\n        android:pathData=\"M480,480q-66,0 -113,-47t-47,-113q0,-66 47,-113t113,-47q66,0 113,47t47,113q0,66 -47,113t-113,47ZM160,800v-112q0,-34 17.5,-62.5T224,582q62,-31 126,-46.5T480,520q66,0 130,15.5T736,582q29,15 46.5,43.5T800,688v112L160,800ZM240,720h480v-32q0,-11 -5.5,-20T700,654q-54,-27 -109,-40.5T480,600q-56,0 -111,13.5T260,654q-9,5 -14.5,14t-5.5,20v32ZM480,400q33,0 56.5,-23.5T560,320q0,-33 -23.5,-56.5T480,240q-33,0 -56.5,23.5T400,320q0,33 23.5,56.5T480,400ZM480,320ZM480,720Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_radio_button_unchecked.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M480.07,860Q401.23,860 331.86,830.08Q262.49,800.16 211.18,748.87Q159.87,697.58 129.93,628.24Q100,558.9 100,480.07Q100,401.23 129.92,331.86Q159.84,262.49 211.13,211.18Q262.42,159.87 331.76,129.93Q401.1,100 479.93,100Q558.77,100 628.14,129.92Q697.51,159.84 748.82,211.13Q800.13,262.42 830.07,331.76Q860,401.1 860,479.93Q860,558.77 830.08,628.14Q800.16,697.51 748.87,748.82Q697.58,800.13 628.24,830.07Q558.9,860 480.07,860ZM480,800Q614,800 707,707Q800,614 800,480Q800,346 707,253Q614,160 480,160Q346,160 253,253Q160,346 160,480Q160,614 253,707Q346,800 480,800ZM480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_remove.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M250,510Q237.25,510 228.63,501.37Q220,492.74 220,479.99Q220,467.23 228.63,458.62Q237.25,450 250,450L710,450Q722.75,450 731.37,458.63Q740,467.26 740,480.01Q740,492.77 731.37,501.38Q722.75,510 710,510L250,510Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_save.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M212.31,820Q182,820 161,799Q140,778 140,747.69L140,212.31Q140,182 161,161Q182,140 212.31,140L641.61,140Q656.08,140 669.42,145.62Q682.77,151.23 692.61,161.08L798.92,267.39Q808.77,277.23 814.38,290.58Q820,303.92 820,318.39L820,747.69Q820,778 799,799Q778,820 747.69,820L212.31,820ZM760,314L646,200L212.31,200Q206.92,200 203.46,203.46Q200,206.92 200,212.31L200,747.69Q200,753.08 203.46,756.54Q206.92,760 212.31,760L747.69,760Q753.08,760 756.54,756.54Q760,753.08 760,747.69L760,314ZM480,690.77Q521.54,690.77 550.77,661.54Q580,632.31 580,590.77Q580,549.23 550.77,520Q521.54,490.77 480,490.77Q438.46,490.77 409.23,520Q380,549.23 380,590.77Q380,632.31 409.23,661.54Q438.46,690.77 480,690.77ZM291.54,395.38L547.69,395.38Q563.15,395.38 573.5,385.04Q583.84,374.69 583.84,359.23L583.84,291.54Q583.84,276.08 573.5,265.73Q563.15,255.39 547.69,255.39L291.54,255.39Q276.08,255.39 265.73,265.73Q255.39,276.08 255.39,291.54L255.39,359.23Q255.39,374.69 265.73,385.04Q276.08,395.38 291.54,395.38ZM200,314L200,747.69Q200,753.08 200,756.54Q200,760 200,760L200,760Q200,760 200,756.54Q200,753.08 200,747.69L200,212.31Q200,206.92 200,203.46Q200,200 200,200L200,200L200,314Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_settings.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M435.69,860Q415.23,860 400.35,846.42Q385.46,832.85 382.23,813L372.46,738.15Q356.39,732.77 339.5,723.08Q322.62,713.38 309.31,702.31L240,731.77Q221.15,740.08 202.12,733.38Q183.08,726.69 172.54,709.08L127.46,630.92Q116.92,613.31 121.39,593.65Q125.85,574 141.85,561.23L201.77,516.23Q200.39,507.31 199.81,498.31Q199.23,489.31 199.23,480.38Q199.23,471.85 199.81,463.04Q200.39,454.23 201.77,443.77L141.85,398.77Q125.85,386 121.58,366.15Q117.31,346.31 127.85,328.69L172.54,251.69Q183.08,234.46 202.12,227.58Q221.15,220.69 240,229L308.92,258.08Q323.39,246.62 339.81,237.12Q356.23,227.62 372.08,221.85L382.23,147Q385.46,127.15 400.35,113.58Q415.23,100 435.69,100L524.31,100Q544.77,100 559.65,113.58Q574.54,127.15 577.77,147L587.54,222.23Q605.54,228.77 620.11,237.5Q634.69,246.23 649.54,258.08L720.39,229Q739.23,220.69 758.27,227.58Q777.31,234.46 787.84,251.69L832.54,329.08Q843.08,346.69 838.61,366.35Q834.15,386 818.15,398.77L756.69,444.92Q758.84,454.61 759.04,463.04Q759.23,471.46 759.23,480Q759.23,488.15 758.84,496.58Q758.46,505 756.08,515.85L816.38,561.23Q832.38,574 837.04,593.65Q841.69,613.31 831.15,630.92L785.84,708.69Q775.31,726.31 756.08,733Q736.85,739.69 718,731.38L649.54,701.92Q634.69,713.77 619.23,722.88Q603.77,732 587.54,737.77L577.77,813Q574.54,832.85 559.65,846.42Q544.77,860 524.31,860L435.69,860ZM440,800L518.62,800L533,692.85Q563.62,684.85 588.96,670.12Q614.31,655.38 637.85,632.23L737.23,674L776.62,606L689.85,540.62Q694.85,525.08 696.65,510.15Q698.46,495.23 698.46,480Q698.46,464.38 696.65,449.85Q694.85,435.31 689.85,420.15L777.38,354L738,286L637.46,328.38Q617.38,306.92 589.35,290.46Q561.31,274 532.62,267.15L520,160L440.62,160L427.38,266.77Q396.77,274 370.85,288.92Q344.92,303.85 321.38,327.38L222,286L182.62,354L269,418.38Q264,432.62 262,448Q260,463.38 260,480.38Q260,496 262,511Q264,526 268.62,540.62L182.62,606L222,674L321,632Q343.77,655.38 369.69,670.31Q395.62,685.23 427,693.23L440,800ZM480.46,600Q530.38,600 565.42,564.96Q600.46,529.92 600.46,480Q600.46,430.08 565.42,395.04Q530.38,360 480.46,360Q429.92,360 395.19,395.04Q360.46,430.08 360.46,480Q360.46,529.92 395.19,564.96Q429.92,600 480.46,600ZM480,480L480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480L480,480L480,480L480,480Q480,480 480,480Q480,480 480,480L480,480Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_show_chart.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\"\n    android:autoMirrored=\"true\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M117.69,703.85Q107.77,693.92 107.77,681.54Q107.77,669.15 117.69,659.23L330.31,446.62Q351,425.92 381.54,425.92Q412.08,425.92 432.77,446.62L532.31,546.15Q536.15,550 541.54,549.81Q546.92,549.62 550.39,545.39L802.54,258.31Q810.85,248.39 823.54,248.39Q836.23,248.39 845.54,257.31Q853.85,265.62 854.35,277.08Q854.85,288.54 846.54,297.85L592.92,587.15Q572.23,610.85 541.31,612.15Q510.39,613.46 487.69,590.77L390.39,493.46Q386.92,490 381.54,490Q376.15,490 372.69,493.46L162.31,703.85Q152.77,713.38 140.19,713.58Q127.62,713.77 117.69,703.85Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_tactic.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M714.23,757L670.92,799.92Q662.61,808.23 650.35,808.04Q638.08,807.84 629.15,798.92Q620.85,790.61 620.85,778.23Q620.85,765.85 629.15,757.54L671.46,714.23L629.15,671.92Q620.85,663.61 620.85,651.35Q620.85,639.08 629.15,630.15Q638.08,620.85 650.54,621.04Q663,621.23 671.92,630.15L714.23,672.46L756.15,629.54Q764.46,620.62 776.92,620.62Q789.38,620.62 798.31,629.54Q807.61,638.85 807.61,650.92Q807.61,663 798.31,672.31L756,714.23L798.92,757.15Q807.84,766.08 807.73,778.23Q807.61,790.38 798.31,799.31Q789.38,807.61 777.23,807.73Q765.08,807.84 756.15,798.92L714.23,757ZM250,760Q270.85,760 285.42,745.42Q300,730.85 300,710Q300,689.15 285.42,674.58Q270.85,660 250,660Q229.15,660 214.58,674.58Q200,689.15 200,710Q200,730.85 214.58,745.42Q229.15,760 250,760ZM250,820Q204.23,820 172.12,787.88Q140,755.77 140,710Q140,664.23 172.12,632.12Q204.23,600 250,600Q286.23,600 315.19,621.27Q344.15,642.54 354.69,677.54Q397.54,670 425.69,636.85Q453.85,603.69 453.85,560L453.85,405.77Q453.85,327 509.46,271.39Q565.08,215.77 643.85,215.77L704.46,215.77L652.54,163.85Q643.62,154.92 643.73,142.65Q643.85,130.39 653.15,121.08Q662.46,111.77 674.54,111.77Q686.61,111.77 695.92,121.08L794.69,220.46Q805.54,231.31 805.54,245.77Q805.54,260.23 794.69,271.08L694.92,370.85Q686.61,379.15 674.54,379.46Q662.46,379.77 653.15,370.85Q643.85,362.54 644.04,349.96Q644.23,337.39 652.54,328.08L704.08,275.77L643.85,275.77Q589.62,275.77 551.73,313.65Q513.85,351.54 513.85,405.77L513.85,560Q513.85,628 468.58,678.5Q423.31,729 355.92,738.15Q346.62,774.38 317.04,797.19Q287.46,820 250,820ZM245.77,288.54L202.46,331.46Q194.15,339.77 181.89,339.58Q169.62,339.38 160.69,330.46Q152.39,322.15 152.39,309.77Q152.39,297.39 160.69,289.08L203,245.77L160.69,203.46Q152.39,195.15 152.39,182.89Q152.39,170.62 160.69,161.69Q169.62,152.39 182.08,152.58Q194.54,152.77 203.46,161.69L245.77,204L287.69,161.08Q296,152.16 308.46,152.16Q320.92,152.16 329.85,161.08Q339.15,170.39 339.15,182.46Q339.15,194.54 329.85,203.85L287.54,245.77L330.46,288.69Q339.38,297.62 339.27,309.77Q339.15,321.92 329.85,330.85Q320.92,339.15 308.77,339.27Q296.62,339.38 287.69,330.46L245.77,288.54Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_verified.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportWidth=\"960\"\n    android:viewportHeight=\"960\"\n    android:tint=\"@android:color/white\">\n    <path\n        android:fillColor=\"@android:color/white\"\n        android:pathData=\"M438,522.62L373.08,458.31Q364.77,450 352.5,449.81Q340.23,449.62 330.92,458.92Q322.23,467.62 322.23,480Q322.23,492.38 330.92,501.08L412.69,582.85Q423.54,593.69 438,593.69Q452.46,593.69 463.31,582.85L629.08,417.08Q638,408.15 637.88,396.19Q637.77,384.23 629.08,374.92Q619.77,365.62 607.69,365.31Q595.62,365 586.31,374.31L438,522.62ZM336.39,847.31L281.08,754.31L176.46,731.84Q163,729.23 154.96,717.69Q146.92,706.15 148.54,692.69L158.77,585.08L87.62,503.69Q78.39,493.85 78.39,480Q78.39,466.15 87.62,456.31L158.77,374.92L148.54,267.31Q146.92,253.85 154.96,242.31Q163,230.77 176.46,228.16L281.08,205.69L336.39,112.69Q343.62,100.85 356.08,96.54Q368.54,92.23 381.39,97.85L480,139.54L578.61,97.85Q591.46,92.23 603.92,96.54Q616.38,100.85 623.61,112.69L678.92,205.69L783.54,228.16Q797,230.77 805.04,242.31Q813.08,253.85 811.46,267.31L801.23,374.92L872.38,456.31Q881.61,466.15 881.61,480Q881.61,493.85 872.38,503.69L801.23,585.08L811.46,692.69Q813.08,706.15 805.04,717.69Q797,729.23 783.54,731.84L678.92,754.31L623.61,847.31Q616.38,859.15 603.92,863.46Q591.46,867.77 578.61,862.15L480,820.46L381.39,862.15Q368.54,867.77 356.08,863.46Q343.62,859.15 336.39,847.31ZM378,798L480,754.77L583.23,798L640,702L750,676.77L740,564L814,480L740,394.77L750,282L640,258L582,162L480,205.23L376.77,162L320,258L210,282L220,394.77L146,480L220,564L210,678L320,702L378,798ZM480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480L480,480Z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi/ic_launcher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2025. LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@color/ic_launcher_background\"/>\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\"/>\n    <monochrome android:drawable=\"@drawable/ic_launcher_monochrome\"/>\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi/ic_launcher_round.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n  ~ Copyright (C) 2025. LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@color/ic_launcher_background\"/>\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\"/>\n    <monochrome android:drawable=\"@drawable/ic_launcher_monochrome\"/>\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/values/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"ic_launcher_background\">#000000</color>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<resources>\n    <string name=\"app_name\" translatable=\"false\">Kenko</string>\n\n    <!--Onboarding-->\n    <string name=\"label_kenko\" translatable=\"false\">Kenko</string>\n    <string name=\"label_kenko_jp\" translatable=\"false\">ケンコウ</string>\n    <string name=\"label_kenko_meaning\">○ healthy</string>\n    <string name=\"label_kenko_meaning_ALT\">○ strong</string>\n    <string name=\"label_lets_go\">Get Started</string>\n\n    <!--Home-->\n    <string name=\"label_continue_session\">Continue</string>\n    <string name=\"label_start_session\">Start</string>\n    <string name=\"label_explore_sessions\">Explore\\nSessions</string>\n    <string name=\"label_explore_exercises\">Explore\\nExercises</string>\n    <string name=\"label_add_new_exercises_home\">Add\\nExercise</string>\n    <string name=\"label_session_history_home\">Session\\nHistory</string>\n    <string name=\"label_current_plan_home\">Current\\nPlan</string>\n\n    <!--Sessions-->\n    <string name=\"label_sessions_title\">Sessions</string>\n\n    <!--Session Details-->\n    <string name=\"label_nothing_today\">Nothing today</string>\n    <string name=\"label_missed_day\">Did you miss the day?</string>\n\n    <!--Plans-->\n    <string name=\"label_plans_title\">Plans</string>\n    <string name=\"label_edit_plan\">Edit Plan</string>\n    <string name=\"no_exercises_yet\">No exercises yet</string>\n    <string name=\"label_clean_up\">Clean up</string>\n    <string name=\"label_clean_up_plans\">Clear empty plans?</string>\n\n    <string name=\"heading_select_plan_name\">Select a plan name</string>\n    <string name=\"heading_select_plan_items\">Select exercises</string>\n    <string name=\"desc_select_plan_name\">\n        Plan name should be easy to remember and not too long. Ideally unique with no special symbols.\\n\n        e.g: Push Pull Leg, Strength Cycle, etc.\n    </string>\n\n    <!--Profile-->\n    <string name=\"label_profile_greeting\">hey there</string>\n    <string name=\"label_select_plan\">Select Plan</string>\n    <string name=\"label_select_plan_one\">Select Plan</string>\n    <string name=\"label_current_plan\">Current Plan</string>\n    <string name=\"label_lifts\">Lifts</string>\n    <string name=\"label_plan_description\">\n        <ul>%1$s exercises</ul>\\n\n        <ul>%2$s days</ul>\\n\n        <ul>%3$s rest days</ul>\n    </string>\n\n    <!--Exercises-->\n    <string name=\"label_browse_exercises\">Browse Exercises</string>\n    <string name=\"label_all_muscle_groups\">All</string>\n    <string name=\"label_create_exercise\">Create</string>\n\n    <!--Add Exercises-->\n    <string name=\"label_new_exercise\">Add Exercise</string>\n    <string name=\"label_edit_exercise\">Edit</string>\n    <string name=\"label_target\">Target</string>\n    <string name=\"label_is_isometric\">Isometric</string>\n    <string name=\"label_reference\">Reference</string>\n    <string name=\"label_is_isometric_DESC\">Exercise requires static holds</string>\n    <string name=\"label_reference_optional\">optional*</string>\n    <string name=\"label_exercise_exists\">Exercise Already Exists</string>\n\n    <!--Select Exercises-->\n    <string name=\"label_add_exercise_header\">Add Exercise</string>\n    <string name=\"label_search_exercise\">Search Exercise</string>\n    <string name=\"label_no_exercise_today\">No exercises planned today</string>\n\n    <!--Add Sets-->\n    <string name=\"label_add_set_for\">Add Set for</string>\n    <string name=\"label_plus_int\">+%s</string>\n    <string name=\"label_minus_int\">-%s</string>\n\n    <string name=\"label_settings\">Settings</string>\n\n    <!--Common-->\n    <string name=\"label_name\">Name</string>\n    <string name=\"label_add\">Add</string>\n    <string name=\"label_save\">Save</string>\n    <string name=\"label_yes\">Yes</string>\n    <string name=\"label_no\">No</string>\n\n    <!--Project Specific-->\n    <string name=\"label_session\">Session</string>\n    <string name=\"label_exercise\">Exercise</string>\n    <string name=\"label_reps\">.reps</string>\n    <string name=\"label_duration\">.duration</string>\n    <string name=\"label_weight\">.weight</string>\n    <string name=\"label_coming_soon\">Coming Soon</string>\n\n    <!--Navigation-->\n    <string name=\"label_home\">Home</string>\n    <string name=\"label_performance\">Performance</string>\n    <string name=\"label_profile\">You</string>\n\n    <!--Error-->\n    <string name=\"error_invalid_reference\">Invalid Reference</string>\n    <string name=\"error_invalid_reference_format\">Invalid reference format</string>\n    <string name=\"error_invalid_url\">Invalid URL</string>\n    <string name=\"error_unknown\">Unknown Error</string>\n    <string name=\"error_plan_name_empty\">Enter a plan name</string>\n    <string name=\"error_plan_name_exists\">Plan name already in use</string>\n    <string name=\"error_exercise_name_empty\">Enter an exercise name</string>\n    <string name=\"error_plan_empty\">Plan is empty</string>\n    <string name=\"error_plan_empty_prompt\">Discard Plan?. Press back again to go back.</string>\n    <string name=\"error_cant_find_session\">Can\\'t Find Session</string>\n    <string name=\"error_cant_find_exercise\">Can\\'t Find Exercise</string>\n\n    <!--Themes-->\n    <string name=\"label_theme\">Theme</string>\n    <string name=\"label_theme_system\">System</string>\n    <string name=\"label_theme_light\">Light</string>\n    <string name=\"label_theme_dark\">Dark</string>\n\n    <!--Color Schemes-->\n    <string name=\"label_color_palettes\">Color Palettes</string>\n    <string name=\"label_color_scheme_default\">Default</string>\n    <string name=\"label_color_scheme_dynamic\">Dynamic</string>\n    <string name=\"label_color_scheme_serene\">Serene</string>\n    <string name=\"label_color_scheme_zestful\">Zestful</string>\n    <string name=\"label_color_scheme_twilight\">Twilight</string>\n\n    <!--Backup-->\n    <string name=\"label_backup\">Backup &amp; Restore</string>\n    <string name=\"label_backup_location\">Backup Location</string>\n    <string name=\"label_backup_location_not_set\">Not set</string>\n    <string name=\"label_backup_interval\">Backup Frequency</string>\n    <string name=\"label_backup_off\">Off</string>\n    <string name=\"label_backup_daily\">Daily</string>\n    <string name=\"label_backup_weekly\">Weekly</string>\n    <string name=\"label_backup_monthly\">Monthly</string>\n    <string name=\"label_backup_now\">Backup Now</string>\n    <string name=\"label_restore\">Restore</string>\n    <string name=\"label_last_backup\">Last Backup: %s</string>\n    <string name=\"label_last_backup_never\">Never</string>\n    <string name=\"label_backup_in_progress\">Backing up…</string>\n    <string name=\"label_restore_in_progress\">Restoring…</string>\n    <string name=\"label_backup_success\">Backup completed</string>\n    <string name=\"label_restore_success\">Restore completed. Please restart the app.</string>\n    <string name=\"error_backup_failed\">Backup failed</string>\n    <string name=\"error_restore_failed\">Restore failed</string>\n    <string name=\"label_restore_warning\">This will replace all current data. Continue?</string>\n    <string name=\"label_select_backup_location\">Select backup folder</string>\n    <string name=\"label_select_backup_file\">Select backup file</string>\n\n    <!--Muscle Groups-->\n    <string name=\"label_muscle_biceps\">Biceps</string>\n    <string name=\"label_muscle_triceps\">Triceps</string>\n    <string name=\"label_muscle_back\">Back</string>\n    <string name=\"label_muscle_lats\">Lats</string>\n    <string name=\"label_muscle_traps\">Traps</string>\n    <string name=\"label_muscle_chest\">Chest</string>\n    <string name=\"label_muscle_core\">Core</string>\n    <string name=\"label_muscle_glutes\">Glutes</string>\n    <string name=\"label_muscle_calves\">Calves</string>\n    <string name=\"label_muscle_hamstrings\">Hamstrings</string>\n    <string name=\"label_muscle_quads\">Quads</string>\n    <string name=\"label_muscle_shoulders\">Shoulders</string>\n\n    <!--Day of Week-->\n    <string name=\"label_today\">.today</string>\n    <string name=\"label_plan\">Plan</string>\n    <string name=\"label_select_a_plan\">Select A Plan</string>\n    <string name=\"label_selecting_a_plan\">Start by Selecting a Plan</string>\n    <string name=\"label_start_first_session\">Start your first session</string>\n    <string name=\"label_start_session_heading\">Start today\\'s session</string>\n    <string name=\"label_continue_session_heading\">Continue today\\'s session</string>\n    <string name=\"label_next\">Next</string>\n    <string name=\"label_boarding_quote\">Your next transformation starts here.</string>\n    <string name=\"label_no_sessions\">No sessions performed</string>\n    <string-array name=\"label_features\">\n        <item>Progress Tracking</item>\n        <item>Progressive Overload</item>\n        <item>Statistics</item>\n        <item>Plan Management</item>\n        <item>Fast Feedback</item>\n    </string-array>\n\n    <string-array name=\"label_health_quotes\">\n        <item>you can do it</item>\n        <item>health is in your hands</item>\n        <item>health is wealth</item>\n        <item>workout is my therapy too</item>\n        <item>workout is my therapy too</item>\n    </string-array>\n\n    <string-array name=\"label_lifting_quotes\">\n        <item>yeah buddy… light weight</item>\n        <item>light weight</item>\n        <item>ain\\'t nothing to it but to do it</item>\n        <item>it\\'s not about being light</item>\n        <item>i mean it\\'s terrific, right\\?</item>\n    </string-array>\n\n    <string-array name=\"kenko_day_of_week\">\n        <item>.mon</item>\n        <item>.tue</item>\n        <item>.wed</item>\n        <item>.thu</item>\n        <item>.fri</item>\n        <item>.sat</item>\n        <item>.sun</item>\n    </string-array>\n\n    <string-array name=\"day_of_week\">\n        <item>Monday</item>\n        <item>Tuesday</item>\n        <item>Wednesday</item>\n        <item>Thursday</item>\n        <item>Friday</item>\n        <item>Saturday</item>\n        <item>Sunday</item>\n    </string-array>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/themes.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n    <style name=\"Theme.Kenko\" parent=\"android:Theme.Material.Light.NoActionBar\" />\n</resources>"
  },
  {
    "path": "app/src/main/res/values-tr/strings.xml",
    "content": "<!--\n  ~ Copyright (C) 2025 LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<resources>\n    <!--Başlangıç Ekranı-->\n    <string name=\"label_kenko_meaning\">○ sağlıklı</string>\n    <string name=\"label_kenko_meaning_ALT\">○ güçlü</string>\n    <string name=\"label_lets_go\">Başla</string>\n\n    <!--Ana Sayfa-->\n    <string name=\"label_continue_session\">Devam Et</string>\n    <string name=\"label_start_session\">Başlat</string>\n    <string name=\"label_explore_sessions\">Seansları\\nKeşfet</string>\n    <string name=\"label_explore_exercises\">Egzersizleri\\nKeşfet</string>\n    <string name=\"label_add_new_exercises_home\">Egzersiz\\nEkle</string>\n    <string name=\"label_current_plan_home\">Mevcut\\nPlan</string>\n\n    <!--Sessions-->\n    <string name=\"label_sessions_title\">Seans</string>\n\n    <!--Seans Detayları-->\n    <string name=\"label_nothing_today\">Bugün bir şey yok</string>\n    <string name=\"label_missed_day\">Günü kaçırdın mı?</string>\n\n    <!--Planlar-->\n    <string name=\"label_plans_title\">Planlar</string>\n    <string name=\"label_edit_plan\">Planı Düzenle</string>\n    <string name=\"no_exercises_yet\">Henüz egzersiz yok</string>\n\n    <string name=\"heading_select_plan_name\">Bir plan adı seç</string>\n    <string name=\"heading_select_plan_items\">Egzersizleri seç</string>\n    <string name=\"desc_select_plan_name\">\n        Plan adı kolay hatırlanabilir ve çok uzun olmamalıdır. İdeal olarak benzersiz olmalı ve özel semboller içermemelidir.\\n\n        örneğin: Push Pull Leg, Güç Döngüsü, vb.\n    </string>\n\n    <!--Profil-->\n    <string name=\"label_profile_greeting\">Merhaba</string>\n    <string name=\"label_select_plan\">Plan Seç</string>\n    <string name=\"label_select_plan_one\">Plan Seç</string>\n    <string name=\"label_current_plan\">Mevcut Plan</string>\n    <string name=\"label_lifts\">Kaldırmalar</string>\n    <string name=\"label_plan_description\">\n        <ul>%1$s egzersiz</ul>\\n\n        <ul>%2$s gün</ul>\\n\n        <ul>%3$s dinlenme günü</ul>\n    </string>\n\n    <!--Egzersizler-->\n    <string name=\"label_browse_exercises\">Egzersizlere Göz At</string>\n    <string name=\"label_all_muscle_groups\">Tümü</string>\n    <string name=\"label_create_exercise\">Oluştur</string>\n\n    <!--Egzersiz Ekle-->\n    <string name=\"label_new_exercise\">Egzersiz Ekle</string>\n    <string name=\"label_edit_exercise\">Düzenle</string>\n    <string name=\"label_target\">Hedef</string>\n    <string name=\"label_is_isometric\">İzometrik</string>\n    <string name=\"label_reference\">Referans</string>\n    <string name=\"label_is_isometric_DESC\">Egzersiz statik tutuş gerektirir</string>\n    <string name=\"label_reference_optional\">isteğe bağlı*</string>\n    <string name=\"label_exercise_exists\">Egzersiz Zaten Var</string>\n\n    <!--Egzersiz Seç-->\n    <string name=\"label_add_exercise_header\">Egzersiz Ekle</string>\n    <string name=\"label_search_exercise\">Egzersiz Ara</string>\n    <string name=\"label_no_exercise_today\">Bugün planlanmış egzersiz yok</string>\n\n    <!--Set Ekle-->\n    <string name=\"label_add_set_for\">Şunun için Set Ekle</string>\n    <string name=\"label_plus_int\">+%s</string>\n    <string name=\"label_minus_int\">-%s</string>\n\n    <string name=\"label_settings\">Ayarlar</string>\n\n    <!--Genel-->\n    <string name=\"label_name\">Ad</string>\n    <string name=\"label_add\">Ekle</string>\n    <string name=\"label_save\">Kaydet</string>\n\n    <!--Projeye Özel-->\n    <string name=\"label_session\">Seans</string>\n    <string name=\"label_exercise\">Egzersiz</string>\n    <string name=\"label_reps\">.tekrar</string>\n    <string name=\"label_duration\">.süre</string>\n    <string name=\"label_weight\">.ağırlık</string>\n    <string name=\"label_coming_soon\">Yakında Geliyor</string>\n\n    <!--Navigasyon-->\n    <string name=\"label_home\">Ana Sayfa</string>\n    <string name=\"label_performance\">Performans</string>\n    <string name=\"label_profile\">Sen</string>\n\n    <!--Hata-->\n    <string name=\"error_invalid_reference\">Geçersiz Referans</string>\n    <string name=\"error_invalid_reference_format\">Geçersiz referans formatı</string>\n    <string name=\"error_invalid_url\">Geçersiz URL</string>\n    <string name=\"error_unknown\">Bilinmeyen Hata</string>\n    <string name=\"error_plan_name_empty\">Bir plan adı gir</string>\n    <string name=\"error_plan_name_exists\">Plan adı zaten kullanılıyor</string>\n    <string name=\"error_exercise_name_empty\">Bir egzersiz adı gir</string>\n    <string name=\"error_plan_empty\">Plan boş</string>\n    <string name=\"error_plan_empty_prompt\">Planı İptal Et?. Geri dönmek için tekrar geri tuşuna bas.</string>\n    <string name=\"error_cant_find_session\">Seans Bulunamadı</string>\n    <string name=\"error_cant_find_exercise\">Egzersiz Bulunamadı</string>\n\n    <!--Temalar-->\n    <string name=\"label_theme\">Tema</string>\n    <string name=\"label_theme_system\">Sistem</string>\n    <string name=\"label_theme_light\">Açık</string>\n    <string name=\"label_theme_dark\">Koyu</string>\n\n    <!--Renk Şemaları-->\n    <string name=\"label_color_palettes\">Renk Paletleri</string>\n    <string name=\"label_color_scheme_default\">Varsayılan</string>\n    <string name=\"label_color_scheme_dynamic\">Dinamik</string>\n    <string name=\"label_color_scheme_serene\">Huzurlu</string>\n    <string name=\"label_color_scheme_zestful\">Canlı</string>\n    <string name=\"label_color_scheme_twilight\">Alacakaranlık</string>\n\n    <!--Kas Grupları-->\n    <string name=\"label_muscle_biceps\">Biseps</string>\n    <string name=\"label_muscle_triceps\">Triseps</string>\n    <string name=\"label_muscle_back\">Sırt</string>\n    <string name=\"label_muscle_lats\">Latissimus Dorsi</string>\n    <string name=\"label_muscle_traps\">Trapezius</string>\n    <string name=\"label_muscle_chest\">Göğüs</string>\n    <string name=\"label_muscle_core\">Merkez</string>\n    <string name=\"label_muscle_glutes\">Kalça</string>\n    <string name=\"label_muscle_calves\">Baldır</string>\n    <string name=\"label_muscle_hamstrings\">Arka Bacak</string>\n    <string name=\"label_muscle_quads\">Ön Bacak</string>\n    <string name=\"label_muscle_shoulders\">Omuz</string>\n\n    <!--Haftanın Günleri-->\n    <string name=\"label_today\">.bugün</string>\n    <string name=\"label_plan\">Plan</string>\n    <string name=\"label_select_a_plan\">Bir Plan Seç</string>\n    <string name=\"label_selecting_a_plan\">Bir Plan Seçerek Başla</string>\n    <string name=\"label_start_first_session\">İlk seansını başlat</string>\n    <string name=\"label_start_session_heading\">Bugünkü seansı başlat</string>\n    <string name=\"label_continue_session_heading\">Bugünkü seansa devam et</string>\n    <string name=\"label_next\">Sonraki</string>\n    <string name=\"label_boarding_quote\">Bir sonraki dönüşümün burada başlıyor.</string>\n    <string-array name=\"label_features\">\n        <item>İlerleme Takibi</item>\n        <item>Aşamalı Aşırı Yük</item>\n        <item>İstatistikler</item>\n        <item>Plan Yönetimi</item>\n        <item>Hızlı Geri Bildirim</item>\n    </string-array>\n\n    <string-array name=\"label_health_quotes\">\n        <item>yapabilirsin</item>\n        <item>sağlık senin elinde</item>\n        <item>sağlık zenginliktir</item>\n        <item>antrenman benim de terapi</item>\n        <item>antrenman benim de terapi</item>\n    </string-array>\n\n    <string-array name=\"label_lifting_quotes\">\n        <item>evet dostum… hafif ağırlık</item>\n        <item>hafif ağırlık</item>\n        <item>yapmaktan başka çare yok</item>\n        <item>mesele hafif olmak değil</item>\n        <item>harika değil mi?</item>\n    </string-array>\n\n    <string-array name=\"kenko_day_of_week\">\n        <item>.pzt</item>\n        <item>.sal</item>\n        <item>.çar</item>\n        <item>.per</item>\n        <item>.cum</item>\n        <item>.cmt</item>\n        <item>.paz</item>\n    </string-array>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/xml/backup_rules.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n   Sample backup rules file; uncomment and customize as necessary.\n   See https://developer.android.com/guide/topics/data/autobackup\n   for details.\n   Note: This file is ignored for devices older that API 31\n   See https://developer.android.com/about/versions/12/backup-restore\n-->\n<full-backup-content>\n    <!--\n   <include domain=\"sharedpref\" path=\".\"/>\n   <exclude domain=\"sharedpref\" path=\"device.xml\"/>\n-->\n</full-backup-content>"
  },
  {
    "path": "app/src/main/res/xml/data_extraction_rules.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n  ~ Copyright (C) 2025. LooKeR & Contributors\n  ~ This program is free software: you can redistribute it and/or modify\n  ~ it under the terms of the GNU General Public License as published by\n  ~ the Free Software Foundation, either version 3 of the License, or\n  ~ (at your option) any later version.\n  ~ This program is distributed in the hope that it will be useful,\n  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\n  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n  ~ GNU General Public License for more details.\n  ~ You should have received a copy of the GNU General Public License\n  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n  -->\n\n<!--\n   Sample data extraction rules file; uncomment and customize as necessary.\n   See https://developer.android.com/about/versions/12/backup-restore#xml-changes\n   for details.\n-->\n<data-extraction-rules>\n    <cloud-backup />\n</data-extraction-rules>"
  },
  {
    "path": "build.gradle.kts",
    "content": "plugins {\n    alias(libs.plugins.android.app) apply false\n    alias(libs.plugins.kotlin.android) apply false\n    alias(libs.plugins.kotlinx.serialization) apply false\n    alias(libs.plugins.compose.compiler) apply false\n    alias(libs.plugins.ksp) apply false\n    alias(libs.plugins.room) apply false\n    alias(libs.plugins.hilt) apply false\n}\n"
  },
  {
    "path": "changelog.sh",
    "content": "#\n# Copyright (C) 2025 LooKeR & Contributors\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n# You should have received a copy of the GNU General Public License\n# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n#\n\nVERSION=$1\n# Extract changelog content for this version (Keep a Changelog format: ## [Version])\n# Match from ## [VERSION] to the next ## [ version section\nawk -v version=\"$VERSION\" '\n  /^## \\[/ {\n    if (match($0, \"^## \\\\[\" version \"\\\\]\")) {\n      in_section = 1\n      next\n    } else if (in_section) {\n      exit\n    }\n  }\n  in_section {\n    print\n  }\n' CHANGELOG.md"
  },
  {
    "path": "gradle/libs.versions.toml",
    "content": "[versions]\nactivity = \"1.11.0\"\ndocumentfile = \"1.0.1\"\nagp = \"8.13.2\"\ncoil = \"2.7.0\"\ncomposeBom = \"2025.11.00\"\ncore = \"1.17.0\"\ncore-test = \"1.7.0\"\ntest-runner = \"1.7.0\"\ncoroutines = \"1.10.2\"\ndatastore = \"1.1.7\"\ndateTime = \"0.7.1\"\nespresso = \"3.7.0\"\nhilt = \"2.57.2\"\nhiltNavigation = \"1.3.0\"\nhiltWork = \"1.2.0\"\njUnitExt = \"1.3.0\"\nkotlin = \"2.2.21\"\nksp = \"2.2.21-2.0.4\"\nlifecycle = \"2.9.4\"\nmaterial = \"1.5.0-alpha08\"\nnavigation = \"2.9.6\"\nroom = \"2.8.3\"\nsavedstate = \"1.4.0\"\nserialization = \"1.9.0\"\nshapes = \"1.1.0\"\nwork = \"2.10.1\"\n\n[libraries]\nactivity-compose = { module = \"androidx.activity:activity-compose\", version.ref = \"activity\" }\ncore-ktx = { module = \"androidx.core:core-ktx\", version.ref = \"core\" }\ndatastore = { module = \"androidx.datastore:datastore-preferences\", version.ref = \"datastore\" }\ndocumentfile = { module = \"androidx.documentfile:documentfile\", version.ref = \"documentfile\" }\nandroidx-espresso-core = { module = \"androidx.test.espresso:espresso-core\", version.ref = \"espresso\" }\nandroidx-graphics-shapes = { module = \"androidx.graphics:graphics-shapes\", version.ref = \"shapes\" }\nhilt-navigation-compose = { module = \"androidx.hilt:hilt-lifecycle-viewmodel-compose\", version.ref = \"hiltNavigation\" }\njunit-ext = { module = \"androidx.test.ext:junit\", version.ref = \"jUnitExt\" }\nlifecycle-runtime-compose = { module = \"androidx.lifecycle:lifecycle-runtime-compose\", version.ref = \"lifecycle\" }\nlifecycle-runtime-ktx = { module = \"androidx.lifecycle:lifecycle-runtime-ktx\", version.ref = \"lifecycle\" }\nlifecycle-viewmodel-compose = { module = \"androidx.lifecycle:lifecycle-viewmodel-compose\", version.ref = \"lifecycle\" }\nlifecycle-viewmodel-ktx = { module = \"androidx.lifecycle:lifecycle-viewmodel-ktx\", version.ref = \"lifecycle\" }\nnavigation-compose = { module = \"androidx.navigation:navigation-compose\", version.ref = \"navigation\" }\nroom-compiler = { module = \"androidx.room:room-compiler\", version.ref = \"room\" }\nroom-ktx = { module = \"androidx.room:room-ktx\", version.ref = \"room\" }\nroom-runtime = { module = \"androidx.room:room-runtime\", version.ref = \"room\" }\nroom-test = { module = \"androidx.room:room-testing\", version.ref = \"room\" }\ntest-core = { module = \"androidx.test:core\", version.ref = \"core-test\" }\ntest-core-ktx = { module = \"androidx.test:core-ktx\", version.ref = \"core-test\" }\ntest-runner = { module = \"androidx.test:runner\", version.ref = \"test-runner\" }\ntest-rules = { module = \"androidx.test:rules\", version.ref = \"core-test\" }\ncoil-compose = { module = \"io.coil-kt:coil-compose\", version.ref = \"coil\" }\ncompose-bom = { module = \"androidx.compose:compose-bom\", version.ref = \"composeBom\" }\ncompose-foundation = { module = \"androidx.compose.foundation:foundation\" }\ncompose-runtime = { module = \"androidx.compose.runtime:runtime\" }\ncompose-ui = { module = \"androidx.compose.ui:ui\" }\ncompose-ui-graphics = { module = \"androidx.compose.ui:ui-graphics\" }\ncompose-ui-tooling = { module = \"androidx.compose.ui:ui-tooling\" }\ncompose-ui-tooling-preview = { module = \"androidx.compose.ui:ui-tooling-preview\" }\ncompose-ui-test-manifest = { module = \"androidx.compose.ui:ui-test-manifest\" }\ncompose-ui-material3 = { module = \"androidx.compose.material3:material3\", version.ref = \"material\" }\ncompose-ui-test = { module = \"androidx.compose.ui:ui-test-junit4\" }\nhilt-android = { module = \"com.google.dagger:hilt-android\", version.ref = \"hilt\" }\nhilt-compiler = { module = \"com.google.dagger:hilt-compiler\", version.ref = \"hilt\" }\nhilt-test = { module = \"com.google.dagger:hilt-android-testing\", version.ref = \"hilt\" }\nhilt-work = { module = \"androidx.hilt:hilt-work\", version.ref = \"hiltWork\" }\nkotlinx-coroutines-android = { module = \"org.jetbrains.kotlinx:kotlinx-coroutines-android\", version.ref = \"coroutines\" }\nkotlinx-coroutines-core = { module = \"org.jetbrains.kotlinx:kotlinx-coroutines-core\", version.ref = \"coroutines\" }\nkotlinx-coroutines-test = { module = \"org.jetbrains.kotlinx:kotlinx-coroutines-test\", version.ref = \"coroutines\" }\nkotlinx-datetime = { module = \"org.jetbrains.kotlinx:kotlinx-datetime\", version.ref = \"dateTime\" }\nkotlinx-serialization-json = { module = \"org.jetbrains.kotlinx:kotlinx-serialization-json\", version.ref = \"serialization\" }\nsavedstate= { module = \"androidx.savedstate:savedstate\", version.ref = \"savedstate\" }\nwork-runtime = { module = \"androidx.work:work-runtime-ktx\", version.ref = \"work\" }\nwork-testing = { module = \"androidx.work:work-testing\", version.ref = \"work\" }\n\n[plugins]\nandroid-app = { id = \"com.android.application\", version.ref = \"agp\" }\nkotlin-android = { id = \"org.jetbrains.kotlin.android\", version.ref = \"kotlin\" }\nkotlinx-serialization = { id = \"org.jetbrains.kotlin.plugin.serialization\", version.ref = \"kotlin\" }\nksp = { id = \"com.google.devtools.ksp\", version.ref = \"ksp\" }\nroom = { id = \"androidx.room\", version.ref = \"room\" }\nhilt = { id = \"com.google.dagger.hilt.android\", version.ref = \"hilt\" }\ncompose-compiler = { id = \"org.jetbrains.kotlin.plugin.compose\", version.ref = \"kotlin\" }\n\n[bundles]\ncoil = [\"coil-compose\"]\nroom = [\"room-ktx\", \"room-runtime\"]\ncoroutines = [\"kotlinx-coroutines-core\", \"kotlinx-coroutines-android\"]\nlifecycle = [\"lifecycle-runtime-compose\", \"lifecycle-runtime-ktx\", \"lifecycle-viewmodel-compose\", \"lifecycle-viewmodel-ktx\"]\ncompose = [\"compose-foundation\", \"compose-ui\", \"compose-ui-graphics\", \"compose-ui-material3\", \"compose-ui-tooling-preview\", \"compose-runtime\"]\ncompose-debug = [\"compose-ui-tooling\", \"compose-ui-test-manifest\"]\ntest = [\"kotlinx-coroutines-test\", \"test-core\", \"test-core-ktx\", \"test-runner\", \"test-rules\"]\ninstrumented-test = [\"kotlinx-coroutines-test\", \"test-core\", \"test-core-ktx\", \"test-runner\", \"test-rules\", \"junit-ext\"]\nwork = [\"work-runtime\", \"hilt-work\"]"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#\n# Copyright (C) 2025. LooKeR & Contributors\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n# You should have received a copy of the GNU General Public License\n# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n#\n\n#Sat Sep 20 13:49:54 IST 2025\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-9.1.0-bin.zip\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\n"
  },
  {
    "path": "gradle.properties",
    "content": "#\n# Copyright (C) 2025. LooKeR & Contributors\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n# You should have received a copy of the GNU General Public License\n# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n#\n\n# Project-wide Gradle settings.\norg.gradle.jvmargs=-Xmx4096M -Dkotlin.daemon.jvm.options\\=\"-Xmx2048M\" -XX\\:MaxMetaspaceSize\\=1024m -Dfile.encoding\\=UTF-8\nandroid.useAndroidX=true\nkotlin.code.style=official\nandroid.nonTransitiveRClass=true\nandroid.enableR8.fullMode=true\norg.gradle.caching=true\norg.gradle.configuration-cache=true\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n#\n# Copyright (C) 2025 LooKeR & Contributors\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n# You should have received a copy of the GNU General Public License\n# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n#\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS='\"-Xmx64m\" \"-Xms64m\"'\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin or MSYS, switch paths to Windows format before running java\nif [ \"$cygwin\" = \"true\" -o \"$msys\" = \"true\" ] ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=`expr $i + 1`\n    done\n    case $i in\n        0) set -- ;;\n        1) set -- \"$args0\" ;;\n        2) set -- \"$args0\" \"$args1\" ;;\n        3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=`save \"$@\"`\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@rem\n@rem Copyright 2015 the original author or authors.\n@rem\n@rem Licensed under the Apache License, Version 2.0 (the \"License\");\n@rem you may not use this file except in compliance with the License.\n@rem You may obtain a copy of the License at\n@rem\n@rem      https://www.apache.org/licenses/LICENSE-2.0\n@rem\n@rem Unless required by applicable law or agreed to in writing, software\n@rem distributed under the License is distributed on an \"AS IS\" BASIS,\n@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n@rem See the License for the specific language governing permissions and\n@rem limitations under the License.\n@rem\n\n@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Resolve any \".\" and \"..\" in APP_HOME to make it shorter.\nfor %%i in (\"%APP_HOME%\") do set APP_HOME=%%~fi\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\"-Xmx64m\" \"-Xms64m\"\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto execute\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto execute\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %*\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "metadata/en-US/changelogs/100000.txt",
    "content": "Initial Release"
  },
  {
    "path": "metadata/en-US/changelogs/101000.txt",
    "content": "Added:\n\n* New Home Page\n* Back button on Exercises Page\n* Option to open References from workout page(if added)\n\nChanged:\n\n* Splash Screen Image to reduce dependency on `NonFreeNet`\n* Whole Plan card is clickable\n\nFixed:\n\n* APK dependency tree encryption\n* Color of icons on some buttons\n* `Zestful` Color Palettes\n* Crash when using invalid reference\n* UI/UX for Exercises Page\n* Some navigation crashes"
  },
  {
    "path": "metadata/en-US/changelogs/101010.txt",
    "content": "Fixed:\n\n* Navigation from home screen\n* Annoying animations on home page\n* Plan Edit Page\n* Back button on all pages"
  },
  {
    "path": "metadata/en-US/changelogs/102000.txt",
    "content": "Added:\n\n* Support for isometric exercises\n* Deleting Sets / Exercises / Plans\n\nChanged:\n\n* Error message height\n* Chips type in `Select Exercise`\n\nFixed:\n\n* Navigation to same page again\n* Double back presses\n* Swipe gesture on Text field\n* Elements squashing on small screens\n* Empty exercises\n* Invalid reference\n* False reference icon"
  },
  {
    "path": "metadata/en-US/changelogs/103000.txt",
    "content": "Added\n- Drag text field in \"Add Set\"\n- Double tap to edit \"set info\"\n- History Icon (You can check last week's session if it exists)\n- Support for Monochrome icon on Android 12+\n- Text animation on Onboarding\n- Safer way to delete Sets / Exercises / Plans\n- New Font for headings\n\nChanged\n- Targets Android 15\n- Onboarding screen\n- Default theme for new users\n- Sorting of muscle groups chips\n- Always save plan on going back\n- Color in Profile\n- Home Screen and On-boarding Screen\n- Some buttons and UI elements\n\nFixed\n- Save button not visible\n- Two `Default` theme in Settings\n- Scrolling on `Select Exercise` Sheet\n- Performance issues on `Add Set` Sheet\n- Weird line in the setting wave\n- Crash on deleting plan\n- On boarding not completing\n\nRemoved\n- Gradient in settings\n"
  },
  {
    "path": "metadata/en-US/changelogs/103020.txt",
    "content": "Added\n- Session History card on Home screen\n- Set Type selection for sets\n- Timer which shows time since last set\n- Monochrome launcher icon on Android 12+\n- Allow adding a new exercise directly when it cannot be found in the list\n- Clean up empty plans from the Plans screen via confirmation dialog\n- Enable predictive back navigation\n- Empty state on Sessions screen\n\nChanged\n- Removed Bottom navigation bar, added user icon to top bar\n- Updated Day Switcher component styling for clarity\n- Hide Lifts card when there are no lifts\n- Redesigned Session History card and screen\n- Replaced profile icon on Home screen\n- Removed \"Today\" label on Sessions and filtered out empty sessions\n\nFixed\n- Select Plan button alignment\n- Prevent unintended translation for Turkish app name\n- Session list now shows most recent first\n- Lifts card not showing even when lifts existed\n- Sets from past sessions not shown when the exercise was removed from the corresponding plan"
  },
  {
    "path": "metadata/en-US/full_description.txt",
    "content": "Kenko is a workout journal which will provide you with appropriate progressive-overload and well thought-out plans\r\n\r\nThe app allows you to log your workouts with extraordinary simplicity\r\n\r\nYou can create completely personal workout plans, and none of your data will be sent to anybody\r\n\r\nKenko allows customization of theme with really simple but brutal design"
  },
  {
    "path": "metadata/en-US/short_description.txt",
    "content": "A simple workout journal"
  },
  {
    "path": "settings.gradle.kts",
    "content": "pluginManagement {\n    repositories {\n        google()\n        mavenCentral()\n        gradlePluginPortal()\n    }\n}\ndependencyResolutionManagement {\n    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n    repositories {\n        google()\n        mavenCentral()\n    }\n}\n\nrootProject.name = \"Kenko\"\ninclude(\":app\")\n "
  }
]