@athome-solution/feedjet 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/dist/css/feedback.css +1 -1
- package/dist/css/feedback.css.map +1 -1
- package/dist/css/feedbot.css +1 -1
- package/dist/css/feedbot.css.map +1 -1
- package/dist/css/integration-test.css +1 -1
- package/dist/css/integration-test.css.map +1 -1
- package/dist/fonts/OFL.txt +93 -0
- package/dist/fonts/dm-sans-latin-wght-normal.woff2 +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +27 -27
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Feedjet={})}(this,function(e){"use strict";var t='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><g fill="none"><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="1.5"/><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M12 17v-6"/><circle cx="1" cy="1" r="1" fill="currentColor" transform="matrix(1 0 0 -1 11 9)"/></g></svg>',n='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 81 95"><path fill="url(#a)" d="M46.713 71.585c17.817-5.213 29.024-20.497 25.033-34.138-3.992-13.64-21.67-20.472-39.487-15.259C14.443 27.403 3.236 42.687 7.227 56.326s21.67 20.472 39.486 15.26"/><path fill="url(#b)" d="M47.973 74.096c-10.506 3.752-18.613 1.201-19.184 7.857C28.31 87.56 40.351 98.2 53.7 94.07c13.774-4.263 17.573-19.314 13.684-24.418-3.192-4.19-8.491.545-19.41 4.444"/><path fill="url(#c)" d="M19.124 74.507c-1.333-1.469-3.416-1.171-5.603-2.1-2.04-.867-3.02-1.904-5.139-1.252-2.118.652-6.193 3.75-6.682 5.868s-1.956 6.356.652 7.986 9.616-.326 11.735-1.467c2.119-1.14 9.588-4.016 5.037-9.035"/><path fill="url(#d)" d="M68.487 50.825c-1.895.236-4.393.976-5.124 2.928-.732 1.952 1.342 4.514 3.172 5.368s1.22 3.538 1.341 4.636c.123 1.098 2.002 4.091 5.491 3.416 3.782-.731 6.954-3.904 7.076-7.564s-2.806-7.32-4.514-8.297c-1.708-.975-5.491-.731-7.442-.487"/><path fill="url(#e)" d="M5.406 55.365c-.045-1.18.31-3.446 1.813-2.502s7.44 10 8.658 12.547c.662 1.384 1.783 3.387.542 3.249-3.79-.422-6.444-2.38-8.664-5.656-2.02-2.981-2.305-6.459-2.35-7.639z"/><path fill="url(#f)" d="M35.444 37.348c8.845-4.16 17.367-4.729 18.818-4.613 1.112.088 4.039 4.06 5.819 8.232s2.084 9.236 1.731 10.12c-.501 1.254-7.495 6.615-15.51 9.851-8.987 3.628-18.566 4.938-19.703 4.26-1.317-.782-3.923-5.252-4.947-7.781-.936-2.312-2.808-7.85-2.253-9.452.454-1.311 7.56-6.627 16.044-10.617"/><path fill="#D9EFFD" d="M32.25 52.667c2.252-1.42 5.906.125 6.277-1.582.396-1.82-4.697-3.525-8.045-1.903-3.248 1.573-4.253 8.26-2.744 8.378 2.227.174 2.067-3.351 4.512-4.893m17.775-7.856c2.555-.762 5.884 1.592 6.528-.117.692-1.836-3.442-4.4-7.421-3.557-3.72.79-6.25 6.605-4.78 7.223 2.129.894 2.986-2.748 5.673-3.549"/><path fill="#fff" d="M13.433 40.129c-.898 1.866-2.87 6.134-1.082 7.665s3.602-1.361 4.303-3.016c.7-1.655 2.238-4.55 3.352-6.064 1.115-1.514.712-3.59-.807-3.737-1.52-.146-4.507 2.532-5.767 5.152M8.344 62.39a17 17 0 0 1-1.624-3.492c-.39-1.162-.283-2.887.342-2.128.623.758 1.506 2.94 2.408 4.113s2.159 2.711 2.518 3.687c.274.743.267 2.023-.702 1.196-.453-.386-1.861-1.695-2.635-2.961m26.813 17.611c-1.073.405-2.065 2.109-1.562 3.206.503 1.098.896 2.412 1.682 3.213.787.803 2.837 2.768 4.644 2.603s2.914-.256 3.236-1.152c.321-.894.062-1.688-.835-2.274-.896-.586-2.6-.883-3.001-2.443-.402-1.56-2.115-3.929-4.165-3.155zM3.166 76.333c-.427.58-1.071 2.276-.938 3.347.134 1.071 1.74 1.206 2.411 0 .67-1.205 2.678-2.41 2.277-3.348-.402-.937-2.277-2.008-3.75 0m67.182-24.898c-.97-.689-3.318.397-4.553 1.462-1.237 1.064-1.077 2.495-.5 2.75.578.254 2.107.125 3.103-1.762.432-.817 2.573-2.008 1.95-2.45"/><path fill="#B4BFC6" d="M65.53 27.773c1.225 1.136 2.17 2.132 3.412 3.941 1.46 2.126 2.34 3.993 2.887 6.187.862 3.465.764 6.856.329 9.18 0 0 2.686-4.418 2.482-8.559-.063-1.268-.5-3.523-1.36-5.132-1.498-2.796-4.272-5.467-7.749-5.617M9.534 55.54s1.298.073 3.904 2.195c2.503 2.037 5.358 6.288 6.242 7.938 1.338 2.498 1.982 4.41.727 4.787 0 0-2.92-1.328-3.524-1.864 0 0 .197-.951-1.593-4.386-1.348-2.587-5.756-8.67-5.756-8.67m51.43.76c-.683 1.26-2.246 4.317-2.918 5.194-.671.876-1.443 1.823-4.493 3.91-2.876 1.968-3.968 2.45-6.77 3.5-2.8 1.05-4.356 3.654-4.356 3.654 5.209-.964 8.215-2.062 13.117-4.629s8.985-6.764 10.834-8.936c-.964-.434-1.576-1.141-2.25-1.913-1.234-1.61-.764-3.327-.764-3.327s-1.641 1.147-2.4 2.547M19.552 76.269c-.12-.48-1.546-1.185-2.512-.89-.967.297-3.305 1.967-4.288 2.95-1.341 1.342-2.946 1.854-3.912 2.348-.967.493-2.235 2.123-1.56 3.689 0 0 2.265.132 3.908-.559s9.33-3.687 8.365-7.538m23.539-.177c.28.28 3.279.788 5.765.336s7.4-1.605 9.434-2.51c2.035-.904 5.828-2.495 6.88-3.674.702-.787 1.32-1.601.72-1.91-.677-.348-2.155-.339-3.133-.196-1.95.285-9.196 3.684-10.654 4.372-3.386 1.595-8.172 2.742-8.872 2.938-.42.056-.31.474-.14.644"/><path fill="#2C3D82" d="M26.842 16.893a6.32 6.32 0 1 0 0-12.64 6.32 6.32 0 0 0 0 12.64"/><path fill="#5B76C4" d="M29.4 7.128c.786.534.655 1.643.793 3.15.127 1.392-1.974 3.633-3.553 3.606-1.58-.026-3.081-.631-3.925-2.19-.81-1.498-.716-2.375-.3-3.423.488-1.224 2.066-2.472 3.947-2.4 1.882.07 2.207.694 3.037 1.257"/><path fill="#3D55A3" d="M30.138 14.193c.765-.55 1.946-2.109 1.607-4.057-.39-2.243-1.28-3.689-2.845-3.459-1.593.235-2.878.818-2.842 2.344s.847 2.65-.133 3.632.035 2.983 1.186 2.843c1.744-.212 2.286-.77 3.027-1.303"/><path fill="#C0D2FF" d="M25.095 9.693c.688-.324 2.01-.925 2.28-1.618s.297-1.666-.4-2.19c-.7-.522-1.686-.764-2.505-.143-.819.62-2.18 1.623-1.663 2.549.515.927.437 1.73 1.308 1.614.87-.116.98-.212.98-.212"/><path fill="#2C3D82" d="M32.577 3.218a.7.7 0 0 1-.453-.166c-.67-.563-1.912-1.077-1.924-1.083a.705.705 0 0 1 .536-1.304c.06.024 1.455.602 2.295 1.308a.706.706 0 0 1-.454 1.246zm-8.363-1.441a.705.705 0 0 1-.203-1.381C24.061.38 25.271.02 26.414 0a.705.705 0 1 1 .024 1.41c-.944.017-2.011.333-2.022.336a.7.7 0 0 1-.202.03zm-5.103 3.385a.706.706 0 0 1-.555-1.14c.033-.042.828-1.052 1.768-1.737a.705.705 0 1 1 .831 1.14c-.783.57-1.48 1.458-1.487 1.467a.7.7 0 0 1-.556.27zm-2.138 5.828h-.011a.705.705 0 0 1-.694-.715c0-.054.024-1.338.36-2.448a.705.705 0 1 1 1.35.408c-.277.918-.3 2.05-.3 2.062a.705.705 0 0 1-.705.694m1.602 5.937a.7.7 0 0 1-.585-.31c-.03-.044-.734-1.09-1.093-2.175a.706.706 0 0 1 1.338-.444c.298.896.917 1.82.923 1.829a.705.705 0 0 1-.584 1.1m4.922 3.869a.7.7 0 0 1-.231-.04c-.05-.017-1.242-.435-2.177-1.09a.705.705 0 0 1 .808-1.155c.772.54 1.822.91 1.832.913a.706.706 0 0 1-.232 1.372m3.859.595a.706.706 0 0 1-.002-1.41c.97-.003 2.055-.312 2.065-.316a.704.704 0 1 1 .39 1.355c-.052.016-1.287.367-2.452.37zm5.821-2.177a.706.706 0 0 1-.428-1.266c.769-.584 1.446-1.485 1.452-1.493a.705.705 0 1 1 1.13.845c-.032.043-.804 1.07-1.729 1.772a.7.7 0 0 1-.425.143m3.341-5.108a.706.706 0 0 1-.67-.927c.305-.921.355-2.049.356-2.06a.705.705 0 0 1 1.409.06c-.002.055-.061 1.337-.426 2.441a.71.71 0 0 1-.67.485m.055-6.41a.7.7 0 0 1-.642-.414c-.418-.918-1.144-1.589-1.15-1.596a.706.706 0 0 1 .95-1.043c.038.035.943.864 1.485 2.055a.705.705 0 0 1-.641.997z"/><path fill="#121442" d="M26.6 65.199c1.111.717 10.717-.633 19.702-4.26 8.016-3.236 15.01-8.598 15.511-9.852.353-.884.049-5.948-1.731-10.12s-4.707-8.143-5.819-8.232c0 0-.983-.076-2.283.091 0 0 3.584 3.118 5.392 7.171 2.04 4.571 2.355 8.755 2.43 9.247.077.493 0 .683-.303 1.024-.304.342-6.89 4.918-12.376 7.433-6.497 2.978-17.44 5.618-22.213 5.618 0 0 .96 1.508 1.689 1.88"/><path fill="#2C3D82" d="M50.743 77.919s-5.268 3.559-1.686 10.032c.88 1.59 3.193 3.547 6.05 3.88 0 0-4.746-2.46-4.78-6.968-.027-3.623 4.126-4.064 3.247-8.062 0 0-1.408.173-2.832 1.118"/><path fill="#2C3D82" d="M53.978 82.46a2.844 2.844 0 1 0 0-5.69 2.844 2.844 0 0 0 0 5.69m.782 2.524a1.845 1.845 0 1 0-3.683-.232 1.845 1.845 0 0 0 3.682.232"/><defs><linearGradient id="a" x1="17.129" x2="71.508" y1="31.413" y2="69.047" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="b" x1="28.775" x2="68.823" y1="81.508" y2="81.508" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="c" x1=".846" x2="20.568" y1="78.291" y2="78.291" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="d" x1="63.212" x2="80.447" y1="58.94" y2="58.94" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="e" x1="5.402" x2="16.977" y1="60.653" y2="60.653" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="f" x1="49.368" x2="31.597" y1="67.699" y2="29.033" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0E2050"/></linearGradient></defs></svg>',o='<svg xmlns="http://www.w3.org/2000/svg" width="110" height="122" fill="none"><path fill="#C65D17" d="M69.808 20.603a7.81 7.81 0 1 0 0-15.619 7.81 7.81 0 0 0 0 15.619"/><path fill="#EE7219" d="M69.106 7.54c1.157-.205 1.997.89 3.417 2.106 1.312 1.124 1.383 4.918-.039 6.256-1.421 1.337-3.273 2.095-5.363 1.441-2.01-.628-2.682-1.487-3.216-2.774-.623-1.504-.302-3.969 1.426-5.527s2.553-1.287 3.774-1.503"/><path fill="#FF9852" d="M75.849 13.16c.203-1.145-.094-3.544-2.073-4.978-2.278-1.65-4.312-2.162-5.5-.611-1.21 1.58-1.846 3.204-.498 4.524s3.033 1.617 3.012 3.332 2.601 2.612 3.5 1.495c1.362-1.689 1.362-2.651 1.559-3.762"/><path fill="#FFDFCA" d="M67.503 13.52c.33-.88.983-2.552.624-3.399-.359-.846-1.171-1.731-2.24-1.593s-2.152.775-2.343 2.03c-.189 1.256-.531 3.316.724 3.692 1.256.377 1.878 1.154 2.549.302.67-.852.686-1.032.686-1.032"/><path fill="#C65D19" d="M76.563 3.752a.9.9 0 0 1-.512-.164c-.93-.67-2.198-1.137-2.21-1.141a.876.876 0 0 1 .6-1.648c.061.023 1.506.553 2.636 1.366a.877.877 0 0 1-.514 1.589zM66.531 2.2A.877.877 0 0 1 66.28.483C66.34.464 67.815.025 69.206 0a.877.877 0 0 1 .03 1.754c-1.15.02-2.44.404-2.452.408a1 1 0 0 1-.254.037zm-6.207 4.119a.876.876 0 0 1-.69-1.417c.041-.051 1.008-1.281 2.155-2.118A.877.877 0 1 1 62.822 4.2c-.944.69-1.797 1.77-1.807 1.782a.87.87 0 0 1-.69.336m-2.603 7.095h-.013a.877.877 0 0 1-.864-.89c0-.065.029-1.63.438-2.984a.876.876 0 1 1 1.679.507c-.34 1.121-.364 2.489-.364 2.503a.877.877 0 0 1-.876.864m1.95 7.223a.87.87 0 0 1-.727-.386c-.037-.054-.896-1.33-1.333-2.653a.877.877 0 0 1 1.665-.552c.36 1.088 1.113 2.21 1.12 2.222a.878.878 0 0 1-.726 1.367zm5.985 4.706a.9.9 0 0 1-.287-.049c-.061-.02-1.513-.53-2.654-1.328a.876.876 0 1 1 1.004-1.437c.938.656 2.213 1.105 2.226 1.11a.877.877 0 0 1-.289 1.704m4.696.725a.877.877 0 0 1-.002-1.754c1.17-.004 2.496-.379 2.509-.382a.876.876 0 0 1 .485 1.685c-.063.018-1.569.446-2.988.45h-.004m7.085-2.648a.876.876 0 0 1-.53-1.575c.925-.704 1.755-1.803 1.763-1.814a.878.878 0 0 1 1.404 1.051c-.04.053-.98 1.302-2.106 2.158a.88.88 0 0 1-.53.179zm4.064-6.214a.877.877 0 0 1-.832-1.153c.367-1.11.43-2.486.432-2.5a.876.876 0 1 1 1.752.075c-.002.065-.074 1.63-.519 2.976a.88.88 0 0 1-.832.601zm.129-8.11a.88.88 0 0 1-.71-.36c-.61-.837-1.567-1.798-1.577-1.807a.877.877 0 0 1 1.24-1.24c.044.043 1.063 1.066 1.755 2.015a.878.878 0 0 1-.707 1.394z"/><path fill="url(#a)" d="M99.026 64.396c1.801-17.578-15.35-33.734-38.309-36.086s-43.03 9.99-44.83 27.568c-1.802 17.577 15.35 33.733 38.308 36.085 22.959 2.353 43.03-9.99 44.831-27.567"/><path fill="url(#b)" d="M53.803 96.185c13.869.058 22.32-6.284 25.74 1.286 2.88 6.377-6.843 23.827-24.2 24.5-17.914.694-28.587-15.385-26.137-22.978 2.011-6.231 10.183-2.869 24.597-2.808"/><path fill="url(#c)" d="M83.645 94.965c1.345-1.848 3.904-1.59 6.506-3.615 2.176-1.691 2.457-4.048 6.65-3.903 2.754.094 5.419 5.556 7.95 6.505 3.47 1.302 6.723 6.671 3.904 9.252s-13.344 2.797-16.192 1.88c-2.847-.916-13.445-3.758-8.818-10.12"/><path fill="url(#d)" d="M12.967 81.728c1.824-1.094 4.736-2.202 7.49.22s7.6 8.481 5.067 11.675-9.473 4.957-13.108 4.957-9.802.11-11.675-2.534c-1.184-1.671-.991-3.634.882-5.507s7.49-6.499 11.344-8.811"/><path fill="url(#e)" d="M60.241 47.556c-11.753-3.09-22.3-1.86-24.05-1.392-1.338.359-4.02 5.874-5.255 11.377s-.463 11.762.167 12.763c.895 1.42 10.657 6.397 21.188 8.543 11.805 2.407 23.813 1.846 25.05.761 1.432-1.254 3.61-7.306 4.291-10.631.622-3.038 1.662-10.23.621-12.065-.85-1.5-10.739-6.395-22.012-9.357z"/><path fill="#121442" d="M77.34 79.61c-1.196 1.128-13.243 1.645-25.05-.761-10.53-2.146-20.292-7.122-21.187-8.543-.632-1.001-1.402-7.261-.168-12.763 1.235-5.502 3.918-11.018 5.257-11.377 0 0 1.184-.316 2.811-.403 0 0-3.678 4.62-4.973 9.983-1.461 6.049-.903 11.235-.884 11.854.019.62.154.835.602 1.184.448.348 9.534 4.456 16.808 6.292 8.616 2.175 22.59 2.933 28.425 1.855 0 0-.834 2.06-1.64 2.68"/><path fill="#D9EFFD" d="M51.307 61.156c.925-4.057-1.34-8.033-5.06-8.88s-7.483 1.753-8.408 5.81c-.925 4.058 1.34 8.034 5.06 8.882s7.483-1.755 8.408-5.812"/><path fill="url(#f)" d="M44.424 62.484a2.86 2.86 0 1 0 0-5.721 2.86 2.86 0 0 0 0 5.721"/><path fill="#D9EFFD" d="M75.309 66.647c.925-4.058-1.34-8.034-5.06-8.882s-7.483 1.755-8.408 5.812 1.34 8.033 5.06 8.88 7.483-1.753 8.408-5.81"/><path fill="url(#g)" d="M68.567 68.174a2.86 2.86 0 1 0 0-5.722 2.86 2.86 0 0 0 0 5.722"/><path fill="url(#h)" d="M101.031 62.802c-.213-1.452-1.159-4.143-2.781-2.65-1.624 1.494-6.84 13.906-7.753 17.294-.497 1.841-1.416 4.543.071 4.094 4.54-1.37 7.34-4.363 9.316-8.87 1.797-4.1 1.361-8.417 1.148-9.869z"/><path fill="url(#i)" d="M21.297 42.644c-1.24 1.664-2.171 3.095-3.282 5.588-1.305 2.928-1.96 5.409-2.132 8.215-.273 4.43.614 8.554 1.67 11.296 0 0-4.283-4.793-4.967-9.902-.21-1.564-.185-4.42.505-6.582 1.198-3.755 3.989-7.648 8.206-8.615"/><path fill="#B4BFC6" d="M91.02 75.824c1.064-3.466.54-4.177-3.846.499-1.219 1.299-3.418 3.865-5.649 5.797-1.037.9-2.638 2.151-6.837 4.014-3.962 1.757-5.406 2.172-9.067 2.824s-8.002 2.309-6.304 3.292c3.8.268 10.365-.541 16.985-2.682 6.546-2.116 11.027-5.804 13.779-8.041-.715-.495.495-4.251.94-5.702zm-6.812 21.478c.016-1.18 2.092-1.324 3.34-1.18 1.25.144 3.925 1.621 5.35 2.602 1.942 1.338 5.066 1.269 6.071 2.169 2.747 2.457-1.427 3.828-3.614 3.47-3.384-.557-11.214-2.126-11.148-7.061m-39.137-.381c.446.206 3.413 1.445 6.53 1.827 3.12.381 8.59.764 11.34.441s6.83-.49 9.155-1.578c2.074-.97 3.508-2.864 2.909-3.454-.675-.662-4.481-.194-5.689.03-5.932 1.099-8.743 1.582-11.64 1.792-4.642.334-11.655-.154-12.56-.18-.518-.09-.833.76-.048 1.122zM8.562 95.276c-.793.68.66 2.314 2.534 2.202 1.873-.11 7.843-.718 9.913-1.982s3.23-2.828 3.084-4.075c-.17-1.471-.991-1.433-2.202-1.102s-11.015 2.974-13.327 4.957z"/><path fill="#fff" d="M37.274 33.182c2.449-.797 8.034-2.519 9.624-.061 1.59 2.457-2.275 4.212-4.43 4.801s-5.975 2.004-8.026 3.126c-2.05 1.122-4.542.282-4.47-1.614.071-1.898 3.866-5.135 7.302-6.251zM15.75 47.052c.754-1.049 2.477-2.1 2.309-1.144-.168.958-1.58 3.25-2.099 4.644-.605 1.625-1.081 3.121-1.247 4.116-.128.773-1.359 1.504-1.431.247-.016-.294-.088-2.352.47-4.157.559-1.805 1.745-3.358 1.997-3.707h.002m89.254 49.319s1.926 1.114 2.432 1.925.81 2.229.101 3.039c-.708.81-1.925.912-2.533.102s-1.317-2.533-1.824-3.343c-.506-.81-.101-2.432 1.824-1.722zm-67.074 4.475c-.777-1.281-2.414-2.424-3.583-2.222-1.118.194-2.605 1.137-2.816 2.669 0 0 .39 3.457 1.79 5.417 1.401 1.961 3.783 3.782 5.043 2.101s.477-6.464-.434-7.966zM4.294 89.403c-.784.524-3.343 2.912-3.077 4.29.208 1.077 1.74 1.225 2.718.735.979-.49 4.206-2.35 3.445-4.307-.318-.817-1.212-1.971-3.086-.718"/><path fill="#2C3D82" d="M54.398 101.707s-7.536 2.383-5.55 11.364c.488 2.207 2.555 5.354 5.842 6.762 0 0-4.788-4.61-3.238-9.994 1.246-4.329 6.354-3.388 6.716-8.466 0 0-1.74-.291-3.77.334"/><path fill="#2C3D82" d="M57.654 108.406a3.537 3.537 0 1 0-.001-7.074 3.537 3.537 0 0 0 .001 7.074m-3.118 4.644a2.294 2.294 0 1 0 0-4.587 2.294 2.294 0 0 0 0 4.587"/><defs><linearGradient id="a" x1="30.034" x2="94.505" y1="38.434" y2="89.456" gradientUnits="userSpaceOnUse"><stop offset=".07" stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="b" x1="29.078" x2="76.812" y1="97.942" y2="112.096" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="c" x1="108.681" x2="82.691" y1="94.595" y2="99.393" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="d" x1="6.339" x2="22.961" y1="84.75" y2="101.355" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="e" x1="50.069" x2="63.068" y1="87.803" y2="36.521" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0E2050"/></linearGradient><linearGradient id="f" x1="43.08" x2="47.06" y1="58.236" y2="62.347" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0E2050"/></linearGradient><linearGradient id="g" x1="67.931" x2="71.463" y1="64.503" y2="69.005" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0E2050"/></linearGradient><linearGradient id="h" x1="102.229" x2="88.078" y1="69.265" y2="71.878" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="i" x1="12.47" x2="21.297" y1="55.193" y2="55.193" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient></defs></svg>';const r={FR:"fr",EN:"en",ES:"es",NL:"nl"},i={fr:{issue:{tab:"Anomalie",form:{title:"Signaler un problème technique",description:"Vous avez repéré une <strong>anomalie</strong> ? Signalez-la en décrivant le problème !",field:{title:"Résumé du problème",description:"Décrivez précisément le problème rencontré"}},thanks:{title:"Merci pour votre signalement",description:"Votre signalement a bien été pris en compte. Nous vous remercions de participer à l’amélioration de l’application. Notre équipe l’analysera dans les meilleurs délais."}},enhancement:{tab:"Idée",form:{title:"Proposer une amélioration",description:"Vous avez une idée pour <strong>améliorer</strong> notre service ? Partagez là !",field:{title:"Résumé de votre suggestion",description:"Expliquez en détail votre proposition d'amélioration"}},thanks:{title:"Merci pour votre suggestion",description:"Votre idée a bien été transmise. Nous apprécions votre engagement à améliorer notre service."}},decision:{tab:"Feedbacks",description:"Retrouvez ici vos feedbacks et leur statut de prise en compte !",loading:"Chargement...",empty:"Aucun feedback pour le moment.",card:{type:{issue:"Problème",enhancement:"Idée"},date_prefix:"Envoyé le"},status:{enhancement:{loved:"Coup de cœur",planned:"C’est dans les tuyaux",next_step:"Prochaine étape",to_study:"À étudier",impossible:"Mission impossible",transmitted:"Transmis à la bonne équipe"},issue:{planned:"C’est dans les tuyaux",next_step:"Prochaine étape",not_a_bug:"Comportement normal",impossible:"Mission impossible",transmitted:"Transmis à la bonne équipe",out_of_scope:"Hors périmètre"}},form:{title:"Proposer une amélioration",description:"Vous avez une idée pour <strong>améliorer</strong> notre service ? Partagez là !",field:{title:"Résumé de votre suggestion",description:"Expliquez en détail votre proposition d'amélioration"}},thanks:{title:"Merci pour votre suggestion",description:"Votre idée a bien été transmise. Nous apprécions votre engagement à améliorer notre service."}},feedbot:{anonymous:"Répondre anonymement",rating_error:"Veuillez sélectionner une note",cancel:"Non merci",submit:"Envoyer votre avis",bubble_default:"Bonjour !",star_label:"Noter {n} étoile{s}",thanks:{title:"Merci pour votre réponse !",sub_title:"Nous vous remercions de votre réponse qui participe grandement à l'amélioration de la qualité de votre application.",declined:{title:"Merci de votre réponse",sub_title:"Nous vous remercions de votre réponse."}}},integration_test:{pending:{button:"Tester l'intégration",feedback:{title:"Testons ensemble l'<strong>intégration de FeedBack</strong> !",text:"Avant d'aller plus loin, assurons-nous que la connexion entre votre application et le module FeedBack est bien en place."},feedbot:{title:"Testons ensemble l'<strong>intégration de FeedBot</strong> !",text:"Avant d'aller plus loin, assurons-nous que la connexion entre votre application et le module FeedBot est bien en place."}},checking:{title:"Test de connexion en cours…",button:"Test en cours...",feedback_text:"Nous vérifions actuellement la communication entre votre application et FeedBack.",feedbot_text:"Nous vérifions actuellement la communication entre votre application et FeedBot."},ok:{title:"Intégration validée !",text:"C'est branché ! La communication entre les deux systèmes est opérationnelle",button:"Continuer"},ko:{title:"Echec du test d'intégration",text:"La communication entre les deux systèmes ne semble pas avoir fonctionné, vérifiez vos paramètres et notamment les url et uuid du projet dans FeedJet",button:"Réessayer"}},error:{communication:{title:"Problème de communication",description:"La communication entre les deux systèmes ne semble plus fonctionner, contactez votre administrateur"},no_subscription:{title:"Plus d'abonnement en cours de validité",description:"Il semble que votre abonnement FeedJet ne soit plus en cours de validité, contactez votre administrateur"}},consent:{feedback:{label:"J'autorise l'utilisation de mes données pour améliorer le service.",tooltip:"Afin d'améliorer l'analyse des anomalies rencontrées et de mieux comprendre le contexte dans lequel elles se produisent, nous souhaiterions collecter certaines métadonnées (informations techniques non personnelles telles que la version de l'application, le type d'appareil, le système d'exploitation, etc.). Ces données seront utilisées uniquement dans le but de diagnostiquer et résoudre les problèmes techniques, et ne seront jamais partagées à des tiers."},screen:{label:"J'autorise l'envoi automatique d'une capture d'écran.",tooltip:"Une capture d'écran de l'application au moment de l'anomalie permet de mieux comprendre le problème que vous avez rencontré. Cela nous aidera à reproduire et corriger plus rapidement l'erreur. Aucune information personnelle n'est enregistrée, et la capture est utilisée uniquement à des fins de diagnostic."},attachment:{button:"Joindre un fichier",no_file:"Aucun fichier sélectionné",tooltip:"Vous pouvez joindre un fichier (ex: capture d'écran, log, etc.) pour aider à la compréhension de votre retour.",file_too_large:"Le fichier ne doit pas dépasser 10 Mo.",invalid_type:"Ce type de fichier n'est pas accepté. Joignez une image, une vidéo, un PDF, un document bureautique, un texte ou une archive."}},global:{date_at:"à",cancel:"Annuler",send:"Envoyer",close:"Fermer",sending:"Envoi en cours...",submit_error:"Une erreur est survenue lors de l'envoi. Veuillez réessayer.",rate_limited:"Trop d'envois en peu de temps. Veuillez réessayer dans quelques minutes.",required:"obligatoire"},a11y:{feedback_button:"Ouvrir le formulaire de feedback",feedbot_bubble:"Ouvrir le sondage"}},en:{issue:{tab:"Issue",form:{title:"Report a technical issue",description:"Have you spotted a <strong>bug</strong>? Report it by describing the problem!",field:{title:"Problem summary",description:"Describe the issue you encountered in detail"}},thanks:{title:"Thank you for your report",description:"Your report has been received. Thank you for helping us improve the application. Our team will review it as soon as possible."}},enhancement:{tab:"Idea",form:{title:"Suggest an improvement",description:"Have an idea to <strong>improve</strong> our service? Share it with us!",field:{title:"Summary of your suggestion",description:"Explain your improvement proposal in detail"}},thanks:{title:"Thank you for your suggestion",description:"Your idea has been submitted. We appreciate your commitment to improving our service."}},decision:{tab:"Feedbacks",description:"Find your feedbacks and their status here!",loading:"Loading...",empty:"No feedback yet.",card:{type:{issue:"Issue",enhancement:"Idea"},date_prefix:"Sent on"},status:{enhancement:{loved:"Loved it",planned:"In the pipeline",next_step:"Next step",to_study:"Under review",impossible:"Not feasible",transmitted:"Forwarded to the right team"},issue:{planned:"In the pipeline",next_step:"Next step",not_a_bug:"Expected behavior",impossible:"Not feasible",transmitted:"Forwarded to the right team",out_of_scope:"Out of scope"}},form:{title:"Suggest an improvement",description:"Have an idea to <strong>improve</strong> our service? Share it with us!",field:{title:"Summary of your suggestion",description:"Explain your improvement proposal in detail"}},thanks:{title:"Thank you for your suggestion",description:"Your idea has been submitted. We appreciate your commitment to improving our service."}},feedbot:{anonymous:"Answer anonymously",rating_error:"Please select a rating",cancel:"No thanks",submit:"Send your feedback",bubble_default:"Hello!",star_label:"Rate {n} star{s}",thanks:{title:"Thank you for your response!",sub_title:"We truly appreciate your feedback, which greatly contributes to improving the quality of your application.",declined:{title:"Thank you for your response",sub_title:"We appreciate your feedback."}}},integration_test:{pending:{button:"Test integration",feedback:{title:"Let's test the <strong>FeedBack integration</strong> together!",text:"Before going further, let's make sure the connection between your application and the FeedBack module is properly set up."},feedbot:{title:"Let's test the <strong>FeedBot integration</strong> together!",text:"Before going further, let's make sure the connection between your application and the FeedBot module is properly set up."}},checking:{title:"Connection test in progress…",button:"Testing...",feedback_text:"We are currently verifying the communication between your application and FeedBack.",feedbot_text:"We are currently verifying the communication between your application and FeedBot."},ok:{title:"Integration validated!",text:"Connected! Communication between the two systems is operational.",button:"Continue"},ko:{title:"Integration test failed",text:"Communication between the two systems does not seem to have worked. Please check your settings, especially the URL and project UUID in FeedJet.",button:"Retry"}},error:{communication:{title:"Communication issue",description:"Communication between the two systems no longer seems to be working. Please contact your administrator."},no_subscription:{title:"No valid subscription",description:"It seems your FeedJet subscription is no longer valid. Please contact your administrator."}},consent:{feedback:{label:"I authorize the use of my data to improve the service.",tooltip:"To improve the analysis of encountered issues and better understand the context in which they occur, we would like to collect certain metadata (non-personal technical information such as application version, device type, operating system, etc.). This data will be used solely for the purpose of diagnosing and resolving technical issues, and will never be shared with third parties."},screen:{label:"I authorize the automatic sending of a screenshot.",tooltip:"A screenshot of the application at the time of the issue helps us better understand the problem you encountered. This will help us reproduce and fix the error more quickly. No personal information is recorded, and the screenshot is used solely for diagnostic purposes."},attachment:{button:"Attach a file",no_file:"No file selected",tooltip:"You can attach a file (e.g., screenshot, log, etc.) to help us understand your feedback.",file_too_large:"The file must not exceed 10 MB.",invalid_type:"This file type is not accepted. Attach an image, a video, a PDF, an office document, a text file or an archive."}},global:{date_at:"at",cancel:"Cancel",send:"Send",close:"Close",sending:"Sending...",submit_error:"An error occurred while sending. Please try again.",rate_limited:"Too many submissions in a short time. Please try again in a few minutes.",required:"required"},a11y:{feedback_button:"Open the feedback form",feedbot_bubble:"Open the survey"}},es:{issue:{tab:"Incidencia",form:{title:"Reportar un problema técnico",description:"¿Ha detectado una <strong>anomalía</strong>? ¡Repórtela describiendo el problema!",field:{title:"Resumen del problema",description:"Describa con precisión el problema encontrado"}},thanks:{title:"Gracias por su reporte",description:"Su reporte ha sido recibido. Le agradecemos su participación en la mejora de la aplicación. Nuestro equipo lo analizará a la mayor brevedad."}},enhancement:{tab:"Idea",form:{title:"Proponer una mejora",description:"¿Tiene una idea para <strong>mejorar</strong> nuestro servicio? ¡Compártala con nosotros!",field:{title:"Resumen de su sugerencia",description:"Explique en detalle su propuesta de mejora"}},thanks:{title:"Gracias por su sugerencia",description:"Su idea ha sido enviada. Agradecemos su compromiso con la mejora de nuestro servicio."}},decision:{tab:"Feedbacks",description:"¡Encuentre aquí sus feedbacks y su estado de seguimiento!",loading:"Cargando...",empty:"Ningún feedback por el momento.",card:{type:{issue:"Problema",enhancement:"Idea"},date_prefix:"Enviado el"},status:{enhancement:{loved:"Nos encanta",planned:"En camino",next_step:"Próximo paso",to_study:"En estudio",impossible:"No viable",transmitted:"Transmitido al equipo adecuado"},issue:{planned:"En camino",next_step:"Próximo paso",not_a_bug:"Comportamiento esperado",impossible:"No viable",transmitted:"Transmitido al equipo adecuado",out_of_scope:"Fuera de alcance"}},form:{title:"Proponer una mejora",description:"¿Tiene una idea para <strong>mejorar</strong> nuestro servicio? ¡Compártala con nosotros!",field:{title:"Resumen de su sugerencia",description:"Explique en detalle su propuesta de mejora"}},thanks:{title:"Gracias por su sugerencia",description:"Su idea ha sido enviada. Agradecemos su compromiso con la mejora de nuestro servicio."}},feedbot:{anonymous:"Responder de forma anónima",rating_error:"Por favor, seleccione una puntuación",cancel:"No, gracias",submit:"Enviar su opinión",bubble_default:"¡Hola!",star_label:"Puntuar {n} estrella{s}",thanks:{title:"¡Gracias por su respuesta!",sub_title:"Le agradecemos su respuesta, que contribuye enormemente a mejorar la calidad de su aplicación.",declined:{title:"Gracias por su respuesta",sub_title:"Le agradecemos su respuesta."}}},integration_test:{pending:{button:"Probar la integración",feedback:{title:"¡Probemos juntos la <strong>integración de FeedBack</strong>!",text:"Antes de continuar, asegurémonos de que la conexión entre su aplicación y el módulo FeedBack está correctamente configurada."},feedbot:{title:"¡Probemos juntos la <strong>integración de FeedBot</strong>!",text:"Antes de continuar, asegurémonos de que la conexión entre su aplicación y el módulo FeedBot está correctamente configurada."}},checking:{title:"Prueba de conexión en curso…",button:"Probando...",feedback_text:"Estamos verificando la comunicación entre su aplicación y FeedBack.",feedbot_text:"Estamos verificando la comunicación entre su aplicación y FeedBot."},ok:{title:"¡Integración validada!",text:"¡Conectado! La comunicación entre los dos sistemas es operativa.",button:"Continuar"},ko:{title:"Fallo en la prueba de integración",text:"La comunicación entre los dos sistemas no parece haber funcionado. Verifique sus parámetros, especialmente la URL y el UUID del proyecto en FeedJet.",button:"Reintentar"}},error:{communication:{title:"Problema de comunicación",description:"La comunicación entre los dos sistemas ya no parece funcionar. Contacte a su administrador."},no_subscription:{title:"Suscripción no válida",description:"Parece que su suscripción a FeedJet ya no es válida. Contacte a su administrador."}},consent:{feedback:{label:"Autorizo el uso de mis datos para mejorar el servicio.",tooltip:"Para mejorar el análisis de las anomalías encontradas y comprender mejor el contexto en el que se producen, nos gustaría recopilar ciertos metadatos (información técnica no personal como la versión de la aplicación, el tipo de dispositivo, el sistema operativo, etc.). Estos datos se utilizarán únicamente con el fin de diagnosticar y resolver problemas técnicos, y nunca se compartirán con terceros."},screen:{label:"Autorizo el envío automático de una captura de pantalla.",tooltip:"Una captura de pantalla de la aplicación en el momento de la anomalía permite comprender mejor el problema que ha encontrado. Esto nos ayudará a reproducir y corregir el error más rápidamente. No se registra ninguna información personal y la captura se utiliza únicamente con fines de diagnóstico."},attachment:{button:"Adjuntar un archivo",no_file:"Ningún archivo seleccionado",tooltip:"Puede adjuntar un archivo (ej: captura de pantalla, log, etc.) para ayudar a la comprensión de su comentario.",file_too_large:"El archivo no debe superar los 10 MB.",invalid_type:"Este tipo de archivo no está permitido. Adjunte una imagen, un vídeo, un PDF, un documento de oficina, un texto o un archivo comprimido."}},global:{date_at:"a las",cancel:"Cancelar",send:"Enviar",close:"Cerrar",sending:"Enviando...",submit_error:"Se produjo un error durante el envío. Por favor, inténtelo de nuevo.",rate_limited:"Demasiados envíos en poco tiempo. Por favor, inténtelo de nuevo en unos minutos.",required:"obligatorio"},a11y:{feedback_button:"Abrir el formulario de feedback",feedbot_bubble:"Abrir la encuesta"}},nl:{issue:{tab:"Probleem",form:{title:"Een technisch probleem melden",description:"Heeft u een <strong>probleem</strong> ontdekt? Meld het door het te beschrijven!",field:{title:"Samenvatting van het probleem",description:"Beschrijf zo nauwkeurig mogelijk het probleem dat u heeft ondervonden"}},thanks:{title:"Bedankt voor uw melding",description:"Uw melding is goed ontvangen. Bedankt dat u meehelpt de applicatie te verbeteren. Ons team bekijkt deze zo snel mogelijk."}},enhancement:{tab:"Idee",form:{title:"Een verbetering voorstellen",description:"Heeft u een idee om onze dienst te <strong>verbeteren</strong>? Deel het met ons!",field:{title:"Samenvatting van uw suggestie",description:"Leg uw verbetervoorstel in detail uit"}},thanks:{title:"Bedankt voor uw suggestie",description:"Uw idee is goed doorgegeven. We waarderen uw inzet om onze dienst te verbeteren."}},decision:{tab:"Feedback",description:"Bekijk hier uw feedback en de status ervan!",loading:"Laden...",empty:"Nog geen feedback.",card:{type:{issue:"Probleem",enhancement:"Idee"},date_prefix:"Verzonden op"},status:{enhancement:{loved:"Favoriet",planned:"In de pijplijn",next_step:"Volgende stap",to_study:"In onderzoek",impossible:"Niet haalbaar",transmitted:"Doorgegeven aan het juiste team"},issue:{planned:"In de pijplijn",next_step:"Volgende stap",not_a_bug:"Normaal gedrag",impossible:"Niet haalbaar",transmitted:"Doorgegeven aan het juiste team",out_of_scope:"Buiten scope"}},form:{title:"Een verbetering voorstellen",description:"Heeft u een idee om onze dienst te <strong>verbeteren</strong>? Deel het met ons!",field:{title:"Samenvatting van uw suggestie",description:"Leg uw verbetervoorstel in detail uit"}},thanks:{title:"Bedankt voor uw suggestie",description:"Uw idee is goed doorgegeven. We waarderen uw inzet om onze dienst te verbeteren."}},feedbot:{anonymous:"Anoniem antwoorden",rating_error:"Selecteer een beoordeling",cancel:"Nee, bedankt",submit:"Uw mening versturen",bubble_default:"Hallo!",star_label:"Aantal sterren: {n}",thanks:{title:"Bedankt voor uw antwoord!",sub_title:"Hartelijk dank voor uw antwoord, dat in grote mate bijdraagt aan het verbeteren van de kwaliteit van uw applicatie.",declined:{title:"Bedankt voor uw antwoord",sub_title:"Hartelijk dank voor uw antwoord."}}},integration_test:{pending:{button:"Integratie testen",feedback:{title:"Laten we samen de <strong>integratie van FeedBack</strong> testen!",text:"Voordat we verdergaan, controleren we of de verbinding tussen uw applicatie en de module FeedBack goed is ingesteld."},feedbot:{title:"Laten we samen de <strong>integratie van FeedBot</strong> testen!",text:"Voordat we verdergaan, controleren we of de verbinding tussen uw applicatie en de module FeedBot goed is ingesteld."}},checking:{title:"Verbindingstest bezig…",button:"Test bezig...",feedback_text:"We controleren momenteel de communicatie tussen uw applicatie en FeedBack.",feedbot_text:"We controleren momenteel de communicatie tussen uw applicatie en FeedBot."},ok:{title:"Integratie gevalideerd!",text:"Verbonden! De communicatie tussen beide systemen werkt.",button:"Doorgaan"},ko:{title:"Integratietest mislukt",text:"De communicatie tussen beide systemen lijkt niet te hebben gewerkt. Controleer uw instellingen, met name de URL en de UUID van het project in FeedJet.",button:"Opnieuw proberen"}},error:{communication:{title:"Communicatieprobleem",description:"De communicatie tussen beide systemen lijkt niet meer te werken. Neem contact op met uw beheerder."},no_subscription:{title:"Geen geldig abonnement",description:"Het lijkt erop dat uw FeedJet-abonnement niet meer geldig is. Neem contact op met uw beheerder."}},consent:{feedback:{label:"Ik geef toestemming voor het gebruik van mijn gegevens om de dienst te verbeteren.",tooltip:"Om de analyse van opgetreden problemen te verbeteren en de context waarin ze zich voordoen beter te begrijpen, willen we bepaalde metadata verzamelen (niet-persoonlijke technische informatie zoals de versie van de applicatie, het type apparaat, het besturingssysteem, enz.). Deze gegevens worden uitsluitend gebruikt om technische problemen vast te stellen en op te lossen, en worden nooit met derden gedeeld."},screen:{label:"Ik geef toestemming voor het automatisch verzenden van een schermafbeelding.",tooltip:"Een schermafbeelding van de applicatie op het moment van het probleem helpt ons beter te begrijpen wat u heeft ondervonden. Zo kunnen we de fout sneller reproduceren en oplossen. Er worden geen persoonlijke gegevens vastgelegd en de schermafbeelding wordt uitsluitend voor diagnose gebruikt."},attachment:{button:"Bestand toevoegen",no_file:"Geen bestand geselecteerd",tooltip:"U kunt een bestand toevoegen (bijv. schermafbeelding, log, enz.) om ons te helpen uw feedback te begrijpen.",file_too_large:"Het bestand mag niet groter zijn dan 10 MB.",invalid_type:"Dit bestandstype wordt niet geaccepteerd. Voeg een afbeelding, video, PDF, kantoordocument, tekstbestand of archief toe."}},global:{date_at:"om",cancel:"Annuleren",send:"Verzenden",close:"Sluiten",sending:"Bezig met verzenden...",submit_error:"Er is een fout opgetreden bij het verzenden. Probeer het opnieuw.",rate_limited:"Te veel inzendingen in korte tijd. Probeer het over een paar minuten opnieuw.",required:"verplicht"},a11y:{feedback_button:"Het feedbackformulier openen",feedbot_bubble:"De enquête openen"}}},s=Object.values(r);let a=r.FR;function l(e){a=s.includes(e)?e:r.FR}function c(){return a}function d(e){let t=i[a];for(const n of e.split("."))t="object"==typeof t?t[n]:void 0;return"string"==typeof t?t:e}function h(e){return`<span${e?` class="${e}"`:""} aria-hidden="true">*</span><span class="fj-sr-only">(${d("global.required")})</span>`}var u='<svg xmlns="http://www.w3.org/2000/svg" width="113" height="128" fill="none"><path fill="url(#a)" d="M106.54 71.127c3.023-18.337-13.943-36.402-37.894-40.35-23.95-3.948-45.816 7.716-48.839 26.053S33.75 93.233 57.701 97.18c23.95 3.948 45.817-7.717 48.839-26.053"/><path fill="url(#b)" d="M57.79 100.89c-14.507-1.527-22.617-9.126-27.06-1.604-3.742 6.337 4.427 25.696 22.496 28.387 18.65 2.777 31.65-12.811 29.958-21.03-1.388-6.746-10.316-4.166-25.394-5.754z"/><path fill="url(#c)" d="M24.61 91.348c-1.404-4.976-6.158-6.304-9.865-7.227S6.26 80.392 3.487 82.293C.714 84.196-1.61 89.62 1.447 92.368s8.027 4.753 11.173 8.11c2.496 2.662 7.488 3.107 9.763 2.219 2.305-.9 3.66-6.268 2.227-11.35"/><path fill="url(#d)" d="M90.277 103.279c-1.525-1.944-4.597-1.823-7.487.017s-7.034 4.165-9.695 5.483c-2.66 1.318-8.231 4.052-3.282 7.901s13.828 4.445 16.968 2.508c3.141-1.936 9.477-8.281 3.496-15.909"/><path fill="url(#e)" d="M65.786 50.709c12.464 2.832 21.705 9.103 23.108 10.39 1.075.985.896 7.434-.628 13.166-1.523 5.732-5.284 11.196-6.359 11.823-1.525.89-13.05.787-23.914-2.328-12.18-3.493-23.108-9.852-23.735-11.465-.726-1.867.184-8.57 1.164-12.001.896-3.135 3.422-10.35 5.284-11.555 1.523-.985 13.125-.745 25.08 1.97"/><path fill="url(#f)" d="M22.26 45.957c1.042-1.14 3.756-2.973 3.985-.664.875 8.774-1.102 16.342-3.726 21.362-1.767 3.38-2.89 2.947-3.847 1.623-.633-.879-2.125-7.838-.93-13.02 1.06-4.588 3.475-8.161 4.517-9.3z"/><path fill="#D9EFFD" d="M48.655 67.124c1.35.39 7.81 2.589 9.14 1.035 1.583-1.85-1.624-7.686-6.273-9.12-4.51-1.391-10.327 1.87-10.492 3.842-.16 1.933 6.272 3.853 7.625 4.243m26.151 6.636c1.389.228 8.06 1.648 9.198-.052 1.354-2.024-2.52-7.44-7.306-8.315-4.642-.849-10.034 3.077-9.964 5.055.07 1.94 6.684 3.086 8.072 3.312"/><path fill="#B4BFC6" d="M25.589 44.239c.174-.246.24-.338.6-.787.805.268 1.408 2.568 1.738 4.122 1.018 4.791.088 12.596-1.574 19.115-.799 3.133-2.52 7.453-3.542 7.71 0 0-1.356-2.556-2.33-5.216 0 0 2.147-2.439 3.285-6.45 1.8-6.343 2.913-15.013 1.823-18.494m29.575 49.476c4.963 1.258 7.03 2.001 14.974.995 6.645-.842 9.886 0 11.378 1.209a55 55 0 0 1-4.854 1.117c-4.613.838-15.029 2.027-25.934-1.398-1.273-.4-3.965-1.397-4.798-1.717 1.073-1.263 5.901-1.05 9.232-.207zm21.374 8.193c-2.892-.353-6.092-.296-9.583-.417-1.756-.062-3.528-.127-5.083-.251-2-.159-3.368-.261-4.546-.392-3.087-.343-6.877-1.21-10.075-2.147-3.197-.938-5.918-1.814-6.86-2.035-1.53.25 9.5 5.434 14.075 6.844 4.58 1.411 9.614 2.379 13.418 2.383 3.797.005 10.845-.826 12.058-1.803 1.31-1.055-.235-1.455-.456-1.528-.22-.073-1.337-.434-2.948-.655zM12.98 96.095c1.76.468 4.548 1.213 6.191-.196 1.644-1.409 2.93-7.812 4.208-6.917s2.69 6.165 1.426 11.26c-.555 2.236-3.14 3.32-5.868 3.169-4.767-.265-6.634-3.69-10.607-6.338.51-2.238 3.613-1.255 4.65-.978m93.377-34.405c.364 2.152.61 3.807.455 6.672-.182 3.366-1.002 6.116-2.184 8.826-1.868 4.278-4.561 7.74-6.864 9.803 0 0 6.251-2.521 9.339-6.977.946-1.365 2.291-4.05 2.68-6.404.678-4.091.057-8.993-3.426-11.92m-17.168 44.629c.38 1.985.5 3.721-1 5.852s-3.552 2.611-3.552 3.996c0 1.386.833 2.125 2.044 1.975.57-.07 1.733-1.049 2.694-2.178 2.697-3.164 2.749-5.333 2.754-7.05.006-2.461-3.32-4.582-2.94-2.598zm-20.849 8.854c-.161.007-1.067.411-1.109 1.295-.057 1.212.488 2.61 1.532 3.763 1.804 1.991 4.134 2.982 5.076 2.606 1.3-.82 3.413-2.766 3.524-2.988 0 0-1.808-.447-3.083-.845-.927-.29-1.863-.749-2.332-.986-2.041-1.029-3.12-2.213-3.606-2.845z"/><path fill="#fff" d="M43.377 36.6c-2.55.91-8.308 3.067-8.053 6.135s4.602 2.044 6.774 1.15c2.173-.895 6.264-2.173 8.691-2.557 2.43-.383 3.962-2.684 2.685-4.217s-6.52-1.79-10.098-.512h.001zM18.15 56.045a22.2 22.2 0 0 1 1.552-4.79c.66-1.46 2.297-3.018 2.22-1.735s-1.174 4.158-1.355 6.084c-.18 1.926-.345 4.518-.869 5.773-.399.956-1.545 2.176-1.738.52-.09-.772-.274-3.28.112-5.182m-15.7 29.523c-.483.753-1.534 2.43.512 3.452 2.045 1.022 4.984 1.917 7.03 1.405 2.044-.512 4.473-1.79 4.6-2.94.128-1.15 1.023-2.3-.255-2.684-1.277-.383-5.623-.512-6.901-.895-1.278-.382-3.835-.127-4.985 1.662m33.395 14.1c-1.362.037-3.072 1.942-2.866 3.735s.211 3.837.84 5.355c.628 1.518 2.31 5.301 4.43 5.968 2.122.666 3.419 1.085 4.088-.014s.64-2.344-.187-3.613c-.826-1.268-2.674-2.534-2.608-4.927.068-2.392-1.092-6.576-3.697-6.505zm46.598 4.131c1.35-.522 2.92.032 3.896 1.302.976 1.269-.032 2.92-1.302 3.896-1.27.975-6.207 4.244-8.284 3.886-2.076-.359-4.651-2.755-3.499-3.782s5.263-2.425 6.312-3.219c1.05-.795 2.876-2.083 2.876-2.083z"/><path fill="#121442" d="M81.907 86.088c-1.525.89-13.05.787-23.914-2.328-12.18-3.493-23.108-9.852-23.735-11.465-.726-1.867.184-8.57 1.164-12.001.896-3.135 3.422-10.35 5.284-11.555 0 0 .691-.44 2.601-.476-.658 1.033-1.45 2.153-2.01 3.296-.434.887-2.666 5.939-3.738 10.7-.767 3.407-1.123 7.31-.913 8.502.117.456.236.613.72.958 1.753 1.25 12.552 6.35 18.793 8.11 13.406 3.785 25 4.313 27.64 4.057 0 0-1.231 1.816-1.892 2.2z"/><path fill="#2C3D82" d="M56.432 106.844s-8.204 1.241-7.613 10.88c.145 2.367 1.775 5.971 4.955 7.967 0 0-4.213-5.563-1.725-10.895 1.999-4.286 7.142-2.475 8.348-7.682 0 0-1.757-.585-3.965-.27"/><path fill="#2C3D82" d="M59.292 114.366a3.713 3.713 0 1 0 0-7.425 3.713 3.713 0 0 0 0 7.425m-4.194 4.292a2.408 2.408 0 1 0 0-4.816 2.408 2.408 0 0 0 0 4.816m27.645-96.962c4.493 0 8.135-3.634 8.135-8.116 0-4.483-3.642-8.117-8.135-8.117-4.492 0-8.134 3.634-8.134 8.117 0 4.482 3.642 8.116 8.134 8.116"/><path fill="#5B76C4" d="M86.035 9.156c1.013.686.843 2.11 1.021 4.045.164 1.788-2.54 4.666-4.573 4.632s-3.966-.812-5.052-2.813c-1.043-1.925-.922-3.05-.386-4.397.627-1.571 2.658-3.175 5.08-3.083s2.84.892 3.91 1.616"/><path fill="#3D55A3" d="M86.986 18.23c.984-.706 2.504-2.708 2.069-5.21-.501-2.88-1.649-4.738-3.663-4.442-2.05.3-3.705 1.05-3.657 3.01.047 1.96 1.09 3.403-.171 4.665s.045 3.83 1.526 3.65c2.244-.271 2.942-.989 3.896-1.672"/><path fill="#C0D2FF" d="M80.494 12.45c.886-.417 2.588-1.189 2.935-2.079s.382-2.139-.516-2.811c-.899-.672-2.169-.982-3.223-.185s-2.805 2.084-2.14 3.274c.662 1.19.562 2.22 1.683 2.072s1.262-.271 1.262-.271z"/><path fill="#2C3D82" d="M90.125 4.135a.9.9 0 0 1-.583-.213c-.863-.723-2.46-1.384-2.477-1.391a.905.905 0 1 1 .69-1.675c.077.031 1.873.773 2.955 1.68a.906.906 0 0 1-.585 1.6zM79.361 2.283A.907.907 0 0 1 79.1.508C79.165.49 80.722.027 82.192 0a.907.907 0 1 1 .032 1.812c-1.216.021-2.59.427-2.603.43a1 1 0 0 1-.26.04M72.792 6.63a.905.905 0 0 1-.714-1.464c.042-.054 1.065-1.35 2.275-2.231a.91.91 0 0 1 1.269.198.904.904 0 0 1-.199 1.266c-1.008.733-1.906 1.873-1.915 1.883a.9.9 0 0 1-.715.348zm-2.752 7.486h-.015a.907.907 0 0 1-.893-.919c0-.07.031-1.718.463-3.145a.908.908 0 0 1 1.738.524c-.357 1.18-.386 2.634-.386 2.649a.907.907 0 0 1-.907.891m2.062 7.627a.9.9 0 0 1-.753-.398c-.038-.057-.945-1.401-1.407-2.794a.909.909 0 0 1 1.724-.57c.382 1.151 1.18 2.337 1.187 2.35a.904.904 0 0 1-.752 1.412zm6.333 4.967q-.15.001-.297-.05c-.065-.023-1.6-.56-2.802-1.4a.905.905 0 1 1 1.04-1.484c.993.693 2.345 1.168 2.358 1.172a.906.906 0 0 1-.299 1.762m4.968.765a.907.907 0 0 1-.908-.904.907.907 0 0 1 .905-.908c1.248-.004 2.645-.4 2.658-.405a.904.904 0 1 1 .502 1.74c-.066.02-1.657.472-3.156.475H83.4zm7.493-2.795a.904.904 0 0 1-.55-1.627c.989-.75 1.86-1.907 1.868-1.918a.91.91 0 0 1 1.271-.182c.402.3.483.867.183 1.268-.041.056-1.035 1.373-2.225 2.276a.9.9 0 0 1-.548.184zm4.3-6.562a.906.906 0 0 1-.862-1.19c.392-1.183.457-2.63.459-2.645a.907.907 0 0 1 1.813.077c-.003.07-.079 1.717-.549 3.135a.91.91 0 0 1-.861.622zm.069-8.232a.91.91 0 0 1-.826-.532c-.538-1.18-1.472-2.04-1.48-2.05a.908.908 0 0 1 1.222-1.34c.05.045 1.214 1.11 1.912 2.64a.905.905 0 0 1-.825 1.28z"/><defs><linearGradient id="a" x1="30.147" x2="98.416" y1="37.556" y2="92.175" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="b" x1="29.841" x2="83.332" y1="112.009" y2="112.009" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="c" x1=".001" x2="25.199" y1="92.38" y2="92.38" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="d" x1="67.834" x2="92.753" y1="111.066" y2="111.066" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="e" x1="58.19" x2="71.282" y1="82.334" y2="28.315" gradientUnits="userSpaceOnUse"><stop stop-color="#134395"/><stop offset=".23" stop-color="#113880"/><stop offset=".66" stop-color="#0E2050"/></linearGradient><linearGradient id="f" x1="17.292" x2="26.455" y1="56.722" y2="56.722" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient></defs></svg>';"function"==typeof SuppressedError&&SuppressedError;var p=class e{window;cspNonce;cache;constructor(e={}){const t=e.window||("undefined"!=typeof window?window:void 0);if(!t)throw new Error("Window object is required but not available");this.window=t,this.cspNonce=e.cspNonce,this.cache=e.cache}static fromElement(t,n={}){const o=t.ownerDocument;if(!o)throw new Error("Element is not attached to a document");const r=o.defaultView;if(!r)throw new Error("Document is not attached to a window");return new e({window:r,...n})}clone(t={}){return new e({window:t.window||this.window,cspNonce:t.cspNonce??this.cspNonce,cache:t.cache??this.cache})}},f=class{config;constructor(e={}){this.config={maxImageTimeout:3e5,allowDataUrls:!0,...e}}validateUrl(e,t="general"){if(!e||"string"!=typeof e)return{valid:!1,error:"URL must be a non-empty string"};if(e.startsWith("data:"))return this.config.allowDataUrls?{valid:!0,sanitized:e}:{valid:!1,error:"Data URLs are not allowed"};if(e.startsWith("blob:"))return{valid:!0,sanitized:e};try{const n=new URL(e);if(!["http:","https:"].includes(n.protocol))return{valid:!1,error:`Protocol ${n.protocol} is not allowed. Only http and https are permitted.`};if("proxy"===t&&this.config.allowedProxyDomains&&this.config.allowedProxyDomains.length>0){const e=n.hostname.toLowerCase();if(!this.config.allowedProxyDomains.some(t=>{const n=t.toLowerCase();return e===n||e.endsWith("."+n)}))return{valid:!1,error:`Proxy domain ${n.hostname} is not in the allowed list`}}if("proxy"===t){if(!this.config.allowLocalhostProxy){const e=n.hostname.toLowerCase();if("localhost"===e||"127.0.0.1"===e||"::1"===e)return{valid:!1,error:"Localhost is not allowed for proxy URLs"};if(this.isPrivateIP(e))return{valid:!1,error:"Private IP addresses are not allowed for proxy URLs"};if(e.startsWith("169.254.")||e.startsWith("fe80:"))return{valid:!1,error:"Link-local addresses are not allowed for proxy URLs"}}return{valid:!0,sanitized:e}}return{valid:!0,sanitized:e}}catch(e){return{valid:!1,error:`Invalid URL format: ${e instanceof Error?e.message:"Unknown error"}`}}}isPrivateIP(e){return!![/^0\./,/^10\./,/^100\.(6[4-9]|[7-9][0-9]|1[0-1][0-9]|12[0-7])\./,/^127\./,/^169\.254\./,/^172\.(1[6-9]|2[0-9]|3[0-1])\./,/^192\.0\.0\./,/^192\.0\.2\./,/^192\.168\./,/^198\.(1[8-9])\./,/^198\.51\.100\./,/^203\.0\.113\./,/^2(2[4-9]|3[0-9])\./,/^24[0-9]\./,/^255\.255\.255\.255$/].some(t=>t.test(e))||!!e.includes(":")&&this.isPrivateIPv6(e)}isPrivateIPv6(e){const t=e.toLowerCase().trim().replace(/^\[|\]$/g,""),n=t.split("%")[0]??t;if(/^(0:){7}1$/.test(n)||"::1"===n)return!0;if(/^(0:){7}0$/.test(n)||"::"===n)return!0;const o=this.expandIPv6(n);if(!o)return this.isPrivateIPv6Prefix(n);const r=parseInt(o.substring(0,2),16);if(r>=252&&r<=253)return!0;if(254===r){const e=parseInt(o.substring(2,4),16);if(e>=128&&e<=191)return!0}return 255===r}expandIPv6(e){try{if(e.includes("::")){const t=e.split("::");if(t.length>2)return null;const n=t[0]?t[0].split(":"):[],o=t[1]?t[1].split(":"):[],r=8-n.length-o.length;if(r<0)return null;const i=Array(r).fill("0000");return[...n,...i,...o].map(e=>e.padStart(4,"0")).join(":")}{const t=e.split(":");return 8!==t.length?null:t.map(e=>e.padStart(4,"0")).join(":")}}catch{return null}}isPrivateIPv6Prefix(e){return!!(/^fc[0-9a-f]{0,2}:?/i.test(e)||/^fd[0-9a-f]{0,2}:?/i.test(e)||/^fe[89ab][0-9a-f]:?/i.test(e)||/^ff[0-9a-f]{0,2}:?/i.test(e))}validateCspNonce(e){return e&&"string"==typeof e?e.length<16?{valid:!1,error:"CSP nonce is too short (minimum 16 characters recommended)"}:/^[A-Za-z0-9+/=_-]+$/.test(e)?{valid:!0,sanitized:e}:{valid:!1,error:"CSP nonce contains invalid characters"}:{valid:!1,error:"CSP nonce must be a non-empty string"}}validateBackgroundColor(e){return null===e?{valid:!0,sanitized:null}:"string"!=typeof e||0===e.length?{valid:!1,error:"backgroundColor must be a CSS color string or null"}:/[^a-zA-Z0-9%(),.#\s/-]/.test(e)?{valid:!1,error:`backgroundColor contains characters that cannot appear in a CSS color: ${e}`}:{valid:!0,sanitized:e}}validateImageTimeout(e){return"number"!=typeof e||isNaN(e)?{valid:!1,error:"Image timeout must be a number"}:e<0?{valid:!1,error:"Image timeout cannot be negative"}:this.config.maxImageTimeout&&e>this.config.maxImageTimeout?{valid:!1,error:`Image timeout ${e}ms exceeds maximum allowed ${this.config.maxImageTimeout}ms`}:{valid:!0,sanitized:e}}validateDimensions(e,t){return"number"!=typeof e||"number"!=typeof t?{valid:!1,error:"Dimensions must be numbers"}:isNaN(e)||isNaN(t)?{valid:!1,error:"Dimensions cannot be NaN"}:e<=0||t<=0?{valid:!1,error:"Dimensions must be positive"}:e>32767||t>32767?{valid:!1,error:"Dimensions exceed maximum allowed (32767px)"}:{valid:!0,sanitized:{width:e,height:t}}}validateScale(e){return"number"!=typeof e||isNaN(e)?{valid:!1,error:"Scale must be a number"}:e<=0?{valid:!1,error:"Scale must be positive"}:e>10?{valid:!1,error:"Scale factor too large (maximum 10x)"}:{valid:!0,sanitized:e}}validateElement(e){if(!e)return{valid:!1,error:"Element is required"};if("object"!=typeof e)return{valid:!1,error:"Element must be an object"};const t=e;return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement?e.ownerDocument?{valid:!0}:{valid:!1,error:"Element must be attached to a document"}:t.ownerDocument?t.ownerDocument.defaultView?{valid:!0}:{valid:!1,error:"Document must be attached to a window (ownerDocument.defaultView required)"}:{valid:!1,error:"Element must be attached to a document (ownerDocument required)"}}validateOptions(e){const t=[],n=e.proxy;if(null!=n&&"string"==typeof n&&n.length>0){const e=this.validateUrl(n,"proxy");e.valid||t.push(`Proxy: ${e.error}`)}if(void 0!==e.imageTimeout){const n=this.validateImageTimeout(e.imageTimeout);n.valid||t.push(`Image timeout: ${n.error}`)}if(void 0!==e.width||void 0!==e.height){const n=e.width??800,o=e.height??600,r=this.validateDimensions(n,o);r.valid||t.push(`Dimensions: ${r.error}`)}if(void 0!==e.scale){const n=this.validateScale(e.scale);n.valid||t.push(`Scale: ${n.error}`)}if(void 0!==e.cspNonce){const n=this.validateCspNonce(e.cspNonce);n.valid||t.push(`CSP nonce: ${n.error}`)}if(void 0!==e.backgroundColor){const n=this.validateBackgroundColor(e.backgroundColor);n.valid||t.push(`backgroundColor: ${n.error}`)}if(this.config.customValidator){const n=this.config.customValidator(e,"options");n.valid||t.push(`Custom validation: ${n.error}`)}return t.length>0?{valid:!1,error:t.join("; ")}:{valid:!0}}},m=class{logger;activeMetrics=new Map;completedMetrics=[];enabled;getTime;constructor(e,t=!0){this.logger=e,this.enabled=t,this.getTime="undefined"!=typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now()}start(e,t){this.enabled&&(this.activeMetrics.has(e)&&this.logger?.warn(`Performance metric '${e}' already started. Overwriting.`),this.activeMetrics.set(e,{name:e,startTime:this.getTime(),metadata:t}))}end(e){if(!this.enabled)return;const t=this.activeMetrics.get(e);if(t)return t.endTime=this.getTime(),t.duration=t.endTime-t.startTime,this.completedMetrics.push(t),this.activeMetrics.delete(e),this.logger?.debug(`⏱️ ${e}: ${t.duration.toFixed(2)}ms`,t.metadata),t;this.logger?.warn(`Performance metric '${e}' not found. Was start() called?`)}measure(e,t,n){this.start(e,n);try{const n=t();return this.end(e),n}catch(t){throw this.end(e),t}}async measureAsync(e,t,n){this.start(e,n);try{const n=await t();return this.end(e),n}catch(t){throw this.end(e),t}}getMetrics(){return[...this.completedMetrics]}getMetric(e){return this.completedMetrics.find(t=>t.name===e)}getSummary(){const e=this.completedMetrics.reduce((e,t)=>e+(t.duration||0),0),t=this.completedMetrics.map(t=>({name:t.name,duration:t.duration||0,percentage:e>0?((t.duration||0)/e*100).toFixed(1)+"%":"0%"}));return{totalDuration:e,metrics:this.getMetrics(),breakdown:t}}logSummary(){if(!this.enabled||0===this.completedMetrics.length||!this.logger)return;const e=this.logger,t=this.getSummary();e.info(`\n📊 Performance Summary (Total: ${t.totalDuration.toFixed(2)}ms):`),t.breakdown.sort((e,t)=>t.duration-e.duration).forEach(t=>{e.info(` ${t.name.padEnd(20)} ${t.duration.toFixed(2).padStart(8)}ms ${t.percentage.padStart(6)}`)})}clear(){this.activeMetrics.clear(),this.completedMetrics.splice(0)}isEnabled(){return this.enabled}getActiveMetrics(){return Array.from(this.activeMetrics.keys())}},g=class e{left;top;width;height;constructor(e,t,n,o){this.left=e,this.top=t,this.width=n,this.height=o}add(t,n,o,r){return new e(this.left+t,this.top+n,this.width+o,this.height+r)}static fromClientRect(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)}static fromDOMRectList(t,n){const o=Array.from(n);let r=o.find(e=>0!==e.width);return r||(r=o.find(e=>0!==e.height)),!r&&o.length>0&&(r=o[0]),r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY}static EMPTY=new e(0,0,0,0)};const b=(e,t)=>g.fromClientRect(e,t.getBoundingClientRect()),y=(e,t)=>{const n=e[t];if(void 0===n)throw new Error(`Missing element at index ${t}`);return n},x=e=>e>=48&&e<=57,w=e=>x(e)||e>=65&&e<=70||e>=97&&e<=102,v=e=>10===e||9===e||32===e,k=e=>(e=>(e=>e>=97&&e<=122)(e)||(e=>e>=65&&e<=90)(e))(e)||(e=>e>=128)(e)||95===e,C=e=>k(e)||x(e)||45===e,S=e=>e>=0&&e<=8||11===e||e>=14&&e<=31||127===e,E=(e,t)=>92===e&&10!==t,M=(e,t,n)=>45===e?k(t)||E(t,n):!!k(e)||!(92!==e||!E(e,t)),D=(e,t,n)=>43===e||45===e?!!x(t)||46===t&&x(n):x(46===e?t:e),T=e=>{let t=0,n=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(n=-1),t++);const o=[];for(;x(e[t]??NaN);)o.push(y(e,t)),t++;const r=o.length?parseInt(String.fromCodePoint(...o),10):0;46===e[t]&&t++;const i=[];for(;x(e[t]??NaN);)i.push(y(e,t)),t++;const s=i.length,a=s?parseInt(String.fromCodePoint(...i),10):0;69!==e[t]&&101!==e[t]||t++;let l=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(l=-1),t++);const c=[];for(;x(e[t]??NaN);)c.push(y(e,t)),t++;const d=c.length?parseInt(String.fromCodePoint(...c),10):0;return n*(r+a*Math.pow(10,-s))*Math.pow(10,l*d)},B={type:2},R={type:3},F={type:4},L={type:13},I={type:8},P={type:21},A={type:9},O={type:10},N={type:11},$={type:12},z={type:14},U={type:23},j={type:1},_={type:25},G={type:24},W={type:26},V={type:27},q={type:28},H={type:29},Y={type:31},K={type:32};var X=class e{static _pool=[];static MAX_POOL_SIZE=40;static get(){return e._pool.pop()||new e}static release(t){e._pool.length<e.MAX_POOL_SIZE&&(t._reset(),e._pool.push(t))}_value;_cursor;constructor(){this._value=[],this._cursor=0}_reset(){this._value=[],this._cursor=0}write(e){this._cursor>0&&(this._value=this._value.slice(this._cursor),this._cursor=0),this._value=this._value.concat([...e].map(e=>e.codePointAt(0)))}read(){const e=[];let t=this.consumeToken();for(;t!==K;)e.push(t),t=this.consumeToken();return e}consumeToken(){const e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:{const e=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(C(e)||E(t,n)){const o=M(e,t,n)?2:1;return{type:5,value:this.consumeName(),flags:o}}break}case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),L;break;case 39:return this.consumeStringToken(39);case 40:return B;case 41:return R;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),z;break;case 43:if(D(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return F;case 45:{const t=e,n=this.peekCodePoint(0),o=this.peekCodePoint(1);if(D(t,n,o))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(M(t,n,o))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===n&&62===o)return this.consumeCodePoint(),this.consumeCodePoint(),G;break}case 46:if(D(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){let e=this.consumeCodePoint();if(42===e&&(e=this.consumeCodePoint(),47===e))return this.consumeToken();if(-1===e)return this.consumeToken()}break;case 58:return W;case 59:return V;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),this.consumeCodePoint(),_;break;case 64:{const e=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(M(e,t,n))return{type:7,value:this.consumeName()};break}case 91:return q;case 92:if(E(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return H;case 94:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),I;break;case 123:return N;case 125:return $;case 117:case 85:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1);return 43!==t||!w(n)&&63!==n?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):(this.consumeCodePoint(),this.consumeUnicodeRangeToken())}case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),A;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),P;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),O;break;case-1:return K}return v(e)?(this.consumeWhiteSpace(),Y):x(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):k(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:String.fromCodePoint(e)}}consumeCodePoint(){const e=this._value[this._cursor];return void 0===e?-1:(this._cursor++,e)}reconsumeCodePoint(e){this._cursor>0&&this._value[this._cursor-1]===e?this._cursor--:this._value.splice(this._cursor,0,e)}peekCodePoint(e){const t=this._value[this._cursor+e];return void 0!==t?t:-1}consumeUnicodeRangeToken(){const e=[];let t=this.consumeCodePoint();for(;w(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();let n=!1;for(;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(String.fromCodePoint(...e.map(e=>63===e?48:e)),16),end:parseInt(String.fromCodePoint(...e.map(e=>63===e?70:e)),16)};const o=parseInt(String.fromCodePoint(...e),16);if(45===t&&w(this.peekCodePoint(0))){t=this.consumeCodePoint();const e=[];for(;w(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();return{type:30,start:o,end:parseInt(String.fromCodePoint(...e),16)}}return{type:30,start:o,end:o}}consumeIdentLikeToken(){const e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}}consumeUrlToken(){const e=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};const t=this.peekCodePoint(0);if(39===t||34===t){const e=this.consumeStringToken(this.consumeCodePoint());return 0===e.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:e.value}):(this.consumeBadUrlRemnants(),U)}for(;;){const t=this.consumeCodePoint();if(-1===t||41===t)return{type:22,value:String.fromCodePoint(...e)};if(v(t))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:String.fromCodePoint(...e)}):(this.consumeBadUrlRemnants(),U);if(34===t||39===t||40===t||S(t))return this.consumeBadUrlRemnants(),U;if(92===t){if(!E(t,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),U;e.push(this.consumeEscapedCodePoint())}else e.push(t)}}consumeWhiteSpace(){for(;v(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const e=this.consumeCodePoint();if(41===e||-1===e)return;E(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(e){let t="";const n=this._cursor+e;let o=this._cursor;for(;o<n;){const e=Math.min(n,o+5e4);t+=String.fromCodePoint(...this._value.slice(o,e)),o=e}return this._cursor=n+1,t}consumeStringToken(e){let t="",n=0;for(;;){const o=this._value[this._cursor+n];if(-1===o||void 0===o||o===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(10===o)return this._cursor+=n,j;if(92===o){const e=this._value[this._cursor+n+1];-1!==e&&void 0!==e&&(10===e?(t+=this.consumeStringSlice(n),n=-1,this._cursor++):E(o,e)&&(t+=this.consumeStringSlice(n),t+=String.fromCodePoint(this.consumeEscapedCodePoint()),n=-1))}n++}}consumeNumber(){const e=[];let t=4,n=this.peekCodePoint(0);for(43!==n&&45!==n||e.push(this.consumeCodePoint());x(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);let o=this.peekCodePoint(1);if(46===n&&x(o))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;x(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),o=this.peekCodePoint(1);const r=this.peekCodePoint(2);if((69===n||101===n)&&((43===o||45===o)&&x(r)||x(o)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;x(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[T(e),t]}consumeNumericToken(){const[e,t]=this.consumeNumber(),n=this.peekCodePoint(0),o=this.peekCodePoint(1),r=this.peekCodePoint(2);return M(n,o,r)?{type:15,number:e,flags:t,unit:this.consumeName()}:37===n?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}}consumeEscapedCodePoint(){const e=this.consumeCodePoint();if(w(e)){let t=String.fromCodePoint(e);for(;w(this.peekCodePoint(0))&&t.length<6;)t+=String.fromCodePoint(this.consumeCodePoint());v(this.peekCodePoint(0))&&this.consumeCodePoint();const n=parseInt(t,16);return 0===n||(e=>e>=55296&&e<=57343)(n)||n>1114111?65533:n}return-1===e?65533:e}consumeName(){let e="";for(;;){const t=this.consumeCodePoint();if(C(t))e+=String.fromCodePoint(t);else{if(!E(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=String.fromCodePoint(this.consumeEscapedCodePoint())}}}},Q=class e{_tokens;constructor(e){this._tokens=e}static create(t){const n=new X;return n.write(t),new e(n.read())}static parseValue(t){return e.create(t).parseComponentValue()}static parseValues(t){return e.create(t).parseComponentValues()}parseComponentValue(){let e=this.consumeToken();for(;31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);const t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const e=[];for(;;){const t=this.consumeComponentValue();if(32===t.type)return e;e.push(t)}}consumeComponentValue(){const e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e}consumeSimpleBlock(e){const t={type:e,values:[]};let n=this.consumeToken();for(;;){if(32===n.type||se(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}}consumeFunction(e){const t={name:e.value,values:[],type:18};for(;;){const e=this.consumeToken();if(32===e.type||3===e.type)return t;this.reconsumeToken(e),t.values.push(this.consumeComponentValue())}}consumeToken(){const e=this._tokens.shift();return void 0===e?K:e}reconsumeToken(e){this._tokens.unshift(e)}};const J=e=>15===e.type,Z=e=>17===e.type,ee=e=>20===e.type,te=e=>0===e.type,ne=(e,t)=>ee(e)&&e.value===t,oe=e=>31!==e.type,re=e=>31!==e.type&&4!==e.type,ie=e=>{const t=[];let n=[];return e.forEach(e=>{4!==e.type?31!==e.type&&n.push(e):n.length&&(t.push(n),n=[])}),n.length&&t.push(n),t},se=(e,t)=>11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type,ae=/(\d+(?:\.\d+)?|[+\-*/()])/g,le=e=>{const t=e.match(ae);if(!t)return NaN;const n=[],o=[],r={"+":1,"-":1,"*":2,"/":2};for(const e of t)if(/^\d+(?:\.\d+)?$/.test(e))n.push(parseFloat(e));else if("("===e)o.push(e);else if(")"===e){for(;o.length&&"("!==o[o.length-1];)n.push(o.pop());if(!o.length)return NaN;o.pop()}else{for(;o.length&&(r[y(o,o.length-1)]??0)>=(r[e]??0);)n.push(o.pop());o.push(e)}for(;o.length;){const e=o.pop();if("("===e)return NaN;n.push(e)}const i=[];for(const e of n)if("number"==typeof e)i.push(e);else{const t=i.pop(),n=i.pop();if(void 0===n||void 0===t)return NaN;switch(e){case"+":i.push(n+t);break;case"-":i.push(n-t);break;case"*":i.push(n*t);break;case"/":i.push(0===t?NaN:n/t);break;default:return NaN}}return 1===i.length?i[0]??NaN:NaN},ce=(e,t,n)=>Math.min(Math.max(e,t),n),de=(e,t)=>[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]],he=e=>de([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],e),ue=e=>de([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],e),pe=e=>{const[t,n,o]=e,r=e=>{const t=e<0?-1:1,n=Math.abs(e);return n>.0031308?t*(1.055*n**(1/2.4)-.055):12.92*e};return[r(t),r(n),r(o)]},fe=e=>{const[t,n,o]=e,r=e=>{const t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*((n+.055)/1.055)**2.4};return[r(t),r(n),r(o)]},me=e=>17===e.type||15===e.type,ge=e=>16===e.type||me(e)||be(e),be=e=>17===e.type&&void 0!==e._calcPercentage,ye=e=>{return 18===(t=e).type&&"calc"===t.name?(e=>{const t=xe(e,0);if(!t)return null;const n=xe(e,100);if(!n)return null;const o=t.number,r=n.number-o;return 0===r?t:{type:17,number:o,flags:4,_calcPercentage:r,_calcPixelOffset:o}})(e):ge(e)?e:null;var t},xe=(e,t=0)=>{const n=e=>{let o="";for(const r of e)if(31!==r.type)if(18===r.type){if("calc"!==r.name)return null;{const e=n(r.values);if(null===e)return null;o+=`(${e})`}}else if(17===r.type)o+=r.number.toString();else if(15===r.type)"px"===r.unit?o+=r.number.toString():"rem"===r.unit||"em"===r.unit?o+=(16*r.number).toString():o+=r.number.toString();else if(16===r.type)o+=(r.number/100*t).toString();else if(6===r.type){const e=r.value;"+"===e||"-"===e||"*"===e||"/"===e?o+=` ${e} `:"("===e?o+="(":")"===e&&(o+=")")}return o};try{const t=n(e.values);if(null===t||""===t.trim())return null;const o=le(t);if("number"==typeof o&&!isNaN(o))return{type:17,number:o,flags:4}}catch(e){return null}return null},we=e=>e.length>1?[y(e,0),y(e,1)]:[y(e,0)],ve={type:17,number:0,flags:4},ke={type:16,number:50,flags:4},Ce={type:16,number:100,flags:4},Se=(e,t,n)=>{const[o,r]=e;return[Ee(o,t),Ee(void 0!==r?r:o,n)]},Ee=(e,t)=>{if(be(e))return e._calcPercentage/100*t+e._calcPixelOffset;if(16===e.type)return e.number/100*t;if(J(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Me="grad",De="turn",Te=(e,t)=>{if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case Me:return Math.PI/200*t.number;case"rad":return t.number;case De:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},Be=e=>15===e.type&&("deg"===e.unit||e.unit===Me||"rad"===e.unit||e.unit===De),Re=e=>{switch(e.filter(ee).map(e=>e.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ve,ve];case"to top":case"bottom":return Fe(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ve,Ce];case"to right":case"left":return Fe(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ce,Ce];case"to bottom":case"top":return Fe(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ce,ve];case"to left":case"right":return Fe(270)}return 0},Fe=e=>Math.PI*e/180,Le=e=>!(255&e),Ie=e=>{const t=255&e,n=255&e>>8,o=255&e>>16,r=255&e>>24;return t<255?`rgba(${r},${o},${n},${t/255})`:`rgb(${r},${o},${n})`},Pe=(e,t,n,o)=>(e<<24|t<<16|n<<8|Math.round(255*o))>>>0,Ae=(e,t)=>{if(17===e.type)return e.number;if(16===e.type){const n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},Oe=e=>{const t=e[0];return"from"===(t&&20===t.type?t.value:"unknown")},Ne=e=>Pe(ce(Math.round(255*e[0]),0,255),ce(Math.round(255*e[1]),0,255),ce(Math.round(255*e[2]),0,255),ce(e[3],0,1)),$e=e=>{const[t,n,o,r]=e,i=pe([t,n,o]);return Pe(ce(Math.round(255*i[0]),0,255),ce(Math.round(255*i[1]),0,255),ce(Math.round(255*i[2]),0,255),r)},ze=e=>{const t=he([e[0],e[1],e[2]]);return $e([t[0],t[1],t[2],e[3]])},Ue=(e,t)=>{const n=t.filter(re),o=n[0],r=n[1],i=n[2],s=n[3],a=void 0!==s&&6===s.type&&"/"===s.value?n[4]:n[3];return[o?(17===o.type?Fe(o.number):Te(0,o))/(2*Math.PI):0,void 0!==r&&ge(r)?r.number/100:0,void 0!==i&&ge(i)?i.number/100:0,void 0!==a&&ge(a)?Ee(a,1):1]},je=(e,t)=>{if(Oe(t))throw new Error("Relative color not supported for hsl()");const[n,o,r,i]=Ue(0,t),s=Ye([n,o,r]);return Pe(255*s[0],255*s[1],255*s[2],i)},_e=e=>{const t=e.filter(re),n=t[0],o=t[1],r=t[2],i=t[4];return[void 0!==n&&ge(n)?n.number:0,void 0!==o&&ge(o)?o.number:0,void 0!==r&&(Z(r)||J(r))?r.number:0,void 0!==i&&ge(i)?Ee(i,1):1]},Ge=e=>{const t=e.filter(re),n=t[0],o=t[1],r=t[2],i=t[4];return[void 0!==n?16===n.type?n.number/100:Z(n)?n.number:0:0,void 0!==o?16===o.type?o.number/100:Z(o)?o.number:0:0,void 0!==r&&(Z(r)||J(r))?r.number:0,void 0!==i&&ge(i)?Ee(i,1):1]},We=e=>{const t=e.filter(re),n=t[0],o=t[1],r=t[2],i=t[4];return[void 0!==n?16===n.type?n.number/100:Z(n)?n.number:0:0,void 0!==o?16===o.type?o.number/100:Z(o)?o.number:0:0,void 0!==r&&(Z(r)||J(r))?r.number:0,void 0!==i&&ge(i)?Ee(i,1):1]},Ve=e=>de([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],e),qe=e=>de([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],e),He=(e,t,n)=>(n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e),Ye=([e,t,n])=>{if(0===t)return[n,n,n];const o=n<=.5?n*(t+1):n+t-n*t,r=2*n-o;return[He(r,o,e+1/3),He(r,o,e),He(r,o,e-1/3)]},Ke=([e,t,n])=>(t<0&&(t=0),isNaN(n)&&(n=0),[e,t*Math.cos(n*Math.PI/180),t*Math.sin(n*Math.PI/180)]),Xe=e=>{const t=de([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],e),n=[t[0]**3,t[1]**3,t[2]**3];return de([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],n)},Qe=e=>{const t=(e[0]+16)/116,n=e[1]/500+t,o=t-e[2]/200,r=24389/27,i=24/116,s=[.3457*(n>i?n**3:(116*n-16)/r)/.3585,e[0]>8?t**3:e[0]/r,.2958*(o>i?o**3:(116*o-16)/r)/.3585];return qe([s[0],s[1],s[2]])},Je=e=>e,Ze=e=>ze([e[0],e[1],e[2],e[3]]),et=1.09929682680944,tt=.018053968510807,nt={lch:2,oklch:2,hsl:0},ot=e=>{const t=e[0],n=e[1],o=e[2],r=e[3],i=e[4],s=e[5],a=e[6],l=e[7],c=e[8],d=t*(i*c-s*l)-n*(r*c-s*a)+o*(r*l-i*a);return[(i*c-s*l)/d,(o*l-n*c)/d,(n*s-o*i)/d,(s*a-r*c)/d,(t*c-o*a)/d,(o*r-t*s)/d,(r*l-i*a)/d,(n*a-t*l)/d,(t*i-n*r)/d]},rt=ot([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816]),it=ot([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092]),st=24389/27,at=24/116,lt=at*at*at,ct=.3457/.3585,dt=.2958/.3585,ht=e=>{const[t,n,o]=Ve([e[0],e[1],e[2]]),r=t/ct,i=n,s=o/dt,a=r>lt?Math.cbrt(r):(st*r+16)/116,l=i>lt?Math.cbrt(i):(st*i+16)/116;return[116*l-16,500*(a-l),200*(l-(s>lt?Math.cbrt(s):(st*s+16)/116))]},ut=e=>{const t=de(rt,e),n=[Math.cbrt(t[0]),Math.cbrt(t[1]),Math.cbrt(t[2])];return de(it,n)},pt=e=>{const t=Math.hypot(e[1],e[2]),n=180*Math.atan2(e[2],e[1])/Math.PI;return[e[0],t,(n+360)%360]},ft=e=>{const t=e[0],n=e[1],o=e[2],r=Math.max(t,n,o),i=Math.min(t,n,o),s=(r+i)/2;if(r===i)return[0,0,s];const a=r-i;let l;return l=r===t?((n-o)/a+(n<o?6:0))/6:r===n?((o-t)/a+2)/6:((t-n)/a+4)/6,[l,s>.5?a/(2-r-i):a/(r+i),s]},mt=(e,t)=>{const n=(255&e)/255,o=(e=>[(255&e>>24)/255,(255&e>>16)/255,(255&e>>8)/255])(e),r=fe(o),i=ue(r);let s;switch(t){case"srgb":s=o;break;case"srgb-linear":s=r;break;case"xyz":case"xyz-d65":s=i;break;case"xyz-d50":s=Ve(i);break;case"lab":s=ht(i);break;case"oklab":s=ut(i);break;case"lch":s=pt(ht(i));break;case"oklch":s=pt(ut(i));break;case"hsl":s=[360*ft(o)[0],ft(o)[1],ft(o)[2]]}return[s[0],s[1],s[2],n]},gt=(e,t)=>{const n=pe(he(e));return Ne([n[0],n[1],n[2],t])},bt=(e,t)=>{let n,o=null;for(const e of t)if(31!==e.type&&4!==e.type)if(16===e.type)o=e.number;else if(ee(e)&&"none"===e.value)null===o&&(o=0);else{if(void 0!==n)throw new Error("Unexpected token in color-mix() component");n=e}if(void 0===n)throw new Error("color-mix() component is missing a color");const r=n;return{color:xt.parse(e,r),percentage:o}},yt=["srgb","srgb-linear","lab","oklab","lch","oklch","hsl","xyz","xyz-d50","xyz-d65"],xt={name:"color",parse:(e,t)=>{if(18===t.type){const n=Et[t.name];if(void 0===n)throw new Error(`Attempting to parse an unsupported color function "${t.name}"`);return n(e,t.values)}if(5===t.type){const[e,n,o,r]=wt(t);return Pe(e,n,o,r)}if(20===t.type){const e=Dt[t.value.toUpperCase()];if(void 0!==e)return e}return 0}},wt=e=>{if(3===e.value.length){const t=e.value.substring(0,1),n=e.value.substring(1,2),o=e.value.substring(2,3);return[parseInt(t+t,16),parseInt(n+n,16),parseInt(o+o,16),1]}if(4===e.value.length){const t=e.value.substring(0,1),n=e.value.substring(1,2),o=e.value.substring(2,3),r=e.value.substring(3,4);return[parseInt(t+t,16),parseInt(n+n,16),parseInt(o+o,16),parseInt(r+r,16)/255]}if(6===e.value.length){const t=e.value.substring(0,2),n=e.value.substring(2,4),o=e.value.substring(4,6);return[parseInt(t,16),parseInt(n,16),parseInt(o,16),1]}if(8===e.value.length){const t=e.value.substring(0,2),n=e.value.substring(2,4),o=e.value.substring(4,6),r=e.value.substring(6,8);return[parseInt(t,16),parseInt(n,16),parseInt(o,16),parseInt(r,16)/255]}return[0,0,0,1]},vt=(e,t)=>{const n=t.filter(re);if(Oe(n))throw new Error("Relative color not supported for rgb()");if(3===n.length||4===n.length){const e=Ae(y(n,0),0),t=Ae(y(n,1),1),o=Ae(y(n,2),2),r=4===n.length?Ae(y(n,3),3):1;return Pe(e,t,o,r)}if(5===n.length){const e=y(n,3);if(6===e.type&&"/"===e.value){const e=Ae(y(n,0),0),t=Ae(y(n,1),1),o=Ae(y(n,2),2),r=Ae(y(n,4),3);return Pe(e,t,o,r)}}return 0},kt={srgb:Ne,"srgb-linear":$e,"display-p3":e=>{const t=(e=>{const t=(e=>{const t=e=>{const t=e<0?-1:1;return e*t<=.04045?e/12.92:t*((e+.055)/1.055)**2.4||0};return[t(e[0]),t(e[1]),t(e[2])]})([e[0],e[1],e[2]]);return n=[t[0],t[1],t[2]],de([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],n);var n})([e[0],e[1],e[2]]);return ze([t[0],t[1],t[2],e[3]])},"a98-rgb":e=>{const t=he((n=(e=>{const t=e.map(e=>(e<0?-1:1)*Math.abs(e)**(563/256));return[t[0]??0,t[1]??0,t[2]??0]})([e[0],e[1],e[2]]),de([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],n)));var n;return $e([t[0],t[1],t[2],e[3]])},"prophoto-rgb":e=>{const t=(e=>{const t=(e=>{const[t,n,o]=e,r=e=>e<16/512?e/16:e**1.8;return[r(t),r(n),r(o)]})([e[0],e[1],e[2]]);return qe((n=[t[0],t[1],t[2]],de([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],n)));var n})([e[0],e[1],e[2]]);return ze([t[0],t[1],t[2],e[3]])},xyz:Ze,"xyz-d50":e=>{const t=(e=>qe([e[0],e[1],e[2]]))([e[0],e[1],e[2]]);return ze([t[0],t[1],t[2],e[3]])},"xyz-d65":Ze,rec2020:e=>{const t=(e=>{const t=(e=>{const t=e=>e<4.5*tt?e/4.5:Math.pow((e+et-1)/et,1/.45);return[t(e[0]),t(e[1]),t(e[2])]})([e[0],e[1],e[2]]);return n=[t[0],t[1],t[2]],de([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],n);var n})([e[0],e[1],e[2]]);return ze([t[0],t[1],t[2],e[3]])}},Ct={rgb:(e,t)=>{const n=t.filter(re);if(3===n.length||4===n.length){const e=Ae(y(n,0),0),t=Ae(y(n,1),1),o=Ae(y(n,2),2),r=4===n.length?Ae(y(n,3),3):1,i=fe([e/255,t/255,o/255]),[s,a,l]=ue([i[0],i[1],i[2]]);return[s,a,l,r]}return[0,0,0,1]},hsl:(e,t)=>{const[n,o,r,i]=Ue(0,t),s=fe(Ye([n,o,r])),[a,l,c]=ue([s[0],s[1],s[2]]);return[a,l,c,i]},lab:(e,t)=>{const[n,o,r,i]=Ge(t),[s,a,l]=Qe([n,o,r]);return[s,a,l,i]},lch:(e,t)=>{const[n,o,r,i]=_e(t),[s,a,l]=Qe(Ke([n,o,r]));return[s,a,l,i]},oklab:(e,t)=>{const[n,o,r,i]=Ge(t),[s,a,l]=Xe([n,o,r]);return[s,a,l,i]},oklch:(e,t)=>{const[n,o,r,i]=We(t),[s,a,l]=Xe(Ke([n,o,r]));return[s,a,l,i]}},St={srgb:e=>{const[t,n,o]=pe(he([e[0],e[1],e[2]]));return[t,n,o,e[3]]},"srgb-linear":e=>{const[t,n,o]=he([e[0],e[1],e[2]]);return[ce(Math.round(255*t),0,255),ce(Math.round(255*n),0,255),ce(Math.round(255*o),0,255),e[3]]},"display-p3":e=>{const[t,n,o]=(i=[e[0],e[1],e[2]],r=de([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],i),pe(r));var r,i;return[t,n,o,e[3]]},"a98-rgb":e=>{const[t,n,o]=(e=>{const t=e.map(e=>(e<0?-1:1)*Math.abs(e)**(256/563));return[t[0]??0,t[1]??0,t[2]??0]})((r=[e[0],e[1],e[2]],de([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],r)));var r;return[t,n,o,e[3]]},"prophoto-rgb":e=>{const[t,n,o]=(e=>{const[t,n,o]=e,r=e=>e>1/512?e**(1/1.8):16*e;return[r(t),r(n),r(o)]})((r=Ve([e[0],e[1],e[2]]),de([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],r)));var r;return[t,n,o,e[3]]},xyz:Je,"xyz-d50":e=>{const[t,n,o]=Ve([e[0],e[2],e[3]]);return[t,n,o,e[3]]},"xyz-d65":Je,rec2020:e=>{const[t,n,o]=(e=>{const t=e=>e>=tt?et*Math.pow(e,.45)-.09929682680944008:4.5*e;return[t(e[0]),t(e[1]),t(e[2])]})((r=[e[0],e[1],e[2]],de([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],r)));var r;return[t,n,o,e[3]]}},Et={hsl:je,hsla:je,rgb:vt,rgba:vt,lch:(e,t)=>{if(Oe(t.filter(re)))throw new Error("Relative color not supported for lch()");const[n,o,r,i]=_e(t),s=pe(he(Qe(Ke([n,o,r]))));return Pe(ce(Math.round(255*s[0]),0,255),ce(Math.round(255*s[1]),0,255),ce(Math.round(255*s[2]),0,255),i)},oklch:(e,t)=>{if(Oe(t.filter(re)))throw new Error("Relative color not supported for oklch()");const[n,o,r,i]=We(t),s=pe(he(Xe(Ke([n,o,r]))));return Pe(ce(Math.round(255*s[0]),0,255),ce(Math.round(255*s[1]),0,255),ce(Math.round(255*s[2]),0,255),i)},oklab:(e,t)=>{if(Oe(t.filter(re)))throw new Error("Relative color not supported for oklab()");const[n,o,r,i]=Ge(t),s=pe(he(Xe([n,o,r])));return Pe(ce(Math.round(255*s[0]),0,255),ce(Math.round(255*s[1]),0,255),ce(Math.round(255*s[2]),0,255),i)},lab:(e,t)=>{if(Oe(t.filter(re)))throw new Error("Relative color not supported for lab()");const[n,o,r,i]=Ge(t),s=(e=>{const t=e.filter(re)[0];return void 0!==t&&16===t.type})(t)?100*n:n,a=pe(he(Qe([s,o,r])));return Pe(ce(Math.round(255*a[0]),0,255),ce(Math.round(255*a[1]),0,255),ce(Math.round(255*a[2]),0,255),i)},color:(e,t)=>{const n=t.filter(re),o=n[0],r=o&&20===o.type?o.value:"unknown";if(Oe(n)){const t=(e,t)=>{if(Z(t))return t.number;if(ee(t)){const o="r"===(n=t.value)||"x"===n?0:"g"===n||"y"===n?1:2;return y(e,o)}var n;const o=e=>{const t=e.filter(re);let n="(";for(const e of t)n+=18===e.type&&"calc"===e.name?o(e.values):Z(e)?e.number:6===e.type||ee(e)?e.value:"";return n+=")",n};if(18===t.type){const n=t.values.filter(re);if("calc"===t.name){const t=o(n).replace(/r|x/,e[0].toString()).replace(/g|y/,e[1].toString()).replace(/b|z/,e[2].toString());return le(t)}}return null},o=y(n,1),r=18===o.type?o.name:ee(o)||5===o.type?"rgb":"unknown",i=y(n,2),s=ee(i)?i.value:"unknown";let a=18===o.type?o.values:ee(o)?[o]:[];if(ee(o)){if(void 0===Dt[o.value.toUpperCase()])throw new Error("Attempting to use unknown color in relative color 'from'");{const t=Mt(e,o.value),n=255&t;a=[{type:17,number:255&t>>24,flags:1},{type:17,number:255&t>>16,flags:1},{type:17,number:255&t>>8,flags:1},{type:17,number:n>1?n/255:n,flags:1}]}}else if(5===o.type){const[e,t,n,r]=wt(o);a=[{type:17,number:e,flags:1},{type:17,number:t,flags:1},{type:17,number:n,flags:1},{type:17,number:r>1?r/255:r,flags:1}]}if(0===a.length)throw new Error("Attempting to use unknown color in relative color 'from'");if("unknown"===s)throw new Error("Attempting to use unknown colorspace in relative color 'to'");const l=Ct[r],c=St[s],d=kt[s];if(void 0===l)throw new Error(`Attempting to parse an unsupported color space "${r}" for color() function`);if(void 0===c)throw new Error(`Attempting to parse an unsupported color space "${s}" for color() function`);const h=c(l(e,a)),u=t(h,y(n,3)),p=t(h,y(n,4)),f=t(h,y(n,5)),m=n[6],g=n[7],b=void 0!==m&&6===m.type&&"/"===m.value&&void 0!==g&&Z(g)?g.number:1;if(null===u||null===p||null===f)throw new Error("Invalid relative color in color() function");if(void 0===d)throw new Error(`Attempting to parse an unsupported color space "${s}" for color() function`);return d([u,p,f,b])}{const e=kt[r];if(void 0===e)throw new Error(`Attempting to parse an unsupported color space "${r}" for color() function`);const t=y(n,1),o=y(n,2),i=y(n,3),s=n[4],a=n[5];return e([Z(t)?t.number:0,Z(o)?o.number:0,Z(i)?i.number:0,void 0!==s&&6===s.type&&"/"===s.value&&void 0!==a&&Z(a)?a.number:1])}},"color-mix":(e,t)=>{try{return((e,t)=>{const n=[[]];for(const e of t)4===e.type?n.push([]):n[n.length-1].push(e);const o=n.map(e=>e.filter(e=>31!==e.type));if(3!==o.length)throw new Error("color-mix() requires exactly two color components");const r=o[0],i=r?r[0]:void 0,s=void 0!==i&&ee(i)&&"in"===i.value;if(!r||r.length<2||!s)throw new Error("color-mix() requires an interpolation space after `in`");const a=r[1];if(!a||!ee(a))throw new Error("color-mix() space must be an identifier");const l=a.value;if(-1===yt.indexOf(l))throw new Error(`Unsupported color-mix() interpolation space "${l}"`);let c="shorter";const d=r.slice(2);if(d.length>0){const e=d[0],t=d[1];if(!(e&&t&&ee(e)&&ee(t)&&"hue"===t.value))throw new Error("Unsupported color-mix() hue method syntax");if(-1===["shorter","longer","increasing","decreasing"].indexOf(e.value))throw new Error(`Unsupported color-mix() hue method "${e.value}"`);c=e.value}const h=o[1],u=o[2];if(!h||!u)throw new Error("color-mix() requires exactly two color components");const p=bt(e,h),f=bt(e,u);let m=p.percentage,g=f.percentage;if(null===m&&null===g)m=50,g=50;else if(null===m)m=100-(g??0);else if(null===g)g=100-m;else{const e=m+g;e>0&&(m=m/e*100,g=g/e*100)}const b=(m??0)/100,x=(g??0)/100;return((e,t)=>{const n=e[0],o=e[1],r=e[2],i=e[3];switch(t){case"srgb":return Ne([n,o,r,i]);case"srgb-linear":return $e([n,o,r,i]);case"xyz":case"xyz-d65":return ze([n,o,r,i]);case"xyz-d50":return ze([...qe([n,o,r]),i]);case"lab":return gt(Qe([n,o,r]),i);case"oklab":return gt(Xe([n,o,r]),i);case"lch":return gt(Qe(Ke([n,o,r])),i);case"oklch":return gt(Xe(Ke([n,o,r])),i);case"hsl":{const e=Ye([n/360,o,r]);return Ne([e[0],e[1],e[2],i])}}})(((e,t,n,o,r,i)=>{const s=nt[r],a=[e[0]*e[3],e[1]*e[3],e[2]*e[3],e[3]],l=[t[0]*t[3],t[1]*t[3],t[2]*t[3],t[3]],c=n*a[3]+o*l[3];if(c<=0)return[0,0,0,0];const d=[0,0,0,c];for(let e=0;e<3;e++)e!==s&&(d[e]=(n*y(a,e)+o*y(l,e))/c);if(void 0!==s){let r=y(e,s),a=y(t,s);0===e[1]&&(r=a),0===t[1]&&(a=r),d[s]=((e,t,n,o,r="shorter")=>{const i=n+o;if(0===i)return e;let s=((t-e)%360+360)%360;switch(r){case"shorter":s>180&&(s-=360);break;case"longer":s<180&&(s-=360);break;case"increasing":break;case"decreasing":s>0&&(s-=360)}return e+s*(o/i)})(r,a,n,o,i)}return d})(mt(p.color,l),mt(f.color,l),b,x,l,c),l)})(e,t)}catch(t){return e.logger.warn(`Unsupported color-mix() value: ${t instanceof Error?t.message:t}`),0}}},Mt=(e,t)=>xt.parse(e,Q.create(t).parseComponentValue()),Dt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Tt=e=>e.nodeType===Node.ELEMENT_NODE,Bt=e=>e.nodeType===Node.TEXT_NODE,Rt=e=>"object"==typeof e.className,Ft=e=>Tt(e)&&void 0!==e.style&&!Rt(e),Lt=e=>"svg"===e.tagName,It=e=>"BODY"===e.tagName,Pt=e=>"CANVAS"===e.tagName,At=e=>"VIDEO"===e.tagName,Ot=e=>"IMG"===e.tagName,Nt=e=>"IFRAME"===e.tagName,$t=e=>"STYLE"===e.tagName,zt=e=>"TEXTAREA"===e.tagName,Ut=e=>"SELECT"===e.tagName,jt=e=>"SLOT"===e.tagName,_t=e=>!Rt(e)&&e.tagName.indexOf("-")>0,Gt=new Set(["IMG","VIDEO","AUDIO","CANVAS","IFRAME","INPUT","TEXTAREA","SELECT","BR","HR","META","LINK","BASE","COL","SOURCE","TRACK","WBR","AREA","PARAM","EMBED","OBJECT"]),Wt={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 52;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Vt=(e,t)=>0!==(e&t);var qt=class{counters={};getCounterValue(e){const t=this.counters[e];return t&&t.length?y(t,t.length-1):1}getCounterValues(e){return this.counters[e]||[]}pop(e){e.forEach(e=>this.counters[e]?.pop())}parse(e){const t=e.counterIncrement,n=e.counterReset;let o=!0;null!==t&&t.forEach(e=>{const t=this.counters[e.counter];if(t&&0!==e.increment){o=!1,t.length||t.push(1);const n=Math.max(0,t.length-1);t[n]=(t[n]??0)+e.increment}});const r=[];return o&&n.forEach(e=>{let t=this.counters[e.counter];r.push(e.counter),t||(t=this.counters[e.counter]=[]),t.push(e.reset)}),r}};const Ht={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Yt={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Kt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Xt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Qt=(e,t,n,o,r,i)=>e<t||e>n?an(e,r,i.length>0):o.integers.reduce((t,n,r)=>{for(;e>=n;)e-=n,t+=o.values[r];return t},"")+i,Jt=(e,t,n,o)=>{let r="";do{n||e--,r=o(e)+r,e/=t}while(e*t>=t);return r},Zt=(e,t,n,o,r)=>{const i=n-t+1;return(e<0?"-":"")+(Jt(Math.abs(e),i,o,e=>String.fromCodePoint(Math.floor(e%i)+t))+r)},en=(e,t,n=". ")=>{const o=t.length;return Jt(Math.abs(e),o,!1,e=>String(t[Math.floor(e%o)]))+n},tn=(e,t,n,o,r,i)=>{if(e<-9999||e>9999)return an(e,4,r.length>0);let s=Math.abs(e),a=r;if(0===s)return t[0]+a;for(let o=0;s>0&&o<=4;o++){const r=s%10;0===r&&Vt(i,1)&&""!==a?a=t[r]+a:r>1||1===r&&0===o||1===r&&1===o&&Vt(i,2)||1===r&&1===o&&Vt(i,4)&&e>100||1===r&&o>1&&Vt(i,8)?a=(t[r]??"")+(o>0?n[o-1]??"":"")+a:1===r&&o>0&&(a=(n[o-1]??"")+a),s=Math.floor(s/10)}return(e<0?o:"")+a},nn="十百千萬",on="拾佰仟萬",rn="マイナス",sn="마이너스",an=(e,t,n)=>{const o=n?". ":"",r=n?"、":"",i=n?", ":"",s=n?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:const t=Zt(e,48,57,!0,o);return t.length<4?`0${t}`:t;case 4:return en(e,"〇一二三四五六七八九",r);case 6:return Qt(e,1,3999,Ht,3,o).toLowerCase();case 7:return Qt(e,1,3999,Ht,3,o);case 8:return Zt(e,945,969,!1,o);case 9:return Zt(e,97,122,!1,o);case 10:return Zt(e,65,90,!1,o);case 11:return Zt(e,1632,1641,!0,o);case 12:case 49:return Qt(e,1,9999,Yt,3,o);case 35:return Qt(e,1,9999,Yt,3,o).toLowerCase();case 13:return Zt(e,2534,2543,!0,o);case 14:case 30:return Zt(e,6112,6121,!0,o);case 15:return en(e,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return en(e,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return tn(e,"零一二三四五六七八九",nn,"負",r,14);case 47:return tn(e,"零壹貳參肆伍陸柒捌玖",on,"負",r,15);case 42:return tn(e,"零一二三四五六七八九",nn,"负",r,14);case 41:return tn(e,"零壹贰叁肆伍陆柒捌玖",on,"负",r,15);case 26:return tn(e,"〇一二三四五六七八九","十百千万",rn,r,0);case 25:return tn(e,"零壱弐参四伍六七八九","拾百千万",rn,r,7);case 31:return tn(e,"영일이삼사오육칠팔구","십백천만",sn,i,7);case 33:return tn(e,"零一二三四五六七八九","十百千萬",sn,i,0);case 32:return tn(e,"零壹貳參四五六七八九","拾百千",sn,i,7);case 18:return Zt(e,2406,2415,!0,o);case 20:return Qt(e,1,19999,Xt,3,o);case 21:return Zt(e,2790,2799,!0,o);case 22:return Zt(e,2662,2671,!0,o);case 52:return Qt(e,1,10999,Kt,3,o);case 23:return en(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return en(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Zt(e,3302,3311,!0,o);case 28:return en(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return en(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return Zt(e,3792,3801,!0,o);case 37:return Zt(e,6160,6169,!0,o);case 38:return Zt(e,4160,4169,!0,o);case 39:return Zt(e,2918,2927,!0,o);case 40:return Zt(e,1776,1785,!0,o);case 43:return Zt(e,3046,3055,!0,o);case 44:return Zt(e,3174,3183,!0,o);case 45:return Zt(e,3664,3673,!0,o);case 46:return Zt(e,3872,3881,!0,o);default:return Zt(e,48,57,!0,o)}},ln={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(e,t)=>t.filter(ee).reduce((e,t)=>e|cn(t.value),0)},cn=e=>{switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},dn={name:"float",initialValue:"none",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},hn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(e,t)=>t.filter(ee).map(e=>{switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},un={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(e,t)=>t.filter(ee).map(e=>{switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(e=>0!==e)},fn={name:"content",initialValue:"none",type:1,prefix:!1,parse:(e,t)=>{if(0===t.length)return[];const n=t[0];return n&&20===n.type&&"none"===n.value?[]:t}},mn={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(e,t)=>{if(0===t.length)return null;const n=t[0];if(n&&20===n.type&&"none"===n.value)return null;const o=[],r=t.filter(te);if(r.length%2!=0)return null;for(let e=0;e<r.length;e+=2){const t=y(r,e).value,n=y(r,e+1).value;o.push({open:t,close:n})}return o}},gn=(e,t,n)=>{if(!e)return"";const o=e[Math.min(t,e.length-1)];return o?n?o.open:o.close:""},bn=(e,t)=>{const n=[],o=e.filter(oe);for(let e=0;e<o.length;e++){const r=o[e],i=o[e+1];if(r&&20===r.type){const e=i&&Z(i)?i.number:t;n.push([r.value,e])}}return n},yn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(e,t)=>{if(0===t.length)return null;const n=t[0];return n&&20===n.type&&"none"===n.value?null:bn(t,1).map(([e,t])=>({counter:e,increment:t}))}},xn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(e,t)=>0===t.length?[]:bn(t,0).filter(([e])=>"none"!==e).map(([e,t])=>({counter:e,reset:t}))},wn={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(e,t)=>t.map(e=>{if(ee(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2;case"text":return 3}return 0})},vn=(e,t)=>{const n=xt.parse(e,y(t,0)),o=t[1];return o&&ge(o)?{color:n,stop:o}:{color:n,stop:null}},kn=(e,t)=>{const n=e.map(e=>({color:e.color,stop:e.stop})),o=y(n,0),r=y(n,n.length-1);null===o.stop&&(o.stop=ve),null===r.stop&&(r.stop=Ce);const i=[];let s=0;for(let e=0;e<n.length;e++){const o=y(n,e).stop;if(null!==o){const e=Ee(o,t);e>s?i.push(e):i.push(s),s=e}else i.push(null)}let a=null;for(let e=0;e<i.length;e++){const t=y(i,e);if(null===t)null===a&&(a=e);else if(null!==a){const n=e-a,o=(t-i[a-1])/(n+1);for(let e=1;e<=n;e++)i[a+e-1]=o*e;a=null}}return n.map(({color:e},n)=>({color:e,stop:Math.max(Math.min(1,i[n]/t),0)}))},Cn=(e,t,n)=>{const o="number"==typeof e?e:((e,t,n)=>{const o=t/2,r=n/2,i=Ee(e[0],t)-o,s=r-Ee(e[1],n);return(Math.atan2(s,i)+2*Math.PI)%(2*Math.PI)})(e,t,n),r=Math.abs(t*Math.sin(o))+Math.abs(n*Math.cos(o)),i=t/2,s=n/2,a=r/2,l=Math.sin(o-Math.PI/2)*a,c=Math.cos(o-Math.PI/2)*a;return[r,i-c,i+c,s-l,s+l]},Sn=(e,t)=>Math.sqrt(e*e+t*t),En=(e,t,n,o,r)=>[[0,0],[0,t],[e,0],[e,t]].reduce((e,t)=>{const[i,s]=t,a=Sn(n-i,o-s);return(r?a<e.optimumDistance:a>e.optimumDistance)?{optimumCorner:t,optimumDistance:a}:e},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner,Mn=(e,t,n,o,r)=>{let i=0,s=0;switch(e.size){case 0:0===e.shape?i=s=Math.min(Math.abs(t),Math.abs(t-o),Math.abs(n),Math.abs(n-r)):1===e.shape&&(i=Math.min(Math.abs(t),Math.abs(t-o)),s=Math.min(Math.abs(n),Math.abs(n-r)));break;case 2:if(0===e.shape)i=s=Math.min(Sn(t,n),Sn(t,n-r),Sn(t-o,n),Sn(t-o,n-r));else if(1===e.shape){const e=Math.min(Math.abs(n),Math.abs(n-r))/Math.min(Math.abs(t),Math.abs(t-o)),[a,l]=En(o,r,t,n,!0);i=Sn(a-t,(l-n)/e),s=e*i}break;case 1:0===e.shape?i=s=Math.max(Math.abs(t),Math.abs(t-o),Math.abs(n),Math.abs(n-r)):1===e.shape&&(i=Math.max(Math.abs(t),Math.abs(t-o)),s=Math.max(Math.abs(n),Math.abs(n-r)));break;case 3:if(0===e.shape)i=s=Math.max(Sn(t,n),Sn(t,n-r),Sn(t-o,n),Sn(t-o,n-r));else if(1===e.shape){const e=Math.max(Math.abs(n),Math.abs(n-r))/Math.max(Math.abs(t),Math.abs(t-o)),[a,l]=En(o,r,t,n,!1);i=Sn(a-t,(l-n)/e),s=e*i}}if(Array.isArray(e.size)){const t=e.size;i=Ee(y(t,0),o),s=2===t.length?Ee(y(t,1),r):i}return[i,s]},Dn=(e,t)=>{let n=Fe(180);const o=[];return ie(t).forEach((t,r)=>{if(0===r){const e=t[0];if(e&&20===e.type&&"to"===e.value)return void(n=Re(t));if(e&&Be(e))return void(n=Te(0,e))}const i=vn(e,t);o.push(i)}),{angle:n,stops:o,type:1}},Tn=(e,t)=>{let n=Fe(180);const o=[];return ie(t).forEach((t,r)=>{if(0===r){const e=t[0];if(e&&20===e.type&&-1!==["top","left","right","bottom"].indexOf(e.value))return void(n=Re(t));if(e&&Be(e))return void(n=(Te(0,e)+Fe(270))%Fe(360))}const i=vn(e,t);o.push(i)}),{angle:n,stops:o,type:1}},Bn="closest-side",Rn="farthest-side",Fn="closest-corner",Ln="farthest-corner",In="circle",Pn="ellipse",An="cover",On="contain",Nn=(e,t)=>{let n=1,o=3;const r=[],i=[];return ie(t).forEach((t,s)=>{let a=!0;if(0===s){let e=!1;a=t.reduce((t,r)=>{if(e)if(ee(r))switch(r.value){case"center":return i.push(ke),t;case"top":case"left":return i.push(ve),t;case"right":case"bottom":return i.push(Ce),t}else(ge(r)||me(r))&&i.push(r);else if(ee(r))switch(r.value){case In:return n=0,!1;case Pn:return n=1,!1;case"at":return e=!0,!1;case Bn:return o=0,!1;case An:case Rn:return o=1,!1;case On:case Fn:return o=2,!1;case Ln:return o=3,!1}else if(me(r)||ge(r))return Array.isArray(o)||(o=[]),o.push(r),!1;return t},a)}if(a){const n=vn(e,t);r.push(n)}}),{size:o,shape:n,stops:r,position:i,type:2}},$n=(e,t)=>{let n=1,o=3;const r=[],i=[];return ie(t).forEach((t,s)=>{let a=!0;if(0===s?a=t.reduce((e,t)=>{if(ee(t))switch(t.value){case"center":return i.push(ke),!1;case"top":case"left":return i.push(ve),!1;case"right":case"bottom":return i.push(Ce),!1}else if(ge(t)||me(t))return i.push(t),!1;return e},a):1===s&&(a=t.reduce((e,t)=>{if(ee(t))switch(t.value){case In:return n=0,!1;case Pn:return n=1,!1;case On:case Bn:return o=0,!1;case Rn:return o=1,!1;case Fn:return o=2,!1;case An:case Ln:return o=3,!1}else if(me(t)||ge(t))return Array.isArray(o)||(o=[]),o.push(t),!1;return e},a)),a){const n=vn(e,t);r.push(n)}}),{size:o,shape:n,stops:r,position:i,type:2}},zn=(e,t)=>({...Dn(e,t),type:3}),Un=(e,t)=>({...Nn(e,t),type:4}),jn=(e,t)=>{let n=0;const o=[],r=[];return ie(t).forEach((t,i)=>{let s=!0;if(0===i){let e=!1,r=!1;s=t.reduce((t,i)=>{if(ee(i))switch(i.value){case"from":return e=!0,r=!1,!1;case"at":return e=!1,r=!0,!1;case"center":return o.push(ke),t;case"top":case"left":return o.push(ve),t;case"right":case"bottom":return o.push(Ce),t}return e?(n=Te(0,i),!1):r&&ge(i)?(o.push(i),t):t},!0)}s&&t.length>0&&r.push(vn(e,t))}),{type:5,angle:n,position:o,stops:r}},_n=(e,t)=>({...jn(e,t),type:6}),Gn=e=>e?!J(e)||"dppx"!==e.unit&&"x"!==e.unit?Z(e)?e.number:1:e.number:1,Wn=(e,t)=>{const n=ie(t),o=e.config.window.devicePixelRatio||1,r=[];for(const e of n){const t=e.find(e=>22===e.type||18===e.type);if(!t)continue;const n=e.find(e=>J(e)||Z(e));r.push({imageToken:t,resolution:Gn(n)})}if(0===r.length)throw new Error("image-set() requires at least one image candidate");const i=r.filter(e=>e.resolution>=o).sort((e,t)=>e.resolution-t.resolution),s=y(i.length>0?i:r.slice().sort((e,t)=>t.resolution-e.resolution),0);return Qn.parse(e,s.imageToken)},Vn=e=>1===e.type,qn=e=>2===e.type,Hn=e=>3===e.type,Yn=e=>4===e.type,Kn=e=>5===e.type,Xn=e=>6===e.type,Qn={name:"image",parse:(e,t)=>{if(22===t.type){const n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){const n=Zn[t.name];if(void 0===n)throw new Error(`Attempting to parse an unsupported image function "${t.name}"`);return n(e,t.values)}throw new Error(`Unsupported image type ${t.type}`)}};function Jn(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Zn[e.name])}const Zn={"linear-gradient":Dn,"-moz-linear-gradient":Tn,"-ms-linear-gradient":Tn,"-o-linear-gradient":Tn,"-webkit-linear-gradient":Tn,"radial-gradient":Nn,"-moz-radial-gradient":$n,"-ms-radial-gradient":$n,"-o-radial-gradient":$n,"-webkit-radial-gradient":$n,"-webkit-gradient":(e,t)=>{const n=Fe(180),o=[];let r=1;return ie(t).forEach((t,n)=>{const i=t[0];if(i){if(0===n){if(ee(i)&&"linear"===i.value)return void(r=1);if(ee(i)&&"radial"===i.value)return void(r=2)}if(18===i.type)if("from"===i.name){const t=xt.parse(e,y(i.values,0));o.push({stop:ve,color:t})}else if("to"===i.name){const t=xt.parse(e,y(i.values,0));o.push({stop:Ce,color:t})}else if("color-stop"===i.name){const t=i.values.filter(re);if(2===t.length){const n=xt.parse(e,y(t,1)),r=y(t,0);Z(r)&&o.push({stop:{type:16,number:100*r.number,flags:r.flags},color:n})}}}}),1===r?{angle:(n+Fe(180))%Fe(360),stops:o,type:r}:{size:3,shape:0,stops:o,position:[],type:r}},"repeating-linear-gradient":zn,"-webkit-repeating-linear-gradient":zn,"-moz-repeating-linear-gradient":zn,"-ms-repeating-linear-gradient":zn,"-o-repeating-linear-gradient":zn,"repeating-radial-gradient":Un,"-webkit-repeating-radial-gradient":Un,"-moz-repeating-radial-gradient":Un,"conic-gradient":jn,"-webkit-conic-gradient":jn,"-moz-conic-gradient":jn,"repeating-conic-gradient":_n,"-webkit-repeating-conic-gradient":_n,"-moz-repeating-conic-gradient":_n,"image-set":Wn,"-webkit-image-set":Wn},eo={name:"background-image",initialValue:"none",type:1,prefix:!1,skipCache:!0,parse:(e,t)=>{if(0===t.length)return[];const n=t[0];return n&&20===n.type&&"none"===n.value?[]:t.filter(e=>re(e)&&Jn(e)).map(t=>Qn.parse(e,t))}},to={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(e,t)=>t.map(e=>{if(ee(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})},no={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(e,t)=>ie(t).map(e=>e.map(ye).filter(e=>null!==e)).map(we)},oo={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(e,t)=>ie(t).map(e=>e.filter(ee).map(e=>e.value).join(" ")).map(ro)},ro=e=>{switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},io={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(e,t)=>ie(t).map(e=>e.map(e=>so(e)?e:ye(e)).filter(e=>null!==e))},so=e=>ee(e)||ge(e),ao=e=>({name:`border-${e}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),lo=ao("top"),co=ao("right"),ho=ao("bottom"),uo=ao("left"),po=e=>({name:`border-${e}-radius`,initialValue:"0 0",prefix:!1,type:1,parse:(e,t)=>we(t.filter(ge))}),fo=po("top-left"),mo=po("top-right"),go=po("bottom-right"),bo=po("bottom-left"),yo=e=>({name:`border-${e}-style`,initialValue:"solid",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),xo=yo("top"),wo=yo("right"),vo=yo("bottom"),ko=yo("left"),Co=e=>({name:`border-${e}-width`,initialValue:"0",type:0,prefix:!1,parse:(e,t)=>J(t)?t.number:0}),So=Co("top"),Eo=Co("right"),Mo=Co("bottom"),Do=Co("left"),To={type:0},Bo=e=>{const[t]=e;return t?ee(t)?"farthest-side"===t.value?"farthest-side":"closest-side":ge(t)?t:"closest-side":"closest-side"},Ro=e=>{let t=null,n=null;for(const o of e)if(ee(o))switch(o.value){case"left":t=ve;break;case"right":t=Ce;break;case"top":n=ve;break;case"bottom":n=Ce;break;case"center":null===t?t=ke:null===n&&(n=ke)}else ge(o)&&(null===t?t=o:null===n&&(n=o));return{cx:t??ke,cy:n??ke}},Fo={name:"clip-path",initialValue:"none",prefix:!1,type:0,parse:(e,t)=>{if(ee(t)&&"none"===t.value)return To;if(18===t.type)switch(t.name){case"inset":return(e=>{const t=[];for(const n of e)if(31!==n.type){if(ee(n)&&"round"===n.value)break;ge(n)&&t.push(n)}const n=t[0]??ve,o=t[1]??n;return{type:1,top:n,right:o,bottom:t[2]??n,left:t[3]??o}})(t.values);case"circle":return(e=>{const t=e.filter(oe),n=t.findIndex(e=>ne(e,"at")),o=-1===n?t:t.slice(0,n),r=-1===n?[]:t.slice(n+1);return{type:2,radius:Bo(o),...Ro(r)}})(t.values);case"ellipse":return(e=>{const t=e.filter(oe),n=t.findIndex(e=>ne(e,"at")),o=-1===n?t:t.slice(0,n),r=-1===n?[]:t.slice(n+1);return{type:3,rx:Bo(o.slice(0,1)),ry:Bo(o.slice(1,2)),...Ro(r)}})(t.values);case"polygon":return(e=>{const t=ie(e),n=[];for(const e of t){if(1===e.length&&e[0]&&ee(e[0]))continue;const t=e.filter(ge);t.length>=2&&n.push([y(t,0),y(t,1)])}return{type:4,points:n}})(t.values);case"path":return(e=>{const t=e.find(e=>0===e.type);return t?{type:5,d:t.value}:To})(t.values);case"xywh":return(e=>{const t=[];for(const n of e)if(31!==n.type){if(ee(n)&&"round"===n.value)break;ge(n)&&t.push(n)}return t.length<4?To:{type:6,x:y(t,0),y:y(t,1),width:y(t,2),height:y(t,3)}})(t.values);case"rect":return(e=>{const t=[];for(const n of e)if(31!==n.type){if(ee(n)){if("round"===n.value)break;if("auto"===n.value){t.push("auto");continue}return To}ge(n)&&t.push(n)}if(4!==t.length)return To;const n=(e,t)=>"auto"!==e?e:"top"===t||"left"===t?ve:Ce;return{type:1,top:n(y(t,0),"top"),right:n(y(t,1),"right"),bottom:n(y(t,2),"bottom"),left:n(y(t,3),"left")}})(t.values)}return To}},Lo=(e,t)=>ee(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:ge(e)?Ee(e,t):t,Io={name:"list-style-image",initialValue:"none",type:0,prefix:!1,skipCache:!0,parse:(e,t)=>20===t.type&&"none"===t.value?null:Jn(t)?Qn.parse(e,t):null},Po=e=>({name:`margin-${e}`,initialValue:"0",prefix:!1,type:4}),Ao=Po("top"),Oo=Po("right"),No=Po("bottom"),$o=Po("left"),zo=e=>({name:`padding-${e}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),Uo=zo("top"),jo=zo("right"),_o=zo("bottom"),Go=zo("left"),Wo={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(e,t)=>1===t.length&&ne(y(t,0),"none")?[]:ie(t).map(t=>{const n={color:0,offsetX:ve,offsetY:ve,blur:ve};let o=0;for(let r=0;r<t.length;r++){const i=t[r];i&&(me(i)?(0===o?n.offsetX=i:1===o?n.offsetY=i:n.blur=i,o++):n.color=xt.parse(e,i))}return n})},Vo={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(e,t)=>{if(20===t.type&&"none"===t.value)return null;if(18===t.type){const n=qo[t.name];if(void 0===n)throw new Error(`Attempting to parse an unsupported transform function "${t.name}"`);return n(e,t.values)}return null}},qo={matrix:(e,t)=>{const n=t.filter(e=>17===e.type).map(e=>e.number);return 6===n.length?n:null},matrix3d:(e,t)=>{const n=t.filter(e=>17===e.type).map(e=>e.number);return 16!==n.length?null:[y(n,0),y(n,1),y(n,4),y(n,5),y(n,12),y(n,13)]},rotate:(e,t)=>{if(1!==t.length)return null;const n=y(t,0);let o=0;if(17===n.type&&0===n.number)o=0;else{if(15!==n.type)return null;o=Te(0,n)}const r=Math.cos(o),i=Math.sin(o);return[r,i,-i,r,0,0]}},Ho={type:16,number:50,flags:4},Yo=[Ho,Ho],Ko={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(e,t)=>{const n=t.filter(ge);return 2!==n.length?Yo:[y(n,0),y(n,1)]}},Xo={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(e,t)=>20===t.type&&"none"===t.value?null:17===t.type&&0===t.number?0:15===t.type?180*Te(0,t)/Math.PI:null},Qo=e=>0!==e,Jo=e=>3===e||4===e,Zo={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(e,t)=>{if(20===t.type)return{auto:!0,order:0};if(Z(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},er=(e,t)=>{if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")},tr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(e,t)=>Z(t)?t.number:1},nr={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(e,t)=>{if(ee(t))switch(t.value){case"auto":return"auto";case"from-font":return"from-font"}return J(t)?t.number:"auto"}},or={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(e,t)=>ee(t)&&"auto"===t.value?"auto":J(t)?t.number:"auto"},rr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(e,t)=>Z(t)?t.number:ee(t)&&"bold"===t.value?700:400},ir={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(e,t)=>t.filter(ee).map(e=>e.value)},sr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(e,t)=>t.filter(J).map(e=>er(0,e))},ar={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(e,t)=>1===t.length&&ne(y(t,0),"none")?[]:ie(t).map(t=>{const n={color:255,offsetX:ve,offsetY:ve,blur:ve,spread:ve,inset:!1};let o=0;for(let r=0;r<t.length;r++){const i=t[r];i&&(ne(i,"inset")?n.inset=!0:me(i)?(0===o?n.offsetX=i:1===o?n.offsetY=i:2===o?n.blur=i:n.spread=i,o++):n.color=xt.parse(e,i))}return n})},lr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(e,t)=>{const n=[];return t.filter(ee).forEach(e=>{switch(e.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2)}}),[0,1,2].forEach(e=>{-1===n.indexOf(e)&&n.push(e)}),n}},cr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(e,t)=>J(t)?t.number:0},dr={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(e,t)=>20===t.type&&"none"===t.value?0:17===t.type?Math.max(0,Math.floor(t.number)):0},hr={name:"object-fit",initialValue:"fill",prefix:!1,type:1,parse:(e,t)=>t.filter(ee).reduce((e,t)=>e|ur(t.value),0)},ur=e=>{switch(e){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},pr={NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"},fr=new Set(Object.values(pr)),mr={name:"mix-blend-mode",initialValue:"normal",type:2,prefix:!1,parse:(e,t)=>fr.has(t)?t:pr.NORMAL},gr={name:"filter",initialValue:"none",prefix:!1,type:1,parse:(e,t)=>{if(1===t.length){const e=y(t,0);if(20===e.type&&"none"===e.value)return null}const n=[];for(const e of t)if(22!==e.type){if(18===e.type){const t=e,o=br(t.values);switch(t.name){case"blur":n.push(`blur(${o})`);break;case"brightness":case"contrast":case"invert":case"opacity":case"saturate":case"sepia":default:n.push(`${t.name}(${o})`);break;case"grayscale":n.push(`grayscale(${o})`);break;case"hue-rotate":n.push(`hue-rotate(${o})`);break;case"drop-shadow":n.push(`drop-shadow(${o})`)}}}else n.push(`url("${e.value}")`);return n.length>0?n.join(" "):null}},br=e=>{const t=[];for(const n of e)31!==n.type?18===n.type?t.push(`${n.name}(${br(n.values)})`):4===n.type?t.push(","):6===n.type?t.push(n.value):15===n.type?t.push(`${n.number}${n.unit}`):17===n.type?t.push(`${n.number}`):16===n.type?t.push(`${n.number}%`):20===n.type?t.push(n.value):5===n.type&&t.push(`#${n.value}`):t.push(" ");return t.join("").trim()},yr={name:"zoom",initialValue:"1",type:0,prefix:!1,parse:(e,t)=>16===t.type?Math.max(0,t.number/100):17===t.type?Math.max(0,t.number):1},xr={name:"object-position",initialValue:"50% 50%",prefix:!1,type:1,parse:(e,t)=>{const n=[];let o=0;for(;o<t.length&&n.length<2;){const e=t[o];if(!e)break;if(ee(e))switch(e.value){case"left":case"top":n.push(ve);break;case"center":n.push(ke);break;case"right":case"bottom":n.push(Ce)}else ge(e)&&n.push(e);o++}for(;n.length<2;)n.push(ke);return[y(n,0),y(n,1)]}},wr=new Set(Object.values({NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"})),vr={name:"background-blend-mode",initialValue:"normal",prefix:!1,type:1,parse:(e,t)=>{const n=[],o=t.filter(re);for(const e of o)ee(e)&&wr.has(e.value)&&n.push(e.value);return n.length>0?n:["normal"]}},kr={name:"border-image-source",initialValue:"none",prefix:!1,type:1,skipCache:!0,parse:(e,t)=>{if(0===t.length)return null;const n=t.filter(e=>re(e)&&Jn(e));return 0===n.length?null:Qn.parse(e,y(n,0))}},Cr={name:"border-image-slice",initialValue:"100%",prefix:!1,type:1,parse:(e,t)=>{const n=t.filter(oe),o=[];let r=!1,i="percent";for(const e of n)ee(e)&&"fill"===e.value?r=!0:17===e.type?(o.push(e.number),i="number"):16===e.type&&(o.push(e.number),i="percent");const[s,a,l,c]=(e=>{const t=[...e];if(1===t.length){const e=y(t,0);t.push(e,e,e)}else 2===t.length?t.push(y(t,0),y(t,1)):3===t.length&&t.push(y(t,1));return[y(t,0),y(t,1),y(t,2),y(t,3)]})(o.length>0?o:[100]);return{top:s,right:a,bottom:l,left:c,fill:r,unit:i}}},Sr=e=>{switch(e){case"repeat":return 1;case"round":return 2;case"space":return 3;default:return 0}},Er={name:"border-image-repeat",initialValue:"stretch",prefix:!1,type:1,parse:(e,t)=>{const n=t.filter(oe),o=[];for(const e of n)ee(e)&&o.push(Sr(e.value));const r=o[0]??0;return{horizontal:r,vertical:o[1]??r}}},Mr={name:"accent-color",initialValue:"auto",prefix:!1,type:0,parse:(e,t)=>ee(t)&&"auto"===t.value?null:xt.parse(e,t)},Dr={name:"-webkit-text-fill-color",initialValue:"currentcolor",prefix:!0,type:0,parse:(e,t)=>ee(t)&&"currentcolor"===t.value?null:xt.parse(e,t)},Tr=new Set(["transform","translate","rotate","scale","opacity","filter","backdrop-filter","mix-blend-mode","isolation","clip-path","mask","mask-image","mask-border","perspective","contain","offset-path","offset-distance","offset-rotate","top","left","bottom","right","z-index"]),Br={name:"will-change",initialValue:"auto",prefix:!1,type:1,parse:(e,t)=>t.some(e=>ee(e)&&Tr.has(e.value))?1:0},Rr={name:"outline-color",initialValue:"currentcolor",prefix:!1,type:0,parse:(e,t)=>!ee(t)||"currentcolor"!==t.value&&"invert"!==t.value?xt.parse(e,t):null},Fr={name:"outline-width",initialValue:"medium",prefix:!1,type:0,parse:So.parse},Lr={name:"backdrop-filter",initialValue:"none",prefix:!1,type:1,parse:(e,t)=>gr.parse(e,t)},Ir=["dot","circle","double-circle","triangle","sesame"],Pr=e=>ee(e)&&"auto"===e.value?{kind:"auto"}:17===e.type?{kind:"number",value:e.number}:15===e.type&&"px"===e.unit?{kind:"length",value:e.number}:16===e.type?{kind:"percentage",value:e.number}:null,Ar=e=>{const t=[];for(const n of e){if(31===n.type)continue;const e=Pr(n);if(!e)return null;t.push(e)}return 0===t.length||t.length>4?null:(e=>{const t=[...e];if(1===t.length){const e=y(t,0);t.push(e,e,e)}else 2===t.length?t.push(y(t,0),y(t,1)):3===t.length&&t.push(y(t,1));return[y(t,0),y(t,1),y(t,2),y(t,3)]})(t)},Or=[["animationDuration",sr,"animationDuration"],["backgroundClip",wn,"backgroundClip"],["backgroundColor",{name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},"backgroundColor"],["backgroundImage",eo,"backgroundImage"],["backgroundOrigin",to,"backgroundOrigin"],["backgroundPosition",no,"backgroundPosition"],["backgroundRepeat",oo,"backgroundRepeat"],["backgroundSize",io,"backgroundSize"],["borderTopColor",lo,"borderTopColor"],["borderRightColor",co,"borderRightColor"],["borderBottomColor",ho,"borderBottomColor"],["borderLeftColor",uo,"borderLeftColor"],["borderTopLeftRadius",fo,"borderTopLeftRadius"],["borderTopRightRadius",mo,"borderTopRightRadius"],["borderBottomRightRadius",go,"borderBottomRightRadius"],["borderBottomLeftRadius",bo,"borderBottomLeftRadius"],["borderTopStyle",xo,"borderTopStyle"],["borderRightStyle",wo,"borderRightStyle"],["borderBottomStyle",vo,"borderBottomStyle"],["borderLeftStyle",ko,"borderLeftStyle"],["borderTopWidth",So,"borderTopWidth"],["borderRightWidth",Eo,"borderRightWidth"],["borderBottomWidth",Mo,"borderBottomWidth"],["borderLeftWidth",Do,"borderLeftWidth"],["boxShadow",ar,"boxShadow"],["clipPath",Fo,"clipPath"],["color",{name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},"color"],["direction",{name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(e,t)=>"rtl"===t?1:0},"direction"],["display",ln,"display"],["fontFamily",{name:"font-family",initialValue:"",prefix:!1,type:1,parse:(e,t)=>{const n=[],o=[],r=[];let i=!1;return t.forEach(e=>{switch(e.type){case 20:n.push(e.value);break;case 0:i=!0,n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:o.push(n.join(" ")),r.push(i),i=!1,n.length=0}}),n.length&&(o.push(n.join(" ")),r.push(i)),o.map((e,t)=>r[t]||-1!==e.indexOf(" ")?`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\a ").replace(/\r/g,"\\d ").replace(/\f/g,"\\c ")}'`:e)}},"fontFamily"],["fontSize",{name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},"fontSize"],["fontStyle",{name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},"fontStyle"],["fontVariant",ir,"fontVariant"],["fontWeight",rr,"fontWeight"],["letterSpacing",{name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(e,t)=>20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0},"letterSpacing"],["lineBreak",{name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(e,t)=>"strict"===t?"strict":"normal"},"lineBreak"],["lineHeight",{name:"line-height",initialValue:"normal",prefix:!1,type:4},"lineHeight"],["listStyleImage",Io,"listStyleImage"],["listStylePosition",{name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(e,t)=>"inside"===t?0:1},"listStylePosition"],["listStyleType",Wt,"listStyleType"],["marginTop",Ao,"marginTop"],["marginRight",Oo,"marginRight"],["marginBottom",No,"marginBottom"],["marginLeft",$o,"marginLeft"],["opacity",tr,"opacity"],["overflowWrap",{name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(e,t)=>"break-word"===t?"break-word":"normal"},"overflowWrap"],["paddingTop",Uo,"paddingTop"],["paddingRight",jo,"paddingRight"],["paddingBottom",_o,"paddingBottom"],["paddingLeft",Go,"paddingLeft"],["paintOrder",lr,"paintOrder"],["position",{name:"position",initialValue:"static",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},"position"],["textAlign",{name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},"textAlign"],["textDecorationStyle",{name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},"textDecorationStyle"],["textDecorationThickness",nr,"textDecorationThickness"],["textUnderlineOffset",or,"textUnderlineOffset"],["textShadow",Wo,"textShadow"],["textTransform",{name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},"textTransform"],["textOverflow",{name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(e,t)=>"ellipsis"===t?1:0},"textOverflow"],["transform",Vo,"transform"],["transformOrigin",Ko,"transformOrigin"],["rotate",Xo,"rotate"],["translate",{name:"translate",initialValue:"none",prefix:!1,type:1,parse:(e,t)=>{const n=[];for(const e of t)ge(e)&&n.push(e);return 0===n.length?null:[y(n,0),n.length>1?y(n,1):ve]}},"translate"],["scale",{name:"scale",initialValue:"none",prefix:!1,type:1,parse:(e,t)=>{const n=[];for(const e of t)Z(e)&&n.push(e.number);return 0===n.length?null:[y(n,0),n.length>1?y(n,1):y(n,0)]}},"scale"],["visibility",{name:"visibility",initialValue:"none",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"hidden":return 1;case"collapse":return 2;default:return 0}}},"visibility"],["webkitTextStrokeColor",{name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},"webkitTextStrokeColor"],["webkitTextStrokeWidth",cr,"webkitTextStrokeWidth"],["webkitLineClamp",dr,"webkitLineClamp"],["wordBreak",{name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"break-all":return"break-all";case"keep-all":return"keep-all";default:return"normal"}}},"wordBreak"],["whiteSpace",{name:"white-space",initialValue:"normal",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"pre":return"pre";case"nowrap":return"nowrap";case"pre-wrap":return"pre-wrap";case"pre-line":return"pre-line";default:return"normal"}}},"whiteSpace"],["writingMode",{name:"writing-mode",initialValue:"horizontal-tb",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"vertical-rl":return 1;case"vertical-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4;default:return 0}}},"writingMode"],["zIndex",Zo,"zIndex"],["objectFit",hr,"objectFit"],["imageRendering",{name:"image-rendering",initialValue:"auto",prefix:!1,type:2,parse:(e,t)=>{switch(t.toLowerCase()){case"crisp-edges":case"-webkit-crisp-edges":case"-moz-crisp-edges":return 1;case"pixelated":case"-webkit-optimize-contrast":return 2;case"smooth":case"high-quality":return 3;default:return 0}}},"imageRendering"],["mixBlendMode",mr,"mixBlendMode"],["filter",gr,"filter"],["fontVariantLigatures",{name:"font-variant-ligatures",initialValue:"normal",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"none":return 1;case"common-ligatures":return 2;case"no-common-ligatures":return 3;case"discretionary-ligatures":return 4;case"no-discretionary-ligatures":return 5;case"historical-ligatures":return 6;case"no-historical-ligatures":return 7;case"contextual":return 8;case"no-contextual":return 9;default:return 0}}},"fontVariantLigatures"],["zoom",yr,"zoom"],["objectPosition",xr,"objectPosition"],["backgroundBlendMode",vr,"backgroundBlendMode"],["borderImageSource",kr,"borderImageSource"],["borderImageSlice",Cr,"borderImageSlice"],["borderImageRepeat",Er,"borderImageRepeat"],["boxDecorationBreak",{name:"box-decoration-break",initialValue:"slice",prefix:!1,type:2,parse:(e,t)=>"clone"===t?1:0},"boxDecorationBreak"],["accentColor",Mr,"accentColor"],["webkitTextFillColor",Dr,"webkitTextFillColor"],["isolation",{name:"isolation",initialValue:"auto",prefix:!1,type:2,parse:(e,t)=>"isolate"===t?1:0},"isolation"],["willChange",Br,"will-change"],["contain",{name:"contain",initialValue:"none",prefix:!1,type:2,parse:(e,t)=>/\b(paint|strict|content)\b/.test(t)?1:0},"contain"],["outlineColor",Rr,"outlineColor"],["outlineStyle",{name:"outline-style",initialValue:"none",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"solid":return 2;case"dashed":return 3;case"dotted":return 4;case"double":return 5;case"auto":return 1;default:return 0}}},"outlineStyle"],["outlineWidth",Fr,"outlineWidth"],["outlineOffset",{name:"outline-offset",initialValue:"0px",prefix:!1,type:0,parse:(e,t)=>J(t)||Z(t)?t.number:0},"outlineOffset"],["backdropFilter",Lr,"backdropFilter"],["maskImage",{name:"mask-image",initialValue:"none",prefix:!1,type:1,skipCache:!0,parse:eo.parse},"maskImage"],["maskPosition",{name:"mask-position",initialValue:"0%",prefix:!1,type:1,parse:no.parse},"maskPosition"],["maskRepeat",{name:"mask-repeat",initialValue:"repeat",prefix:!1,type:1,parse:oo.parse},"maskRepeat"],["maskSize",{name:"mask-size",initialValue:"auto",prefix:!1,type:1,parse:io.parse},"maskSize"],["textEmphasisStyle",{name:"text-emphasis-style",initialValue:"none",prefix:!1,type:1,parse:(e,t)=>{const n=t.filter(oe);if(0===n.length)return null;const o=y(n,0);if(0===o.type)return o.value;if(ee(o)){if("none"===o.value)return null;if("filled"!==o.value&&"open"!==o.value&&-1===Ir.indexOf(o.value))return o.value}let r=!0,i="circle";for(const e of n)ee(e)&&("filled"===e.value?r=!0:"open"===e.value?r=!1:-1!==Ir.indexOf(e.value)&&(i=e.value));return{fill:r,shape:i}}},"textEmphasisStyle"],["textEmphasisColor",{name:"text-emphasis-color",initialValue:"currentcolor",prefix:!1,type:0,parse:(e,t)=>ee(t)&&"currentcolor"===t.value?null:xt.parse(e,t)},"textEmphasisColor"],["textEmphasisPosition",{name:"text-emphasis-position",initialValue:"over right",prefix:!1,type:1,parse:(e,t)=>{let n=!0,o=!0;for(const e of t)if(ee(e))switch(e.value){case"over":n=!0;break;case"under":n=!1;break;case"right":o=!0;break;case"left":o=!1}return{over:n,right:o}}},"textEmphasisPosition"],["borderImageWidth",{name:"border-image-width",initialValue:"auto",prefix:!1,type:1,parse:(e,t)=>{const n=Ar(t),o={kind:"auto"};return n?{top:n[0],right:n[1],bottom:n[2],left:n[3]}:{top:o,right:o,bottom:o,left:o}}},"borderImageWidth"],["borderImageOutset",{name:"border-image-outset",initialValue:"0px",prefix:!1,type:1,parse:(e,t)=>{const n=Ar(t),o={kind:"length",value:0};return n?{top:n[0],right:n[1],bottom:n[2],left:n[3]}:{top:o,right:o,bottom:o,left:o}}},"borderImageOutset"],["webkitBoxReflect",{name:"-webkit-box-reflect",initialValue:"none",prefix:!0,type:1,skipCache:!0,parse:(e,t)=>{let n=null,o=0,r=null;for(const i of t)if(31!==i.type){if(null===n&&ee(i)){if("below"===i.value||"above"===i.value||"left"===i.value||"right"===i.value){n=i.value;continue}if("none"===i.value)return null}0===o&&J(i)&&"px"===i.unit?o=i.number:null===r&&Jn(i)&&(r=Qn.parse(e,i))}return null===n?null:{direction:n,offset:o,mask:r}}},"webkitBoxReflect"]],Nr=new Map,$r=(e,t,n)=>{let o=null!=n?n.toString():t.initialValue;""===o.trim()&&(o=t.initialValue);let r=Nr.get(t);if(r){const e=r.get(o);if(void 0!==e)return r.delete(o),r.set(o,e),e}const i=X.get();i.write(o);const s=new Q(i.read());X.release(i);const a=(()=>{switch(t.type){case 2:{const n=s.parseComponentValue();return t.parse(e,ee(n)?n.value:t.initialValue)}case 0:return t.parse(e,s.parseComponentValue());case 1:return t.parse(e,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(t.format){case"angle":return Te(0,s.parseComponentValue());case"color":return xt.parse(e,s.parseComponentValue());case"image":return Qn.parse(e,s.parseComponentValue());case"length":{const e=s.parseComponentValue();return me(e)?e:ve}case"length-percentage":{const e=s.parseComponentValue();return ge(e)?e:ve}case"time":return er(0,s.parseComponentValue())}}})();if(r||(r=new Map,Nr.set(t,r)),!(t.skipCache||3===t.type&&"image"===t.format)){if(r.size>=200){const e=r.keys().next().value;void 0!==e&&r.delete(e)}r.set(o,a)}return a};var zr=class{styles;constructor(e){this.styles=e}get topColor(){return this.styles.borderTopColor}get rightColor(){return this.styles.borderRightColor}get bottomColor(){return this.styles.borderBottomColor}get leftColor(){return this.styles.borderLeftColor}get topStyle(){return this.styles.borderTopStyle}get rightStyle(){return this.styles.borderRightStyle}get bottomStyle(){return this.styles.borderBottomStyle}get leftStyle(){return this.styles.borderLeftStyle}get topWidth(){return this.styles.borderTopWidth}get rightWidth(){return this.styles.borderRightWidth}get bottomWidth(){return this.styles.borderBottomWidth}get leftWidth(){return this.styles.borderLeftWidth}get topLeftRadius(){return this.styles.borderTopLeftRadius}get topRightRadius(){return this.styles.borderTopRightRadius}get bottomRightRadius(){return this.styles.borderBottomRightRadius}get bottomLeftRadius(){return this.styles.borderBottomLeftRadius}get imageSource(){return this.styles.borderImageSource}get imageSlice(){return this.styles.borderImageSlice}get imageRepeat(){return this.styles.borderImageRepeat}get boxShadow(){return this.styles.boxShadow}},Ur=class{styles;constructor(e){this.styles=e}get color(){return this.styles.backgroundColor}get image(){return this.styles.backgroundImage}get clip(){return this.styles.backgroundClip}get origin(){return this.styles.backgroundOrigin}get position(){return this.styles.backgroundPosition}get repeat(){return this.styles.backgroundRepeat}get size(){return this.styles.backgroundSize}get blendMode(){return this.styles.backgroundBlendMode}},jr=class{styles;constructor(e){this.styles=e}get family(){return this.styles.fontFamily}get size(){return this.styles.fontSize}get style(){return this.styles.fontStyle}get variant(){return this.styles.fontVariant}get weight(){return this.styles.fontWeight}get ligatures(){return this.styles.fontVariantLigatures}get color(){return this.styles.color}get letterSpacing(){return this.styles.letterSpacing}get lineHeight(){return this.styles.lineHeight}get textAlign(){return this.styles.textAlign}get textTransform(){return this.styles.textTransform}get textOverflow(){return this.styles.textOverflow}get textShadow(){return this.styles.textShadow}get textDecorationColor(){return this.styles.textDecorationColor}get textDecorationLine(){return this.styles.textDecorationLine}get textDecorationStyle(){return this.styles.textDecorationStyle}get textDecorationThickness(){return this.styles.textDecorationThickness}get textUnderlineOffset(){return this.styles.textUnderlineOffset}get wordBreak(){return this.styles.wordBreak}get lineBreak(){return this.styles.lineBreak}get overflowWrap(){return this.styles.overflowWrap}get writingMode(){return this.styles.writingMode}get direction(){return this.styles.direction}get webkitTextStrokeColor(){return this.styles.webkitTextStrokeColor}get webkitTextStrokeWidth(){return this.styles.webkitTextStrokeWidth}get webkitLineClamp(){return this.styles.webkitLineClamp}get paintOrder(){return this.styles.paintOrder}},_r=class{styles;constructor(e){this.styles=e}get display(){return this.styles.display}get position(){return this.styles.position}get float(){return this.styles.float}get zIndex(){return this.styles.zIndex}get marginTop(){return this.styles.marginTop}get marginRight(){return this.styles.marginRight}get marginBottom(){return this.styles.marginBottom}get marginLeft(){return this.styles.marginLeft}get paddingTop(){return this.styles.paddingTop}get paddingRight(){return this.styles.paddingRight}get paddingBottom(){return this.styles.paddingBottom}get paddingLeft(){return this.styles.paddingLeft}get overflowX(){return this.styles.overflowX}get overflowY(){return this.styles.overflowY}get opacity(){return this.styles.opacity}get visibility(){return this.styles.visibility}get transform(){return this.styles.transform}get transformOrigin(){return this.styles.transformOrigin}get rotate(){return this.styles.rotate}get zoom(){return this.styles.zoom}get clipPath(){return this.styles.clipPath}get mixBlendMode(){return this.styles.mixBlendMode}get filter(){return this.styles.filter}get imageRendering(){return this.styles.imageRendering}get objectFit(){return this.styles.objectFit}get objectPosition(){return this.styles.objectPosition}get boxDecorationBreak(){return this.styles.boxDecorationBreak}get listStyleImage(){return this.styles.listStyleImage}get listStylePosition(){return this.styles.listStylePosition}get listStyleType(){return this.styles.listStyleType}get animationDuration(){return this.styles.animationDuration}isVisible(){return this.styles.isVisible()}isTransparent(){return this.styles.isTransparent()}isTransformed(){return this.styles.isTransformed()}isPositioned(){return this.styles.isPositioned()}isPositionedWithZIndex(){return this.styles.isPositionedWithZIndex()}isFloating(){return this.styles.isFloating()}isInlineLevel(){return this.styles.isInlineLevel()}},Gr=class{animationDuration;backgroundClip;backgroundColor;backgroundImage;backgroundOrigin;backgroundPosition;backgroundRepeat;backgroundSize;borderTopColor;borderRightColor;borderBottomColor;borderLeftColor;borderTopLeftRadius;borderTopRightRadius;borderBottomRightRadius;borderBottomLeftRadius;borderTopStyle;borderRightStyle;borderBottomStyle;borderLeftStyle;borderTopWidth;borderRightWidth;borderBottomWidth;borderLeftWidth;boxShadow;clipPath;color;direction;display;float;fontFamily;fontSize;fontStyle;fontVariant;fontWeight;letterSpacing;lineBreak;lineHeight;listStyleImage;listStylePosition;listStyleType;marginTop;marginRight;marginBottom;marginLeft;opacity;overflowX;overflowY;overflowWrap;paddingTop;paddingRight;paddingBottom;paddingLeft;paintOrder;position;textAlign;textDecorationColor;textDecorationLine;textDecorationStyle;textDecorationThickness;textUnderlineOffset;textShadow;textTransform;textOverflow;transform;transformOrigin;rotate;translate;scale;visibility;webkitTextStrokeColor;webkitTextStrokeWidth;webkitLineClamp;wordBreak;whiteSpace;writingMode;zIndex;objectFit;imageRendering;mixBlendMode;filter;fontVariantLigatures;zoom;objectPosition;backgroundBlendMode;borderImageSource;borderImageSlice;borderImageRepeat;boxDecorationBreak;accentColor;webkitTextFillColor;isolation;willChange;contain;outlineColor;outlineStyle;outlineWidth;outlineOffset;backdropFilter;maskImage;maskPosition;maskRepeat;maskSize;textEmphasisStyle;textEmphasisColor;textEmphasisPosition;borderImageWidth;borderImageOutset;webkitBoxReflect;_border;_background;_font;_layout;get border(){return this._border??(this._border=new zr(this))}get background(){return this._background??(this._background=new Ur(this))}get font(){return this._font??(this._font=new jr(this))}get layout(){return this._layout??(this._layout=new _r(this))}constructor(e,t){if("none"!==t.display){for(const[n,o,r]of Or)this[n]=$r(e,o,t[r]);Object.assign(this,Wr(e,t))}else{this.display=0;for(const[t,n]of Or)"display"!==t&&(this[t]=$r(e,n,void 0));Object.assign(this,Wr(e,null))}}isVisible(){return this.display>0&&this.opacity>0&&0===this.visibility}isTransparent(){return Le(this.backgroundColor)}isTransformed(){return null!==this.transform||null!==this.rotate||null!==this.translate||null!==this.scale}isPositioned(){return 0!==this.position}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return 0!==this.float}isInlineLevel(){return Vt(this.display,4)||Vt(this.display,33554432)||Vt(this.display,268435456)||Vt(this.display,536870912)||Vt(this.display,67108864)||Vt(this.display,134217728)}};const Wr=(e,t)=>{const n=(e,n)=>{if(t)return t[e]??n},o=$r(e,hn,n("overflow"));return{float:$r(e,dn,n("cssFloat")),textDecorationColor:$r(e,un,n("textDecorationColor",n("color"))),textDecorationLine:$r(e,pn,n("textDecorationLine",n("textDecoration"))),overflowX:o[0],overflowY:o[o.length>1?1:0]}};var Vr=class{content;quotes;constructor(e,t){this.content=$r(e,fn,t.content),this.quotes=$r(e,mn,t.quotes)}},qr=class{counterIncrement;counterReset;constructor(e,t){this.counterIncrement=$r(e,yn,t.counterIncrement),this.counterReset=$r(e,xn,t.counterReset)}};const Hr=(e,t)=>{const n=(e=>{if("function"!=typeof e.getAttribute)return 0;switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}})(e);return 1===n||t===n},Yr=(e,t,n)=>{const o=(e=>{let t="";for(const n of e)try{const e=n.cssRules;for(let n=0;n<e.length;n++){const o=e[n];o&&"string"==typeof o.cssText&&(t+=o.cssText)}}catch(e){}return t})(t);if(!o)return null;const r=e.createElement("style");return r.textContent=o,n&&(r.nonce=n),r};var Kr=class{cloneNodeFn;options;context;constructor(e,t,n){this.cloneNodeFn=e,this.options=t,this.context=n}appendChildNode(e,t,n){this.safeAppendClonedChild(e,t,n)}cloneChildNodes(e,t,n){e.shadowRoot&&t.shadowRoot?(this.cloneShadowDOMChildren(e.shadowRoot,t.shadowRoot,n),this.cloneLightDOMChildren(e,t,n)):e.shadowRoot&&!t.shadowRoot?this.cloneShadowDOMAsLightDOM(e.shadowRoot,t,n):this.cloneLightDOMChildren(e,t,n)}shouldCloneChild(e){return!(Tt(e)&&(t=e,"SCRIPT"===t.tagName||e.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e)));var t}shouldCloneStyleElement(e){return!this.options.copyStyles||!Tt(e)||!$t(e)}safeAppendClonedChild(e,t,n){this.shouldCloneChild(t)&&this.shouldCloneStyleElement(t)&&e.appendChild(this.cloneNodeFn(t,n))}cloneAssignedNodes(e,t,n){e.forEach(e=>{this.safeAppendClonedChild(t,e,n)})}cloneSlotFallbackContent(e,t,n){for(let o=e.firstChild;o;o=o.nextSibling)this.safeAppendClonedChild(t,o,n)}cloneSlotElement(e,t,n){if(!jt(e))return;const o=e;if("function"!=typeof o.assignedNodes)return this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",e),void this.cloneSlotFallbackContent(e,t,n);const r=o.assignedNodes();if(!r||!Array.isArray(r))return this.context.logger.warn("assignedNodes() did not return a valid array",e),void this.cloneSlotFallbackContent(e,t,n);r.length>0?this.cloneAssignedNodes(r,t,n):this.cloneSlotFallbackContent(e,t,n)}cloneShadowDOMChildren(e,t,n){for(let o=e.firstChild;o;o=o.nextSibling)Tt(o)&&jt(o)?this.cloneSlotElement(o,t,n):this.safeAppendClonedChild(t,o,n);this.appendAdoptedStyleSheets(e,t,n)}cloneLightDOMChildren(e,t,n){for(let o=e.firstChild;o;o=o.nextSibling)this.appendChildNode(t,o,n)}cloneSlotElementAsLightDOM(e,t,n){if(!jt(e))return;const o=e;if("function"!=typeof o.assignedNodes){for(let o=e.firstChild;o;o=o.nextSibling)this.appendChildNode(t,o,n);return}const r=o.assignedNodes();if(r&&Array.isArray(r)&&r.length>0)r.forEach(e=>this.appendChildNode(t,e,n));else for(let o=e.firstChild;o;o=o.nextSibling)this.appendChildNode(t,o,n)}cloneShadowDOMAsLightDOM(e,t,n){for(let o=e.firstChild;o;o=o.nextSibling)Tt(o)&&jt(o)?this.cloneSlotElementAsLightDOM(o,t,n):this.appendChildNode(t,o,n);this.appendAdoptedStyleSheets(e,t,n)}appendAdoptedStyleSheets(e,t,n){if(n)return;const o=e.adoptedStyleSheets;if(!o||0===o.length)return;const r="host"in t?t.host.ownerDocument:t.ownerDocument;if(!r)return;const i=Yr(r,o,this.options.cspNonce);i&&t.appendChild(i)}};const Xr=["all","d","content"],Qr=(e,t)=>{const n=[];for(let t=e.length-1;t>=0;t--){const o=e.item(t);if(-1===Xr.indexOf(o)&&!o.startsWith("--")){const t=e.getPropertyValue(o);if(t){const r=e.getPropertyPriority(o);n.push(r?`${o}:${t} !${r}`:`${o}:${t}`)}}}return n.length>0&&(t.style.cssText=n.join(";")+";"),t},Jr=["color","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-opacity","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-dasharray","stroke-dashoffset","paint-order","vector-effect","marker-start","marker-mid","marker-end","stop-color","stop-opacity","flood-color","flood-opacity","lighting-color","color-interpolation","color-interpolation-filters","shape-rendering","text-rendering","image-rendering","display","visibility","opacity","overflow-x","overflow-y","clip-path","clip-rule","mask-image","mask-mode","mask-repeat","mask-position","mask-clip","mask-origin","mask-size","mask-composite","mask-type","filter","mix-blend-mode","isolation","transform","transform-origin","transform-box","translate","rotate","scale","x","y","cx","cy","r","rx","ry","width","height","font-family","font-size","font-size-adjust","font-style","font-weight","font-stretch","font-variant-caps","font-variant-ligatures","font-variant-numeric","font-variant-east-asian","font-variant-position","font-variant-alternates","font-kerning","font-feature-settings","font-variation-settings","font-optical-sizing","letter-spacing","word-spacing","text-anchor","dominant-baseline","alignment-baseline","baseline-shift","text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-transform","white-space","writing-mode","text-orientation","direction","unicode-bidi"],Zr="___html2canvas___pseudoelement_before",ei="___html2canvas___pseudoelement_after",ti='{\n content: "" !important;\n display: none !important;\n}';var ni=class{context;counters;quoteDepth=0;constructor(e,t){this.context=e,this.counters=t}resolvePseudoContent(e,t,n,o){if(!n)return;const r=n.content,i=t.ownerDocument;if(!i||!r||"none"===r||"-moz-alt-content"===r||"none"===n.display)return;this.counters.parse(new qr(this.context,n));const s=new Vr(this.context,n),a=i.createElement("html2canvaspseudoelement");Qr(n,a),s.content.forEach(t=>{if(0===t.type)a.appendChild(i.createTextNode(t.value));else if(22===t.type){const e=i.createElement("img");e.src=t.value,e.style.opacity="1",a.appendChild(e)}else if(18===t.type){if("attr"===t.name){const n=t.values.filter(ee);n.length&&n[0]&&a.appendChild(i.createTextNode(e.getAttribute(n[0].value)||""))}else if("counter"===t.name){const[e,n]=t.values.filter(re);if(e&&ee(e)){const t=this.counters.getCounterValue(e.value),o=n&&ee(n)?Wt.parse(this.context,n.value):3;a.appendChild(i.createTextNode(an(t,o,!1)))}}else if("counters"===t.name){const[e,n,o]=t.values.filter(re);if(e&&ee(e)){const t=this.counters.getCounterValues(e.value),r=o&&ee(o)?Wt.parse(this.context,o.value):3,s=n&&0===n.type?n.value:"",l=t.map(e=>an(e,r,!1)).join(s);a.appendChild(i.createTextNode(l))}}}else if(20===t.type)switch(t.value){case"open-quote":a.appendChild(i.createTextNode(gn(s.quotes,this.quoteDepth++,!0)));break;case"close-quote":{const e=this.quoteDepth>0;this.quoteDepth=Math.max(0,this.quoteDepth-1),e&&a.appendChild(i.createTextNode(gn(s.quotes,this.quoteDepth,!1)));break}default:a.appendChild(i.createTextNode(t.value))}}),a.className=`${Zr} ${ei}`;const l=0===o?` ${Zr}`:` ${ei}`;return Rt(t)?t.className.baseValue+=l:t.className+=l,a}};const oi=e=>{if(e?.aborted)throw new DOMException("The operation was aborted.","AbortError")},ri=new WeakMap,ii=e=>new Promise(t=>{e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}),si=(e,t=0)=>{if(!e||t>ai)return!0;let n;try{n=e.cssRules}catch(e){return!0}if(!n)return!0;for(let e=0;e<n.length;e++){const o=n[e];if(!o||!("styleSheet"in o))continue;const r=o.styleSheet;if(!r||!si(r,t+1))return!1}return!0},ai=32,li=(e,t)=>{const n=e.querySelectorAll("link");for(let e=0;e<n.length;e++){const o=n[e];o&&t.push(o)}const o=(e.ownerDocument??e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT);let r=o.nextNode();for(;r;){const e=r.shadowRoot;e&&li(e,t),r=o.nextNode()}},ci=e=>e.replace(/[<>&"'`\\]|[\u0000-\u001f\u007f]/g,""),di=([e,t,n])=>{e.scrollLeft=t,e.scrollTop=n};var hi=class{context;options;scrolledElements;referenceElement;clonedReferenceElement;documentElement;counters;pseudoContents;slotCloner;constructor(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new qt,this.pseudoContents=new ni(e,this.counters),this.slotCloner=new Kr((e,t)=>this.cloneNode(e,t),{ignoreElements:n.ignoreElements,copyStyles:n.copyStyles??!0,cspNonce:n.cspNonce},e),!t.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const e=(e=>{let t=e;for(;t;){if(t.parentNode&&t.parentNode.host)return t.parentNode;const e=t.getRootNode();if(e&&e!==t.ownerDocument&&e.host)return e;t=t.parentNode}return null})(t);e&&(this.options.iframeContainer=e)}this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1),this.appendDocumentAdoptedStyles(t.ownerDocument),this.appendPseudoHideStyles()}appendDocumentAdoptedStyles(e){if(this.options.copyStyles)return;const t=e.adoptedStyleSheets;if(!t||0===t.length)return;const n=this.documentElement.getElementsByTagName("head").item(0);if(!n)return;const o=Yr(this.documentElement.ownerDocument??e,t,this.options.cspNonce);o&&n.appendChild(o)}appendPseudoHideStyles(){var e,t;e=this.documentElement.getElementsByTagName("head").item(0)??this.documentElement,t=this.options.cspNonce,((e,t,n)=>{const o=e.ownerDocument;if(o){const r=o.createElement("style");r.textContent=t,n&&(r.nonce=n),e.appendChild(r)}})(e,`.${Zr}:before${ti}\n .${ei}:after${ti}`,t)}toIFrame(e,t){return((e,t,n,o)=>{const r=((e,t,n)=>{const o=e.createElement("iframe");o.className="html2canvas-container",o.style.visibility="hidden",o.style.position="fixed",o.style.left="-10000px",o.style.top="0px",o.width=t.width.toString(),o.height=t.height.toString();const r=[["width",`${t.width}px`],["height",`${t.height}px`],["min-width","0px"],["max-width","none"],["min-height","0px"],["max-height","none"],["box-sizing","content-box"],["padding","0px"],["border","0"]];for(const[e,t]of r)o.style.setProperty(e,t,"important");return o.scrolling="no",o.setAttribute("data-html2canvas-ignore","true"),(n||e.body).appendChild(o),o})(t,n,o.container);if(!r.contentWindow)throw new Error("Unable to find iframe window");const i=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,a=r.contentWindow,l=a.document,c=((e,t,n)=>new Promise((o,r)=>{const i=e.contentWindow;if(!i)return r("No window assigned for iframe");const s=i.document;let a;const l=setTimeout(()=>{a&&clearInterval(a),r(new Error("Cloned iframe did not fire its load event within 60000ms"))},6e4),c=()=>{a&&clearInterval(a),clearTimeout(l),r(new DOMException("The operation was aborted.","AbortError"))};i.onload=e.onload=()=>{i.onload=e.onload=null;const r=Math.ceil(600);let d=0;a=setInterval(()=>{d++,n?.aborted?c():s.body.childNodes.length>0&&"complete"===s.readyState?(clearInterval(a),a=void 0,clearTimeout(l),o(e)):d>=r&&(clearInterval(a),a=void 0,t?.warn("Cloned iframe did not become ready within 30 seconds; continuing with a possibly incomplete document"),o(e))},50)},n&&(n.aborted?c():n.addEventListener("abort",c,{once:!0}))}))(r,e.logger,o.signal).then(async()=>{o.scrolledElements.forEach(di),a&&a.scrollTo(n.left,n.top);const t=o.onclone,i=o.clonedReferenceElement;if(void 0===i)throw new Error(`Error finding the ${o.referenceElementName} in the cloned document`);return oi(o.signal),await p,oi(o.signal),l.fonts&&l.fonts.ready&&await l.fonts.ready,oi(o.signal),/(AppleWebKit)/g.test(navigator.userAgent)&&(await(e=>Promise.all([].slice.call(e.images,0).map(ii)))(l),oi(o.signal)),"function"==typeof t&&await Promise.resolve().then(()=>t(l,i)),a.scrollTo(n.left,n.top),!/AppleWebKit/g.test(navigator.userAgent)||a.scrollY===n.top&&a.scrollX===n.left||(e.logger.warn("Unable to restore scroll position for cloned document"),e.adjustWindowBounds(a.scrollX-n.left,a.scrollY-n.top)),r}),d=t.baseURI;l.open();const h=(e=>{let t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=ci(e.name)),e.internalSubset&&(t+=" "+ci(e.internalSubset)),e.publicId?(t+=' PUBLIC "'+ci(e.publicId)+'"',e.systemId&&(t+=' "'+ci(e.systemId)+'"')):e.systemId&&(t+=' SYSTEM "'+ci(e.systemId)+'"'),t+=">"),t})(t.doctype)+"<html></html>";try{const e=(e=>{const t=e&&e.trustedTypes;if(!t)return null;if(ri.has(t))return ri.get(t)??null;let n=null;try{n=t.getPolicy?.("html2canvas-pro")??t.createPolicy("html2canvas-pro",{createHTML:e=>e})}catch(e){n=null}return ri.set(t,n),n})(t.defaultView),n=e?e.createHTML(h):h;l.write(n)}catch(e){l.write(h)}((e,t,n)=>{e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)})(t,i,s),l.close();const u=l.adoptNode(o.documentElement);((e,t)=>{const n=e.ownerDocument.createElement("base");n.href=t;const o=e.getElementsByTagName("head").item(0);o?.insertBefore(n,o?.firstChild??null)})(u,d),l.replaceChild(u,l.documentElement);const p=((e,t,n,o=1e4)=>{if(n?.aborted)return Promise.resolve();const r=[],i=[];li(e,i);for(const e of i){if(e.sheet)continue;const i=(e.getAttribute("rel")??"").trim().toLowerCase().split(/\s+/);i.includes("stylesheet")&&!i.includes("alternate")&&!e.disabled&&e.getAttribute("href")&&r.push(new Promise(r=>{const i=e.href,s=()=>{e.removeEventListener("load",s),e.removeEventListener("error",s),n?.removeEventListener("abort",a),clearInterval(c),r()},a=()=>s();if(e.sheet)return void r();e.addEventListener("load",s),e.addEventListener("error",s),n?.addEventListener("abort",a,{once:!0});let l=0;const c=setInterval(()=>{l+=50,e.sheet?s():l>=o&&(t?.warn(`Stylesheet ${i} did not finish loading within ${o/1e3}s; continuing with a possibly unstyled clone`),s())},50)}))}const s=e.getElementsByTagName("style");for(let e=0;e<s.length;e++){const i=s[e],a=i?.sheet;a&&i?.textContent?.includes("@import")&&(si(a)||r.push(new Promise(e=>{let r=0;const s=setInterval(()=>{if(n?.aborted)return clearInterval(s),void e();r+=50;const a=i.sheet;(a&&si(a)||r>=o)&&(r>=o&&!si(a??null)&&t?.warn(`@import chain in an inline <style> did not finish loading within ${o/1e3}s; continuing with a possibly unstyled clone`),clearInterval(s),e())},50)})))}return 0===r.length?Promise.resolve():Promise.all(r).then(()=>{})})(l,e.logger,o.signal);return c.catch(e=>{throw r.parentNode?.removeChild(r),e})})(this.context,e,t,{documentElement:this.documentElement,clonedReferenceElement:this.clonedReferenceElement,referenceElementName:this.referenceElement.nodeName,scrolledElements:this.scrolledElements,onclone:this.options.onclone,container:this.options.iframeContainer,signal:this.options.signal})}createElementClone(e){if(Hr(e,2),Pt(e))return this.createCanvasClone(e);if(At(e))return this.createVideoClone(e);if($t(e))return this.createStyleClone(e);const t=e.cloneNode(!1);return Ot(t)&&(Ot(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),_t(t)&&!Rt(t)?this.createCustomElementClone(e,t):t}createCustomElementClone(e,t){const n=document.createElement("div");n.className=t.className,Qr(t.style,n);const o=t.attributes;for(let e=0;e<o.length;e++){const t=o.item(e);t&&"class"!==t.name&&"style"!==t.name&&n.setAttribute(t.name,t.value)}if(e.shadowRoot)try{n.attachShadow({mode:"open"})}catch(e){this.context.logger.error("Failed to attach shadow root to custom element clone:",e)}return n}createStyleClone(e){try{const t=e.sheet;if(t&&t.cssRules){const n=[].slice.call(t.cssRules,0).reduce((e,t)=>t&&"string"==typeof t.cssText?e+t.cssText:e,""),o=e.cloneNode(!1);return o.textContent=n,this.options.cspNonce&&(o.nonce=this.options.cspNonce),o}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}const t=e.cloneNode(!1);return this.options.cspNonce&&(t.nonce=this.options.cspNonce),t}createCanvasClone(e){if(this.options.inlineImages&&e.ownerDocument){const t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}const t=e.cloneNode(!1);try{t.width=e.width,t.height=e.height;const n=e.getContext("2d"),o=t.getContext("2d",{willReadFrequently:!0});if(o)if(!this.options.allowTaint&&n)o.putImageData(n.getImageData(0,0,e.width,e.height),0,0);else{const t=e.getContext("webgl2")??e.getContext("webgl");t&&!1===t.getContextAttributes()?.preserveDrawingBuffer&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e),o.drawImage(e,0,0)}return t}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return t}createVideoClone(e){const t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;const n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}const o=e.ownerDocument.createElement("canvas");return o.width=e.offsetWidth,o.height=e.offsetHeight,o}appendChildNode(e,t,n){this.slotCloner.appendChildNode(e,t,n)}cloneChildNodes(e,t,n){this.slotCloner.cloneChildNodes(e,t,n)}cloneNode(e,t){if(Bt(e))return(e.ownerDocument??document).createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);const n=e.ownerDocument.defaultView;if(n&&Tt(e)&&(Ft(e)||Rt(e))){const r=this.createElementClone(e);r.style.transitionProperty="none";const i=n.getComputedStyle(e),s=!Rt(o=e)&&!Gt.has(o.tagName);this.referenceElement===e&&Ft(r)&&(this.clonedReferenceElement=r);const a=this.counters.parse(new qr(this.context,i));if(s){const t=n.getComputedStyle(e,":before"),o=this.pseudoContents.resolvePseudoContent(e,r,t,0);o&&r.insertBefore(o,r.firstChild)}if(_t(e)&&(t=!0),At(e)||this.cloneChildNodes(e,r,t),s){const t=n.getComputedStyle(e,":after"),o=this.pseudoContents.resolvePseudoContent(e,r,t,1);o&&r.appendChild(o)}return this.counters.pop(a),i&&this.options.copyStyles&&!Nt(e)||t?Qr(i,r):i&&Rt(e)&&Rt(r)&&((e,t)=>{const n=[];for(const t of Jr){const o=e.getPropertyValue(t);o&&n.push(`${t}:${o}`)}if(n.length>0){const e=t.style.cssText.trim(),o=""===e||e.endsWith(";")?"":";";t.style.cssText=`${e}${o}${n.join(";")};`}})(i,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(zt(e)||Ut(e))&&(zt(r)||Ut(r))&&(r.value=e.value),r}var o;return e.cloneNode(!1)}static destroy(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)}},ui=class{static normalizeElement(e,t){const n={};if(!Ft(e)&&!Rt(e))return n;t.animationDuration.some(e=>e>0)&&(n.animationDuration=e.style.animationDuration,e.style.animationDuration="0s"),null!==t.transform&&(n.transform=e.style.transform,e.style.transform="translate(0, 0)");let o=!1;return null!==t.rotate&&(n.rotate=e.style.rotate,e.style.rotate="0deg",o=!0),null!==t.translate&&(n.translate=e.style.translate,e.style.translate="0px",o=!0),null!==t.scale&&(n.scale=e.style.scale,e.style.scale="1",o=!0),o&&void 0===n.transform&&(n.transform=e.style.transform,e.style.transform="translate(0, 0)"),n}static restoreElement(e,t){(Ft(e)||Rt(e))&&(void 0!==t.animationDuration&&(e.style.animationDuration=t.animationDuration),void 0!==t.transform&&(e.style.transform=t.transform),void 0!==t.rotate&&(e.style.rotate=t.rotate),void 0!==t.translate&&(e.style.translate=t.translate),void 0!==t.scale&&(e.style.scale=t.scale))}};const pi={x:"-10%",y:"-10%",width:"120%",height:"120%"},fi=["color-interpolation-filters","flood-color","flood-opacity","lighting-color"],mi=/^(["']?)(#[^"'\s()]+)\1$/,gi=/url\(\s*([^)]*?)\s*\)/g,bi=e=>{const t=mi.exec(e.trim());return t?t[2]:null};function yi(e,t,n){const o=e.getElementById(t.slice(1));if(!o||"http://www.w3.org/2000/svg"!==o.namespaceURI||"filter"!==o.localName)return null;if(!function(e){if("objectBoundingBox"===e.getAttribute("primitiveUnits")||xi(e))return!1;for(const t of Array.from(e.querySelectorAll("*"))){if("feImage"===t.localName||xi(t))return!1;for(const e of["x","y","width","height"])if(-1!==(t.getAttribute(e)??"").indexOf("%"))return!1}return!0}(o))return null;const r=function(e,t){const n="userSpaceOnUse"!==e.getAttribute("filterUnits"),o=(t,o)=>{const r=(e.getAttribute(t)??(n?pi[t]:"")).trim();if(""===r)return null;const i=r.endsWith("%"),s=Number(i?r.slice(0,-1):r.replace(/px$/,""));return Number.isFinite(s)?n?(i?s/100:s)*o:i?null:s:null},r=o("x",t.width),i=o("y",t.height),s=o("width",t.width),a=o("height",t.height);return null===r||null===i||null===s||null===a||s<=0||a<=0?null:{x:r,y:i,width:s,height:a}}(o,n);if(!r)return null;const i=o.cloneNode(!0);!function(e,t){const n=e.ownerDocument.defaultView;if(!n)return;const o=[e,...Array.from(e.querySelectorAll("*"))],r=[t,...Array.from(t.querySelectorAll("*"))];o.forEach((e,t)=>{const o=n.getComputedStyle(e);for(const e of fi){const n=o.getPropertyValue(e);n&&r[t]?.setAttribute(e,n)}})}(o,i),i.removeAttribute("id"),i.setAttribute("filterUnits","userSpaceOnUse"),Object.keys(r).forEach(e=>i.setAttribute(e,String(r[e])));const s=Math.max(0,-r.x,-r.y,r.x+r.width-n.width,r.y+r.height-n.height);return{element:i,region:r,outset:Math.ceil(s)}}const xi=e=>e.hasAttribute("href")||e.hasAttributeNS("http://www.w3.org/1999/xlink","href");var wi=class{context;styles;textNodes=[];elements=[];bounds;legendBounds;filterReferences;createsStackingContext=!1;createsRealStackingContext=!1;isListOwner=!1;debugRender=!1;originalStyles;originalElement;constructor(e,t,n={}){if(this.context=e,Hr(t,3),this.styles=new Gr(e,e.config.window.getComputedStyle(t,null)),!1!==n.normalizeDom&&(Ft(t)||Rt(t))&&(this.originalStyles=ui.normalizeElement(t,this.styles),this.originalElement=t),this.bounds=b(this.context,t),"FIELDSET"===t.tagName){const e=t.querySelector(":scope > legend");if(e){const t=b(this.context,e);this.legendBounds=t;const n=t.top+t.height/2-this.styles.borderTopWidth/2;this.bounds=new g(this.bounds.left,n,this.bounds.width,this.bounds.height-(n-this.bounds.top))}}this.filterReferences=function(e,t,n){if(!t||-1===t.indexOf("url("))return;const o=new Map,r=new Set;for(const i of t.matchAll(gi)){const t=bi(i[1]);if(!t||r.has(t))continue;r.add(t);const s=yi(e.ownerDocument,t,n);s&&o.set(t,s)}return o}(t,this.styles.filter,this.bounds),Hr(t,4)&&(this.debugRender=!0)}restore(){this.originalStyles&&this.originalElement&&(ui.restoreElement(this.originalElement,this.originalStyles),this.originalStyles=void 0,this.originalElement=void 0)}restoreTree(){this.restore();for(const e of this.elements)e.restoreTree()}};const vi={get SUPPORT_RANGE_BOUNDS(){const e=(e=>{if(e.createRange){const t=e.createRange();if(t.getBoundingClientRect){const n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);const o=t.getBoundingClientRect(),r=Math.round(o.height);if(e.body.removeChild(n),123===r)return!0}}return!1})(document);return Object.defineProperty(vi,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_SVG_DRAWING(){const e=(e=>{const t=new Image,n=e.createElement("canvas"),o=n.getContext("2d");if(!o)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{o.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0})(document);return Object.defineProperty(vi,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){const e=void 0!==(new Image).crossOrigin;return Object.defineProperty(vi,"SUPPORT_CORS_IMAGES",{value:e}),e}};var ki=class{text;bounds;constructor(e,t){this.text=e,this.bounds=t}};const Ci=(e,t,n)=>{const o=e.ownerDocument;if(!o)throw new Error("Node has no owner document");const r=o.createRange();return r.setStart(e,t),r.setEnd(e,t+n),r},Si=new Map,Ei=e=>{let t=Si.get(e);return t||(t=new Intl.Segmenter(void 0,{granularity:e}),Si.set(e,t)),t},Mi=e=>Array.from(Ei("grapheme").segment(e),e=>e.segment);var Di=class{text;textBounds;constructor(e,t,n){this.text=Ti(t.data,n.textTransform),this.text.length!==t.data.length&&(t.data=this.text),this.textBounds=((e,t,n,o)=>{const r=((e,t)=>Qo(t.writingMode)||0!==t.letterSpacing?Mi(e):(e=>Array.from(Ei("word").segment(e),e=>e.segment))(e))(t,n),i=[];let s=0;return r.forEach(t=>{if(n.textDecorationLine.length||t.trim().length>0)if(vi.SUPPORT_RANGE_BOUNDS){const n=Ci(o,s,t.length).getClientRects();if(n.length>1){const n=Mi(t);let r=0;n.forEach(t=>{i.push(new ki(t,g.fromDOMRectList(e,Ci(o,r+s,t.length).getClientRects()))),r+=t.length})}else i.push(new ki(t,g.fromDOMRectList(e,n)))}else{const n=o.splitText(t.length);i.push(new ki(t,((e,t)=>{const n=t.ownerDocument;if(n){const o=n.createElement("html2canvaswrapper");o.appendChild(t.cloneNode(!0));const r=t.parentNode;if(r){r.replaceChild(o,t);const n=b(e,o);return o.firstChild&&r.replaceChild(o.firstChild,o),n}}return g.EMPTY})(e,o))),o=n}else vi.SUPPORT_RANGE_BOUNDS||(o=o.splitText(t.length));s+=t.length}),i})(e,this.text,n,t)}};const Ti=(e,t)=>{switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Bi,Ri);case 2:return e.toUpperCase();default:return e}},Bi=/(^|\s|:|-|\(|\))([a-z])/g,Ri=(e,t,n)=>e.length>0?t+n.toUpperCase():e;var Fi=class extends wi{src;intrinsicWidth;intrinsicHeight;constructor(e,t,n={}){super(e,t,n),this.src=t.currentSrc||t.src,this.intrinsicWidth=t.naturalWidth,this.intrinsicHeight=t.naturalHeight,this.context.cache.addImage(this.src)}},Li=class extends wi{canvas;intrinsicWidth;intrinsicHeight;constructor(e,t,n={}){super(e,t,n),this.canvas=t,this.intrinsicWidth=t.width,this.intrinsicHeight=t.height}};const Ii=["position","inset","top","right","bottom","left","inset-inline","inset-inline-start","inset-inline-end","inset-block","inset-block-start","inset-block-end","margin","margin-top","margin-right","margin-bottom","margin-left","margin-inline","margin-inline-start","margin-inline-end","margin-block","margin-block-start","margin-block-end"];var Pi=class extends wi{svg;intrinsicWidth;intrinsicHeight;constructor(e,t,n={}){super(e,t,n);const o=new XMLSerializer,r=b(e,t);t.setAttribute("width",`${r.width}px`),t.setAttribute("height",`${r.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(((e,t)=>{const n=t.getAttribute("style");Ii.forEach(e=>t.style.removeProperty(e));const o=e.serializeToString(t);return null===n?t.removeAttribute("style"):t.setAttribute("style",n),o})(o,t))}`,this.intrinsicWidth=t.width.baseVal.value,this.intrinsicHeight=t.height.baseVal.value,this.context.cache.addImage(this.svg)}},Ai=class extends wi{value;constructor(e,t,n={}){super(e,t,n),this.value=t.value}},Oi=class extends wi{start;reversed;constructor(e,t,n={}){super(e,t,n),this.start=t.start,this.reversed="boolean"==typeof t.reversed&&!0===t.reversed}};const Ni=[{type:15,flags:0,unit:"px",number:3}],$i=[{type:16,flags:0,number:50}];var zi=class extends wi{type;checked;value;isPlaceholder;constructor(e,t,n={}){var o,r;switch(super(e,t,n),this.type=t.type.toLowerCase(),this.checked=t.checked,this.value=(e=>{const t="password"===e.type?new Array(e.value.length+1).join("•"):e.value;return 0===t.length?e.placeholder||"":t})(t),this.isPlaceholder=0===(o=t).value.length&&!!o.placeholder,"checkbox"!==this.type&&"radio"!==this.type||(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=(r=this.bounds).width>r.height?new g(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new g(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r),this.type){case"checkbox":this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=Ni;break;case"radio":this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=$i}}},Ui=class extends wi{value;constructor(e,t,n={}){super(e,t,n);const o=t.options[t.selectedIndex||0];this.value=o&&o.text||""}},ji=class extends wi{value;constructor(e,t,n={}){super(e,t,n),this.value=t.value}},_i=class extends wi{src;width;height;tree;backgroundColor;parseTreeFn;constructor(e,t,n,o={}){super(e,t,o),this.src=t.src,this.width=parseInt(t.width,10)||0,this.height=parseInt(t.height,10)||0,this.backgroundColor=this.styles.backgroundColor,this.parseTreeFn=n;try{const n=t.contentWindow,o=n?.document;if(n&&o&&o.documentElement&&this.parseTreeFn){this.tree=this.parseTreeFn(e,o.documentElement);const t=Mt(e,n.getComputedStyle(o.documentElement).backgroundColor),r=o.body?Mt(e,n.getComputedStyle(o.body).backgroundColor):0;this.backgroundColor=Le(t)?Le(r)?this.styles.backgroundColor:r:t}}catch(e){const t=e instanceof Error?e:new Error(String(e));this.context.logger.warn(`Unable to render iframe content${this.src?` from ${this.src}`:""}: ${t.message}`),this.context.onError?.(t)}}};const Gi=["OL","UL","MENU"],Wi=(e,t,n,o,r=1,i={})=>{for(let s,a=t.firstChild;a;a=s)s=a.nextSibling,Vi(e,a,n,o,r,i)},Vi=(e,t,n,o,r=1,i={})=>{if(Bt(t)&&t.data.length>0){const o=new Di(e,t,n.styles);if(1!==r){const e=n.bounds.left,t=n.bounds.top;o.textBounds=o.textBounds.map(n=>new ki(n.text,new g(e+(n.bounds.left-e)/r,t+(n.bounds.top-t)/r,n.bounds.width/r,n.bounds.height/r)))}n.textNodes.push(o)}else if(Tt(t))if(jt(t)&&t.assignedNodes)t.assignedNodes().forEach(t=>Vi(e,t,n,o,r,i));else{const s=qi(e,t,i),a=s.styles.zoom||1;if(1!==a&&(s.bounds=new g(s.bounds.left,s.bounds.top,s.bounds.width/a,s.bounds.height/a)),s.styles.isVisible()){Yi(t,s,o)?s.createsRealStackingContext=!0:Ki(s.styles)&&(s.createsStackingContext=!0),-1!==Gi.indexOf(t.tagName)&&(s.isListOwner=!0),n.elements.push(s);const a=r*(s.styles.zoom||1);t.shadowRoot?Wi(e,t.shadowRoot,s,o,a,i):zt(t)||Lt(t)||Ut(t)||Wi(e,t,s,o,a,i)}}},qi=(e,t,n={})=>Ot(t)?new Fi(e,t,n):Pt(t)?new Li(e,t,n):Lt(t)?new Pi(e,t,n):"LI"===t.tagName?new Ai(e,t,n):"OL"===t.tagName?new Oi(e,t,n):"INPUT"===t.tagName?new zi(e,t,n):Ut(t)?new Ui(e,t,n):zt(t)?new ji(e,t,n):Nt(t)?new _i(e,t,(e,t)=>Hi(e,t,n),n):new wi(e,t,n),Hi=(e,t,n={})=>{const o=qi(e,t,n);return o.createsRealStackingContext=!0,Wi(e,t,o,o,1,n),o},Yi=(e,t,n)=>t.styles.isPositionedWithZIndex()||t.styles.opacity<1||Boolean(t.styles.filter)||Boolean(t.styles.backdropFilter)||t.styles.maskImage.length>0||Boolean(t.styles.webkitBoxReflect)||1===t.styles.isolation||1===t.styles.willChange||1===t.styles.contain||t.styles.isTransformed()||It(e)&&n.styles.isTransparent(),Ki=e=>!(!e.isPositioned()&&!e.isFloating())||e.mixBlendMode!==pr.NORMAL||Vt(e.display,268435456)||Vt(e.display,33554432)||Vt(e.display,536870912)||Vt(e.display,134217728),Xi=(e,t)=>e.length===t.length&&e.some((e,n)=>e===t[n]),Qi=(e,t,n,o,r)=>e.map((e,i)=>{switch(i){case 0:return e.add(t,n);case 1:return e.add(t+o,n);case 2:return e.add(t+o,n+r);case 3:return e.add(t,n+r)}return e});var Ji=class e{type;x;y;constructor(e,t){this.type=0,this.x=e,this.y=t}add(t,n){return new e(this.x+t,this.y+n)}};const Zi=(e,t,n)=>new Ji(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n);var es=class e{type;start;startControl;endControl;end;constructor(e,t,n,o){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=o}subdivide(t,n){const o=Zi(this.start,this.startControl,t),r=Zi(this.startControl,this.endControl,t),i=Zi(this.endControl,this.end,t),s=Zi(o,r,t),a=Zi(r,i,t),l=Zi(s,a,t);return n?new e(this.start,o,s,l):new e(l,a,i,this.end)}add(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))}reverse(){return new e(this.end,this.endControl,this.startControl,this.start)}};const ts=e=>1===e.type;var ns=class{topLeftBorderDoubleOuterBox;topRightBorderDoubleOuterBox;bottomRightBorderDoubleOuterBox;bottomLeftBorderDoubleOuterBox;topLeftBorderDoubleInnerBox;topRightBorderDoubleInnerBox;bottomRightBorderDoubleInnerBox;bottomLeftBorderDoubleInnerBox;topLeftBorderStroke;topRightBorderStroke;bottomRightBorderStroke;bottomLeftBorderStroke;topLeftBorderBox;topRightBorderBox;bottomRightBorderBox;bottomLeftBorderBox;topLeftPaddingBox;topRightPaddingBox;bottomRightPaddingBox;bottomLeftPaddingBox;topLeftContentBox;topRightContentBox;bottomRightContentBox;bottomLeftContentBox;constructor(e){const t=e.styles,n=e.bounds;let[o,r]=Se(t.borderTopLeftRadius,n.width,n.height),[i,s]=Se(t.borderTopRightRadius,n.width,n.height),[a,l]=Se(t.borderBottomRightRadius,n.width,n.height),[c,d]=Se(t.borderBottomLeftRadius,n.width,n.height);const h=[];h.push((o+i)/n.width),h.push((c+a)/n.width),h.push((r+d)/n.height),h.push((s+l)/n.height);const u=Math.max(...h);u>1&&(o/=u,r/=u,i/=u,s/=u,a/=u,l/=u,c/=u,d/=u);const p=n.width-i,f=n.height-l,m=n.width-a,g=n.height-d,b=t.borderTopWidth,y=t.borderRightWidth,x=t.borderBottomWidth,w=t.borderLeftWidth,v=Ee(t.paddingTop,e.bounds.width),k=Ee(t.paddingRight,e.bounds.width),C=Ee(t.paddingBottom,e.bounds.width),S=Ee(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||r>0?os(n.left+w/3,n.top+b/3,o-w/3,r-b/3,0):new Ji(n.left+w/3,n.top+b/3),this.topRightBorderDoubleOuterBox=i>0||s>0?os(n.left+p,n.top+b/3,i-y/3,s-b/3,1):new Ji(n.left+n.width-y/3,n.top+b/3),this.bottomRightBorderDoubleOuterBox=a>0||l>0?os(n.left+m,n.top+f,a-y/3,l-x/3,2):new Ji(n.left+n.width-y/3,n.top+n.height-x/3),this.bottomLeftBorderDoubleOuterBox=c>0||d>0?os(n.left+w/3,n.top+g,c-w/3,d-x/3,3):new Ji(n.left+w/3,n.top+n.height-x/3),this.topLeftBorderDoubleInnerBox=o>0||r>0?os(n.left+2*w/3,n.top+2*b/3,o-2*w/3,r-2*b/3,0):new Ji(n.left+2*w/3,n.top+2*b/3),this.topRightBorderDoubleInnerBox=i>0||s>0?os(n.left+p,n.top+2*b/3,i-2*y/3,s-2*b/3,1):new Ji(n.left+n.width-2*y/3,n.top+2*b/3),this.bottomRightBorderDoubleInnerBox=a>0||l>0?os(n.left+m,n.top+f,a-2*y/3,l-2*x/3,2):new Ji(n.left+n.width-2*y/3,n.top+n.height-2*x/3),this.bottomLeftBorderDoubleInnerBox=c>0||d>0?os(n.left+2*w/3,n.top+g,c-2*w/3,d-2*x/3,3):new Ji(n.left+2*w/3,n.top+n.height-2*x/3),this.topLeftBorderStroke=o>0||r>0?os(n.left+w/2,n.top+b/2,o-w/2,r-b/2,0):new Ji(n.left+w/2,n.top+b/2),this.topRightBorderStroke=i>0||s>0?os(n.left+p,n.top+b/2,i-y/2,s-b/2,1):new Ji(n.left+n.width-y/2,n.top+b/2),this.bottomRightBorderStroke=a>0||l>0?os(n.left+m,n.top+f,a-y/2,l-x/2,2):new Ji(n.left+n.width-y/2,n.top+n.height-x/2),this.bottomLeftBorderStroke=c>0||d>0?os(n.left+w/2,n.top+g,c-w/2,d-x/2,3):new Ji(n.left+w/2,n.top+n.height-x/2),this.topLeftBorderBox=o>0||r>0?os(n.left,n.top,o,r,0):new Ji(n.left,n.top),this.topRightBorderBox=i>0||s>0?os(n.left+p,n.top,i,s,1):new Ji(n.left+n.width,n.top),this.bottomRightBorderBox=a>0||l>0?os(n.left+m,n.top+f,a,l,2):new Ji(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=c>0||d>0?os(n.left,n.top+g,c,d,3):new Ji(n.left,n.top+n.height),this.topLeftPaddingBox=o>0||r>0?os(n.left+w,n.top+b,Math.max(0,o-w),Math.max(0,r-b),0):new Ji(n.left+w,n.top+b),this.topRightPaddingBox=i>0||s>0?os(n.left+Math.min(p,n.width-y),n.top+b,p>n.width+y?0:Math.max(0,i-y),Math.max(0,s-b),1):new Ji(n.left+n.width-y,n.top+b),this.bottomRightPaddingBox=a>0||l>0?os(n.left+Math.min(m,n.width-w),n.top+Math.min(f,n.height-x),Math.max(0,a-y),Math.max(0,l-x),2):new Ji(n.left+n.width-y,n.top+n.height-x),this.bottomLeftPaddingBox=c>0||d>0?os(n.left+w,n.top+Math.min(g,n.height-x),Math.max(0,c-w),Math.max(0,d-x),3):new Ji(n.left+w,n.top+n.height-x),this.topLeftContentBox=o>0||r>0?os(n.left+w+S,n.top+b+v,Math.max(0,o-(w+S)),Math.max(0,r-(b+v)),0):new Ji(n.left+w+S,n.top+b+v),this.topRightContentBox=i>0||s>0?os(n.left+Math.min(p,n.width+w+S),n.top+b+v,p>n.width+w+S?0:i-w+S,s-(b+v),1):new Ji(n.left+n.width-(y+k),n.top+b+v),this.bottomRightContentBox=a>0||l>0?os(n.left+Math.min(m,n.width-(w+S)),n.top+Math.min(f,n.height+b+v),Math.max(0,a-(y+k)),l-(x+C),2):new Ji(n.left+n.width-(y+k),n.top+n.height-(x+C)),this.bottomLeftContentBox=c>0||d>0?os(n.left+w+S,n.top+g,Math.max(0,c-(w+S)),d-(x+C),3):new Ji(n.left+w+S,n.top+n.height-(x+C))}};const os=(e,t,n,o,r)=>{const i=(Math.sqrt(2)-1)/3*4,s=n*i,a=o*i,l=e+n,c=t+o;switch(r){case 0:return new es(new Ji(e,c),new Ji(e,c-a),new Ji(l-s,t),new Ji(l,t));case 1:return new es(new Ji(e,t),new Ji(e+s,t),new Ji(l,c-a),new Ji(l,c));case 2:return new es(new Ji(l,t),new Ji(l,t+a),new Ji(e+s,c),new Ji(e,c));default:return new es(new Ji(l,c),new Ji(l-s,c),new Ji(e,t+a),new Ji(e,t))}},rs=e=>[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox],is=e=>[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox];var ss=class{offsetX;offsetY;matrix;type=0;target=6;constructor(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n}},as=class{path;target;type=1;constructor(e,t){this.path=e,this.target=t}},ls=class{opacity;type=2;target=6;constructor(e){this.opacity=e}},cs=class{applyClip;type=3;target=6;constructor(e){this.applyClip=e}};const ds={[pr.NORMAL]:"source-over",[pr.MULTIPLY]:"multiply",[pr.SCREEN]:"screen",[pr.OVERLAY]:"overlay",[pr.DARKEN]:"darken",[pr.LIGHTEN]:"lighten",[pr.COLOR_DODGE]:"color-dodge",[pr.COLOR_BURN]:"color-burn",[pr.HARD_LIGHT]:"hard-light",[pr.SOFT_LIGHT]:"soft-light",[pr.DIFFERENCE]:"difference",[pr.EXCLUSION]:"exclusion",[pr.HUE]:"hue",[pr.SATURATION]:"saturation",[pr.COLOR]:"color",[pr.LUMINOSITY]:"luminosity"};var hs=class{mixBlendMode;type=4;target=6;compositeOperation;constructor(e){this.mixBlendMode=e,this.compositeOperation=ds[e]}},us=class e{type=5;target=6;safeFilterString;shadow;constructor(t){const n=e.parseDropShadow(t);this.shadow=n.shadow,this.safeFilterString=n.safeFilterString}static parseDropShadow(t){if(!t)return{safeFilterString:""};const n=e.findDropShadows(t);if(0===n.length)return{safeFilterString:t};const o=e.parseDropShadowBody(y(n,0).body);let r="",i=0;for(const e of n)r+=t.slice(i,e.start),i=e.end;return r+=t.slice(i),{shadow:o,safeFilterString:r.replace(/\s+/g," ").trim()}}static findDropShadows(e){const t=[],n=/drop-shadow\(/gi;let o;for(;null!==(o=n.exec(e));){const n=o.index+12-1,r=o.index;let i=1,s=n+1;for(;s<e.length&&i>0;){const t=e[s]??"";"("===t?i++:")"===t&&i--,s++}if(0!==i)break;const a=e.slice(n+1,s-1);t.push({body:a,start:r,end:s})}return t}static parseDropShadowBody(t){const n=e.tokenizeFilterArgs(t.trim()),o=[];let r;for(const t of n)e.isCSSLength(t)?o.push(parseFloat(t)):t&&(r=t);if(!(o.length<2||o.length>3))return{offsetX:y(o,0),offsetY:y(o,1),blur:o.length>2?y(o,2):0,color:r??"rgba(0,0,0,1)"}}static tokenizeFilterArgs(e){const t=[];let n="",o=0;for(let r=0;r<e.length;r++){const i=e[r]??"";"("===i?(o++,n+=i):")"===i?(o--,n+=i):/\s/.test(i)?o>0?n+=i:n&&(t.push(n),n=""):n+=i}return n&&t.push(n),t}static isCSSLength(e){return/^-?[\d.]+(px|em|rem|pt|cm|mm|in|pc|ex|ch|vw|vh|vmin|vmax|%)?$/i.test(e)}};const ps=e=>0===e.type,fs=e=>1===e.type,ms=e=>2===e.type,gs=e=>3===e.type,bs=e=>4===e.type,ys=e=>5===e.type;var xs=class{element;negativeZIndex;zeroOrAutoZIndexOrTransformedOrOpacity;positiveZIndex;nonPositionedFloats;nonPositionedInlineLevel;inlineLevel;nonInlineLevel;constructor(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}},ws=class{container;parent;effects=[];curves;listValue;plainEffectsCache=null;constructor(e,t){if(this.container=e,this.parent=t,this.curves=new ns(this.container),this.container.styles.opacity<1&&this.effects.push(new ls(this.container.styles.opacity)),null!==this.container.styles.translate){const e=this.container.styles.transformOrigin,t=this.container.bounds.left+Ee(e[0],this.container.bounds.width),n=this.container.bounds.top+Ee(e[1],this.container.bounds.height),[o,r]=this.container.styles.translate,i=Ee(o,this.container.bounds.width),s=Ee(r,this.container.bounds.height);this.effects.push(new ss(t,n,[1,0,0,1,i,s]))}if(null!==this.container.styles.rotate){const e=this.container.styles.transformOrigin,t=this.container.bounds.left+Ee(e[0],this.container.bounds.width),n=this.container.bounds.top+Ee(e[1],this.container.bounds.height),o=this.container.styles.rotate*Math.PI/180,r=Math.cos(o),i=Math.sin(o),s=[r,i,-i,r,0,0];this.effects.push(new ss(t,n,s))}if(null!==this.container.styles.scale){const e=this.container.styles.transformOrigin,t=this.container.bounds.left+Ee(e[0],this.container.bounds.width),n=this.container.bounds.top+Ee(e[1],this.container.bounds.height),[o,r]=this.container.styles.scale;this.effects.push(new ss(t,n,[o,0,0,r,0,0]))}if(null!==this.container.styles.transform){const e=this.container.styles.transformOrigin,t=this.container.bounds.left+Ee(e[0],this.container.bounds.width),n=this.container.bounds.top+Ee(e[1],this.container.bounds.height),o=this.container.styles.transform;this.effects.push(new ss(t,n,o))}if(vs(this.container.styles)){const e=rs(this.curves),t=is(this.curves);Xi(e,t)?this.effects.push(new as(e,6)):(this.effects.push(new as(e,2)),this.effects.push(new as(t,4)))}if(0!==this.container.styles.clipPath.type){const e=Cs(this.container.styles.clipPath,this.container.bounds);e&&this.effects.push(e)}if(this.container.styles.mixBlendMode!==pr.NORMAL&&this.effects.push(new hs(this.container.styles.mixBlendMode)),null!==this.container.styles.filter&&this.effects.push(new us(this.container.styles.filter)),1!==this.container.styles.zoom){const e=this.container.bounds.left,t=this.container.bounds.top,n=this.container.styles.zoom,o=[n,0,0,n,0,0];this.effects.push(new ss(e,t,o))}}getEffects(e,t){if(!t){let t=this.plainEffectsCache;t||(t=new Map,this.plainEffectsCache=t);let n=t.get(e);return n||(n=this.computeEffects(e),t.set(e,n)),n}return this.computeEffects(e,t)}computeEffects(e,t){let n=-1===[2,3].indexOf(this.container.styles.position),o=this===t?null:this.parent;const r=e=>e.effects.filter(n=>e!==t||!ys(n)&&!ms(n)&&!bs(n)),i=r(this);for(;o;){const e=r(o).filter(e=>!fs(e));if(n||0!==o.container.styles.position||!o.parent){if(n=-1===[2,3].indexOf(o.container.styles.position),vs(o.container.styles)){const e=rs(o.curves),t=is(o.curves);Xi(e,t)||i.unshift(new as(t,6))}i.unshift(...e)}else i.unshift(...e);o=o===t?null:o.parent}return i.filter(t=>Vt(t.target,e))}};const vs=e=>0!==e.overflowX||0!==e.overflowY,ks=(e,t,n,o,r)=>"closest-side"===e?Math.min(t-n,o-t):"farthest-side"===e?Math.max(t-n,o-t):Ee(e,r),Cs=(e,t)=>{const{left:n,top:o,width:r,height:i}=t;switch(e.type){case 1:{const t=Ee(e.left,r),s=Ee(e.top,i),a=n+t,l=o+s,c=Math.max(0,r-t-Ee(e.right,r)),d=Math.max(0,i-s-Ee(e.bottom,i));return new cs(e=>{e.beginPath(),e.rect(a,l,c,d),e.clip()})}case 2:{const t=n+Ee(e.cx,r),s=o+Ee(e.cy,i);let a;return a="closest-side"===e.radius?Math.min(t-n,s-o,n+r-t,o+i-s):"farthest-side"===e.radius?Math.max(t-n,s-o,n+r-t,o+i-s):Ee(e.radius,Math.sqrt(r*r+i*i)/Math.SQRT2),new cs(e=>{e.beginPath(),e.arc(t,s,Math.max(0,a),0,2*Math.PI),e.clip()})}case 3:{const t=n+Ee(e.cx,r),s=o+Ee(e.cy,i),a=ks(e.rx,t,n,n+r,r),l=ks(e.ry,s,o,o+i,i);return new cs(e=>{e.beginPath(),e.ellipse(t,s,Math.max(0,a),Math.max(0,l),0,0,2*Math.PI),e.clip()})}case 4:{const t=e.points.map(([e,t])=>[n+Ee(e,r),o+Ee(t,i)]);return new cs(e=>{if(e.beginPath(),t.length>0){e.moveTo(y(y(t,0),0),y(y(t,0),1));for(let n=1;n<t.length;n++)e.lineTo(y(y(t,n),0),y(y(t,n),1));e.closePath()}e.clip()})}case 5:{const{d:t}=e;let r=null;return new cs(e=>{try{r||(r=new Path2D(t));const i=e.getTransform();e.translate(n,o),e.clip(r),e.setTransform(i)}catch(e){}})}case 6:{const t=n+Ee(e.x,r),s=o+Ee(e.y,i),a=Math.max(0,Ee(e.width,r)),l=Math.max(0,Ee(e.height,i));return new cs(e=>{e.beginPath(),e.rect(t,s,a,l),e.clip()})}default:return null}},Ss=(e,t,n,o)=>{e.container.elements.forEach(r=>{const i=r.createsRealStackingContext,s=r.createsStackingContext,a=new ws(r,e);Vt(r.styles.display,2048)&&o.push(a);const l=r.isListOwner?[]:o;if(i||s){const e=i||r.styles.isPositioned()?n:t,o=new xs(a);if(i||r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){const t=r.styles.zIndex.order;if(t<0){let n=0;e.negativeZIndex.some((e,o)=>t>=e.element.container.styles.zIndex.order?(n=o+1,!1):n>0),e.negativeZIndex.splice(n,0,o)}else if(t>0){let n=0;e.positiveZIndex.some((e,o)=>t>=e.element.container.styles.zIndex.order?(n=o+1,!1):n>0),e.positiveZIndex.splice(n,0,o)}else e.zeroOrAutoZIndexOrTransformedOrOpacity.push(o)}else r.styles.isFloating()?e.nonPositionedFloats.push(o):e.nonPositionedInlineLevel.push(o);Ss(a,o,i?o:n,l)}else r.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),Ss(a,t,n,l);r.isListOwner&&Es(r,l)})},Es=(e,t)=>{let n=e instanceof Oi?e.start:1;const o=e instanceof Oi&&e.reversed;for(let e=0;e<t.length;e++){const r=y(t,e);r.container instanceof Ai&&"number"==typeof r.container.value&&0!==r.container.value&&(n=r.container.value),r.listValue=an(n,r.container.styles.listStyleType,!0),n+=o?-1:1}},Ms=e=>Math.min(1,Math.max(0,e)),Ds=e=>{const t=y(e,0),n=y(e,e.length-1);if(n.stop-t.stop<1e-6)return null;const o=Math.max(n.stop-t.stop,.01),r=[],i=Math.ceil(1/o);for(let n=0;n<i;n++)for(const i of e){const e=n*o+(i.stop-t.stop);if(e>1)break;r.push({stop:e,color:Ie(i.color)})}const s=r[r.length-1];return(!s||s.stop<1)&&r.push({stop:1,color:Ie(n.color)}),r},Ts=e=>e.map(e=>({stop:Ms(e.stop),color:Ie(e.color)})),Bs=(e,t,n,o,r=!1)=>{const i=kn(o,t),s=y(i,i.length-1),a=Ie(s.color),l=e.createElement("canvas");l.width=Math.max(1,Math.ceil(2*t)),l.height=Math.max(1,Math.ceil(2*n));const c=l.getContext("2d");if(!c)return null;let d;if(r){const e=Ds(i);if(!e)return c.fillStyle=a,c.fillRect(0,0,l.width,l.height),{canvas:l,lastColor:a,rx:t,ry:n};d=e}else d=Ts(i);const h=c.createRadialGradient(t,t,0,t,t,t);return d.forEach(e=>h.addColorStop(Ms(e.stop),e.color)),c.fillStyle=h,t!==n&&c.scale(1,n/t),c.fillRect(0,0,2*t,2*t),{canvas:l,lastColor:a,rx:t,ry:n}},Rs=e=>{const t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Fs=e=>{const t=e.styles,n=e.bounds,o=Ee(t.paddingLeft,n.width),r=Ee(t.paddingRight,n.width),i=Ee(t.paddingTop,n.width),s=Ee(t.paddingBottom,n.width);return n.add(o+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+o+r),-(t.borderTopWidth+t.borderBottomWidth+i+s))},Ls=(e,t,n)=>{const o=((e,t)=>0===e?t.bounds:2===e?Fs(t):Rs(t))(Os(e.styles.backgroundOrigin,t),e),r=((e,t)=>0===e?t.bounds:2===e?Fs(t):Rs(t))(Os(e.styles.backgroundClip,t),e),i=As(Os(e.styles.backgroundSize,t),n,o);let[s,a]=i;const l=Se(Os(e.styles.backgroundPosition,t),o.width-s,o.height-a),c=Ns(Os(e.styles.backgroundRepeat,t),l,i,o,r),d=Math.round(o.left+l[0]),h=Math.round(o.top+l[1]);return s=Math.max(1,s),a=Math.max(1,a),[c,d,h,s,a]},Is=e=>ee(e)&&"auto"===e.value,Ps=e=>"number"==typeof e,As=(e,[t,n,o],r)=>{const[i,s]=e;if(!i)return[0,0];if(ge(i)&&s&&ge(s))return[Ee(i,r.width),Ee(s,r.height)];const a=Ps(o);if(ee(i)&&("contain"===i.value||"cover"===i.value))return Ps(o)?r.width/r.height<o!=("cover"===i.value)?[r.width,r.width/o]:[r.height*o,r.height]:[r.width,r.height];const l=Ps(t),c=Ps(n),d=l||c;if(Is(i)&&(!s||Is(s)))return l&&c?[t,n]:a||d?d&&a?[l?t:n*o,c?n:t/o]:[l?t:r.width,c?n:r.height]:[r.width,r.height];if(a){let e=0,t=0;return ge(i)?e=Ee(i,r.width):s&&ge(s)&&(t=Ee(s,r.height)),Is(i)?e=t*o:s&&!Is(s)||(t=e/o),[e,t]}let h=null,u=null;if(ge(i)?h=Ee(i,r.width):s&&ge(s)&&(u=Ee(s,r.height)),null===h||s&&!Is(s)||(u=l&&c?h/t*n:r.height),null!==u&&Is(i)&&(h=l&&c?u/n*t:r.width),null!==h&&null!==u)return[h,u];throw new Error("Unable to calculate background-size for element")},Os=(e,t)=>{const n=e[t];return void 0===n?y(e,0):n},Ns=(e,[t,n],[o,r],i,s)=>{switch(e){case 2:return[new Ji(Math.round(i.left),Math.round(i.top+n)),new Ji(Math.round(i.left+i.width),Math.round(i.top+n)),new Ji(Math.round(i.left+i.width),Math.round(r+i.top+n)),new Ji(Math.round(i.left),Math.round(r+i.top+n))];case 3:return[new Ji(Math.round(i.left+t),Math.round(i.top)),new Ji(Math.round(i.left+t+o),Math.round(i.top)),new Ji(Math.round(i.left+t+o),Math.round(i.height+i.top)),new Ji(Math.round(i.left+t),Math.round(i.height+i.top))];case 1:return[new Ji(Math.round(i.left+t),Math.round(i.top+n)),new Ji(Math.round(i.left+t+o),Math.round(i.top+n)),new Ji(Math.round(i.left+t+o),Math.round(i.top+n+r)),new Ji(Math.round(i.left+t),Math.round(i.top+n+r))];default:return[new Ji(Math.round(s.left),Math.round(s.top)),new Ji(Math.round(s.left+s.width),Math.round(s.top)),new Ji(Math.round(s.left+s.width),Math.round(s.height+s.top)),new Ji(Math.round(s.left),Math.round(s.height+s.top))]}};var $s=class extends Error{};const zs=e=>{e.width=e.height=0},Us=["brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"],js=new Map,_s={functions:[]};function Gs(e){if(!e||"none"===e)return _s;const t=js.get(e);if(void 0!==t)return js.delete(e),js.set(e,t),t;const n=Ws(e);if(js.size>=256){const e=js.keys().next().value;void 0!==e&&js.delete(e)}return js.set(e,n),n}const Ws=e=>{const t=[];let n=0;for(;n<e.length;){const o=e[n];if(" "===o||"\n"===o||"\t"===o){n++;continue}const r=e.indexOf("(",n);if(-1===r)return null;const i=e.slice(n,r).trim();if(!/^[a-zA-Z-]+$/.test(i))return null;const s=Vs(e,r);if(-1===s)return null;const a=Hs(i,e.slice(r+1,s).trim());if(!a)return null;t.push(a),n=s+1}return{functions:t}},Vs=(e,t)=>{let n=1;for(let o=t+1;o<e.length;o++){const t=e[o];if("("===t)n++;else if(")"===t&&(n--,0===n))return o}return-1},qs=/^-?\d+(?:\.\d+)?px$/,Hs=(e,t)=>{if("blur"===e){if("0"===t)return{kind:"blur",value:0};if(!qs.test(t))return null;const e=Number.parseFloat(t);return e<0?null:{kind:"blur",value:e}}if("drop-shadow"===e)return Ys(t);if(-1!==Us.indexOf(e)){const n=e;if("hue-rotate"===n){const e=Ks(t);return null===e?null:{kind:"unitless",name:n,value:e}}const o=t.trim(),r=o.endsWith("%"),i=r?o.slice(0,-1):o;return/^-?\d+(?:\.\d+)?$/.test(i)?{kind:"unitless",name:n,value:Number.parseFloat(i)*(r?.01:1)}:null}if("url"===e){const e=bi(t);return e?{kind:"url",ref:e}:null}return null},Ys=e=>{const t=(e=>{const t=[];let n=0,o="";for(const r of e)"("===r?n++:")"===r&&n--," "!==r||0!==n?o+=r:(o&&t.push(o),o="");return o&&t.push(o),t})(e),n=t.filter(e=>qs.test(e)).map(e=>Number.parseFloat(e));if(n.length<2||n.length>3)return null;const o=t.filter(e=>!qs.test(e));return t.length-o.length!==n.length?null:{kind:"drop-shadow",x:n[0],y:n[1],blur:n[2]??0,color:o.join(" ")||"rgba(0, 0, 0, 0)"}},Ks=e=>{const t=e.trim();if("0"===t)return 0;const n=Number.parseFloat(t);return Number.isNaN(n)?null:t.endsWith("deg")?n:t.endsWith("grad")?.9*n:t.endsWith("rad")?180*n/Math.PI:t.endsWith("turn")?360*n:null};function Xs(e,t){let n=0,o=0,r=0;for(const i of e.functions)"blur"===i.kind?n+=i.value:"drop-shadow"===i.kind?(n+=i.blur,o=Math.max(o,Math.abs(i.x),Math.abs(i.y))):"url"===i.kind&&(r+=t?.get(i.ref)?.outset??0);return Math.ceil(3*n+o+r)}function Qs(e){const t=(e.ownerDocument??document).createElement("canvas");return t.width=e.width,t.height=e.height,t}const Js=new WeakMap;async function Zs(e,t,n,o,r,i){if(oi(r),t.functions.some(e=>"url"===e.kind))return async function(e,t,n,o,r,i){const s=[];for(const e of t.functions){if("url"===e.kind){const t=i?.references?.get(e.ref);if(!t)throw new $s(`Filter reference ${e.ref} cannot be resolved`);s.push(t);continue}const t=s[s.length-1];Array.isArray(t)?t.push(e):s.push([e])}const a=i?.origin??{x:0,y:0},l=s[s.length-1],c=Array.isArray(l);let d=e;try{for(const t of s){const i=Array.isArray(t)?await Zs(d,{functions:t},t===l?n:1,o,r):await ia(d,t,a,o,r);d!==e&&zs(d),d=i}if(c||1===n){const t=d;return d=e,t}return ea(d,n)}finally{d!==e&&zs(d)}}(e,t,n,o,r,i);if(t.functions.length>0&&function(e=document){const t=Js.get(e);if(void 0!==t)return t;const n=e.createElement("canvas"),o=e.createElement("canvas");let r=!1;try{n.width=n.height=o.width=o.height=32;const e=n.getContext("2d"),t=o.getContext("2d");if(e&&t&&"filter"in t){e.fillStyle="#fff",e.fillRect(8,8,8,8),t.filter="blur(2px)",t.drawImage(n,0,0);const o=(t.getImageData(6,12,1,1).data[3]??0)>0;t.clearRect(0,0,32,32),t.filter="drop-shadow(12px 0px 0px rgba(255, 0, 0, 0.5))",t.drawImage(n,0,0);const i=t.getImageData(24,12,1,1).data;r=o&&(i[0]??0)>240&&(i[1]??0)<10&&(i[3]??0)>=126&&(i[3]??0)<=129}}catch{}finally{zs(n),zs(o)}return Js.set(e,r),r}(e.ownerDocument??document)){const i=function(e,t,n,o,r){let i,s,a=!1;try{oi(r),i=Qs(e);const l=i.getContext("2d");if(!l||!("filter"in l))return null;if(l.filter=((e,t)=>e.functions.map(e=>{switch(e.kind){case"blur":return`blur(${e.value*t}px)`;case"drop-shadow":return`drop-shadow(${e.x*t}px ${e.y*t}px ${e.blur*t}px ${e.color})`;case"unitless":return"hue-rotate"===e.name?`hue-rotate(${e.value}deg)`:`${e.name}(${e.value})`;case"url":return`url("${e.ref}")`}}).join(" "))(t,o),"none"===l.filter||""===l.filter)return null;l.drawImage(e,0,0),oi(r),s=Qs(e);const c=s.getContext("2d");return c?(c.globalAlpha=n,c.drawImage(i,0,0),oi(r),a=!0,s):null}catch{return oi(r),null}finally{i&&zs(i),s&&!a&&zs(s)}}(e,t,n,o,r);if(i)return i}if(!(e=>{let t=0,n=0;for(const o of e.functions)if("blur"===o.kind)t++;else{if("drop-shadow"!==o.kind)return!1;n++}return!(t>1||n>1||t>0&&n>0&&!(e.functions.findIndex(e=>"blur"===e.kind)<e.functions.findIndex(e=>"drop-shadow"===e.kind)))})(t))throw new $s("Filter chain requires native canvas filters");return async function(e,t,n,o,r){oi(r);const i=t.functions.find(e=>"blur"===e.kind),s=t.functions.find(e=>"drop-shadow"===e.kind),a=i&&"blur"===i.kind?i.value:0,l=s&&"drop-shadow"===s.kind?{x:s.x,y:s.y,blur:s.blur,color:s.color}:void 0;if(!a&&!l)return ea(e,n);const c=e.ownerDocument??document,d=(e,t={})=>na(c,e,t),h=d("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`}),u=d("defs"),p=d("filter",{id:"composited-filter",filterUnits:"userSpaceOnUse",x:0,y:0,width:e.width,height:e.height,"color-interpolation-filters":"sRGB"});if(a&&p.appendChild(d("feGaussianBlur",{stdDeviation:a*o,result:"blurred-source"})),l){p.appendChild(d("feGaussianBlur",{in:a?"blurred-source":"SourceAlpha",stdDeviation:l.blur*o})),p.appendChild(d("feOffset",{dx:l.x*o,dy:l.y*o,result:"offset-shadow"})),p.appendChild(d("feFlood",{"flood-color":l.color})),p.appendChild(d("feComposite",{in2:"offset-shadow",operator:"in"}));const e=d("feMerge");e.appendChild(d("feMergeNode")),e.appendChild(d("feMergeNode",{in:a?"blurred-source":"SourceGraphic"})),p.appendChild(e)}return u.appendChild(p),h.appendChild(u),h.appendChild(d("image",{width:e.width,height:e.height,href:oa(e),filter:"url(#composited-filter)"})),ra(h,e,n,r)}(e,t,n,o,r)}function ea(e,t){const n=Qs(e),o=n.getContext("2d");if(!o)throw zs(n),new $s("Filter surface canvas is unavailable");o.globalAlpha=t;try{return o.drawImage(e,0,0),n}catch{throw zs(n),new $s("Filter surface image cannot be drawn")}}const ta="http://www.w3.org/2000/svg";function na(e,t,n={}){const o=e.createElementNS(ta,t);return Object.entries(n).forEach(([e,t])=>o.setAttribute(e,String(t))),o}function oa(e){try{const t=e.toDataURL("image/png");if("data:,"===t)throw new Error("Canvas size is unsupported");return t}catch{throw new $s("Filter surface pixels cannot be serialized")}}async function ra(e,t,n,o){const r=(t.ownerDocument??document).defaultView,i=r?.Image?new r.Image:new Image;let s;try{i.src=`data:image/svg+xml,${encodeURIComponent((new XMLSerializer).serializeToString(e))}`,await((e,t)=>new Promise((n,o)=>{const r=e=>{clearTimeout(s),t?.removeEventListener("abort",i),e?o(e):n()},i=()=>r(new DOMException("The operation was aborted.","AbortError")),s=setTimeout(()=>r(new $s("Filter surface image decode timed out")),1e4);t?.addEventListener("abort",i,{once:!0}),t?.aborted?i():e.decode().then(()=>r(),()=>r(new $s("Filter surface image decode failed")))}))(i,o),oi(o),s=Qs(t);const r=s.getContext("2d");if(!r)throw new $s("Filter surface canvas is unavailable");return r.globalAlpha=n,r.drawImage(i,0,0),s}catch(e){throw s&&zs(s),o?.aborted&&oi(o),e instanceof $s?e:new $s("Filter surface image cannot be drawn")}finally{i.removeAttribute("src")}}async function ia(e,t,n,o,r){oi(r);const i=e.ownerDocument??document,s=e.width/o,a=e.height/o,l=na(i,"svg",{width:e.width,height:e.height,viewBox:`0 0 ${s} ${a}`}),c=na(i,"defs"),d=i.importNode(t.element,!0);d.setAttribute("id","composited-reference"),c.appendChild(d),l.appendChild(c);const h=na(i,"g",{transform:`translate(${n.x} ${n.y})`});return h.appendChild(na(i,"image",{x:-n.x,y:-n.y,width:s,height:a,href:oa(e),filter:"url(#composited-reference)"})),l.appendChild(h),ra(l,e,1,r)}function sa(e,t,n){const o=t*n*4;return!Number.isFinite(o)||t<=0||n<=0||t>8192||n>8192||e.pixels+o>16777216?0:(e.pixels+=o,o)}const aa=(e,t)=>e.add(-t,-t,2*t,2*t),la=(e,t)=>new g(Math.min(e.left,t.left),Math.min(e.top,t.top),Math.max(e.left+e.width,t.left+t.width)-Math.min(e.left,t.left),Math.max(e.top+e.height,t.top+t.height)-Math.min(e.top,t.top));function ca(e){const t=e.styles;let n=e.bounds;for(const o of t.boxShadow)if(!o.inset){const t=Math.max(0,o.spread.number)+3*o.blur.number;n=la(n,aa(e.bounds.add(o.offsetX.number,o.offsetY.number,0,0),t))}for(const o of e.textNodes)for(const r of o.textBounds){const o=aa(r.bounds,2*Ee(t.fontSize,e.bounds.height)+t.webkitTextStrokeWidth);n=la(n,o);for(const e of t.textShadow)n=la(n,aa(o.add(e.offsetX.number,e.offsetY.number,0,0),3*e.blur.number))}for(const t of e.elements)t.styles.isVisible()&&(n=la(n,ca(t)));const o=Gs(t.filter);return aa(n,o?Xs(o,e.filterReferences):0)}function da(e,t,n,o){const r=aa(t,n),i=Math.floor(Math.max(e.left,r.left)*o)/o,s=Math.floor(Math.max(e.top,r.top)*o)/o,a=Math.ceil(Math.min(e.left+e.width,r.left+r.width)*o)/o,l=Math.ceil(Math.min(e.top+e.height,r.top+r.height)*o)/o;return new g(i,s,Math.max(0,a-i),Math.max(0,l-s))}const ha=[1,0,0,1,0,0],ua=e=>1===e[0]&&0===e[1]&&0===e[2]&&1===e[3]&&0===e[4]&&0===e[5],pa=(e,t)=>[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]],fa=(e,t,n)=>[e[0]*t+e[2]*n+e[4],e[1]*t+e[3]*n+e[5]],ma=(e,t)=>{const n=[fa(e,t.left,t.top),fa(e,t.left+t.width,t.top),fa(e,t.left,t.top+t.height),fa(e,t.left+t.width,t.top+t.height)],o=Math.min(...n.map(e=>e[0])),r=Math.max(...n.map(e=>e[0])),i=Math.min(...n.map(e=>e[1])),s=Math.max(...n.map(e=>e[1]));return new g(o,i,r-o,s-i)};var ga=class{ctx;constructor(e){this.ctx=e}render(e,t){this.ctx.fillStyle=Ie(t.textDecorationColor??t.color);let n=1;"number"==typeof t.textDecorationThickness?n=t.textDecorationThickness:"from-font"===t.textDecorationThickness&&(n=Math.max(1,Math.floor(.05*t.fontSize.number)));let o=0;"number"==typeof t.textUnderlineOffset&&(o=t.textUnderlineOffset);const r=t.textDecorationStyle;t.textDecorationLine.forEach(t=>{let i=0;switch(t){case 1:i=e.top+e.height-n+o;break;case 2:i=e.top;break;case 3:i=e.top+(e.height/2-n/2);break;default:return}this.draw(e.left,i,e.width,n,r)})}draw(e,t,n,o,r){switch(r){case 0:default:this.ctx.fillRect(e,t,n,o);break;case 1:{const r=Math.max(1,o);this.ctx.fillRect(e,t,n,o),this.ctx.fillRect(e,t+o+r,n,o);break}case 2:this.drawPattern(e,t,n,o,[o,2*o]);break;case 3:this.drawPattern(e,t,n,o,[3*o,2*o]);break;case 4:this.drawWavy(e,t,n,o)}}drawPattern(e,t,n,o,r){this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash(r),this.ctx.lineWidth=o,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(e,t+o/2),this.ctx.lineTo(e+n,t+o/2),this.ctx.stroke(),this.ctx.restore()}drawWavy(e,t,n,o){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=o,this.ctx.strokeStyle=this.ctx.fillStyle;const r=2*o,i=4*o;let s=e;for(this.ctx.moveTo(s,t+o/2);s<e+n;){const a=Math.min(s+i/2,e+n);if(this.ctx.quadraticCurveTo(s+i/4,t+o/2-r,a,t+o/2),s=a,s<e+n){const a=Math.min(s+i/2,e+n);this.ctx.quadraticCurveTo(s+i/4,t+o/2+r,a,t+o/2),s=a}}this.ctx.stroke(),this.ctx.restore()}};const ba=e=>void 0!==e&&!Number.isNaN(e),ya=(e,t)=>{const n=e.measureText("Mg"),o=n;return{baseline:ba(o.fontBoundingBoxAscent)?o.fontBoundingBoxAscent:ba(n.actualBoundingBoxAscent)?n.actualBoundingBoxAscent:t,height:ba(o.fontBoundingBoxAscent)&&ba(o.fontBoundingBoxDescent)?o.fontBoundingBoxAscent+o.fontBoundingBoxDescent:ba(n.actualBoundingBoxAscent)&&ba(n.actualBoundingBoxDescent)?n.actualBoundingBoxAscent+n.actualBoundingBoxDescent:t}},xa=(e,t)=>ya(e,t).baseline,wa=/[\u2E80-\u2FFF\u3000-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFFEF]/,va=e=>wa.test(e),ka=()=>"undefined"==typeof navigator||void 0===navigator.userAgentData&&void 0===("undefined"!=typeof window?window:void 0)?.chrome?"round":"miter";var Ca=class{ctx;options;decorationRenderer;baselineCache=new Map;glyphWidthCache=null;constructor(e){this.ctx=e.ctx,this.options=e.options,this.decorationRenderer=new ga(e.ctx)}cachedMeasureText(e,t){let n=this.glyphWidthCache;n||(n=new Map,this.glyphWidthCache=n);const o=e+t;let r=n.get(o);return void 0===r&&(r=this.ctx.measureText(e).width,n.set(o,r)),r}iterateLettersWithLetterSpacing(e,t,n,o,r){if(Qo(o))return void this.iterateVerticalGlyphs(e,t,n,o,r);const i=Mi(e.text),s=e.bounds.top+n,a=this.ctx.font;let l=e.bounds.left;for(const e of i)r(e,l,s),l+=this.cachedMeasureText(e,a)+t}iterateVerticalGlyphs(e,t,n,o,r){const i=Mi(e.text),s=this.ctx.font,a=4===o?-Math.PI/2:Math.PI/2;let l=e.bounds.top;for(let c=0;c<i.length;){const d=i[c];if(!(Jo(o)||!va(d)&&d.trim().length>0)){const o=this.ctx.textBaseline;va(d)&&(this.ctx.textBaseline="ideographic"),r(d,e.bounds.left,l+n),this.ctx.textBaseline=o,l+=this.cachedMeasureText(d,s)+t,c++;continue}const h=c;for(;c<i.length;){const e=i[c];if(!Jo(o)&&!va(e)&&0===e.trim().length)break;if(!(Jo(o)||!va(e)&&e.trim().length>0))break;c++}this.ctx.save(),this.ctx.translate(e.bounds.left+n,l),this.ctx.rotate(a);let u=0;for(let e=h;e<c;e++){const n=i[e];r(n,0,u),u+=this.cachedMeasureText(n,s)+t}this.ctx.restore(),l+=u}}renderTextWithLetterSpacing(e,t,n,o=0){this.renderFillText(e,t,n,o)}canRenderWholeText(e,t){return 0===e&&!Qo(t)}renderFillText(e,t,n,o){this.canRenderWholeText(t,o)?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):this.iterateLettersWithLetterSpacing(e,t,n,o,(e,t,n)=>{this.ctx.fillText(e,t,n)})}renderStrokeText(e,t,n,o){this.canRenderWholeText(t,o)?this.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+n):this.iterateLettersWithLetterSpacing(e,t,n,o,(e,t,n)=>{this.ctx.strokeText(e,t,n)})}renderTextStrokeWithStyle(e,t,n){t.webkitTextStrokeWidth&&e.text.trim().length&&(this.ctx.strokeStyle=Ie(t.webkitTextStrokeColor),this.ctx.lineWidth=t.webkitTextStrokeWidth,this.ctx.lineJoin=ka(),this.renderStrokeText(e,t.letterSpacing,n,t.writingMode),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter")}renderTextFillWithShadows(e,t,n){this.ctx.fillStyle=this.resolveFillColor(t),this.renderTextWithLetterSpacing(e,t.letterSpacing,n,t.writingMode);const o=t.textShadow;o.length&&e.text.trim().length&&(o.slice(0).reverse().forEach(o=>{this.ctx.shadowColor=Ie(o.color),this.ctx.shadowOffsetX=o.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=o.offsetY.number*this.options.scale,this.ctx.shadowBlur=o.blur.number*this.options.scale,this.renderTextWithLetterSpacing(e,t.letterSpacing,n,t.writingMode)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0)}renderTextBoundWithPaintOrder(e,t,n,o){n.forEach(n=>{switch(n){case 0:this.ctx.fillStyle=this.resolveFillColor(t),this.renderTextWithLetterSpacing(e,t.letterSpacing,o,t.writingMode);break;case 1:this.renderTextStrokeWithStyle(e,t,o)}})}renderTextDecoration(e,t){this.decorationRenderer.render(e,t)}truncateTextWithEllipsis(e,t,n){const o=this.ctx.measureText("…").width,r=Mi(e);if(0===n){const e=e=>this.ctx.measureText(r.slice(0,e).join("")).width+o<=t;let n=0,i=r.length;for(;n<i;){const t=n+i+1>>1;e(t)?n=t:i=t-1}return r.slice(0,n).join("")+"…"}{const e=this.ctx.font;let i=o;const s=[];for(const o of r){const r=this.cachedMeasureText(o,e);if(i+r>t)break;s.push(o),i+=r+n}return s.join("")+"…"}}createFontStyle(e){const t=e.fontVariant.filter(e=>"normal"===e||"small-caps"===e).join(""),n=e.fontFamily.join(", "),o=J(e.fontSize)?`${e.fontSize.number}${e.fontSize.unit}`:`${e.fontSize.number}px`;return[[e.fontStyle,t,e.fontWeight,o,n].join(" "),n,o]}resolveFillColor(e){return Ie(e.webkitTextFillColor??e.color)}renderLineClampedText(e,t,n,o,r){const i=Lo(t.lineHeight,t.fontSize.number),s=[];let a=[],l=y(e.textBounds,0).bounds.top;e.textBounds.forEach(e=>{Math.abs(e.bounds.top-l)>=.5*i?(a.length>0&&s.push(a),a=[e],l=e.bounds.top):a.push(e)}),a.length>0&&s.push(a);const c=t.webkitLineClamp;if(s.length<=c)return!1;for(let e=0;e<c-1;e++)y(s,e).forEach(e=>this.renderTextBoundWithPaintOrder(e,t,n,o));const d=s[c-1];if(d?.length&&r){const e=d.map(e=>e.text).join(""),i=y(d,0),s=r.width-(i.bounds.left-r.left),a=new ki(this.truncateTextWithEllipsis(e,s,t.letterSpacing),i.bounds);for(const e of n)0===e?(this.ctx.fillStyle=this.resolveFillColor(t),this.renderTextWithLetterSpacing(a,t.letterSpacing,o,t.writingMode)):1===e&&this.renderTextStrokeWithStyle(a,t,o)}return!0}renderEllipsisText(e,t,n,o,r){const i=Lo(t.lineHeight,t.fontSize.number),s=y(e.textBounds,0).bounds.top;if(!e.textBounds.every(e=>Math.abs(e.bounds.top-s)<.5*i))return!1;let a=e.textBounds.map(e=>e.text).join("").replace(/\s+/g," ").trim();if(this.ctx.measureText(a).width<=r.width+1)return!1;const l=new ki(this.truncateTextWithEllipsis(a,r.width,t.letterSpacing),y(e.textBounds,0).bounds);for(const e of n)0===e?this.renderTextFillWithShadows(l,t,o):1===e&&this.renderTextStrokeWithStyle(l,t,o);return!0}measureBaselineCached(e,t){let n=this.baselineCache.get(e);return void 0===n&&(n=xa(this.ctx,t),this.baselineCache.size>=64&&this.baselineCache.clear(),this.baselineCache.set(e,n)),n}async renderTextNode(e,t,n){this.glyphWidthCache=null;const[o]=this.createFontStyle(t);this.ctx.font=o??"",this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const r=t.paintOrder,i=this.measureBaselineCached(o??"",t.fontSize.number);t.webkitLineClamp>0&&34&t.display&&1===t.overflowY&&e.textBounds.length>0&&this.renderLineClampedText(e,t,r,i,n)||1===t.textOverflow&&n&&1===t.overflowX&&e.textBounds.length>0&&this.renderEllipsisText(e,t,r,i,n)||(e.textBounds.forEach(e=>{r.forEach(n=>{0===n?(this.renderTextFillWithShadows(e,t,i),t.textDecorationLine.length&&this.renderTextDecoration(e.bounds,t)):1===n&&this.renderTextStrokeWithStyle(e,t,i)})}),t.textEmphasisStyle&&this.renderTextEmphasis(e,t,i))}renderTextEmphasis(e,t,n){if(Qo(t.writingMode))return;const o=t.textEmphasisStyle;if(!o)return;const r=t.fontSize.number,i=.5*r,s=Ie(t.textEmphasisColor??t.color),a=t.textEmphasisPosition,l=(e,t)=>{if("string"==typeof o){const n=this.ctx.font;return this.ctx.font=n.replace(/^\S+/,`${i}px`),this.ctx.textAlign="center",this.ctx.fillText(o,e,t+i/3),this.ctx.font=n,void(this.ctx.textAlign="left")}const{fill:n,shape:r}=o,s=i*("dot"===r?.3:"sesame"===r?.26:.34);this.ctx.beginPath(),"sesame"===r?this.ctx.ellipse(e,t,1.3*s,.8*s,Math.PI/4,0,2*Math.PI):"triangle"===r?(this.ctx.moveTo(e,t-s),this.ctx.lineTo(e+1.1*s,t+.8*s),this.ctx.lineTo(e-1.1*s,t+.8*s),this.ctx.closePath()):this.ctx.arc(e,t,s,0,2*Math.PI),n?"double-circle"===r?(this.ctx.lineWidth=.7*s,this.ctx.stroke(),this.ctx.beginPath(),this.ctx.arc(e,t,.4*s,0,2*Math.PI),this.ctx.lineWidth=.35*s,this.ctx.stroke()):this.ctx.fill():(this.ctx.lineWidth=Math.max(1,.35*s),this.ctx.stroke(),"double-circle"===r&&(this.ctx.beginPath(),this.ctx.arc(e,t,.5*s,0,2*Math.PI),this.ctx.stroke()))},c=this.ctx.font;for(const o of e.textBounds){const e=o.bounds.top+n,d=a.over?e-r-.4*i:e+.9*i;let h=o.bounds.left;for(const e of Mi(o.text)){const n=this.cachedMeasureText(e,c);this.ctx.save();try{this.ctx.fillStyle=s,this.ctx.strokeStyle=s,this.ctx.lineWidth=1,l(h+n/2+t.letterSpacing/2,d)}finally{this.ctx.restore()}h+=n+t.letterSpacing}}}};const Sa=(e,t)=>{t.forEach((t,n)=>{const o=ts(t)?t.start:t;0===n?e.moveTo(o.x,o.y):e.lineTo(o.x,o.y),ts(t)&&e.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)})},Ea=(e,t)=>{e.beginPath(),Sa(e,t),e.closePath()};var Ma=class{maxSize;_map;constructor(e){this.maxSize=e,this._map=new Map}get(e){if(!this._map.has(e))return;const t=this._map.get(e);return this._map.delete(e),this._map.set(e,t),t}set(e,t){if(this._map.has(e))this._map.delete(e);else if(this._map.size>=this.maxSize){const e=this._map.keys().next().value;void 0!==e&&this._map.delete(e)}this._map.set(e,t)}get size(){return this._map.size}clear(){this._map.clear()}},Da=class{ctx;context;canvas;patternCache=new Ma(50);constructor(e){this.ctx=e.ctx,this.context=e.context,this.canvas=e.canvas}async renderBackgroundImage(e){let t=e.styles.backgroundImage.length-1;const n=e.styles.backgroundBlendMode;let o=0;for(const r of e.styles.backgroundImage.slice(0).reverse()){if(o>0){const e=n[o]??n[0]??"normal";"normal"!==e&&(this.ctx.save(),this.ctx.globalCompositeOperation=e)}0===r.type?await this.renderBackgroundURLImage(e,r,t):Vn(r)?this.renderLinearGradient(e,r,t):Hn(r)?this.renderRepeatingLinearGradient(e,r,t):qn(r)?this.renderRadialGradient(e,r,t):Yn(r)?this.renderRepeatingRadialGradient(e,r,t):Kn(r)?this.renderConicGradient(e,r,t):Xn(r)&&this.renderRepeatingConicGradient(e,r,t),o>0&&"normal"!==(n[o]??n[0]??"normal")&&this.ctx.restore(),t--,o++}}async renderBackgroundURLImage(e,t,n){let o;const r=t.url;try{o=await this.context.cache.match(r)}catch(e){this.context.logger.error(`Error loading background-image ${r}`)}if(o){const t=isNaN(o.width)||0===o.width?1:o.width,i=isNaN(o.height)||0===o.height?1:o.height,[s,a,l,c,d]=Ls(e,n,[t,i,t/i]),h=Os(e.styles.backgroundRepeat,n),u=1===h?"no-repeat":2===h?"repeat-x":3===h?"repeat-y":"repeat",p=`${r}|${Math.round(c)}x${Math.round(d)}|${e.styles.imageRendering}|${u}`;let f=this.patternCache.get(p);if(!f){const t=this.resizeImage(o,c,d,e.styles.imageRendering);f=this.ctx.createPattern(t,u),this.patternCache.set(p,f)}this.renderRepeat(s,f,a,l)}}renderRepeatingLinearGradient(e,t,n){const[o,r,i,s,a]=Ls(e,n,[null,null,null]),[l,c,d,h,u]=Cn(t.angle,s,a),p=r+c,f=r+d,m=i+h,g=i+u,b=kn(t.stops,l||1),x=Ds(b),w=this.ctx.createLinearGradient(p,m,f,g);if(x)x.forEach(e=>w.addColorStop(Math.min(1,Math.max(0,e.stop)),e.color));else{const e=Ie(y(b,b.length-1).color);w.addColorStop(0,e),w.addColorStop(1,e)}this.path(o),this.ctx.fillStyle=w,this.ctx.fill()}renderLinearGradient(e,t,n){const[o,r,i,s,a]=Ls(e,n,[null,null,null]),[l,c,d,h,u]=Cn(t.angle,s,a),p=`lg|${t.angle}|${Math.round(s)}x${Math.round(a)}|${JSON.stringify(t.stops)}`;let f=this.patternCache.get(p);if(!f){const e=(this.canvas.ownerDocument??document).createElement("canvas");e.width=s,e.height=a;const n=e.getContext("2d");if(!n)return;const o=n.createLinearGradient(c,h,d,u);kn(t.stops,l||1).forEach(e=>o.addColorStop(e.stop,Ie(e.color))),n.fillStyle=o,n.fillRect(0,0,s,a),s>0&&a>0&&(f=this.ctx.createPattern(e,"repeat"),this.patternCache.set(p,f))}f&&this.renderRepeat(o,f,r,i)}renderRadialGradient(e,t,n){const[o,r,i,s,a]=Ls(e,n,[null,null,null]),l=0===t.position.length?[ke]:t.position,c=Ee(y(l,0),s),d=Ee(y(l,l.length-1),a);let[h,u]=Mn(t,c,d,s,a);if(0!==h&&0!==u||(h=Math.max(h,.01),u=Math.max(u,.01)),h>0&&u>0){const e=`rg|${Math.round(c)}x${Math.round(d)}|${Math.round(h)}x${Math.round(u)}|${JSON.stringify(t.stops)}`,n=kn(t.stops,h),s=Ie(y(n,n.length-1).color);let a=this.patternCache.get(e);if(!a){const n=this.canvas.ownerDocument??document,o=Bs(n,h,u,t.stops,!1);if(!o)return;a=this.ctx.createPattern(o.canvas,"no-repeat"),this.patternCache.set(e,a)}this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.fillStyle=s,this.ctx.fill(),this.ctx.translate(r+c-h,i+d-u),this.ctx.fillStyle=a,this.ctx.fillRect(0,0,2*h,2*u),this.ctx.restore()}}renderRepeatingRadialGradient(e,t,n){const[o,r,i,s,a]=Ls(e,n,[null,null,null]),l=0===t.position.length?[ke]:t.position,c=Ee(y(l,0),s),d=Ee(y(l,l.length-1),a);let[h,u]=Mn(t,c,d,s,a);if(0!==h&&0!==u||(h=Math.max(h,.01),u=Math.max(u,.01)),!(h>0&&u>0))return;const p=`rrg|${Math.round(c)}x${Math.round(d)}|${Math.round(h)}x${Math.round(u)}|${JSON.stringify(t.stops)}`;let f=this.patternCache.get(p);if(!f){const e=this.canvas.ownerDocument??document,n=Bs(e,h,u,t.stops,!0);if(!n)return;f=this.ctx.createPattern(n.canvas,"no-repeat"),this.patternCache.set(p,f)}f&&(this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.translate(r+c-h,i+d-u),this.ctx.fillStyle=f,this.ctx.fillRect(0,0,2*h,2*u),this.ctx.restore())}renderConicGradient(e,t,n){const[o,r,i,s,a]=Ls(e,n,[null,null,null]),l=0===t.position.length?[ke]:t.position,c=r+Ee(y(l,0),s),d=i+Ee(y(l,l.length-1),a),h=this.ctx.createConicGradient(t.angle-Math.PI/2,c,d);kn(t.stops,1).forEach(e=>{h.addColorStop(Math.min(1,Math.max(0,e.stop)),Ie(e.color))}),this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.fillStyle=h,this.ctx.fill(),this.ctx.restore()}renderRepeatingConicGradient(e,t,n){const[o,r,i,s,a]=Ls(e,n,[null,null,null]),l=0===t.position.length?[ke]:t.position,c=r+Ee(y(l,0),s),d=i+Ee(y(l,l.length-1),a),h=kn(t.stops,1),u=y(h,0),p=y(h,h.length-1),f=Math.max(p.stop-u.stop,.01);if(p.stop-u.stop<1e-6){const e=this.ctx.createConicGradient(t.angle-Math.PI/2,c,d);return e.addColorStop(0,Ie(p.color)),e.addColorStop(1,Ie(p.color)),this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.fillStyle=e,this.ctx.fill(),void this.ctx.restore()}const m=[],g=Math.ceil(1/f);for(let e=0;e<g;e++)for(const t of h){const n=e*f+(t.stop-u.stop);if(n>1)break;m.push({stop:n,color:Ie(t.color)})}const b=y(m,m.length-1);b&&b.stop<1&&m.push({stop:1,color:b.color});const x=this.ctx.createConicGradient(t.angle-Math.PI/2,c,d);m.forEach(e=>{x.addColorStop(Math.min(1,Math.max(0,e.stop)),e.color)}),this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.fillStyle=x,this.ctx.fill(),this.ctx.restore()}renderRepeat(e,t,n,o){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,o),this.ctx.fill(),this.ctx.translate(-n,-o)}resizeImage(e,t,n,o){const r=(this.canvas.ownerDocument??document).createElement("canvas");r.width=Math.max(1,t),r.height=Math.max(1,n);const i=r.getContext("2d");return i?(2===o||1===o?(this.context.logger.debug("Disabling image smoothing for background image due to CSS image-rendering"),i.imageSmoothingEnabled=!1):3===o?(this.context.logger.debug("Enabling image smoothing for background image due to CSS image-rendering: smooth"),i.imageSmoothingEnabled=!0):i.imageSmoothingEnabled=this.ctx.imageSmoothingEnabled,this.ctx.imageSmoothingQuality&&(i.imageSmoothingQuality=this.ctx.imageSmoothingQuality),i.drawImage(e,0,0,e.width,e.height,0,0,t,n),r):e}path(e){Ea(this.ctx,e)}};const Ta=(e,t)=>{switch(t){case 0:return Ra(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Ra(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Ra(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return Ra(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Ba=(e,t)=>{const n=[];return ts(e)?n.push(e.subdivide(.5,!1)):n.push(e),ts(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Ra=(e,t,n,o)=>{const r=[];return ts(e)?r.push(e.subdivide(.5,!1)):r.push(e),ts(n)?r.push(n.subdivide(.5,!0)):r.push(n),ts(o)?r.push(o.subdivide(.5,!0).reverse()):r.push(o),ts(t)?r.push(t.subdivide(.5,!1).reverse()):r.push(t),r};var Fa=class{ctx;pathCallbacks;constructor(e,t){this.ctx=e.ctx,this.pathCallbacks=t}async renderSolidBorder(e,t,n){this.pathCallbacks.path(Ta(n,t)),this.ctx.fillStyle=Ie(e),this.ctx.fill()}async renderDoubleBorder(e,t,n,o){if(t<3)return void await this.renderSolidBorder(e,n,o);const r=((e,t)=>{switch(t){case 0:return Ra(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Ra(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Ra(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return Ra(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}})(o,n);this.pathCallbacks.path(r),this.ctx.fillStyle=Ie(e),this.ctx.fill();const i=((e,t)=>{switch(t){case 0:return Ra(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Ra(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Ra(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return Ra(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}})(o,n);this.pathCallbacks.path(i),this.ctx.fill()}async renderDashedDottedBorder(e,t,n,o,r){this.ctx.save();const i=((e,t)=>{switch(t){case 0:return Ba(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Ba(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Ba(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Ba(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}})(o,n),s=Ta(o,n);let a,l,c,d,h;2===r&&(this.pathCallbacks.path(s),this.ctx.clip()),ts(y(s,0))?(a=y(s,0).start.x,l=y(s,0).start.y):(a=y(s,0).x,l=y(s,0).y),ts(y(s,1))?(c=y(s,1).end.x,d=y(s,1).end.y):(c=y(s,1).x,d=y(s,1).y),h=0===n||2===n?Math.abs(a-c):Math.abs(l-d),this.ctx.beginPath(),3===r?this.pathCallbacks.formatPath(i):this.pathCallbacks.formatPath(s.slice(0,2));let u=t<3?3*t:2*t,p=t<3?2*t:t;3===r&&(u=t,p=t);let f=!0;if(h<=2*u)f=!1;else if(h<=2*u+p){const e=h/(2*u+p);u*=e,p*=e}else{const e=Math.floor((h+p)/(u+p)),t=(h-e*u)/(e-1),n=(h-(e+1)*u)/e;p=n<=0||Math.abs(p-t)<Math.abs(p-n)?t:n}if(f&&(3===r?this.ctx.setLineDash([0,u+p]):this.ctx.setLineDash([u,p])),3===r?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=Ie(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===r){if(ts(y(s,0))){const e=y(s,3),t=y(s,0);this.ctx.beginPath(),this.pathCallbacks.formatPath([new Ji(e.end.x,e.end.y),new Ji(t.start.x,t.start.y)]),this.ctx.stroke()}if(ts(y(s,1))){const e=y(s,1),t=y(s,2);this.ctx.beginPath(),this.pathCallbacks.formatPath([new Ji(e.end.x,e.end.y),new Ji(t.start.x,t.start.y)]),this.ctx.stroke()}}this.ctx.restore()}},La=class{ctx;constructor(e){this.ctx=e}renderBorderImage(e,t,n,o,r,i,s,a,l={top:0,right:0,bottom:0,left:0}){e=e.add(-l.left,-l.top,l.left+l.right,l.top+l.bottom);const c=t.naturalWidth||t.width,d=t.naturalHeight||t.height;if(c<=0||d<=0)return;const h=Math.min("percent"===n.unit?n.top/100*d:Math.min(n.top,d),d),u=Math.min("percent"===n.unit?n.right/100*c:Math.min(n.right,c),c),p=Math.min("percent"===n.unit?n.bottom/100*d:Math.min(n.bottom,d),d),f=Math.min("percent"===n.unit?n.left/100*c:Math.min(n.left,c),c),{left:m,top:g,width:b,height:y}=e;if(b<=0||y<=0)return;const x=Math.min(r,y),w=Math.min(i,b),v=Math.min(s,y-x),k=Math.min(a,b-w);this.drawRegion(t,0,0,f,h,m,g,k,x),this.drawRegion(t,c-u,0,u,h,m+b-w,g,w,x),this.drawRegion(t,c-u,d-p,u,p,m+b-w,g+y-v,w,v),this.drawRegion(t,0,d-p,f,p,m,g+y-v,k,v);const C=[{sx:f,sy:0,sw:c-f-u,sh:h,dx:m+k,dy:g,dw:b-k-w,dh:x,repeat:o.horizontal,horizontal:!0},{sx:c-u,sy:h,sw:u,sh:d-h-p,dx:m+b-w,dy:g+x,dw:w,dh:y-x-v,repeat:o.vertical,horizontal:!1},{sx:f,sy:d-p,sw:c-f-u,sh:p,dx:m+k,dy:g+y-v,dw:b-k-w,dh:v,repeat:o.horizontal,horizontal:!0},{sx:0,sy:h,sw:f,sh:d-h-p,dx:m,dy:g+x,dw:k,dh:y-x-v,repeat:o.vertical,horizontal:!1}];for(const e of C)e.sw<=0||e.sh<=0||e.dw<=0||e.dh<=0||(0===e.repeat?this.ctx.drawImage(t,e.sx,e.sy,e.sw,e.sh,e.dx,e.dy,e.dw,e.dh):1!==e.repeat&&2!==e.repeat||this.drawRepeatedEdge(t,e,e.horizontal,2===e.repeat));n.fill&&this.drawCenterRegion(t,{sx:f,sy:h,sw:c-f-u,sh:d-h-p},{dx:m+k,dy:g+x,dw:b-k-w,dh:y-x-v},o)}drawRegion(e,t,n,o,r,i,s,a,l){o>0&&r>0&&a>0&&l>0&&this.ctx.drawImage(e,t,n,o,r,i,s,a,l)}drawRepeatedEdge(e,t,n,o){const r=n?t.sw:t.sh,i=n?t.dw:t.dh;if(r<=0||i<=0)return;let s,a;o?(a=Math.max(1,Math.round(i/r)),s=i/a):(s=r,a=Math.ceil(i/s)),this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(t.dx,t.dy,t.dw,t.dh),this.ctx.clip();for(let o=0;o<a;o++){const r=o*s;n?this.ctx.drawImage(e,t.sx,t.sy,t.sw,t.sh,t.dx+r,t.dy,s,t.dh):this.ctx.drawImage(e,t.sx,t.sy,t.sw,t.sh,t.dx,t.dy+r,t.dw,s)}this.ctx.restore()}drawCenterRegion(e,t,n,o){if(t.sw<=0||t.sh<=0||n.dw<=0||n.dh<=0)return;const r=(e,t,n)=>{if(0===e)return{size:n,count:1};if(2===e){const e=Math.max(1,Math.round(n/t));return{size:n/e,count:e}}return{size:t,count:Math.max(1,Math.ceil(n/t))}},i=r(o.horizontal,t.sw,n.dw),s=r(o.vertical,t.sh,n.dh);this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(n.dx,n.dy,n.dw,n.dh),this.ctx.clip();for(let o=0;o<s.count;o++)for(let r=0;r<i.count;r++)this.ctx.drawImage(e,t.sx,t.sy,t.sw,t.sh,n.dx+r*i.size,n.dy+o*s.size,i.size,s.size);this.ctx.restore()}};const Ia=/blur\((\d+(?:\.\d+)?)px\)/gi;var Pa=class{ctx;pathCallback;scale;activeEffects=[];didSave=!1;saveAtDepth=-1;constructor(e,t){this.ctx=e.ctx,this.pathCallback=t,this.scale=e.scale??1}applyEffects(e){for(;this.activeEffects.length;)this.popEffect();this.didSave=!1,this.saveAtDepth=-1;const t=e=>ps(e)||fs(e)||gs(e),n=e.reduceRight((e,n,o)=>-1!==e?e:t(n)?o:-1,-1);for(let o=0;o<e.length;o++){const r=y(e,o);t(r)&&(this.didSave||(this.ctx.save(),this.didSave=!0),o===n&&(this.saveAtDepth=this.activeEffects.length)),this.applyEffect(r)}}applyEffect(e){ps(e)?(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)):fs(e)?(this.pathCallback.path(e.path),this.ctx.clip()):gs(e)?e.applyClip(this.ctx):ms(e)?this.ctx.globalAlpha*=e.opacity:bs(e)?this.ctx.globalCompositeOperation=e.compositeOperation:ys(e)&&(this.ctx.filter=((e,t)=>1===t?e:e.replace(Ia,(e,n)=>`blur(${parseFloat(n)*t}px)`))(e.safeFilterString,this.scale)||"none",e.shadow&&(this.ctx.shadowOffsetX=e.shadow.offsetX*this.scale,this.ctx.shadowOffsetY=e.shadow.offsetY*this.scale,this.ctx.shadowBlur=e.shadow.blur*this.scale,this.ctx.shadowColor=e.shadow.color)),this.activeEffects.push(e)}popEffect(){0!==this.activeEffects.length&&(this.didSave&&this.activeEffects.length-1===this.saveAtDepth&&(this.ctx.restore(),this.didSave=!1,this.saveAtDepth=-1),this.activeEffects.pop(),this.didSave||0!==this.activeEffects.length||(this.ctx.globalAlpha=1,this.ctx.globalCompositeOperation="source-over",this.ctx.filter="none",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0,this.ctx.shadowColor="rgba(0, 0, 0, 0)"))}getActiveEffectCount(){return this.activeEffects.length}hasActiveEffects(){return this.activeEffects.length>0}};const Aa=(e,t)=>0===e.length?void 0:e[t%e.length]??e[0],Oa=(e,t,n,o,r)=>{const i=t.naturalWidth||t.width||r.width,s=t.naturalHeight||t.height||r.height,{width:a,height:l}=((e,t,n,o)=>{const r=e?e[0]:void 0,i=e&&e.length>1?y(e,1):void 0,s=(e,t,n)=>void 0===e||ee(e)?null:ge(e)?Ee(e,t):n,a=void 0!==(l=r)&&ee(l)?l.value:null;var l;if("contain"===a||"cover"===a){const e="contain"===a?Math.min(t.width/n,t.height/o):Math.max(t.width/n,t.height/o);return{width:n*e,height:o*e}}let c=s(r,t.width,n),d=s(i,t.height,o);return null===c&&null===d?(c=n,d=o):null===c?c=n/o*d:null===d&&(d=o/n*c),{width:c,height:d}})(Aa(n.maskSize,o),r,i,s),c=Aa(n.maskPosition,o)??[],d=r.left+Ee(y(c,0),r.width-a),h=r.top+Ee(y(c,c.length-1),r.height-l),u=Aa(n.maskRepeat,o)??0,p=0===u||2===u,f=0===u||3===u,m=p?Math.ceil((d-r.left)/a):0,g=f?Math.ceil((h-r.top)/l):0,b=p?Math.ceil((r.left+r.width-d)/a):0,x=f?Math.ceil((r.top+r.height-h)/l):0;for(let n=-g;n<=x;n++)for(let o=-m;o<=b;o++)e.drawImage(t,d+o*a,h+n*l,a,l)},Na=(e,t,n)=>{const{width:o,height:r}=n;if(o<=0||r<=0)return;if(qn(t)||Yn(t))return void((e,t,n)=>{const{width:o,height:r}=n,i=0===t.position.length?[ke]:t.position,s=Ee(y(i,0),o),a=Ee(y(i,i.length-1),r);let[l,c]=Mn(t,s,a,o,r);l=Math.max(l,.01),c=Math.max(c,.01);const d=e.canvas.ownerDocument??document,h=Bs(d,l,c,t.stops,Yn(t));h&&(e.fillStyle=h.lastColor,e.fillRect(n.left,n.top,n.width,n.height),e.drawImage(h.canvas,n.left+s-l,n.top+a-c,2*l,2*c),zs(h.canvas))})(e,t,n);let i=null;if(1===t.type||3===t.type){const s=t,[a,l,c,d,h]=Cn(s.angle||0,o,r),u=kn(s.stops,a||1);if(3===t.type){const t=Ds(u);if(!t)return e.fillStyle=Ie(y(u,u.length-1).color),void e.fillRect(n.left,n.top,o,r);i=e.createLinearGradient(n.left+l,n.top+d,n.left+c,n.top+h),t.forEach(e=>i.addColorStop(Math.min(1,Math.max(0,e.stop)),e.color))}else i=e.createLinearGradient(n.left+l,n.top+d,n.left+c,n.top+h),Ts(u).forEach(e=>i.addColorStop(e.stop,e.color))}else if(5===t.type||6===t.type){const s=t,a=kn(s.stops,1),l=6===t.type;if(l&&!Ds(a))return e.fillStyle=Ie(y(a,a.length-1).color),void e.fillRect(n.left,n.top,o,r);i=e.createConicGradient(s.angle-Math.PI/2,n.left+o/2,n.top+r/2),((l?Ds(a):null)??Ts(a)).forEach(e=>i.addColorStop(Math.min(1,Math.max(0,e.stop)),e.color))}i&&(e.fillStyle=i,e.fillRect(n.left,n.top,o,r))},$a=async(e,t,n,o,r)=>{for(let i=0;i<t.length;i++){const s=y(t,i);if(0===s.type){const t=await r(s.url);t&&Oa(e,t,n,i,o)}else Na(e,s,o)}},za=(e,t)=>{const n=t>e?t*(1+Math.pow(e/t-1,3)):t;return Math.max(0,e+n)},Ua=(e,t)=>{if(0===t)return e;const n=e.map((e,t)=>ts(e)?{x:t%2==0?e.start.x:e.end.x,y:t%2==0?e.end.y:e.start.y,rx:Math.abs(e.end.x-e.start.x),ry:Math.abs(e.end.y-e.start.y)}:{x:e.x,y:e.y,rx:0,ry:0}),o=y(n,1).x-y(n,0).x+2*t,r=y(n,3).y-y(n,0).y+2*t;if(o<=0||r<=0)return[];const i=n.map(e=>({x:za(e.rx,t),y:za(e.ry,t)})),s=(e,t)=>t>0?e/t:1,a=Math.min(1,s(o,y(i,0).x+y(i,1).x),s(o,y(i,3).x+y(i,2).x),s(r,y(i,0).y+y(i,3).y),s(r,y(i,1).y+y(i,2).y));return e.map((e,o)=>{const r=y(n,o),s=r.x+(1===o||2===o?t:-t),l=r.y+(o>=2?t:-t);if(!ts(e))return new Ji(s,l);const c=y(i,o).x*a,d=y(i,o).y*a;if(!c||!d)return new Ji(s,l);const h=c/r.rx,u=d/r.ry,p=e=>new Ji(s+(e.x-r.x)*h,l+(e.y-r.y)*u);return new es(p(e.start),p(e.startControl),p(e.endControl),p(e.end))})},ja=(e,t,n)=>{e.beginPath(),e.rect(t.left,t.top,t.width,t.height),n.length&&(Sa(e,n),e.closePath())},_a=(e,t)=>{const n=t.spread.number,o=Rs(e.container);return o.width-2*n<=0||o.height-2*n<=0?[]:Ua(is(e.curves),-n)},Ga=async(e,t,n,o,r)=>{if(o.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(Le(n.color))return;const i=n.spread.number;if(!n.inset&&(t.container.bounds.width+2*i<=0||t.container.bounds.height+2*i<=0))return;const s="function"==typeof e.getTransform,a=s?e.getTransform():{a:o.scale,b:0,c:0,d:o.scale,e:-o.x*o.scale,f:-o.y*o.scale},l=((e,t,n)=>{const{a:o,b:r,c:i,d:s,e:a,f:l}=e;if(![o,r,i,s,a,l,t,n].every(Number.isFinite))return null;const c=o*s-r*i;if(!Number.isFinite(c)||0===c)return null;const d=(e,t)=>({x:(s*(e-a)-i*(t-l))/c,y:(-r*(e-a)+o*(t-l))/c}),h=[d(0,0),d(t,0),d(t,n),d(0,n)];if(!h.every(e=>Number.isFinite(e.x)&&Number.isFinite(e.y)))return null;const u=Math.min(...h.map(e=>e.x)),p=Math.min(...h.map(e=>e.y)),f=Math.max(...h.map(e=>e.x)),m=Math.max(...h.map(e=>e.y)),b=o*o+r*r,y=i*i+s*s,x=o*i+r*s,w=Math.sqrt((b+y+Math.hypot(b-y,2*x))/2);if(!Number.isFinite(w)||w<=0)return null;const v=1e-10*Math.max(b,y);return{matrix:e,viewport:new g(u,p,f-u,m-p),scale:w,uniform:Math.abs(b-y)<=v&&Math.abs(x)<=v}})(a,e.canvas.width,e.canvas.height);if(!l)return;const{viewport:c}=l;if(n.blur.number>0&&(n.inset||!l.uniform)&&await(async(e,t,n,o,r,i)=>{const s=Rs(t.container),a=n.blur.number/2,l=Math.ceil(3*a)+2,c=n.spread.number,d=da((n.inset?s:t.container.bounds.add(n.offsetX.number-c,n.offsetY.number-c,2*c,2*c)).add(-l,-l,2*l,2*l),i.viewport,l,i.scale);if(!d.width||!d.height)return!0;const h=Math.ceil(d.width*i.scale),u=Math.ceil(d.height*i.scale),p=sa(r,h,u);if(!p)return!1;let f,m;try{f=e.canvas.ownerDocument.createElement("canvas"),f.width=h,f.height=u;const r=f.getContext("2d");if(!r)return!1;r.scale(i.scale,i.scale),r.translate(-d.left,-d.top);const s=n.inset?_a(t,n):Ua(rs(t.curves),c),l=Qi(s,n.offsetX.number,n.offsetY.number,0,0);n.inset?ja(r,d,l):Ea(r,l),r.fillStyle=Ie(n.color),r.fill(n.inset?"evenodd":"nonzero"),m=await Zs(f,{functions:[{kind:"blur",value:a}]},1,i.scale,o.signal),e.save();try{n.inset?(Ea(e,is(t.curves)),e.clip()):(ja(e,i.viewport,rs(t.curves)),e.clip("evenodd")),e.drawImage(m,d.left,d.top,m.width/i.scale,m.height/i.scale)}finally{e.restore()}return!0}catch(e){if(!(e instanceof $s))throw e;return!1}finally{m&&m!==f&&zs(m),f&&zs(f),r.pixels-=p}})(e,t,n,o,r,l))return;const d=Rs(t.container);e.save();try{if(n.inset&&0===n.blur.number)return Ea(e,is(t.curves)),e.clip(),ja(e,d,Qi(_a(t,n),n.offsetX.number,n.offsetY.number,0,0)),e.fillStyle=Ie(n.color),void e.fill("evenodd");const o=Math.ceil(2*n.blur.number+Math.abs(i)+Math.abs(n.offsetX.number)+Math.abs(n.offsetY.number))+2,r=n.inset?d.add(-o,-o,2*o,2*o):t.container.bounds.add(-i,-i,2*i,2*i),{a:h,b:u,c:p,d:f,e:m,f:g}=a,b=r.left+r.width,y=r.top+r.height,x=Math.max(h*r.left+p*r.top+m,h*b+p*r.top+m,h*b+p*y+m,h*r.left+p*y+m),w=Math.max(1e4,x+o*l.scale+2);n.inset?(Ea(e,is(t.curves)),e.clip()):(ja(e,c,rs(t.curves)),e.clip("evenodd")),s?e.setTransform(h,u,p,f,m-w,g):e.translate(-w/h,0),n.inset?ja(e,r,_a(t,n)):Ea(e,Ua(rs(t.curves),i)),s?e.setTransform(h,u,p,f,m,g):e.translate(w/h,0),e.shadowOffsetX=w+h*n.offsetX.number+p*n.offsetY.number,e.shadowOffsetY=u*n.offsetX.number+f*n.offsetY.number,e.shadowBlur=n.blur.number*l.scale,e.shadowColor=Ie(n.color),e.fillStyle="rgb(0, 0, 0)",e.fill(n.inset?"evenodd":"nonzero")}finally{e.restore()}};var Wa=class{ctx;context;scale;createFontStyle;constructor(e){this.ctx=e.ctx,this.context=e.context,this.scale=e.scale,this.createFontStyle=e.createFontStyle}async render(e){const t=e.container,n=t.styles,o=t.bounds,r=this.scale;if(o.width<=0||o.height<=0)return;const i=this.ctx.canvas.ownerDocument??document,s=Math.ceil(o.width),a=Math.ceil(o.height),l=Math.ceil(o.width*r),c=Math.ceil(o.height*r),d=this.createLayer(i,l,c);if(!d)return;let h=null,u=null,p=null;try{d.ctx.scale(r,r);const[f]=this.createFontStyle(n);d.ctx.font=f??"",d.ctx.textBaseline="alphabetic",d.ctx.textAlign="left",d.ctx.direction=1===n.direction?"rtl":"ltr";const m=xa(d.ctx,n.fontSize.number),g=new Da({ctx:d.ctx,context:this.context,canvas:d.canvas,options:{width:s,height:a,scale:1}});Le(n.backgroundColor)||(d.ctx.fillStyle=Ie(n.backgroundColor),d.ctx.fillRect(0,0,s,a)),d.ctx.save(),d.ctx.translate(-o.left,-o.top),await g.renderBackgroundImage(t),d.ctx.restore();const b={bounds:o,baseline:m,letterSpacing:n.letterSpacing,writingMode:n.writingMode};if(h=this.createGlyphLayer(i,l,c,d.ctx),!h)return;const y=!!n.webkitTextStrokeWidth;y&&(h.ctx.strokeStyle=Ie(n.webkitTextStrokeColor),h.ctx.lineWidth=n.webkitTextStrokeWidth,h.ctx.lineJoin=ka());for(const e of t.textNodes)for(const t of e.textBounds)this.drawGlyphs(h,t,b,(e,t,n,o)=>{e.fillText(t,n,o),y&&e.strokeText(t,n,o)});if(d.ctx.globalCompositeOperation="destination-in",d.ctx.drawImage(h.canvas,0,0,s,a),p=this.renderShadowSilhouettes(e,i,l,c,d.ctx,n,b),p){if(u=this.createLayer(i,l,c),!u)return;for(const e of p)u.ctx.drawImage(e,0,0);u.ctx.drawImage(d.canvas,0,0),this.ctx.drawImage(u.canvas,o.left,o.top,o.width,o.height)}else this.ctx.drawImage(d.canvas,o.left,o.top,o.width,o.height)}finally{zs(d.canvas),h&&zs(h.canvas),u&&zs(u.canvas),p&&p.forEach(zs)}}createLayer(e,t,n){const o=e.createElement("canvas");o.width=t,o.height=n;const r=o.getContext("2d");return r?{canvas:o,ctx:r}:null}createGlyphLayer(e,t,n,o){const r=this.createLayer(e,t,n);return r?(r.ctx.scale(this.scale,this.scale),r.ctx.font=o.font,r.ctx.textBaseline=o.textBaseline,r.ctx.textAlign=o.textAlign,r.ctx.direction=o.direction,r.ctx.fillStyle="#000",r):null}drawGlyphs(e,t,n,o){const r=t.bounds.left-n.bounds.left,i=t.bounds.top-n.bounds.top+n.baseline,{letterSpacing:s,writingMode:a}=n;if(s<=0)return void o(e.ctx,t.text,r,i);if(Qo(a))return void o(e.ctx,t.text,r,i);let l=r;for(const n of Mi(t.text))o(e.ctx,n,l,i),l+=e.ctx.measureText(n).width+s}renderShadowSilhouettes(e,t,n,o,r,i,s){const a=i.textShadow;if(!a.length)return null;const l=[];for(let i=a.length-1;i>=0;i--){const c=y(a,i),d=this.createGlyphLayer(t,n,o,r);if(d){d.ctx.shadowColor=Ie(c.color),d.ctx.shadowOffsetX=c.offsetX.number*this.scale,d.ctx.shadowOffsetY=c.offsetY.number*this.scale,d.ctx.shadowBlur=c.blur.number*this.scale,d.ctx.fillStyle=Ie(c.color);for(const t of e.container.textNodes)for(const e of t.textBounds)this.drawGlyphs(d,e,s,(e,t,n,o)=>{e.fillText(t,n,o)});l.push(d.canvas)}}return l.length?l:null}},Va=class e{surfaceRoot;surfaceBudget;canvas;ctx;context;options;backgroundRenderer;borderRenderer;borderImageRenderer;effectsRenderer;textRenderer;textClipRenderer;legacySubtree=!1;constructor(e,t,n,o={pixels:0}){this.surfaceRoot=n,this.surfaceBudget=o,this.context=e,this.options=t,this.canvas=t.canvas?t.canvas:e.resourceDocument.createElement("canvas");const r=this.canvas.getContext("2d");if(!r){if(t.canvas||zs(this.canvas),n)throw new $s("Filter surface canvas is unavailable");throw new Error("Failed to get 2D rendering context from canvas")}this.ctx=r,t.canvas||(this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=`${t.width}px`,this.canvas.style.height=`${t.height}px`),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x,-t.y),this.ctx.textBaseline="bottom",void 0!==t.imageSmoothing&&(this.ctx.imageSmoothingEnabled=t.imageSmoothing),t.imageSmoothingQuality&&(this.ctx.imageSmoothingQuality=t.imageSmoothingQuality),this.backgroundRenderer=new Da({ctx:this.ctx,context:this.context,canvas:this.canvas,options:{width:t.width,height:t.height,scale:t.scale}}),this.borderRenderer=new Fa({ctx:this.ctx},{path:e=>this.path(e),formatPath:e=>this.formatPath(e)}),this.borderImageRenderer=new La(this.ctx),this.effectsRenderer=new Pa({ctx:this.ctx,scale:t.scale},{path:e=>this.path(e)}),this.textRenderer=new Ca({ctx:this.ctx,options:{scale:t.scale}}),this.textClipRenderer=new Wa({ctx:this.ctx,context:this.context,scale:t.scale,createFontStyle:e=>this.textRenderer.createFontStyle(e)}),this.context.logger.debug(`Canvas renderer initialized (${t.width}x${t.height}) with scale ${t.scale}`)}async renderStack(e){const t=e.element.container.styles;if(t.isVisible()){const n=Gs(t.filter),o=null!==n&&n.functions.length>0,r=t.maskImage.length>0,i=t.webkitBoxReflect,s=t.mixBlendMode!==pr.NORMAL,a=i&&!ua(this.ancestorTransform(e.element));if(a&&this.context.logger.warn("-webkit-box-reflect under an ancestor transform is not supported; the reflection is skipped for this subtree"),e.element!==this.surfaceRoot&&!this.legacySubtree&&!a&&(r||i||s||null!==n&&(o||t.opacity<1))&&this.canComposite(e.element)){if(!await this.renderCompositedStack(e,n,r,i,s)){this.legacySubtree=!0;try{await this.renderStackContent(e)}finally{this.legacySubtree=!1}}return}await this.renderStackContent(e)}}canComposite(e){const t=e=>{const t=e.styles;return 0===t.clipPath.type&&!Vt(t.display,2048)&&null!==Gs(t.filter)},n=e=>t(e)&&e.elements.every(n);let o=e.parent;for(;o&&o!==this.surfaceRoot;){if(!t(o.container))return!1;o=o.parent}return n(e.container)}ancestorTransform(e){const t=[];let n=e;for(;n&&n!==this.surfaceRoot;){for(const e of n.effects)ps(e)&&t.push(e);n=n.parent}if(0===t.length)return ha;let o=ha;for(let e=t.length-1;e>=0;e--){const n=y(t,e),r=pa(pa([1,0,0,1,n.offsetX,n.offsetY],n.matrix),[1,0,0,1,-n.offsetX,-n.offsetY]);o=pa(o,r)}return o}async renderCompositedStack(t,n,o,r,i=!1){const s=this.options.signal;if(s?.aborted)throw new DOMException("The operation was aborted.","AbortError");const a=t.element.container,l=this.ancestorTransform(t.element),c=t.element.effects.filter(ps);let d=l;for(const e of c)d=pa(d,pa(pa([1,0,0,1,e.offsetX,e.offsetY],e.matrix),[1,0,0,1,-e.offsetX,-e.offsetY]));const h=ca(a),u=da(ua(d)?h:ma(d,h),new g(this.options.x,this.options.y,this.options.width,this.options.height),n?Xs(n,a.filterReferences):0,this.options.scale);if(!u.width||!u.height)return!0;const p=sa(this.surfaceBudget,Math.ceil(u.width*this.options.scale),Math.ceil(u.height*this.options.scale));if(!p)return this.context.logger.warn("Filter surface budget exceeded; mask/filter/blend effects are dropped for this subtree"),!1;const f=ua(l)||!o?u:((e,t)=>{const n=(e=>{const t=e[0]*e[3]-e[1]*e[2];if(!Number.isFinite(t)||0===t)return null;const n=1/t;return[e[3]*n,-e[1]*n,-e[2]*n,e[0]*n,(e[2]*e[5]-e[3]*e[4])*n,(e[1]*e[4]-e[0]*e[5])*n]})(e);return n?ma(n,t):null})(l,u)??u,m={...this.options,canvas:void 0,backgroundColor:null,x:f.left,y:f.top,width:f.width,height:f.height};let b,y;try{b=new e(this.context,m,t.element,this.surfaceBudget),await b.renderStackContent(t),b.effectsRenderer.applyEffects([]),n&&(y=await Zs(b.canvas,n,a.styles.opacity,m.scale,s,{references:a.filterReferences,origin:{x:a.bounds.left-f.left,y:a.bounds.top-f.top}}));const l=y??b.canvas;if(o&&await this.applyMask(l,t.element.container.styles,f,a.bounds,c),s?.aborted)throw new DOMException("The operation was aborted.","AbortError");const d=t.element.effects,h=t.element.getEffects(4,this.surfaceRoot).filter(e=>!(d.includes(e)&&(ys(e)||ms(e)||bs(e)||fs(e)||ps(e))));return this.effectsRenderer.applyEffects(h),i?(this.ctx.save(),this.ctx.globalCompositeOperation=t.element.container.styles.mixBlendMode,this.ctx.drawImage(l,m.x,m.y,l.width/m.scale,l.height/m.scale),this.ctx.restore()):this.ctx.drawImage(l,m.x,m.y,l.width/m.scale,l.height/m.scale),r&&await this.drawReflection(l,t.element.container.bounds,u,r),!0}catch(e){if(!(e instanceof $s))throw e;return this.context.logger.info(`${e.message}; using the existing renderer`),!1}finally{b&&zs(b.canvas),y&&zs(y),this.surfaceBudget.pixels-=p}}async applyMask(e,t,n,o,r){const i=e.getContext("2d");if(!i)return;const s=this.context.resourceDocument.createElement("canvas");s.width=e.width,s.height=e.height;const a=s.getContext("2d");if(!a)return void zs(s);a.scale(this.options.scale,this.options.scale),a.translate(-n.left,-n.top);for(let e=r.length-1;e>=0;e--){const t=y(r,e);a.translate(t.offsetX,t.offsetY),a.transform(...t.matrix),a.translate(-t.offsetX,-t.offsetY)}const l={left:o.left,top:o.top,width:o.width,height:o.height};try{await $a(a,t.maskImage,t,l,async e=>await this.context.cache.match(e))}catch(e){return this.context.logger.error(`Error rendering mask-image: ${e instanceof Error?e.message:e}`),void zs(s)}i.save();try{i.setTransform(1,0,0,1,0,0),i.globalCompositeOperation="destination-in",i.drawImage(s,0,0)}finally{i.restore(),zs(s)}}async drawReflection(e,t,n,o){const r=this.options.scale,i=Math.ceil(t.width*r),s=Math.ceil(t.height*r);if(i<=0||s<=0)return;const a=sa(this.surfaceBudget,i,s);if(!a)return;let l,c;try{l=this.context.resourceDocument.createElement("canvas"),l.width=i,l.height=s;const a=l.getContext("2d");if(!a)return;const d=Math.round((t.left-n.left)*r),h=Math.round((t.top-n.top)*r),u="left"===o.direction||"right"===o.direction;a.save();try{u?(a.translate(i,0),a.scale(-1,1)):(a.translate(0,s),a.scale(1,-1)),a.drawImage(e,-d,-h)}finally{a.restore()}if(o.mask){c=this.context.resourceDocument.createElement("canvas"),c.width=i,c.height=s;const e=c.getContext("2d");if(e){e.scale(r,r),await $a(e,[o.mask],{maskPosition:[],maskRepeat:[],maskSize:[]},{left:0,top:0,width:t.width,height:t.height},async e=>await this.context.cache.match(e)),a.save();try{u?(a.translate(i,0),a.scale(-1,1)):(a.translate(0,s),a.scale(1,-1)),a.globalCompositeOperation="destination-in",a.drawImage(c,0,0,i,s)}finally{a.restore()}}}const p=o.offset;let f=t.left,m=t.top;"below"===o.direction?m=t.top+t.height+p:"above"===o.direction?m=t.top-t.height-p:f="right"===o.direction?t.left+t.width+p:t.left-t.width-p,this.ctx.save();try{this.ctx.filter="none",this.ctx.drawImage(l,f,m,t.width,t.height)}finally{this.ctx.restore()}}finally{l&&zs(l),c&&zs(c),this.surfaceBudget.pixels-=a}}async renderNode(e){e.container.debugRender,e.container.styles.isVisible()&&(await this.renderNodeBackgroundAndBorders(e),await this.renderNodeContent(e))}renderReplacedElement(e,t,n){const o=n.naturalWidth||e.intrinsicWidth,r=n.naturalHeight||e.intrinsicHeight;if(n&&o>0&&r>0){const i=Fs(e),s=is(t);this.path(s),this.ctx.save(),this.ctx.clip();const{sx:a,sy:l,sw:c,sh:d,dx:h,dy:u,dw:p,dh:f}=((e,t,n,o,r)=>{let i=0,s=0,a=e,l=t,c=n.left,d=n.top,h=n.width,u=n.height;const p=h/u,f=a/l,m=r?Ee(r[0],1):.5,g=r?Ee(r[1],1):.5;return 2===o?f>p?(u=h/f,d+=(n.height-u)*g):(h=u*f,c+=(n.width-h)*m):4===o?f>p?(a=l*p,i+=(e-a)*m):(l=a/p,s+=(t-l)*g):8===o?(a>h?(i+=(a-h)*m,a=h):(c+=(h-a)*m,h=a),l>u?(s+=(l-u)*g,l=u):(d+=(u-l)*g,u=l)):16===o&&((f>p?h:u*f)*(f>p?h/f:u)<Math.min(a,h)*Math.min(l,u)?f>p?(u=h/f,d+=(n.height-u)*g):(h=u*f,c+=(n.width-h)*m):(a>h?(i+=(a-h)*m,a=h):(c+=(h-a)*m,h=a),l>u?(s+=(l-u)*g,l=u):(d+=(u-l)*g,u=l))),{sx:i,sy:s,sw:a,sh:l,dx:c,dy:d,dw:h,dh:u}})(o,r,i,e.styles.objectFit,e.styles.objectPosition);this.ctx.drawImage(n,a,l,c,d,h,u,p,f),this.ctx.restore()}}async renderNodeContent(t){this.effectsRenderer.applyEffects(t.getEffects(4,this.surfaceRoot));const n=t.container,o=t.curves,r=n.styles,i=Fs(n);for(const e of n.textNodes)await this.textRenderer.renderTextNode(e,r,i);await async function(e,t,n,o,r,i,s,a){if(r instanceof Fi)try{const n=await t.cache.match(r.src),o=e.imageSmoothingEnabled;2===s.imageRendering||1===s.imageRendering?e.imageSmoothingEnabled=!1:3===s.imageRendering&&(e.imageSmoothingEnabled=!0),a(r,i,n),e.imageSmoothingEnabled=o}catch(e){t.logger.error(`Error loading image ${r.src}`)}if(r instanceof Li&&a(r,i,r.canvas),r instanceof Pi)try{a(r,i,await t.cache.match(r.svg))}catch(e){t.logger.error(`Error loading svg ${r.svg.substring(0,255)}`)}if(r instanceof _i&&r.tree){const i=await o(t,{scale:n.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}).render(r.tree);r.width&&r.height&&e.drawImage(i,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height)}}(this.ctx,this.context,{scale:this.options.scale,backgroundColor:this.options.backgroundColor,x:this.options.x,y:this.options.y,width:this.options.width,height:this.options.height},(t,n)=>new e(t,n,void 0,this.surfaceBudget),n,o,r,(e,t,n)=>this.renderReplacedElement(e,t,n)),function(e,t,n,o,r){if(o instanceof zi){const t=Math.min(o.bounds.width,o.bounds.height);"checkbox"===o.type&&o.checked?(e.save(),n([new Ji(o.bounds.left+.39363*t,o.bounds.top+.79*t),new Ji(o.bounds.left+.16*t,o.bounds.top+.5549*t),new Ji(o.bounds.left+.27347*t,o.bounds.top+.44071*t),new Ji(o.bounds.left+.39694*t,o.bounds.top+.5649*t),new Ji(o.bounds.left+.72983*t,o.bounds.top+.23*t),new Ji(o.bounds.left+.84*t,o.bounds.top+.34085*t),new Ji(o.bounds.left+.39363*t,o.bounds.top+.79*t)]),e.fillStyle=Ie(o.styles.accentColor??7733247),e.fill(),e.restore()):"radio"===o.type&&o.checked&&(e.save(),e.beginPath(),e.arc(o.bounds.left+t/2,o.bounds.top+t/2,t/4,0,2*Math.PI,!0),e.fillStyle=Ie(o.styles.accentColor??7733247),e.fill(),e.restore())}if((e=>e instanceof ji||e instanceof Ui||e instanceof zi&&"radio"!==e.type&&"checkbox"!==e.type)(o)&&o.value.length){const[i]=t.createFontStyle(r);e.font=i??"";const s=Ee(r.fontSize,0),{baseline:a,height:l}=ya(e,s);e.fillStyle=o instanceof zi&&o.isPlaceholder?Ie(1970632191):Ie(r.color),e.textBaseline="alphabetic",e.textAlign=(e=>{switch(e){case 1:return"center";case 2:return"right";default:return"left"}})(o.styles.textAlign);const c=Fs(o),d=o instanceof zi?((e,t,n)=>e.height<n?new g(e.left,t.top,e.width,t.height):e)(c,Rs(o),l):c;let h=0;switch(o.styles.textAlign){case 1:h+=c.width/2;break;case 2:h+=c.width}let u=0;o instanceof zi&&(u=(c.height-l)/2);const p=c.add(h,u,0,0);e.save(),n([new Ji(d.left,d.top),new Ji(d.left+d.width,d.top),new Ji(d.left+d.width,d.top+d.height),new Ji(d.left,d.top+d.height)]),e.clip();const f=((e,t,n,o)=>{const r=[],i=t.split("\n");for(const t of i){if(o){r.push(t);continue}const i=t.split(/(\s+)/);let s="";for(const t of i){const o=s+t;e.measureText(o).width<=n||""===s?s=o:(r.push(s),s=t)}r.push(s)}return r})(e,o.value,c.width,"pre"===r.whiteSpace||"nowrap"===r.whiteSpace),m=Lo(r.lineHeight,s);f.forEach((n,o)=>{let i=p.left;const s=e.measureText(n).width;switch(r.textAlign){case 1:i+=(c.width-s)/2;break;case 2:i+=c.width-s}const l=new g(i,p.top+o*m,0,0);t.renderTextWithLetterSpacing(new ki(n,l),r.letterSpacing,a,r.writingMode)}),e.restore(),e.textBaseline="alphabetic",e.textAlign="left"}}(this.ctx,this.textRenderer,this.path.bind(this),n,r),await async function(e,t,n,o,r,i){if(Vt(r.styles.display,2048))if(null!==r.styles.listStyleImage){const n=r.styles.listStyleImage;if(0===n.type){const o=n.url;try{const n=await t.cache.match(o),s=Ee(i.fontSize,0),a=n?.naturalWidth||n.width,l=n?.naturalHeight||n.height;if(a<=0||l<=0)return;const c=Math.min(s/a,s/l),d=a*c,h=l*c,u=r.bounds.top+Ee(r.styles.paddingTop,r.bounds.width)+Lo(i.lineHeight,i.fontSize.number)/2;e.drawImage(n,r.bounds.left-(d+10),u-h/2,d,h)}catch(e){t.logger.error(`Error loading list-style-image ${o}`)}}}else if(o.listValue&&-1!==r.styles.listStyleType){const t=r.styles.listStyleType;if(0===t||1===t||2===t){const n=.45*i.fontSize.number,o=r.bounds.left-.9*n,s=r.bounds.top+Ee(r.styles.paddingTop,r.bounds.width)+Lo(i.lineHeight,i.fontSize.number)/2;e.save(),e.fillStyle=Ie(i.color),e.beginPath(),2===t?e.rect(o-n/2,s-n/2,n,n):(e.arc(o,s,n/2,0,2*Math.PI),1===t&&(e.strokeStyle=Ie(i.color),e.lineWidth=.18*n)),1===t?e.stroke():e.fill(),e.restore()}else{const[t]=n.createFontStyle(i);e.font=t??"",e.fillStyle=Ie(i.color),e.textBaseline="middle",e.textAlign="right";const s=new g(r.bounds.left,r.bounds.top+Ee(r.styles.paddingTop,r.bounds.width),r.bounds.width,Lo(i.lineHeight,i.fontSize.number)/2+1);n.renderTextWithLetterSpacing(new ki(o.listValue,s),i.letterSpacing,Lo(i.lineHeight,i.fontSize.number)/2+2,i.writingMode),e.textBaseline="bottom",e.textAlign="left"}}}(this.ctx,this.context,this.textRenderer,t,n,r)}async renderStackContent(e){e.element.container.debugRender;const t=this.options.signal;await this.renderNodeBackgroundAndBorders(e.element);for(const n of e.negativeZIndex){if(t?.aborted)throw new DOMException("The operation was aborted.","AbortError");await this.renderStack(n)}if(t?.aborted)throw new DOMException("The operation was aborted.","AbortError");await this.renderNodeContent(e.element);for(const t of e.nonInlineLevel)await this.renderNode(t);for(const n of e.nonPositionedFloats){if(t?.aborted)throw new DOMException("The operation was aborted.","AbortError");await this.renderStack(n)}for(const n of e.nonPositionedInlineLevel){if(t?.aborted)throw new DOMException("The operation was aborted.","AbortError");await this.renderStack(n)}for(const t of e.inlineLevel)await this.renderNode(t);for(const n of e.zeroOrAutoZIndexOrTransformedOrOpacity){if(t?.aborted)throw new DOMException("The operation was aborted.","AbortError");await this.renderStack(n)}for(const n of e.positiveZIndex){if(t?.aborted)throw new DOMException("The operation was aborted.","AbortError");await this.renderStack(n)}}path(e){Ea(this.ctx,e)}formatPath(e){Sa(this.ctx,e)}async renderSurfaceBoxShadow(e,t){const n=t.spread.number,o=t.blur.number/2,r=Math.ceil(3*o)+1,i=e.container.bounds.add(-n,-n,2*n,2*n);if(i.width<=0||i.height<=0)return;const s=this.options.scale,a=da(i.add(-r,-r,2*r,2*r),new g(this.options.x-t.offsetX.number,this.options.y-t.offsetY.number,this.options.width,this.options.height),r,s);if(!a.width||!a.height)return;const l=Math.ceil(a.width*s),c=Math.ceil(a.height*s),d=sa(this.surfaceBudget,l,c);if(!d)throw new $s("Box shadow surface budget exceeded");let h,u;try{h=this.context.resourceDocument.createElement("canvas"),h.width=l,h.height=c;const r=h.getContext("2d");if(!r)throw new $s("Box shadow surface canvas is unavailable");r.scale(s,s),r.translate(-a.left,-a.top),Ea(r,Qi(rs(e.curves),-n,-n,2*n,2*n)),r.fillStyle=Ie(t.color),r.fill(),u=await Zs(h,{functions:[{kind:"blur",value:o}]},1,s,this.options.signal),this.ctx.save();try{this.ctx.beginPath(),this.ctx.rect(this.options.x,this.options.y,this.options.width,this.options.height),Sa(this.ctx,rs(e.curves)),this.ctx.closePath(),this.ctx.clip("evenodd"),this.ctx.drawImage(u,a.left+t.offsetX.number,a.top+t.offsetY.number,u.width/s,u.height/s)}finally{this.ctx.restore()}}finally{h&&zs(h),u&&zs(u),this.surfaceBudget.pixels-=d}}async renderNodeBackgroundAndBorders(e){this.effectsRenderer.applyEffects(e.getEffects(2,this.surfaceRoot)),!this.surfaceRoot&&e.container.styles.backdropFilter&&await this.renderBackdropFilter(e);const t=e.container.styles,n=!Le(t.backgroundColor)||t.backgroundImage.length,o=Ha(t),r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],i=Os(t.backgroundClip,0),s=qa(i,e.curves);if(n||t.boxShadow.length){o&&e.container.textNodes.length>0?await this.textClipRenderer.render(e):(this.ctx.save(),this.path(s),this.ctx.clip(),Le(t.backgroundColor)||(this.ctx.fillStyle=Ie(t.backgroundColor),this.ctx.fill()),await this.backgroundRenderer.renderBackgroundImage(e.container),this.ctx.restore());for(const n of t.boxShadow.slice(0).reverse())!this.surfaceRoot||n.inset?await Ga(this.ctx,e,n,this.options,this.surfaceBudget):await this.renderSurfaceBoxShadow(e,n)}if(t.borderImageSource){const n=t.borderImageSource,o=e.container.bounds,r=[Math.max(0,t.borderTopWidth),Math.max(0,t.borderRightWidth),Math.max(0,t.borderBottomWidth),Math.max(0,t.borderLeftWidth)];let i=null;if(0===n.type){const e=n.url;try{i=await this.context.cache.match(e)??null}catch(t){this.context.logger.error(`Error loading border-image ${e}`)}}else i=this.rasterizeGradientSource(n,o);if(i){const e=((e,t)=>{const n=e?[e.top,e.right,e.bottom,e.left]:null,o=e=>{const o=n?n[e]:null;return o?"number"===o.kind?(t[e]??0)*(o.value??0):o.value??0:0};return{top:o(0),right:o(1),bottom:o(2),left:o(3)}})(t.borderImageOutset,r),n=o.add(-e.left,-e.top,e.left+e.right,e.top+e.bottom),s=((e,t,n)=>{const o=e?[e.top,e.right,e.bottom,e.left]:null;return[0,1,2,3].map(e=>{const r=o?o[e]:null,i=t[e]??0;return r?"auto"===r.kind?i:"number"===r.kind?i*(r.value??1):"length"===r.kind?r.value??0:(r.value??0)/100*(0===e||2===e?n.height:n.width):i})})(t.borderImageWidth,r,n);this.borderImageRenderer.renderBorderImage(o,i,t.borderImageSlice,t.borderImageRepeat,s[0],s[1],s[2],s[3],e)}return}let a=0;for(const t of r){if(0!==t.style&&!Le(t.color)&&t.width>0){const n=async()=>{2===t.style?await this.borderRenderer.renderDashedDottedBorder(t.color,t.width,a,e.curves,2):3===t.style?await this.borderRenderer.renderDashedDottedBorder(t.color,t.width,a,e.curves,3):4===t.style?await this.borderRenderer.renderDoubleBorder(t.color,t.width,a,e.curves):await this.borderRenderer.renderSolidBorder(t.color,a,e.curves)},o=e.container.legendBounds;if(0===a&&o){const t=e.container.bounds,r=o.left-t.left,i=o.left+o.width-t.left;r>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(t.left,t.top,r,t.height),this.ctx.clip(),await n(),this.ctx.restore());const s=t.left+i,a=t.width-i;a>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(s,t.top,a,t.height),this.ctx.clip(),await n(),this.ctx.restore())}else await n()}a++}this.renderOutline(e)}renderOutline(e){const t=e.container.styles;if(0===t.outlineStyle||1===t.outlineStyle)return;const n=Math.max(0,t.outlineWidth);if(n<=0)return;const o=t.outlineColor??t.color;if(Le(o))return;const r=Math.max(0,t.outlineOffset)+n/2,i=Qi(rs(e.curves),-r,-r,2*r,2*r);this.ctx.save();try{this.ctx.strokeStyle=Ie(o),this.ctx.lineWidth=n,3===t.outlineStyle?this.ctx.setLineDash([3*n,3*n]):4===t.outlineStyle&&this.ctx.setLineDash([n,2*n]),this.path(i),this.ctx.stroke()}finally{this.ctx.restore()}}rasterizeGradientSource(e,t){const n=Math.max(1,Math.ceil(t.width)),o=Math.max(1,Math.ceil(t.height)),r=(this.ctx.canvas.ownerDocument??document).createElement("canvas");r.width=n,r.height=o;const i=r.getContext("2d");if(!i)return null;if(1===e.type||3===e.type){const t=e,[s,a,l,c,d]=Cn(t.angle,n,o),h=kn(t.stops,s||n),u=3===e.type,p=u?Ds(h):null,f=i.createLinearGradient(a,l,c,d);if(p)p.forEach(e=>{f.addColorStop(Math.min(1,Math.max(0,e.stop)),e.color)});else if(u){const e=Ie(y(h,h.length-1).color);f.addColorStop(0,e),f.addColorStop(1,e)}else Ts(h).forEach(e=>{f.addColorStop(e.stop,e.color)});return i.fillStyle=f,i.fillRect(0,0,n,o),r}if(2===e.type||4===e.type){const t=e,s=0===t.position.length?[ke]:t.position,a=Ee(y(s,0),n),l=Ee(y(s,s.length-1),o),[c,d]=Mn(t,a,l,n,o);if(c<=0||d<=0)return null;const h=this.ctx.canvas.ownerDocument??document,u=Bs(h,c,d,t.stops,4===e.type);return u?(i.fillStyle=u.lastColor,i.fillRect(0,0,n,o),i.drawImage(u.canvas,a-c,l-d,2*c,2*d),zs(u.canvas),r):null}if(5===e.type||6===e.type){const t=e,s=Ee(y(t.position,0),n),a=Ee(y(t.position,1),o),l=i.createConicGradient(t.angle-Math.PI/2,s,a);let c;if(6===e.type){const e=kn(t.stops,1),n=y(e,0),o=y(e,e.length-1),r=Math.max(o.stop-n.stop,.01);c=[];const i=Math.ceil(1/r);for(let t=0;t<i;t++)for(const o of e){const e=t*r+(o.stop-n.stop);if(e>1)break;c.push({stop:e,color:Ie(o.color)})}const s=y(c,c.length-1);s&&s.stop<1&&c.push({stop:1,color:s.color})}else c=kn(t.stops,Math.max(n,o)).map(e=>({stop:e.stop,color:Ie(e.color)}));return c.forEach(e=>{l.addColorStop(Math.min(1,Math.max(0,e.stop)),e.color)}),i.fillStyle=l,i.fillRect(0,0,n,o),r}return this.context.logger.warn("Unsupported border-image source; only URL and gradient images are supported"),null}async renderBackdropFilter(e){const t=Gs(e.container.styles.backdropFilter);if(!t||0===t.functions.length)return;const n=e.container.bounds;if(n.width<=0||n.height<=0)return;const o=this.options.scale,r=Math.ceil(n.width*o),i=Math.ceil(n.height*o);if(r<=0||i<=0)return;const s=sa(this.surfaceBudget,r,i);if(!s)return;let a,l;try{a=this.context.resourceDocument.createElement("canvas"),a.width=r,a.height=i;const e=a.getContext("2d");if(!e)return;const s=Math.round((n.left-this.options.x)*o),c=Math.round((n.top-this.options.y)*o);e.drawImage(this.canvas,s,c,r,i,0,0,r,i);try{l=await Zs(a,t,1,o,this.options.signal)}catch(e){if(e instanceof $s)return void this.context.logger.info(`${e.message}; rendering without the backdrop effect`);throw e}if(this.options.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");this.ctx.save();try{this.ctx.filter="none",this.ctx.drawImage(l,n.left,n.top,n.width,n.height)}finally{this.ctx.restore()}}finally{a&&zs(a),l&&zs(l),this.surfaceBudget.pixels-=s}}async render(e){try{this.options.backgroundColor&&(this.ctx.fillStyle=Ie(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));const t=(e=>{const t=new ws(e,null),n=new xs(t),o=[];return Ss(t,n,n,o),Es(t.container,o),n})(e);return await this.renderStack(t),this.effectsRenderer.applyEffects([]),this.canvas}catch(e){throw this.options.canvas||zs(this.canvas),e}}};const qa=(e,t)=>{switch(e){case 0:return rs(t);case 2:return(e=>[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox])(t);default:return is(t)}},Ha=e=>e.backgroundClip.some(e=>3===e);var Ya=class{canvas;ctx;options;context;constructor(e,t){this.context=e,this.options=t,this.canvas=t.canvas?t.canvas:e.resourceDocument.createElement("canvas");const n=this.canvas.getContext("2d");if(!n)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=n,this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=`${t.width}px`,this.canvas.style.height=`${t.height}px`,this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x,-t.y),this.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (${t.width}x${t.height} at ${t.x},${t.y}) with scale ${t.scale}`)}async render(e){if(this.options.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");const t=Xa(e),n=(o=((e,t,n,o,r)=>{const i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",(0).toString()),a.setAttributeNS(null,"y",(0).toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(r),s})(this.options.width,this.options.height,0,0,e),new Promise((e,t)=>{const n=new Image;n.onload=()=>e(n),n.onerror=t,n.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent((new XMLSerializer).serializeToString(o))}`}));var o;t();try{const e=await n;if(this.options.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");return this.options.backgroundColor&&(this.ctx.fillStyle=Ie(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),this.ctx.drawImage(e,this.options.x,this.options.y,this.options.width,this.options.height),this.canvas}catch(e){throw this.options.canvas||zs(this.canvas),e}}};const Ka=["marginTop","marginRight","marginBottom","marginLeft","top","right","bottom","left"],Xa=e=>{const t=e.style,n=Ka.map(e=>[e,t[e]]);for(const e of Ka)t[e]=e.startsWith("margin")?"0px":"auto";return()=>{for(const[e,o]of n)t[e]=o}};var Qa=class{id;enabled;start;constructor({id:e,enabled:t}){this.id=e,this.enabled=t,this.start=Date.now()}debug(...e){this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug||this.info(...e))}getTime(){return Date.now()-this.start}info(...e){this.enabled&&"undefined"!=typeof window&&window.console&&console.info}warn(...e){this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn||this.info(...e))}error(...e){this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error||this.info(...e))}},Ja=class{context;_options;_cache=new Map;maxSize;_pendingOperations=new Map;_deferMode=!1;_collectedUrls=new Set;_evictionSuspendCount=0;get _evictionEnabled(){return 0===this._evictionSuspendCount}constructor(e,t){if(this.context=e,this._options=t,this.maxSize=t.maxCacheSize??100,this.maxSize<1)throw new Error("Cache maxSize must be at least 1");this.maxSize>1e4&&this.context.logger.warn(`Cache maxSize ${this.maxSize} is very large and may cause memory issues. Consider using a smaller value (recommended: 100-1000).`)}startDefer(){this._deferMode=!0,this._evictionSuspendCount++}async preloadAll(e=10,t,n){this._deferMode=!1;const o=Array.from(this._collectedUrls);this._collectedUrls.clear();try{if(0===o.length)return;const r=Math.max(1,Math.min(e,100));this.context.logger.debug(`Preloading ${o.length} image(s) with concurrency ${r}`);let i=0;const s=n?new Promise((e,t)=>{const o=()=>t(new DOMException("The operation was aborted.","AbortError"));n.aborted?o():n.addEventListener("abort",o,{once:!0})}):null;s?.catch(()=>{}),t?.(0,o.length);for(let e=0;e<o.length;e+=r){oi(n);const a=o.slice(e,e+r);a.map(e=>this._addImageWithPending(e));const l=Promise.allSettled(a.map(e=>this._cache.get(e)?.value??Promise.resolve()));await(s?Promise.race([l,s]):l),i+=a.length,t?.(i,o.length)}}finally{this._evictionSuspendCount=Math.max(0,this._evictionSuspendCount-1)}}addImage(e){if(this._deferMode)return this.has(e)||!il(e)&&!nl(e)||this._collectedUrls.add(e),Promise.resolve();const t=this._pendingOperations.get(e);if(t)return t;if(this.has(e)){const t=this._cache.get(e);return this._cache.delete(e),this._cache.set(e,t),Promise.resolve()}return il(e)||nl(e)?this._addImageWithPending(e):Promise.resolve()}_addImageWithPending(e){const t=this._pendingOperations.get(e);if(t)return t;const n=this._addImageInternal(e);return this._pendingOperations.set(e,n),n.finally(()=>{this._pendingOperations.delete(e)}),n}async _addImageInternal(e){const t=this._options.imageTimeout??15e3,n=this.withTimeout(this.loadImage(e),t,`Timed out (${t}ms) loading image`);n.catch(t=>{const n=t instanceof Error?t.message:String(t),o=`Failed to load image ${e.substring(0,256)}: ${n}`;this.context.logger.error(o),this.context.onError?.(new Error(o))}),this.set(e,n)}withTimeout(e,t,n){if(t<=0)return e;let o;const r=new Promise((e,r)=>{o=setTimeout(()=>r(new Error(n)),t)});return Promise.race([e,r]).finally(()=>{void 0!==o&&clearTimeout(o)})}match(e){const t=this._cache.get(e);if(t)return this._cache.delete(e),this._cache.set(e,t),t.value}set(e,t){if(this._cache.has(e))this._cache.delete(e);else if(this._evictionEnabled&&this._cache.size>=this.maxSize){const e=this._cache.keys().next().value;void 0!==e&&(this._cache.delete(e),this.context.logger.debug(`Cache: Evicted LRU entry: ${e}`))}this._cache.set(e,{value:t})}size(){return this._cache.size}getMaxSize(){return this.maxSize}clear(){this._cache.clear()}async loadImage(e){const t=this.context.originChecker,n=e=>t.isSameOrigin(e),o="function"==typeof this._options.customIsSameOrigin?await this._options.customIsSameOrigin(e,n):n(e),r=!o&&!1===this._options.allowTaint&&!ol(e)&&!il(e)&&"string"!=typeof this._options.proxy,i=!ol(e)&&(!0===this._options.useCORS||r)&&vi.SUPPORT_CORS_IMAGES&&!o,s=!(ol(e)||o||il(e)||"string"!=typeof this._options.proxy||i);if(!(o||!1!==this._options.allowTaint||ol(e)||il(e)||s||i))return;let a=e;s&&(a=await this.proxy(a)),this.context.logger.debug(`Added image ${e.substring(0,256)}`);const l=this.context.config.window.Image??Image;return await new Promise((e,t)=>{const n=new l;n.onload=()=>e(n),n.onerror=t,(rl(a)||i)&&(n.crossOrigin="anonymous"),n.src=a,!0===n.complete&&("function"==typeof n.decode?n.decode().then(()=>e(n),()=>t(new Error(`Failed to decode image ${a.substring(0,256)}`))):setTimeout(()=>e(n),500))})}has(e){return this._cache.has(e)}keys(){return Promise.resolve(Array.from(this._cache.keys()))}proxy(e){const t=this._options.proxy;if(!t)throw new Error("No proxy defined");const n=e.substring(0,256);return new Promise((o,r)=>{const i=new XMLHttpRequest;i.onload=()=>{if(200===i.status){const e=new FileReader;e.addEventListener("load",()=>o(e.result),!1),e.addEventListener("error",e=>r(e),!1),e.readAsDataURL(i.response)}else r(`Failed to proxy resource ${n} with status code ${i.status}`)},i.onerror=r;const s=t.indexOf("?")>-1?"&":"?";if(i.open("GET",`${t}${s}url=${encodeURIComponent(e)}&responseType=blob`),i.responseType="blob",this._options.imageTimeout){const e=this._options.imageTimeout;i.timeout=e,i.ontimeout=()=>r(`Timed out (${e}ms) proxying ${n}`)}i.send()})}};const Za=/^data:image\/svg\+xml/i,el=/^data:image\/.*;base64,/i,tl=/^data:image\/.*/i,nl=e=>vi.SUPPORT_SVG_DRAWING||!sl(e),ol=e=>tl.test(e),rl=e=>el.test(e),il=e=>"blob"===e.substring(0,4),sl=e=>"svg"===e.slice(-3).toLowerCase()||Za.test(e);var al=class{baseUri;origin;constructor(e){if(!e||!e.document)throw new Error("Valid window object required for OriginChecker");if(!e.location||!e.location.href)throw new Error("Window object must have valid location");this.baseUri=e.location.href,this.origin=this.getOrigin(e.location.href)}getOrigin(e){try{return new URL(e,this.baseUri).origin}catch(e){return""}}isSameOrigin(e){return this.getOrigin(e)===this.origin}getContextOrigin(){return this.origin}},ll=class e{static instanceCount=1;instanceName="#"+e.instanceCount++;logger;cache;originChecker;config;onError;_windowBounds;constructor(e,t,n){this.config=n,this.logger=new Qa({id:this.instanceName,enabled:e.logging}),this.originChecker=new al(n.window),this.cache=e.cache??n.cache??new Ja(this,e),this.onError=e.onError,this._windowBounds=t}get windowBounds(){return this._windowBounds}get resourceDocument(){return this.config.window.document||("undefined"!=typeof document?document:void 0)}adjustWindowBounds(e,t){this._windowBounds=this._windowBounds.add(e,t,0,0)}};const cl=(e,t,n,o)=>{if(e)try{e(n,o)}catch(e){t.logger.error(`onProgress callback failed: ${e instanceof Error?e.message:String(e)}`)}};function dl(e,t){if("Tab"!==t.key)return;const n=e.querySelectorAll('button:not([disabled]), input:not([disabled]):not([type="hidden"]):not([style*="display:none"]), textarea:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');if(0===n.length)return;const o=n[0],r=n[n.length-1];t.shiftKey&&document.activeElement===o?(t.preventDefault(),r.focus()):t.shiftKey||document.activeElement!==r||(t.preventDefault(),o.focus())}const hl={WindowsPhone:/windows phone/i,Android:/android/i,iOS:/iPad|iPhone|iPod/,Windows:/Win/i,MacOS:/Mac/i,Linux:/Linux/i};const ul=/[&<>"']/g,pl={"&":"&","<":"<",">":">",'"':""","'":"'"};function fl(e){return String(null!=e?e:"").replace(ul,e=>pl[e])}const ml=1e4,gl=new Set(["GET","HEAD"]);function bl(){return new DOMException("Aborted","AbortError")}function yl(e,t){return new Promise((n,o)=>{const r=setTimeout(()=>{null==t||t.removeEventListener("abort",i),n()},e);function i(){clearTimeout(r),o(bl())}null==t||t.addEventListener("abort",i,{once:!0})})}async function xl(e,t={}){var n,o,{timeout:r=ml,retries:i=0,signal:s}=t,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["timeout","retries","signal"]);const l=gl.has((null!==(n=a.method)&&void 0!==n?n:"GET").toUpperCase())?i:0;for(let t=0;;t++){if(null==s?void 0:s.aborted)throw bl();const n=new AbortController,i=()=>n.abort(),c=setTimeout(i,r);null==s||s.addEventListener("abort",i,{once:!0});try{const r=await fetch(e,Object.assign(Object.assign({},a),{signal:n.signal}));if(r.status<500||t>=l)return r;null===(o=r.body)||void 0===o||o.cancel()}catch(e){if((null==s?void 0:s.aborted)||t>=l)throw e}finally{clearTimeout(c),null==s||s.removeEventListener("abort",i)}await yl(500*2**t,s)}}function wl(e,t){try{null===t?sessionStorage.removeItem(e):sessionStorage.setItem(e,JSON.stringify(t))}catch(e){}}class vl{constructor(e){this._connectivityError=null,this._integrationStatus="pending",this.config=e}get connectivityError(){return this._connectivityError}get integrationStatus(){return this._integrationStatus}setStatus(e,t){this._integrationStatus=e,void 0!==t&&(this._connectivityError=t)}handleIntegrationStatus(){return"pending"===this._integrationStatus?(this.renderPendingTest(),!0):"ko"===this._integrationStatus&&(this._connectivityError||(this._connectivityError="communication_error"),this.renderError(),!0)}closeModal(){const e=document.getElementById(this.config.modalId);e?(e.classList.add("fj-closing"),e.addEventListener("animationend",()=>{e.remove(),document.body.classList.remove(this.config.bodyOpenClass),this.config.toggleHtmlClass&&document.documentElement.classList.remove(this.config.bodyOpenClass)},{once:!0})):(document.body.classList.remove(this.config.bodyOpenClass),this.config.toggleHtmlClass&&document.documentElement.classList.remove(this.config.bodyOpenClass))}async checkConnectivity(){try{const e=await xl(this.config.connectivityCheckUrl,{method:"POST",signal:this.config.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(this.config.connectivityCheckBody)});if(e.ok)return this._connectivityError=null,!0;const t=await e.json();return this._connectivityError="no_subscription"===t.error?"no_subscription":"communication_error",!1}catch(e){return this.config.signal.aborted||(this._connectivityError="communication_error"),!1}}openModal(e,t){var n;this.closeModal();const o=document.createElement("div");return o.id=this.config.modalId,o.className=e,o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.addEventListener("click",e=>{e.target===o&&this.closeModal()}),o.addEventListener("keydown",e=>{"Escape"===e.key&&this.closeModal(),dl(o,e)}),document.body.classList.add(this.config.bodyOpenClass),this.config.toggleHtmlClass&&document.documentElement.classList.add(this.config.bodyOpenClass),o.innerHTML=t,document.body.appendChild(o),null===(n=o.querySelector("button"))||void 0===n||n.focus(),o}renderError(){this.bindErrorContent(this.openModal("fj-it-modal fj-it-error",this.errorContent()))}renderErrorContent(e){e.innerHTML=this.errorContent(),this.bindErrorContent(e)}bindErrorContent(e){const t=e.querySelector(".fj-it-btn-close");null==t||t.addEventListener("click",()=>this.closeModal()),null==t||t.focus()}errorContent(){const e="no_subscription"===this._connectivityError,t=d(e?"error.no_subscription.title":"error.communication.title"),n=d(e?"error.no_subscription.description":"error.communication.description");return`\n <div class="fj-it-content" data-version="v2.5.0">\n <div class="fj-it-header">\n <div class="fj-it-robot" aria-hidden="true">${o}</div>\n <div class="fj-it-bubble">\n <p class="fj-it-title">${t}</p>\n <div class="fj-it-text">${n}</div>\n </div>\n </div>\n <div class="fj-it-footer">\n <button type="button" class="${this.config.btnPrimaryClasses} fj-it-btn-close">${d("global.close")}</button>\n </div>\n </div>\n `}renderPendingTest(){const e=this.openModal("fj-it-modal fj-it-pending",`\n <div class="fj-it-content" data-version="v2.5.0">\n <div class="fj-it-header">\n <div class="fj-it-robot" aria-hidden="true">${u}</div>\n <div class="fj-it-bubble">\n <p class="fj-it-title">${d(this.config.pendingTitleKey)}</p>\n <div class="fj-it-text">\n ${d(this.config.pendingTextKey)}\n </div>\n </div>\n </div>\n <div class="fj-it-footer">\n <button type="button" class="${this.config.btnOutlineClasses} fj-it-btn-cancel">\n ${d(this.config.cancelLabelKey)}\n </button>\n <button type="button" class="${this.config.btnPrimaryClasses} fj-it-btn-test">\n ${d("integration_test.pending.button")}\n </button>\n </div>\n </div>\n `),t=e.querySelector(".fj-it-btn-cancel"),n=e.querySelector(".fj-it-btn-test"),o=e.querySelector(".fj-it-robot"),r=e.querySelector(".fj-it-title"),i=e.querySelector(".fj-it-text");null==t||t.addEventListener("click",()=>this.closeModal()),null==n||n.addEventListener("click",async()=>{var s;n.disabled=!0,n.classList.add(this.config.btnLoadingClass),n.textContent=d("integration_test.checking.button"),o&&(o.innerHTML=u),r&&(r.textContent=d("integration_test.checking.title")),i&&(i.textContent=d(this.config.checkingTextKey));const a=await this.checkConnectivity();if(!this.config.signal.aborted)if(n.classList.remove(this.config.btnLoadingClass),t&&(t.style.display="none"),a)this._integrationStatus="ok",o&&(o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="102" height="153" fill="none"><ellipse cx="49.54" cy="141" fill="url(#a)" fill-opacity=".6" rx="18.5" ry="4"/><ellipse cx="49.04" cy="150" fill="url(#b)" fill-opacity=".6" rx="13" ry="3"/><path fill="url(#c)" d="M7.23 90.83c1.549.77 3.233 3.719 5.691 4.708 2.46.987 8.138 2.22 7.73 7.033-.409 4.813-3.725 9.471-6.653 10.234s-7.747-.856-10.02-4.244C1.48 104.838-.15 97.453 1.126 94.549s3.157-5.18 6.102-3.717z"/><path fill="url(#d)" d="M50.17 102.076c-13.55.539-22.023-5.532-25.11 2.18-2.6 6.497 7.49 23.669 24.473 23.744 17.528.078 27.417-16.423 24.766-23.956-2.174-6.182-10.046-2.526-24.13-1.968"/><path fill="url(#e)" d="M51.865 99.61c22.542-1.043 40.186-16.253 39.408-33.973S71.591 34.4 49.048 35.442C26.506 36.485 8.862 51.695 9.64 69.414s19.682 31.239 42.225 30.196"/><path fill="url(#f)" d="M80.651 97.223c-1.702.72-3.473 2.594-1.578 5.511s1.894 7.132 2.368 8.753c.474 1.62 4.105 1.62 7.578-1.135 3.474-2.755 7.455-6.846 7.946-12.288.45-4.985-.456-6.827-3.05-7.833-1.621-.628-4.535-.087-6.266 2.08-1.555 1.949-4.313 3.776-6.996 4.912z"/><path fill="url(#g)" d="M49.402 53.828c12.153-.557 22.213 2.962 23.826 3.811 1.234.65 2.695 6.773 2.743 12.569.046 5.796-2.028 11.917-2.857 12.786-1.176 1.234-11.778 4.117-22.535 3.992-12.059-.14-23.69-3.305-24.673-4.661-1.136-1.572-1.99-8.124-1.955-11.61.032-3.185.532-10.637 1.938-12.255 1.149-1.323 11.858-4.097 23.513-4.632"/><path fill="#345C16" d="M50.991 21.585c4.344 0 7.865-3.616 7.865-8.075 0-4.46-3.521-8.075-7.865-8.075s-7.865 3.615-7.865 8.075 3.521 8.075 7.865 8.075"/><path fill="#CCF4A2" d="M54.173 9.108c.98.683.816 2.1.988 4.025.158 1.779-2.456 4.642-4.421 4.608s-3.835-.807-4.885-2.798c-1.008-1.915-.891-3.035-.373-4.375.606-1.563 2.57-3.158 4.911-3.067 2.342.091 2.747.888 3.78 1.607"/><path fill="#529B15" d="M55.093 18.138c.951-.703 2.421-2.695 2-5.184-.485-2.866-1.594-4.714-3.541-4.42-1.983.3-3.582 1.045-3.537 2.995.046 1.95 1.055 3.385-.165 4.641-1.219 1.255.044 3.811 1.476 3.632 2.17-.27 2.845-.984 3.767-1.664"/><path fill="#fff" d="M48.816 12.387c.857-.415 2.502-1.182 2.838-2.068.336-.885.37-2.128-.499-2.797-.87-.668-2.097-.977-3.116-.184s-2.712 2.074-2.07 3.257c.641 1.185.544 2.21 1.628 2.062 1.082-.148 1.22-.27 1.22-.27"/><path fill="#345C16" d="M58.129 4.112a.86.86 0 0 1-.564-.211c-.835-.72-2.38-1.377-2.395-1.384a.91.91 0 0 1-.477-1.176.87.87 0 0 1 1.144-.49c.074.03 1.81.768 2.857 1.67a.92.92 0 0 1 .107 1.27.86.86 0 0 1-.672.321M47.72 2.27a.88.88 0 0 1-.84-.642.906.906 0 0 1 .587-1.122c.063-.02 1.568-.48 2.99-.506h.017a.89.89 0 0 1 .877.885.89.89 0 0 1-.862.917c-1.175.022-2.503.426-2.516.43a1 1 0 0 1-.252.038zm-6.35 4.326a.86.86 0 0 1-.54-.191.92.92 0 0 1-.152-1.265c.041-.054 1.03-1.345 2.2-2.22a.863.863 0 0 1 1.227.196c.285.403.2.966-.192 1.26-.975.729-1.843 1.863-1.852 1.874a.87.87 0 0 1-.691.346m-2.661 7.448h-.015a.89.89 0 0 1-.863-.914c0-.07.03-1.71.448-3.129a.874.874 0 0 1 1.094-.602.906.906 0 0 1 .586 1.124c-.347 1.18-.373 2.619-.373 2.633a.89.89 0 0 1-.877.887zm1.995 7.586a.87.87 0 0 1-.728-.396c-.038-.057-.914-1.394-1.361-2.78a.907.907 0 0 1 .557-1.138c.46-.158.957.1 1.11.572.371 1.15 1.14 2.325 1.147 2.337a.916.916 0 0 1-.235 1.25.86.86 0 0 1-.491.155m6.124 4.943a.8.8 0 0 1-.288-.05c-.062-.023-1.546-.556-2.71-1.392a.917.917 0 0 1-.216-1.255.863.863 0 0 1 1.222-.222c.96.69 2.268 1.162 2.28 1.166a.91.91 0 0 1 .54 1.148.88.88 0 0 1-.828.605m4.803.762a.89.89 0 0 1-.879-.9.89.89 0 0 1 .876-.903c1.2-.003 2.557-.399 2.57-.402a.876.876 0 0 1 1.087.617.904.904 0 0 1-.6 1.115c-.065.02-1.603.469-3.052.473zm7.244-2.783a.87.87 0 0 1-.7-.355.917.917 0 0 1 .168-1.263c.95-.742 1.798-1.897 1.808-1.91a.863.863 0 0 1 1.229-.18.917.917 0 0 1 .176 1.26c-.04.056-1 1.367-2.15 2.264a.86.86 0 0 1-.53.184m4.155-6.526a.9.9 0 0 1-.276-.046.907.907 0 0 1-.558-1.139c.377-1.169.442-2.617.443-2.631a.885.885 0 0 1 .915-.86.893.893 0 0 1 .84.938c-.003.068-.077 1.708-.53 3.119a.88.88 0 0 1-.834.619m.068-8.19a.88.88 0 0 1-.8-.529c-.519-1.174-1.422-2.03-1.43-2.039a.92.92 0 0 1-.057-1.272.86.86 0 0 1 1.238-.061c.048.044 1.174 1.104 1.85 2.626.2.453.005.988-.436 1.193a.85.85 0 0 1-.363.08z"/><path fill="#D9EFFD" d="M55.275 69.694c.687-1.293 3.67-4.573 4.571-5.54 1.042-1.122 3.902-1.663 5.16.101 1.26 1.764 3.673 4.178 4.267 5.91.45 1.307.645 2.955-.992 3.362-2.428.604-3.63-3.065-4.317-3.77s-2.423-.756-3.225-.05c-.802.705-2.012 3.096-2.928 3.565-.916.47-2.977.51-3.224-1.109-.266-1.742.687-2.469.687-2.469zm-23.552 0c.687-1.293 3.67-4.573 4.571-5.54 1.042-1.122 3.902-1.663 5.16.101 1.26 1.764 3.673 4.178 4.267 5.91.45 1.307.645 2.955-.992 3.362-2.428.604-3.63-3.065-4.317-3.77s-2.423-.756-3.225-.05c-.801.705-2.011 3.096-2.928 3.565-.916.47-2.977.51-3.224-1.109-.265-1.742.687-2.469.687-2.469z"/><path fill="url(#h)" d="M20.2 31.648a1.52 1.52 0 0 1-1.39-.925l-5.43-12.48c-.343-.788 0-1.71.768-2.063a1.505 1.505 0 0 1 2.01.79l5.43 12.48c.343.788 0 1.71-.768 2.062a1.5 1.5 0 0 1-.62.136"/><path fill="url(#i)" d="M10.257 38.796c-.425 0-.848-.181-1.15-.537L.374 27.944a1.59 1.59 0 0 1 .15-2.203 1.494 1.494 0 0 1 2.146.154l8.735 10.314a1.59 1.59 0 0 1-.15 2.204 1.5 1.5 0 0 1-.997.383"/><path fill="url(#j)" d="M89.766 38.342c-.442 0-.88-.197-1.182-.578a1.59 1.59 0 0 1 .223-2.197l10.336-8.615a1.497 1.497 0 0 1 2.141.229 1.59 1.59 0 0 1-.223 2.197l-10.336 8.615a1.5 1.5 0 0 1-.959.35"/><path fill="url(#k)" d="M80.467 30.33c-.293 0-.59-.087-.85-.269a1.59 1.59 0 0 1-.41-2.168l7.445-11.332a1.5 1.5 0 0 1 2.112-.421 1.59 1.59 0 0 1 .411 2.168L81.73 29.64a1.51 1.51 0 0 1-1.263.688z"/><path fill="#B4BFC6" d="M6.294 109.977s-3.538-2.935-2.116-5.036c.722-1.065 1.964-1.727 3.93-1.234 1.968.494 3.644 1.918 5.367 1.215s2.637-1.205 4.149-1.225c1.301-.018 1.25 1.192 1.232 2.102-.526 1.317-1.333 3.221-1.722 3.691-.388.471-1.96 2.045-3.822 2.299-2.011.273-3.766.324-7.02-1.813zm37.32-5.982c3.875 1.173 5.017.155 12.607 1.471 5.582.967 8.691-.131 11.406-1.466s3.352-3.189 1.593-3.455c0 0-.927-.165-4.135.05-2.736.185-7.632.722-9.587 1.055-3.215.548-11.196.326-13.8-.052-1.522.827.211 1.881 1.916 2.396zm9.778-7.843c3.788-.158 8.353.102 12.063-2.418 3.945-3.112 11.92-2.2 7.943-.072-6.104 3.31-10.788 4.575-13.984 5.131-1.778.309-5.918.783-9.135.873-.754.022-5.169-.021-8.581-.594-.636-2.218 10.332-2.865 11.695-2.921h-.001zm31.439 10.108c.715-1.104 2.287-1.833 3.372-2.7 1.085-.865 2.15-2.108 2.935-3.076.784-.967 2.372-1.404 3.362-1.014s.723 1.423.469 2.286c-.346 1.171-1.224 2.552-2.383 3.968-1.397 2.01-4.333 4.902-6.347 4.218-1.906-.646-2.121-2.578-1.407-3.682m4.778-48.634c.671 2.02 1.12 3.711 1.413 6.5.345 3.275.21 5.909-.486 8.708-1.097 4.422-3.206 8.177-5.053 10.528 0 0 5.55-3.343 7.768-8.126.679-1.465 1.53-4.267 1.536-6.599.008-4.05-1.457-8.738-5.179-11.011"/><path fill="url(#l)" d="M12.253 56.844c-.85 1.947-1.447 3.59-1.99 6.339-.636 3.228-.736 5.864-.294 8.718.699 4.505 2.46 8.445 4.09 10.96 0 0-5.227-3.851-7.009-8.824-.545-1.523-1.143-4.393-.94-6.716.354-4.036 2.234-8.564 6.142-10.477z"/><path fill="#fff" d="M3.1 94.785c-.162.884.023 3.14.733 4.274s2.542.417 2.643-1.3 1.668-4.159.735-4.996c-.934-.837-3.552-1.032-4.11 2.023m29.606 9.566c-1.394-.018-3.273 1.509-3.191 3.013s-.056 3.21.476 4.501c.534 1.289 1.981 4.508 4.1 5.141 2.117.632 3.412 1.029 4.172.137.761-.893.82-1.933.067-3.022-.755-1.088-2.551-2.211-2.312-4.206.237-1.995-.649-5.529-3.313-5.563zM29.47 43.205c-2.254 1.151-7.332 3.844-6.759 6.724.572 2.878 4.472 1.418 6.379.326s5.543-2.765 7.742-3.402 3.363-2.99 2.014-4.3c-1.348-1.31-6.214-.961-9.378.653h.002m57.532 53.957c-1.526-.954-4.42.537-5.8 2-1.382 1.464-.746 3.44.116 3.794.864.353 2.917.182 3.73-2.42.352-1.126 2.932-2.762 1.953-3.375zM8.033 62.257c.542-1.204 2.036-2.6 2.053-1.602.016.999-.939 3.587-1.186 5.094-.288 1.758-.474 3.361-.448 4.397.02.805-1.05 1.781-1.36.526-.071-.292-.531-2.357-.323-4.288.207-1.93 1.083-3.727 1.263-4.128z"/><path fill="#121442" d="M73.114 82.994c-1.176 1.234-11.778 4.118-22.535 3.993-12.059-.14-23.69-3.305-24.673-4.662-1.136-1.572-1.99-8.123-1.955-11.61.032-3.185.532-10.636 1.938-12.255.347-.4.91-.633 1.763-.945 0 0-2.895 14.571.147 22.79.478 1.966 18.572 3.417 20.168 3.45 3.91.082 10.549-.146 17.18-1.15 2.69-.407 7.13-1.66 9.101-2.097-.527 1.78-1.134 2.485-1.134 2.485z"/><path fill="#2C3D82" d="M49.558 107.325s-7.356 2.988-4.743 12.051c.642 2.227 2.928 5.304 6.308 6.509 0 0-5.105-4.379-3.935-10.011.94-4.528 6.106-3.933 6.11-9.163 0 0-1.757-.172-3.74.614"/><path fill="#2C3D82" d="M53.028 113.962c1.955 0 3.54-1.627 3.54-3.634s-1.585-3.635-3.54-3.635-3.54 1.628-3.54 3.635 1.585 3.634 3.54 3.634m-2.698 4.984c1.268 0 2.296-1.055 2.296-2.357s-1.028-2.358-2.296-2.358-2.296 1.056-2.296 2.358 1.028 2.357 2.296 2.357"/><defs><linearGradient id="a" x1="49.54" x2="49.54" y1="137" y2="145" gradientUnits="userSpaceOnUse"><stop stop-color="#F4FDE8"/><stop offset="1" stop-color="#529B15"/></linearGradient><linearGradient id="b" x1="49.04" x2="49.04" y1="147" y2="153" gradientUnits="userSpaceOnUse"><stop stop-color="#F4FDE8"/><stop offset="1" stop-color="#529B15"/></linearGradient><linearGradient id="c" x1=".23" x2="20.61" y1="100.663" y2="102.966" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="d" x1="25.741" x2="75.203" y1="116.11" y2="110.075" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="e" x1="20.96" x2="88.871" y1="47.498" y2="91.242" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="f" x1="78.895" x2="98.249" y1="107.665" y2="95.077" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="g" x1="50.864" x2="48.863" y1="96.467" y2="42.134" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0E2050"/></linearGradient><linearGradient id="h" x1="13.247" x2="21.721" y1="23.847" y2="23.847" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset=".08" stop-color="#EAECEE"/><stop offset=".4" stop-color="#D5DBDF"/><stop offset=".71" stop-color="#C8D0D6"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="i" x1="1.835" x2="9.976" y1="33.344" y2="30.93" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset=".08" stop-color="#EAECEE"/><stop offset=".4" stop-color="#D5DBDF"/><stop offset=".71" stop-color="#C8D0D6"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="j" x1="93.838" x2="96.14" y1="28.271" y2="36.645" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset=".08" stop-color="#EAECEE"/><stop offset=".4" stop-color="#D5DBDF"/><stop offset=".71" stop-color="#C8D0D6"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="k" x1="81.951" x2="86.603" y1="19.41" y2="26.684" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset=".08" stop-color="#EAECEE"/><stop offset=".4" stop-color="#D5DBDF"/><stop offset=".71" stop-color="#C8D0D6"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="l" x1="6.361" x2="15.006" y1="71.407" y2="69.531" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient></defs></svg>'),r&&(r.textContent=d("integration_test.ok.title")),i&&(i.textContent=d("integration_test.ok.text")),n.textContent=d("integration_test.ok.button"),n.disabled=!1,n.replaceWith(n.cloneNode(!0)),null===(s=e.querySelector(".fj-it-btn-test"))||void 0===s||s.addEventListener("click",()=>{this.closeModal(),this.config.onSuccess()});else{if(this._integrationStatus="ko","no_subscription"===this._connectivityError)return e.className="fj-it-modal fj-it-error",void this.renderErrorContent(e);o&&(o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="110" height="147" fill="none"><path fill="#C65D17" d="M69.808 20.603a7.81 7.81 0 1 0 0-15.619 7.81 7.81 0 0 0 0 15.619"/><path fill="#EE7219" d="M69.106 7.54c1.157-.205 1.997.89 3.417 2.106 1.312 1.124 1.383 4.918-.039 6.256-1.421 1.337-3.273 2.095-5.363 1.441-2.01-.628-2.682-1.487-3.216-2.774-.623-1.504-.302-3.969 1.426-5.527s2.553-1.287 3.774-1.503"/><path fill="#FF9852" d="M75.849 13.16c.203-1.145-.094-3.544-2.073-4.978-2.278-1.65-4.312-2.162-5.5-.611-1.21 1.58-1.846 3.204-.498 4.524s3.033 1.617 3.012 3.332 2.601 2.612 3.5 1.495c1.362-1.689 1.362-2.651 1.559-3.762"/><path fill="#FFDFCA" d="M67.503 13.52c.33-.88.983-2.552.624-3.399-.359-.846-1.171-1.731-2.24-1.593s-2.152.775-2.343 2.03c-.189 1.256-.531 3.316.724 3.692 1.256.377 1.878 1.154 2.549.302.67-.852.686-1.032.686-1.032"/><path fill="#C65D19" d="M76.563 3.752a.9.9 0 0 1-.512-.164c-.93-.67-2.198-1.137-2.21-1.141a.876.876 0 0 1 .6-1.648c.061.023 1.506.553 2.636 1.366a.877.877 0 0 1-.514 1.589zM66.531 2.2A.877.877 0 0 1 66.28.483C66.34.464 67.815.025 69.206 0a.877.877 0 0 1 .03 1.754c-1.15.02-2.44.404-2.452.408a1 1 0 0 1-.254.037zm-6.207 4.119a.876.876 0 0 1-.69-1.417c.041-.051 1.008-1.281 2.155-2.118A.877.877 0 1 1 62.822 4.2c-.944.69-1.797 1.77-1.807 1.782a.87.87 0 0 1-.69.336m-2.603 7.095h-.013a.877.877 0 0 1-.864-.89c0-.065.029-1.63.438-2.984a.876.876 0 1 1 1.679.507c-.34 1.121-.364 2.489-.364 2.503a.877.877 0 0 1-.876.864m1.95 7.223a.87.87 0 0 1-.727-.386c-.037-.054-.896-1.33-1.333-2.653a.877.877 0 0 1 1.665-.552c.36 1.088 1.113 2.21 1.12 2.222a.878.878 0 0 1-.726 1.367zm5.985 4.706a.9.9 0 0 1-.287-.049c-.061-.02-1.513-.53-2.654-1.328a.876.876 0 1 1 1.004-1.437c.938.656 2.213 1.105 2.226 1.11a.877.877 0 0 1-.289 1.704m4.696.725a.877.877 0 0 1-.002-1.754c1.17-.004 2.496-.379 2.509-.382a.876.876 0 0 1 .485 1.685c-.063.018-1.569.446-2.988.45h-.004m7.085-2.648a.876.876 0 0 1-.53-1.575c.925-.704 1.755-1.803 1.763-1.814a.878.878 0 0 1 1.404 1.051c-.04.053-.98 1.302-2.106 2.158a.88.88 0 0 1-.53.179zm4.064-6.214a.877.877 0 0 1-.832-1.153c.367-1.11.43-2.486.432-2.5a.876.876 0 1 1 1.752.075c-.002.065-.074 1.63-.519 2.976a.88.88 0 0 1-.832.601zm.129-8.11a.88.88 0 0 1-.71-.36c-.61-.837-1.567-1.798-1.577-1.807a.877.877 0 0 1 1.24-1.24c.044.043 1.063 1.066 1.755 2.015a.878.878 0 0 1-.707 1.394z"/><path fill="url(#a)" d="M99.026 64.396c1.801-17.578-15.35-33.734-38.309-36.086s-43.03 9.99-44.83 27.568c-1.802 17.577 15.35 33.733 38.308 36.085 22.959 2.353 43.03-9.99 44.831-27.567"/><path fill="url(#b)" d="M53.803 96.185c13.869.058 22.32-6.284 25.74 1.286 2.88 6.377-6.843 23.827-24.2 24.5-17.914.694-28.587-15.385-26.137-22.978 2.011-6.231 10.183-2.869 24.597-2.808"/><path fill="url(#c)" d="M83.645 94.965c1.345-1.848 3.904-1.59 6.506-3.615 2.176-1.691 2.457-4.048 6.65-3.903 2.754.094 5.419 5.556 7.95 6.505 3.47 1.302 6.723 6.671 3.904 9.252s-13.344 2.797-16.192 1.88c-2.847-.916-13.445-3.758-8.818-10.12"/><path fill="url(#d)" d="M12.967 81.728c1.824-1.094 4.736-2.202 7.49.22s7.6 8.481 5.067 11.675-9.473 4.957-13.108 4.957-9.802.11-11.675-2.534c-1.184-1.671-.991-3.634.882-5.507s7.49-6.499 11.344-8.811"/><path fill="url(#e)" d="M60.241 47.556c-11.753-3.09-22.3-1.86-24.05-1.392-1.338.359-4.02 5.874-5.255 11.377s-.463 11.762.167 12.763c.895 1.42 10.657 6.397 21.188 8.543 11.805 2.407 23.813 1.846 25.05.761 1.432-1.254 3.61-7.306 4.291-10.631.622-3.038 1.662-10.23.621-12.065-.85-1.5-10.739-6.395-22.012-9.357z"/><path fill="#121442" d="M77.34 79.61c-1.196 1.128-13.243 1.645-25.05-.761-10.53-2.146-20.292-7.122-21.187-8.543-.632-1.001-1.402-7.261-.168-12.763 1.235-5.502 3.918-11.018 5.257-11.377 0 0 1.184-.316 2.811-.403 0 0-3.678 4.62-4.973 9.983-1.461 6.049-.903 11.235-.884 11.854.019.62.154.835.602 1.184.448.348 9.534 4.456 16.808 6.292 8.616 2.175 22.59 2.933 28.425 1.855 0 0-.834 2.06-1.64 2.68"/><path fill="#D9EFFD" d="M51.307 61.156c.925-4.057-1.34-8.033-5.06-8.88s-7.483 1.753-8.408 5.81c-.925 4.058 1.34 8.034 5.06 8.882s7.483-1.755 8.408-5.812"/><path fill="url(#f)" d="M44.424 62.484a2.86 2.86 0 1 0 0-5.721 2.86 2.86 0 0 0 0 5.721"/><path fill="#D9EFFD" d="M75.309 66.647c.925-4.058-1.34-8.034-5.06-8.882s-7.483 1.755-8.408 5.812 1.34 8.033 5.06 8.88 7.483-1.753 8.408-5.81"/><path fill="url(#g)" d="M68.567 68.174a2.86 2.86 0 1 0 0-5.722 2.86 2.86 0 0 0 0 5.722"/><path fill="url(#h)" d="M101.031 62.802c-.213-1.452-1.159-4.143-2.781-2.65-1.624 1.494-6.84 13.906-7.753 17.294-.497 1.841-1.416 4.543.071 4.094 4.54-1.37 7.34-4.363 9.316-8.87 1.797-4.1 1.361-8.417 1.148-9.869z"/><path fill="url(#i)" d="M21.297 42.644c-1.24 1.664-2.171 3.095-3.282 5.588-1.305 2.928-1.96 5.409-2.132 8.215-.273 4.43.614 8.554 1.67 11.296 0 0-4.283-4.793-4.967-9.902-.21-1.564-.185-4.42.505-6.582 1.198-3.755 3.989-7.648 8.206-8.615"/><path fill="#B4BFC6" d="M91.02 75.824c1.064-3.466.54-4.177-3.846.499-1.219 1.299-3.418 3.865-5.649 5.797-1.037.9-2.638 2.151-6.837 4.014-3.962 1.757-5.406 2.172-9.067 2.824s-8.002 2.309-6.304 3.292c3.8.268 10.365-.541 16.985-2.682 6.546-2.116 11.027-5.804 13.779-8.041-.715-.495.495-4.251.94-5.702zm-6.812 21.478c.016-1.18 2.092-1.324 3.34-1.18 1.25.144 3.925 1.621 5.35 2.602 1.942 1.338 5.066 1.269 6.071 2.169 2.747 2.457-1.427 3.828-3.614 3.47-3.384-.557-11.214-2.126-11.148-7.061m-39.137-.381c.446.206 3.413 1.445 6.53 1.827 3.12.381 8.59.764 11.34.441s6.83-.49 9.155-1.578c2.074-.97 3.508-2.864 2.909-3.454-.675-.662-4.481-.194-5.689.03-5.932 1.099-8.743 1.582-11.64 1.792-4.642.334-11.655-.154-12.56-.18-.518-.09-.833.76-.048 1.122zM8.562 95.276c-.793.68.66 2.314 2.534 2.202 1.873-.11 7.843-.718 9.913-1.982s3.23-2.828 3.084-4.075c-.17-1.471-.991-1.433-2.202-1.102s-11.015 2.974-13.327 4.957z"/><path fill="#fff" d="M37.274 33.182c2.449-.797 8.034-2.519 9.624-.061 1.59 2.457-2.275 4.212-4.43 4.801s-5.975 2.004-8.026 3.126c-2.05 1.122-4.542.282-4.47-1.614.071-1.898 3.866-5.135 7.302-6.251zM15.75 47.052c.754-1.049 2.477-2.1 2.309-1.144-.168.958-1.58 3.25-2.099 4.644-.605 1.625-1.081 3.121-1.247 4.116-.128.773-1.359 1.504-1.431.247-.016-.294-.088-2.352.47-4.157.559-1.805 1.745-3.358 1.997-3.707h.002m89.254 49.319s1.926 1.114 2.432 1.925.81 2.229.101 3.039c-.708.81-1.925.912-2.533.102s-1.317-2.533-1.824-3.343c-.506-.81-.101-2.432 1.824-1.722zm-67.074 4.475c-.777-1.281-2.414-2.424-3.583-2.222-1.118.194-2.605 1.137-2.816 2.669 0 0 .39 3.457 1.79 5.417 1.401 1.961 3.783 3.782 5.043 2.101s.477-6.464-.434-7.966zM4.294 89.403c-.784.524-3.343 2.912-3.077 4.29.208 1.077 1.74 1.225 2.718.735.979-.49 4.206-2.35 3.445-4.307-.318-.817-1.212-1.971-3.086-.718"/><path fill="#2C3D82" d="M54.398 101.707s-7.536 2.383-5.55 11.364c.488 2.207 2.555 5.354 5.842 6.762 0 0-4.788-4.61-3.238-9.994 1.246-4.329 6.354-3.388 6.716-8.466 0 0-1.74-.291-3.77.334"/><path fill="#2C3D82" d="M57.654 108.406a3.537 3.537 0 1 0-.001-7.074 3.537 3.537 0 0 0 .001 7.074m-3.118 4.644a2.294 2.294 0 1 0 0-4.587 2.294 2.294 0 0 0 0 4.587"/><ellipse cx="53.5" cy="135" fill="url(#j)" fill-opacity=".6" rx="18.5" ry="4"/><ellipse cx="53" cy="144" fill="url(#k)" fill-opacity=".6" rx="13" ry="3"/><defs><linearGradient id="a" x1="30.034" x2="94.505" y1="38.434" y2="89.456" gradientUnits="userSpaceOnUse"><stop offset=".07" stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="b" x1="29.078" x2="76.812" y1="97.942" y2="112.096" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="c" x1="108.681" x2="82.691" y1="94.595" y2="99.393" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="d" x1="6.339" x2="22.961" y1="84.75" y2="101.355" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="e" x1="50.069" x2="63.068" y1="87.803" y2="36.521" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0E2050"/></linearGradient><linearGradient id="f" x1="43.08" x2="47.06" y1="58.236" y2="62.347" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0E2050"/></linearGradient><linearGradient id="g" x1="67.931" x2="71.463" y1="64.503" y2="69.005" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0E2050"/></linearGradient><linearGradient id="h" x1="102.229" x2="88.078" y1="69.265" y2="71.878" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="i" x1="12.47" x2="21.297" y1="55.193" y2="55.193" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="j" x1="53.5" x2="53.5" y1="131" y2="139" gradientUnits="userSpaceOnUse"><stop stop-color="#FFF1E7" stop-opacity=".5"/><stop offset="1" stop-color="#C65D17" stop-opacity=".5"/></linearGradient><linearGradient id="k" x1="53" x2="53" y1="141" y2="147" gradientUnits="userSpaceOnUse"><stop stop-color="#FFF1E7" stop-opacity=".5"/><stop offset="1" stop-color="#C65D17" stop-opacity=".5"/></linearGradient></defs></svg>'),r&&(r.textContent=d("integration_test.ko.title")),i&&(i.textContent=d("integration_test.ko.text")),n.textContent=d("integration_test.ko.button"),n.disabled=!1}})}}const kl="fjHp";function Cl(){return`<div class="fj-hp" aria-hidden="true"><input type="text" name="${kl}" tabindex="-1" autocomplete="off"></div>`}function Sl(e){var t,n;return null!==(n=null===(t=e.querySelector(`input[name="${kl}"]`))||void 0===t?void 0:t.value)&&void 0!==n?n:""}class El{constructor(){this.feedbackType="enhancement",this.feedbackTitle="",this.feedbackDescription="",this.consentFeedbackAgree=!1,this.consentScreenFeedback=!1,this.consentAttachmentFile=null,this.hasConsentFeedback=!1,this.hasConsentScreenFeedback=!1,this.hasConsentAttachment=!1,this.startedAt=null,this.honeypot=""}async toFormData(e){var t;const n="function"==typeof e.user?e.user():e.user,o=function(){const e=navigator.userAgent,t=[{name:"Firefox",regex:/Firefox\/(\d+(?:\.\d+)*)/},{name:"Chrome",regex:/Chrome\/(\d+(?:\.\d+)*)/,exclude:/Edg/},{name:"Safari",regex:/Version\/(\d+(?:\.\d+)*)/,exclude:/Chrome/},{name:"Edge",regex:/Edg\/(\d+(?:\.\d+)*)/},{name:"Opera",regex:/(Opera|OPR)\/(\d+(?:\.\d+)*)/}];for(const{name:n,regex:o,exclude:r}of t)if(e.includes(n)&&(!r||!r.test(e))){const t=e.match(o);return{name:n,version:t?t[1]:"Unknown"}}return{name:"Unknown",version:"Unknown"}}(),r=function(){var e;const t=window.screen.width,n=window.screen.height,o=window.devicePixelRatio||1;return{resolution:`${t}x${n}`,zoom:`${null!==(e=Math.round(100*o))&&void 0!==e?e:100}%`}}(),i=new FormData;i.append("uuidProject",e.projectId),i.append("feedbackType",this.feedbackType),i.append("feedbackTitle",this.feedbackTitle),i.append("feedbackDescription",this.feedbackDescription);const s=this.consentFeedbackAgree;if(i.append("userId",s&&(null==n?void 0:n.id)||"Unknown"),i.append("userName",s&&(null==n?void 0:n.fullName)||"Unknown User"),i.append("operatingSystem",s?function(){const e=navigator.userAgent;for(const[t,n]of Object.entries(hl))if(n.test(e))return t;return"Unknown"}():"Unknown"),i.append("browserName",s?o.name:"Unknown"),i.append("browserVersion",s?o.version:"Unknown"),i.append("resolution",s?r.resolution:"Unknown"),i.append("zoom",s?r.zoom:"Unknown"),i.append("localLanguage",s&&navigator.language||"Unknown"),i.append("url",s?window.location.href.slice(0,2048):"Unknown"),i.append("userProfile",s&&(null==n?void 0:n.profile)||"Unknown"),i.append("ip","Unknown"),i.append("widgetVersion","2.5.0"),i.append("widgetLocale",c()),i.append("fjHp",this.honeypot),i.append("fillDurationMs",String(Date.now()-(null!==(t=this.startedAt)&&void 0!==t?t:Date.now()))),this.consentFeedbackAgree&&i.append("consentFeedback","true"),this.consentScreenFeedback){i.append("consentScreenFeedback","true");const e=await async function(){try{const e=await((e,t={})=>(async(e,t,n)=>{if((e=>{["scale","width","height","imageTimeout","x","y","windowWidth","windowHeight","scrollX","scrollY"].forEach(t=>{const n=e[t];if(null!=n&&"number"!=typeof n){const o=Number(n);Number.isNaN(o)||(e[t]=o)}})})(t),!t.skipValidation){const n=t.validator||function(e={}){return new f({allowDataUrls:!0,maxImageTimeout:3e5,...e})}(),o=n.validateElement(e);if(!o.valid)throw new Error(o.error);const r=n.validateOptions(t);if(!r.valid)throw new Error(`Invalid options: ${r.error}`)}if(!e||"object"!=typeof e)throw new Error("Invalid element provided as first argument");const o=e.ownerDocument;if(!o)throw new Error("Element is not attached to a Document");const r=o.defaultView;if(!r)throw new Error("Document is not attached to a Window");const i=(e=>({allowTaint:e.allowTaint??!1,imageTimeout:e.imageTimeout??15e3,proxy:e.proxy,useCORS:e.useCORS??!1,customIsSameOrigin:e.customIsSameOrigin,maxCacheSize:e.maxCacheSize}))(t),s=((e,t,n)=>({logging:e.logging??!0,cache:e.cache??t.cache,...n}))(t,n,i),a=((e,t)=>{const n=t;return{windowWidth:e.windowWidth??n.innerWidth??800,windowHeight:e.windowHeight??n.innerHeight??600,scrollX:e.scrollX??n.pageXOffset??0,scrollY:e.scrollY??n.pageYOffset??0}})(t,r),l=new g(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),c=new ll(s,l,n),d=t.enablePerformanceMonitoring??t.logging??!1,h=new m(c.logger,d);h.start("total",{width:a.windowWidth,height:a.windowHeight});const u=t.signal;oi(u);const p=t.foreignObjectRendering??!1,y=((e,t,n)=>({allowTaint:e.allowTaint??!1,onclone:e.onclone,ignoreElements:e.ignoreElements,iframeContainer:e.iframeContainer,inlineImages:n,copyStyles:n,cspNonce:e.cspNonce??t.cspNonce,signal:e.signal}))(t,n,p);c.logger.debug(`Starting document clone with size ${l.width}x${l.height} scrolled to ${-l.left},${-l.top}`),cl(t.onProgress,c,"clone",10),h.start("clone");const x=new hi(c,e,y),w=x.clonedReferenceElement;if(!w)throw new Error("Unable to find element in cloned iframe");let v,k,C;try{v=await x.toIFrame(o,l),h.end("clone"),cl(t.onProgress,c,"clone",30),oi(u);const{width:e,height:n,left:i,top:s}=It(w)||"HTML"===w.tagName?(e=>{const t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");return new g(0,0,Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight)))})(w.ownerDocument):b(c,w),a=((e,t,n)=>{const o=t.ownerDocument,r=o.documentElement?Mt(e,getComputedStyle(o.documentElement).backgroundColor):0,i=o.body?Mt(e,getComputedStyle(o.body).backgroundColor):0,s="string"==typeof n?Mt(e,n):null===n?0:4294967295;return t===o.documentElement?Le(r)?Le(i)?s:i:r:s})(c,w,t.backgroundColor),d=((e,t,n,o,r,i,s)=>({canvas:e.canvas,backgroundColor:t,signal:e.signal,scale:e.scale??s??1,x:(e.x??0)+n,y:(e.y??0)+o,width:e.width??Math.ceil(r),height:e.height??Math.ceil(i),imageSmoothing:e.imageSmoothing,imageSmoothingQuality:e.imageSmoothingQuality}))(t,a,i,s,e,n,r.devicePixelRatio??1);p?(c.logger.debug("Document cloned, using foreign object rendering"),h.start("render-foreignobject"),k=await new Ya(c,d).render(w),h.end("render-foreignobject")):(c.logger.debug(`Document cloned, element located at ${i},${s} with size ${e}x${n} using computed rendering`),c.logger.debug("Starting DOM parsing"),h.start("parse"),oi(u),c.cache.startDefer(),C=Hi(c,w,{normalizeDom:t.normalizeDom}),h.end("parse"),cl(t.onProgress,c,"parse",50),h.start("preload"),await c.cache.preloadAll(10,(e,n)=>{cl(t.onProgress,c,"preload",50+Math.round(e/n*10))},u),h.end("preload"),cl(t.onProgress,c,"layout",60),a===C.styles.backgroundColor&&(C.styles.backgroundColor=0),c.logger.debug(`Starting renderer for element at ${d.x},${d.y} with size ${d.width}x${d.height}`),h.start("render"),oi(u),k=await new Va(c,d).render(C),h.end("render")),cl(t.onProgress,c,"render",90)}finally{h.start("cleanup");try{C&&C.restoreTree()}finally{v&&(t.removeContainer??1)&&hi.destroy(v),h.end("cleanup")}}return h.end("total"),c.logger.debug("Finished rendering"),d&&h.logSummary(),cl(t.onProgress,c,"render",100),k})(e,t,p.fromElement(e,{cspNonce:t.cspNonce,cache:t.cache})))(document.body,{scrollX:0,scrollY:0,windowWidth:document.documentElement.scrollWidth,windowHeight:document.documentElement.scrollHeight,ignoreElements:e=>!("object"!=typeof e||"string"!=typeof e.className||!e.className.includes("fj-feedback-modal"))});return await new Promise(t=>e.toBlob(t,"image/jpeg",.8))}catch(e){return null}}();e&&i.append("screenShot",e)}return this.hasConsentAttachment&&this.consentAttachmentFile&&(i.append("consentAttachmentFeedback","true"),i.append("attachment",this.consentAttachmentFile)),i}isValid(e){return!!this.feedbackTitle&&!!this.feedbackDescription&&(!e||this.consentFeedbackAgree)}}class Ml{constructor(e){var t,n;this.submitError=!1,this.submitErrorKey="global.submit_error",this.hasConsentFeedback=!1,this.hasConsentScreenFeedback=!1,this.hasConsentAttachment=!1,this.feedbackButton=null,this.createdButtonWrapper=null,this.onFeedbackButtonClick=()=>this.startFeedback("enhancement"),this.submitHandler=null,this.state=null,this.abortController=new AbortController,this.destroyed=!1,this.previouslyFocusedElement=null,this.decisions=[],this.decisionsLoading=!1,l(null!==(t=e.locale)&&void 0!==t?t:r.FR);const o=null!==(n=e.apiUrl)&&void 0!==n?n:e.baseApiUrl;if(!o)throw new Error("Feedback: `apiUrl` option is required");this.options=Object.assign(Object.assign({},e),{apiUrl:o}),this.form=new El,this.integrationTest=new vl({modalId:"fj-feedback-modal",bodyOpenClass:"fj-modal-open",toggleHtmlClass:!0,btnPrimaryClasses:"fj-feedback-btn fj-feedback-btn-primary",btnOutlineClasses:"fj-feedback-btn fj-feedback-btn-outline",btnLoadingClass:"fj-feedback-btn-loading",pendingTitleKey:"integration_test.pending.feedback.title",pendingTextKey:"integration_test.pending.feedback.text",checkingTextKey:"integration_test.checking.feedback_text",cancelLabelKey:"global.cancel",connectivityCheckUrl:`${o}/api/connectivity_check/feedback`,connectivityCheckBody:{uuidProject:e.projectId},signal:this.abortController.signal,onSuccess:()=>this.startFeedback(this.form.feedbackType)}),this.init(e.target)}destroy(){var e,t,n;this.destroyed||(this.destroyed=!0,this.abortController.abort(),null===(e=this.feedbackButton)||void 0===e||e.removeEventListener("click",this.onFeedbackButtonClick),null===(t=this.createdButtonWrapper)||void 0===t||t.remove(),null===(n=document.getElementById("fj-feedback-modal"))||void 0===n||n.remove(),document.body.classList.remove("fj-modal-open"),document.documentElement.classList.remove("fj-modal-open"),document.documentElement.style.removeProperty("--fj-feedback-primary-color"),document.documentElement.style.removeProperty("--fj-feedback-secondary-color"),this.previouslyFocusedElement=null)}get draftKey(){var e;const t="function"==typeof this.options.user?this.options.user():this.options.user;return`fj-feedback-draft:${this.options.projectId}:${null!==(e=null==t?void 0:t.id)&&void 0!==e?e:""}`}restoreDraft(){var e,t,n,o,r;const i=function(e){try{const t=sessionStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}}(this.draftKey);i&&((n=this.form).feedbackTitle||(n.feedbackTitle=i.title),(o=this.form).feedbackDescription||(o.feedbackDescription=i.description),null!==(e=(r=this.form).startedAt)&&void 0!==e||(r.startedAt=null!==(t=i.startedAt)&&void 0!==t?t:null))}saveDraft(){const{feedbackTitle:e,feedbackDescription:t,startedAt:n}=this.form;wl(this.draftKey,e||t?{title:e,description:t,startedAt:null!=n?n:void 0}:null)}init(e){var t,n;e&&(this.feedbackButton=null!==(t=e instanceof HTMLElement?this.createFeedbackButton(e):e.feedback)&&void 0!==t?t:null,null===(n=this.feedbackButton)||void 0===n||n.addEventListener("click",this.onFeedbackButtonClick))}createFeedbackButton(e){return e.innerHTML=`\n <div class="fj-feedback-feedback-buttons">\n <button id="fj-feedback-button" class="fj-feedback-btn" aria-label="${d("a11y.feedback_button")}"><span aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M11.75 19h-.25q-3.55 0-6.025-2.475T3 10.5t2.475-6.025T11.5 2q1.775 0 3.313.662t2.7 1.825 1.824 2.7T20 10.5q0 3.35-1.888 6.225t-4.762 4.5q-.25.125-.5.138t-.45-.113-.35-.325-.175-.475zm2.25-.65q1.775-1.5 2.888-3.512T18 10.5q0-2.725-1.888-4.612T11.5 4 6.888 5.888 5 10.5t1.888 4.613T11.5 17H14zm-2.525-2.375q.425 0 .725-.3t.3-.725-.3-.725-.725-.3-.725.3-.3.725.3.725.725.3M9.3 8.375q.275.125.55.013t.45-.363q.225-.3.525-.463T11.5 7.4q.6 0 .975.337t.375.863q0 .325-.187.65t-.663.8q-.625.55-.925 1.038t-.3.987q0 .3.213.513t.512.212.5-.225.3-.525q.125-.425.45-.775t.6-.625q.525-.525.788-1.05t.262-1.05q0-1.15-.788-1.85T11.5 6q-.8 0-1.475.388t-1.1 1.062q-.15.275-.038.538t.413.387m2.2 2.8"/></svg></span></button>\n </div>\n `,this.createdButtonWrapper=e.querySelector(".fj-feedback-feedback-buttons"),e.querySelector("#fj-feedback-button")}async startFeedback(e){var t,n;this.form.feedbackType=e,this.submitError=!1,await this.loadConsents(),this.destroyed||this.integrationTest.handleIntegrationStatus()||(this.restoreDraft(),null!==(t=(n=this.form).startedAt)&&void 0!==t||(n.startedAt=Date.now()),this.form.hasConsentFeedback=this.hasConsentFeedback,this.form.hasConsentScreenFeedback=this.hasConsentScreenFeedback,this.form.hasConsentAttachment=this.hasConsentAttachment,"decision"===e&&await this.fetchDecisions(),this.render("form"))}async loadConsents(){try{const e=await xl(`${this.options.apiUrl}/api/projects/${this.options.projectId}/consents`,{retries:2,signal:this.abortController.signal});if(!e.ok)throw new Error("Failed to fetch consents");const t=await e.json();this.hasConsentFeedback=t.consentFeedback,this.hasConsentScreenFeedback=t.consentScreenFeedback,this.hasConsentAttachment=t.consentAttachmentsFeedback,this.integrationTest.setStatus(t.feedbackIntegrationTest||"pending","no_subscription"===t.error?"no_subscription":null)}catch(e){if(this.destroyed)return;this.hasConsentFeedback=!1,this.hasConsentScreenFeedback=!1,this.hasConsentAttachment=!1,this.integrationTest.setStatus("ko","communication_error")}}async fetchDecisions(){this.decisionsLoading=!0;try{const e="function"==typeof this.options.user?this.options.user():this.options.user,t=await xl(`${this.options.apiUrl}/api/projects/${this.options.projectId}/decisions?userId=${encodeURIComponent((null==e?void 0:e.id)||"")}`,{retries:2,signal:this.abortController.signal});if(!t.ok)throw new Error("Failed to fetch decisions");const n=await t.json();this.decisions=n}catch(e){if(this.destroyed)return;this.decisions=[]}finally{this.decisionsLoading=!1}}showThanks(e="enhancement"){this.form.feedbackType=e,this.render("thanks")}render(e){var t,n,o;if(this.destroyed)return;this.state=e;const r=null!==(t=document.getElementById("fj-feedback-modal"))&&void 0!==t?t:document.createElement("div");if(null===e)return this.form=new El,this.submitError=!1,r.classList.add("fj-closing"),void r.addEventListener("animationend",()=>{r.remove(),document.body.classList.remove("fj-modal-open"),document.documentElement.classList.remove("fj-modal-open"),this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)},{once:!0});this.previouslyFocusedElement||(this.previouslyFocusedElement=document.activeElement),document.body.classList.add("fj-modal-open"),document.documentElement.classList.add("fj-modal-open");const i=!r.parentElement;if(r.id="fj-feedback-modal",r.className=`fj fj-feedback-modal fj-feedback-${this.form.feedbackType}${i?"":" fj-no-overlay-anim"}`,r.setAttribute("role","dialog"),r.setAttribute("aria-modal","true"),i&&(r.addEventListener("click",e=>{e.target===r&&"thanks"===this.state&&this.render(null)}),r.addEventListener("keydown",e=>{"Escape"===e.key&&this.render(null),dl(r,e)}),document.body.appendChild(r)),"form"===e){document.documentElement.style.setProperty("--fj-feedback-primary-color","#4F5BD5"),document.documentElement.style.setProperty("--fj-feedback-secondary-color","#EEF0FB"),this.renderForm(r);const e=r.querySelector('input:not([type="radio"]):not([type="hidden"]):not([style*="display:none"]), textarea');e?e.focus():null===(n=r.querySelector("button"))||void 0===n||n.focus()}else"thanks"===e&&(this.renderThanks(r),null===(o=r.querySelector(".fj-feedback-btn-close"))||void 0===o||o.focus())}renderForm(e){if(!e.querySelector(".fj-tabs")){e.innerHTML=`\n <form class="fj-feedback-form" data-version="v2.5.0">\n <div class="fj-container">\n <div class="fj-tabs">\n ${this.renderTabs()}\n </div>\n </div>\n <div class="fj-feedback-content"></div>\n <div class="fj-feedback-error-container"></div>\n <div class="fj-feedback-footer-buttons"></div>\n </form>\n `;const t=e.querySelectorAll('input[name="feedbackType"]');for(const n of t)n.addEventListener("change",async()=>{n.checked&&(this.form.feedbackType=n.value,"decision"===this.form.feedbackType&&await this.fetchDecisions(),this.updateFormContent(e))})}this.updateFormContent(e)}updateFormContent(e){var t;const n="decision"===this.form.feedbackType;e.className=`fj fj-feedback-modal fj-feedback-${this.form.feedbackType}`;const o=e.querySelector(".fj-feedback-form"),r=e.querySelector(".fj-feedback-content"),i=e.querySelector(".fj-feedback-error-container"),s=e.querySelector(".fj-feedback-footer-buttons");n?(o.className="fj-feedback-form fj-feedback-decision-view",r.innerHTML=this.renderDecisionList(),i.innerHTML="",s.innerHTML=`\n <button type="button" class="fj-feedback-btn fj-feedback-btn-outline fj-feedback-btn-cancel">${d("global.close")}</button>\n `):(o.className="fj-feedback-form",r.innerHTML=this.renderFields(),i.innerHTML=this.submitError?`<p class="fj-feedback-error" role="alert">${d(this.submitErrorKey)}</p>`:"",s.innerHTML=`\n <button type="button" class="fj-feedback-btn fj-feedback-btn-outline fj-feedback-btn-cancel">${d("global.cancel")}</button>\n <button type="submit" class="fj-feedback-btn fj-feedback-btn-primary fj-feedback-btn-submit">${d("global.send")}</button>\n `),null===(t=s.querySelector(".fj-feedback-btn-cancel"))||void 0===t||t.addEventListener("click",()=>this.render(null)),n||this.attachFormEvents(e.querySelector("form.fj-feedback-form"))}renderThanks(e){var t;e.innerHTML=`\n\n <div class="fj-feedback-thanks" data-version="v2.5.0">\n <div class="fj-feedback-speech-bubble">\n <p class="fj-feedback-title">${d(`${this.form.feedbackType}.thanks.title`)}</p>\n <div class="fj-feedback-text">${d(`${this.form.feedbackType}.thanks.description`)}</div>\n <div class="fj-feedback-robot" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="147" height="158" fill="none"><path fill="url(#a)" d="M32.22 97.269c1.526.737 3.184 3.567 5.605 4.515 2.423.947 8.014 2.13 7.612 6.746s-3.668 9.085-6.551 9.816-7.63-.821-9.868-4.071c-2.46-3.57-4.064-10.654-2.808-13.439s3.11-4.968 6.01-3.566z"/><path fill="url(#b)" d="M74.507 108.056c-13.343.516-21.688-5.307-24.728 2.09-2.56 6.233 7.376 22.703 24.1 22.775 17.261.075 27-15.752 24.39-22.977-2.141-5.931-9.893-2.424-23.763-1.888"/><path fill="url(#c)" d="M76.176 105.689c22.2-1 39.575-15.589 38.809-32.584S95.602 43.142 73.403 44.142 33.828 59.73 34.594 76.727s19.383 29.963 41.582 28.962"/><path fill="url(#d)" d="M104.524 103.4c-1.676.69-3.42 2.488-1.554 5.286s1.865 6.841 2.332 8.395c.467 1.555 4.043 1.555 7.463-1.088s7.341-6.566 7.825-11.786c.443-4.782-.449-6.548-3.003-7.513-1.597-.603-4.467-.084-6.171 1.995-1.532 1.869-4.248 3.622-6.891 4.711z"/><path fill="url(#e)" d="M73.75 61.779c11.969-.535 21.876 2.84 23.464 3.655 1.216.624 2.654 6.496 2.701 12.056.046 5.559-1.997 11.43-2.813 12.264-1.158 1.183-11.599 3.949-22.192 3.829-11.875-.134-23.33-3.17-24.297-4.471-1.12-1.508-1.96-7.792-1.926-11.136.031-3.055.524-10.202 1.909-11.755 1.131-1.269 11.677-3.93 23.155-4.442"/><path fill="#2C3D82" d="M75.316 30.851a7.745 7.745 0 1 0 0-15.49 7.745 7.745 0 0 0 0 15.49"/><path fill="#5B76C4" d="M78.449 18.884c.965.655.803 2.014.973 3.86.155 1.707-2.42 4.453-4.354 4.42-1.936-.032-3.777-.774-4.81-2.684-.994-1.837-.879-2.91-.368-4.195.597-1.5 2.53-3.03 4.837-2.942s2.704.851 3.722 1.541"/><path fill="#3D55A3" d="M79.355 27.545c.936-.674 2.384-2.585 1.97-4.972-.478-2.749-1.57-4.521-3.488-4.239-1.952.287-3.528 1.002-3.483 2.872s1.039 3.247-.162 4.452c-1.201 1.204.043 3.655 1.453 3.483 2.137-.259 2.802-.943 3.71-1.596"/><path fill="#C0D2FF" d="M73.173 22.029c.844-.398 2.464-1.134 2.795-1.984.33-.849.364-2.04-.491-2.682-.856-.641-2.065-.937-3.069-.177s-2.671 1.99-2.038 3.124c.631 1.137.535 2.12 1.602 1.978 1.066-.142 1.202-.26 1.202-.26"/><path fill="#2C3D82" d="M82.344 14.093a.86.86 0 0 1-.555-.203c-.822-.69-2.343-1.32-2.358-1.328a.864.864 0 0 1 .657-1.598c.072.03 1.782.737 2.813 1.603a.866.866 0 0 1-.557 1.526m-10.249-1.766a.864.864 0 0 1-.25-1.693c.063-.019 1.545-.46 2.945-.486h.016a.865.865 0 0 1 .015 1.729c-1.157.02-2.465.408-2.477.412a1 1 0 0 1-.248.036zm-6.255 4.148a.865.865 0 0 1-.68-1.397c.04-.052 1.013-1.29 2.166-2.13a.864.864 0 1 1 1.019 1.397c-.96.7-1.815 1.787-1.824 1.798a.86.86 0 0 1-.68.332m-2.621 7.144h-.014a.863.863 0 0 1-.85-.878c0-.066.03-1.64.441-3a.864.864 0 1 1 1.655.5c-.342 1.131-.368 2.512-.368 2.526a.864.864 0 0 1-.864.85zm1.965 7.277a.86.86 0 0 1-.717-.38c-.037-.055-.9-1.337-1.34-2.666a.865.865 0 0 1 1.641-.544c.366 1.104 1.124 2.23 1.13 2.241a.864.864 0 0 1-.715 1.349zm6.029 4.74a.8.8 0 0 1-.283-.048c-.061-.022-1.523-.534-2.668-1.336a.865.865 0 0 1 .99-1.416c.946.661 2.233 1.114 2.246 1.119a.865.865 0 0 1-.285 1.681m4.729.73a.864.864 0 0 1-.002-1.728c1.181-.004 2.518-.383 2.532-.387a.865.865 0 0 1 .478 1.662c-.063.019-1.577.45-3.005.453zm7.135-2.668a.865.865 0 0 1-.524-1.552c.936-.711 1.771-1.82 1.78-1.831a.864.864 0 0 1 1.384 1.036c-.039.053-.985 1.31-2.118 2.17a.86.86 0 0 1-.522.177m4.094-6.26a.865.865 0 0 1-.822-1.136c.371-1.121.436-2.51.437-2.524a.865.865 0 0 1 1.727.075c-.002.066-.075 1.639-.522 2.992a.865.865 0 0 1-.82.593m.066-7.856a.86.86 0 0 1-.787-.507c-.512-1.126-1.401-1.947-1.41-1.956a.865.865 0 0 1 1.165-1.279c.047.043 1.156 1.06 1.82 2.52a.864.864 0 0 1-.785 1.22z"/><path fill="#D9EFFD" d="M79.535 76.996c.676-1.24 3.614-4.386 4.501-5.315 1.026-1.075 3.842-1.594 5.082.098s3.616 4.007 4.202 5.669c.442 1.254.635 2.834-.977 3.224-2.392.58-3.575-2.94-4.252-3.616s-2.386-.725-3.176-.049c-.79.677-1.98 2.97-2.883 3.42-.902.451-2.932.49-3.175-1.063-.261-1.67.677-2.368.677-2.368m-23.193 0c.677-1.24 3.614-4.386 4.502-5.315 1.025-1.075 3.842-1.594 5.082.098s3.616 4.007 4.201 5.669c.443 1.254.635 2.834-.977 3.224-2.391.58-3.575-2.94-4.251-3.616s-2.387-.725-3.176-.049c-.79.677-1.981 2.97-2.883 3.42-.903.451-2.932.49-3.175-1.063-.262-1.67.676-2.368.676-2.368z"/><path fill="url(#f)" d="M44.994 40.504a1.5 1.5 0 0 1-1.37-.887l-5.348-11.97a1.497 1.497 0 1 1 2.736-1.222l5.348 11.97a1.497 1.497 0 0 1-1.367 2.109"/><path fill="url(#g)" d="M35.202 47.36c-.419 0-.836-.175-1.132-.516l-8.602-9.893a1.498 1.498 0 1 1 2.261-1.966l8.602 9.893a1.498 1.498 0 0 1-1.13 2.481"/><path fill="url(#h)" d="M113.501 46.925a1.5 1.5 0 0 1-.945-2.662L122.735 36a1.5 1.5 0 0 1 2.108.219 1.5 1.5 0 0 1-.219 2.107l-10.18 8.263a1.5 1.5 0 0 1-.943.336"/><path fill="url(#i)" d="M104.343 39.239a1.498 1.498 0 0 1-1.241-2.337l7.332-10.869a1.5 1.5 0 0 1 2.485 1.676l-7.333 10.868c-.289.43-.762.66-1.243.66z"/><path fill="#B4BFC6" d="M31.298 115.634s-3.483-2.815-2.083-4.83c.71-1.022 1.933-1.657 3.87-1.183 1.938.473 3.588 1.839 5.285 1.165s2.597-1.156 4.086-1.176c1.281-.017 1.232 1.143 1.213 2.017-.517 1.263-1.312 3.09-1.695 3.54-.382.452-1.931 1.962-3.765 2.205-1.98.262-3.708.311-6.912-1.739zm36.752-5.738c3.816 1.125 4.941.148 12.416 1.41 5.497.928 8.559-.125 11.232-1.406 2.674-1.279 3.3-3.058 1.569-3.314 0 0-.913-.158-4.072.048-2.694.178-7.516.693-9.441 1.012-3.166.526-11.026.313-13.59-.049-1.499.793.208 1.803 1.887 2.298zm9.63-7.523c3.73-.153 8.225.098 11.88-2.32 3.884-2.985 11.738-2.11 7.82-.07-6.01 3.177-10.623 4.389-13.77 4.923-1.75.296-5.828.751-8.996.837-.742.021-5.09-.02-8.45-.57-.626-2.127 10.174-2.747 11.516-2.802zm30.961 9.696c.704-1.059 2.252-1.759 3.32-2.59 1.068-.83 2.118-2.022 2.89-2.95s2.336-1.347 3.311-.973c.975.375.712 1.365.462 2.192-.341 1.124-1.205 2.448-2.346 3.807-1.376 1.928-4.267 4.702-6.251 4.046-1.877-.62-2.089-2.473-1.385-3.532zm4.705-46.649c.662 1.938 1.103 3.56 1.393 6.235.339 3.142.206 5.668-.479 8.353-1.081 4.24-3.157 7.843-4.976 10.098 0 0 5.465-3.206 7.65-7.794.668-1.405 1.507-4.093 1.512-6.33.008-3.885-1.435-8.38-5.1-10.561"/><path fill="url(#j)" d="M37.167 64.67c-.836 1.869-1.425 3.444-1.959 6.081-.627 3.096-.726 5.625-.29 8.362.688 4.321 2.423 8.1 4.027 10.512 0 0-5.147-3.693-6.901-8.463-.537-1.46-1.126-4.213-.926-6.442.348-3.871 2.199-8.215 6.048-10.05z"/><path fill="#fff" d="M28.155 101.063c-.16.848.022 3.012.721 4.099.7 1.086 2.503.4 2.602-1.247.1-1.648 1.644-3.989.724-4.792s-3.498-.99-4.047 1.941zm29.155 9.175c-1.372-.017-3.223 1.448-3.142 2.891.08 1.442-.055 3.079.47 4.317.525 1.236 1.95 4.323 4.036 4.931 2.086.606 3.36.987 4.11.131.749-.856.807-1.854.065-2.898-.743-1.044-2.512-2.121-2.277-4.035.234-1.913-.638-5.303-3.263-5.335h.002zm-3.187-58.65c-2.22 1.104-7.22 3.687-6.656 6.449s4.403 1.361 6.282.313c1.878-1.047 5.459-2.652 7.624-3.263s3.312-2.869 1.983-4.125c-1.327-1.256-6.119-.922-9.235.627h.002m56.656 51.755c-1.503-.915-4.353.515-5.712 1.919-1.36 1.404-.734 3.299.115 3.638.85.339 2.873.175 3.673-2.321.346-1.08 2.888-2.649 1.923-3.237zM33.012 69.863c.534-1.155 2.005-2.494 2.022-1.536s-.925 3.44-1.168 4.886c-.283 1.686-.466 3.223-.441 4.217.02.772-1.035 1.709-1.34.505-.07-.28-.522-2.261-.317-4.113.204-1.852 1.066-3.575 1.243-3.96z"/><path fill="#121442" d="M97.102 89.754c-1.158 1.183-11.599 3.949-22.192 3.829-11.875-.134-23.33-3.17-24.297-4.471-1.12-1.508-1.96-7.792-1.926-11.136.031-3.055.524-10.202 1.909-11.755.342-.383.895-.607 1.736-.907 0 0-2.85 13.977.144 21.86.471 1.886 18.29 3.278 19.862 3.309 3.85.078 10.388-.14 16.917-1.103 2.65-.39 7.023-1.591 8.964-2.01-.519 1.706-1.117 2.382-1.117 2.382z"/><path fill="#2C3D82" d="M73.904 113.09s-7.244 2.867-4.67 11.559c.632 2.137 2.882 5.088 6.212 6.244 0 0-5.028-4.201-3.876-9.603.927-4.342 6.013-3.772 6.018-8.788 0 0-1.73-.165-3.684.588"/><path fill="#2C3D82" d="M77.322 119.456a3.486 3.486 0 1 0 .001-6.971 3.486 3.486 0 0 0-.001 6.971m-2.658 4.781a2.26 2.26 0 1 0 0-4.522 2.26 2.26 0 0 0 0 4.522"/><ellipse cx="73.5" cy="145.5" fill="url(#k)" fill-opacity=".6" rx="18.5" ry="4.5"/><ellipse cx="73" cy="155" fill="url(#l)" fill-opacity=".6" rx="13" ry="3"/><defs><linearGradient id="a" x1="25.327" x2="45.384" y1="106.7" y2="109.027" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="b" x1="50.449" x2="99.12" y1="121.517" y2="115.42" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="c" x1="45.742" x2="111.575" y1="55.705" y2="99.243" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="d" x1="102.795" x2="121.552" y1="113.415" y2="100.89" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="e" x1="75.191" x2="73.321" y1="102.676" y2="50.559" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0E2050"/></linearGradient><linearGradient id="f" x1="38.146" x2="46.491" y1="33.021" y2="33.021" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset=".08" stop-color="#EAECEE"/><stop offset=".4" stop-color="#D5DBDF"/><stop offset=".71" stop-color="#C8D0D6"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="g" x1="26.907" x2="34.89" y1="42.13" y2="39.7" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset=".08" stop-color="#EAECEE"/><stop offset=".4" stop-color="#D5DBDF"/><stop offset=".71" stop-color="#C8D0D6"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="h" x1="117.51" x2="119.668" y1="37.264" y2="45.326" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset=".08" stop-color="#EAECEE"/><stop offset=".4" stop-color="#D5DBDF"/><stop offset=".71" stop-color="#C8D0D6"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="i" x1="105.804" x2="110.216" y1="28.765" y2="35.848" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset=".08" stop-color="#EAECEE"/><stop offset=".4" stop-color="#D5DBDF"/><stop offset=".71" stop-color="#C8D0D6"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="j" x1="31.365" x2="39.858" y1="78.639" y2="76.747" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="k" x1="73.5" x2="73.5" y1="141" y2="150" gradientUnits="userSpaceOnUse"><stop stop-color="#EDF0FB"/><stop offset="1" stop-color="#B6C2EF"/></linearGradient><linearGradient id="l" x1="73" x2="73" y1="152" y2="158" gradientUnits="userSpaceOnUse"><stop stop-color="#EDF0FB"/><stop offset="1" stop-color="#8094E4"/></linearGradient></defs></svg></div>\n </div>\n <div class="fj-feedback-footer-buttons">\n <button type="button" class="fj-feedback-btn fj-feedback-btn-close">${d("global.close")}</button>\n </div>\n </div>\n `,null===(t=e.querySelector(".fj-feedback-btn-close"))||void 0===t||t.addEventListener("click",()=>this.render(null))}renderTabs(){return`\n <input type="radio" id="radio-enhancement" name="feedbackType" ${"enhancement"===this.form.feedbackType?"checked":""} value="enhancement"/>\n <label class="fj-tab" for="radio-enhancement">\n <span class="fj-tab-icon" aria-hidden="true">\n <span class="fj-tab-icon-active"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 1 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4"/></svg></span>\n <span class="fj-tab-icon-inactive"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path stroke="#64748B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 1 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4"/></svg></span>\n </span>\n <span class="fj-tab-label">${d("enhancement.tab")}</span>\n </label>\n <input type="radio" id="radio-issue" name="feedbackType" ${"issue"===this.form.feedbackType?"checked":""} value="issue"/>\n <label class="fj-tab" for="radio-issue">\n <span class="fj-tab-icon" aria-hidden="true">\n <span class="fj-tab-icon-active"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><path fill="#2144CD" d="M9.968 15.808c3.317 0 6.005-2.683 6.005-5.992s-2.688-5.992-6.005-5.992-6.005 2.683-6.005 5.992 2.689 5.992 6.005 5.992"/><path fill="#D2D9F5" d="M9.428 5.785c.89-.157 1.535.683 2.628 1.616 1.008.862 1.063 3.774-.03 4.8s-2.517 1.607-4.124 1.106c-1.546-.482-2.062-1.141-2.473-2.129-.48-1.153-.232-3.045 1.096-4.24 1.33-1.196 1.964-.988 2.902-1.153z"/><path fill="#8094E4" d="M14.613 10.097c.157-.88-.072-2.72-1.594-3.82-1.752-1.266-3.316-1.659-4.23-.469C7.86 7.02 7.37 8.267 8.408 9.28s2.333 1.24 2.316 2.556c-.016 1.316 2 2.004 2.692 1.147 1.047-1.296 1.047-2.034 1.198-2.886"/><path fill="#fff" d="M8.196 10.373c.254-.675.756-1.958.48-2.607s-.901-1.329-1.723-1.223-1.654.595-1.801 1.558c-.146.964-.409 2.544.556 2.833s1.444.885 1.96.231.528-.792.528-.792m6.966-7.494a.7.7 0 0 1-.394-.127c-.714-.513-1.69-.871-1.7-.875a.672.672 0 1 1 .463-1.264c.046.017 1.157.424 2.026 1.048a.672.672 0 0 1-.395 1.219zM7.449 1.688A.673.673 0 0 1 7.255.37C7.301.356 8.434.02 9.504 0c.37-.004.68.29.686.661a.674.674 0 0 1-.662.684c-.886.016-1.876.31-1.886.314a.7.7 0 0 1-.195.028zM2.675 4.849a.671.671 0 0 1-.53-1.087c.031-.04.775-.984 1.656-1.626a.675.675 0 0 1 .943.147c.219.3.153.721-.148.94-.726.53-1.382 1.36-1.39 1.368a.67.67 0 0 1-.53.258M.674 10.29h-.01A.674.674 0 0 1 0 9.609c0-.05.023-1.251.337-2.29a.674.674 0 0 1 1.291.39c-.26.86-.28 1.91-.28 1.92a.674.674 0 0 1-.674.663m1.5 5.541a.67.67 0 0 1-.56-.296c-.027-.041-.688-1.02-1.024-2.035a.675.675 0 0 1 1.28-.423c.277.834.856 1.695.86 1.704a.673.673 0 0 1-.557 1.05m4.603 3.612a.7.7 0 0 1-.221-.038c-.047-.016-1.163-.407-2.04-1.019a.67.67 0 0 1-.167-.936.675.675 0 0 1 .939-.166c.72.503 1.701.847 1.711.85a.673.673 0 0 1-.222 1.309m3.611.555a.673.673 0 0 1-.002-1.346c.9-.002 1.92-.29 1.93-.293a.672.672 0 1 1 .373 1.293c-.05.014-1.207.342-2.298.345zm5.447-2.03a.673.673 0 0 1-.409-1.208c.712-.541 1.35-1.384 1.357-1.393a.676.676 0 0 1 .944-.134.67.67 0 0 1 .136.94c-.031.041-.755 1-1.62 1.657a.67.67 0 0 1-.407.137zm3.126-4.77a.673.673 0 0 1-.64-.885c.282-.852.33-1.908.332-1.918a.677.677 0 0 1 .703-.643c.372.016.66.329.644.7-.002.05-.056 1.25-.399 2.284a.67.67 0 0 1-.64.46zm.1-6.222a.68.68 0 0 1-.546-.276c-.47-.643-1.206-1.38-1.213-1.387a.67.67 0 0 1 0-.952.675.675 0 0 1 .954 0c.033.033.817.818 1.349 1.547a.672.672 0 0 1-.544 1.069z"/></svg></span>\n <span class="fj-tab-icon-inactive"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><path fill="#64748B" d="M9.968 15.808c3.317 0 6.005-2.683 6.005-5.992s-2.688-5.992-6.005-5.992-6.005 2.683-6.005 5.992 2.689 5.992 6.005 5.992"/><path fill="#CBD5E1" d="M9.428 5.785c.89-.157 1.535.683 2.628 1.616 1.008.862 1.063 3.774-.03 4.8s-2.517 1.607-4.124 1.106c-1.546-.482-2.062-1.141-2.473-2.129-.48-1.153-.232-3.045 1.096-4.24 1.33-1.196 1.964-.988 2.902-1.153z"/><path fill="#94A3B8" d="M14.613 10.097c.157-.88-.072-2.72-1.594-3.82-1.752-1.266-3.316-1.659-4.23-.469C7.86 7.02 7.37 8.267 8.408 9.28s2.333 1.24 2.316 2.556c-.016 1.316 2 2.004 2.692 1.147 1.047-1.296 1.047-2.034 1.198-2.886"/><path fill="#fff" d="M8.196 10.373c.254-.675.756-1.958.48-2.607s-.901-1.329-1.723-1.223-1.654.595-1.801 1.558c-.146.964-.409 2.544.556 2.833s1.444.885 1.96.231.528-.792.528-.792"/><path fill="#64748B" d="M15.163 2.879a.7.7 0 0 1-.394-.127c-.715-.513-1.69-.871-1.7-.875A.672.672 0 1 1 13.53.613c.047.017 1.158.424 2.026 1.048a.672.672 0 0 1-.395 1.219zM7.448 1.688A.673.673 0 0 1 7.254.37C7.302.356 8.435.02 9.505 0c.37-.004.68.29.686.661a.674.674 0 0 1-.663.684c-.885.016-1.876.31-1.885.314a.7.7 0 0 1-.196.028zM2.675 4.849a.671.671 0 0 1-.53-1.087c.031-.04.775-.984 1.656-1.626a.675.675 0 0 1 .943.147c.219.3.153.721-.148.94-.726.53-1.382 1.36-1.39 1.368a.67.67 0 0 1-.53.258M.674 10.29h-.01A.674.674 0 0 1 0 9.609c0-.05.023-1.251.337-2.29a.674.674 0 0 1 1.291.39c-.26.86-.28 1.91-.28 1.92a.674.674 0 0 1-.674.663m1.5 5.541a.67.67 0 0 1-.56-.296c-.027-.041-.688-1.02-1.024-2.035a.675.675 0 0 1 1.28-.423c.277.834.856 1.695.861 1.704a.673.673 0 0 1-.558 1.05m4.603 3.612a.7.7 0 0 1-.221-.038c-.047-.016-1.163-.407-2.04-1.019a.67.67 0 0 1-.167-.936.675.675 0 0 1 .939-.166c.72.503 1.701.847 1.711.85a.673.673 0 0 1-.222 1.309m3.611.555a.673.673 0 0 1-.002-1.346c.9-.002 1.92-.29 1.93-.293a.672.672 0 1 1 .373 1.293c-.05.014-1.207.342-2.298.345zm5.447-2.03a.673.673 0 0 1-.409-1.208c.712-.541 1.35-1.384 1.357-1.393a.676.676 0 0 1 .944-.134.67.67 0 0 1 .136.94c-.031.041-.755 1-1.62 1.657a.67.67 0 0 1-.407.137zm3.126-4.77a.674.674 0 0 1-.64-.885c.283-.852.331-1.908.332-1.918a.677.677 0 0 1 .703-.643c.372.016.66.329.645.7-.002.05-.057 1.25-.4 2.284a.67.67 0 0 1-.64.46zm.1-6.222a.68.68 0 0 1-.546-.276c-.47-.643-1.206-1.38-1.213-1.387a.67.67 0 0 1 0-.952.675.675 0 0 1 .954 0c.033.033.817.818 1.35 1.547a.672.672 0 0 1-.545 1.069z"/></svg></span>\n </span>\n <span class="fj-tab-label">${d("issue.tab")}</span>\n </label>\n <input type="radio" id="radio-decision" name="feedbackType" ${"decision"===this.form.feedbackType?"checked":""} value="decision"/>\n <label class="fj-tab" for="radio-decision">\n <span class="fj-tab-icon" aria-hidden="true">\n <span class="fj-tab-icon-active"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="none"><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.743 14.98c.134.34.164.713.086 1.07l-.976 3.016a.917.917 0 0 0 1.133 1.07l3.128-.914a1.83 1.83 0 0 1 1.008.084 9.167 9.167 0 1 0-4.38-4.326M7.333 11h.009M11 11h.008m3.659 0h.008"/></svg></span>\n <span class="fj-tab-icon-inactive"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="none"><path stroke="#64748B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.743 14.98c.134.34.164.713.086 1.07l-.977 3.016a.917.917 0 0 0 1.133 1.07l3.129-.914a1.83 1.83 0 0 1 1.007.084 9.167 9.167 0 1 0-4.378-4.326M7.333 11h.009M11 11h.008m3.659 0h.008"/></svg></span>\n </span>\n <span class="fj-tab-label">${d("decision.tab")}</span>\n </label>\n <span class="fj-glider"></span>\n `}renderFields(){return`\n <div class="fj-feedback-header">\n <div class="fj-feedback-robot" aria-hidden="true">${"issue"===this.form.feedbackType?o:'<svg xmlns="http://www.w3.org/2000/svg" width="118" height="128" fill="none"><path fill="#2C3D82" d="M62.849 106.398s-3.28.742-4.79 1.104c-1.512.364-4.466 1.062-4.97 1.242-.506.179-1.473.639-1.74 1.534-.265.894-.206 1.46-.303 3.188l10.495-2.521c.561-.135 1.256-1.065 1.309-4.547zm-7.228 11.147c-3.07.738-5.288 1.283-5.288 1.283.142-1.509.098-2 .383-2.787.285-.788 1.245-1.215 1.744-1.386.5-.17 3.411-.859 4.902-1.218 1.49-.358 4.72-1.093 4.72-1.093-.072 1.517-.14 2.543-.26 3.233-.171.984-.02 1.404-.896 4.215-.801 2.571-1.341 4.252-3.886 6.788 0 0-2.425-2.448-1.711-3.772.692-1.285.65-1.109 1.16-2.403.27-.679.443-.944.533-1.833.075-.735-.667-1.205-1.4-1.029z"/><path fill="#2C3D82" d="M62.849 106.398s-.623 8.587-1.326 10.571-3.488-1.43-3.488-1.43l.535-6.707 4.28-2.432z"/><path fill="url(#a)" d="M10.33 75.085c-5.706-18.067 8.54-38.838 31.819-46.392 23.278-7.554 46.773.969 52.478 19.036 5.705 18.068-8.541 38.838-31.82 46.392-23.278 7.554-46.773-.968-52.478-19.036"/><path fill="url(#b)" d="M56.154 99.928c14.632-1.278 22.943-8.877 27.272-1.114 3.647 6.54-4.946 26.139-23.188 28.538-18.828 2.475-31.62-13.686-29.76-22.043 1.527-6.858 10.467-4.053 25.676-5.38z"/><path fill="url(#c)" d="M17.87 89.198c1.357.77 4.16 1.729 4.02-.634-.411-6.94-5.114-13.768-7.369-16.762-1.226-1.627-5.054-5.326-5.636-3.768-1.779 4.762-1.072 9.104 1.44 13.734 2.285 4.211 6.19 6.663 7.547 7.433v-.003z"/><path fill="url(#d)" d="M25.878 99.292c1.309.611.93 3.527 1.31 5.165.583 2.509 1.893 5.018 2.62 8.412.505 2.348-1.456 4.28-4.076 4.428s-10.483-.591-14.122-3.689c-2.768-2.358-5.387-5.018-5.387-7.822 0-3.545 9.416-5.953 12.082-6.494 2.184-.444 5.678-.886 7.57 0z"/><path fill="url(#e)" d="M110.311 64.757c-1.76.62-3.93 3.541-6.696 4.28-2.766.738-9.026 1.33-9.172 6.495-.146 5.166 2.855 10.534 5.913 11.714 3.057 1.18 8.439.072 11.298-3.24 3.139-3.638 5.791-11.277 4.772-14.525-1.019-3.246-2.766-5.904-6.115-4.723z"/><path fill="url(#f)" d="M51.594 44.489c-11.98 4.974-20.166 12.888-21.354 14.429-.91 1.18 2.74 6.314 5.71 12.076 2.781 5.399 4.26 11.599 5.437 12.052 1.673.644 13.168-1.41 23.502-6.402 11.587-5.597 19.873-12.12 20.23-13.86.415-2.012-.86-9.623-3.108-14.178-2.47-4.7-5.912-9.388-7.973-10.293-1.685-.74-10.955 1.404-22.445 6.174h.001z"/><path fill="#fff" d="M64.882 29.013c2.711.294 8.856 1.057 9.329 4.163s-4.022 3.13-6.36 2.761c-2.337-.367-6.642-.659-9.11-.457-2.468.2-4.513-1.715-3.623-3.544s5.959-3.334 9.764-2.922zM75.22 99.96c1.496-.209 3.716 1.156 3.825 2.764.11 1.607.48 3.398.078 4.841-.405 1.442-1.539 5.056-3.732 6.015-2.193.96-3.532 1.559-4.468.716s-1.136-1.94-.468-3.198 2.452-2.695 1.935-4.779-.028-5.956 2.83-6.356zm39.052-30.478c.068.96-.405 3.333-1.308 4.447-.902 1.114-2.786.121-2.684-1.715.101-1.838-1.289-4.629-.184-5.401 1.107-.772 3.947-.647 4.176 2.67zm-98.913 34.127c.282-1.562 3.495-2.708 5.639-2.84 2.143-.132 3.307 1.385 2.995 2.165s-1.872 2.082-4.545 1.203c-1.158-.381-4.272.473-4.092-.53h.002z"/><path fill="#B4BFC6" d="M108.989 85.218s4.164-2.67 2.889-5.083c-.648-1.223-1.903-2.084-4.079-1.808-2.176.277-4.153 1.576-5.922.61-1.768-.964-2.69-1.613-4.315-1.827-1.398-.183-1.49 1.108-1.581 2.078.405 1.465 1.041 3.592 1.403 4.14.36.548 1.862 2.42 3.833 2.925 2.129.545 4.011.821 7.772-1.037zm-38.358 11.61c-.102.94-1.337 2.76-3.103 3.54-4.01 1.773-5.59.487-13.576 2.919-5.873 1.789-13.218 2.11-16.31 1.066-3.093-1.045-4.021-2.926-2.166-3.449 0 0 .974-.302 4.45-.512 2.965-.177 8.298-.276 10.444-.19 3.526.143 12.076-1.182 14.825-1.938 2.27-.624 5.434-1.439 5.434-1.439zm-13.403-4.06c-3.905 1.286-9.807 1.674-14.143.314-5.147-1.616-13.44-2.72-15.343-2.298-1.367.304-1.755 1.29-1.614 1.763 0 0 5.221 2.836 12.635 3.828s12.635.473 16.085-.19c1.919-.368 5.946-1.35 9.598-2.609.46-1.603-4.408-1.736-7.218-.81zM12.349 69.507c1.463.043 4.089 1.881 7.783 7.392 3.83 5.715 4.51 9.673 4.347 11.272s-.651 2.419-1.087 2.915c0 0-1.197-.724-1.957-1.276 0 0 .668-.269.295-2.726-.16-1.056-.611-2.783-1.228-4.63-.794-2.375-1.913-4.331-2.952-6.143-1.383-2.41-4.74-6.584-5.2-6.803h-.001zm12.133 46.337c1.095-.987-.203-4.319-1.42-5.018s-3.082-.617-4.544-.905c-1.46-.287-3.082-.947-4.3-1.48-1.219-.534-2.963-.164-3.733.699-.771.865-.022 1.716.635 2.413.892.947 2.398 1.83 4.193 2.606 2.474 1.071 7.506 1.686 9.169 1.686z"/><path fill="#121442" d="M40.208 81.241c.393.899.821 1.668 1.177 1.805 1.674.643 13.169-1.41 23.503-6.402 11.586-5.598 19.872-12.12 20.23-13.86.414-2.013-.861-9.624-3.108-14.18-2.47-4.698-5.912-9.387-7.973-10.292-.494-.217-1.643-.186-3.308.087 0 0 5.21 4.804 7.583 9.548 1.577 3.152 2.76 6.14 3.466 9.095.433 1.82.675 3.524.495 4.705-.203 1.32-11.165 8.224-16.025 10.6-5.259 2.57-17.448 7.401-26.039 8.893z"/><path fill="#D9EFFD" d="M43.831 70.82c3.397 2.863 7.61 2.588 9.41-.618 1.801-3.206.507-8.126-2.889-10.99s-7.608-2.59-9.41.616c-1.8 3.207-.507 8.127 2.89 10.991"/><path fill="#fff" d="M46.92 63.806c1.427 1.252 3.182 1.278 3.917.058.736-1.22.173-3.223-1.253-4.476-1.427-1.251-3.181-1.277-3.916-.057-.737 1.22-.174 3.222 1.252 4.475"/><path fill="url(#g)" d="M48.702 72.852q.21 0 .416-.014a5.12 5.12 0 0 0 3.854-2.155c2.225-3.096 1.357-8.418-1.935-11.866-1.837-1.924-4.11-2.94-6.231-2.79a5.12 5.12 0 0 0-3.855 2.155c-2.224 3.096-1.356 8.418 1.936 11.866 1.717 1.799 3.815 2.804 5.816 2.804m-3.48-16.471c1.902 0 3.905.966 5.554 2.692 3.174 3.324 4.028 8.436 1.902 11.393-.867 1.206-2.106 1.9-3.585 2.004-2.018.143-4.183-.834-5.945-2.678-3.174-3.325-4.028-8.436-1.903-11.393.867-1.206 2.107-1.9 3.586-2.004q.195-.014.39-.014"/><path fill="#D9EFFD" d="M64.389 59.526c2.716 3.532 6.89 4.172 9.324 1.43 2.433-2.744 2.203-7.83-.514-11.362s-6.89-4.173-9.323-1.43-2.203 7.83.513 11.362"/><path fill="#fff" d="M68.88 53.34c1.132 1.531 2.84 1.936 3.814.903s.848-3.111-.284-4.643c-1.132-1.53-2.84-1.935-3.814-.902s-.848 3.111.284 4.643"/><path fill="url(#h)" d="M70.118 62.568a4.97 4.97 0 0 0 3.341-1.27c2.8-2.454 3.022-7.704.495-11.705-1.419-2.245-3.447-3.71-5.565-4.022-1.561-.23-3.001.188-4.165 1.208-2.8 2.454-3.022 7.705-.494 11.705 1.418 2.245 3.446 3.711 5.564 4.022q.42.062.824.062M67.57 45.88q.378 0 .768.057c2.013.296 3.949 1.702 5.31 3.857 2.434 3.851 2.242 8.888-.426 11.227-1.081.947-2.42 1.335-3.875 1.122-2.013-.296-3.948-1.702-5.31-3.857-2.433-3.85-2.242-8.888.426-11.227a4.62 4.62 0 0 1 3.107-1.178z"/><path fill="#388397" d="M24.695 23.084c-4.705 0-8.52-3.867-8.52-8.637s3.815-8.636 8.52-8.636 8.519 3.866 8.519 8.636-3.814 8.637-8.52 8.637"/><path fill="#CFE4E9" d="M21.247 9.74c-1.06.73-.884 2.245-1.07 4.305-.17 1.902 2.66 4.964 4.789 4.928 2.13-.036 4.154-.864 5.29-2.993 1.093-2.048.966-3.246.405-4.679-.657-1.672-2.784-3.378-5.32-3.28-2.536.097-2.975.95-4.094 1.719"/><path fill="#78B2C2" d="M20.25 19.396c-1.03-.752-2.622-2.883-2.166-5.545.525-3.065 1.727-5.041 3.836-4.726 2.147.32 3.88 1.116 3.83 3.202s-1.142 3.621.18 4.964c1.32 1.343-.048 4.076-1.6 3.884-2.35-.289-3.08-1.052-4.08-1.78"/><path fill="#FFFAE9" d="M27.051 13.246c-.928-.443-2.71-1.264-3.073-2.211-.364-.947-.401-2.276.54-2.992.941-.714 2.27-1.044 3.375-.196s2.938 2.218 2.242 3.483c-.695 1.267-.59 2.363-1.763 2.205-1.172-.158-1.322-.289-1.322-.289z"/><path fill="#388397" d="M17.124 4.17a.94.94 0 0 0 .555-.182c1.03-.753 2.439-1.279 2.453-1.284a.97.97 0 0 0 .567-1.235.946.946 0 0 0-1.218-.575c-.067.024-1.665.619-2.914 1.53a.973.973 0 0 0-.215 1.345.95.95 0 0 0 .772.401m11.112-1.743A.966.966 0 0 0 28.51.541c-.07-.02-1.7-.513-3.24-.54a.96.96 0 0 0-.967.946.957.957 0 0 0 .934.98c1.28.024 2.71.455 2.724.46a1 1 0 0 0 .274.04m6.881 4.625c.206 0 .41-.067.586-.204a.974.974 0 0 0 .163-1.353c-.045-.058-1.115-1.438-2.383-2.375a.94.94 0 0 0-1.328.21.97.97 0 0 0 .208 1.347c1.056.78 1.996 1.993 2.005 2.005.188.243.468.37.75.37m2.88 7.967h.016a.956.956 0 0 0 .935-.978c0-.075-.033-1.829-.485-3.346a.95.95 0 0 0-1.185-.644.967.967 0 0 0-.636 1.201c.377 1.262.405 2.802.405 2.817.007.527.432.95.95.95m-2.16 8.112a.94.94 0 0 0 .788-.424c.04-.06.99-1.49 1.474-2.972a.967.967 0 0 0-.603-1.218.95.95 0 0 0-1.202.611c-.403 1.232-1.236 2.487-1.243 2.5a.973.973 0 0 0 .254 1.339.94.94 0 0 0 .533.166zm-6.631 5.289a.9.9 0 0 0 .312-.055c.067-.024 1.674-.595 2.934-1.49a.97.97 0 0 0 .235-1.34.943.943 0 0 0-1.324-.238c-1.04.737-2.456 1.242-2.47 1.247a.968.968 0 0 0 .313 1.875m-5.204.812c.524 0 .95-.43.951-.961a.96.96 0 0 0-.948-.966c-1.307-.004-2.77-.426-2.783-.431a.95.95 0 0 0-1.177.66.965.965 0 0 0 .65 1.192c.07.02 1.736.5 3.306.505h.003zm-7.847-2.973c.287 0 .57-.131.758-.38a.97.97 0 0 0-.181-1.35c-1.03-.794-1.95-2.03-1.958-2.043a.94.94 0 0 0-1.331-.192.97.97 0 0 0-.192 1.348c.043.059 1.084 1.46 2.33 2.42a.94.94 0 0 0 .574.197m-4.502-6.98a1 1 0 0 0 .298-.05.967.967 0 0 0 .605-1.218c-.408-1.25-.48-2.798-.48-2.814a.96.96 0 0 0-.992-.92.96.96 0 0 0-.909 1.004c.003.073.083 1.827.574 3.336a.95.95 0 0 0 .903.662zm-.144-9.108a.94.94 0 0 0 .769-.398c.675-.942 1.738-2.021 1.75-2.032a.973.973 0 0 0 0-1.363.94.94 0 0 0-1.346 0c-.048.049-1.177 1.195-1.942 2.26a.97.97 0 0 0 .21 1.347.94.94 0 0 0 .559.185"/><path fill="#2C3D82" d="M58.24 105.353s-8.472 1.299-7.861 11.39c.15 2.479 1.833 6.251 5.117 8.341 0 0-4.352-5.824-1.782-11.406 2.064-4.487 7.375-2.592 8.621-8.043 0 0-1.815-.613-4.095-.282"/><path fill="#2C3D82" d="M61.193 113.227c2.118 0 3.834-1.74 3.834-3.887s-1.716-3.887-3.834-3.887c-2.117 0-3.834 1.74-3.834 3.887s1.716 3.887 3.834 3.887m-4.331 4.494c1.373 0 2.487-1.129 2.487-2.521 0-1.393-1.114-2.521-2.487-2.521-1.374 0-2.487 1.128-2.487 2.521 0 1.392 1.113 2.521 2.487 2.521"/><path fill="#FFDB00" d="M96.92 38.895c.977 6.435 6.542 11.46 10.289 11.46 4.078 0 9.311-4.264 10.113-11.46.747-6.697-4.567-12.204-10.201-12.204S95.909 32.234 96.92 38.895"/><path fill="#CDAA00" d="M104.633 53.799h4.956c.631 0 1.143-.52 1.143-1.16s-.512-1.159-1.143-1.159h-4.956c-.631 0-1.143.52-1.143 1.16s.512 1.159 1.143 1.159m0 2.555h4.956c.631 0 1.143-.519 1.143-1.159s-.512-1.159-1.143-1.159h-4.956c-.631 0-1.143.52-1.143 1.16s.512 1.158 1.143 1.158m0 2.556h4.956c.631 0 1.143-.52 1.143-1.16s-.512-1.158-1.143-1.158h-4.956c-.631 0-1.143.519-1.143 1.159s.512 1.159 1.143 1.159"/><path fill="#fff" d="M105.492 49.02c.123 0 .246-.04.35-.122a.585.585 0 0 0 .101-.814c-.929-1.212-4.128-7.982-3.985-10.43.15-2.571.525-3.642 1.385-3.948.432-.154.759-.03 1.085.37-1.207 1.313-1.695 3.45-1.358 4.826.229.936.835 1.538 1.663 1.65.963.13 1.791-.185 2.27-.867.178-.251.298-.538.361-.85.033.319.112.613.25.866.197.361.598.802 1.399.853 1.221.077 1.816-.462 2.101-.929.57-.933.388-2.452-.476-3.962q-.432-.757-.85-1.306l.037-.067c.299-.554.73-.8 1.182-.675.743.206 1.51 1.411 1.439 3.567-.101 3.073-3.87 10.78-3.908 10.857a.584.584 0 0 0 .257.778.57.57 0 0 0 .767-.261c.16-.325 3.918-8.012 4.027-11.335.099-2.993-1.166-4.415-2.279-4.724-.891-.248-1.764.126-2.333.98-.424-.363-.856-.585-1.313-.685-.743-.164-1.514.017-2.349.552l-.055-.066c-.802-.94-1.691-.88-2.295-.664-1.751.625-2.021 2.799-2.146 4.973-.174 2.979 3.306 10.011 4.223 11.21a.57.57 0 0 0 .452.223zm-.443-13.895q.186.385.404.871c.155.346.314.703.487 1.051.391.795.441 1.53.133 1.967-.228.323-.65.462-1.189.39-.131-.018-.53-.072-.704-.781-.235-.96.102-2.483.869-3.498m4.179.428q.209.314.423.693c.621 1.088.824 2.228.492 2.77-.175.287-.531.415-1.057.382-.303-.02-.407-.14-.471-.256-.337-.62.013-2.145.611-3.59zm-.803-1.01c-.372.816-.892 2.118-1.039 3.309-.06-.423-.2-.87-.425-1.324-.162-.329-.317-.676-.467-1.011-.188-.418-.369-.825-.563-1.198.565-.36 1.054-.49 1.489-.394q.488.107 1.004.618z"/><defs><linearGradient id="a" x1="78.08" x2="25.714" y1="35.776" y2="86.785" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="b" x1="84.25" x2="30.299" y1="111.488" y2="111.488" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="c" x1="17.111" x2="13.391" y1="71.269" y2="85.995" gradientUnits="userSpaceOnUse"><stop offset=".15" stop-color="#F1F2F3"/><stop offset=".26" stop-color="#E5E8EA"/><stop offset=".47" stop-color="#D2D9DD"/><stop offset=".7" stop-color="#C7CFD5"/><stop offset=".94" stop-color="#C4CDD3"/></linearGradient><linearGradient id="d" x1="29.888" x2="6.223" y1="108.048" y2="108.048" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="e" x1="116.648" x2="94.438" y1="76.09" y2="76.09" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="f" x1="76.249" x2="43.159" y1="74.759" y2="50.219" gradientUnits="userSpaceOnUse"><stop stop-color="#134395"/><stop offset="1" stop-color="#0E2050"/></linearGradient><linearGradient id="g" x1="54.206" x2="39.718" y1="64.433" y2="64.433" gradientUnits="userSpaceOnUse"><stop stop-color="#FFFDFE"/><stop offset=".05" stop-color="#FBFBFD"/><stop offset=".25" stop-color="#EFF6FD"/><stop offset=".45" stop-color="#EBF5FD"/><stop offset=".78" stop-color="#D5EDFC"/><stop offset="1" stop-color="#CDEAFC"/></linearGradient><linearGradient id="h" x1="77.93" x2="63.766" y1="56.081" y2="52.986" gradientUnits="userSpaceOnUse"><stop stop-color="#FFFDFE"/><stop offset=".05" stop-color="#FBFBFD"/><stop offset=".25" stop-color="#EFF6FD"/><stop offset=".45" stop-color="#EBF5FD"/><stop offset=".78" stop-color="#D5EDFC"/><stop offset="1" stop-color="#CDEAFC"/></linearGradient></defs></svg>'}</div>\n <div class="fj-feedback-speech-bubble">\n <p>${d(`${this.form.feedbackType}.form.description`)}</p>\n </div>\n </div>\n <div class="fj-feedback-body">\n <label>\n <p>${d(`${this.form.feedbackType}.form.field.title`)} ${h()}</p>\n <input required type="text" name="feedbackTitle" maxlength="255" class="fj-feedback-answer-input" value="${fl(this.form.feedbackTitle)}">\n </label>\n <label>\n <p>${d(`${this.form.feedbackType}.form.field.description`)} ${h()}</p>\n <textarea required rows="6" name="feedbackDescription" maxlength="10000" class="fj-feedback-answer-input">${fl(this.form.feedbackDescription)}</textarea>\n </label>\n ${this.renderConsent()}\n ${Cl()}\n </div>\n `}renderDecisionList(){let e="";return e=this.decisionsLoading?`<div class="fj-feedback-decision-loading">${d("decision.loading")}</div>`:0===this.decisions.length?`<div class="fj-feedback-decision-empty">${d("decision.empty")}</div>`:`\n <div class="fj-feedback-decision-list">\n ${this.decisions.map(e=>this.renderDecisionCard(e)).join("")}\n </div>\n `,`\n <div class="fj-feedback-header">\n <div class="fj-feedback-robot" aria-hidden="true">${n}</div>\n <div class="fj-feedback-speech-bubble">\n <p>${d("decision.description")}</p>\n </div>\n </div>\n <div class="fj-feedback-body">\n ${e}\n </div>\n `}renderDecisionCard(e){var t;const n=fl(e.type),o=fl(null===(t=e.statusLabel)||void 0===t?void 0:t.trim()),r=fl(d(`decision.card.type.${e.type}`));return`\n <div class="fj-feedback-card" data-type="${n}">\n <div class="fj-feedback-card-header">\n <div class="fj-feedback-card-type">\n <span class="fj-feedback-card-type-icon" aria-hidden="true">${"issue"===e.type?'<svg xmlns="http://www.w3.org/2000/svg" width="21" height="21" fill="none"><path fill="#EE7B30" fill-rule="evenodd" d="M14.175 5.185A7.35 7.35 0 1 1 4.719 7.01c.211-.27.62-.23.832.04q.44.556.99 1.001c.35.283.826-.05.812-.5l-.003-.2c0-.965.217-1.879.604-2.696a6.33 6.33 0 0 1 2.61-2.798c.26-.146.578-.017.71.25a7.3 7.3 0 0 0 2.9 3.078M14.7 12.6a4.2 4.2 0 0 1-4.2 4.2c-2.009 0-3.697-1.468-4.105-3.34-.099-.45.461-.676.854-.435a4.2 4.2 0 0 0 1.682.592c.317.04.557-.251.535-.57a6.27 6.27 0 0 1 1.38-4.402.47.47 0 0 1 .453-.169A4.2 4.2 0 0 1 14.7 12.6" clip-rule="evenodd"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" fill="none"><path fill="#3E91A8" fill-rule="evenodd" d="M15.123 11.185a3.15 3.15 0 0 0 0-5.57 3.15 3.15 0 0 0-3.938-3.938 3.15 3.15 0 0 0-5.57 0 3.15 3.15 0 0 0-3.938 3.938 3.15 3.15 0 0 0 0 5.57 3.15 3.15 0 0 0 3.938 3.938 3.15 3.15 0 0 0 5.57 0 3.15 3.15 0 0 0 3.938-3.938M12.45 6.5a.788.788 0 0 0-1.273-.927l-3.658 5.03L5.545 8.63a.788.788 0 0 0-1.113 1.113l2.625 2.625a.787.787 0 0 0 1.193-.093z" clip-rule="evenodd"/></svg>'}</span>\n <span class="fj-feedback-card-type-label">${r}</span>\n </div>\n\n ${o?`\n <div class="fj-feedback-card-status fj-feedback-decision-status-${o}">\n <span class="fj-feedback-card-status-label">\n ${fl(d(`decision.status.${e.type}.${e.statusLabel}`))}\n </span>\n </div>\n `:""}\n </div>\n\n <div class="fj-feedback-card-body">\n <h3 class="fj-feedback-card-title">${fl(e.title)}</h3>\n <p class="fj-feedback-card-description">${fl(e.description)}</p>\n </div>\n\n <div class="fj-feedback-card-footer">\n <span class="fj-feedback-card-date-icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="15" fill="none"><path stroke="#64748B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.083.75v2.667M9.417.75v2.667M.75 6.083h12M4.083 8.75h.007m2.66 0h.007m2.66 0h.006m-5.34 2.667h.007m2.66 0h.007m2.66 0h.006m-7.34-9.334h9.334c.736 0 1.333.597 1.333 1.334v9.333c0 .736-.597 1.333-1.333 1.333H2.083A1.333 1.333 0 0 1 .75 12.75V3.417c0-.737.597-1.334 1.333-1.334"/></svg></span>\n <span class="fj-feedback-card-date">\n ${d("decision.card.date_prefix")} ${this.formatDecisionDate(e.createdAt)}\n </span>\n </div>\n </div>\n `}renderConsent(){let e="";return this.hasConsentFeedback&&(e+=`\n <label class="fj-feedback-consent">\n <input type="checkbox" name="consentFeedback" value="true" required>\n <p>\n ${d("consent.feedback.label")}<span aria-hidden="true">*</span><span class="fj-sr-only">(${d("global.required")})</span>\n <span class="fj-feedback-tooltip" title="${d("consent.feedback.tooltip")}" aria-label="${d("consent.feedback.tooltip")}">\n <span aria-hidden="true">${t}</span>\n </span>\n </p>\n </label>\n `),this.hasConsentScreenFeedback&&(e+=`\n <label class="fj-feedback-consent">\n <input type="checkbox" name="consentScreenFeedback" value="true">\n <p>\n ${d("consent.screen.label")}\n <span class="fj-feedback-tooltip" title="${d("consent.screen.tooltip")}" aria-label="${d("consent.screen.tooltip")}">\n <span aria-hidden="true">${t}</span>\n </span>\n </p>\n </label>\n `),this.hasConsentAttachment&&(e+=`\n <label class="fj-feedback-consent fj-feedback-consent-file">\n <input type="file" name="consentAttachmentFile" accept=".jpg,.jpeg,.png,.gif,.webp,.bmp,.tif,.tiff,.heic,.heif,.mp4,.webm,.mov,.pdf,.txt,.log,.csv,.json,.har,.rtf,.eml,.zip,.gz,.7z,.rar,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.odt,.ods,.odp" style="display:none;">\n <button type="button" class="fj-feedback-btn fj-feedback-btn-file">${d("consent.attachment.button")} <span class="fj-feedback-tooltip" title="${d("consent.attachment.tooltip")}" aria-label="${d("consent.attachment.tooltip")}"><span aria-hidden="true">${t}</span></span></button>\n <div class="fj-feedback-file-name" style="display:none;"></div>\n </label>\n `),e}attachFormEvents(e){var t,n;if(!e)return;this.submitHandler&&e.removeEventListener("submit",this.submitHandler);const o=e.querySelector('input[type="file"][name="consentAttachmentFile"]'),r=e.querySelector(".fj-feedback-btn-file"),i=e.querySelector(".fj-feedback-file-name");let s=e.querySelector(".fj-feedback-file-error");!s&&i&&(s=document.createElement("div"),s.className="fj-feedback-file-error",s.style.color="red",s.setAttribute("role","alert"),null===(t=i.parentNode)||void 0===t||t.insertBefore(s,i.nextSibling)),o&&r&&i&&(r.addEventListener("click",e=>{e.preventDefault(),o.click()}),o.addEventListener("change",()=>{if(o.files&&o.files.length>0){const e=o.files[0];e.size>10485760?(i.textContent="",i.style.display="none",s&&(s.textContent=d("consent.attachment.file_too_large")),o.value="",this.form.consentAttachmentFile=null):(i.textContent=e.name,i.style.display="",s&&(s.textContent=""),this.form.consentAttachmentFile=e)}else i.textContent="",i.style.display="none",s&&(s.textContent=""),this.form.consentAttachmentFile=null}));for(const t of["feedbackTitle","feedbackDescription"])null===(n=e.querySelector(`[name="${t}"]`))||void 0===n||n.addEventListener("input",e=>{this.form[t]=e.target.value,this.saveDraft()});this.submitHandler=async t=>{t.preventDefault();const n=e.querySelectorAll("input, textarea"),o=document.querySelector(".fj-feedback-btn-submit");o&&(o.disabled=!0,o.classList.add("fj-feedback-btn-loading"),o.textContent=d("global.sending"));for(const e of n)"feedbackTitle"===e.name&&(this.form.feedbackTitle=e.value),"feedbackDescription"===e.name&&(this.form.feedbackDescription=e.value),"consentFeedback"===e.name&&(this.form.consentFeedbackAgree=e.checked),"consentScreenFeedback"===e.name&&(this.form.consentScreenFeedback=e.checked),"consentAttachmentFile"===e.name&&e instanceof HTMLInputElement&&e.files&&e.files.length>0&&(this.form.consentAttachmentFile=e.files[0]);this.form.honeypot=Sl(e),await this.submit()},e.addEventListener("submit",this.submitHandler)}async submit(){if(!this.form.isValid(this.hasConsentFeedback))return void this.render("form");const e=await this.form.toFormData(this.options);this.submitErrorKey="global.submit_error";try{const t=await xl(`${this.options.apiUrl}/api/import_feedback`,{method:"POST",body:e,timeout:6e4,signal:this.abortController.signal});if(!t.ok)throw this.submitErrorKey=await async function(e){if(429===e.status)return"global.rate_limited";if(400!==e.status)return"global.submit_error";let t="";try{const n=await e.json();t="string"==typeof n.errors?n.errors:""}catch(e){}return t.includes(".attachment:")?"consent.attachment.invalid_type":"global.submit_error"}(t),new Error("Failed to submit feedback");wl(this.draftKey,null),this.render("thanks")}catch(e){if(this.destroyed)return;this.submitError=!0,this.render("form")}}formatDecisionDate(e){const t=new Date(e),n=String(t.getDate()).padStart(2,"0"),o=String(t.getMonth()+1).padStart(2,"0"),r=t.getFullYear(),i=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0");return`${n}/${o}/${r} ${d("global.date_at")} ${i}:${s}`}}var Dl='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="31" fill="none"><path stroke="#4966D8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m15.75.75 4.635 9.39 10.365 1.515-7.5 7.305 1.77 10.32-9.27-4.875-9.27 4.875 1.77-10.32-7.5-7.305 10.365-1.515z"/></svg>',Tl='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="31" fill="none"><path fill="#4966D8" stroke="#4966D8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m15.75.75 4.635 9.39 10.365 1.515-7.5 7.305 1.77 10.32-9.27-4.875-9.27 4.875 1.77-10.32-7.5-7.305 10.365-1.515z"/></svg>';const Bl="fj-feedbot-";class Rl{constructor(){this.quantityAnswer=0,this.quantityQuestion="",this.qualityAnswer="",this.qualityQuestion="",this.closedAnswer=0,this.closedQuestion="",this.anonymousAnswer=!1,this.answerStatus="SENT",this.honeypot=""}toJson(e,t){var n,o,r;const i="function"==typeof e.user?e.user():e.user;return{quantityAnswer:this.quantityAnswer,quantityQuestion:null!==(n=null==t?void 0:t.quantityQuestion)&&void 0!==n?n:"",qualityAnswer:this.qualityAnswer,qualityQuestion:null!==(o=null==t?void 0:t.qualityQuestion)&&void 0!==o?o:"",anonymousAnswer:this.anonymousAnswer,closedAnswer:this.closedAnswer,closedQuestion:null!==(r=null==t?void 0:t.closedQuestion)&&void 0!==r?r:"",userId:null==i?void 0:i.id,userName:this.anonymousAnswer?null:(null==i?void 0:i.fullName)||null,uuidSurvey:`/api/surveys/${e.surveyId}`,answerStatus:this.answerStatus,widgetVersion:"2.5.0",widgetLocale:c(),fjHp:this.honeypot}}}class Fl{get user(){return"function"==typeof this.options.user?this.options.user():this.options.user}constructor(e){var t,n;this.ratingError=!1,this.submitError=!1,this.submitErrorKey="global.submit_error",this.survey=null,this.previouslyFocusedElement=null,this.abortController=new AbortController,this.destroyed=!1,l(null!==(t=e.locale)&&void 0!==t?t:r.FR),this.options=e;const o=null!==(n=e.apiUrl)&&void 0!==n?n:e.baseApiUrl;if(!o)throw new Error("Feedbot: `apiUrl` option is required");this.apiUrl=o.trim().replace(/\/$/,""),this.form=new Rl,this.integrationTest=new vl({modalId:"fj-feedbot-modal",bodyOpenClass:"fj-feedbot-open",toggleHtmlClass:!1,btnPrimaryClasses:"fj-btn",btnOutlineClasses:"fj-btn fj-btn-secondary",btnLoadingClass:`${Bl}btn-loading`,pendingTitleKey:"integration_test.pending.feedbot.title",pendingTextKey:"integration_test.pending.feedbot.text",checkingTextKey:"integration_test.checking.feedbot_text",cancelLabelKey:"feedbot.cancel",connectivityCheckUrl:`${this.apiUrl}/api/connectivity_check/survey`,connectivityCheckBody:{uuidSurvey:e.surveyId},signal:this.abortController.signal,onSuccess:()=>this.increment()})}destroy(){var e;this.destroyed||(this.destroyed=!0,this.abortController.abort(),null===(e=document.getElementById(`${Bl}modal`))||void 0===e||e.remove(),document.body.classList.remove(`${Bl}open`),this.previouslyFocusedElement=null)}showThanks(e=!1){this.form.answerStatus=e?"DECLINED":"SENT",this.render("thanks")}render(e){var t,o,r,i,s;if(this.destroyed)return;const a=null!==(t=document.getElementById(`${Bl}modal`))&&void 0!==t?t:document.createElement("div");if(null===e||!this.survey)return void(this.submitError||(this.form=new Rl,a.classList.add("fj-closing"),a.addEventListener("animationend",()=>{a.remove(),document.body.classList.remove(`${Bl}open`),this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)},{once:!0})));"form"!==e&&"thanks"!==e||(this.previouslyFocusedElement||(this.previouslyFocusedElement=document.activeElement),document.body.classList.add(`${Bl}open`));const l=!a.parentElement;if(a.id=`${Bl}modal`,l&&(a.className=`fj ${Bl}modal`),"form"===e||"thanks"===e?(a.setAttribute("role","dialog"),a.setAttribute("aria-modal","true")):(a.removeAttribute("role"),a.removeAttribute("aria-modal")),"bubble"===e&&(a.innerHTML=`<button type="button" class="${Bl}bubble" aria-label="${d("a11y.feedbot_bubble")}">\n <span class="${Bl}text">${fl(this.survey.bubbleText||d("feedbot.bubble_default"))}</span>\n <span class="${Bl}robot" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 164 213"><path fill="#2C3D82" d="M75.638 144.771s4.61 1.009 6.734 1.502c2.127.495 6.279 1.444 6.988 1.689.711.245 2.07.871 2.445 2.088.374 1.217.29 1.986.428 4.337l-14.756-3.43c-.79-.183-1.766-1.449-1.84-6.186zM85.8 159.927c4.318 1.003 7.434 1.745 7.434 1.745-.2-2.053-.137-2.721-.538-3.792-.4-1.072-1.75-1.653-2.452-1.885-.702-.233-4.796-1.17-6.891-1.658a857 857 0 0 0-6.637-1.487c.102 2.064.198 3.46.366 4.398.24 1.34.028 1.911 1.26 5.735 1.126 3.498 1.885 5.785 5.463 9.237 0 0 3.41-3.331 2.406-5.134-.973-1.748-.914-1.508-1.632-3.269-.378-.923-.622-1.283-.749-2.493-.105-1 .938-1.64 1.97-1.401z"/><path fill="#2C3D82" d="M75.638 144.771s.875 11.683 1.864 14.382c.99 2.7 4.904-1.946 4.904-1.946l-.752-9.124-6.018-3.31z"/><path fill="url(#a)" d="M149.477 102.154c8.021-24.582-12.008-52.842-44.736-63.12s-65.761 1.318-73.782 25.9c-8.02 24.582 12.009 52.842 44.737 63.12 32.727 10.278 65.761-1.318 73.781-25.9"/><path fill="url(#b)" d="M85.05 135.955c-20.571-1.738-32.256-12.078-38.342-1.516-5.127 8.899 6.953 35.565 32.601 38.829 26.471 3.367 44.456-18.622 41.84-29.991-2.146-9.331-14.715-5.515-36.098-7.321z"/><path fill="url(#c)" d="M138.875 121.36c-1.907 1.048-5.849 2.352-5.653-.863.579-9.443 7.191-18.732 10.361-22.806 1.725-2.213 7.107-7.247 7.925-5.126 2.5 6.48 1.507 12.387-2.025 18.686-3.213 5.73-8.703 9.066-10.61 10.113v-.004z"/><path fill="url(#d)" d="M127.617 135.086c-1.84.833-1.308 4.8-1.842 7.029-.82 3.412-2.661 6.827-3.684 11.444-.709 3.195 2.048 5.824 5.731 6.025 3.684.201 14.738-.804 19.854-5.019 3.892-3.209 7.574-6.828 7.574-10.642 0-4.824-13.237-8.101-16.986-8.837-3.071-.603-7.982-1.204-10.643 0z"/><path fill="url(#e)" d="M8.908 88.098c2.476.844 5.527 4.818 9.415 5.824 3.888 1.003 12.69 1.807 12.895 8.836.205 7.028-4.013 14.333-8.313 15.938-4.299 1.606-11.865.098-15.884-4.408-4.414-4.95-8.142-15.343-6.71-19.763C1.745 90.108 4.2 86.493 8.909 88.1z"/><path fill="url(#f)" d="M91.46 60.518c16.845 6.768 28.353 17.536 30.023 19.632 1.28 1.605-3.851 8.591-8.026 16.431-3.912 7.345-5.99 15.781-7.646 16.398-2.352.876-18.514-1.918-33.043-8.71-16.29-7.616-27.939-16.49-28.442-18.858-.582-2.738 1.21-13.093 4.37-19.291 3.473-6.394 8.312-12.774 11.21-14.005 2.37-1.007 15.402 1.911 31.556 8.401h-.002z"/><path fill="#fff" d="M72.78 39.482c-3.812.4-12.452 1.44-13.116 5.665-.667 4.226 5.654 4.257 8.94 3.757s9.34-.897 12.81-.622c3.47.272 6.344-2.334 5.093-4.822-1.25-2.488-8.378-4.537-13.727-3.976zm-14.535 96.519c-2.103-.285-5.225 1.571-5.378 3.759s-.676 4.624-.11 6.587c.57 1.962 2.164 6.878 5.247 8.184s4.967 2.121 6.282.974 1.597-2.64.658-4.351c-.94-1.712-3.447-3.667-2.72-6.503.727-2.835.04-8.103-3.98-8.647zM3.339 94.533c-.095 1.306.57 4.536 1.839 6.051s3.917.165 3.774-2.334 1.813-6.297.259-7.348c-1.556-1.05-5.55-.88-5.872 3.633zm139.068 46.434c-.397-2.125-4.915-3.684-7.928-3.864s-4.65 1.885-4.211 2.946c.438 1.061 2.632 2.832 6.39 1.636 1.627-.517 6.006.644 5.753-.72h-.004z"/><path fill="#B4BFC6" d="M10.767 115.942s-5.854-3.633-4.061-6.915c.91-1.664 2.674-2.836 5.734-2.46s5.838 2.144 8.326.831c2.486-1.313 3.782-2.196 6.066-2.486 1.966-.25 2.096 1.507 2.224 2.827-.57 1.993-1.465 4.886-1.973 5.631-.507.747-2.617 3.294-5.388 3.981-2.994.741-5.64 1.117-10.928-1.411zm53.929 15.801c.144 1.28 1.88 3.755 4.362 4.816 5.639 2.413 7.861.663 19.088 3.973 8.256 2.433 18.584 2.87 22.932 1.449s5.653-3.981 3.044-4.692c0 0-1.369-.411-6.257-.696-4.169-.242-11.666-.376-14.683-.259-4.957.194-16.978-1.609-20.843-2.637a623 623 0 0 0-7.64-1.958zm18.844-5.528c5.49 1.75 13.787 2.278 19.884.427 7.237-2.198 18.895-3.701 21.572-3.126 1.921.414 2.466 1.755 2.268 2.399 0 0-7.34 3.858-17.763 5.208s-17.764.643-22.615-.259c-2.698-.5-8.36-1.837-13.494-3.549-.646-2.182 6.197-2.362 10.148-1.101zm63.098-31.651c-2.057.059-5.749 2.559-10.942 10.058-5.386 7.775-6.341 13.159-6.113 15.336.228 2.175.916 3.291 1.529 3.965 0 0 1.683-.984 2.752-1.736 0 0-.939-.365-.415-3.708.224-1.437.859-3.787 1.726-6.301 1.116-3.231 2.69-5.892 4.151-8.357 1.944-3.28 6.663-8.959 7.31-9.256zm-17.059 63.05c-1.539-1.343.286-5.876 1.996-6.828 1.711-.951 4.334-.839 6.389-1.23 2.053-.392 4.334-1.289 6.047-2.014 1.712-.728 4.164-.224 5.248.951 1.083 1.176.03 2.334-.893 3.283-1.254 1.289-3.372 2.49-5.895 3.546-3.479 1.456-10.553 2.294-12.892 2.294z"/><path fill="#121442" d="M107.469 110.524c-.552 1.222-1.154 2.27-1.655 2.455-2.352.876-18.514-1.918-33.043-8.71-16.29-7.616-27.94-16.49-28.442-18.858-.583-2.738 1.21-13.093 4.37-19.291 3.473-6.394 8.311-12.774 11.209-14.005.695-.295 2.31-.253 4.651.12 0 0-7.326 6.535-10.662 12.99-2.217 4.288-3.881 8.353-4.872 12.374-.61 2.476-.95 4.794-.697 6.401.285 1.797 15.698 11.19 22.53 14.422 7.394 3.499 24.53 10.071 36.61 12.1h.001z"/><path fill="#425CC2" d="M129.28 31.407c6.615 0 11.977-5.261 11.977-11.751s-5.362-11.75-11.977-11.75-11.977 5.26-11.977 11.75 5.362 11.75 11.977 11.75"/><path fill="#B6C2EF" d="M134.127 13.253c1.491.993 1.242 3.054 1.504 5.857.241 2.587-3.741 6.754-6.733 6.705-2.994-.05-5.84-1.175-7.438-4.072-1.536-2.787-1.358-4.416-.569-6.366.924-2.274 3.914-4.596 7.48-4.463s4.182 1.292 5.756 2.339"/><path fill="#8094E4" d="M135.528 26.382c1.449-1.023 3.687-3.922 3.045-7.545-.737-4.17-2.427-6.858-5.392-6.43-3.019.435-5.455 1.52-5.386 4.357.07 2.837 1.606 4.927-.251 6.754s.066 5.546 2.247 5.285c3.304-.393 4.332-1.432 5.737-2.422"/><path fill="#EDF0FB" d="M125.967 18.031c1.304-.603 3.81-1.72 4.322-3.009.511-1.288.563-3.096-.76-4.07-1.324-.972-3.193-1.421-4.745-.267s-4.131 3.017-3.153 4.74c.977 1.723.829 3.215 2.479 3 1.648-.216 1.859-.394 1.859-.394z"/><path fill="#4966D8" d="M139.707 5.668c-.271 0-.544-.08-.781-.248-1.449-1.025-3.428-1.74-3.448-1.747-.693-.248-1.05-1-.798-1.68a1.34 1.34 0 0 1 1.712-.783c.095.033 2.342.842 4.097 2.082.599.423.734 1.243.303 1.83-.26.355-.67.546-1.085.546m-15.624-2.365a1.335 1.335 0 0 1-1.279-.934 1.31 1.31 0 0 1 .894-1.633c.097-.028 2.388-.697 4.554-.736.736-.01 1.347.563 1.359 1.289a1.32 1.32 0 0 1-1.313 1.334c-1.8.031-3.81.619-3.83.624a1.3 1.3 0 0 1-.385.056m-9.673 6.288c-.288 0-.577-.09-.823-.278a1.296 1.296 0 0 1-.23-1.84c.064-.08 1.568-1.957 3.35-3.232a1.354 1.354 0 0 1 1.868.287 1.295 1.295 0 0 1-.292 1.832c-1.485 1.062-2.807 2.712-2.82 2.728-.263.33-.657.503-1.053.503m-4.05 10.85h-.022a1.32 1.32 0 0 1-1.315-1.33c0-.102.046-2.488.683-4.553a1.34 1.34 0 0 1 1.666-.876c.706.21 1.107.942.893 1.635-.53 1.717-.569 3.811-.569 3.832-.01.717-.607 1.292-1.336 1.292m3.037 11.022c-.429 0-.85-.2-1.108-.577-.057-.082-1.392-2.028-2.073-4.044a1.307 1.307 0 0 1 .849-1.657c.7-.227 1.457.145 1.689.832.567 1.675 1.738 3.383 1.748 3.4.414.6.253 1.415-.358 1.822-.23.152-.49.226-.748.226zm9.323 7.191q-.22.001-.439-.074c-.094-.033-2.354-.81-4.125-2.026a1.296 1.296 0 0 1-.33-1.825 1.354 1.354 0 0 1 1.861-.324c1.463 1.004 3.453 1.69 3.473 1.698.697.24 1.064.986.821 1.67-.192.54-.709.88-1.261.88m7.315 1.13a1.324 1.324 0 0 1-1.336-1.308 1.324 1.324 0 0 1 1.333-1.315c1.837-.005 3.894-.579 3.913-.586a1.34 1.34 0 0 1 1.654.897 1.306 1.306 0 0 1-.914 1.623c-.098.028-2.44.681-4.648.687h-.003zm11.033-4.069c-.403 0-.802-.179-1.066-.518a1.294 1.294 0 0 1 .255-1.837c1.447-1.08 2.741-2.761 2.753-2.779a1.353 1.353 0 0 1 1.871-.262c.59.434.711 1.255.27 1.834-.061.08-1.524 1.988-3.276 3.294a1.35 1.35 0 0 1-.807.268m6.33-9.494q-.21.001-.419-.067a1.31 1.31 0 0 1-.85-1.657c.574-1.701.674-3.808.676-3.829.032-.724.664-1.283 1.393-1.252a1.323 1.323 0 0 1 1.278 1.366c-.004.1-.116 2.486-.807 4.539-.186.55-.708.9-1.269.9zm.203-12.383c-.413 0-.82-.187-1.082-.54-.95-1.282-2.443-2.75-2.459-2.765a1.294 1.294 0 0 1 0-1.855 1.356 1.356 0 0 1 1.891 0c.068.067 1.655 1.626 2.73 3.076a1.295 1.295 0 0 1-.294 1.832c-.237.17-.513.251-.786.251"/><path fill="#2C3D82" d="M83.671 143.336s-11.91 1.768-11.052 15.497c.21 3.373 2.577 8.506 7.194 11.349 0 0-6.118-7.924-2.505-15.518 2.903-6.106 10.37-3.527 12.121-10.943 0 0-2.552-.834-5.758-.385"/><path fill="#2C3D82" d="M87.824 154.05c2.977 0 5.39-2.368 5.39-5.289s-2.413-5.288-5.39-5.288-5.39 2.368-5.39 5.288 2.413 5.289 5.39 5.289m-6.089 6.106c1.93 0 3.496-1.535 3.496-3.43 0-1.894-1.565-3.43-3.496-3.43s-3.497 1.536-3.497 3.43 1.566 3.43 3.497 3.43"/><path fill="#D9EFFD" d="M64.834 75.612c4.736 1.12 7.376 7.755 10.088 6.095 2.89-1.769-1.377-10.457-7.779-12.734-6.21-2.21-16.258 4.87-14.486 6.96 2.617 3.084 7.032-1.537 12.176-.32zm32.902 13.02c4.261 2.333 5.426 9.563 8.488 8.252 3.291-1.409 1.374-9.938-4.813-14.001-5.784-3.798-16.639.228-15.57 2.894 1.546 3.858 7.413.4 11.895 2.855"/><ellipse cx="83.323" cy="192.924" fill="url(#g)" fill-opacity=".6" rx="30.304" ry="6.774"/><ellipse cx="82.254" cy="207.898" fill="url(#h)" fill-opacity=".6" rx="21.391" ry="4.635"/><defs><linearGradient id="a" x1="54.223" x2="125.495" y1="48.671" y2="120.41" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="b" x1="45.55" x2="121.402" y1="151.683" y2="151.683" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="c" x1="139.942" x2="144.858" y1="96.966" y2="117.079" gradientUnits="userSpaceOnUse"><stop offset=".15" stop-color="#F1F2F3"/><stop offset=".26" stop-color="#E5E8EA"/><stop offset=".47" stop-color="#D2D9DD"/><stop offset=".7" stop-color="#C7CFD5"/><stop offset=".94" stop-color="#C4CDD3"/></linearGradient><linearGradient id="d" x1="121.979" x2="155.25" y1="147" y2="147" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="e" x1="0" x2="31.225" y1="103.516" y2="103.516" gradientUnits="userSpaceOnUse"><stop stop-color="#F1F2F3"/><stop offset="1" stop-color="#C4CDD3"/></linearGradient><linearGradient id="f" x1="56.797" x2="102.227" y1="101.704" y2="66.889" gradientUnits="userSpaceOnUse"><stop stop-color="#134395"/><stop offset="1" stop-color="#0E2050"/></linearGradient><linearGradient id="g" x1="83.323" x2="83.323" y1="186.15" y2="199.698" gradientUnits="userSpaceOnUse"><stop stop-color="#EDF0FB"/><stop offset="1" stop-color="#B6C2EF"/></linearGradient><linearGradient id="h" x1="82.254" x2="82.254" y1="203.264" y2="212.533" gradientUnits="userSpaceOnUse"><stop stop-color="#EDF0FB"/><stop offset="1" stop-color="#8094E4"/></linearGradient></defs></svg></span>\n </button>`,null===(o=a.querySelector(`.${Bl}bubble`))||void 0===o||o.addEventListener("click",()=>{this.render("form")})),"form"===e){a.innerHTML=`<form class="${Bl}form" data-version="v2.5.0" aria-labelledby="${Bl}form-title">\n <div class="${Bl}header">\n <div id="${Bl}form-title" class="${Bl}title">${fl(this.survey.title)}</div>\n <div class="${Bl}subtitle">${fl(this.survey.subTitle)}</div>\n </div>\n <div class="${Bl}content">\n <div class="${Bl}presentation-wrapper">\n <div class="${Bl}robot" aria-hidden="true">${n}</div>\n <div class="${Bl}presentation">${fl(this.survey.mainQuestion)}</div>\n </div>\n ${this.survey.quantityQuestion?`<div class="${Bl}rating" role="group" aria-labelledby="${Bl}rating-label">\n <label id="${Bl}rating-label"><p> ${fl(this.survey.quantityQuestion)} ${h(`${Bl}required`)}</p></label>\n <div class="${Bl}stars">\n <div class="${Bl}stars-wrapper" role="radiogroup" aria-labelledby="${Bl}rating-label">\n ${[...Array(5).keys()].reverse().map(e=>{return`\n <button\n type="button"\n role="radio"\n aria-checked="${e<this.form.quantityAnswer}"\n data-value="${e+1}"\n aria-label="${t={n:e+1,s:0===e?"":"s"},Object.entries(t).reduce((e,[t,n])=>e.replace(new RegExp(`\\{${t}\\}`,"g"),String(n)),d("feedbot.star_label"))}"\n >\n ${e<this.form.quantityAnswer?Tl:Dl}\n </button>`;var t}).join("")}\n </div>\n </div>\n </div>\n ${this.ratingError?`<p class="fj-error" aria-live="polite">${d("feedbot.rating_error")}</p>`:""}`:""}\n ${this.survey.qualityQuestion?`<label class="${Bl}quality">\n <p>${fl(this.survey.qualityQuestion)} ${h(`${Bl}required`)}</p>\n <textarea name="qualityAnswer" rows="6" required maxlength="1000">${fl(this.form.qualityAnswer)}</textarea>\n </label>`:""}\n ${this.survey.closedQuestion?`<div class="${Bl}closed ${Bl}label">\n <p id="${Bl}closed-label">${fl(this.survey.closedQuestion)} ${h(`${Bl}required`)}</p>\n <div class="${Bl}closed-answers" role="radiogroup" aria-labelledby="${Bl}closed-label">\n <input type="radio" name="closedAnswer" value="1" id="${Bl}r1" required>\n <label for="${Bl}r1">${fl(this.survey.closedAnswerOne)}</label>\n <input type="radio" name="closedAnswer" value="2" id="${Bl}r2" required>\n <label for="${Bl}r2">${fl(this.survey.closedAnswerTwo)}</label>\n </div>\n </div>`:""}\n \n <label class="fj-checkbox-label ${Bl}anonymous">\n <input type="checkbox" name="anonymousAnswer" ${this.form.anonymousAnswer?"checked":""}>\n <p>${d("feedbot.anonymous")}</p>\n </label>\n ${this.submitError?`<p class="fj-error" aria-live="assertive">${d(this.submitErrorKey)}</p>`:""}\n ${Cl()}\n </div>\n <div class="${Bl}footer-buttons">\n <button type="button" class="fj-btn fj-btn-secondary ${Bl}btn-decline">${d("feedbot.cancel")}</button>\n <button type="submit" class="fj-btn ${Bl}btn-submit">${d("feedbot.submit")}</button>\n </div>\n </form>`;const e=a.querySelectorAll(`.${Bl}rating button`);for(const t of e)t.addEventListener("click",()=>{const n=Number.parseInt(t.dataset.value||"0",10);this.form.quantityAnswer=n;for(const t of e){const e=Number.parseInt(t.dataset.value||"0",10);t.innerHTML=e<=n?Tl:Dl,t.setAttribute("aria-checked",e===n?"true":"false")}});const t=a.querySelector("form"),o=a.querySelector(`.${Bl}btn-submit`),r=a.querySelector(`.${Bl}btn-decline`),i=(e,t)=>{e&&(e.disabled=!0,e.classList.add("fj-btn-loading"),e.textContent=d("global.sending")),t&&(t.disabled=!0)},s=n=>{var a;if(n.preventDefault(),!t)return;const l=t.querySelectorAll("input, textarea");for(const e of l)"quantityAnswer"===e.name&&(this.form.quantityAnswer=Number.parseInt(e.value,10)),"qualityAnswer"===e.name&&(this.form.qualityAnswer=e.value),"anonymousAnswer"===e.name&&(this.form.anonymousAnswer=e.checked);this.form.honeypot=Sl(t);const c=t.querySelector('input[name="closedAnswer"]:checked');if(c&&(this.form.closedAnswer=Number.parseInt(c.value,10)),null===(a=this.survey)||void 0===a?void 0:a.quantityQuestion){this.form.quantityAnswer=0;for(const t of e)"true"===t.getAttribute("aria-checked")&&(this.form.quantityAnswer=Number.parseInt(t.dataset.value||"0",10));if(0===this.form.quantityAnswer)return this.ratingError=!0,void this.render("form")}i(o,r),this.submit(),t.removeEventListener("submit",s)};null==t||t.addEventListener("submit",s),null==r||r.addEventListener("click",()=>{i(r,o),this.form.answerStatus="DECLINED",this.submit()})}if("thanks"===e){const e="DECLINED"===this.form.answerStatus;a.innerHTML=e?`<div class="${Bl}thanks" data-version="v2.5.0" aria-labelledby="${Bl}thanks-title" aria-describedby="${Bl}thanks-subtitle">\n <div id="${Bl}thanks-title" class="${Bl}title">${d("feedbot.thanks.declined.title")}</div>\n <div id="${Bl}thanks-subtitle" class="${Bl}subtitle">${d("feedbot.thanks.declined.sub_title")}</div>\n <button class="fj-btn ${Bl}btn-close">${d("global.close")}</button>\n </div>`:`<div class="${Bl}thanks" data-version="v2.5.0" aria-labelledby="${Bl}thanks-title" aria-describedby="${Bl}thanks-subtitle">\n <div id="${Bl}thanks-title" class="${Bl}title">${d("feedbot.thanks.title")}</div>\n <div id="${Bl}thanks-subtitle" class="${Bl}subtitle">${d("feedbot.thanks.sub_title")}</div>\n <button class="fj-btn ${Bl}btn-close">${d("global.close")}</button>\n </div>`,null===(r=a.querySelector(`.${Bl}btn-close`))||void 0===r||r.addEventListener("click",()=>{this.render(null)})}if(l&&(a.addEventListener("keydown",e=>{"Escape"===e.key&&this.render(null),"dialog"===a.getAttribute("role")&&dl(a,e)}),document.body.appendChild(a)),"form"===e){const e=a.querySelector('textarea, input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"])');e?e.focus():null===(i=a.querySelector("button:not([disabled])"))||void 0===i||i.focus()}else"thanks"===e&&(null===(s=a.querySelector(`.${Bl}btn-close`))||void 0===s||s.focus())}async increment(){var e;try{const t=await xl(`${this.apiUrl}/api/survey_logs/increment`,{method:"POST",signal:this.abortController.signal,body:JSON.stringify({uuidSurvey:this.options.surveyId,userId:(null===(e=this.user)||void 0===e?void 0:e.id)||null,locale:c()}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to increment log");const n=await t.json();if(this.destroyed)return;if(this.integrationTest.setStatus(n.surveyIntegrationTest||"pending"),this.integrationTest.handleIntegrationStatus())return;n.isValid?(this.survey=n.survey,this.render("bubble")):this.survey=null}catch(e){if(this.destroyed)return}}async submit(){this.submitErrorKey="global.submit_error";try{const e=await xl(`${this.apiUrl}/api/reviews/submit`,{method:"POST",signal:this.abortController.signal,body:JSON.stringify(this.form.toJson(this.options,this.survey)),headers:{"Content-Type":"application/json"}});if(!e.ok)throw 429===e.status&&(this.submitErrorKey="global.rate_limited"),new Error("Failed to submit feedback");this.render("SENT"===this.form.answerStatus||"DECLINED"===this.form.answerStatus?"thanks":null)}catch(e){if(this.destroyed)return;this.submitError=!0,this.render("form")}}}"undefined"!=typeof window&&(window.Feedback=Ml,window.Feedbot=Fl),e.Feedback=Ml,e.Feedbot=Fl,e.Locales=r,e.messages=i});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Feedjet={})}(this,function(e){"use strict";var t='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><g fill="none"><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="1.5"/><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M12 17v-6"/><circle cx="1" cy="1" r="1" fill="currentColor" transform="matrix(1 0 0 -1 11 9)"/></g></svg>',n='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 81 95"><path fill="url(#a)" d="M46.713 71.585c17.817-5.213 29.024-20.497 25.033-34.138-3.992-13.64-21.67-20.472-39.487-15.259C14.443 27.403 3.236 42.687 7.227 56.326s21.67 20.472 39.486 15.26"/><path fill="url(#b)" d="M47.973 74.096c-10.506 3.752-18.613 1.201-19.184 7.857C28.31 87.56 40.351 98.2 53.7 94.07c13.774-4.263 17.573-19.314 13.684-24.418-3.192-4.19-8.491.545-19.41 4.444"/><path fill="url(#c)" d="M19.124 74.507c-1.333-1.469-3.416-1.171-5.603-2.1-2.04-.867-3.02-1.904-5.139-1.252-2.118.652-6.193 3.75-6.682 5.868s-1.956 6.356.652 7.986 9.616-.326 11.735-1.467c2.119-1.14 9.588-4.016 5.037-9.035"/><path fill="url(#d)" d="M68.487 50.825c-1.895.236-4.393.976-5.124 2.928-.732 1.952 1.342 4.514 3.172 5.368s1.22 3.538 1.341 4.636c.123 1.098 2.002 4.091 5.491 3.416 3.782-.731 6.954-3.904 7.076-7.564s-2.806-7.32-4.514-8.297c-1.708-.975-5.491-.731-7.442-.487"/><path fill="url(#e)" d="M5.406 55.365c-.045-1.18.31-3.446 1.813-2.502s7.44 10 8.658 12.547c.662 1.384 1.783 3.387.542 3.249-3.79-.422-6.444-2.38-8.664-5.656-2.02-2.981-2.305-6.459-2.35-7.639z"/><path fill="url(#f)" d="M35.444 37.348c8.845-4.16 17.367-4.729 18.818-4.613 1.112.088 4.039 4.06 5.819 8.232s2.084 9.236 1.731 10.12c-.501 1.254-7.495 6.615-15.51 9.851-8.987 3.628-18.566 4.938-19.703 4.26-1.317-.782-3.923-5.252-4.947-7.781-.936-2.312-2.808-7.85-2.253-9.452.454-1.311 7.56-6.627 16.044-10.617"/><path fill="#d9effd" d="M32.25 52.667c2.252-1.42 5.906.125 6.277-1.582.396-1.82-4.697-3.525-8.045-1.903-3.248 1.573-4.253 8.26-2.744 8.378 2.227.174 2.067-3.351 4.512-4.893m17.775-7.856c2.555-.762 5.884 1.592 6.528-.117.692-1.836-3.442-4.4-7.421-3.557-3.72.79-6.25 6.605-4.78 7.223 2.129.894 2.986-2.748 5.673-3.549"/><path fill="#fff" d="M13.433 40.129c-.898 1.866-2.87 6.134-1.082 7.665s3.602-1.361 4.303-3.016c.7-1.655 2.238-4.55 3.352-6.064 1.115-1.514.712-3.59-.807-3.737-1.52-.146-4.507 2.532-5.767 5.152M8.344 62.39a17 17 0 0 1-1.624-3.492c-.39-1.162-.283-2.887.342-2.128.623.758 1.506 2.94 2.408 4.113s2.159 2.711 2.518 3.687c.274.743.267 2.023-.702 1.196-.453-.386-1.861-1.695-2.635-2.961m26.813 17.611c-1.073.405-2.065 2.109-1.562 3.206.503 1.098.896 2.412 1.682 3.213.787.803 2.837 2.768 4.644 2.603s2.914-.256 3.236-1.152c.321-.894.062-1.688-.835-2.274-.896-.586-2.6-.883-3.001-2.443-.402-1.56-2.115-3.929-4.165-3.155zM3.166 76.333c-.427.58-1.071 2.276-.938 3.347.134 1.071 1.74 1.206 2.411 0 .67-1.205 2.678-2.41 2.277-3.348-.402-.937-2.277-2.008-3.75 0m67.182-24.898c-.97-.689-3.318.397-4.553 1.462-1.237 1.064-1.077 2.495-.5 2.75.578.254 2.107.125 3.103-1.762.432-.817 2.573-2.008 1.95-2.45"/><path fill="#b4bfc6" d="M65.53 27.773c1.225 1.136 2.17 2.132 3.412 3.941 1.46 2.126 2.34 3.993 2.887 6.187.862 3.465.764 6.856.329 9.18 0 0 2.686-4.418 2.482-8.559-.063-1.268-.5-3.523-1.36-5.132-1.498-2.796-4.272-5.467-7.749-5.617M9.534 55.54s1.298.073 3.904 2.195c2.503 2.037 5.358 6.288 6.242 7.938 1.338 2.498 1.982 4.41.727 4.787 0 0-2.92-1.328-3.524-1.864 0 0 .197-.951-1.593-4.386-1.348-2.587-5.756-8.67-5.756-8.67m51.43.76c-.683 1.26-2.246 4.317-2.918 5.194-.671.876-1.443 1.823-4.493 3.91-2.876 1.968-3.968 2.45-6.77 3.5-2.8 1.05-4.356 3.654-4.356 3.654 5.209-.964 8.215-2.062 13.117-4.629s8.985-6.764 10.834-8.936c-.964-.434-1.576-1.141-2.25-1.913-1.234-1.61-.764-3.327-.764-3.327s-1.641 1.147-2.4 2.547M19.552 76.269c-.12-.48-1.546-1.185-2.512-.89-.967.297-3.305 1.967-4.288 2.95-1.341 1.342-2.946 1.854-3.912 2.348-.967.493-2.235 2.123-1.56 3.689 0 0 2.265.132 3.908-.559s9.33-3.687 8.365-7.538m23.539-.177c.28.28 3.279.788 5.765.336s7.4-1.605 9.434-2.51c2.035-.904 5.828-2.495 6.88-3.674.702-.787 1.32-1.601.72-1.91-.677-.348-2.155-.339-3.133-.196-1.95.285-9.196 3.684-10.654 4.372-3.386 1.595-8.172 2.742-8.872 2.938-.42.056-.31.474-.14.644"/><path fill="#2c3d82" d="M26.842 16.893a6.32 6.32 0 1 0 0-12.64 6.32 6.32 0 0 0 0 12.64"/><path fill="#5b76c4" d="M29.4 7.128c.786.534.655 1.643.793 3.15.127 1.392-1.974 3.633-3.553 3.606-1.58-.026-3.081-.631-3.925-2.19-.81-1.498-.716-2.375-.3-3.423.488-1.224 2.066-2.472 3.947-2.4 1.882.07 2.207.694 3.037 1.257"/><path fill="#3d55a3" d="M30.138 14.193c.765-.55 1.946-2.109 1.607-4.057-.39-2.243-1.28-3.689-2.845-3.459-1.593.235-2.878.818-2.842 2.344s.847 2.65-.133 3.632.035 2.983 1.186 2.843c1.744-.212 2.286-.77 3.027-1.303"/><path fill="#c0d2ff" d="M25.095 9.693c.688-.324 2.01-.925 2.28-1.618s.297-1.666-.4-2.19c-.7-.522-1.686-.764-2.505-.143-.819.62-2.18 1.623-1.663 2.549.515.927.437 1.73 1.308 1.614.87-.116.98-.212.98-.212"/><path fill="#2c3d82" d="M32.577 3.218a.7.7 0 0 1-.453-.166c-.67-.563-1.912-1.077-1.924-1.083a.705.705 0 0 1 .536-1.304c.06.024 1.455.602 2.295 1.308a.706.706 0 0 1-.454 1.246zm-8.363-1.441a.705.705 0 0 1-.203-1.381C24.061.38 25.271.02 26.414 0a.705.705 0 1 1 .024 1.41c-.944.017-2.011.333-2.022.336a.7.7 0 0 1-.202.03zm-5.103 3.385a.706.706 0 0 1-.555-1.14c.033-.042.828-1.052 1.768-1.737a.705.705 0 1 1 .831 1.14c-.783.57-1.48 1.458-1.487 1.467a.7.7 0 0 1-.556.27zm-2.138 5.828h-.011a.705.705 0 0 1-.694-.715c0-.054.024-1.338.36-2.448a.705.705 0 1 1 1.35.408c-.277.918-.3 2.05-.3 2.062a.705.705 0 0 1-.705.694m1.602 5.937a.7.7 0 0 1-.585-.31c-.03-.044-.734-1.09-1.093-2.175a.706.706 0 0 1 1.338-.444c.298.896.917 1.82.923 1.829a.705.705 0 0 1-.584 1.1m4.922 3.869a.7.7 0 0 1-.231-.04c-.05-.017-1.242-.435-2.177-1.09a.705.705 0 0 1 .808-1.155c.772.54 1.822.91 1.832.913a.706.706 0 0 1-.232 1.372m3.859.595a.706.706 0 0 1-.002-1.41c.97-.003 2.055-.312 2.065-.316a.704.704 0 1 1 .39 1.355c-.052.016-1.287.367-2.452.37zm5.821-2.177a.706.706 0 0 1-.428-1.266c.769-.584 1.446-1.485 1.452-1.493a.705.705 0 1 1 1.13.845c-.032.043-.804 1.07-1.729 1.772a.7.7 0 0 1-.425.143m3.341-5.108a.706.706 0 0 1-.67-.927c.305-.921.355-2.049.356-2.06a.705.705 0 0 1 1.409.06c-.002.055-.061 1.337-.426 2.441a.71.71 0 0 1-.67.485m.055-6.41a.7.7 0 0 1-.642-.414c-.418-.918-1.144-1.589-1.15-1.596a.706.706 0 0 1 .95-1.043c.038.035.943.864 1.485 2.055a.705.705 0 0 1-.641.997z"/><path fill="#121442" d="M26.6 65.199c1.111.717 10.717-.633 19.702-4.26 8.016-3.236 15.01-8.598 15.511-9.852.353-.884.049-5.948-1.731-10.12s-4.707-8.143-5.819-8.232c0 0-.983-.076-2.283.091 0 0 3.584 3.118 5.392 7.171 2.04 4.571 2.355 8.755 2.43 9.247.077.493 0 .683-.303 1.024-.304.342-6.89 4.918-12.376 7.433-6.497 2.978-17.44 5.618-22.213 5.618 0 0 .96 1.508 1.689 1.88"/><path fill="#2c3d82" d="M50.743 77.919s-5.268 3.559-1.686 10.032c.88 1.59 3.193 3.547 6.05 3.88 0 0-4.746-2.46-4.78-6.968-.027-3.623 4.126-4.064 3.247-8.062 0 0-1.408.173-2.832 1.118"/><path fill="#2c3d82" d="M53.978 82.46a2.844 2.844 0 1 0 0-5.69 2.844 2.844 0 0 0 0 5.69m.782 2.524a1.845 1.845 0 1 0-3.683-.232 1.845 1.845 0 0 0 3.682.232"/><defs><linearGradient id="a" x1="17.129" x2="71.508" y1="31.413" y2="69.047" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="28.775" x2="68.823" y1="81.508" y2="81.508" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1=".846" x2="20.568" y1="78.291" y2="78.291" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="63.212" x2="80.447" y1="58.94" y2="58.94" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="5.402" x2="16.977" y1="60.653" y2="60.653" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="f" x1="49.368" x2="31.597" y1="67.699" y2="29.033" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient></defs></svg>',o='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 110 122"><path fill="#c65d17" d="M69.808 20.603a7.81 7.81 0 1 0 0-15.619 7.81 7.81 0 0 0 0 15.619"/><path fill="#ee7219" d="M69.106 7.54c1.157-.205 1.997.89 3.417 2.106 1.312 1.124 1.383 4.918-.039 6.256-1.421 1.337-3.273 2.095-5.363 1.441-2.01-.628-2.682-1.487-3.216-2.774-.623-1.504-.302-3.969 1.426-5.527s2.553-1.287 3.774-1.503"/><path fill="#ff9852" d="M75.849 13.16c.203-1.145-.094-3.544-2.073-4.978-2.278-1.65-4.312-2.162-5.5-.611-1.21 1.58-1.846 3.204-.498 4.524s3.033 1.617 3.012 3.332 2.601 2.612 3.5 1.495c1.362-1.689 1.362-2.651 1.559-3.762"/><path fill="#ffdfca" d="M67.503 13.52c.33-.88.983-2.552.624-3.399-.359-.846-1.171-1.731-2.24-1.593s-2.152.775-2.343 2.03c-.189 1.256-.531 3.316.724 3.692 1.256.377 1.878 1.154 2.549.302.67-.852.686-1.032.686-1.032"/><path fill="#c65d19" d="M76.563 3.752a.9.9 0 0 1-.512-.164c-.93-.67-2.198-1.137-2.21-1.141a.876.876 0 0 1 .6-1.648c.061.023 1.506.553 2.636 1.366a.877.877 0 0 1-.514 1.589zM66.531 2.2A.877.877 0 0 1 66.28.483C66.34.464 67.815.025 69.206 0a.877.877 0 0 1 .03 1.754c-1.15.02-2.44.404-2.452.408a1 1 0 0 1-.254.037zm-6.207 4.119a.876.876 0 0 1-.69-1.417c.041-.051 1.008-1.281 2.155-2.118A.877.877 0 1 1 62.822 4.2c-.944.69-1.797 1.77-1.807 1.782a.87.87 0 0 1-.69.336m-2.603 7.095h-.013a.877.877 0 0 1-.864-.89c0-.065.029-1.63.438-2.984a.876.876 0 1 1 1.679.507c-.34 1.121-.364 2.489-.364 2.503a.877.877 0 0 1-.876.864m1.95 7.223a.87.87 0 0 1-.727-.386c-.037-.054-.896-1.33-1.333-2.653a.877.877 0 0 1 1.665-.552c.36 1.088 1.113 2.21 1.12 2.222a.878.878 0 0 1-.726 1.367zm5.985 4.706a.9.9 0 0 1-.287-.049c-.061-.02-1.513-.53-2.654-1.328a.876.876 0 1 1 1.004-1.437c.938.656 2.213 1.105 2.226 1.11a.877.877 0 0 1-.289 1.704m4.696.725a.877.877 0 0 1-.002-1.754c1.17-.004 2.496-.379 2.509-.382a.876.876 0 0 1 .485 1.685c-.063.018-1.569.446-2.988.45h-.004m7.085-2.648a.876.876 0 0 1-.53-1.575c.925-.704 1.755-1.803 1.763-1.814a.878.878 0 0 1 1.404 1.051c-.04.053-.98 1.302-2.106 2.158a.88.88 0 0 1-.53.179zm4.064-6.214a.877.877 0 0 1-.832-1.153c.367-1.11.43-2.486.432-2.5a.876.876 0 1 1 1.752.075c-.002.065-.074 1.63-.519 2.976a.88.88 0 0 1-.832.601zm.129-8.11a.88.88 0 0 1-.71-.36c-.61-.837-1.567-1.798-1.577-1.807a.877.877 0 0 1 1.24-1.24c.044.043 1.063 1.066 1.755 2.015a.878.878 0 0 1-.707 1.394z"/><path fill="url(#a)" d="M99.026 64.396c1.801-17.578-15.35-33.734-38.309-36.086s-43.03 9.99-44.83 27.568c-1.802 17.577 15.35 33.733 38.308 36.085 22.959 2.353 43.03-9.99 44.831-27.567"/><path fill="url(#b)" d="M53.803 96.185c13.869.058 22.32-6.284 25.74 1.286 2.88 6.377-6.843 23.827-24.2 24.5-17.914.694-28.587-15.385-26.137-22.978 2.011-6.231 10.183-2.869 24.597-2.808"/><path fill="url(#c)" d="M83.645 94.965c1.345-1.848 3.904-1.59 6.506-3.615 2.176-1.691 2.457-4.048 6.65-3.903 2.754.094 5.419 5.556 7.95 6.505 3.47 1.302 6.723 6.671 3.904 9.252s-13.344 2.797-16.192 1.88c-2.847-.916-13.445-3.758-8.818-10.12"/><path fill="url(#d)" d="M12.967 81.728c1.824-1.094 4.736-2.202 7.49.22s7.6 8.481 5.067 11.675-9.473 4.957-13.108 4.957-9.802.11-11.675-2.534c-1.184-1.671-.991-3.634.882-5.507s7.49-6.499 11.344-8.811"/><path fill="url(#e)" d="M60.241 47.556c-11.753-3.09-22.3-1.86-24.05-1.392-1.338.359-4.02 5.874-5.255 11.377s-.463 11.762.167 12.763c.895 1.42 10.657 6.397 21.188 8.543 11.805 2.407 23.813 1.846 25.05.761 1.432-1.254 3.61-7.306 4.291-10.631.622-3.038 1.662-10.23.621-12.065-.85-1.5-10.739-6.395-22.012-9.357z"/><path fill="#121442" d="M77.34 79.61c-1.196 1.128-13.243 1.645-25.05-.761-10.53-2.146-20.292-7.122-21.187-8.543-.632-1.001-1.402-7.261-.168-12.763 1.235-5.502 3.918-11.018 5.257-11.377 0 0 1.184-.316 2.811-.403 0 0-3.678 4.62-4.973 9.983-1.461 6.049-.903 11.235-.884 11.854.019.62.154.835.602 1.184.448.348 9.534 4.456 16.808 6.292 8.616 2.175 22.59 2.933 28.425 1.855 0 0-.834 2.06-1.64 2.68"/><path fill="#d9effd" d="M51.307 61.156c.925-4.057-1.34-8.033-5.06-8.88s-7.483 1.753-8.408 5.81c-.925 4.058 1.34 8.034 5.06 8.882s7.483-1.755 8.408-5.812"/><path fill="url(#f)" d="M44.424 62.484a2.86 2.86 0 1 0 0-5.721 2.86 2.86 0 0 0 0 5.721"/><path fill="#d9effd" d="M75.309 66.647c.925-4.058-1.34-8.034-5.06-8.882s-7.483 1.755-8.408 5.812 1.34 8.033 5.06 8.88 7.483-1.753 8.408-5.81"/><path fill="url(#g)" d="M68.567 68.174a2.86 2.86 0 1 0 0-5.722 2.86 2.86 0 0 0 0 5.722"/><path fill="url(#h)" d="M101.031 62.802c-.213-1.452-1.159-4.143-2.781-2.65-1.624 1.494-6.84 13.906-7.753 17.294-.497 1.841-1.416 4.543.071 4.094 4.54-1.37 7.34-4.363 9.316-8.87 1.797-4.1 1.361-8.417 1.148-9.869z"/><path fill="url(#i)" d="M21.297 42.644c-1.24 1.664-2.171 3.095-3.282 5.588-1.305 2.928-1.96 5.409-2.132 8.215-.273 4.43.614 8.554 1.67 11.296 0 0-4.283-4.793-4.967-9.902-.21-1.564-.185-4.42.505-6.582 1.198-3.755 3.989-7.648 8.206-8.615"/><path fill="#b4bfc6" d="M91.02 75.824c1.064-3.466.54-4.177-3.846.499-1.219 1.299-3.418 3.865-5.649 5.797-1.037.9-2.638 2.151-6.837 4.014-3.962 1.757-5.406 2.172-9.067 2.824s-8.002 2.309-6.304 3.292c3.8.268 10.365-.541 16.985-2.682 6.546-2.116 11.027-5.804 13.779-8.041-.715-.495.495-4.251.94-5.702zm-6.812 21.478c.016-1.18 2.092-1.324 3.34-1.18 1.25.144 3.925 1.621 5.35 2.602 1.942 1.338 5.066 1.269 6.071 2.169 2.747 2.457-1.427 3.828-3.614 3.47-3.384-.557-11.214-2.126-11.148-7.061m-39.137-.381c.446.206 3.413 1.445 6.53 1.827 3.12.381 8.59.764 11.34.441s6.83-.49 9.155-1.578c2.074-.97 3.508-2.864 2.909-3.454-.675-.662-4.481-.194-5.689.03-5.932 1.099-8.743 1.582-11.64 1.792-4.642.334-11.655-.154-12.56-.18-.518-.09-.833.76-.048 1.122zM8.562 95.276c-.793.68.66 2.314 2.534 2.202 1.873-.11 7.843-.718 9.913-1.982s3.23-2.828 3.084-4.075c-.17-1.471-.991-1.433-2.202-1.102s-11.015 2.974-13.327 4.957z"/><path fill="#fff" d="M37.274 33.182c2.449-.797 8.034-2.519 9.624-.061 1.59 2.457-2.275 4.212-4.43 4.801s-5.975 2.004-8.026 3.126c-2.05 1.122-4.542.282-4.47-1.614.071-1.898 3.866-5.135 7.302-6.251zM15.75 47.052c.754-1.049 2.477-2.1 2.309-1.144-.168.958-1.58 3.25-2.099 4.644-.605 1.625-1.081 3.121-1.247 4.116-.128.773-1.359 1.504-1.431.247-.016-.294-.088-2.352.47-4.157.559-1.805 1.745-3.358 1.997-3.707h.002m89.254 49.319s1.926 1.114 2.432 1.925.81 2.229.101 3.039c-.708.81-1.925.912-2.533.102s-1.317-2.533-1.824-3.343c-.506-.81-.101-2.432 1.824-1.722zm-67.074 4.475c-.777-1.281-2.414-2.424-3.583-2.222-1.118.194-2.605 1.137-2.816 2.669 0 0 .39 3.457 1.79 5.417 1.401 1.961 3.783 3.782 5.043 2.101s.477-6.464-.434-7.966zM4.294 89.403c-.784.524-3.343 2.912-3.077 4.29.208 1.077 1.74 1.225 2.718.735.979-.49 4.206-2.35 3.445-4.307-.318-.817-1.212-1.971-3.086-.718"/><path fill="#2c3d82" d="M54.398 101.707s-7.536 2.383-5.55 11.364c.488 2.207 2.555 5.354 5.842 6.762 0 0-4.788-4.61-3.238-9.994 1.246-4.329 6.354-3.388 6.716-8.466 0 0-1.74-.291-3.77.334"/><path fill="#2c3d82" d="M57.654 108.406a3.537 3.537 0 1 0-.001-7.074 3.537 3.537 0 0 0 .001 7.074m-3.118 4.644a2.294 2.294 0 1 0 0-4.587 2.294 2.294 0 0 0 0 4.587"/><defs><linearGradient id="a" x1="30.034" x2="94.505" y1="38.434" y2="89.456" gradientUnits="userSpaceOnUse"><stop offset=".07" stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="29.078" x2="76.812" y1="97.942" y2="112.096" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1="108.681" x2="82.691" y1="94.595" y2="99.393" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="6.339" x2="22.961" y1="84.75" y2="101.355" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="50.069" x2="63.068" y1="87.803" y2="36.521" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="f" x1="43.08" x2="47.06" y1="58.236" y2="62.347" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="g" x1="67.931" x2="71.463" y1="64.503" y2="69.005" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="h" x1="102.229" x2="88.078" y1="69.265" y2="71.878" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="i" x1="12.47" x2="21.297" y1="55.193" y2="55.193" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient></defs></svg>',i='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 147 158"><path fill="url(#a)" d="M32.22 97.269c1.526.737 3.184 3.567 5.605 4.515 2.423.947 8.014 2.13 7.612 6.746s-3.668 9.085-6.551 9.816-7.63-.821-9.868-4.071c-2.46-3.57-4.064-10.654-2.808-13.439s3.11-4.968 6.01-3.566z"/><path fill="url(#b)" d="M74.507 108.056c-13.343.516-21.688-5.307-24.728 2.09-2.56 6.233 7.376 22.703 24.1 22.775 17.261.075 27-15.752 24.39-22.977-2.141-5.931-9.893-2.424-23.763-1.888"/><path fill="url(#c)" d="M76.176 105.689c22.2-1 39.575-15.589 38.809-32.584S95.602 43.142 73.403 44.142 33.828 59.73 34.594 76.727s19.383 29.963 41.582 28.962"/><path fill="url(#d)" d="M104.524 103.4c-1.676.69-3.42 2.488-1.554 5.286s1.865 6.841 2.332 8.395c.467 1.555 4.043 1.555 7.463-1.088s7.341-6.566 7.825-11.786c.443-4.782-.449-6.548-3.003-7.513-1.597-.603-4.467-.084-6.171 1.995-1.532 1.869-4.248 3.622-6.891 4.711z"/><path fill="url(#e)" d="M73.75 61.779c11.969-.535 21.876 2.84 23.464 3.655 1.216.624 2.654 6.496 2.701 12.056.046 5.559-1.997 11.43-2.813 12.264-1.158 1.183-11.599 3.949-22.192 3.829-11.875-.134-23.33-3.17-24.297-4.471-1.12-1.508-1.96-7.792-1.926-11.136.031-3.055.524-10.202 1.909-11.755 1.131-1.269 11.677-3.93 23.155-4.442"/><path fill="#2c3d82" d="M75.316 30.851a7.745 7.745 0 1 0 0-15.49 7.745 7.745 0 0 0 0 15.49"/><path fill="#5b76c4" d="M78.449 18.884c.965.655.803 2.014.973 3.86.155 1.707-2.42 4.453-4.354 4.42-1.936-.032-3.777-.774-4.81-2.684-.994-1.837-.879-2.91-.368-4.195.597-1.5 2.53-3.03 4.837-2.942s2.704.851 3.722 1.541"/><path fill="#3d55a3" d="M79.355 27.545c.936-.674 2.384-2.585 1.97-4.972-.478-2.749-1.57-4.521-3.488-4.239-1.952.287-3.528 1.002-3.483 2.872s1.039 3.247-.162 4.452c-1.201 1.204.043 3.655 1.453 3.483 2.137-.259 2.802-.943 3.71-1.596"/><path fill="#c0d2ff" d="M73.173 22.029c.844-.398 2.464-1.134 2.795-1.984.33-.849.364-2.04-.491-2.682-.856-.641-2.065-.937-3.069-.177s-2.671 1.99-2.038 3.124c.631 1.137.535 2.12 1.602 1.978 1.066-.142 1.202-.26 1.202-.26"/><path fill="#2c3d82" d="M82.344 14.093a.86.86 0 0 1-.555-.203c-.822-.69-2.343-1.32-2.358-1.328a.864.864 0 0 1 .657-1.598c.072.03 1.782.737 2.813 1.603a.866.866 0 0 1-.557 1.526m-10.249-1.766a.864.864 0 0 1-.25-1.693c.063-.019 1.545-.46 2.945-.486h.016a.865.865 0 0 1 .015 1.729c-1.157.02-2.465.408-2.477.412a1 1 0 0 1-.248.036zm-6.255 4.148a.865.865 0 0 1-.68-1.397c.04-.052 1.013-1.29 2.166-2.13a.864.864 0 1 1 1.019 1.397c-.96.7-1.815 1.787-1.824 1.798a.86.86 0 0 1-.68.332m-2.621 7.144h-.014a.863.863 0 0 1-.85-.878c0-.066.03-1.64.441-3a.864.864 0 1 1 1.655.5c-.342 1.131-.368 2.512-.368 2.526a.864.864 0 0 1-.864.85zm1.965 7.277a.86.86 0 0 1-.717-.38c-.037-.055-.9-1.337-1.34-2.666a.865.865 0 0 1 1.641-.544c.366 1.104 1.124 2.23 1.13 2.241a.864.864 0 0 1-.715 1.349zm6.029 4.74a.8.8 0 0 1-.283-.048c-.061-.022-1.523-.534-2.668-1.336a.865.865 0 0 1 .99-1.416c.946.661 2.233 1.114 2.246 1.119a.865.865 0 0 1-.285 1.681m4.729.73a.864.864 0 0 1-.002-1.728c1.181-.004 2.518-.383 2.532-.387a.865.865 0 0 1 .478 1.662c-.063.019-1.577.45-3.005.453zm7.135-2.668a.865.865 0 0 1-.524-1.552c.936-.711 1.771-1.82 1.78-1.831a.864.864 0 0 1 1.384 1.036c-.039.053-.985 1.31-2.118 2.17a.86.86 0 0 1-.522.177m4.094-6.26a.865.865 0 0 1-.822-1.136c.371-1.121.436-2.51.437-2.524a.865.865 0 0 1 1.727.075c-.002.066-.075 1.639-.522 2.992a.865.865 0 0 1-.82.593m.066-7.856a.86.86 0 0 1-.787-.507c-.512-1.126-1.401-1.947-1.41-1.956a.865.865 0 0 1 1.165-1.279c.047.043 1.156 1.06 1.82 2.52a.864.864 0 0 1-.785 1.22z"/><path fill="#d9effd" d="M79.535 76.996c.676-1.24 3.614-4.386 4.501-5.315 1.026-1.075 3.842-1.594 5.082.098s3.616 4.007 4.202 5.669c.442 1.254.635 2.834-.977 3.224-2.392.58-3.575-2.94-4.252-3.616s-2.386-.725-3.176-.049c-.79.677-1.98 2.97-2.883 3.42-.902.451-2.932.49-3.175-1.063-.261-1.67.677-2.368.677-2.368m-23.193 0c.677-1.24 3.614-4.386 4.502-5.315 1.025-1.075 3.842-1.594 5.082.098s3.616 4.007 4.201 5.669c.443 1.254.635 2.834-.977 3.224-2.391.58-3.575-2.94-4.251-3.616s-2.387-.725-3.176-.049c-.79.677-1.981 2.97-2.883 3.42-.903.451-2.932.49-3.175-1.063-.262-1.67.676-2.368.676-2.368z"/><path fill="url(#f)" d="M44.994 40.504a1.5 1.5 0 0 1-1.37-.887l-5.348-11.97a1.497 1.497 0 1 1 2.736-1.222l5.348 11.97a1.497 1.497 0 0 1-1.367 2.109"/><path fill="url(#g)" d="M35.202 47.36c-.419 0-.836-.175-1.132-.516l-8.602-9.893a1.498 1.498 0 1 1 2.261-1.966l8.602 9.893a1.498 1.498 0 0 1-1.13 2.481"/><path fill="url(#h)" d="M113.501 46.925a1.5 1.5 0 0 1-.945-2.662L122.735 36a1.5 1.5 0 0 1 2.108.219 1.5 1.5 0 0 1-.219 2.107l-10.18 8.263a1.5 1.5 0 0 1-.943.336"/><path fill="url(#i)" d="M104.343 39.239a1.498 1.498 0 0 1-1.241-2.337l7.332-10.869a1.5 1.5 0 0 1 2.485 1.676l-7.333 10.868c-.289.43-.762.66-1.243.66z"/><path fill="#b4bfc6" d="M31.298 115.634s-3.483-2.815-2.083-4.83c.71-1.022 1.933-1.657 3.87-1.183 1.938.473 3.588 1.839 5.285 1.165s2.597-1.156 4.086-1.176c1.281-.017 1.232 1.143 1.213 2.017-.517 1.263-1.312 3.09-1.695 3.54-.382.452-1.931 1.962-3.765 2.205-1.98.262-3.708.311-6.912-1.739zm36.752-5.738c3.816 1.125 4.941.148 12.416 1.41 5.497.928 8.559-.125 11.232-1.406 2.674-1.279 3.3-3.058 1.569-3.314 0 0-.913-.158-4.072.048-2.694.178-7.516.693-9.441 1.012-3.166.526-11.026.313-13.59-.049-1.499.793.208 1.803 1.887 2.298zm9.63-7.523c3.73-.153 8.225.098 11.88-2.32 3.884-2.985 11.738-2.11 7.82-.07-6.01 3.177-10.623 4.389-13.77 4.923-1.75.296-5.828.751-8.996.837-.742.021-5.09-.02-8.45-.57-.626-2.127 10.174-2.747 11.516-2.802zm30.961 9.696c.704-1.059 2.252-1.759 3.32-2.59 1.068-.83 2.118-2.022 2.89-2.95s2.336-1.347 3.311-.973c.975.375.712 1.365.462 2.192-.341 1.124-1.205 2.448-2.346 3.807-1.376 1.928-4.267 4.702-6.251 4.046-1.877-.62-2.089-2.473-1.385-3.532zm4.705-46.649c.662 1.938 1.103 3.56 1.393 6.235.339 3.142.206 5.668-.479 8.353-1.081 4.24-3.157 7.843-4.976 10.098 0 0 5.465-3.206 7.65-7.794.668-1.405 1.507-4.093 1.512-6.33.008-3.885-1.435-8.38-5.1-10.561"/><path fill="url(#j)" d="M37.167 64.67c-.836 1.869-1.425 3.444-1.959 6.081-.627 3.096-.726 5.625-.29 8.362.688 4.321 2.423 8.1 4.027 10.512 0 0-5.147-3.693-6.901-8.463-.537-1.46-1.126-4.213-.926-6.442.348-3.871 2.199-8.215 6.048-10.05z"/><path fill="#fff" d="M28.155 101.063c-.16.848.022 3.012.721 4.099.7 1.086 2.503.4 2.602-1.247.1-1.648 1.644-3.989.724-4.792s-3.498-.99-4.047 1.941zm29.155 9.175c-1.372-.017-3.223 1.448-3.142 2.891.08 1.442-.055 3.079.47 4.317.525 1.236 1.95 4.323 4.036 4.931 2.086.606 3.36.987 4.11.131.749-.856.807-1.854.065-2.898-.743-1.044-2.512-2.121-2.277-4.035.234-1.913-.638-5.303-3.263-5.335h.002zm-3.187-58.65c-2.22 1.104-7.22 3.687-6.656 6.449s4.403 1.361 6.282.313c1.878-1.047 5.459-2.652 7.624-3.263s3.312-2.869 1.983-4.125c-1.327-1.256-6.119-.922-9.235.627h.002m56.656 51.755c-1.503-.915-4.353.515-5.712 1.919-1.36 1.404-.734 3.299.115 3.638.85.339 2.873.175 3.673-2.321.346-1.08 2.888-2.649 1.923-3.237zM33.012 69.863c.534-1.155 2.005-2.494 2.022-1.536s-.925 3.44-1.168 4.886c-.283 1.686-.466 3.223-.441 4.217.02.772-1.035 1.709-1.34.505-.07-.28-.522-2.261-.317-4.113.204-1.852 1.066-3.575 1.243-3.96z"/><path fill="#121442" d="M97.102 89.754c-1.158 1.183-11.599 3.949-22.192 3.829-11.875-.134-23.33-3.17-24.297-4.471-1.12-1.508-1.96-7.792-1.926-11.136.031-3.055.524-10.202 1.909-11.755.342-.383.895-.607 1.736-.907 0 0-2.85 13.977.144 21.86.471 1.886 18.29 3.278 19.862 3.309 3.85.078 10.388-.14 16.917-1.103 2.65-.39 7.023-1.591 8.964-2.01-.519 1.706-1.117 2.382-1.117 2.382z"/><path fill="#2c3d82" d="M73.904 113.09s-7.244 2.867-4.67 11.559c.632 2.137 2.882 5.088 6.212 6.244 0 0-5.028-4.201-3.876-9.603.927-4.342 6.013-3.772 6.018-8.788 0 0-1.73-.165-3.684.588"/><path fill="#2c3d82" d="M77.322 119.456a3.486 3.486 0 1 0 .001-6.971 3.486 3.486 0 0 0-.001 6.971m-2.658 4.781a2.26 2.26 0 1 0 0-4.522 2.26 2.26 0 0 0 0 4.522"/><ellipse cx="73.5" cy="145.5" fill="url(#k)" fill-opacity=".6" rx="18.5" ry="4.5"/><ellipse cx="73" cy="155" fill="url(#l)" fill-opacity=".6" rx="13" ry="3"/><defs><linearGradient id="a" x1="25.327" x2="45.384" y1="106.7" y2="109.027" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="50.449" x2="99.12" y1="121.517" y2="115.42" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1="45.742" x2="111.575" y1="55.705" y2="99.243" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="102.795" x2="121.552" y1="113.415" y2="100.89" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="75.191" x2="73.321" y1="102.676" y2="50.559" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="f" x1="38.146" x2="46.491" y1="33.021" y2="33.021" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="g" x1="26.907" x2="34.89" y1="42.13" y2="39.7" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="h" x1="117.51" x2="119.668" y1="37.264" y2="45.326" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="i" x1="105.804" x2="110.216" y1="28.765" y2="35.848" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="j" x1="31.365" x2="39.858" y1="78.639" y2="76.747" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="k" x1="73.5" x2="73.5" y1="141" y2="150" gradientUnits="userSpaceOnUse"><stop stop-color="#edf0fb"/><stop offset="1" stop-color="#b6c2ef"/></linearGradient><linearGradient id="l" x1="73" x2="73" y1="152" y2="158" gradientUnits="userSpaceOnUse"><stop stop-color="#edf0fb"/><stop offset="1" stop-color="#8094e4"/></linearGradient></defs></svg>';const a={FR:"fr",EN:"en",ES:"es",NL:"nl"},s={fr:{issue:{tab:"Anomalie",form:{title:"Signaler un problème technique",description:"Vous avez repéré une <strong>anomalie</strong> ? Signalez-la en décrivant le problème !",field:{title:"Résumé du problème",description:"Décrivez précisément le problème rencontré"}},thanks:{title:"Merci pour votre signalement",description:"Votre signalement a bien été pris en compte. Nous vous remercions de participer à l’amélioration de l’application. Notre équipe l’analysera dans les meilleurs délais."}},enhancement:{tab:"Idée",form:{title:"Proposer une amélioration",description:"Vous avez une idée pour <strong>améliorer</strong> notre service ? Partagez là !",field:{title:"Résumé de votre suggestion",description:"Expliquez en détail votre proposition d'amélioration"}},thanks:{title:"Merci pour votre suggestion",description:"Votre idée a bien été transmise. Nous apprécions votre engagement à améliorer notre service."}},decision:{tab:"Feedbacks",description:"Retrouvez ici vos feedbacks et leur statut de prise en compte !",loading:"Chargement...",empty:"Aucun feedback pour le moment.",error:"Impossible de charger vos feedbacks.",retry:"Réessayer",card:{type:{issue:"Problème",enhancement:"Idée"},date_prefix:"Envoyé le"},status:{enhancement:{loved:"Coup de cœur",planned:"C’est dans les tuyaux",next_step:"Prochaine étape",to_study:"À étudier",impossible:"Mission impossible",transmitted:"Transmis à la bonne équipe"},issue:{planned:"C’est dans les tuyaux",next_step:"Prochaine étape",not_a_bug:"Comportement normal",impossible:"Mission impossible",transmitted:"Transmis à la bonne équipe",out_of_scope:"Hors périmètre"}},form:{title:"Proposer une amélioration",description:"Vous avez une idée pour <strong>améliorer</strong> notre service ? Partagez là !",field:{title:"Résumé de votre suggestion",description:"Expliquez en détail votre proposition d'amélioration"}},thanks:{title:"Merci pour votre suggestion",description:"Votre idée a bien été transmise. Nous apprécions votre engagement à améliorer notre service."}},feedbot:{anonymous:"Répondre anonymement",rating_error:"Veuillez sélectionner une note",cancel:"Non merci",submit:"Envoyer votre avis",bubble_default:"Bonjour !",star_label:"Noter {n} étoile{s}",thanks:{title:"Merci pour votre réponse !",sub_title:"Nous vous remercions de votre réponse qui participe grandement à l'amélioration de la qualité de votre application.",declined:{title:"Merci de votre réponse",sub_title:"Nous vous remercions de votre réponse."}}},integration_test:{pending:{button:"Tester l'intégration",feedback:{title:"Testons ensemble l'<strong>intégration de FeedBack</strong> !",text:"Avant d'aller plus loin, assurons-nous que la connexion entre votre application et le module FeedBack est bien en place."},feedbot:{title:"Testons ensemble l'<strong>intégration de FeedBot</strong> !",text:"Avant d'aller plus loin, assurons-nous que la connexion entre votre application et le module FeedBot est bien en place."}},checking:{title:"Test de connexion en cours…",button:"Test en cours...",feedback_text:"Nous vérifions actuellement la communication entre votre application et FeedBack.",feedbot_text:"Nous vérifions actuellement la communication entre votre application et FeedBot."},ok:{title:"Intégration validée !",text:"C'est branché ! La communication entre les deux systèmes est opérationnelle",button:"Continuer"},ko:{title:"Echec du test d'intégration",text:"La communication entre les deux systèmes ne semble pas avoir fonctionné, vérifiez vos paramètres et notamment les url et uuid du projet dans FeedJet",button:"Réessayer"}},error:{communication:{title:"Problème de communication",description:"La communication entre les deux systèmes ne semble plus fonctionner, contactez votre administrateur"},no_subscription:{title:"Plus d'abonnement en cours de validité",description:"Il semble que votre abonnement FeedJet ne soit plus en cours de validité, contactez votre administrateur"}},consent:{feedback:{label:"J'autorise l'utilisation de mes données pour améliorer le service.",tooltip:"Afin d'améliorer l'analyse des anomalies rencontrées et de mieux comprendre le contexte dans lequel elles se produisent, nous souhaiterions collecter certaines métadonnées (informations techniques non personnelles telles que la version de l'application, le type d'appareil, le système d'exploitation, etc.). Ces données seront utilisées uniquement dans le but de diagnostiquer et résoudre les problèmes techniques, et ne seront jamais partagées à des tiers."},screen:{label:"J'autorise l'envoi automatique d'une capture d'écran.",tooltip:"Une capture d'écran de l'application au moment de l'anomalie permet de mieux comprendre le problème que vous avez rencontré. Cela nous aidera à reproduire et corriger plus rapidement l'erreur. Aucune information personnelle n'est enregistrée, et la capture est utilisée uniquement à des fins de diagnostic."},attachment:{button:"Joindre un fichier",no_file:"Aucun fichier sélectionné",tooltip:"Vous pouvez joindre un fichier (ex: capture d'écran, log, etc.) pour aider à la compréhension de votre retour.",file_too_large:"Le fichier ne doit pas dépasser 10 Mo.",invalid_type:"Ce type de fichier n'est pas accepté. Joignez une image, une vidéo, un PDF, un document bureautique, un texte ou une archive."}},global:{date_at:"à",cancel:"Annuler",send:"Envoyer",close:"Fermer",sending:"Envoi en cours...",submit_error:"Une erreur est survenue lors de l'envoi. Veuillez réessayer.",rate_limited:"Trop d'envois en peu de temps. Veuillez réessayer dans quelques minutes.",required:"obligatoire",required_field:"Veuillez renseigner ce champ.",required_choice:"Veuillez sélectionner une option.",required_consent:"Veuillez cocher cette case pour continuer."},a11y:{feedback_button:"Ouvrir le formulaire de feedback",feedbot_bubble:"Ouvrir le sondage"}},en:{issue:{tab:"Issue",form:{title:"Report a technical issue",description:"Have you spotted a <strong>bug</strong>? Report it by describing the problem!",field:{title:"Problem summary",description:"Describe the issue you encountered in detail"}},thanks:{title:"Thank you for your report",description:"Your report has been received. Thank you for helping us improve the application. Our team will review it as soon as possible."}},enhancement:{tab:"Idea",form:{title:"Suggest an improvement",description:"Have an idea to <strong>improve</strong> our service? Share it with us!",field:{title:"Summary of your suggestion",description:"Explain your improvement proposal in detail"}},thanks:{title:"Thank you for your suggestion",description:"Your idea has been submitted. We appreciate your commitment to improving our service."}},decision:{tab:"Feedbacks",description:"Find your feedbacks and their status here!",loading:"Loading...",empty:"No feedback yet.",error:"Your feedback could not be loaded.",retry:"Try again",card:{type:{issue:"Issue",enhancement:"Idea"},date_prefix:"Sent on"},status:{enhancement:{loved:"Loved it",planned:"In the pipeline",next_step:"Next step",to_study:"Under review",impossible:"Not feasible",transmitted:"Forwarded to the right team"},issue:{planned:"In the pipeline",next_step:"Next step",not_a_bug:"Expected behavior",impossible:"Not feasible",transmitted:"Forwarded to the right team",out_of_scope:"Out of scope"}},form:{title:"Suggest an improvement",description:"Have an idea to <strong>improve</strong> our service? Share it with us!",field:{title:"Summary of your suggestion",description:"Explain your improvement proposal in detail"}},thanks:{title:"Thank you for your suggestion",description:"Your idea has been submitted. We appreciate your commitment to improving our service."}},feedbot:{anonymous:"Answer anonymously",rating_error:"Please select a rating",cancel:"No thanks",submit:"Send your feedback",bubble_default:"Hello!",star_label:"Rate {n} star{s}",thanks:{title:"Thank you for your response!",sub_title:"We truly appreciate your feedback, which greatly contributes to improving the quality of your application.",declined:{title:"Thank you for your response",sub_title:"We appreciate your feedback."}}},integration_test:{pending:{button:"Test integration",feedback:{title:"Let's test the <strong>FeedBack integration</strong> together!",text:"Before going further, let's make sure the connection between your application and the FeedBack module is properly set up."},feedbot:{title:"Let's test the <strong>FeedBot integration</strong> together!",text:"Before going further, let's make sure the connection between your application and the FeedBot module is properly set up."}},checking:{title:"Connection test in progress…",button:"Testing...",feedback_text:"We are currently verifying the communication between your application and FeedBack.",feedbot_text:"We are currently verifying the communication between your application and FeedBot."},ok:{title:"Integration validated!",text:"Connected! Communication between the two systems is operational.",button:"Continue"},ko:{title:"Integration test failed",text:"Communication between the two systems does not seem to have worked. Please check your settings, especially the URL and project UUID in FeedJet.",button:"Retry"}},error:{communication:{title:"Communication issue",description:"Communication between the two systems no longer seems to be working. Please contact your administrator."},no_subscription:{title:"No valid subscription",description:"It seems your FeedJet subscription is no longer valid. Please contact your administrator."}},consent:{feedback:{label:"I authorize the use of my data to improve the service.",tooltip:"To improve the analysis of encountered issues and better understand the context in which they occur, we would like to collect certain metadata (non-personal technical information such as application version, device type, operating system, etc.). This data will be used solely for the purpose of diagnosing and resolving technical issues, and will never be shared with third parties."},screen:{label:"I authorize the automatic sending of a screenshot.",tooltip:"A screenshot of the application at the time of the issue helps us better understand the problem you encountered. This will help us reproduce and fix the error more quickly. No personal information is recorded, and the screenshot is used solely for diagnostic purposes."},attachment:{button:"Attach a file",no_file:"No file selected",tooltip:"You can attach a file (e.g., screenshot, log, etc.) to help us understand your feedback.",file_too_large:"The file must not exceed 10 MB.",invalid_type:"This file type is not accepted. Attach an image, a video, a PDF, an office document, a text file or an archive."}},global:{date_at:"at",cancel:"Cancel",send:"Send",close:"Close",sending:"Sending...",submit_error:"An error occurred while sending. Please try again.",rate_limited:"Too many submissions in a short time. Please try again in a few minutes.",required:"required",required_field:"Please fill in this field.",required_choice:"Please select an option.",required_consent:"Please tick this box to continue."},a11y:{feedback_button:"Open the feedback form",feedbot_bubble:"Open the survey"}},es:{issue:{tab:"Incidencia",form:{title:"Reportar un problema técnico",description:"¿Ha detectado una <strong>anomalía</strong>? ¡Repórtela describiendo el problema!",field:{title:"Resumen del problema",description:"Describa con precisión el problema encontrado"}},thanks:{title:"Gracias por su reporte",description:"Su reporte ha sido recibido. Le agradecemos su participación en la mejora de la aplicación. Nuestro equipo lo analizará a la mayor brevedad."}},enhancement:{tab:"Idea",form:{title:"Proponer una mejora",description:"¿Tiene una idea para <strong>mejorar</strong> nuestro servicio? ¡Compártala con nosotros!",field:{title:"Resumen de su sugerencia",description:"Explique en detalle su propuesta de mejora"}},thanks:{title:"Gracias por su sugerencia",description:"Su idea ha sido enviada. Agradecemos su compromiso con la mejora de nuestro servicio."}},decision:{tab:"Feedbacks",description:"¡Encuentre aquí sus feedbacks y su estado de seguimiento!",loading:"Cargando...",empty:"Ningún feedback por el momento.",error:"No se han podido cargar sus comentarios.",retry:"Reintentar",card:{type:{issue:"Problema",enhancement:"Idea"},date_prefix:"Enviado el"},status:{enhancement:{loved:"Nos encanta",planned:"En camino",next_step:"Próximo paso",to_study:"En estudio",impossible:"No viable",transmitted:"Transmitido al equipo adecuado"},issue:{planned:"En camino",next_step:"Próximo paso",not_a_bug:"Comportamiento esperado",impossible:"No viable",transmitted:"Transmitido al equipo adecuado",out_of_scope:"Fuera de alcance"}},form:{title:"Proponer una mejora",description:"¿Tiene una idea para <strong>mejorar</strong> nuestro servicio? ¡Compártala con nosotros!",field:{title:"Resumen de su sugerencia",description:"Explique en detalle su propuesta de mejora"}},thanks:{title:"Gracias por su sugerencia",description:"Su idea ha sido enviada. Agradecemos su compromiso con la mejora de nuestro servicio."}},feedbot:{anonymous:"Responder de forma anónima",rating_error:"Por favor, seleccione una puntuación",cancel:"No, gracias",submit:"Enviar su opinión",bubble_default:"¡Hola!",star_label:"Puntuar {n} estrella{s}",thanks:{title:"¡Gracias por su respuesta!",sub_title:"Le agradecemos su respuesta, que contribuye enormemente a mejorar la calidad de su aplicación.",declined:{title:"Gracias por su respuesta",sub_title:"Le agradecemos su respuesta."}}},integration_test:{pending:{button:"Probar la integración",feedback:{title:"¡Probemos juntos la <strong>integración de FeedBack</strong>!",text:"Antes de continuar, asegurémonos de que la conexión entre su aplicación y el módulo FeedBack está correctamente configurada."},feedbot:{title:"¡Probemos juntos la <strong>integración de FeedBot</strong>!",text:"Antes de continuar, asegurémonos de que la conexión entre su aplicación y el módulo FeedBot está correctamente configurada."}},checking:{title:"Prueba de conexión en curso…",button:"Probando...",feedback_text:"Estamos verificando la comunicación entre su aplicación y FeedBack.",feedbot_text:"Estamos verificando la comunicación entre su aplicación y FeedBot."},ok:{title:"¡Integración validada!",text:"¡Conectado! La comunicación entre los dos sistemas es operativa.",button:"Continuar"},ko:{title:"Fallo en la prueba de integración",text:"La comunicación entre los dos sistemas no parece haber funcionado. Verifique sus parámetros, especialmente la URL y el UUID del proyecto en FeedJet.",button:"Reintentar"}},error:{communication:{title:"Problema de comunicación",description:"La comunicación entre los dos sistemas ya no parece funcionar. Contacte a su administrador."},no_subscription:{title:"Suscripción no válida",description:"Parece que su suscripción a FeedJet ya no es válida. Contacte a su administrador."}},consent:{feedback:{label:"Autorizo el uso de mis datos para mejorar el servicio.",tooltip:"Para mejorar el análisis de las anomalías encontradas y comprender mejor el contexto en el que se producen, nos gustaría recopilar ciertos metadatos (información técnica no personal como la versión de la aplicación, el tipo de dispositivo, el sistema operativo, etc.). Estos datos se utilizarán únicamente con el fin de diagnosticar y resolver problemas técnicos, y nunca se compartirán con terceros."},screen:{label:"Autorizo el envío automático de una captura de pantalla.",tooltip:"Una captura de pantalla de la aplicación en el momento de la anomalía permite comprender mejor el problema que ha encontrado. Esto nos ayudará a reproducir y corregir el error más rápidamente. No se registra ninguna información personal y la captura se utiliza únicamente con fines de diagnóstico."},attachment:{button:"Adjuntar un archivo",no_file:"Ningún archivo seleccionado",tooltip:"Puede adjuntar un archivo (ej: captura de pantalla, log, etc.) para ayudar a la comprensión de su comentario.",file_too_large:"El archivo no debe superar los 10 MB.",invalid_type:"Este tipo de archivo no está permitido. Adjunte una imagen, un vídeo, un PDF, un documento de oficina, un texto o un archivo comprimido."}},global:{date_at:"a las",cancel:"Cancelar",send:"Enviar",close:"Cerrar",sending:"Enviando...",submit_error:"Se produjo un error durante el envío. Por favor, inténtelo de nuevo.",rate_limited:"Demasiados envíos en poco tiempo. Por favor, inténtelo de nuevo en unos minutos.",required:"obligatorio",required_field:"Por favor, rellene este campo.",required_choice:"Por favor, seleccione una opción.",required_consent:"Marque esta casilla para continuar."},a11y:{feedback_button:"Abrir el formulario de feedback",feedbot_bubble:"Abrir la encuesta"}},nl:{issue:{tab:"Probleem",form:{title:"Een technisch probleem melden",description:"Heeft u een <strong>probleem</strong> ontdekt? Meld het door het te beschrijven!",field:{title:"Samenvatting van het probleem",description:"Beschrijf zo nauwkeurig mogelijk het probleem dat u heeft ondervonden"}},thanks:{title:"Bedankt voor uw melding",description:"Uw melding is goed ontvangen. Bedankt dat u meehelpt de applicatie te verbeteren. Ons team bekijkt deze zo snel mogelijk."}},enhancement:{tab:"Idee",form:{title:"Een verbetering voorstellen",description:"Heeft u een idee om onze dienst te <strong>verbeteren</strong>? Deel het met ons!",field:{title:"Samenvatting van uw suggestie",description:"Leg uw verbetervoorstel in detail uit"}},thanks:{title:"Bedankt voor uw suggestie",description:"Uw idee is goed doorgegeven. We waarderen uw inzet om onze dienst te verbeteren."}},decision:{tab:"Feedback",description:"Bekijk hier uw feedback en de status ervan!",loading:"Laden...",empty:"Nog geen feedback.",error:"Uw feedback kon niet worden geladen.",retry:"Opnieuw proberen",card:{type:{issue:"Probleem",enhancement:"Idee"},date_prefix:"Verzonden op"},status:{enhancement:{loved:"Favoriet",planned:"In de pijplijn",next_step:"Volgende stap",to_study:"In onderzoek",impossible:"Niet haalbaar",transmitted:"Doorgegeven aan het juiste team"},issue:{planned:"In de pijplijn",next_step:"Volgende stap",not_a_bug:"Normaal gedrag",impossible:"Niet haalbaar",transmitted:"Doorgegeven aan het juiste team",out_of_scope:"Buiten scope"}},form:{title:"Een verbetering voorstellen",description:"Heeft u een idee om onze dienst te <strong>verbeteren</strong>? Deel het met ons!",field:{title:"Samenvatting van uw suggestie",description:"Leg uw verbetervoorstel in detail uit"}},thanks:{title:"Bedankt voor uw suggestie",description:"Uw idee is goed doorgegeven. We waarderen uw inzet om onze dienst te verbeteren."}},feedbot:{anonymous:"Anoniem antwoorden",rating_error:"Selecteer een beoordeling",cancel:"Nee, bedankt",submit:"Uw mening versturen",bubble_default:"Hallo!",star_label:"Aantal sterren: {n}",thanks:{title:"Bedankt voor uw antwoord!",sub_title:"Hartelijk dank voor uw antwoord, dat in grote mate bijdraagt aan het verbeteren van de kwaliteit van uw applicatie.",declined:{title:"Bedankt voor uw antwoord",sub_title:"Hartelijk dank voor uw antwoord."}}},integration_test:{pending:{button:"Integratie testen",feedback:{title:"Laten we samen de <strong>integratie van FeedBack</strong> testen!",text:"Voordat we verdergaan, controleren we of de verbinding tussen uw applicatie en de module FeedBack goed is ingesteld."},feedbot:{title:"Laten we samen de <strong>integratie van FeedBot</strong> testen!",text:"Voordat we verdergaan, controleren we of de verbinding tussen uw applicatie en de module FeedBot goed is ingesteld."}},checking:{title:"Verbindingstest bezig…",button:"Test bezig...",feedback_text:"We controleren momenteel de communicatie tussen uw applicatie en FeedBack.",feedbot_text:"We controleren momenteel de communicatie tussen uw applicatie en FeedBot."},ok:{title:"Integratie gevalideerd!",text:"Verbonden! De communicatie tussen beide systemen werkt.",button:"Doorgaan"},ko:{title:"Integratietest mislukt",text:"De communicatie tussen beide systemen lijkt niet te hebben gewerkt. Controleer uw instellingen, met name de URL en de UUID van het project in FeedJet.",button:"Opnieuw proberen"}},error:{communication:{title:"Communicatieprobleem",description:"De communicatie tussen beide systemen lijkt niet meer te werken. Neem contact op met uw beheerder."},no_subscription:{title:"Geen geldig abonnement",description:"Het lijkt erop dat uw FeedJet-abonnement niet meer geldig is. Neem contact op met uw beheerder."}},consent:{feedback:{label:"Ik geef toestemming voor het gebruik van mijn gegevens om de dienst te verbeteren.",tooltip:"Om de analyse van opgetreden problemen te verbeteren en de context waarin ze zich voordoen beter te begrijpen, willen we bepaalde metadata verzamelen (niet-persoonlijke technische informatie zoals de versie van de applicatie, het type apparaat, het besturingssysteem, enz.). Deze gegevens worden uitsluitend gebruikt om technische problemen vast te stellen en op te lossen, en worden nooit met derden gedeeld."},screen:{label:"Ik geef toestemming voor het automatisch verzenden van een schermafbeelding.",tooltip:"Een schermafbeelding van de applicatie op het moment van het probleem helpt ons beter te begrijpen wat u heeft ondervonden. Zo kunnen we de fout sneller reproduceren en oplossen. Er worden geen persoonlijke gegevens vastgelegd en de schermafbeelding wordt uitsluitend voor diagnose gebruikt."},attachment:{button:"Bestand toevoegen",no_file:"Geen bestand geselecteerd",tooltip:"U kunt een bestand toevoegen (bijv. schermafbeelding, log, enz.) om ons te helpen uw feedback te begrijpen.",file_too_large:"Het bestand mag niet groter zijn dan 10 MB.",invalid_type:"Dit bestandstype wordt niet geaccepteerd. Voeg een afbeelding, video, PDF, kantoordocument, tekstbestand of archief toe."}},global:{date_at:"om",cancel:"Annuleren",send:"Verzenden",close:"Sluiten",sending:"Bezig met verzenden...",submit_error:"Er is een fout opgetreden bij het verzenden. Probeer het opnieuw.",rate_limited:"Te veel inzendingen in korte tijd. Probeer het over een paar minuten opnieuw.",required:"verplicht",required_field:"Vul dit veld in.",required_choice:"Selecteer een optie.",required_consent:"Vink dit vakje aan om verder te gaan."},a11y:{feedback_button:"Het feedbackformulier openen",feedbot_bubble:"De enquête openen"}}},r=Object.values(a);let c=a.FR;function l(e){c=r.includes(e)?e:a.FR}function d(){return c}function u(e){let t=s[c];for(const n of e.split("."))t="object"==typeof t?t[n]:void 0;return"string"==typeof t?t:e}function f(e){return`<span${e?` class="${e}"`:""} aria-hidden="true">*</span><span class="fj-sr-only">(${u("global.required")})</span>`}var p='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 113 128"><path fill="url(#a)" d="M106.54 71.127c3.023-18.337-13.943-36.402-37.894-40.35-23.95-3.948-45.816 7.716-48.839 26.053S33.75 93.233 57.701 97.18c23.95 3.948 45.817-7.717 48.839-26.053"/><path fill="url(#b)" d="M57.79 100.89c-14.507-1.527-22.617-9.126-27.06-1.604-3.742 6.337 4.427 25.696 22.496 28.387 18.65 2.777 31.65-12.811 29.958-21.03-1.388-6.746-10.316-4.166-25.394-5.754z"/><path fill="url(#c)" d="M24.61 91.348c-1.404-4.976-6.158-6.304-9.865-7.227S6.26 80.392 3.487 82.293C.714 84.196-1.61 89.62 1.447 92.368s8.027 4.753 11.173 8.11c2.496 2.662 7.488 3.107 9.763 2.219 2.305-.9 3.66-6.268 2.227-11.35"/><path fill="url(#d)" d="M90.277 103.279c-1.525-1.944-4.597-1.823-7.487.017s-7.034 4.165-9.695 5.483c-2.66 1.318-8.231 4.052-3.282 7.901s13.828 4.445 16.968 2.508c3.141-1.936 9.477-8.281 3.496-15.909"/><path fill="url(#e)" d="M65.786 50.709c12.464 2.832 21.705 9.103 23.108 10.39 1.075.985.896 7.434-.628 13.166-1.523 5.732-5.284 11.196-6.359 11.823-1.525.89-13.05.787-23.914-2.328-12.18-3.493-23.108-9.852-23.735-11.465-.726-1.867.184-8.57 1.164-12.001.896-3.135 3.422-10.35 5.284-11.555 1.523-.985 13.125-.745 25.08 1.97"/><path fill="url(#f)" d="M22.26 45.957c1.042-1.14 3.756-2.973 3.985-.664.875 8.774-1.102 16.342-3.726 21.362-1.767 3.38-2.89 2.947-3.847 1.623-.633-.879-2.125-7.838-.93-13.02 1.06-4.588 3.475-8.161 4.517-9.3z"/><path fill="#d9effd" d="M48.655 67.124c1.35.39 7.81 2.589 9.14 1.035 1.583-1.85-1.624-7.686-6.273-9.12-4.51-1.391-10.327 1.87-10.492 3.842-.16 1.933 6.272 3.853 7.625 4.243m26.151 6.636c1.389.228 8.06 1.648 9.198-.052 1.354-2.024-2.52-7.44-7.306-8.315-4.642-.849-10.034 3.077-9.964 5.055.07 1.94 6.684 3.086 8.072 3.312"/><path fill="#b4bfc6" d="M25.589 44.239c.174-.246.24-.338.6-.787.805.268 1.408 2.568 1.738 4.122 1.018 4.791.088 12.596-1.574 19.115-.799 3.133-2.52 7.453-3.542 7.71 0 0-1.356-2.556-2.33-5.216 0 0 2.147-2.439 3.285-6.45 1.8-6.343 2.913-15.013 1.823-18.494m29.575 49.476c4.963 1.258 7.03 2.001 14.974.995 6.645-.842 9.886 0 11.378 1.209a55 55 0 0 1-4.854 1.117c-4.613.838-15.029 2.027-25.934-1.398-1.273-.4-3.965-1.397-4.798-1.717 1.073-1.263 5.901-1.05 9.232-.207zm21.374 8.193c-2.892-.353-6.092-.296-9.583-.417-1.756-.062-3.528-.127-5.083-.251-2-.159-3.368-.261-4.546-.392-3.087-.343-6.877-1.21-10.075-2.147-3.197-.938-5.918-1.814-6.86-2.035-1.53.25 9.5 5.434 14.075 6.844 4.58 1.411 9.614 2.379 13.418 2.383 3.797.005 10.845-.826 12.058-1.803 1.31-1.055-.235-1.455-.456-1.528-.22-.073-1.337-.434-2.948-.655zM12.98 96.095c1.76.468 4.548 1.213 6.191-.196 1.644-1.409 2.93-7.812 4.208-6.917s2.69 6.165 1.426 11.26c-.555 2.236-3.14 3.32-5.868 3.169-4.767-.265-6.634-3.69-10.607-6.338.51-2.238 3.613-1.255 4.65-.978m93.377-34.405c.364 2.152.61 3.807.455 6.672-.182 3.366-1.002 6.116-2.184 8.826-1.868 4.278-4.561 7.74-6.864 9.803 0 0 6.251-2.521 9.339-6.977.946-1.365 2.291-4.05 2.68-6.404.678-4.091.057-8.993-3.426-11.92m-17.168 44.629c.38 1.985.5 3.721-1 5.852s-3.552 2.611-3.552 3.996c0 1.386.833 2.125 2.044 1.975.57-.07 1.733-1.049 2.694-2.178 2.697-3.164 2.749-5.333 2.754-7.05.006-2.461-3.32-4.582-2.94-2.598zm-20.849 8.854c-.161.007-1.067.411-1.109 1.295-.057 1.212.488 2.61 1.532 3.763 1.804 1.991 4.134 2.982 5.076 2.606 1.3-.82 3.413-2.766 3.524-2.988 0 0-1.808-.447-3.083-.845-.927-.29-1.863-.749-2.332-.986-2.041-1.029-3.12-2.213-3.606-2.845z"/><path fill="#fff" d="M43.377 36.6c-2.55.91-8.308 3.067-8.053 6.135s4.602 2.044 6.774 1.15c2.173-.895 6.264-2.173 8.691-2.557 2.43-.383 3.962-2.684 2.685-4.217s-6.52-1.79-10.098-.512h.001zM18.15 56.045a22.2 22.2 0 0 1 1.552-4.79c.66-1.46 2.297-3.018 2.22-1.735s-1.174 4.158-1.355 6.084c-.18 1.926-.345 4.518-.869 5.773-.399.956-1.545 2.176-1.738.52-.09-.772-.274-3.28.112-5.182m-15.7 29.523c-.483.753-1.534 2.43.512 3.452 2.045 1.022 4.984 1.917 7.03 1.405 2.044-.512 4.473-1.79 4.6-2.94.128-1.15 1.023-2.3-.255-2.684-1.277-.383-5.623-.512-6.901-.895-1.278-.382-3.835-.127-4.985 1.662m33.395 14.1c-1.362.037-3.072 1.942-2.866 3.735s.211 3.837.84 5.355c.628 1.518 2.31 5.301 4.43 5.968 2.122.666 3.419 1.085 4.088-.014s.64-2.344-.187-3.613c-.826-1.268-2.674-2.534-2.608-4.927.068-2.392-1.092-6.576-3.697-6.505zm46.598 4.131c1.35-.522 2.92.032 3.896 1.302.976 1.269-.032 2.92-1.302 3.896-1.27.975-6.207 4.244-8.284 3.886-2.076-.359-4.651-2.755-3.499-3.782s5.263-2.425 6.312-3.219c1.05-.795 2.876-2.083 2.876-2.083z"/><path fill="#121442" d="M81.907 86.088c-1.525.89-13.05.787-23.914-2.328-12.18-3.493-23.108-9.852-23.735-11.465-.726-1.867.184-8.57 1.164-12.001.896-3.135 3.422-10.35 5.284-11.555 0 0 .691-.44 2.601-.476-.658 1.033-1.45 2.153-2.01 3.296-.434.887-2.666 5.939-3.738 10.7-.767 3.407-1.123 7.31-.913 8.502.117.456.236.613.72.958 1.753 1.25 12.552 6.35 18.793 8.11 13.406 3.785 25 4.313 27.64 4.057 0 0-1.231 1.816-1.892 2.2z"/><path fill="#2c3d82" d="M56.432 106.844s-8.204 1.241-7.613 10.88c.145 2.367 1.775 5.971 4.955 7.967 0 0-4.213-5.563-1.725-10.895 1.999-4.286 7.142-2.475 8.348-7.682 0 0-1.757-.585-3.965-.27"/><path fill="#2c3d82" d="M59.292 114.366a3.713 3.713 0 1 0 0-7.425 3.713 3.713 0 0 0 0 7.425m-4.194 4.292a2.408 2.408 0 1 0 0-4.816 2.408 2.408 0 0 0 0 4.816m27.645-96.962c4.493 0 8.135-3.634 8.135-8.116 0-4.483-3.642-8.117-8.135-8.117-4.492 0-8.134 3.634-8.134 8.117 0 4.482 3.642 8.116 8.134 8.116"/><path fill="#5b76c4" d="M86.035 9.156c1.013.686.843 2.11 1.021 4.045.164 1.788-2.54 4.666-4.573 4.632s-3.966-.812-5.052-2.813c-1.043-1.925-.922-3.05-.386-4.397.627-1.571 2.658-3.175 5.08-3.083s2.84.892 3.91 1.616"/><path fill="#3d55a3" d="M86.986 18.23c.984-.706 2.504-2.708 2.069-5.21-.501-2.88-1.649-4.738-3.663-4.442-2.05.3-3.705 1.05-3.657 3.01.047 1.96 1.09 3.403-.171 4.665s.045 3.83 1.526 3.65c2.244-.271 2.942-.989 3.896-1.672"/><path fill="#c0d2ff" d="M80.494 12.45c.886-.417 2.588-1.189 2.935-2.079s.382-2.139-.516-2.811c-.899-.672-2.169-.982-3.223-.185s-2.805 2.084-2.14 3.274c.662 1.19.562 2.22 1.683 2.072s1.262-.271 1.262-.271z"/><path fill="#2c3d82" d="M90.125 4.135a.9.9 0 0 1-.583-.213c-.863-.723-2.46-1.384-2.477-1.391a.905.905 0 1 1 .69-1.675c.077.031 1.873.773 2.955 1.68a.906.906 0 0 1-.585 1.6zM79.361 2.283A.907.907 0 0 1 79.1.508C79.165.49 80.722.027 82.192 0a.907.907 0 1 1 .032 1.812c-1.216.021-2.59.427-2.603.43a1 1 0 0 1-.26.04M72.792 6.63a.905.905 0 0 1-.714-1.464c.042-.054 1.065-1.35 2.275-2.231a.91.91 0 0 1 1.269.198.904.904 0 0 1-.199 1.266c-1.008.733-1.906 1.873-1.915 1.883a.9.9 0 0 1-.715.348zm-2.752 7.486h-.015a.907.907 0 0 1-.893-.919c0-.07.031-1.718.463-3.145a.908.908 0 0 1 1.738.524c-.357 1.18-.386 2.634-.386 2.649a.907.907 0 0 1-.907.891m2.062 7.627a.9.9 0 0 1-.753-.398c-.038-.057-.945-1.401-1.407-2.794a.909.909 0 0 1 1.724-.57c.382 1.151 1.18 2.337 1.187 2.35a.904.904 0 0 1-.752 1.412zm6.333 4.967q-.15.001-.297-.05c-.065-.023-1.6-.56-2.802-1.4a.905.905 0 1 1 1.04-1.484c.993.693 2.345 1.168 2.358 1.172a.906.906 0 0 1-.299 1.762m4.968.765a.907.907 0 0 1-.908-.904.907.907 0 0 1 .905-.908c1.248-.004 2.645-.4 2.658-.405a.904.904 0 1 1 .502 1.74c-.066.02-1.657.472-3.156.475H83.4zm7.493-2.795a.904.904 0 0 1-.55-1.627c.989-.75 1.86-1.907 1.868-1.918a.91.91 0 0 1 1.271-.182c.402.3.483.867.183 1.268-.041.056-1.035 1.373-2.225 2.276a.9.9 0 0 1-.548.184zm4.3-6.562a.906.906 0 0 1-.862-1.19c.392-1.183.457-2.63.459-2.645a.907.907 0 0 1 1.813.077c-.003.07-.079 1.717-.549 3.135a.91.91 0 0 1-.861.622zm.069-8.232a.91.91 0 0 1-.826-.532c-.538-1.18-1.472-2.04-1.48-2.05a.908.908 0 0 1 1.222-1.34c.05.045 1.214 1.11 1.912 2.64a.905.905 0 0 1-.825 1.28z"/><defs><linearGradient id="a" x1="30.147" x2="98.416" y1="37.556" y2="92.175" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="29.841" x2="83.332" y1="112.009" y2="112.009" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1=".001" x2="25.199" y1="92.38" y2="92.38" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="67.834" x2="92.753" y1="111.066" y2="111.066" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="58.19" x2="71.282" y1="82.334" y2="28.315" gradientUnits="userSpaceOnUse"><stop stop-color="#134395"/><stop offset=".23" stop-color="#113880"/><stop offset=".66" stop-color="#0e2050"/></linearGradient><linearGradient id="f" x1="17.292" x2="26.455" y1="56.722" y2="56.722" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient></defs></svg>';function m(e,t){if("Tab"!==t.key)return;const n=e.querySelectorAll('button:not([disabled]), input:not([disabled]):not([type="hidden"]):not([style*="display:none"]), textarea:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');if(0===n.length)return;const o=n[0],i=n[n.length-1];t.shiftKey&&document.activeElement===o?(t.preventDefault(),i.focus()):t.shiftKey||document.activeElement!==i||(t.preventDefault(),o.focus())}"function"==typeof SuppressedError&&SuppressedError;const h={WindowsPhone:/windows phone/i,Android:/android/i,iOS:/iPad|iPhone|iPod/,Windows:/Win/i,MacOS:/Mac/i,Linux:/Linux/i};let b=null;async function g(){null!=b||(b=Promise.resolve().then(function(){return st}));try{return await b}catch(e){throw b=null,e}}const y=/[&<>"']/g,v={"&":"&","<":"<",">":">",'"':""","'":"'"};function w(e){e.addEventListener("invalid",e=>{const t=e.target;if(!t.validity.valueMissing||t.validity.customError)return;const n="checkbox"===t.type?"required_consent":"radio"===t.type?"required_choice":"required_field";t.setCustomValidity(u(`global.${n}`))},!0);const t=t=>{const n=t.target,o="radio"===n.type?e.querySelectorAll(`input[name="${n.name}"]`):[n];for(const e of o)e.setCustomValidity("")};e.addEventListener("input",t),e.addEventListener("change",t)}function k(e){return String(null!=e?e:"").replace(y,e=>v[e])}const x=1e4,S=new Set(["GET","HEAD"]);function j(){return new DOMException("Aborted","AbortError")}function M(e,t){return new Promise((n,o)=>{const i=setTimeout(()=>{null==t||t.removeEventListener("abort",a),n()},e);function a(){clearTimeout(i),o(j())}null==t||t.addEventListener("abort",a,{once:!0})})}async function E(e,t={}){var n,o,{timeout:i=x,retries:a=0,signal:s}=t,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(t,["timeout","retries","signal"]);const c=S.has((null!==(n=r.method)&&void 0!==n?n:"GET").toUpperCase())?a:0;for(let t=0;;t++){if(null==s?void 0:s.aborted)throw j();const n=new AbortController,a=()=>n.abort(),l=setTimeout(a,i);null==s||s.addEventListener("abort",a,{once:!0});try{const i=await fetch(e,Object.assign(Object.assign({},r),{signal:n.signal}));if(i.status<500||t>=c)return i;null===(o=i.body)||void 0===o||o.cancel()}catch(e){if((null==s?void 0:s.aborted)||t>=c)throw e}finally{clearTimeout(l),null==s||s.removeEventListener("abort",a)}await M(500*2**t,s)}}function C(e,t){try{null===t?sessionStorage.removeItem(e):sessionStorage.setItem(e,JSON.stringify(t))}catch(e){}}class ${constructor(e){this._connectivityError=null,this._integrationStatus="pending",this.config=e}get connectivityError(){return this._connectivityError}get integrationStatus(){return this._integrationStatus}setStatus(e,t){this._integrationStatus=e,void 0!==t&&(this._connectivityError=t)}handleIntegrationStatus(){return"pending"===this._integrationStatus?(this.renderPendingTest(),!0):"ko"===this._integrationStatus&&(this._connectivityError||(this._connectivityError="communication_error"),this.renderError(),!0)}closeModal(){const e=document.getElementById(this.config.modalId);e?(e.classList.add("fj-closing"),e.addEventListener("animationend",()=>{e.remove(),document.body.classList.remove(this.config.bodyOpenClass),this.config.toggleHtmlClass&&document.documentElement.classList.remove(this.config.bodyOpenClass)},{once:!0})):(document.body.classList.remove(this.config.bodyOpenClass),this.config.toggleHtmlClass&&document.documentElement.classList.remove(this.config.bodyOpenClass))}async checkConnectivity(){try{const e=await E(this.config.connectivityCheckUrl,{method:"POST",signal:this.config.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify(this.config.connectivityCheckBody)});if(e.ok)return this._connectivityError=null,!0;const t=await e.json();return this._connectivityError="no_subscription"===t.error?"no_subscription":"communication_error",!1}catch(e){return this.config.signal.aborted||(this._connectivityError="communication_error"),!1}}openModal(e,t){var n;this.closeModal();const o=document.createElement("div");return o.id=this.config.modalId,o.className=`fj ${e}`,o.dataset.fjTheme=this.config.theme,o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.setAttribute("aria-labelledby",`${this.config.modalId}-title`),o.addEventListener("click",e=>{e.target===o&&this.closeModal()}),o.addEventListener("keydown",e=>{"Escape"===e.key&&this.closeModal(),m(o,e)}),document.body.classList.add(this.config.bodyOpenClass),this.config.toggleHtmlClass&&document.documentElement.classList.add(this.config.bodyOpenClass),o.innerHTML=t,document.body.appendChild(o),null===(n=o.querySelector("button"))||void 0===n||n.focus(),o}renderError(){this.bindErrorContent(this.openModal("fj-it-modal fj-it-error",this.errorContent()))}renderErrorContent(e){e.innerHTML=this.errorContent(),this.bindErrorContent(e)}bindErrorContent(e){const t=e.querySelector(".fj-it-btn-close");null==t||t.addEventListener("click",()=>this.closeModal()),null==t||t.focus()}errorContent(){const e="no_subscription"===this._connectivityError,t=u(e?"error.no_subscription.title":"error.communication.title"),n=u(e?"error.no_subscription.description":"error.communication.description");return`\n <div class="fj-it-content" data-version="v2.7.0">\n <div class="fj-it-header">\n <div class="fj-it-robot" aria-hidden="true">${o}</div>\n <div class="fj-it-bubble">\n <p id="${this.config.modalId}-title" class="fj-it-title">${t}</p>\n <div class="fj-it-text">${n}</div>\n </div>\n </div>\n <div class="fj-it-footer">\n <button type="button" class="${this.config.btnPrimaryClasses} fj-it-btn-close">${u("global.close")}</button>\n </div>\n </div>\n `}renderPendingTest(){const e=this.openModal("fj-it-modal fj-it-pending",`\n <div class="fj-it-content" data-version="v2.7.0">\n <div class="fj-it-header">\n <div class="fj-it-robot" aria-hidden="true">${p}</div>\n <div class="fj-it-bubble">\n <p id="${this.config.modalId}-title" class="fj-it-title">${u(this.config.pendingTitleKey)}</p>\n <div class="fj-it-text">\n ${u(this.config.pendingTextKey)}\n </div>\n </div>\n </div>\n <div class="fj-it-footer">\n <button type="button" class="${this.config.btnOutlineClasses} fj-it-btn-cancel">\n ${u(this.config.cancelLabelKey)}\n </button>\n <button type="button" class="${this.config.btnPrimaryClasses} fj-it-btn-test">\n ${u("integration_test.pending.button")}\n </button>\n </div>\n </div>\n `),t=e.querySelector(".fj-it-btn-cancel"),n=e.querySelector(".fj-it-btn-test"),o=e.querySelector(".fj-it-robot"),i=e.querySelector(".fj-it-title"),a=e.querySelector(".fj-it-text");null==t||t.addEventListener("click",()=>this.closeModal()),null==n||n.addEventListener("click",async()=>{var s;n.disabled=!0,n.classList.add(this.config.btnLoadingClass),n.textContent=u("integration_test.checking.button"),o&&(o.innerHTML=p),i&&(i.textContent=u("integration_test.checking.title")),a&&(a.textContent=u(this.config.checkingTextKey));const r=await this.checkConnectivity();if(!this.config.signal.aborted)if(n.classList.remove(this.config.btnLoadingClass),t&&(t.style.display="none"),r)this._integrationStatus="ok",o&&(o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 102 153"><ellipse cx="49.54" cy="141" fill="url(#a)" fill-opacity=".6" rx="18.5" ry="4"/><ellipse cx="49.04" cy="150" fill="url(#b)" fill-opacity=".6" rx="13" ry="3"/><path fill="url(#c)" d="M7.23 90.83c1.549.77 3.233 3.719 5.691 4.708 2.46.987 8.138 2.22 7.73 7.033-.409 4.813-3.725 9.471-6.653 10.234s-7.747-.856-10.02-4.244C1.48 104.838-.15 97.453 1.126 94.549s3.157-5.18 6.102-3.717z"/><path fill="url(#d)" d="M50.17 102.076c-13.55.539-22.023-5.532-25.11 2.18-2.6 6.497 7.49 23.669 24.473 23.744 17.528.078 27.417-16.423 24.766-23.956-2.174-6.182-10.046-2.526-24.13-1.968"/><path fill="url(#e)" d="M51.865 99.61c22.542-1.043 40.186-16.253 39.408-33.973S71.591 34.4 49.048 35.442C26.506 36.485 8.862 51.695 9.64 69.414s19.682 31.239 42.225 30.196"/><path fill="url(#f)" d="M80.651 97.223c-1.702.72-3.473 2.594-1.578 5.511s1.894 7.132 2.368 8.753c.474 1.62 4.105 1.62 7.578-1.135 3.474-2.755 7.455-6.846 7.946-12.288.45-4.985-.456-6.827-3.05-7.833-1.621-.628-4.535-.087-6.266 2.08-1.555 1.949-4.313 3.776-6.996 4.912z"/><path fill="url(#g)" d="M49.402 53.828c12.153-.557 22.213 2.962 23.826 3.811 1.234.65 2.695 6.773 2.743 12.569.046 5.796-2.028 11.917-2.857 12.786-1.176 1.234-11.778 4.117-22.535 3.992-12.059-.14-23.69-3.305-24.673-4.661-1.136-1.572-1.99-8.124-1.955-11.61.032-3.185.532-10.637 1.938-12.255 1.149-1.323 11.858-4.097 23.513-4.632"/><path fill="#345c16" d="M50.991 21.585c4.344 0 7.865-3.616 7.865-8.075 0-4.46-3.521-8.075-7.865-8.075s-7.865 3.615-7.865 8.075 3.521 8.075 7.865 8.075"/><path fill="#ccf4a2" d="M54.173 9.108c.98.683.816 2.1.988 4.025.158 1.779-2.456 4.642-4.421 4.608s-3.835-.807-4.885-2.798c-1.008-1.915-.891-3.035-.373-4.375.606-1.563 2.57-3.158 4.911-3.067 2.342.091 2.747.888 3.78 1.607"/><path fill="#529b15" d="M55.093 18.138c.951-.703 2.421-2.695 2-5.184-.485-2.866-1.594-4.714-3.541-4.42-1.983.3-3.582 1.045-3.537 2.995.046 1.95 1.055 3.385-.165 4.641-1.219 1.255.044 3.811 1.476 3.632 2.17-.27 2.845-.984 3.767-1.664"/><path fill="#fff" d="M48.816 12.387c.857-.415 2.502-1.182 2.838-2.068.336-.885.37-2.128-.499-2.797-.87-.668-2.097-.977-3.116-.184s-2.712 2.074-2.07 3.257c.641 1.185.544 2.21 1.628 2.062 1.082-.148 1.22-.27 1.22-.27"/><path fill="#345c16" d="M58.129 4.112a.86.86 0 0 1-.564-.211c-.835-.72-2.38-1.377-2.395-1.384a.91.91 0 0 1-.477-1.176.87.87 0 0 1 1.144-.49c.074.03 1.81.768 2.857 1.67a.92.92 0 0 1 .107 1.27.86.86 0 0 1-.672.321M47.72 2.27a.88.88 0 0 1-.84-.642.906.906 0 0 1 .587-1.122c.063-.02 1.568-.48 2.99-.506h.017a.89.89 0 0 1 .877.885.89.89 0 0 1-.862.917c-1.175.022-2.503.426-2.516.43a1 1 0 0 1-.252.038zm-6.35 4.326a.86.86 0 0 1-.54-.191.92.92 0 0 1-.152-1.265c.041-.054 1.03-1.345 2.2-2.22a.863.863 0 0 1 1.227.196c.285.403.2.966-.192 1.26-.975.729-1.843 1.863-1.852 1.874a.87.87 0 0 1-.691.346m-2.661 7.448h-.015a.89.89 0 0 1-.863-.914c0-.07.03-1.71.448-3.129a.874.874 0 0 1 1.094-.602.906.906 0 0 1 .586 1.124c-.347 1.18-.373 2.619-.373 2.633a.89.89 0 0 1-.877.887zm1.995 7.586a.87.87 0 0 1-.728-.396c-.038-.057-.914-1.394-1.361-2.78a.907.907 0 0 1 .557-1.138c.46-.158.957.1 1.11.572.371 1.15 1.14 2.325 1.147 2.337a.916.916 0 0 1-.235 1.25.86.86 0 0 1-.491.155m6.124 4.943a.8.8 0 0 1-.288-.05c-.062-.023-1.546-.556-2.71-1.392a.917.917 0 0 1-.216-1.255.863.863 0 0 1 1.222-.222c.96.69 2.268 1.162 2.28 1.166a.91.91 0 0 1 .54 1.148.88.88 0 0 1-.828.605m4.803.762a.89.89 0 0 1-.879-.9.89.89 0 0 1 .876-.903c1.2-.003 2.557-.399 2.57-.402a.876.876 0 0 1 1.087.617.904.904 0 0 1-.6 1.115c-.065.02-1.603.469-3.052.473zm7.244-2.783a.87.87 0 0 1-.7-.355.917.917 0 0 1 .168-1.263c.95-.742 1.798-1.897 1.808-1.91a.863.863 0 0 1 1.229-.18.917.917 0 0 1 .176 1.26c-.04.056-1 1.367-2.15 2.264a.86.86 0 0 1-.53.184m4.155-6.526a.9.9 0 0 1-.276-.046.907.907 0 0 1-.558-1.139c.377-1.169.442-2.617.443-2.631a.885.885 0 0 1 .915-.86.893.893 0 0 1 .84.938c-.003.068-.077 1.708-.53 3.119a.88.88 0 0 1-.834.619m.068-8.19a.88.88 0 0 1-.8-.529c-.519-1.174-1.422-2.03-1.43-2.039a.92.92 0 0 1-.057-1.272.86.86 0 0 1 1.238-.061c.048.044 1.174 1.104 1.85 2.626.2.453.005.988-.436 1.193a.85.85 0 0 1-.363.08z"/><path fill="#d9effd" d="M55.275 69.694c.687-1.293 3.67-4.573 4.571-5.54 1.042-1.122 3.902-1.663 5.16.101 1.26 1.764 3.673 4.178 4.267 5.91.45 1.307.645 2.955-.992 3.362-2.428.604-3.63-3.065-4.317-3.77s-2.423-.756-3.225-.05c-.802.705-2.012 3.096-2.928 3.565-.916.47-2.977.51-3.224-1.109-.266-1.742.687-2.469.687-2.469zm-23.552 0c.687-1.293 3.67-4.573 4.571-5.54 1.042-1.122 3.902-1.663 5.16.101 1.26 1.764 3.673 4.178 4.267 5.91.45 1.307.645 2.955-.992 3.362-2.428.604-3.63-3.065-4.317-3.77s-2.423-.756-3.225-.05c-.801.705-2.011 3.096-2.928 3.565-.916.47-2.977.51-3.224-1.109-.265-1.742.687-2.469.687-2.469z"/><path fill="url(#h)" d="M20.2 31.648a1.52 1.52 0 0 1-1.39-.925l-5.43-12.48c-.343-.788 0-1.71.768-2.063a1.505 1.505 0 0 1 2.01.79l5.43 12.48c.343.788 0 1.71-.768 2.062a1.5 1.5 0 0 1-.62.136"/><path fill="url(#i)" d="M10.257 38.796c-.425 0-.848-.181-1.15-.537L.374 27.944a1.59 1.59 0 0 1 .15-2.203 1.494 1.494 0 0 1 2.146.154l8.735 10.314a1.59 1.59 0 0 1-.15 2.204 1.5 1.5 0 0 1-.997.383"/><path fill="url(#j)" d="M89.766 38.342c-.442 0-.88-.197-1.182-.578a1.59 1.59 0 0 1 .223-2.197l10.336-8.615a1.497 1.497 0 0 1 2.141.229 1.59 1.59 0 0 1-.223 2.197l-10.336 8.615a1.5 1.5 0 0 1-.959.35"/><path fill="url(#k)" d="M80.467 30.33c-.293 0-.59-.087-.85-.269a1.59 1.59 0 0 1-.41-2.168l7.445-11.332a1.5 1.5 0 0 1 2.112-.421 1.59 1.59 0 0 1 .411 2.168L81.73 29.64a1.51 1.51 0 0 1-1.263.688z"/><path fill="#b4bfc6" d="M6.294 109.977s-3.538-2.935-2.116-5.036c.722-1.065 1.964-1.727 3.93-1.234 1.968.494 3.644 1.918 5.367 1.215s2.637-1.205 4.149-1.225c1.301-.018 1.25 1.192 1.232 2.102-.526 1.317-1.333 3.221-1.722 3.691-.388.471-1.96 2.045-3.822 2.299-2.011.273-3.766.324-7.02-1.813zm37.32-5.982c3.875 1.173 5.017.155 12.607 1.471 5.582.967 8.691-.131 11.406-1.466s3.352-3.189 1.593-3.455c0 0-.927-.165-4.135.05-2.736.185-7.632.722-9.587 1.055-3.215.548-11.196.326-13.8-.052-1.522.827.211 1.881 1.916 2.396zm9.778-7.843c3.788-.158 8.353.102 12.063-2.418 3.945-3.112 11.92-2.2 7.943-.072-6.104 3.31-10.788 4.575-13.984 5.131-1.778.309-5.918.783-9.135.873-.754.022-5.169-.021-8.581-.594-.636-2.218 10.332-2.865 11.695-2.921h-.001zm31.439 10.108c.715-1.104 2.287-1.833 3.372-2.7 1.085-.865 2.15-2.108 2.935-3.076.784-.967 2.372-1.404 3.362-1.014s.723 1.423.469 2.286c-.346 1.171-1.224 2.552-2.383 3.968-1.397 2.01-4.333 4.902-6.347 4.218-1.906-.646-2.121-2.578-1.407-3.682m4.778-48.634c.671 2.02 1.12 3.711 1.413 6.5.345 3.275.21 5.909-.486 8.708-1.097 4.422-3.206 8.177-5.053 10.528 0 0 5.55-3.343 7.768-8.126.679-1.465 1.53-4.267 1.536-6.599.008-4.05-1.457-8.738-5.179-11.011"/><path fill="url(#l)" d="M12.253 56.844c-.85 1.947-1.447 3.59-1.99 6.339-.636 3.228-.736 5.864-.294 8.718.699 4.505 2.46 8.445 4.09 10.96 0 0-5.227-3.851-7.009-8.824-.545-1.523-1.143-4.393-.94-6.716.354-4.036 2.234-8.564 6.142-10.477z"/><path fill="#fff" d="M3.1 94.785c-.162.884.023 3.14.733 4.274s2.542.417 2.643-1.3 1.668-4.159.735-4.996c-.934-.837-3.552-1.032-4.11 2.023m29.606 9.566c-1.394-.018-3.273 1.509-3.191 3.013s-.056 3.21.476 4.501c.534 1.289 1.981 4.508 4.1 5.141 2.117.632 3.412 1.029 4.172.137.761-.893.82-1.933.067-3.022-.755-1.088-2.551-2.211-2.312-4.206.237-1.995-.649-5.529-3.313-5.563zM29.47 43.205c-2.254 1.151-7.332 3.844-6.759 6.724.572 2.878 4.472 1.418 6.379.326s5.543-2.765 7.742-3.402 3.363-2.99 2.014-4.3c-1.348-1.31-6.214-.961-9.378.653h.002m57.532 53.957c-1.526-.954-4.42.537-5.8 2-1.382 1.464-.746 3.44.116 3.794.864.353 2.917.182 3.73-2.42.352-1.126 2.932-2.762 1.953-3.375zM8.033 62.257c.542-1.204 2.036-2.6 2.053-1.602.016.999-.939 3.587-1.186 5.094-.288 1.758-.474 3.361-.448 4.397.02.805-1.05 1.781-1.36.526-.071-.292-.531-2.357-.323-4.288.207-1.93 1.083-3.727 1.263-4.128z"/><path fill="#121442" d="M73.114 82.994c-1.176 1.234-11.778 4.118-22.535 3.993-12.059-.14-23.69-3.305-24.673-4.662-1.136-1.572-1.99-8.123-1.955-11.61.032-3.185.532-10.636 1.938-12.255.347-.4.91-.633 1.763-.945 0 0-2.895 14.571.147 22.79.478 1.966 18.572 3.417 20.168 3.45 3.91.082 10.549-.146 17.18-1.15 2.69-.407 7.13-1.66 9.101-2.097-.527 1.78-1.134 2.485-1.134 2.485z"/><path fill="#2c3d82" d="M49.558 107.325s-7.356 2.988-4.743 12.051c.642 2.227 2.928 5.304 6.308 6.509 0 0-5.105-4.379-3.935-10.011.94-4.528 6.106-3.933 6.11-9.163 0 0-1.757-.172-3.74.614"/><path fill="#2c3d82" d="M53.028 113.962c1.955 0 3.54-1.627 3.54-3.634s-1.585-3.635-3.54-3.635-3.54 1.628-3.54 3.635 1.585 3.634 3.54 3.634m-2.698 4.984c1.268 0 2.296-1.055 2.296-2.357s-1.028-2.358-2.296-2.358-2.296 1.056-2.296 2.358 1.028 2.357 2.296 2.357"/><defs><linearGradient id="a" x1="49.54" x2="49.54" y1="137" y2="145" gradientUnits="userSpaceOnUse"><stop stop-color="#f4fde8"/><stop offset="1" stop-color="#529b15"/></linearGradient><linearGradient id="b" x1="49.04" x2="49.04" y1="147" y2="153" gradientUnits="userSpaceOnUse"><stop stop-color="#f4fde8"/><stop offset="1" stop-color="#529b15"/></linearGradient><linearGradient id="c" x1=".23" x2="20.61" y1="100.663" y2="102.966" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="25.741" x2="75.203" y1="116.11" y2="110.075" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="20.96" x2="88.871" y1="47.498" y2="91.242" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="f" x1="78.895" x2="98.249" y1="107.665" y2="95.077" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="g" x1="50.864" x2="48.863" y1="96.467" y2="42.134" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="h" x1="13.247" x2="21.721" y1="23.847" y2="23.847" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="i" x1="1.835" x2="9.976" y1="33.344" y2="30.93" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="j" x1="93.838" x2="96.14" y1="28.271" y2="36.645" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="k" x1="81.951" x2="86.603" y1="19.41" y2="26.684" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset=".08" stop-color="#eaecee"/><stop offset=".4" stop-color="#d5dbdf"/><stop offset=".71" stop-color="#c8d0d6"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="l" x1="6.361" x2="15.006" y1="71.407" y2="69.531" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient></defs></svg>'),i&&(i.textContent=u("integration_test.ok.title")),a&&(a.textContent=u("integration_test.ok.text")),n.textContent=u("integration_test.ok.button"),n.disabled=!1,n.replaceWith(n.cloneNode(!0)),null===(s=e.querySelector(".fj-it-btn-test"))||void 0===s||s.addEventListener("click",()=>{this.closeModal(),this.config.onSuccess()});else{if(this._integrationStatus="ko","no_subscription"===this._connectivityError)return e.className="fj fj-it-modal fj-it-error",void this.renderErrorContent(e);o&&(o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 110 147"><path fill="#c65d17" d="M69.808 20.603a7.81 7.81 0 1 0 0-15.619 7.81 7.81 0 0 0 0 15.619"/><path fill="#ee7219" d="M69.106 7.54c1.157-.205 1.997.89 3.417 2.106 1.312 1.124 1.383 4.918-.039 6.256-1.421 1.337-3.273 2.095-5.363 1.441-2.01-.628-2.682-1.487-3.216-2.774-.623-1.504-.302-3.969 1.426-5.527s2.553-1.287 3.774-1.503"/><path fill="#ff9852" d="M75.849 13.16c.203-1.145-.094-3.544-2.073-4.978-2.278-1.65-4.312-2.162-5.5-.611-1.21 1.58-1.846 3.204-.498 4.524s3.033 1.617 3.012 3.332 2.601 2.612 3.5 1.495c1.362-1.689 1.362-2.651 1.559-3.762"/><path fill="#ffdfca" d="M67.503 13.52c.33-.88.983-2.552.624-3.399-.359-.846-1.171-1.731-2.24-1.593s-2.152.775-2.343 2.03c-.189 1.256-.531 3.316.724 3.692 1.256.377 1.878 1.154 2.549.302.67-.852.686-1.032.686-1.032"/><path fill="#c65d19" d="M76.563 3.752a.9.9 0 0 1-.512-.164c-.93-.67-2.198-1.137-2.21-1.141a.876.876 0 0 1 .6-1.648c.061.023 1.506.553 2.636 1.366a.877.877 0 0 1-.514 1.589zM66.531 2.2A.877.877 0 0 1 66.28.483C66.34.464 67.815.025 69.206 0a.877.877 0 0 1 .03 1.754c-1.15.02-2.44.404-2.452.408a1 1 0 0 1-.254.037zm-6.207 4.119a.876.876 0 0 1-.69-1.417c.041-.051 1.008-1.281 2.155-2.118A.877.877 0 1 1 62.822 4.2c-.944.69-1.797 1.77-1.807 1.782a.87.87 0 0 1-.69.336m-2.603 7.095h-.013a.877.877 0 0 1-.864-.89c0-.065.029-1.63.438-2.984a.876.876 0 1 1 1.679.507c-.34 1.121-.364 2.489-.364 2.503a.877.877 0 0 1-.876.864m1.95 7.223a.87.87 0 0 1-.727-.386c-.037-.054-.896-1.33-1.333-2.653a.877.877 0 0 1 1.665-.552c.36 1.088 1.113 2.21 1.12 2.222a.878.878 0 0 1-.726 1.367zm5.985 4.706a.9.9 0 0 1-.287-.049c-.061-.02-1.513-.53-2.654-1.328a.876.876 0 1 1 1.004-1.437c.938.656 2.213 1.105 2.226 1.11a.877.877 0 0 1-.289 1.704m4.696.725a.877.877 0 0 1-.002-1.754c1.17-.004 2.496-.379 2.509-.382a.876.876 0 0 1 .485 1.685c-.063.018-1.569.446-2.988.45h-.004m7.085-2.648a.876.876 0 0 1-.53-1.575c.925-.704 1.755-1.803 1.763-1.814a.878.878 0 0 1 1.404 1.051c-.04.053-.98 1.302-2.106 2.158a.88.88 0 0 1-.53.179zm4.064-6.214a.877.877 0 0 1-.832-1.153c.367-1.11.43-2.486.432-2.5a.876.876 0 1 1 1.752.075c-.002.065-.074 1.63-.519 2.976a.88.88 0 0 1-.832.601zm.129-8.11a.88.88 0 0 1-.71-.36c-.61-.837-1.567-1.798-1.577-1.807a.877.877 0 0 1 1.24-1.24c.044.043 1.063 1.066 1.755 2.015a.878.878 0 0 1-.707 1.394z"/><path fill="url(#a)" d="M99.026 64.396c1.801-17.578-15.35-33.734-38.309-36.086s-43.03 9.99-44.83 27.568c-1.802 17.577 15.35 33.733 38.308 36.085 22.959 2.353 43.03-9.99 44.831-27.567"/><path fill="url(#b)" d="M53.803 96.185c13.869.058 22.32-6.284 25.74 1.286 2.88 6.377-6.843 23.827-24.2 24.5-17.914.694-28.587-15.385-26.137-22.978 2.011-6.231 10.183-2.869 24.597-2.808"/><path fill="url(#c)" d="M83.645 94.965c1.345-1.848 3.904-1.59 6.506-3.615 2.176-1.691 2.457-4.048 6.65-3.903 2.754.094 5.419 5.556 7.95 6.505 3.47 1.302 6.723 6.671 3.904 9.252s-13.344 2.797-16.192 1.88c-2.847-.916-13.445-3.758-8.818-10.12"/><path fill="url(#d)" d="M12.967 81.728c1.824-1.094 4.736-2.202 7.49.22s7.6 8.481 5.067 11.675-9.473 4.957-13.108 4.957-9.802.11-11.675-2.534c-1.184-1.671-.991-3.634.882-5.507s7.49-6.499 11.344-8.811"/><path fill="url(#e)" d="M60.241 47.556c-11.753-3.09-22.3-1.86-24.05-1.392-1.338.359-4.02 5.874-5.255 11.377s-.463 11.762.167 12.763c.895 1.42 10.657 6.397 21.188 8.543 11.805 2.407 23.813 1.846 25.05.761 1.432-1.254 3.61-7.306 4.291-10.631.622-3.038 1.662-10.23.621-12.065-.85-1.5-10.739-6.395-22.012-9.357z"/><path fill="#121442" d="M77.34 79.61c-1.196 1.128-13.243 1.645-25.05-.761-10.53-2.146-20.292-7.122-21.187-8.543-.632-1.001-1.402-7.261-.168-12.763 1.235-5.502 3.918-11.018 5.257-11.377 0 0 1.184-.316 2.811-.403 0 0-3.678 4.62-4.973 9.983-1.461 6.049-.903 11.235-.884 11.854.019.62.154.835.602 1.184.448.348 9.534 4.456 16.808 6.292 8.616 2.175 22.59 2.933 28.425 1.855 0 0-.834 2.06-1.64 2.68"/><path fill="#d9effd" d="M51.307 61.156c.925-4.057-1.34-8.033-5.06-8.88s-7.483 1.753-8.408 5.81c-.925 4.058 1.34 8.034 5.06 8.882s7.483-1.755 8.408-5.812"/><path fill="url(#f)" d="M44.424 62.484a2.86 2.86 0 1 0 0-5.721 2.86 2.86 0 0 0 0 5.721"/><path fill="#d9effd" d="M75.309 66.647c.925-4.058-1.34-8.034-5.06-8.882s-7.483 1.755-8.408 5.812 1.34 8.033 5.06 8.88 7.483-1.753 8.408-5.81"/><path fill="url(#g)" d="M68.567 68.174a2.86 2.86 0 1 0 0-5.722 2.86 2.86 0 0 0 0 5.722"/><path fill="url(#h)" d="M101.031 62.802c-.213-1.452-1.159-4.143-2.781-2.65-1.624 1.494-6.84 13.906-7.753 17.294-.497 1.841-1.416 4.543.071 4.094 4.54-1.37 7.34-4.363 9.316-8.87 1.797-4.1 1.361-8.417 1.148-9.869z"/><path fill="url(#i)" d="M21.297 42.644c-1.24 1.664-2.171 3.095-3.282 5.588-1.305 2.928-1.96 5.409-2.132 8.215-.273 4.43.614 8.554 1.67 11.296 0 0-4.283-4.793-4.967-9.902-.21-1.564-.185-4.42.505-6.582 1.198-3.755 3.989-7.648 8.206-8.615"/><path fill="#b4bfc6" d="M91.02 75.824c1.064-3.466.54-4.177-3.846.499-1.219 1.299-3.418 3.865-5.649 5.797-1.037.9-2.638 2.151-6.837 4.014-3.962 1.757-5.406 2.172-9.067 2.824s-8.002 2.309-6.304 3.292c3.8.268 10.365-.541 16.985-2.682 6.546-2.116 11.027-5.804 13.779-8.041-.715-.495.495-4.251.94-5.702zm-6.812 21.478c.016-1.18 2.092-1.324 3.34-1.18 1.25.144 3.925 1.621 5.35 2.602 1.942 1.338 5.066 1.269 6.071 2.169 2.747 2.457-1.427 3.828-3.614 3.47-3.384-.557-11.214-2.126-11.148-7.061m-39.137-.381c.446.206 3.413 1.445 6.53 1.827 3.12.381 8.59.764 11.34.441s6.83-.49 9.155-1.578c2.074-.97 3.508-2.864 2.909-3.454-.675-.662-4.481-.194-5.689.03-5.932 1.099-8.743 1.582-11.64 1.792-4.642.334-11.655-.154-12.56-.18-.518-.09-.833.76-.048 1.122zM8.562 95.276c-.793.68.66 2.314 2.534 2.202 1.873-.11 7.843-.718 9.913-1.982s3.23-2.828 3.084-4.075c-.17-1.471-.991-1.433-2.202-1.102s-11.015 2.974-13.327 4.957z"/><path fill="#fff" d="M37.274 33.182c2.449-.797 8.034-2.519 9.624-.061 1.59 2.457-2.275 4.212-4.43 4.801s-5.975 2.004-8.026 3.126c-2.05 1.122-4.542.282-4.47-1.614.071-1.898 3.866-5.135 7.302-6.251zM15.75 47.052c.754-1.049 2.477-2.1 2.309-1.144-.168.958-1.58 3.25-2.099 4.644-.605 1.625-1.081 3.121-1.247 4.116-.128.773-1.359 1.504-1.431.247-.016-.294-.088-2.352.47-4.157.559-1.805 1.745-3.358 1.997-3.707h.002m89.254 49.319s1.926 1.114 2.432 1.925.81 2.229.101 3.039c-.708.81-1.925.912-2.533.102s-1.317-2.533-1.824-3.343c-.506-.81-.101-2.432 1.824-1.722zm-67.074 4.475c-.777-1.281-2.414-2.424-3.583-2.222-1.118.194-2.605 1.137-2.816 2.669 0 0 .39 3.457 1.79 5.417 1.401 1.961 3.783 3.782 5.043 2.101s.477-6.464-.434-7.966zM4.294 89.403c-.784.524-3.343 2.912-3.077 4.29.208 1.077 1.74 1.225 2.718.735.979-.49 4.206-2.35 3.445-4.307-.318-.817-1.212-1.971-3.086-.718"/><path fill="#2c3d82" d="M54.398 101.707s-7.536 2.383-5.55 11.364c.488 2.207 2.555 5.354 5.842 6.762 0 0-4.788-4.61-3.238-9.994 1.246-4.329 6.354-3.388 6.716-8.466 0 0-1.74-.291-3.77.334"/><path fill="#2c3d82" d="M57.654 108.406a3.537 3.537 0 1 0-.001-7.074 3.537 3.537 0 0 0 .001 7.074m-3.118 4.644a2.294 2.294 0 1 0 0-4.587 2.294 2.294 0 0 0 0 4.587"/><ellipse cx="53.5" cy="135" fill="url(#j)" fill-opacity=".6" rx="18.5" ry="4"/><ellipse cx="53" cy="144" fill="url(#k)" fill-opacity=".6" rx="13" ry="3"/><defs><linearGradient id="a" x1="30.034" x2="94.505" y1="38.434" y2="89.456" gradientUnits="userSpaceOnUse"><stop offset=".07" stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="29.078" x2="76.812" y1="97.942" y2="112.096" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1="108.681" x2="82.691" y1="94.595" y2="99.393" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="6.339" x2="22.961" y1="84.75" y2="101.355" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="50.069" x2="63.068" y1="87.803" y2="36.521" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="f" x1="43.08" x2="47.06" y1="58.236" y2="62.347" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="g" x1="67.931" x2="71.463" y1="64.503" y2="69.005" gradientUnits="userSpaceOnUse"><stop offset=".13" stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="h" x1="102.229" x2="88.078" y1="69.265" y2="71.878" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="i" x1="12.47" x2="21.297" y1="55.193" y2="55.193" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="j" x1="53.5" x2="53.5" y1="131" y2="139" gradientUnits="userSpaceOnUse"><stop stop-color="#fff1e7" stop-opacity=".5"/><stop offset="1" stop-color="#c65d17" stop-opacity=".5"/></linearGradient><linearGradient id="k" x1="53" x2="53" y1="141" y2="147" gradientUnits="userSpaceOnUse"><stop stop-color="#fff1e7" stop-opacity=".5"/><stop offset="1" stop-color="#c65d17" stop-opacity=".5"/></linearGradient></defs></svg>'),i&&(i.textContent=u("integration_test.ko.title")),a&&(a.textContent=u("integration_test.ko.text")),n.textContent=u("integration_test.ko.button"),n.disabled=!1}})}}const A="fjHp";function z(){return`<div class="fj-hp" aria-hidden="true"><input type="text" name="${A}" tabindex="-1" autocomplete="off"></div>`}function U(e){var t,n;return null!==(n=null===(t=e.querySelector(`input[name="${A}"]`))||void 0===t?void 0:t.value)&&void 0!==n?n:""}function _(e){return"dark"===e||"auto"===e?e:"light"}class T{constructor(){this.feedbackType="enhancement",this.feedbackTitle="",this.feedbackDescription="",this.consentFeedbackAgree=!1,this.consentScreenFeedback=!1,this.consentAttachmentFile=null,this.hasConsentFeedback=!1,this.hasConsentScreenFeedback=!1,this.hasConsentAttachment=!1,this.startedAt=null,this.honeypot=""}async toFormData(e){var t;const n="function"==typeof e.user?e.user():e.user,o=function(){const e=navigator.userAgent,t=[{name:"Firefox",regex:/Firefox\/(\d+(?:\.\d+)*)/},{name:"Chrome",regex:/Chrome\/(\d+(?:\.\d+)*)/,exclude:/Edg/},{name:"Safari",regex:/Version\/(\d+(?:\.\d+)*)/,exclude:/Chrome/},{name:"Edge",regex:/Edg\/(\d+(?:\.\d+)*)/},{name:"Opera",regex:/(Opera|OPR)\/(\d+(?:\.\d+)*)/}];for(const{name:n,regex:o,exclude:i}of t)if(e.includes(n)&&(!i||!i.test(e))){const t=e.match(o);return{name:n,version:t?t[1]:"Unknown"}}return{name:"Unknown",version:"Unknown"}}(),i=function(){var e;const t=window.screen.width,n=window.screen.height,o=window.devicePixelRatio||1;return{resolution:`${t}x${n}`,zoom:`${null!==(e=Math.round(100*o))&&void 0!==e?e:100}%`}}(),a=new FormData;a.append("uuidProject",e.projectId),a.append("feedbackType",this.feedbackType),a.append("feedbackTitle",this.feedbackTitle),a.append("feedbackDescription",this.feedbackDescription);const s=this.consentFeedbackAgree;if(a.append("userId",s&&(null==n?void 0:n.id)||"Unknown"),a.append("userName",s&&(null==n?void 0:n.fullName)||"Unknown User"),a.append("operatingSystem",s?function(){const e=navigator.userAgent;for(const[t,n]of Object.entries(h))if(n.test(e))return t;return"Unknown"}():"Unknown"),a.append("browserName",s?o.name:"Unknown"),a.append("browserVersion",s?o.version:"Unknown"),a.append("resolution",s?i.resolution:"Unknown"),a.append("zoom",s?i.zoom:"Unknown"),a.append("localLanguage",s&&navigator.language||"Unknown"),a.append("url",s?window.location.href.slice(0,2048):"Unknown"),a.append("userProfile",s&&(null==n?void 0:n.profile)||"Unknown"),a.append("ip","Unknown"),a.append("widgetVersion","2.7.0"),a.append("widgetLocale",d()),a.append("fjHp",this.honeypot),a.append("fillDurationMs",String(Date.now()-(null!==(t=this.startedAt)&&void 0!==t?t:Date.now()))),this.consentFeedbackAgree&&a.append("consentFeedback","true"),this.consentScreenFeedback){a.append("consentScreenFeedback","true");const e=await async function(){var e;try{const{domToBlob:t}=await g(),n=document.documentElement,o=null!==(e=[document.body,n].map(e=>getComputedStyle(e).backgroundColor).find(e=>"rgba(0, 0, 0, 0)"!==e))&&void 0!==e?e:"#fff";return await t(n,{type:"image/jpeg",quality:.8,width:n.scrollWidth,height:n.scrollHeight,backgroundColor:o,filter:e=>!(e instanceof Element&&e.classList.contains("fj-feedback-modal"))})}catch(e){return null}}();e&&a.append("screenShot",e)}return this.hasConsentAttachment&&this.consentAttachmentFile&&(a.append("consentAttachmentFeedback","true"),a.append("attachment",this.consentAttachmentFile)),a}isValid(e){return!!this.feedbackTitle&&!!this.feedbackDescription&&(!e||this.consentFeedbackAgree)}}class q{get theme(){return _(this.options.theme)}constructor(e){var t,n;this.submitError=!1,this.submitErrorKey="global.submit_error",this.hasConsentFeedback=!1,this.hasConsentScreenFeedback=!1,this.hasConsentAttachment=!1,this.feedbackButton=null,this.createdButtonWrapper=null,this.opening=!1,this.onFeedbackButtonClick=async()=>{var e,t;if(!this.opening&&null===this.state){this.opening=!0,null===(e=this.feedbackButton)||void 0===e||e.setAttribute("aria-busy","true");try{await this.startFeedback("enhancement")}finally{this.opening=!1,null===(t=this.feedbackButton)||void 0===t||t.removeAttribute("aria-busy")}}},this.submitHandler=null,this.state=null,this.abortController=new AbortController,this.destroyed=!1,this.previouslyFocusedElement=null,this.decisions=[],this.decisionsStatus="idle",l(null!==(t=e.locale)&&void 0!==t?t:a.FR);const o=null!==(n=e.apiUrl)&&void 0!==n?n:e.baseApiUrl;if(!o)throw new Error("Feedback: `apiUrl` option is required");this.options=Object.assign(Object.assign({},e),{apiUrl:o}),this.form=new T,this.integrationTest=new $({modalId:"fj-feedback-modal",bodyOpenClass:"fj-modal-open",toggleHtmlClass:!0,btnPrimaryClasses:"fj-feedback-btn fj-feedback-btn-primary",btnOutlineClasses:"fj-feedback-btn fj-feedback-btn-outline",btnLoadingClass:"fj-feedback-btn-loading",pendingTitleKey:"integration_test.pending.feedback.title",pendingTextKey:"integration_test.pending.feedback.text",checkingTextKey:"integration_test.checking.feedback_text",cancelLabelKey:"global.cancel",connectivityCheckUrl:`${o}/api/connectivity_check/feedback`,connectivityCheckBody:{uuidProject:e.projectId},signal:this.abortController.signal,theme:this.theme,onSuccess:()=>this.startFeedback(this.form.feedbackType)}),this.init(e.target)}destroy(){var e,t,n;this.destroyed||(this.destroyed=!0,this.abortController.abort(),null===(e=this.feedbackButton)||void 0===e||e.removeEventListener("click",this.onFeedbackButtonClick),null===(t=this.createdButtonWrapper)||void 0===t||t.remove(),null===(n=document.getElementById("fj-feedback-modal"))||void 0===n||n.remove(),document.body.classList.remove("fj-modal-open"),document.documentElement.classList.remove("fj-modal-open"),document.documentElement.style.removeProperty("--fj-feedback-primary-color"),document.documentElement.style.removeProperty("--fj-feedback-secondary-color"),this.previouslyFocusedElement=null)}get draftKey(){var e;const t="function"==typeof this.options.user?this.options.user():this.options.user;return`fj-feedback-draft:${this.options.projectId}:${null!==(e=null==t?void 0:t.id)&&void 0!==e?e:""}`}restoreDraft(){var e,t,n,o,i;const a=function(e){try{const t=sessionStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}}(this.draftKey);a&&((n=this.form).feedbackTitle||(n.feedbackTitle=a.title),(o=this.form).feedbackDescription||(o.feedbackDescription=a.description),null!==(e=(i=this.form).startedAt)&&void 0!==e||(i.startedAt=null!==(t=a.startedAt)&&void 0!==t?t:null))}saveDraft(){const{feedbackTitle:e,feedbackDescription:t,startedAt:n}=this.form;C(this.draftKey,e||t?{title:e,description:t,startedAt:null!=n?n:void 0}:null)}init(e){var t,n;e&&(this.feedbackButton=null!==(t=e instanceof HTMLElement?this.createFeedbackButton(e):e.feedback)&&void 0!==t?t:null,null===(n=this.feedbackButton)||void 0===n||n.addEventListener("click",this.onFeedbackButtonClick))}createFeedbackButton(e){return e.innerHTML=`\n <div class="fj-feedback-feedback-buttons">\n <button id="fj-feedback-button" class="fj-feedback-btn" data-fj-theme="${this.theme}" aria-label="${u("a11y.feedback_button")}"><span aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M11.75 19h-.25q-3.55 0-6.025-2.475T3 10.5t2.475-6.025T11.5 2q1.775 0 3.313.662t2.7 1.825 1.824 2.7T20 10.5q0 3.35-1.888 6.225t-4.762 4.5q-.25.125-.5.138t-.45-.113-.35-.325-.175-.475zm2.25-.65q1.775-1.5 2.888-3.512T18 10.5q0-2.725-1.888-4.612T11.5 4 6.888 5.888 5 10.5t1.888 4.613T11.5 17H14zm-2.525-2.375q.425 0 .725-.3t.3-.725-.3-.725-.725-.3-.725.3-.3.725.3.725.725.3M9.3 8.375q.275.125.55.013t.45-.363q.225-.3.525-.463T11.5 7.4q.6 0 .975.337t.375.863q0 .325-.187.65t-.663.8q-.625.55-.925 1.038t-.3.987q0 .3.213.513t.512.212.5-.225.3-.525q.125-.425.45-.775t.6-.625q.525-.525.788-1.05t.262-1.05q0-1.15-.788-1.85T11.5 6q-.8 0-1.475.388t-1.1 1.062q-.15.275-.038.538t.413.387m2.2 2.8"/></svg></span></button>\n </div>\n `,this.createdButtonWrapper=e.querySelector(".fj-feedback-feedback-buttons"),e.querySelector("#fj-feedback-button")}async startFeedback(e){var t,n;this.form.feedbackType=e,this.submitError=!1,await this.loadConsents(),this.destroyed||this.integrationTest.handleIntegrationStatus()||(this.restoreDraft(),null!==(t=(n=this.form).startedAt)&&void 0!==t||(n.startedAt=Date.now()),this.form.hasConsentFeedback=this.hasConsentFeedback,this.form.hasConsentScreenFeedback=this.hasConsentScreenFeedback,this.form.hasConsentAttachment=this.hasConsentAttachment,this.render("form"),"decision"===e&&this.loadDecisions())}async loadConsents(){try{const e=await E(`${this.options.apiUrl}/api/projects/${this.options.projectId}/consents`,{retries:2,signal:this.abortController.signal});if(!e.ok)throw new Error("Failed to fetch consents");const t=await e.json();this.hasConsentFeedback=t.consentFeedback,this.hasConsentScreenFeedback=t.consentScreenFeedback,this.hasConsentAttachment=t.consentAttachmentsFeedback,this.integrationTest.setStatus(t.feedbackIntegrationTest||"pending","no_subscription"===t.error?"no_subscription":null)}catch(e){if(this.destroyed)return;this.hasConsentFeedback=!1,this.hasConsentScreenFeedback=!1,this.hasConsentAttachment=!1,this.integrationTest.setStatus("ko","communication_error")}}async loadDecisions(){if("loading"!==this.decisionsStatus&&"loaded"!==this.decisionsStatus){this.decisionsStatus="loading",this.refreshDecisionView();try{const e="function"==typeof this.options.user?this.options.user():this.options.user,t=await E(`${this.options.apiUrl}/api/projects/${this.options.projectId}/decisions?userId=${encodeURIComponent((null==e?void 0:e.id)||"")}`,{retries:2,signal:this.abortController.signal});if(!t.ok)throw new Error("Failed to fetch decisions");this.decisions=await t.json(),this.decisionsStatus="loaded"}catch(e){if(this.destroyed)return;this.decisionsStatus="error"}this.refreshDecisionView()}}refreshDecisionView(){var e;const t=document.getElementById("fj-feedback-modal");if(this.destroyed||"form"!==this.state||"decision"!==this.form.feedbackType||!t||t.classList.contains("fj-closing"))return;const n=t.querySelector(".fj-feedback-content");n&&(n.innerHTML=this.renderDecisionList(),n.setAttribute("aria-busy",String("loading"===this.decisionsStatus)),null===(e=n.querySelector(".fj-feedback-decision-retry"))||void 0===e||e.addEventListener("click",()=>{this.decisionsStatus="idle",this.loadDecisions()}))}showThanks(e="enhancement"){this.form.feedbackType=e,this.render("thanks")}render(e){var t,n,o;if(this.destroyed)return;this.state=e;const i=document.querySelector("#fj-feedback-modal.fj-closing");i&&null!==e&&i.remove();const a=null!==(t=document.getElementById("fj-feedback-modal"))&&void 0!==t?t:document.createElement("div");if(null===e)return this.form=new T,this.submitError=!1,"loading"!==this.decisionsStatus&&(this.decisionsStatus="idle"),a.classList.add("fj-closing"),void a.addEventListener("animationend",()=>{a.remove(),document.body.classList.remove("fj-modal-open"),document.documentElement.classList.remove("fj-modal-open"),this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)},{once:!0});this.previouslyFocusedElement||(this.previouslyFocusedElement=document.activeElement),document.body.classList.add("fj-modal-open"),document.documentElement.classList.add("fj-modal-open");const s=!a.parentElement;if(a.id="fj-feedback-modal",a.dataset.fjTheme=this.theme,a.className=`fj fj-feedback-modal fj-feedback-${this.form.feedbackType}${s?"":" fj-no-overlay-anim"}`,a.setAttribute("role","dialog"),a.setAttribute("aria-modal","true"),a.setAttribute("aria-labelledby","fj-feedback-dialog-title"),s&&(a.addEventListener("click",e=>{e.target===a&&"thanks"===this.state&&this.render(null)}),a.addEventListener("keydown",e=>{"Escape"===e.key&&this.render(null),m(a,e)}),document.body.appendChild(a)),"form"===e){document.documentElement.style.setProperty("--fj-feedback-primary-color","#4F5BD5"),document.documentElement.style.setProperty("--fj-feedback-secondary-color","#EEF0FB"),this.renderForm(a);const e=a.querySelector('input:not([type="radio"]):not([type="hidden"]):not([style*="display:none"]), textarea');e?e.focus():null===(n=a.querySelector("button"))||void 0===n||n.focus()}else"thanks"===e&&(this.renderThanks(a),null===(o=a.querySelector(".fj-feedback-btn-close"))||void 0===o||o.focus())}renderForm(e){if(!e.querySelector(".fj-tabs")){e.innerHTML=`\n <form class="fj-feedback-form" data-version="v2.7.0">\n <div class="fj-container">\n <div class="fj-tabs">\n ${this.renderTabs()}\n </div>\n </div>\n <div class="fj-feedback-content"></div>\n <div class="fj-feedback-error-container"></div>\n <div class="fj-feedback-footer-buttons"></div>\n </form>\n `,w(e.querySelector("form.fj-feedback-form"));const t=e.querySelectorAll('input[name="feedbackType"]');for(const n of t)n.addEventListener("change",()=>{if(n.checked){this.form.feedbackType=n.value,this.updateFormContent(e);const t=e.querySelector(".fj-feedback-content");null==t||t.classList.remove("fj-feedback-tab-enter"),null==t||t.offsetWidth,null==t||t.classList.add("fj-feedback-tab-enter"),"decision"===this.form.feedbackType&&this.loadDecisions()}})}this.updateFormContent(e)}updateFormContent(e){var t;const n="decision"===this.form.feedbackType;e.className=`fj fj-feedback-modal fj-feedback-${this.form.feedbackType}`;const o=e.querySelector(".fj-feedback-form"),i=e.querySelector(".fj-feedback-content"),a=e.querySelector(".fj-feedback-error-container"),s=e.querySelector(".fj-feedback-footer-buttons");n?(o.className="fj-feedback-form fj-feedback-decision-view",i.innerHTML=this.renderDecisionList(),i.tabIndex=0,i.setAttribute("aria-labelledby","fj-feedback-dialog-title"),a.innerHTML="",s.innerHTML=`\n <button type="button" class="fj-feedback-btn fj-feedback-btn-outline fj-feedback-btn-cancel">${u("global.close")}</button>\n `):(o.className="fj-feedback-form",i.innerHTML=this.renderFields(),i.removeAttribute("tabindex"),i.removeAttribute("aria-labelledby"),a.innerHTML=this.submitError?`<p class="fj-feedback-error" role="alert">${u(this.submitErrorKey)}</p>`:"",s.innerHTML=`\n <button type="button" class="fj-feedback-btn fj-feedback-btn-outline fj-feedback-btn-cancel">${u("global.cancel")}</button>\n <button type="submit" class="fj-feedback-btn fj-feedback-btn-primary fj-feedback-btn-submit">${u("global.send")}</button>\n `),null===(t=s.querySelector(".fj-feedback-btn-cancel"))||void 0===t||t.addEventListener("click",()=>this.render(null)),n||this.attachFormEvents(e.querySelector("form.fj-feedback-form"))}renderThanks(e){var t;e.innerHTML=`\n\n <div class="fj-feedback-thanks" data-version="v2.7.0">\n <div class="fj-feedback-speech-bubble">\n <p id="fj-feedback-dialog-title" class="fj-feedback-title">${u(`${this.form.feedbackType}.thanks.title`)}</p>\n <div class="fj-feedback-text">${u(`${this.form.feedbackType}.thanks.description`)}</div>\n <div class="fj-feedback-robot" aria-hidden="true">${i}</div>\n </div>\n <div class="fj-feedback-footer-buttons">\n <button type="button" class="fj-feedback-btn fj-feedback-btn-close">${u("global.close")}</button>\n </div>\n </div>\n `,null===(t=e.querySelector(".fj-feedback-btn-close"))||void 0===t||t.addEventListener("click",()=>this.render(null))}renderTabs(){return`\n <input type="radio" id="radio-enhancement" name="feedbackType" ${"enhancement"===this.form.feedbackType?"checked":""} value="enhancement"/>\n <label class="fj-tab" for="radio-enhancement">\n <span class="fj-tab-icon" aria-hidden="true">\n <span class="fj-tab-icon-active"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 1 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4"/></svg></span>\n <span class="fj-tab-icon-inactive"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path stroke="#64748b" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 1 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4"/></svg></span>\n </span>\n <span class="fj-tab-label">${u("enhancement.tab")}</span>\n </label>\n <input type="radio" id="radio-issue" name="feedbackType" ${"issue"===this.form.feedbackType?"checked":""} value="issue"/>\n <label class="fj-tab" for="radio-issue">\n <span class="fj-tab-icon" aria-hidden="true">\n <span class="fj-tab-icon-active"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><path fill="#2144cd" d="M9.968 15.808c3.317 0 6.005-2.683 6.005-5.992s-2.688-5.992-6.005-5.992-6.005 2.683-6.005 5.992 2.689 5.992 6.005 5.992"/><path fill="#d2d9f5" d="M9.428 5.785c.89-.157 1.535.683 2.628 1.616 1.008.862 1.063 3.774-.03 4.8s-2.517 1.607-4.124 1.106c-1.546-.482-2.062-1.141-2.473-2.129-.48-1.153-.232-3.045 1.096-4.24 1.33-1.196 1.964-.988 2.902-1.153z"/><path fill="#8094e4" d="M14.613 10.097c.157-.88-.072-2.72-1.594-3.82-1.752-1.266-3.316-1.659-4.23-.469C7.86 7.02 7.37 8.267 8.408 9.28s2.333 1.24 2.316 2.556c-.016 1.316 2 2.004 2.692 1.147 1.047-1.296 1.047-2.034 1.198-2.886"/><path fill="#fff" d="M8.196 10.373c.254-.675.756-1.958.48-2.607s-.901-1.329-1.723-1.223-1.654.595-1.801 1.558c-.146.964-.409 2.544.556 2.833s1.444.885 1.96.231.528-.792.528-.792m6.966-7.494a.7.7 0 0 1-.394-.127c-.714-.513-1.69-.871-1.7-.875a.672.672 0 1 1 .463-1.264c.046.017 1.157.424 2.026 1.048a.672.672 0 0 1-.395 1.219zM7.449 1.688A.673.673 0 0 1 7.255.37C7.301.356 8.434.02 9.504 0c.37-.004.68.29.686.661a.674.674 0 0 1-.662.684c-.886.016-1.876.31-1.886.314a.7.7 0 0 1-.195.028zM2.675 4.849a.671.671 0 0 1-.53-1.087c.031-.04.775-.984 1.656-1.626a.675.675 0 0 1 .943.147c.219.3.153.721-.148.94-.726.53-1.382 1.36-1.39 1.368a.67.67 0 0 1-.53.258M.674 10.29h-.01A.674.674 0 0 1 0 9.609c0-.05.023-1.251.337-2.29a.674.674 0 0 1 1.291.39c-.26.86-.28 1.91-.28 1.92a.674.674 0 0 1-.674.663m1.5 5.541a.67.67 0 0 1-.56-.296c-.027-.041-.688-1.02-1.024-2.035a.675.675 0 0 1 1.28-.423c.277.834.856 1.695.86 1.704a.673.673 0 0 1-.557 1.05m4.603 3.612a.7.7 0 0 1-.221-.038c-.047-.016-1.163-.407-2.04-1.019a.67.67 0 0 1-.167-.936.675.675 0 0 1 .939-.166c.72.503 1.701.847 1.711.85a.673.673 0 0 1-.222 1.309m3.611.555a.673.673 0 0 1-.002-1.346c.9-.002 1.92-.29 1.93-.293a.672.672 0 1 1 .373 1.293c-.05.014-1.207.342-2.298.345zm5.447-2.03a.673.673 0 0 1-.409-1.208c.712-.541 1.35-1.384 1.357-1.393a.676.676 0 0 1 .944-.134.67.67 0 0 1 .136.94c-.031.041-.755 1-1.62 1.657a.67.67 0 0 1-.407.137zm3.126-4.77a.673.673 0 0 1-.64-.885c.282-.852.33-1.908.332-1.918a.677.677 0 0 1 .703-.643c.372.016.66.329.644.7-.002.05-.056 1.25-.399 2.284a.67.67 0 0 1-.64.46zm.1-6.222a.68.68 0 0 1-.546-.276c-.47-.643-1.206-1.38-1.213-1.387a.67.67 0 0 1 0-.952.675.675 0 0 1 .954 0c.033.033.817.818 1.349 1.547a.672.672 0 0 1-.544 1.069z"/></svg></span>\n <span class="fj-tab-icon-inactive"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><path fill="#64748b" d="M9.968 15.808c3.317 0 6.005-2.683 6.005-5.992s-2.688-5.992-6.005-5.992-6.005 2.683-6.005 5.992 2.689 5.992 6.005 5.992"/><path fill="#cbd5e1" d="M9.428 5.785c.89-.157 1.535.683 2.628 1.616 1.008.862 1.063 3.774-.03 4.8s-2.517 1.607-4.124 1.106c-1.546-.482-2.062-1.141-2.473-2.129-.48-1.153-.232-3.045 1.096-4.24 1.33-1.196 1.964-.988 2.902-1.153z"/><path fill="#94a3b8" d="M14.613 10.097c.157-.88-.072-2.72-1.594-3.82-1.752-1.266-3.316-1.659-4.23-.469C7.86 7.02 7.37 8.267 8.408 9.28s2.333 1.24 2.316 2.556c-.016 1.316 2 2.004 2.692 1.147 1.047-1.296 1.047-2.034 1.198-2.886"/><path fill="#fff" d="M8.196 10.373c.254-.675.756-1.958.48-2.607s-.901-1.329-1.723-1.223-1.654.595-1.801 1.558c-.146.964-.409 2.544.556 2.833s1.444.885 1.96.231.528-.792.528-.792"/><path fill="#64748b" d="M15.163 2.879a.7.7 0 0 1-.394-.127c-.715-.513-1.69-.871-1.7-.875A.672.672 0 1 1 13.53.613c.047.017 1.158.424 2.026 1.048a.672.672 0 0 1-.395 1.219zM7.448 1.688A.673.673 0 0 1 7.254.37C7.302.356 8.435.02 9.505 0c.37-.004.68.29.686.661a.674.674 0 0 1-.663.684c-.885.016-1.876.31-1.885.314a.7.7 0 0 1-.196.028zM2.675 4.849a.671.671 0 0 1-.53-1.087c.031-.04.775-.984 1.656-1.626a.675.675 0 0 1 .943.147c.219.3.153.721-.148.94-.726.53-1.382 1.36-1.39 1.368a.67.67 0 0 1-.53.258M.674 10.29h-.01A.674.674 0 0 1 0 9.609c0-.05.023-1.251.337-2.29a.674.674 0 0 1 1.291.39c-.26.86-.28 1.91-.28 1.92a.674.674 0 0 1-.674.663m1.5 5.541a.67.67 0 0 1-.56-.296c-.027-.041-.688-1.02-1.024-2.035a.675.675 0 0 1 1.28-.423c.277.834.856 1.695.861 1.704a.673.673 0 0 1-.558 1.05m4.603 3.612a.7.7 0 0 1-.221-.038c-.047-.016-1.163-.407-2.04-1.019a.67.67 0 0 1-.167-.936.675.675 0 0 1 .939-.166c.72.503 1.701.847 1.711.85a.673.673 0 0 1-.222 1.309m3.611.555a.673.673 0 0 1-.002-1.346c.9-.002 1.92-.29 1.93-.293a.672.672 0 1 1 .373 1.293c-.05.014-1.207.342-2.298.345zm5.447-2.03a.673.673 0 0 1-.409-1.208c.712-.541 1.35-1.384 1.357-1.393a.676.676 0 0 1 .944-.134.67.67 0 0 1 .136.94c-.031.041-.755 1-1.62 1.657a.67.67 0 0 1-.407.137zm3.126-4.77a.674.674 0 0 1-.64-.885c.283-.852.331-1.908.332-1.918a.677.677 0 0 1 .703-.643c.372.016.66.329.645.7-.002.05-.057 1.25-.4 2.284a.67.67 0 0 1-.64.46zm.1-6.222a.68.68 0 0 1-.546-.276c-.47-.643-1.206-1.38-1.213-1.387a.67.67 0 0 1 0-.952.675.675 0 0 1 .954 0c.033.033.817.818 1.35 1.547a.672.672 0 0 1-.545 1.069z"/></svg></span>\n </span>\n <span class="fj-tab-label">${u("issue.tab")}</span>\n </label>\n <input type="radio" id="radio-decision" name="feedbackType" ${"decision"===this.form.feedbackType?"checked":""} value="decision"/>\n <label class="fj-tab" for="radio-decision">\n <span class="fj-tab-icon" aria-hidden="true">\n <span class="fj-tab-icon-active"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="none"><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.743 14.98c.134.34.164.713.086 1.07l-.976 3.016a.917.917 0 0 0 1.133 1.07l3.128-.914a1.83 1.83 0 0 1 1.008.084 9.167 9.167 0 1 0-4.38-4.326M7.333 11h.009M11 11h.008m3.659 0h.008"/></svg></span>\n <span class="fj-tab-icon-inactive"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="none"><path stroke="#64748b" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.743 14.98c.134.34.164.713.086 1.07l-.977 3.016a.917.917 0 0 0 1.133 1.07l3.129-.914a1.83 1.83 0 0 1 1.007.084 9.167 9.167 0 1 0-4.378-4.326M7.333 11h.009M11 11h.008m3.659 0h.008"/></svg></span>\n </span>\n <span class="fj-tab-label">${u("decision.tab")}</span>\n </label>\n <span class="fj-glider"></span>\n `}renderFields(){return`\n <div class="fj-feedback-header">\n <div class="fj-feedback-robot" aria-hidden="true">${"issue"===this.form.feedbackType?o:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 118 128"><path fill="#2c3d82" d="M62.849 106.398s-3.28.742-4.79 1.104c-1.512.364-4.466 1.062-4.97 1.242-.506.179-1.473.639-1.74 1.534-.265.894-.206 1.46-.303 3.188l10.495-2.521c.561-.135 1.256-1.065 1.309-4.547zm-7.228 11.147c-3.07.738-5.288 1.283-5.288 1.283.142-1.509.098-2 .383-2.787.285-.788 1.245-1.215 1.744-1.386.5-.17 3.411-.859 4.902-1.218 1.49-.358 4.72-1.093 4.72-1.093-.072 1.517-.14 2.543-.26 3.233-.171.984-.02 1.404-.896 4.215-.801 2.571-1.341 4.252-3.886 6.788 0 0-2.425-2.448-1.711-3.772.692-1.285.65-1.109 1.16-2.403.27-.679.443-.944.533-1.833.075-.735-.667-1.205-1.4-1.029z"/><path fill="#2c3d82" d="M62.849 106.398s-.623 8.587-1.326 10.571-3.488-1.43-3.488-1.43l.535-6.707 4.28-2.432z"/><path fill="url(#a)" d="M10.33 75.085c-5.706-18.067 8.54-38.838 31.819-46.392 23.278-7.554 46.773.969 52.478 19.036 5.705 18.068-8.541 38.838-31.82 46.392-23.278 7.554-46.773-.968-52.478-19.036"/><path fill="url(#b)" d="M56.154 99.928c14.632-1.278 22.943-8.877 27.272-1.114 3.647 6.54-4.946 26.139-23.188 28.538-18.828 2.475-31.62-13.686-29.76-22.043 1.527-6.858 10.467-4.053 25.676-5.38z"/><path fill="url(#c)" d="M17.87 89.198c1.357.77 4.16 1.729 4.02-.634-.411-6.94-5.114-13.768-7.369-16.762-1.226-1.627-5.054-5.326-5.636-3.768-1.779 4.762-1.072 9.104 1.44 13.734 2.285 4.211 6.19 6.663 7.547 7.433v-.003z"/><path fill="url(#d)" d="M25.878 99.292c1.309.611.93 3.527 1.31 5.165.583 2.509 1.893 5.018 2.62 8.412.505 2.348-1.456 4.28-4.076 4.428s-10.483-.591-14.122-3.689c-2.768-2.358-5.387-5.018-5.387-7.822 0-3.545 9.416-5.953 12.082-6.494 2.184-.444 5.678-.886 7.57 0z"/><path fill="url(#e)" d="M110.311 64.757c-1.76.62-3.93 3.541-6.696 4.28-2.766.738-9.026 1.33-9.172 6.495-.146 5.166 2.855 10.534 5.913 11.714 3.057 1.18 8.439.072 11.298-3.24 3.139-3.638 5.791-11.277 4.772-14.525-1.019-3.246-2.766-5.904-6.115-4.723z"/><path fill="url(#f)" d="M51.594 44.489c-11.98 4.974-20.166 12.888-21.354 14.429-.91 1.18 2.74 6.314 5.71 12.076 2.781 5.399 4.26 11.599 5.437 12.052 1.673.644 13.168-1.41 23.502-6.402 11.587-5.597 19.873-12.12 20.23-13.86.415-2.012-.86-9.623-3.108-14.178-2.47-4.7-5.912-9.388-7.973-10.293-1.685-.74-10.955 1.404-22.445 6.174h.001z"/><path fill="#fff" d="M64.882 29.013c2.711.294 8.856 1.057 9.329 4.163s-4.022 3.13-6.36 2.761c-2.337-.367-6.642-.659-9.11-.457-2.468.2-4.513-1.715-3.623-3.544s5.959-3.334 9.764-2.922zM75.22 99.96c1.496-.209 3.716 1.156 3.825 2.764.11 1.607.48 3.398.078 4.841-.405 1.442-1.539 5.056-3.732 6.015-2.193.96-3.532 1.559-4.468.716s-1.136-1.94-.468-3.198 2.452-2.695 1.935-4.779-.028-5.956 2.83-6.356zm39.052-30.478c.068.96-.405 3.333-1.308 4.447-.902 1.114-2.786.121-2.684-1.715.101-1.838-1.289-4.629-.184-5.401 1.107-.772 3.947-.647 4.176 2.67zm-98.913 34.127c.282-1.562 3.495-2.708 5.639-2.84 2.143-.132 3.307 1.385 2.995 2.165s-1.872 2.082-4.545 1.203c-1.158-.381-4.272.473-4.092-.53h.002z"/><path fill="#b4bfc6" d="M108.989 85.218s4.164-2.67 2.889-5.083c-.648-1.223-1.903-2.084-4.079-1.808-2.176.277-4.153 1.576-5.922.61-1.768-.964-2.69-1.613-4.315-1.827-1.398-.183-1.49 1.108-1.581 2.078.405 1.465 1.041 3.592 1.403 4.14.36.548 1.862 2.42 3.833 2.925 2.129.545 4.011.821 7.772-1.037zm-38.358 11.61c-.102.94-1.337 2.76-3.103 3.54-4.01 1.773-5.59.487-13.576 2.919-5.873 1.789-13.218 2.11-16.31 1.066-3.093-1.045-4.021-2.926-2.166-3.449 0 0 .974-.302 4.45-.512 2.965-.177 8.298-.276 10.444-.19 3.526.143 12.076-1.182 14.825-1.938 2.27-.624 5.434-1.439 5.434-1.439zm-13.403-4.06c-3.905 1.286-9.807 1.674-14.143.314-5.147-1.616-13.44-2.72-15.343-2.298-1.367.304-1.755 1.29-1.614 1.763 0 0 5.221 2.836 12.635 3.828s12.635.473 16.085-.19c1.919-.368 5.946-1.35 9.598-2.609.46-1.603-4.408-1.736-7.218-.81zM12.349 69.507c1.463.043 4.089 1.881 7.783 7.392 3.83 5.715 4.51 9.673 4.347 11.272s-.651 2.419-1.087 2.915c0 0-1.197-.724-1.957-1.276 0 0 .668-.269.295-2.726-.16-1.056-.611-2.783-1.228-4.63-.794-2.375-1.913-4.331-2.952-6.143-1.383-2.41-4.74-6.584-5.2-6.803h-.001zm12.133 46.337c1.095-.987-.203-4.319-1.42-5.018s-3.082-.617-4.544-.905c-1.46-.287-3.082-.947-4.3-1.48-1.219-.534-2.963-.164-3.733.699-.771.865-.022 1.716.635 2.413.892.947 2.398 1.83 4.193 2.606 2.474 1.071 7.506 1.686 9.169 1.686z"/><path fill="#121442" d="M40.208 81.241c.393.899.821 1.668 1.177 1.805 1.674.643 13.169-1.41 23.503-6.402 11.586-5.598 19.872-12.12 20.23-13.86.414-2.013-.861-9.624-3.108-14.18-2.47-4.698-5.912-9.387-7.973-10.292-.494-.217-1.643-.186-3.308.087 0 0 5.21 4.804 7.583 9.548 1.577 3.152 2.76 6.14 3.466 9.095.433 1.82.675 3.524.495 4.705-.203 1.32-11.165 8.224-16.025 10.6-5.259 2.57-17.448 7.401-26.039 8.893z"/><path fill="#d9effd" d="M43.831 70.82c3.397 2.863 7.61 2.588 9.41-.618 1.801-3.206.507-8.126-2.889-10.99s-7.608-2.59-9.41.616c-1.8 3.207-.507 8.127 2.89 10.991"/><path fill="#fff" d="M46.92 63.806c1.427 1.252 3.182 1.278 3.917.058.736-1.22.173-3.223-1.253-4.476-1.427-1.251-3.181-1.277-3.916-.057-.737 1.22-.174 3.222 1.252 4.475"/><path fill="url(#g)" d="M48.702 72.852q.21 0 .416-.014a5.12 5.12 0 0 0 3.854-2.155c2.225-3.096 1.357-8.418-1.935-11.866-1.837-1.924-4.11-2.94-6.231-2.79a5.12 5.12 0 0 0-3.855 2.155c-2.224 3.096-1.356 8.418 1.936 11.866 1.717 1.799 3.815 2.804 5.816 2.804m-3.48-16.471c1.902 0 3.905.966 5.554 2.692 3.174 3.324 4.028 8.436 1.902 11.393-.867 1.206-2.106 1.9-3.585 2.004-2.018.143-4.183-.834-5.945-2.678-3.174-3.325-4.028-8.436-1.903-11.393.867-1.206 2.107-1.9 3.586-2.004q.195-.014.39-.014"/><path fill="#d9effd" d="M64.389 59.526c2.716 3.532 6.89 4.172 9.324 1.43 2.433-2.744 2.203-7.83-.514-11.362s-6.89-4.173-9.323-1.43-2.203 7.83.513 11.362"/><path fill="#fff" d="M68.88 53.34c1.132 1.531 2.84 1.936 3.814.903s.848-3.111-.284-4.643c-1.132-1.53-2.84-1.935-3.814-.902s-.848 3.111.284 4.643"/><path fill="url(#h)" d="M70.118 62.568a4.97 4.97 0 0 0 3.341-1.27c2.8-2.454 3.022-7.704.495-11.705-1.419-2.245-3.447-3.71-5.565-4.022-1.561-.23-3.001.188-4.165 1.208-2.8 2.454-3.022 7.705-.494 11.705 1.418 2.245 3.446 3.711 5.564 4.022q.42.062.824.062M67.57 45.88q.378 0 .768.057c2.013.296 3.949 1.702 5.31 3.857 2.434 3.851 2.242 8.888-.426 11.227-1.081.947-2.42 1.335-3.875 1.122-2.013-.296-3.948-1.702-5.31-3.857-2.433-3.85-2.242-8.888.426-11.227a4.62 4.62 0 0 1 3.107-1.178z"/><path fill="#388397" d="M24.695 23.084c-4.705 0-8.52-3.867-8.52-8.637s3.815-8.636 8.52-8.636 8.519 3.866 8.519 8.636-3.814 8.637-8.52 8.637"/><path fill="#cfe4e9" d="M21.247 9.74c-1.06.73-.884 2.245-1.07 4.305-.17 1.902 2.66 4.964 4.789 4.928 2.13-.036 4.154-.864 5.29-2.993 1.093-2.048.966-3.246.405-4.679-.657-1.672-2.784-3.378-5.32-3.28-2.536.097-2.975.95-4.094 1.719"/><path fill="#78b2c2" d="M20.25 19.396c-1.03-.752-2.622-2.883-2.166-5.545.525-3.065 1.727-5.041 3.836-4.726 2.147.32 3.88 1.116 3.83 3.202s-1.142 3.621.18 4.964c1.32 1.343-.048 4.076-1.6 3.884-2.35-.289-3.08-1.052-4.08-1.78"/><path fill="#fffae9" d="M27.051 13.246c-.928-.443-2.71-1.264-3.073-2.211-.364-.947-.401-2.276.54-2.992.941-.714 2.27-1.044 3.375-.196s2.938 2.218 2.242 3.483c-.695 1.267-.59 2.363-1.763 2.205-1.172-.158-1.322-.289-1.322-.289z"/><path fill="#388397" d="M17.124 4.17a.94.94 0 0 0 .555-.182c1.03-.753 2.439-1.279 2.453-1.284a.97.97 0 0 0 .567-1.235.946.946 0 0 0-1.218-.575c-.067.024-1.665.619-2.914 1.53a.973.973 0 0 0-.215 1.345.95.95 0 0 0 .772.401m11.112-1.743A.966.966 0 0 0 28.51.541c-.07-.02-1.7-.513-3.24-.54a.96.96 0 0 0-.967.946.957.957 0 0 0 .934.98c1.28.024 2.71.455 2.724.46a1 1 0 0 0 .274.04m6.881 4.625c.206 0 .41-.067.586-.204a.974.974 0 0 0 .163-1.353c-.045-.058-1.115-1.438-2.383-2.375a.94.94 0 0 0-1.328.21.97.97 0 0 0 .208 1.347c1.056.78 1.996 1.993 2.005 2.005.188.243.468.37.75.37m2.88 7.967h.016a.956.956 0 0 0 .935-.978c0-.075-.033-1.829-.485-3.346a.95.95 0 0 0-1.185-.644.967.967 0 0 0-.636 1.201c.377 1.262.405 2.802.405 2.817.007.527.432.95.95.95m-2.16 8.112a.94.94 0 0 0 .788-.424c.04-.06.99-1.49 1.474-2.972a.967.967 0 0 0-.603-1.218.95.95 0 0 0-1.202.611c-.403 1.232-1.236 2.487-1.243 2.5a.973.973 0 0 0 .254 1.339.94.94 0 0 0 .533.166zm-6.631 5.289a.9.9 0 0 0 .312-.055c.067-.024 1.674-.595 2.934-1.49a.97.97 0 0 0 .235-1.34.943.943 0 0 0-1.324-.238c-1.04.737-2.456 1.242-2.47 1.247a.968.968 0 0 0 .313 1.875m-5.204.812c.524 0 .95-.43.951-.961a.96.96 0 0 0-.948-.966c-1.307-.004-2.77-.426-2.783-.431a.95.95 0 0 0-1.177.66.965.965 0 0 0 .65 1.192c.07.02 1.736.5 3.306.505h.003zm-7.847-2.973c.287 0 .57-.131.758-.38a.97.97 0 0 0-.181-1.35c-1.03-.794-1.95-2.03-1.958-2.043a.94.94 0 0 0-1.331-.192.97.97 0 0 0-.192 1.348c.043.059 1.084 1.46 2.33 2.42a.94.94 0 0 0 .574.197m-4.502-6.98a1 1 0 0 0 .298-.05.967.967 0 0 0 .605-1.218c-.408-1.25-.48-2.798-.48-2.814a.96.96 0 0 0-.992-.92.96.96 0 0 0-.909 1.004c.003.073.083 1.827.574 3.336a.95.95 0 0 0 .903.662zm-.144-9.108a.94.94 0 0 0 .769-.398c.675-.942 1.738-2.021 1.75-2.032a.973.973 0 0 0 0-1.363.94.94 0 0 0-1.346 0c-.048.049-1.177 1.195-1.942 2.26a.97.97 0 0 0 .21 1.347.94.94 0 0 0 .559.185"/><path fill="#2c3d82" d="M58.24 105.353s-8.472 1.299-7.861 11.39c.15 2.479 1.833 6.251 5.117 8.341 0 0-4.352-5.824-1.782-11.406 2.064-4.487 7.375-2.592 8.621-8.043 0 0-1.815-.613-4.095-.282"/><path fill="#2c3d82" d="M61.193 113.227c2.118 0 3.834-1.74 3.834-3.887s-1.716-3.887-3.834-3.887c-2.117 0-3.834 1.74-3.834 3.887s1.716 3.887 3.834 3.887m-4.331 4.494c1.373 0 2.487-1.129 2.487-2.521 0-1.393-1.114-2.521-2.487-2.521-1.374 0-2.487 1.128-2.487 2.521 0 1.392 1.113 2.521 2.487 2.521"/><path fill="#ffdb00" d="M96.92 38.895c.977 6.435 6.542 11.46 10.289 11.46 4.078 0 9.311-4.264 10.113-11.46.747-6.697-4.567-12.204-10.201-12.204S95.909 32.234 96.92 38.895"/><path fill="#cdaa00" d="M104.633 53.799h4.956c.631 0 1.143-.52 1.143-1.16s-.512-1.159-1.143-1.159h-4.956c-.631 0-1.143.52-1.143 1.16s.512 1.159 1.143 1.159m0 2.555h4.956c.631 0 1.143-.519 1.143-1.159s-.512-1.159-1.143-1.159h-4.956c-.631 0-1.143.52-1.143 1.16s.512 1.158 1.143 1.158m0 2.556h4.956c.631 0 1.143-.52 1.143-1.16s-.512-1.158-1.143-1.158h-4.956c-.631 0-1.143.519-1.143 1.159s.512 1.159 1.143 1.159"/><path fill="#fff" d="M105.492 49.02c.123 0 .246-.04.35-.122a.585.585 0 0 0 .101-.814c-.929-1.212-4.128-7.982-3.985-10.43.15-2.571.525-3.642 1.385-3.948.432-.154.759-.03 1.085.37-1.207 1.313-1.695 3.45-1.358 4.826.229.936.835 1.538 1.663 1.65.963.13 1.791-.185 2.27-.867.178-.251.298-.538.361-.85.033.319.112.613.25.866.197.361.598.802 1.399.853 1.221.077 1.816-.462 2.101-.929.57-.933.388-2.452-.476-3.962q-.432-.757-.85-1.306l.037-.067c.299-.554.73-.8 1.182-.675.743.206 1.51 1.411 1.439 3.567-.101 3.073-3.87 10.78-3.908 10.857a.584.584 0 0 0 .257.778.57.57 0 0 0 .767-.261c.16-.325 3.918-8.012 4.027-11.335.099-2.993-1.166-4.415-2.279-4.724-.891-.248-1.764.126-2.333.98-.424-.363-.856-.585-1.313-.685-.743-.164-1.514.017-2.349.552l-.055-.066c-.802-.94-1.691-.88-2.295-.664-1.751.625-2.021 2.799-2.146 4.973-.174 2.979 3.306 10.011 4.223 11.21a.57.57 0 0 0 .452.223zm-.443-13.895q.186.385.404.871c.155.346.314.703.487 1.051.391.795.441 1.53.133 1.967-.228.323-.65.462-1.189.39-.131-.018-.53-.072-.704-.781-.235-.96.102-2.483.869-3.498m4.179.428q.209.314.423.693c.621 1.088.824 2.228.492 2.77-.175.287-.531.415-1.057.382-.303-.02-.407-.14-.471-.256-.337-.62.013-2.145.611-3.59zm-.803-1.01c-.372.816-.892 2.118-1.039 3.309-.06-.423-.2-.87-.425-1.324-.162-.329-.317-.676-.467-1.011-.188-.418-.369-.825-.563-1.198.565-.36 1.054-.49 1.489-.394q.488.107 1.004.618z"/><defs><linearGradient id="a" x1="78.08" x2="25.714" y1="35.776" y2="86.785" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="84.25" x2="30.299" y1="111.488" y2="111.488" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1="17.111" x2="13.391" y1="71.269" y2="85.995" gradientUnits="userSpaceOnUse"><stop offset=".15" stop-color="#f1f2f3"/><stop offset=".26" stop-color="#e5e8ea"/><stop offset=".47" stop-color="#d2d9dd"/><stop offset=".7" stop-color="#c7cfd5"/><stop offset=".94" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="29.888" x2="6.223" y1="108.048" y2="108.048" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="116.648" x2="94.438" y1="76.09" y2="76.09" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="f" x1="76.249" x2="43.159" y1="74.759" y2="50.219" gradientUnits="userSpaceOnUse"><stop stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="g" x1="54.206" x2="39.718" y1="64.433" y2="64.433" gradientUnits="userSpaceOnUse"><stop stop-color="#fffdfe"/><stop offset=".05" stop-color="#fbfbfd"/><stop offset=".25" stop-color="#eff6fd"/><stop offset=".45" stop-color="#ebf5fd"/><stop offset=".78" stop-color="#d5edfc"/><stop offset="1" stop-color="#cdeafc"/></linearGradient><linearGradient id="h" x1="77.93" x2="63.766" y1="56.081" y2="52.986" gradientUnits="userSpaceOnUse"><stop stop-color="#fffdfe"/><stop offset=".05" stop-color="#fbfbfd"/><stop offset=".25" stop-color="#eff6fd"/><stop offset=".45" stop-color="#ebf5fd"/><stop offset=".78" stop-color="#d5edfc"/><stop offset="1" stop-color="#cdeafc"/></linearGradient></defs></svg>'}</div>\n <div class="fj-feedback-speech-bubble">\n <p id="fj-feedback-dialog-title">${u(`${this.form.feedbackType}.form.description`)}</p>\n </div>\n </div>\n <div class="fj-feedback-body">\n <label>\n <p>${u(`${this.form.feedbackType}.form.field.title`)} ${f()}</p>\n <input required type="text" name="feedbackTitle" maxlength="255" class="fj-feedback-answer-input" value="${k(this.form.feedbackTitle)}">\n </label>\n <label>\n <p>${u(`${this.form.feedbackType}.form.field.description`)} ${f()}</p>\n <textarea required rows="6" name="feedbackDescription" maxlength="10000" class="fj-feedback-answer-input">${k(this.form.feedbackDescription)}</textarea>\n </label>\n ${this.renderConsent()}\n ${z()}\n </div>\n `}renderDecisionList(){let e="";return e="error"===this.decisionsStatus?`<div class="fj-feedback-decision-error">\n <p role="alert">${u("decision.error")}</p>\n <button type="button" class="fj-feedback-btn fj-feedback-btn-outline fj-feedback-decision-retry">${u("decision.retry")}</button>\n </div>`:"loaded"!==this.decisionsStatus?`<div class="fj-feedback-decision-loading" role="status">\n <span class="fj-feedback-spinner" aria-hidden="true"></span>${u("decision.loading")}\n </div>`:0===this.decisions.length?`<div class="fj-feedback-decision-empty">${u("decision.empty")}</div>`:`\n <div class="fj-feedback-decision-list">\n ${this.decisions.map(e=>this.renderDecisionCard(e)).join("")}\n </div>\n `,`\n <div class="fj-feedback-header">\n <div class="fj-feedback-robot" aria-hidden="true">${n}</div>\n <div class="fj-feedback-speech-bubble">\n <p id="fj-feedback-dialog-title">${u("decision.description")}</p>\n </div>\n </div>\n <div class="fj-feedback-body">\n ${e}\n </div>\n `}renderDecisionCard(e){var t;const n=k(e.type),o=k(null===(t=e.statusLabel)||void 0===t?void 0:t.trim()),i=k(u(`decision.card.type.${e.type}`));return`\n <div class="fj-feedback-card" data-type="${n}">\n <div class="fj-feedback-card-header">\n <div class="fj-feedback-card-type">\n <span class="fj-feedback-card-type-icon" aria-hidden="true">${"issue"===e.type?'<svg xmlns="http://www.w3.org/2000/svg" width="21" height="21" fill="none"><path fill="#ee7b30" fill-rule="evenodd" d="M14.175 5.185A7.35 7.35 0 1 1 4.719 7.01c.211-.27.62-.23.832.04q.44.556.99 1.001c.35.283.826-.05.812-.5l-.003-.2c0-.965.217-1.879.604-2.696a6.33 6.33 0 0 1 2.61-2.798c.26-.146.578-.017.71.25a7.3 7.3 0 0 0 2.9 3.078M14.7 12.6a4.2 4.2 0 0 1-4.2 4.2c-2.009 0-3.697-1.468-4.105-3.34-.099-.45.461-.676.854-.435a4.2 4.2 0 0 0 1.682.592c.317.04.557-.251.535-.57a6.27 6.27 0 0 1 1.38-4.402.47.47 0 0 1 .453-.169A4.2 4.2 0 0 1 14.7 12.6" clip-rule="evenodd"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" fill="none"><path fill="#3e91a8" fill-rule="evenodd" d="M15.123 11.185a3.15 3.15 0 0 0 0-5.57 3.15 3.15 0 0 0-3.938-3.938 3.15 3.15 0 0 0-5.57 0 3.15 3.15 0 0 0-3.938 3.938 3.15 3.15 0 0 0 0 5.57 3.15 3.15 0 0 0 3.938 3.938 3.15 3.15 0 0 0 5.57 0 3.15 3.15 0 0 0 3.938-3.938M12.45 6.5a.788.788 0 0 0-1.273-.927l-3.658 5.03L5.545 8.63a.788.788 0 0 0-1.113 1.113l2.625 2.625a.787.787 0 0 0 1.193-.093z" clip-rule="evenodd"/></svg>'}</span>\n <span class="fj-feedback-card-type-label">${i}</span>\n </div>\n\n ${o?`\n <div class="fj-feedback-card-status fj-feedback-decision-status-${o}">\n <span class="fj-feedback-card-status-label">\n ${k(u(`decision.status.${e.type}.${e.statusLabel}`))}\n </span>\n </div>\n `:""}\n </div>\n\n <div class="fj-feedback-card-body">\n <h2 class="fj-feedback-card-title">${k(e.title)}</h2>\n <p class="fj-feedback-card-description">${k(e.description)}</p>\n </div>\n\n <div class="fj-feedback-card-footer">\n <span class="fj-feedback-card-date-icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="15" fill="none"><path stroke="#64748b" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.083.75v2.667M9.417.75v2.667M.75 6.083h12M4.083 8.75h.007m2.66 0h.007m2.66 0h.006m-5.34 2.667h.007m2.66 0h.007m2.66 0h.006m-7.34-9.334h9.334c.736 0 1.333.597 1.333 1.334v9.333c0 .736-.597 1.333-1.333 1.333H2.083A1.333 1.333 0 0 1 .75 12.75V3.417c0-.737.597-1.334 1.333-1.334"/></svg></span>\n <span class="fj-feedback-card-date">\n ${u("decision.card.date_prefix")} ${this.formatDecisionDate(e.createdAt)}\n </span>\n </div>\n </div>\n `}renderConsent(){var e,n;let o="";return this.hasConsentFeedback&&(o+=`\n <label class="fj-feedback-consent">\n <input type="checkbox" name="consentFeedback" value="true" required ${this.form.consentFeedbackAgree?"checked":""}>\n <p>\n ${u("consent.feedback.label")}<span class="fj-feedback-label-marks"><span aria-hidden="true">*</span><span class="fj-sr-only">(${u("global.required")})</span><span class="fj-feedback-tooltip" role="img" title="${u("consent.feedback.tooltip")}" aria-label="${u("consent.feedback.tooltip")}"><span aria-hidden="true">${t}</span></span></span>\n </p>\n </label>\n `),this.hasConsentScreenFeedback&&(o+=`\n <label class="fj-feedback-consent">\n <input type="checkbox" name="consentScreenFeedback" value="true" ${this.form.consentScreenFeedback?"checked":""}>\n <p>\n ${u("consent.screen.label")}<span class="fj-feedback-label-marks"><span class="fj-feedback-tooltip" role="img" title="${u("consent.screen.tooltip")}" aria-label="${u("consent.screen.tooltip")}"><span aria-hidden="true">${t}</span></span></span>\n </p>\n </label>\n `),this.hasConsentAttachment&&(o+=`\n <label class="fj-feedback-consent fj-feedback-consent-file">\n <input type="file" name="consentAttachmentFile" accept=".jpg,.jpeg,.png,.gif,.webp,.bmp,.tif,.tiff,.heic,.heif,.mp4,.webm,.mov,.pdf,.txt,.log,.csv,.json,.har,.rtf,.eml,.zip,.gz,.7z,.rar,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.odt,.ods,.odp" style="display:none;">\n <button type="button" class="fj-feedback-btn fj-feedback-btn-file">${u("consent.attachment.button")} <span class="fj-feedback-tooltip" role="img" title="${u("consent.attachment.tooltip")}" aria-label="${u("consent.attachment.tooltip")}"><span aria-hidden="true">${t}</span></span></button>\n <div class="fj-feedback-file-name"${this.form.consentAttachmentFile?"":' style="display:none;"'}>${k(null!==(n=null===(e=this.form.consentAttachmentFile)||void 0===e?void 0:e.name)&&void 0!==n?n:"")}</div>\n </label>\n `),o}attachFormEvents(e){var t,n,o,i;if(!e)return;this.submitHandler&&e.removeEventListener("submit",this.submitHandler);const a=e.querySelector('input[type="file"][name="consentAttachmentFile"]'),s=e.querySelector(".fj-feedback-btn-file"),r=e.querySelector(".fj-feedback-file-name");let c=e.querySelector(".fj-feedback-file-error");!c&&r&&(c=document.createElement("div"),c.className="fj-feedback-file-error",c.style.color="red",c.setAttribute("role","alert"),null===(t=r.parentNode)||void 0===t||t.insertBefore(c,r.nextSibling)),a&&s&&r&&(s.addEventListener("click",e=>{e.preventDefault(),a.click()}),a.addEventListener("change",()=>{if(a.files&&a.files.length>0){const e=a.files[0];e.size>10485760?(r.textContent="",r.style.display="none",c&&(c.textContent=u("consent.attachment.file_too_large")),a.value="",this.form.consentAttachmentFile=null):(r.textContent=e.name,r.style.display="",c&&(c.textContent=""),this.form.consentAttachmentFile=e)}else r.textContent="",r.style.display="none",c&&(c.textContent=""),this.form.consentAttachmentFile=null})),null===(n=e.querySelector('[name="consentFeedback"]'))||void 0===n||n.addEventListener("change",e=>{this.form.consentFeedbackAgree=e.target.checked}),null===(o=e.querySelector('[name="consentScreenFeedback"]'))||void 0===o||o.addEventListener("change",e=>{this.form.consentScreenFeedback=e.target.checked,this.form.consentScreenFeedback&&async function(){try{await g()}catch(e){}}()});for(const t of["feedbackTitle","feedbackDescription"])null===(i=e.querySelector(`[name="${t}"]`))||void 0===i||i.addEventListener("input",e=>{this.form[t]=e.target.value,this.saveDraft()});this.submitHandler=async t=>{t.preventDefault();const n=e.querySelectorAll("input, textarea"),o=document.querySelector(".fj-feedback-btn-submit");o&&(o.disabled=!0,o.classList.add("fj-feedback-btn-loading"),o.textContent=u("global.sending"));for(const e of n)"feedbackTitle"===e.name&&(this.form.feedbackTitle=e.value),"feedbackDescription"===e.name&&(this.form.feedbackDescription=e.value),"consentFeedback"===e.name&&(this.form.consentFeedbackAgree=e.checked),"consentScreenFeedback"===e.name&&(this.form.consentScreenFeedback=e.checked),"consentAttachmentFile"===e.name&&e instanceof HTMLInputElement&&e.files&&e.files.length>0&&(this.form.consentAttachmentFile=e.files[0]);this.form.honeypot=U(e),await this.submit()},e.addEventListener("submit",this.submitHandler)}async submit(){if(!this.form.isValid(this.hasConsentFeedback))return void this.render("form");const e=await this.form.toFormData(this.options);this.submitErrorKey="global.submit_error";try{const t=await E(`${this.options.apiUrl}/api/import_feedback`,{method:"POST",body:e,timeout:6e4,signal:this.abortController.signal});if(!t.ok)throw this.submitErrorKey=await async function(e){if(429===e.status)return"global.rate_limited";if(400!==e.status)return"global.submit_error";let t="";try{const n=await e.json();t="string"==typeof n.errors?n.errors:""}catch(e){}return t.includes(".attachment:")?"consent.attachment.invalid_type":"global.submit_error"}(t),new Error("Failed to submit feedback");C(this.draftKey,null),this.render("thanks")}catch(e){if(this.destroyed)return;this.submitError=!0,this.render("form")}}formatDecisionDate(e){const t=new Date(e),n=String(t.getDate()).padStart(2,"0"),o=String(t.getMonth()+1).padStart(2,"0"),i=t.getFullYear(),a=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0");return`${n}/${o}/${i} ${u("global.date_at")} ${a}:${s}`}}var F='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="31" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m15.75.75 4.635 9.39 10.365 1.515-7.5 7.305 1.77 10.32-9.27-4.875-9.27 4.875 1.77-10.32-7.5-7.305 10.365-1.515z"/></svg>',L='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="31" fill="none"><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m15.75.75 4.635 9.39 10.365 1.515-7.5 7.305 1.77 10.32-9.27-4.875-9.27 4.875 1.77-10.32-7.5-7.305 10.365-1.515z"/></svg>';const G="fj-feedbot-";class O{constructor(){this.quantityAnswer=0,this.quantityQuestion="",this.qualityAnswer="",this.qualityQuestion="",this.closedAnswer=0,this.closedQuestion="",this.anonymousAnswer=!1,this.answerStatus="SENT",this.honeypot=""}toJson(e,t){var n,o,i;const a="function"==typeof e.user?e.user():e.user;return{quantityAnswer:this.quantityAnswer,quantityQuestion:null!==(n=null==t?void 0:t.quantityQuestion)&&void 0!==n?n:"",qualityAnswer:this.qualityAnswer,qualityQuestion:null!==(o=null==t?void 0:t.qualityQuestion)&&void 0!==o?o:"",anonymousAnswer:this.anonymousAnswer,closedAnswer:this.closedAnswer,closedQuestion:null!==(i=null==t?void 0:t.closedQuestion)&&void 0!==i?i:"",userId:null==a?void 0:a.id,userName:this.anonymousAnswer?null:(null==a?void 0:a.fullName)||null,uuidSurvey:`/api/surveys/${e.surveyId}`,answerStatus:this.answerStatus,widgetVersion:"2.7.0",widgetLocale:d(),fjHp:this.honeypot}}}class D{get theme(){return _(this.options.theme)}get user(){return"function"==typeof this.options.user?this.options.user():this.options.user}constructor(e){var t,n;this.ratingError=!1,this.submitError=!1,this.submitErrorKey="global.submit_error",this.survey=null,this.previouslyFocusedElement=null,this.abortController=new AbortController,this.destroyed=!1,l(null!==(t=e.locale)&&void 0!==t?t:a.FR),this.options=e;const o=null!==(n=e.apiUrl)&&void 0!==n?n:e.baseApiUrl;if(!o)throw new Error("Feedbot: `apiUrl` option is required");this.apiUrl=o.trim().replace(/\/$/,""),this.form=new O,this.integrationTest=new $({modalId:"fj-feedbot-modal",bodyOpenClass:"fj-feedbot-open",toggleHtmlClass:!1,btnPrimaryClasses:"fj-btn",btnOutlineClasses:"fj-btn fj-btn-secondary",btnLoadingClass:`${G}btn-loading`,pendingTitleKey:"integration_test.pending.feedbot.title",pendingTextKey:"integration_test.pending.feedbot.text",checkingTextKey:"integration_test.checking.feedbot_text",cancelLabelKey:"feedbot.cancel",connectivityCheckUrl:`${this.apiUrl}/api/connectivity_check/survey`,connectivityCheckBody:{uuidSurvey:e.surveyId},signal:this.abortController.signal,theme:this.theme,onSuccess:()=>this.increment()})}destroy(){var e;this.destroyed||(this.destroyed=!0,this.abortController.abort(),null===(e=document.getElementById(`${G}modal`))||void 0===e||e.remove(),document.body.classList.remove(`${G}open`),this.previouslyFocusedElement=null)}showThanks(e=!1){this.form.answerStatus=e?"DECLINED":"SENT",this.render("thanks")}render(e){var t,o,a,s,r;if(this.destroyed)return;const c=document.querySelector(`#${G}modal.fj-closing`);c&&null!==e&&this.survey&&c.remove();const l=null!==(t=document.getElementById(`${G}modal`))&&void 0!==t?t:document.createElement("div");if(null===e||!this.survey)return void(this.submitError||(this.form=new O,l.classList.add("fj-closing"),l.addEventListener("animationend",()=>{l.remove(),document.body.classList.remove(`${G}open`),this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)},{once:!0})));"form"!==e&&"thanks"!==e||(this.previouslyFocusedElement||(this.previouslyFocusedElement=document.activeElement),document.body.classList.add(`${G}open`));const d=!l.parentElement;if(l.id=`${G}modal`,l.dataset.fjTheme=this.theme,d&&(l.className=`fj ${G}modal`),"form"===e||"thanks"===e?(l.setAttribute("role","dialog"),l.setAttribute("aria-modal","true"),l.setAttribute("aria-labelledby",`${G}${e}-title`)):(l.removeAttribute("role"),l.removeAttribute("aria-modal"),l.removeAttribute("aria-labelledby")),"bubble"===e&&(l.innerHTML=`<button type="button" class="${G}bubble">\n <span class="${G}text">${k(this.survey.bubbleText||u("feedbot.bubble_default"))}<span class="fj-sr-only">, ${u("a11y.feedbot_bubble")}</span></span>\n <span class="${G}robot" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 164 213"><path fill="#2c3d82" d="M75.638 144.771s4.61 1.009 6.734 1.502c2.127.495 6.279 1.444 6.988 1.689.711.245 2.07.871 2.445 2.088.374 1.217.29 1.986.428 4.337l-14.756-3.43c-.79-.183-1.766-1.449-1.84-6.186zM85.8 159.927c4.318 1.003 7.434 1.745 7.434 1.745-.2-2.053-.137-2.721-.538-3.792-.4-1.072-1.75-1.653-2.452-1.885-.702-.233-4.796-1.17-6.891-1.658a857 857 0 0 0-6.637-1.487c.102 2.064.198 3.46.366 4.398.24 1.34.028 1.911 1.26 5.735 1.126 3.498 1.885 5.785 5.463 9.237 0 0 3.41-3.331 2.406-5.134-.973-1.748-.914-1.508-1.632-3.269-.378-.923-.622-1.283-.749-2.493-.105-1 .938-1.64 1.97-1.401z"/><path fill="#2c3d82" d="M75.638 144.771s.875 11.683 1.864 14.382c.99 2.7 4.904-1.946 4.904-1.946l-.752-9.124-6.018-3.31z"/><path fill="url(#a)" d="M149.477 102.154c8.021-24.582-12.008-52.842-44.736-63.12s-65.761 1.318-73.782 25.9c-8.02 24.582 12.009 52.842 44.737 63.12 32.727 10.278 65.761-1.318 73.781-25.9"/><path fill="url(#b)" d="M85.05 135.955c-20.571-1.738-32.256-12.078-38.342-1.516-5.127 8.899 6.953 35.565 32.601 38.829 26.471 3.367 44.456-18.622 41.84-29.991-2.146-9.331-14.715-5.515-36.098-7.321z"/><path fill="url(#c)" d="M138.875 121.36c-1.907 1.048-5.849 2.352-5.653-.863.579-9.443 7.191-18.732 10.361-22.806 1.725-2.213 7.107-7.247 7.925-5.126 2.5 6.48 1.507 12.387-2.025 18.686-3.213 5.73-8.703 9.066-10.61 10.113v-.004z"/><path fill="url(#d)" d="M127.617 135.086c-1.84.833-1.308 4.8-1.842 7.029-.82 3.412-2.661 6.827-3.684 11.444-.709 3.195 2.048 5.824 5.731 6.025 3.684.201 14.738-.804 19.854-5.019 3.892-3.209 7.574-6.828 7.574-10.642 0-4.824-13.237-8.101-16.986-8.837-3.071-.603-7.982-1.204-10.643 0z"/><path fill="url(#e)" d="M8.908 88.098c2.476.844 5.527 4.818 9.415 5.824 3.888 1.003 12.69 1.807 12.895 8.836.205 7.028-4.013 14.333-8.313 15.938-4.299 1.606-11.865.098-15.884-4.408-4.414-4.95-8.142-15.343-6.71-19.763C1.745 90.108 4.2 86.493 8.909 88.1z"/><path fill="url(#f)" d="M91.46 60.518c16.845 6.768 28.353 17.536 30.023 19.632 1.28 1.605-3.851 8.591-8.026 16.431-3.912 7.345-5.99 15.781-7.646 16.398-2.352.876-18.514-1.918-33.043-8.71-16.29-7.616-27.939-16.49-28.442-18.858-.582-2.738 1.21-13.093 4.37-19.291 3.473-6.394 8.312-12.774 11.21-14.005 2.37-1.007 15.402 1.911 31.556 8.401h-.002z"/><path fill="#fff" d="M72.78 39.482c-3.812.4-12.452 1.44-13.116 5.665-.667 4.226 5.654 4.257 8.94 3.757s9.34-.897 12.81-.622c3.47.272 6.344-2.334 5.093-4.822-1.25-2.488-8.378-4.537-13.727-3.976zm-14.535 96.519c-2.103-.285-5.225 1.571-5.378 3.759s-.676 4.624-.11 6.587c.57 1.962 2.164 6.878 5.247 8.184s4.967 2.121 6.282.974 1.597-2.64.658-4.351c-.94-1.712-3.447-3.667-2.72-6.503.727-2.835.04-8.103-3.98-8.647zM3.339 94.533c-.095 1.306.57 4.536 1.839 6.051s3.917.165 3.774-2.334 1.813-6.297.259-7.348c-1.556-1.05-5.55-.88-5.872 3.633zm139.068 46.434c-.397-2.125-4.915-3.684-7.928-3.864s-4.65 1.885-4.211 2.946c.438 1.061 2.632 2.832 6.39 1.636 1.627-.517 6.006.644 5.753-.72h-.004z"/><path fill="#b4bfc6" d="M10.767 115.942s-5.854-3.633-4.061-6.915c.91-1.664 2.674-2.836 5.734-2.46s5.838 2.144 8.326.831c2.486-1.313 3.782-2.196 6.066-2.486 1.966-.25 2.096 1.507 2.224 2.827-.57 1.993-1.465 4.886-1.973 5.631-.507.747-2.617 3.294-5.388 3.981-2.994.741-5.64 1.117-10.928-1.411zm53.929 15.801c.144 1.28 1.88 3.755 4.362 4.816 5.639 2.413 7.861.663 19.088 3.973 8.256 2.433 18.584 2.87 22.932 1.449s5.653-3.981 3.044-4.692c0 0-1.369-.411-6.257-.696-4.169-.242-11.666-.376-14.683-.259-4.957.194-16.978-1.609-20.843-2.637a623 623 0 0 0-7.64-1.958zm18.844-5.528c5.49 1.75 13.787 2.278 19.884.427 7.237-2.198 18.895-3.701 21.572-3.126 1.921.414 2.466 1.755 2.268 2.399 0 0-7.34 3.858-17.763 5.208s-17.764.643-22.615-.259c-2.698-.5-8.36-1.837-13.494-3.549-.646-2.182 6.197-2.362 10.148-1.101zm63.098-31.651c-2.057.059-5.749 2.559-10.942 10.058-5.386 7.775-6.341 13.159-6.113 15.336.228 2.175.916 3.291 1.529 3.965 0 0 1.683-.984 2.752-1.736 0 0-.939-.365-.415-3.708.224-1.437.859-3.787 1.726-6.301 1.116-3.231 2.69-5.892 4.151-8.357 1.944-3.28 6.663-8.959 7.31-9.256zm-17.059 63.05c-1.539-1.343.286-5.876 1.996-6.828 1.711-.951 4.334-.839 6.389-1.23 2.053-.392 4.334-1.289 6.047-2.014 1.712-.728 4.164-.224 5.248.951 1.083 1.176.03 2.334-.893 3.283-1.254 1.289-3.372 2.49-5.895 3.546-3.479 1.456-10.553 2.294-12.892 2.294z"/><path fill="#121442" d="M107.469 110.524c-.552 1.222-1.154 2.27-1.655 2.455-2.352.876-18.514-1.918-33.043-8.71-16.29-7.616-27.94-16.49-28.442-18.858-.583-2.738 1.21-13.093 4.37-19.291 3.473-6.394 8.311-12.774 11.209-14.005.695-.295 2.31-.253 4.651.12 0 0-7.326 6.535-10.662 12.99-2.217 4.288-3.881 8.353-4.872 12.374-.61 2.476-.95 4.794-.697 6.401.285 1.797 15.698 11.19 22.53 14.422 7.394 3.499 24.53 10.071 36.61 12.1h.001z"/><path fill="#425cc2" d="M129.28 31.407c6.615 0 11.977-5.261 11.977-11.751s-5.362-11.75-11.977-11.75-11.977 5.26-11.977 11.75 5.362 11.75 11.977 11.75"/><path fill="#b6c2ef" d="M134.127 13.253c1.491.993 1.242 3.054 1.504 5.857.241 2.587-3.741 6.754-6.733 6.705-2.994-.05-5.84-1.175-7.438-4.072-1.536-2.787-1.358-4.416-.569-6.366.924-2.274 3.914-4.596 7.48-4.463s4.182 1.292 5.756 2.339"/><path fill="#8094e4" d="M135.528 26.382c1.449-1.023 3.687-3.922 3.045-7.545-.737-4.17-2.427-6.858-5.392-6.43-3.019.435-5.455 1.52-5.386 4.357.07 2.837 1.606 4.927-.251 6.754s.066 5.546 2.247 5.285c3.304-.393 4.332-1.432 5.737-2.422"/><path fill="#edf0fb" d="M125.967 18.031c1.304-.603 3.81-1.72 4.322-3.009.511-1.288.563-3.096-.76-4.07-1.324-.972-3.193-1.421-4.745-.267s-4.131 3.017-3.153 4.74c.977 1.723.829 3.215 2.479 3 1.648-.216 1.859-.394 1.859-.394z"/><path fill="#4966d8" d="M139.707 5.668c-.271 0-.544-.08-.781-.248-1.449-1.025-3.428-1.74-3.448-1.747-.693-.248-1.05-1-.798-1.68a1.34 1.34 0 0 1 1.712-.783c.095.033 2.342.842 4.097 2.082.599.423.734 1.243.303 1.83-.26.355-.67.546-1.085.546m-15.624-2.365a1.335 1.335 0 0 1-1.279-.934 1.31 1.31 0 0 1 .894-1.633c.097-.028 2.388-.697 4.554-.736.736-.01 1.347.563 1.359 1.289a1.32 1.32 0 0 1-1.313 1.334c-1.8.031-3.81.619-3.83.624a1.3 1.3 0 0 1-.385.056m-9.673 6.288c-.288 0-.577-.09-.823-.278a1.296 1.296 0 0 1-.23-1.84c.064-.08 1.568-1.957 3.35-3.232a1.354 1.354 0 0 1 1.868.287 1.295 1.295 0 0 1-.292 1.832c-1.485 1.062-2.807 2.712-2.82 2.728-.263.33-.657.503-1.053.503m-4.05 10.85h-.022a1.32 1.32 0 0 1-1.315-1.33c0-.102.046-2.488.683-4.553a1.34 1.34 0 0 1 1.666-.876c.706.21 1.107.942.893 1.635-.53 1.717-.569 3.811-.569 3.832-.01.717-.607 1.292-1.336 1.292m3.037 11.022c-.429 0-.85-.2-1.108-.577-.057-.082-1.392-2.028-2.073-4.044a1.307 1.307 0 0 1 .849-1.657c.7-.227 1.457.145 1.689.832.567 1.675 1.738 3.383 1.748 3.4.414.6.253 1.415-.358 1.822-.23.152-.49.226-.748.226zm9.323 7.191q-.22.001-.439-.074c-.094-.033-2.354-.81-4.125-2.026a1.296 1.296 0 0 1-.33-1.825 1.354 1.354 0 0 1 1.861-.324c1.463 1.004 3.453 1.69 3.473 1.698.697.24 1.064.986.821 1.67-.192.54-.709.88-1.261.88m7.315 1.13a1.324 1.324 0 0 1-1.336-1.308 1.324 1.324 0 0 1 1.333-1.315c1.837-.005 3.894-.579 3.913-.586a1.34 1.34 0 0 1 1.654.897 1.306 1.306 0 0 1-.914 1.623c-.098.028-2.44.681-4.648.687h-.003zm11.033-4.069c-.403 0-.802-.179-1.066-.518a1.294 1.294 0 0 1 .255-1.837c1.447-1.08 2.741-2.761 2.753-2.779a1.353 1.353 0 0 1 1.871-.262c.59.434.711 1.255.27 1.834-.061.08-1.524 1.988-3.276 3.294a1.35 1.35 0 0 1-.807.268m6.33-9.494q-.21.001-.419-.067a1.31 1.31 0 0 1-.85-1.657c.574-1.701.674-3.808.676-3.829.032-.724.664-1.283 1.393-1.252a1.323 1.323 0 0 1 1.278 1.366c-.004.1-.116 2.486-.807 4.539-.186.55-.708.9-1.269.9zm.203-12.383c-.413 0-.82-.187-1.082-.54-.95-1.282-2.443-2.75-2.459-2.765a1.294 1.294 0 0 1 0-1.855 1.356 1.356 0 0 1 1.891 0c.068.067 1.655 1.626 2.73 3.076a1.295 1.295 0 0 1-.294 1.832c-.237.17-.513.251-.786.251"/><path fill="#2c3d82" d="M83.671 143.336s-11.91 1.768-11.052 15.497c.21 3.373 2.577 8.506 7.194 11.349 0 0-6.118-7.924-2.505-15.518 2.903-6.106 10.37-3.527 12.121-10.943 0 0-2.552-.834-5.758-.385"/><path fill="#2c3d82" d="M87.824 154.05c2.977 0 5.39-2.368 5.39-5.289s-2.413-5.288-5.39-5.288-5.39 2.368-5.39 5.288 2.413 5.289 5.39 5.289m-6.089 6.106c1.93 0 3.496-1.535 3.496-3.43 0-1.894-1.565-3.43-3.496-3.43s-3.497 1.536-3.497 3.43 1.566 3.43 3.497 3.43"/><path fill="#d9effd" d="M64.834 75.612c4.736 1.12 7.376 7.755 10.088 6.095 2.89-1.769-1.377-10.457-7.779-12.734-6.21-2.21-16.258 4.87-14.486 6.96 2.617 3.084 7.032-1.537 12.176-.32zm32.902 13.02c4.261 2.333 5.426 9.563 8.488 8.252 3.291-1.409 1.374-9.938-4.813-14.001-5.784-3.798-16.639.228-15.57 2.894 1.546 3.858 7.413.4 11.895 2.855"/><ellipse cx="83.323" cy="192.924" fill="url(#g)" fill-opacity=".6" rx="30.304" ry="6.774"/><ellipse cx="82.254" cy="207.898" fill="url(#h)" fill-opacity=".6" rx="21.391" ry="4.635"/><defs><linearGradient id="a" x1="54.223" x2="125.495" y1="48.671" y2="120.41" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="b" x1="45.55" x2="121.402" y1="151.683" y2="151.683" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="c" x1="139.942" x2="144.858" y1="96.966" y2="117.079" gradientUnits="userSpaceOnUse"><stop offset=".15" stop-color="#f1f2f3"/><stop offset=".26" stop-color="#e5e8ea"/><stop offset=".47" stop-color="#d2d9dd"/><stop offset=".7" stop-color="#c7cfd5"/><stop offset=".94" stop-color="#c4cdd3"/></linearGradient><linearGradient id="d" x1="121.979" x2="155.25" y1="147" y2="147" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="e" x1="0" x2="31.225" y1="103.516" y2="103.516" gradientUnits="userSpaceOnUse"><stop stop-color="#f1f2f3"/><stop offset="1" stop-color="#c4cdd3"/></linearGradient><linearGradient id="f" x1="56.797" x2="102.227" y1="101.704" y2="66.889" gradientUnits="userSpaceOnUse"><stop stop-color="#134395"/><stop offset="1" stop-color="#0e2050"/></linearGradient><linearGradient id="g" x1="83.323" x2="83.323" y1="186.15" y2="199.698" gradientUnits="userSpaceOnUse"><stop stop-color="#edf0fb"/><stop offset="1" stop-color="#b6c2ef"/></linearGradient><linearGradient id="h" x1="82.254" x2="82.254" y1="203.264" y2="212.533" gradientUnits="userSpaceOnUse"><stop stop-color="#edf0fb"/><stop offset="1" stop-color="#8094e4"/></linearGradient></defs></svg></span>\n </button>`,null===(o=l.querySelector(`.${G}bubble`))||void 0===o||o.addEventListener("click",()=>{this.render("form")})),"form"===e){l.innerHTML=`<form class="${G}form" data-version="v2.7.0" aria-labelledby="${G}form-title">\n <div class="${G}header">\n <div id="${G}form-title" class="${G}title">${k(this.survey.title)}</div>\n <div class="${G}subtitle">${k(this.survey.subTitle)}</div>\n </div>\n <div class="${G}content">\n <div class="${G}presentation-wrapper">\n <div class="${G}robot" aria-hidden="true">${n}</div>\n <div class="${G}presentation">${k(this.survey.mainQuestion)}</div>\n </div>\n ${this.survey.quantityQuestion?`<div class="${G}rating" role="group" aria-labelledby="${G}rating-label">\n <label id="${G}rating-label"><p> ${k(this.survey.quantityQuestion)} ${f(`${G}required`)}</p></label>\n <div class="${G}stars">\n <div class="${G}stars-wrapper" role="radiogroup" aria-labelledby="${G}rating-label">\n ${[...Array(5).keys()].reverse().map(e=>{return`\n <button\n type="button"\n role="radio"\n aria-checked="${e<this.form.quantityAnswer}"\n data-value="${e+1}"\n aria-label="${t={n:e+1,s:0===e?"":"s"},Object.entries(t).reduce((e,[t,n])=>e.replace(new RegExp(`\\{${t}\\}`,"g"),String(n)),u("feedbot.star_label"))}"\n >\n ${e<this.form.quantityAnswer?L:F}\n </button>`;var t}).join("")}\n </div>\n </div>\n </div>\n ${this.ratingError?`<p class="fj-error" aria-live="polite">${u("feedbot.rating_error")}</p>`:""}`:""}\n ${this.survey.qualityQuestion?`<label class="${G}quality">\n <p>${k(this.survey.qualityQuestion)} ${f(`${G}required`)}</p>\n <textarea name="qualityAnswer" rows="6" required maxlength="1000">${k(this.form.qualityAnswer)}</textarea>\n </label>`:""}\n ${this.survey.closedQuestion?`<div class="${G}closed ${G}label">\n <p id="${G}closed-label">${k(this.survey.closedQuestion)} ${f(`${G}required`)}</p>\n <div class="${G}closed-answers" role="radiogroup" aria-labelledby="${G}closed-label">\n <input type="radio" name="closedAnswer" value="1" id="${G}r1" required>\n <label for="${G}r1">${k(this.survey.closedAnswerOne)}</label>\n <input type="radio" name="closedAnswer" value="2" id="${G}r2" required>\n <label for="${G}r2">${k(this.survey.closedAnswerTwo)}</label>\n </div>\n </div>`:""}\n \n <label class="fj-checkbox-label ${G}anonymous">\n <input type="checkbox" name="anonymousAnswer" ${this.form.anonymousAnswer?"checked":""}>\n <p>${u("feedbot.anonymous")}</p>\n </label>\n ${this.submitError?`<p class="fj-error" aria-live="assertive">${u(this.submitErrorKey)}</p>`:""}\n ${z()}\n </div>\n <div class="${G}footer-buttons">\n <button type="button" class="fj-btn fj-btn-secondary ${G}btn-decline">${u("feedbot.cancel")}</button>\n <button type="submit" class="fj-btn ${G}btn-submit">${u("feedbot.submit")}</button>\n </div>\n </form>`;const e=l.querySelectorAll(`.${G}rating button`);for(const t of e)t.addEventListener("click",()=>{const n=Number.parseInt(t.dataset.value||"0",10);this.form.quantityAnswer=n;for(const t of e){const e=Number.parseInt(t.dataset.value||"0",10);t.innerHTML=e<=n?L:F,t.setAttribute("aria-checked",e===n?"true":"false")}});const t=l.querySelector("form"),o=l.querySelector(`.${G}btn-submit`),i=l.querySelector(`.${G}btn-decline`),a=(e,t)=>{e&&(e.disabled=!0,e.classList.add("fj-btn-loading"),e.textContent=u("global.sending")),t&&(t.disabled=!0)},s=n=>{var r;if(n.preventDefault(),!t)return;const c=t.querySelectorAll("input, textarea");for(const e of c)"quantityAnswer"===e.name&&(this.form.quantityAnswer=Number.parseInt(e.value,10)),"qualityAnswer"===e.name&&(this.form.qualityAnswer=e.value),"anonymousAnswer"===e.name&&(this.form.anonymousAnswer=e.checked);this.form.honeypot=U(t);const l=t.querySelector('input[name="closedAnswer"]:checked');if(l&&(this.form.closedAnswer=Number.parseInt(l.value,10)),null===(r=this.survey)||void 0===r?void 0:r.quantityQuestion){this.form.quantityAnswer=0;for(const t of e)"true"===t.getAttribute("aria-checked")&&(this.form.quantityAnswer=Number.parseInt(t.dataset.value||"0",10));if(0===this.form.quantityAnswer)return this.ratingError=!0,void this.render("form")}a(o,i),this.submit(),t.removeEventListener("submit",s)};t&&w(t),null==t||t.addEventListener("submit",s),null==i||i.addEventListener("click",()=>{a(i,o),this.form.answerStatus="DECLINED",this.submit()})}if("thanks"===e){const e="DECLINED"===this.form.answerStatus?"feedbot.thanks.declined":"feedbot.thanks";l.innerHTML=`<div class="${G}thanks" data-version="v2.7.0">\n <div class="${G}thanks-bubble">\n <div class="${G}robot" aria-hidden="true">${i}</div>\n <p id="${G}thanks-title" class="${G}title">${u(`${e}.title`)}</p>\n <p id="${G}thanks-subtitle" class="${G}subtitle">${u(`${e}.sub_title`)}</p>\n </div>\n <button class="fj-btn ${G}btn-close">${u("global.close")}</button>\n </div>`,null===(a=l.querySelector(`.${G}btn-close`))||void 0===a||a.addEventListener("click",()=>{this.render(null)})}if(d&&(l.addEventListener("keydown",e=>{"Escape"===e.key&&this.render(null),"dialog"===l.getAttribute("role")&&m(l,e)}),document.body.appendChild(l)),"form"===e){const e=l.querySelector('textarea, input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"])');e?e.focus():null===(s=l.querySelector("button:not([disabled])"))||void 0===s||s.focus()}else"thanks"===e&&(null===(r=l.querySelector(`.${G}btn-close`))||void 0===r||r.focus())}async increment(){var e;try{const t=await E(`${this.apiUrl}/api/survey_logs/increment`,{method:"POST",signal:this.abortController.signal,body:JSON.stringify({uuidSurvey:this.options.surveyId,userId:(null===(e=this.user)||void 0===e?void 0:e.id)||null,locale:d()}),headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to increment log");const n=await t.json();if(this.destroyed)return;if(this.integrationTest.setStatus(n.surveyIntegrationTest||"pending"),this.integrationTest.handleIntegrationStatus())return;n.isValid?(this.survey=n.survey,this.render("bubble")):this.survey=null}catch(e){if(this.destroyed)return}}async submit(){this.submitErrorKey="global.submit_error";try{const e=await E(`${this.apiUrl}/api/reviews/submit`,{method:"POST",signal:this.abortController.signal,body:JSON.stringify(this.form.toJson(this.options,this.survey)),headers:{"Content-Type":"application/json"}});if(!e.ok)throw 429===e.status&&(this.submitErrorKey="global.rate_limited"),new Error("Failed to submit feedback");this.render("SENT"===this.form.answerStatus||"DECLINED"===this.form.answerStatus?"thanks":null)}catch(e){if(this.destroyed)return;this.submitError=!0,this.render("form")}}}function N(e,t){return e[13]=1,e[14]=t>>8,e[15]=255&t,e[16]=t>>8,e[17]=255&t,e}"undefined"!=typeof window&&(window.Feedback=q,window.Feedbot=D);const I="p".charCodeAt(0),P="H".charCodeAt(0),B="Y".charCodeAt(0),R="s".charCodeAt(0);let H;function V(e,t,n=!1){const o=new Uint8Array(13);t*=39.3701,o[0]=I,o[1]=P,o[2]=B,o[3]=R,o[4]=t>>>24,o[5]=t>>>16,o[6]=t>>>8,o[7]=255&t,o[8]=o[4],o[9]=o[5],o[10]=o[6],o[11]=o[7],o[12]=1;const i=function(e){let t=-1;H||(H=function(){const e=new Int32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e}());for(let n=0;n<e.length;n++)t=H[255&(t^e[n])]^t>>>8;return-1^t}(o),a=new Uint8Array(4);if(a[0]=i>>>24,a[1]=i>>>16,a[2]=i>>>8,a[3]=255&i,n){const t=function(e){for(let t=e.length-1;t>=4;t--)if(9===e[t-4]&&e[t-3]===I&&e[t-2]===P&&e[t-1]===B&&e[t]===R)return t-3;return 0}(e);return e.set(o,t),e.set(a,t+13),e}{const t=new Uint8Array(4);t[0]=0,t[1]=0,t[2]=0,t[3]=9;const n=new Uint8Array(54);return n.set(e,0),n.set(t,33),n.set(o,37),n.set(a,50),n}}const W="undefined"!=typeof window,K=W&&"Worker"in window,J=W&&"atob"in window,Q=W&&"btoa"in window,Y=W?window.navigator?.userAgent:"",X=Y.includes("Chrome"),Z=Y.includes("AppleWebKit")&&!X,ee=Y.includes("Firefox"),te=e=>"CSSLayerBlockRule"===e.constructor.name,ne=e=>1===e.nodeType,oe=e=>"object"==typeof e.className,ie=e=>"image"===e.tagName,ae=e=>ne(e)&&void 0!==e.style&&!oe(e),se=e=>8===e.nodeType,re=e=>"IMG"===e.tagName,ce=e=>"VIDEO"===e.tagName,le=e=>"SLOT"===e.tagName;function de(e){const t=e?.createElement?.("canvas");return t&&(t.height=t.width=1),Boolean(t)&&"toDataURL"in t&&Boolean(t.toDataURL("image/webp").includes("image/webp"))}const ue=e=>e.startsWith("data:");function fe(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(W&&e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;if(!W)return e;const n=pe().implementation.createHTMLDocument(),o=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(o),n.body.appendChild(i),t&&(o.href=t),i.href=e,i.href}function pe(e){return(e&&ne(e)?e?.ownerDocument:e)??window.document}const me="http://www.w3.org/2000/svg";function he(e,t,n){const o=pe(n).createElementNS(me,"svg");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"viewBox",`0 0 ${e} ${t}`),o}function be(e,t){let n=(new XMLSerializer).serializeToString(e);return t&&(n=n.replace(/[\u0000-\u0008\v\f\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)}`}function ge(e,t){return new Promise((n,o)=>{const i=new FileReader;i.onload=()=>n(i.result),i.onerror=()=>o(i.error),i.onabort=()=>o(new Error(`Failed read blob to ${t}`)),"dataUrl"===t?i.readAsDataURL(e):"arrayBuffer"===t&&i.readAsArrayBuffer(e)})}const ye=e=>ge(e,"dataUrl");function ve(e,t){const n=pe(t).createElement("img");return n.decoding="sync",n.loading="eager",n.src=e,n}function we(e,t){return new Promise(n=>{const{timeout:o,ownerDocument:i,onError:a,onWarn:s}=t??{},r="string"==typeof e?ve(e,pe(i)):e;let c=null,l=null;function d(){n(r),c&&clearTimeout(c),l?.()}if(o&&(c=setTimeout(d,o)),ce(r)){const e=r.currentSrc||r.src;if(!e)return r.poster?we(r.poster,t).then(n):d();if(r.readyState>=2)return d();const o=d,i=t=>{s?.("Failed video load",e,t),a?.(t),d()};l=()=>{r.removeEventListener("loadeddata",o),r.removeEventListener("error",i)},r.addEventListener("loadeddata",o,{once:!0}),r.addEventListener("error",i,{once:!0})}else{const e=ie(r)?r.href.baseVal:r.currentSrc||r.src;if(!e)return d();const t=async()=>{if(re(r)&&"decode"in r)try{await r.decode()}catch(t){s?.("Failed to decode image, trying to render anyway",r.dataset.originalSrc||e,t)}d()},n=t=>{s?.("Failed image load",r.dataset.originalSrc||e,t),d()};if(re(r)&&r.complete)return t();l=()=>{r.removeEventListener("load",t),r.removeEventListener("error",n)},r.addEventListener("load",t,{once:!0}),r.addEventListener("error",n,{once:!0})}})}async function ke(e,t){ae(e)&&(re(e)||ce(e)?await we(e,t):await Promise.all(["img","video"].flatMap(n=>Array.from(e.querySelectorAll(n)).map(e=>we(e,t)))))}const xe=function(){let e=0;return()=>(e+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${e}`)}();function Se(e){return e?.split(",").map(e=>e.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}function je(e){return{time:t=>e&&void 0,timeEnd:t=>e&&void 0,warn:(...t)=>e&&void 0}}async function Me(e,t){return(n=e)&&"__CONTEXT__"in n?e:Ee(e,{...t,autoDestruct:!0});var n}async function Ee(e,t){const{scale:n=1,workerUrl:o,workerNumber:i=1}=t||{},a=Boolean(t?.debug),s=t?.features??!0,r=e.ownerDocument??(W?window.document:void 0),c=e.ownerDocument?.defaultView??(W?window:void 0),l=new Map,d={width:0,height:0,quality:1,type:"image/png",scale:n,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:a,fetch:{requestInit:(u=t?.fetch?.bypassingCache,{cache:u?"no-cache":"force-cache"}),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1,...t?.fetch},fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:i,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1,...t,__CONTEXT__:!0,log:je(a),node:e,ownerDocument:r,ownerWindow:c,dpi:1===n?null:96*n,svgStyleElement:Ce(r),svgDefsElement:r?.createElementNS(me,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:K&&o&&i?i:0})].map(()=>{try{const e=new Worker(o);return e.onmessage=async e=>{const{url:t,result:n}=e.data;n?l.get(t)?.resolve?.(n):l.get(t)?.reject?.(new Error(`Error receiving message from worker: ${t}`))},e.onmessageerror=e=>{const{url:t}=e.data;l.get(t)?.reject?.(new Error(`Error receiving message from worker: ${t}`))},e}catch(e){return d.log.warn("Failed to new Worker",e),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[de(r)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:l,drawImageCount:0,tasks:[],features:s,isEnable:e=>"restoreScrollPosition"===e?"boolean"!=typeof s&&(s[e]??!1):"boolean"==typeof s?s:s[e]??!0,shadowRoots:[]};var u;d.log.time("wait until load"),await ke(e,{timeout:d.timeout,onWarn:d.log.warn}),d.log.timeEnd("wait until load");const{width:f,height:p}=function(e,t){let{width:n,height:o}=t;if(ne(e)&&(!n||!o)){const t=e.getBoundingClientRect();n=n||t.width||Number(e.getAttribute("width"))||0,o=o||t.height||Number(e.getAttribute("height"))||0}return{width:n,height:o}}(e,d);return d.width=f,d.height=p,d}function Ce(e){if(!e)return;const t=e.createElement("style"),n=t.ownerDocument.createTextNode("\n.______background-clip--text {\n background-clip: text;\n -webkit-background-clip: text;\n}\n");return t.appendChild(n),t}function $e(e,t){if(e.ownerDocument)try{const t=e.toDataURL();if("data:,"!==t)return ve(t,e.ownerDocument)}catch(e){t.log.warn("Failed to clone canvas",e)}const n=e.cloneNode(!1),o=e.getContext("2d"),i=n.getContext("2d");try{return o&&i&&i.putImageData(o.getImageData(0,0,e.width,e.height),0,0),n}catch(e){t.log.warn("Failed to clone canvas",e)}return n}const Ae=["width","height","-webkit-text-fill-color"],ze=["stroke","fill"];function Ue(e,t,n){const{defaultComputedStyles:o}=n,i=e.nodeName.toLowerCase(),a=oe(e)&&"svg"!==i,s=a?ze.map(t=>[t,e.getAttribute(t)]).filter(([,e])=>null!==e):[],r=[a&&"svg",i,s.map((e,t)=>`${e}=${t}`).join(","),t].filter(Boolean).join(":");if(o.has(r))return o.get(r);const c=function(e){let t=e.sandbox;if(!t){const{ownerDocument:n}=e;try{n&&(t=n.createElement("iframe"),t.id=`__SANDBOX__${xe()}`,t.width="0",t.height="0",t.style.visibility="hidden",t.style.position="fixed",n.body.appendChild(t),t.srcdoc='<!DOCTYPE html><meta charset="UTF-8"><title></title><body>',e.sandbox=t)}catch(t){e.log.warn("Failed to getSandBox",t)}}return t}(n),l=c?.contentWindow;if(!l)return new Map;const d=l?.document;let u,f;a?(u=d.createElementNS(me,"svg"),f=u.ownerDocument.createElementNS(u.namespaceURI,i),s.forEach(([e,t])=>{f.setAttributeNS(null,e,t)}),u.appendChild(f)):u=f=d.createElement(i),f.textContent=" ",d.body.appendChild(u);const p=l.getComputedStyle(f,t),m=new Map;for(let e=p.length,t=0;t<e;t++){const e=p.item(t);Ae.includes(e)||m.set(e,p.getPropertyValue(e))}return d.body.removeChild(u),o.set(r,m),m}function _e(e,t,n){const o=new Map,i=[],a=new Map;if(n)for(const e of n)s(e);else for(let t=e.length,n=0;n<t;n++)s(e.item(n));for(let e=i.length,t=0;t<e;t++)a.get(i[t])?.forEach((e,t)=>o.set(t,e));function s(n){const s=e.getPropertyValue(n),r=e.getPropertyPriority(n),c=n.lastIndexOf("-"),l=c>-1?n.substring(0,c):void 0;if(l){let e=a.get(l);e||(e=new Map,a.set(l,e)),e.set(n,[s,r])}(t.get(n)!==s||r)&&(l?i.push(l):o.set(n,[s,r]))}return o}const Te=["::before","::after"],qe=["::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::-webkit-scrollbar-corner","::-webkit-resizer"],Fe=new Set(["symbol"]);async function Le(e,t,n,o,i){if(ne(n)&&((e=>"STYLE"===e.tagName)(n)||(e=>"SCRIPT"===e.tagName)(n)))return;if(o.filter&&!o.filter(n))return;Fe.has(t.nodeName)||Fe.has(n.nodeName)?o.currentParentNodeStyle=void 0:o.currentParentNodeStyle=o.currentNodeStyle;const a=await De(n,o,!1,i);o.isEnable("restoreScrollPosition")&&function(e,t){if(!ae(e)||!ae(t))return;const{scrollTop:n,scrollLeft:o}=e;if(!n&&!o)return;const{transform:i}=t.style,a=new DOMMatrix(i),{a:s,b:r,c:c,d:l}=a;a.a=1,a.b=0,a.c=0,a.d=1,a.translateSelf(-o,-n),a.a=s,a.b=r,a.c=c,a.d=l,t.style.transform=a.toString()}(e,a),t.appendChild(a)}async function Ge(e,t,n,o){let i=e.firstChild;ne(e)&&e.shadowRoot&&(i=e.shadowRoot?.firstChild,n.shadowRoots.push(e.shadowRoot));for(let a=i;a;a=a.nextSibling)if(!se(a))if(ne(a)&&le(a)&&"function"==typeof a.assignedNodes){const i=a.assignedNodes();for(let a=0;a<i.length;a++)await Le(e,t,i[a],n,o)}else await Le(e,t,a,n,o)}const Oe=/^[\w-:]+$/;async function De(e,t,n=!1,o){const{ownerDocument:i,ownerWindow:a,fontFamilies:s,onCloneEachNode:r}=t;if(i&&(e=>3===e.nodeType)(e))return o&&/\S/.test(e.data)&&o(e.data),i.createTextNode(e.data);if(i&&a&&ne(e)&&(ae(e)||oe(e))){const o=await function(e,t){return(e=>"CANVAS"===e.tagName)(e)?$e(e,t):(e=>"IFRAME"===e.tagName)(e)?function(e,t){try{if(e?.contentDocument?.documentElement)return De(e.contentDocument.documentElement,t)}catch(e){t.log.warn("Failed to clone iframe",e)}return e.cloneNode(!1)}(e,t):re(e)?function(e){const t=e.cloneNode(!1);return e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager"),t}(e):ce(e)?async function(e,t){if(e.ownerDocument&&!e.currentSrc&&e.poster)return ve(e.poster,e.ownerDocument);const n=e.cloneNode(!1);n.crossOrigin="anonymous",e.currentSrc&&e.currentSrc!==e.src&&(n.src=e.currentSrc);const o=n.ownerDocument;if(o){let i=!0;if(await we(n,{onError:()=>i=!1,onWarn:t.log.warn}),!i)return e.poster?ve(e.poster,e.ownerDocument):n;n.currentTime=e.currentTime,await new Promise(e=>{n.addEventListener("seeked",e,{once:!0})});const a=o.createElement("canvas");a.width=e.offsetWidth,a.height=e.offsetHeight;try{const e=a.getContext("2d");e&&e.drawImage(n,0,0,a.width,a.height)}catch(o){return t.log.warn("Failed to clone video",o),e.poster?ve(e.poster,e.ownerDocument):n}return $e(a,t)}return n}(e,t):e.cloneNode(!1)}(e,t);if(t.isEnable("removeAbnormalAttributes")){const e=o.getAttributeNames();for(let t=e.length,n=0;n<t;n++){const t=e[n];Oe.test(t)||o.removeAttribute(t)}}const i=t.currentNodeStyle=function(e,t,n,o){const{ownerWindow:i,includeStyleProperties:a,currentParentNodeStyle:s}=o,r=t.style,c=i.getComputedStyle(e),l=Ue(e,null,o);s?.forEach((e,t)=>{l.delete(t)});const d=_e(c,l,a);d.delete("transition-property"),d.delete("all"),d.delete("d"),d.delete("content"),n&&(d.delete("position"),d.delete("margin-top"),d.delete("margin-right"),d.delete("margin-bottom"),d.delete("margin-left"),d.delete("margin-block-start"),d.delete("margin-block-end"),d.delete("margin-inline-start"),d.delete("margin-inline-end"),d.set("box-sizing",["border-box",""])),"text"===d.get("background-clip")?.[0]&&t.classList.add("______background-clip--text"),X&&(d.has("font-kerning")||d.set("font-kerning",["normal",""]),"hidden"!==d.get("overflow-x")?.[0]&&"hidden"!==d.get("overflow-y")?.[0]||"ellipsis"!==d.get("text-overflow")?.[0]||e.scrollWidth!==e.clientWidth||d.set("text-overflow",["clip",""]));for(let e=r.length,t=0;t<e;t++)r.removeProperty(r.item(t));return d.forEach(([e,t],n)=>{r.setProperty(n,e,t)}),d}(e,o,n,t);n&&function(e,t){const{backgroundColor:n,width:o,height:i,style:a}=t,s=e.style;if(n&&s.setProperty("background-color",n,"important"),o&&s.setProperty("width",`${o}px`,"important"),i&&s.setProperty("height",`${i}px`,"important"),a)for(const e in a)s[e]=a[e]}(o,t);let a=!1;if(t.isEnable("copyScrollbar")){const t=[i.get("overflow-x")?.[0],i.get("overflow-y")?.[0]];a=t.includes("scroll")||(t.includes("auto")||t.includes("overlay"))&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)}const c=i.get("text-transform")?.[0],l=Se(i.get("font-family")?.[0]),d=l?e=>{"uppercase"===c?e=e.toUpperCase():"lowercase"===c?e=e.toLowerCase():"capitalize"===c&&(e=e[0].toUpperCase()+e.substring(1)),l.forEach(t=>{let n=s.get(t);n||s.set(t,n=new Set),e.split("").forEach(e=>n.add(e))})}:void 0;return function(e,t,n,o,i){const{ownerWindow:a,svgStyleElement:s,svgStyles:r,currentNodeStyle:c}=o;function l(n){const s=a.getComputedStyle(e,n);let l=s.getPropertyValue("content");if(!l||"none"===l)return;i?.(l),l=l.replace(/(')|(")|(counter\(.+\))/g,"");const d=[xe()],u=Ue(e,n,o);c?.forEach((e,t)=>{u.delete(t)});const f=_e(s,u,o.includeStyleProperties);f.delete("content"),f.delete("-webkit-locale"),"text"===f.get("background-clip")?.[0]&&t.classList.add("______background-clip--text");const p=[`content: '${l}';`];if(f.forEach(([e,t],n)=>{p.push(`${n}: ${e}${t?" !important":""};`)}),1===p.length)return;try{t.className=[t.className,...d].join(" ")}catch(e){return void o.log.warn("Failed to copyPseudoClass",e)}const m=p.join("\n ");let h=r.get(m);h||(h=[],r.set(m,h)),h.push(`.${d[0]}${n}`)}s&&a&&(Te.forEach(l),n&&qe.forEach(l))}(e,o,a,t,d),function(e,t){((e=>"TEXTAREA"===e.tagName)(e)||(e=>"INPUT"===e.tagName)(e)||(e=>"SELECT"===e.tagName)(e))&&t.setAttribute("value",e.value)}(e,o),ce(e)||await Ge(e,o,t,d),await(r?.(o)),o}const c=e.cloneNode(!1);return await Ge(e,c,t),await(r?.(c)),c}function Ne(e){if(e.ownerDocument=void 0,e.ownerWindow=void 0,e.svgStyleElement=void 0,e.svgDefsElement=void 0,e.svgStyles.clear(),e.defaultComputedStyles.clear(),e.sandbox){try{e.sandbox.remove()}catch(t){e.log.warn("Failed to destroyContext",t)}e.sandbox=void 0}e.workers=[],e.fontFamilies.clear(),e.fontCssTexts.clear(),e.requests.clear(),e.tasks=[],e.shadowRoots=[]}function Ie(e,t){const{url:n,requestType:o="text",responseType:i="text",imageDom:a}=t;let s=n;const{timeout:r,acceptOfImage:c,requests:l,fetchFn:d,fetch:{requestInit:u,bypassingCache:f,placeholderImage:p},font:m,workers:h,fontFamilies:b}=e;"image"===o&&(Z||ee)&&e.drawImageCount++;let g=l.get(n);if(!g){f&&f instanceof RegExp&&f.test(s)&&(s+=(/\?/.test(s)?"&":"?")+(new Date).getTime());const t=o.startsWith("font")&&m&&m.minify,y=new Set;t&&o.split(";")[1].split(",").forEach(e=>{b.has(e)&&b.get(e).forEach(e=>y.add(e))});const v=t&&y.size,w={url:s,timeout:r,responseType:v?"arrayBuffer":i,headers:"image"===o?{accept:c}:void 0,...u};g={type:o,resolve:void 0,reject:void 0,response:null},g.response=(async()=>{if(d&&"image"===o){const e=await d(n);if(e)return e}return!Z&&n.startsWith("http")&&h.length?new Promise((e,t)=>{h[l.size&h.length-1].postMessage({rawUrl:n,...w}),g.resolve=e,g.reject=t}):function(e){const{url:t,timeout:n,responseType:o,...i}=e,a=new AbortController,s=n?setTimeout(()=>a.abort(),n):void 0;return fetch(t,{signal:a.signal,...i}).then(e=>{if(!e.ok)throw new Error("Failed fetch, not 2xx response",{cause:e});switch(o){case"arrayBuffer":return e.arrayBuffer();case"dataUrl":return e.blob().then(ye);default:return e.text()}}).finally(()=>clearTimeout(s))}(w)})().catch(t=>{if(l.delete(n),"image"===o&&p)return e.log.warn("Failed to fetch image base64, trying to use placeholder image",s),"string"==typeof p?p:p(a);throw t}),l.set(n,g)}return g.response}async function Pe(e,t,n,o){if(!Be(e))return e;for(const[i,a]of function(e,t){const n=[];return e.replace(Re,(e,o,i)=>(n.push([i,fe(i,t)]),e)),n.filter(([e])=>!ue(e))}(e,t))try{const t=await Ie(n,{url:a,requestType:o?"image":"text",responseType:"dataUrl"});e=e.replace(He(i),`$1${t}$3`)}catch(e){n.log.warn("Failed to fetch css data url",i,e)}return e}function Be(e){return/url\((['"]?)([^'"]+?)\1\)/.test(e)}const Re=/url\((['"]?)([^'"]+?)\1\)/g;function He(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}const Ve=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function We(e,t){const{tasks:n}=t;ne(e)&&((re(e)||ie(e))&&n.push(...function(e,t){if(re(e)){const n=e.currentSrc||e.src;if(!ue(n))return[Ie(t,{url:n,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(t=>{t&&(e.srcset="",e.dataset.originalSrc=n,e.src=t||"")})];(Z||ee)&&t.drawImageCount++}else if(oe(e)&&!ue(e.href.baseVal)){const n=e.href.baseVal;return[Ie(t,{url:n,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(t=>{t&&(e.dataset.originalSrc=n,e.href.baseVal=t||"")})]}return[]}(e,t)),"use"===e.tagName&&n.push(...function(e,t){const{ownerDocument:n,svgDefsElement:o}=t,i=e.getAttribute("href")??e.getAttribute("xlink:href");if(!i)return[];const[a,s]=i.split("#");if(s){const i=`#${s}`,r=t.shadowRoots.reduce((e,t)=>e??t.querySelector(`svg ${i}`),n?.querySelector(`svg ${i}`));if(a&&e.setAttribute("href",i),o?.querySelector(i))return[];if(r)return o?.appendChild(r.cloneNode(!0)),[];if(a)return[Ie(t,{url:a,responseType:"text"}).then(e=>{o?.insertAdjacentHTML("beforeend",e)})]}return[]}(e,t))),ae(e)&&n.push(...function(e,t){return Ve.map(n=>{const o=e.getPropertyValue(n);return o&&"none"!==o?((Z||ee)&&t.drawImageCount++,Pe(o,null,t,!0).then(t=>{t&&o!==t&&e.setProperty(n,t,e.getPropertyPriority(n))})):null}).filter(Boolean)}(e.style,t)),e.childNodes.forEach(e=>{We(e,t)})}async function Ke(e,t){const{ownerDocument:n,svgStyleElement:o,fontFamilies:i,fontCssTexts:a,tasks:s,font:r}=t;if(n&&o&&i.size)if(r&&r.cssText){const e=Ze(r.cssText,t);o.appendChild(n.createTextNode(`${e}\n`))}else{const e=Array.from(n.styleSheets).filter(e=>{try{return"cssRules"in e&&Boolean(e.cssRules.length)}catch(n){return t.log.warn(`Error while reading CSS rules from ${e.href}`,n),!1}}),r=n.implementation.createHTMLDocument(""),c=r.createElement("style");r.head.appendChild(c);const l=c.sheet;await Promise.all(e.flatMap(e=>Array.from(e.cssRules).map(async e=>{if("CSSImportRule"===e.constructor.name){const n=e.href;let o="";try{o=await Ie(t,{url:n,requestType:"text",responseType:"text"})}catch(e){t.log.warn(`Error fetch remote css import from ${n}`,e)}const i=o.replace(Re,(e,t,o)=>e.replace(o,fe(o,n)));for(const e of function(e){if(null==e)return[];const t=[];let n=e.replace(Je,"");for(;;){const e=Qe.exec(n);if(!e)break;t.push(e[0])}n=n.replace(Qe,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=o.exec(n);if(e)i.lastIndex=o.lastIndex;else{if(e=i.exec(n),!e)break;o.lastIndex=i.lastIndex}t.push(e[0])}return t}(i))try{l.insertRule(e,l.cssRules.length)}catch(n){t.log.warn("Error inserting rule from remote css import",{rule:e,error:n})}}}))),l.cssRules.length&&e.push(l);const d=[];e.forEach(e=>{et(e.cssRules,d)}),d.filter(e=>"CSSFontFaceRule"===e.constructor.name&&Be(e.style.getPropertyValue("src"))&&Se(e.style.getPropertyValue("font-family"))?.some(e=>i.has(e))).forEach(e=>{const i=e,r=a.get(i.cssText);r?o.appendChild(n.createTextNode(`${r}\n`)):s.push(Pe(i.cssText,i.parentStyleSheet?i.parentStyleSheet.href:null,t).then(e=>{e=Ze(e,t),a.set(i.cssText,e),o.appendChild(n.createTextNode(`${e}\n`))}))})}}const Je=/(\/\*[\s\S]*?\*\/)/g,Qe=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi,Ye=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Xe=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Ze(e,t){const{font:n}=t,o=n?n?.preferredFormat:void 0;return o?e.replace(Xe,e=>{for(;;){const[t,,n]=Ye.exec(e)||[];if(!n)return"";if(n===o)return`src: ${t};`}}):e}function et(e,t=[]){for(const n of Array.from(e))te(n)?t.push(...et(n.cssRules)):"cssRules"in n?et(n.cssRules,t):t.push(n);return t}const tt=/\bx?link:?href\s*=\s*["'](?!data:)[^"']+["']/i;async function nt(e,t){const n=await Me(e,t);if(ne(n.node)&&oe(n.node)&&!function(e){return tt.test(e.innerHTML)}(n.node))return n.node;const{ownerDocument:o,log:i,tasks:a,svgStyleElement:s,svgDefsElement:r,svgStyles:c,font:l,progress:d,autoDestruct:u,onCloneNode:f,onEmbedNode:p,onCreateForeignObjectSvg:m}=n;i.time("clone node");const h=await De(n.node,n,!0);if(s&&o){let e="";c.forEach((t,n)=>{e+=`${t.join(",\n")} {\n ${n}\n}\n`}),s.appendChild(o.createTextNode(e))}i.timeEnd("clone node"),await(f?.(h)),!1!==l&&ne(h)&&(i.time("embed web font"),await Ke(0,n),i.timeEnd("embed web font")),i.time("embed node"),We(h,n);const b=a.length;let g=0;d?.(g,b),await Promise.all([...Array.from({length:4})].map(async()=>{for(;;){const e=a.pop();if(!e)break;try{await e}catch(e){n.log.warn("Failed to run task",e)}d?.(++g,b)}})),i.timeEnd("embed node"),await(p?.(h));const y=function(e,t){const{width:n,height:o}=t,i=he(n,o,e.ownerDocument),a=i.ownerDocument.createElementNS(i.namespaceURI,"foreignObject");return a.setAttributeNS(null,"x","0%"),a.setAttributeNS(null,"y","0%"),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.append(e),i.appendChild(a),i}(h,n);return r&&y.insertBefore(r,y.children[0]),s&&y.insertBefore(s,y.children[0]),u&&Ne(n),await(m?.(y)),y}async function ot(e,t){const n=await Me(e,t),o=await nt(n),i=be(o,n.isEnable("removeControlCharacter"));n.autoDestruct||(n.svgStyleElement=Ce(n.ownerDocument),n.svgDefsElement=n.ownerDocument?.createElementNS(me,"defs"),n.svgStyles.clear());const a=ve(i,o.ownerDocument);return await async function(e,t){const{log:n,timeout:o,drawImageCount:i,drawImageInterval:a}=t;n.time("image to canvas");const s=await we(e,{timeout:o,onWarn:t.log.warn}),{canvas:r,context2d:c}=function(e,t){const{width:n,height:o,scale:i,backgroundColor:a,maximumCanvasSize:s}=t,r=e.createElement("canvas");r.width=Math.floor(n*i),r.height=Math.floor(o*i),r.style.width=`${n}px`,r.style.height=`${o}px`,s&&(r.width>s||r.height>s)&&(r.width>s&&r.height>s?r.width>r.height?(r.height*=s/r.width,r.width=s):(r.width*=s/r.height,r.height=s):r.width>s?(r.height*=s/r.width,r.width=s):(r.width*=s/r.height,r.height=s));const c=r.getContext("2d");return c&&a&&(c.fillStyle=a,c.fillRect(0,0,r.width,r.height)),{canvas:r,context2d:c}}(e.ownerDocument,t),l=()=>{try{c?.drawImage(s,0,0,r.width,r.height)}catch(e){t.log.warn("Failed to drawImage",e)}};if(l(),t.isEnable("fixSvgXmlDecode"))for(let e=0;e<i;e++)await new Promise(t=>{setTimeout(()=>{c?.clearRect(0,0,r.width,r.height),l(),t()},e+a)});return t.drawImageCount=0,n.timeEnd("image to canvas"),r}(a,n)}async function it(e,t){const n=await Me(e,t),{log:o,quality:i,type:a,dpi:s}=n,r=await ot(n);o.time("canvas to data url");let c=r.toDataURL(a,i);if(["image/png","image/jpeg"].includes(a)&&s&&J&&Q){const[e,t]=c.split(",");let n=0,o=!1;if("image/png"===a){const e=function(e){let t=e.indexOf("AAlwSFlz");return-1===t&&(t=e.indexOf("AAAJcEhZ")),-1===t&&(t=e.indexOf("AAAACXBI")),t}(t);e>=0?(n=4*Math.ceil((e+28)/3),o=!0):n=44}else"image/jpeg"===a&&(n=24);const i=t.substring(0,n),r=t.substring(n),l=window.atob(i),d=new Uint8Array(l.length);for(let e=0;e<d.length;e++)d[e]=l.charCodeAt(e);const u="image/png"===a?V(d,s,o):N(d,s);c=[e,",",window.btoa(String.fromCharCode(...u)),r].join("")}return o.timeEnd("canvas to data url"),c}async function at(e,t){const n=await Me(e,t),{width:o,height:i,ownerDocument:a}=n,s=await it(n),r=he(o,i,a),c=r.ownerDocument.createElementNS(r.namespaceURI,"image");return c.setAttributeNS(null,"href",s),c.setAttributeNS(null,"height","100%"),c.setAttributeNS(null,"width","100%"),r.appendChild(c),be(r,n.isEnable("removeControlCharacter"))}var st=Object.freeze({__proto__:null,createContext:Ee,destroyContext:Ne,domToBlob:async function(e,t){const n=await Me(e,t),{log:o,type:i,quality:a,dpi:s}=n,r=await ot(n);o.time("canvas to blob");const c=await async function(e,t="image/png",n=1){try{return await new Promise((o,i)=>{e.toBlob(e=>{e?o(e):i(new Error("Blob is null"))},t,n)})}catch(o){if(J)return function(e){const[t,n]=e.split(","),o=t.match(/data:(.+);/)?.[1]??void 0,i=window.atob(n),a=i.length,s=new Uint8Array(a);for(let e=0;e<a;e+=1)s[e]=i.charCodeAt(e);return new Blob([s],{type:o})}(e.toDataURL(t,n));throw o}}(r,i,a);if(["image/png","image/jpeg"].includes(i)&&s){const e=await(e=>ge(e,"arrayBuffer"))(c.slice(0,33));let t=new Uint8Array(e);return"image/png"===i?t=V(t,s):"image/jpeg"===i&&(t=N(t,s)),o.timeEnd("canvas to blob"),new Blob([t,c.slice(33)],{type:i})}return o.timeEnd("canvas to blob"),c},domToCanvas:ot,domToDataUrl:it,domToForeignObjectSvg:nt,domToImage:async function(e,t){const n=await Me(e,t),{ownerDocument:o,width:i,height:a,scale:s,type:r}=n,c=ve("image/svg+xml"===r?await at(n):await it(n),o);return c.width=Math.floor(i*s),c.height=Math.floor(a*s),c.style.width=`${i}px`,c.style.height=`${a}px`,c},domToJpeg:async function(e,t){return it(await Me(e,{...t,type:"image/jpeg"}))},domToPixel:async function(e,t){const n=await Me(e,t),o=await ot(n);return o.getContext("2d").getImageData(0,0,o.width,o.height).data},domToPng:async function(e,t){return it(await Me(e,{...t,type:"image/png"}))},domToSvg:at,domToWebp:async function(e,t){return it(await Me(e,{...t,type:"image/webp"}))},loadMedia:we,waitUntilLoad:ke});e.Feedback=q,e.Feedbot=D,e.Locales=a,e.messages=s});
|