diff --git a/build/assets/App-BGAsQ9rL.css b/build/assets/App-BGAsQ9rL.css new file mode 100644 index 0000000..b549034 --- /dev/null +++ b/build/assets/App-BGAsQ9rL.css @@ -0,0 +1 @@ +.helix-dashboard,.helix-page{padding:2rem;max-width:1400px;margin:0 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.helix-page h1{font-size:2rem;margin-bottom:1rem;color:var(--helix-color-10);font-weight:700}.helix-page p{color:var(--helix-color-6);margin-bottom:2rem}.helix-dashboard__header{margin-bottom:3rem;background:linear-gradient(135deg,var(--helix-color-8) 0%,var(--helix-color-10) 100%);color:#fff;padding:3rem 2rem;margin:-2rem 0 3rem -2rem;border-radius:0 0 24px 24px;position:relative;overflow:hidden}.helix-dashboard__header:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url('data:image/svg+xml,');opacity:.3}.helix-dashboard__header h1{font-size:3rem;margin:0 0 .5rem;color:#fff;font-weight:800;position:relative;z-index:1;text-shadow:0 2px 4px rgba(0,0,0,.3)}.helix-dashboard__header p{font-size:1.25rem;color:#ffffffe6;margin:0;position:relative;z-index:1;font-weight:400;line-height:3}.helix-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem}.helix-loading__spinner{width:40px;height:40px;border:4px solid var(--helix-color-2);border-top:4px solid var(--helix-color-7);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.helix-dashboard__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.helix-stats-card{background:var(--helix-color-1);border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;display:flex;align-items:flex-start;gap:1rem;transition:transform .2s ease,box-shadow .2s ease;border:1px solid var(--helix-color-3)}.helix-stats-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px -3px #0000001a,0 4px 6px -2px #0000000d}.helix-stats-card__icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:10px;background:#fffc;box-shadow:0 2px 4px #0000001a}.helix-stats-card__icon svg{width:24px;height:24px}.helix-stats-card__content{flex:1}.helix-stats-card__header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.25rem}.helix-stats-card__count{font-size:2rem;font-weight:700;margin:0;color:var(--helix-color-10);line-height:1}.helix-stats-card__title{font-size:.875rem;color:var(--helix-color-6);margin:0;font-weight:500}.helix-stats-card__trend{display:flex;align-items:center;gap:.25rem;font-size:.75rem;font-weight:600;color:var(--helix-success);background:var(--helix-success-light);padding:.25rem .5rem;border-radius:6px}.helix-trend-icon{width:12px!important;height:12px!important}.helix-dashboard__content{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:1.5rem}.helix-widget{background:var(--helix-color-1);border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;overflow:hidden;border:1px solid var(--helix-color-3);transition:box-shadow .2s ease}.helix-widget:hover{box-shadow:0 10px 25px -3px #0000001a,0 4px 6px -2px #0000000d}.helix-widget__header{padding:1.25rem 1.5rem;border-bottom:1px solid var(--helix-color-2);display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,var(--helix-color-1) 0%,var(--helix-color-2) 100%)}.helix-widget__header h2{margin:0;font-size:1.25rem;color:var(--helix-color-9);flex-grow:1}.helix-widget__link{color:var(--helix-color-8);text-decoration:none;font-size:.9rem}.helix-widget__link:hover{text-decoration:underline}.helix-widget__content{padding:1.5rem}.helix-widget__empty{color:var(--helix-color-6);font-style:italic}.helix-posts-list,.helix-comments-list{list-style:none;padding:0;margin:0}.helix-posts-list__item,.helix-comments-list__item{display:flex;justify-content:space-between;align-items:flex-start;padding:1rem 0;border-bottom:1px solid var(--helix-color-2)}.helix-posts-list__item:last-child,.helix-comments-list__item:last-child{border-bottom:none}.helix-posts-list__title a,.helix-comments-list__author{color:var(--helix-color-9);text-decoration:none;font-weight:500}.helix-posts-list__title a:hover{color:var(--helix-color-8)}.helix-posts-list__date,.helix-comments-list__date{color:var(--helix-color-6);font-size:.9rem;margin:.25rem 0 0}.helix-comments-list__excerpt{color:var(--helix-color-6);margin:.25rem 0;font-size:.9rem}.helix-status{padding:.25rem .5rem;border-radius:.25rem;font-size:.8rem;font-weight:500}.helix-status--publish{background:var(--helix-success-light);color:var(--helix-success)}.helix-status--draft{background:var(--helix-warning-light);color:var(--helix-warning)}.helix-status--approved{background:var(--helix-success-light);color:var(--helix-success)}.helix-status--pending{background:var(--helix-warning-light);color:var(--helix-warning)}.helix-quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.helix-quick-action{display:flex;flex-direction:column;align-items:center;padding:1.25rem 1rem;background:linear-gradient(135deg,var(--helix-color-1) 0%,var(--helix-color-2) 100%);border-radius:10px;text-decoration:none;color:var(--helix-color-9);transition:all .2s ease;border:1px solid var(--helix-color-3);position:relative;overflow:hidden}.helix-quick-action:hover{background:linear-gradient(135deg,var(--helix-color-3) 0%,var(--helix-color-4) 100%);transform:translateY(-2px);box-shadow:0 4px 12px #00000026;color:var(--helix-color-10)}.helix-quick-action__icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:var(--helix-color-1);border-radius:10px;margin-bottom:.75rem;box-shadow:0 2px 4px #0000001a;transition:all .2s ease}.helix-quick-action:hover .helix-quick-action__icon{background:var(--helix-color-8);transform:scale(1.1)}.helix-quick-action:hover .helix-quick-action__icon svg{color:#fff}.helix-quick-action__icon svg{width:20px;height:20px;color:var(--helix-color-6);transition:color .2s ease}.helix-quick-action__text{font-size:.875rem;font-weight:600;text-align:center;line-height:1.2}.helix-news-placeholder{color:var(--helix-color-6)}.helix-news-item h4{margin:0 0 .5rem;color:var(--helix-color-9)}.helix-news-item p{margin:0 0 .5rem;font-size:.9rem}.helix-news-item a{color:var(--helix-color-8);text-decoration:none;font-size:.9rem}.helix-news-item a:hover{text-decoration:underline}:root{--helix-color-1: #fafaf9;--helix-color-2: #f5f5f4;--helix-color-3: #e7e5e4;--helix-color-4: #d6d3d1;--helix-color-5: #a8a29e;--helix-color-6: #78716c;--helix-color-7: #57534e;--helix-color-8: #44403c;--helix-color-9: #292524;--helix-color-10: #1c1917;--helix-success: #059669;--helix-success-light: #d1fae5;--helix-error: #dc2626;--helix-error-light: #fee2e2;--helix-warning: #d97706;--helix-warning-light: #fed7aa;--helix-primary: #2563eb;--helix-primary-light: #dbeafe}.helix-settings-page{max-width:1400px;margin:0 auto;padding:2rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.helix-settings-header{margin-bottom:3rem;background:linear-gradient(135deg,var(--helix-color-8) 0%,var(--helix-color-10) 100%);color:#fff;padding:3rem 2rem;margin:-2rem 0 3rem -2rem;border-radius:0 0 24px 24px;position:relative;overflow:hidden}.helix-settings-header:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url('data:image/svg+xml,');opacity:.3}.helix-settings-header h1{font-size:3rem;font-weight:800;color:#fff;margin:0 0 .5rem;position:relative;z-index:1;text-shadow:0 2px 4px rgba(0,0,0,.3)}.helix-settings-header p{font-size:1.25rem;color:#ffffffe6;margin:0;position:relative;z-index:1;font-weight:400;line-height:3}.helix-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center}.helix-loading p{margin:20px 0 0;font-size:1.1rem;color:var(--helix-color-6)}.helix-spinner{width:24px;height:24px;border:3px solid var(--helix-color-3);border-top:3px solid var(--helix-primary);border-radius:50%;animation:spin 1s linear infinite;display:inline-block}.helix-settings-controls,.helix-settings-footer{display:flex;justify-content:center;margin:30px 0;padding:20px 0;border-top:1px solid var(--helix-color-3)}.helix-settings-footer{border-bottom:1px solid var(--helix-color-3);margin-top:50px}.helix-save-buttons{display:flex;align-items:center;gap:15px}.helix-btn{padding:12px 24px;font-size:14px;font-weight:500;border-radius:8px;border:1px solid transparent;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;gap:8px}.helix-btn:disabled{opacity:.6;cursor:not-allowed}.helix-btn-primary{background:linear-gradient(135deg,var(--helix-color-8) 0%,var(--helix-color-10) 100%);color:#fff;border-color:var(--helix-color-8);box-shadow:0 4px 6px -1px #2563eb33}.helix-btn-primary:hover:not(:disabled){background:linear-gradient(135deg,var(--helix-color-7) 0%,var(--helix-color-9) 100%);border-color:var(--helix-color-7);transform:translateY(-1px);box-shadow:0 8px 15px -3px #2563eb4d}.helix-btn-secondary{background-color:#fff;color:var(--helix-color-9);border-color:var(--helix-color-4)}.helix-btn-secondary:hover:not(:disabled){background-color:var(--helix-color-2);border-color:var(--helix-color-5)}.helix-save-status{color:var(--helix-success);font-weight:500;display:flex;align-items:center;gap:5px}.helix-settings-tabs{margin:30px 0}.helix-tabs-nav{display:flex;border-bottom:2px solid var(--helix-color-3);overflow-x:auto;gap:2px}.helix-tab{display:flex;align-items:center;gap:8px;padding:12px 20px;font-size:14px;font-weight:500;color:var(--helix-color-6);background:none;border:none;border-bottom:3px solid transparent;cursor:pointer;transition:all .2s ease;white-space:nowrap;position:relative}.helix-tab:hover{color:var(--helix-color-8);background-color:var(--helix-color-1)}.helix-tab.active{color:var(--helix-color-8);border-bottom-color:var(--helix-color-8)}.helix-tab-icon{font-size:16px;display:flex;align-items:center;justify-content:center}.helix-tab-icon svg{width:20px;height:20px;transition:color .2s ease}.helix-tab-indicator{color:#f59e0b;font-size:12px;position:absolute;top:5px;right:5px}.helix-settings-content{margin:40px 0}.helix-tab-panel{min-height:400px}.helix-settings-section{background:var(--helix-color-1);border-radius:12px;border:1px solid rgba(226,232,240,.5);overflow:hidden;margin-bottom:30px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;transition:transform .2s ease,box-shadow .2s ease}.helix-settings-section:hover{transform:translateY(-2px);box-shadow:0 10px 25px -3px #0000001a,0 4px 6px -2px #0000000d}.helix-settings-section-header{background:linear-gradient(135deg,var(--helix-color-1) 0%,var(--helix-color-2) 100%);padding:24px;border-bottom:1px solid rgba(37,99,235,.1)}.helix-settings-section-title{font-size:1.5rem;font-weight:600;color:var(--helix-color-10);margin:0 0 8px}.helix-settings-section-description{color:var(--helix-color-6);margin:0;font-size:14px}.helix-settings-section-content{padding:24px}.helix-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.helix-settings-grid .helix-form-field{width:100%}.helix-settings-grid .helix-form-field:last-child:nth-child(odd){grid-column:1 / -1}.helix-settings-subsection .helix-form-field{margin-bottom:16px}.helix-settings-grid .helix-form-field+.helix-form-field{margin-top:0}.helix-settings-subsection{border-top:1px solid var(--helix-color-3);padding-top:24px;margin-top:24px;grid-column:1 / -1}.helix-settings-subsection-header{grid-column:1 / -1;border-top:1px solid var(--helix-color-3);padding-top:24px;margin-top:24px}.helix-settings-subsection h4{font-size:1.1rem;font-weight:600;color:var(--helix-color-9);margin:0 0 20px}.helix-form-field{display:flex;flex-direction:column;gap:8px}.helix-form-label{font-weight:500;color:var(--helix-color-9);font-size:14px}.helix-required{color:var(--helix-error);margin-left:4px}.helix-form-control{display:flex;flex-direction:column}.helix-form-description{font-size:13px;color:var(--helix-color-6);margin:0;line-height:1.4}.helix-form-error{font-size:13px;color:var(--helix-error);margin:0}.helix-text-input,.helix-number-input,.helix-select-input{padding:10px 12px;border:1px solid var(--helix-color-3);border-radius:6px;font-size:14px;transition:border-color .2s ease;background:var(--helix-color-1)}.helix-text-input:focus,.helix-number-input:focus,.helix-select-input:focus{outline:none;border-color:var(--helix-color-8);box-shadow:0 0 0 3px #2563eb1a}.helix-select-input{cursor:pointer}.helix-toggle-field{margin:16px 0}.helix-toggle-wrapper{display:flex;align-items:center;gap:12px}.helix-toggle-label{font-weight:500;color:var(--helix-color-9);font-size:14px;cursor:pointer;-webkit-user-select:none;user-select:none}.helix-toggle-label-disabled{opacity:.5;cursor:not-allowed}.helix-toggle-switch{position:relative;width:48px;height:24px;border-radius:24px;border:none;cursor:pointer;transition:all .2s ease-in-out;flex-shrink:0;outline:none;padding:0;margin:0;display:inline-flex;align-items:center}.helix-toggle-switch:focus{box-shadow:0 0 0 3px var(--helix-color-3);outline:none}.helix-toggle-switch-off{background-color:var(--helix-color-3)}.helix-toggle-switch-off:hover:not(:disabled){background-color:var(--helix-color-4)}.helix-toggle-switch-on{background-color:var(--helix-color-8)}.helix-toggle-switch-on:hover:not(:disabled){background-color:var(--helix-color-9)}.helix-toggle-switch-disabled{opacity:.5;cursor:not-allowed}.helix-toggle-knob{display:inline-block;width:20px;height:20px;background-color:#fff;border-radius:50%;box-shadow:0 2px 4px #0003;transition:transform .2s ease-in-out;transform:translate(2px)}.helix-toggle-knob-on{transform:translate(26px)}.helix-toggle-knob-off{transform:translate(2px)}.helix-notification{background:var(--helix-color-1);border:1px solid var(--helix-color-3);border-radius:8px;padding:16px;margin:20px 0;box-shadow:0 4px 6px -1px #0000001a;opacity:0;transform:translateY(-10px);transition:all .3s ease}.helix-notification.visible{opacity:1;transform:translateY(0)}.helix-notification-success{background-color:var(--helix-success-light)}.helix-notification-error{background-color:var(--helix-error-light)}.helix-notification-warning{background-color:var(--helix-warning-light)}.helix-notification-info{background-color:var(--helix-primary-light)}.helix-notification-content{display:flex;align-items:center;gap:12px}.helix-notification-icon{font-size:18px;flex-shrink:0}.helix-notification-message{flex:1;font-size:14px;color:var(--helix-color-9)}.helix-notification-close{background:none;border:none;font-size:20px;color:var(--helix-color-6);cursor:pointer;padding:0;line-height:1;flex-shrink:0}.helix-notification-close:hover{color:var(--helix-color-9)}@media (max-width: 1024px){.helix-settings-grid{grid-template-columns:1fr;gap:20px}.helix-settings-subsection-header{margin-top:20px;padding-top:20px}}@media (max-width: 768px){.helix-settings-page{padding:15px}.helix-settings-header h1{font-size:2rem}.helix-tabs-nav{flex-direction:column;gap:0}.helix-tab{justify-content:flex-start;border-bottom:1px solid var(--helix-color-3);border-right:none}.helix-tab.active{border-bottom-color:var(--helix-color-3);border-left:3px solid var(--helix-primary);background-color:var(--helix-color-1)}.helix-settings-section-content,.helix-settings-section-header{padding:20px}.helix-settings-grid{grid-template-columns:1fr;gap:20px}.helix-settings-subsection-header{margin-top:20px;padding-top:20px}.helix-save-buttons{flex-direction:column;width:100%}.helix-btn{width:100%;justify-content:center}}.helix-post-row{transition:background-color .2s ease}.helix-post-row:hover{background-color:#f8f9fa}.helix-post-actions{position:relative}.helix-post-quick-actions{display:flex;gap:8px;margin-top:6px;flex-wrap:wrap}.helix-post-actions__dropdown{position:absolute;top:100%;right:0;z-index:1000;background:#fff;border:1px solid #e1e5e9;border-radius:6px;box-shadow:0 4px 12px #00000026;min-width:200px;padding:8px 0;margin-top:4px;z-index:9999}.helix-dropdown-item{display:block;width:100%;padding:8px 16px;border:none;background:none;text-align:left;font-size:14px;color:#1a1a1a;cursor:pointer;transition:background-color .2s ease}.helix-dropdown-item:hover{background-color:#f0f0f1}.helix-dropdown-item:disabled{color:#8c8f94;cursor:not-allowed}.helix-dropdown-item:disabled:hover{background-color:transparent}.helix-dropdown-item--danger{color:#d63638}.helix-dropdown-item--danger:hover{background-color:#fef7f1}.helix-dropdown-divider{margin:8px 0;border:none;border-top:1px solid #e1e5e9}@media (max-width: 768px){.helix-post-actions__dropdown{right:auto;left:0;min-width:160px}}@media (max-width: 480px){.helix-post-actions__dropdown{min-width:140px}.helix-dropdown-item{padding:6px 12px;font-size:13px}}.helix-posts-list{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;overflow:hidden}.helix-posts-table-container{overflow-x:auto}.helix-posts-table{width:100%;border-collapse:collapse;font-size:14px}.helix-posts-table th{background-color:#f8f9fa;padding:16px 12px;text-align:left;font-weight:600;color:#1a1a1a;border-bottom:2px solid #e1e5e9;white-space:nowrap}.helix-posts-table td{padding:16px 12px;border-bottom:1px solid #f0f0f1;vertical-align:top}.helix-posts-table tbody tr:hover{background-color:#f8f9fa}.helix-posts-table__checkbox{width:40px;text-align:center}.helix-posts-table__checkbox input[type=checkbox]{width:18px;height:18px;cursor:pointer}.helix-posts-table__title{min-width:300px}.helix-posts-table__author{min-width:120px}.helix-posts-table__categories,.helix-posts-table__tags{min-width:150px}.helix-posts-table__status,.helix-posts-table__date{min-width:100px}.helix-posts-table__actions{width:80px;text-align:center}.helix-post-title__text{margin:0 0 8px;font-size:16px;font-weight:600}.helix-post-title__text a{color:#007cba;text-decoration:none}.helix-post-title__text a:hover{color:#005a87;text-decoration:underline}.helix-post-title__excerpt{margin:0;font-size:13px;color:#646970;line-height:1.4}.helix-status-badge{padding:4px 8px;border-radius:12px;font-size:12px;font-weight:500;text-transform:capitalize}.helix-status-badge--publish{background-color:#d1e7dd;color:#0f5132}.helix-status-badge--draft{background-color:#fff3cd;color:#856404}.helix-status-badge--private{background-color:#f8d7da;color:#721c24}.helix-status-badge--pending{background-color:#cce5ff;color:#004085}.helix-status-badge--future{background-color:#e2e3e5;color:#383d41}.helix-category-tag,.helix-tag{display:inline-block;padding:2px 8px;margin:2px 4px 2px 0;border-radius:12px;font-size:11px;font-weight:500;background-color:#f0f0f1;color:#50575e}.helix-category-tag{background-color:#e7f3ff;color:#007cba}.helix-pagination{display:flex;justify-content:space-between;align-items:center;padding:20px;background-color:#f8f9fa;border-top:1px solid #e1e5e9}.helix-pagination__info{color:#646970;font-size:14px}.helix-pagination__controls{display:flex;align-items:center;gap:16px}.helix-pagination__current{font-weight:500;color:#1a1a1a}@media (max-width: 1024px){.helix-posts-table__categories,.helix-posts-table__tags{display:none}}@media (max-width: 768px){.helix-posts-table__author{display:none}.helix-posts-table__title{min-width:200px}.helix-pagination{flex-direction:column;gap:16px;text-align:center}}@media (max-width: 480px){.helix-posts-table th,.helix-posts-table td{padding:12px 8px;font-size:13px}.helix-posts-table__date{display:none}.helix-post-title__text{font-size:14px}.helix-post-title__excerpt{font-size:12px}}.helix-post-filters{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;padding:24px;margin-bottom:24px}.helix-post-filters__row{display:flex;flex-direction:column;gap:20px;margin-bottom:20px}.helix-post-filters__search{width:100%;max-width:400px;display:flex;flex-direction:column;gap:8px}.helix-post-filters__controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;align-items:center}.helix-post-filters__actions{display:flex;gap:12px;align-items:center;justify-content:flex-start}.helix-filter-group{display:flex;flex-direction:column;gap:8px}.helix-filter-label{font-size:14px;font-weight:500;color:#1a1a1a;margin:0}.helix-input,.helix-select{padding:10px 12px;border:1px solid #c3c4c7;border-radius:4px;font-size:14px;transition:border-color .2s ease,box-shadow .2s ease;width:100%}.helix-input:focus,.helix-select:focus{outline:none;border-color:#007cba;box-shadow:0 0 0 1px #007cba}.helix-input::placeholder{color:#8c8f94}.helix-select{background-color:#fff;cursor:pointer;min-width:140px;height:42px}.helix-select option{padding:8px}@media (max-width: 768px){.helix-post-filters{padding:20px}.helix-post-filters__row{gap:16px}.helix-post-filters__search{max-width:100%}.helix-post-filters__controls,.helix-post-filters__actions{justify-content:stretch}.helix-select{flex:1;min-width:auto}}@media (max-width: 480px){.helix-post-filters{padding:16px}.helix-post-filters__controls{flex-direction:column;gap:12px}.helix-post-filters__actions{flex-direction:column;gap:8px}.helix-button{width:100%;justify-content:center}}.helix-page{max-width:1400px;margin:0 auto;padding:20px}.helix-page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;padding-bottom:20px;border-bottom:2px solid #e1e5e9}.helix-page-header h1{margin:0;font-size:2rem;font-weight:600;color:#1a1a1a}.helix-page-actions{display:flex;gap:12px}.helix-button{padding:10px 20px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;text-decoration:none;display:inline-flex;align-items:center;gap:8px}.helix-button--primary{background-color:#007cba;color:#fff}.helix-button--primary:hover{background-color:#005a87;transform:translateY(-1px)}.helix-button--secondary{background-color:#f0f0f1;color:#1a1a1a;border:1px solid #c3c4c7}.helix-button--secondary:hover{background-color:#dcdcde;border-color:#8c8f94}.helix-button--icon{padding:8px;min-width:36px;justify-content:center;background-color:transparent;color:#50575e}.helix-button--small{padding:6px 12px;font-size:12px;min-height:28px}.helix-button--icon:hover{background-color:#f0f0f1;color:#1a1a1a}.helix-button:disabled{opacity:.5;cursor:not-allowed;transform:none}.helix-error{text-align:center;padding:40px 20px;background-color:#fef7f1;border:1px solid #f0b849;border-radius:8px;margin:20px 0}.helix-error h2{color:#d63638;margin-bottom:16px}.helix-error p{color:#50575e;margin-bottom:20px}.helix-loading{text-align:center;padding:60px 20px}.helix-loading-spinner{width:40px;height:40px;border:4px solid #f0f0f1;border-top:4px solid #007cba;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 20px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.helix-empty-state{text-align:center;padding:60px 20px;color:#50575e}.helix-empty-state h3{margin-bottom:12px;font-size:1.5rem;color:#1a1a1a}@media (max-width: 768px){.helix-page{padding:15px}.helix-page-header{flex-direction:column;gap:20px;align-items:flex-start}.helix-page-header h1{font-size:1.75rem}.helix-page-actions{width:100%;justify-content:stretch}.helix-button{flex:1;justify-content:center}}@media (max-width: 480px){.helix-page{padding:10px}.helix-page-header h1{font-size:1.5rem}} diff --git a/build/assets/App-fm8bB5KR.css b/build/assets/App-fm8bB5KR.css deleted file mode 100644 index 1454058..0000000 --- a/build/assets/App-fm8bB5KR.css +++ /dev/null @@ -1 +0,0 @@ -.helix-dashboard,.helix-page{padding:2rem;max-width:1400px;margin:0 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.helix-page h1{font-size:2rem;margin-bottom:1rem;color:var(--helix-color-10);font-weight:700}.helix-page p{color:var(--helix-color-6);margin-bottom:2rem}.helix-dashboard__header{margin-bottom:3rem;background:linear-gradient(135deg,var(--helix-color-8) 0%,var(--helix-color-10) 100%);color:#fff;padding:3rem 2rem;margin:-2rem 0 3rem -2rem;border-radius:0 0 24px 24px;position:relative;overflow:hidden}.helix-dashboard__header:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url('data:image/svg+xml,');opacity:.3}.helix-dashboard__header h1{font-size:3rem;margin:0 0 .5rem;color:#fff;font-weight:800;position:relative;z-index:1;text-shadow:0 2px 4px rgba(0,0,0,.3)}.helix-dashboard__header p{font-size:1.25rem;color:#ffffffe6;margin:0;position:relative;z-index:1;font-weight:400;line-height:3}.helix-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem}.helix-loading__spinner{width:40px;height:40px;border:4px solid var(--helix-color-2);border-top:4px solid var(--helix-color-7);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.helix-dashboard__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.helix-stats-card{background:var(--helix-color-1);border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;display:flex;align-items:flex-start;gap:1rem;transition:transform .2s ease,box-shadow .2s ease;border:1px solid var(--helix-color-3)}.helix-stats-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px -3px #0000001a,0 4px 6px -2px #0000000d}.helix-stats-card__icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:10px;background:#fffc;box-shadow:0 2px 4px #0000001a}.helix-stats-card__icon svg{width:24px;height:24px}.helix-stats-card__content{flex:1}.helix-stats-card__header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.25rem}.helix-stats-card__count{font-size:2rem;font-weight:700;margin:0;color:var(--helix-color-10);line-height:1}.helix-stats-card__title{font-size:.875rem;color:var(--helix-color-6);margin:0;font-weight:500}.helix-stats-card__trend{display:flex;align-items:center;gap:.25rem;font-size:.75rem;font-weight:600;color:var(--helix-success);background:var(--helix-success-light);padding:.25rem .5rem;border-radius:6px}.helix-trend-icon{width:12px!important;height:12px!important}.helix-dashboard__content{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:1.5rem}.helix-widget{background:var(--helix-color-1);border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;overflow:hidden;border:1px solid var(--helix-color-3);transition:box-shadow .2s ease}.helix-widget:hover{box-shadow:0 10px 25px -3px #0000001a,0 4px 6px -2px #0000000d}.helix-widget__header{padding:1.25rem 1.5rem;border-bottom:1px solid var(--helix-color-2);display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,var(--helix-color-1) 0%,var(--helix-color-2) 100%)}.helix-widget__header h2{margin:0;font-size:1.25rem;color:var(--helix-color-9);flex-grow:1}.helix-widget__link{color:var(--helix-color-8);text-decoration:none;font-size:.9rem}.helix-widget__link:hover{text-decoration:underline}.helix-widget__content{padding:1.5rem}.helix-widget__empty{color:var(--helix-color-6);font-style:italic}.helix-posts-list,.helix-comments-list{list-style:none;padding:0;margin:0}.helix-posts-list__item,.helix-comments-list__item{display:flex;justify-content:space-between;align-items:flex-start;padding:1rem 0;border-bottom:1px solid var(--helix-color-2)}.helix-posts-list__item:last-child,.helix-comments-list__item:last-child{border-bottom:none}.helix-posts-list__title a,.helix-comments-list__author{color:var(--helix-color-9);text-decoration:none;font-weight:500}.helix-posts-list__title a:hover{color:var(--helix-color-8)}.helix-posts-list__date,.helix-comments-list__date{color:var(--helix-color-6);font-size:.9rem;margin:.25rem 0 0}.helix-comments-list__excerpt{color:var(--helix-color-6);margin:.25rem 0;font-size:.9rem}.helix-status{padding:.25rem .5rem;border-radius:.25rem;font-size:.8rem;font-weight:500}.helix-status--publish{background:var(--helix-success-light);color:var(--helix-success)}.helix-status--draft{background:var(--helix-warning-light);color:var(--helix-warning)}.helix-status--approved{background:var(--helix-success-light);color:var(--helix-success)}.helix-status--pending{background:var(--helix-warning-light);color:var(--helix-warning)}.helix-quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.helix-quick-action{display:flex;flex-direction:column;align-items:center;padding:1.25rem 1rem;background:linear-gradient(135deg,var(--helix-color-1) 0%,var(--helix-color-2) 100%);border-radius:10px;text-decoration:none;color:var(--helix-color-9);transition:all .2s ease;border:1px solid var(--helix-color-3);position:relative;overflow:hidden}.helix-quick-action:hover{background:linear-gradient(135deg,var(--helix-color-3) 0%,var(--helix-color-4) 100%);transform:translateY(-2px);box-shadow:0 4px 12px #00000026;color:var(--helix-color-10)}.helix-quick-action__icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:var(--helix-color-1);border-radius:10px;margin-bottom:.75rem;box-shadow:0 2px 4px #0000001a;transition:all .2s ease}.helix-quick-action:hover .helix-quick-action__icon{background:var(--helix-color-8);transform:scale(1.1)}.helix-quick-action:hover .helix-quick-action__icon svg{color:#fff}.helix-quick-action__icon svg{width:20px;height:20px;color:var(--helix-color-6);transition:color .2s ease}.helix-quick-action__text{font-size:.875rem;font-weight:600;text-align:center;line-height:1.2}.helix-news-placeholder{color:var(--helix-color-6)}.helix-news-item h4{margin:0 0 .5rem;color:var(--helix-color-9)}.helix-news-item p{margin:0 0 .5rem;font-size:.9rem}.helix-news-item a{color:var(--helix-color-8);text-decoration:none;font-size:.9rem}.helix-news-item a:hover{text-decoration:underline}:root{--helix-color-1: #fafaf9;--helix-color-2: #f5f5f4;--helix-color-3: #e7e5e4;--helix-color-4: #d6d3d1;--helix-color-5: #a8a29e;--helix-color-6: #78716c;--helix-color-7: #57534e;--helix-color-8: #44403c;--helix-color-9: #292524;--helix-color-10: #1c1917;--helix-success: #059669;--helix-success-light: #d1fae5;--helix-error: #dc2626;--helix-error-light: #fee2e2;--helix-warning: #d97706;--helix-warning-light: #fed7aa;--helix-primary: #2563eb;--helix-primary-light: #dbeafe}.helix-settings-page{max-width:1400px;margin:0 auto;padding:2rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.helix-settings-header{margin-bottom:3rem;background:linear-gradient(135deg,var(--helix-color-8) 0%,var(--helix-color-10) 100%);color:#fff;padding:3rem 2rem;margin:-2rem 0 3rem -2rem;border-radius:0 0 24px 24px;position:relative;overflow:hidden}.helix-settings-header:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url('data:image/svg+xml,');opacity:.3}.helix-settings-header h1{font-size:3rem;font-weight:800;color:#fff;margin:0 0 .5rem;position:relative;z-index:1;text-shadow:0 2px 4px rgba(0,0,0,.3)}.helix-settings-header p{font-size:1.25rem;color:#ffffffe6;margin:0;position:relative;z-index:1;font-weight:400;line-height:3}.helix-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center}.helix-loading p{margin:20px 0 0;font-size:1.1rem;color:var(--helix-color-6)}.helix-spinner{width:24px;height:24px;border:3px solid var(--helix-color-3);border-top:3px solid var(--helix-primary);border-radius:50%;animation:spin 1s linear infinite;display:inline-block}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.helix-settings-controls,.helix-settings-footer{display:flex;justify-content:center;margin:30px 0;padding:20px 0;border-top:1px solid var(--helix-color-3)}.helix-settings-footer{border-bottom:1px solid var(--helix-color-3);margin-top:50px}.helix-save-buttons{display:flex;align-items:center;gap:15px}.helix-btn{padding:12px 24px;font-size:14px;font-weight:500;border-radius:8px;border:1px solid transparent;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;gap:8px}.helix-btn:disabled{opacity:.6;cursor:not-allowed}.helix-btn-primary{background:linear-gradient(135deg,var(--helix-color-8) 0%,var(--helix-color-10) 100%);color:#fff;border-color:var(--helix-color-8);box-shadow:0 4px 6px -1px #2563eb33}.helix-btn-primary:hover:not(:disabled){background:linear-gradient(135deg,var(--helix-color-7) 0%,var(--helix-color-9) 100%);border-color:var(--helix-color-7);transform:translateY(-1px);box-shadow:0 8px 15px -3px #2563eb4d}.helix-btn-secondary{background-color:#fff;color:var(--helix-color-9);border-color:var(--helix-color-4)}.helix-btn-secondary:hover:not(:disabled){background-color:var(--helix-color-2);border-color:var(--helix-color-5)}.helix-save-status{color:var(--helix-success);font-weight:500;display:flex;align-items:center;gap:5px}.helix-settings-tabs{margin:30px 0}.helix-tabs-nav{display:flex;border-bottom:2px solid var(--helix-color-3);overflow-x:auto;gap:2px}.helix-tab{display:flex;align-items:center;gap:8px;padding:12px 20px;font-size:14px;font-weight:500;color:var(--helix-color-6);background:none;border:none;border-bottom:3px solid transparent;cursor:pointer;transition:all .2s ease;white-space:nowrap;position:relative}.helix-tab:hover{color:var(--helix-color-8);background-color:var(--helix-color-1)}.helix-tab.active{color:var(--helix-color-8);border-bottom-color:var(--helix-color-8)}.helix-tab-icon{font-size:16px;display:flex;align-items:center;justify-content:center}.helix-tab-icon svg{width:20px;height:20px;transition:color .2s ease}.helix-tab-indicator{color:#f59e0b;font-size:12px;position:absolute;top:5px;right:5px}.helix-settings-content{margin:40px 0}.helix-tab-panel{min-height:400px}.helix-settings-section{background:var(--helix-color-1);border-radius:12px;border:1px solid rgba(226,232,240,.5);overflow:hidden;margin-bottom:30px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;transition:transform .2s ease,box-shadow .2s ease}.helix-settings-section:hover{transform:translateY(-2px);box-shadow:0 10px 25px -3px #0000001a,0 4px 6px -2px #0000000d}.helix-settings-section-header{background:linear-gradient(135deg,var(--helix-color-1) 0%,var(--helix-color-2) 100%);padding:24px;border-bottom:1px solid rgba(37,99,235,.1)}.helix-settings-section-title{font-size:1.5rem;font-weight:600;color:var(--helix-color-10);margin:0 0 8px}.helix-settings-section-description{color:var(--helix-color-6);margin:0;font-size:14px}.helix-settings-section-content{padding:24px}.helix-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.helix-settings-grid .helix-form-field{width:100%}.helix-settings-grid .helix-form-field:last-child:nth-child(odd){grid-column:1 / -1}.helix-settings-subsection .helix-form-field{margin-bottom:16px}.helix-settings-grid .helix-form-field+.helix-form-field{margin-top:0}.helix-settings-subsection{border-top:1px solid var(--helix-color-3);padding-top:24px;margin-top:24px;grid-column:1 / -1}.helix-settings-subsection-header{grid-column:1 / -1;border-top:1px solid var(--helix-color-3);padding-top:24px;margin-top:24px}.helix-settings-subsection h4{font-size:1.1rem;font-weight:600;color:var(--helix-color-9);margin:0 0 20px}.helix-form-field{display:flex;flex-direction:column;gap:8px}.helix-form-label{font-weight:500;color:var(--helix-color-9);font-size:14px}.helix-required{color:var(--helix-error);margin-left:4px}.helix-form-control{display:flex;flex-direction:column}.helix-form-description{font-size:13px;color:var(--helix-color-6);margin:0;line-height:1.4}.helix-form-error{font-size:13px;color:var(--helix-error);margin:0}.helix-text-input,.helix-number-input,.helix-select-input{padding:10px 12px;border:1px solid var(--helix-color-3);border-radius:6px;font-size:14px;transition:border-color .2s ease;background:var(--helix-color-1)}.helix-text-input:focus,.helix-number-input:focus,.helix-select-input:focus{outline:none;border-color:var(--helix-color-8);box-shadow:0 0 0 3px #2563eb1a}.helix-select-input{cursor:pointer}.helix-toggle-field{margin:16px 0}.helix-toggle-wrapper{display:flex;align-items:center;gap:12px}.helix-toggle-label{font-weight:500;color:var(--helix-color-9);font-size:14px;cursor:pointer;-webkit-user-select:none;user-select:none}.helix-toggle-label-disabled{opacity:.5;cursor:not-allowed}.helix-toggle-switch{position:relative;width:48px;height:24px;border-radius:24px;border:none;cursor:pointer;transition:all .2s ease-in-out;flex-shrink:0;outline:none;padding:0;margin:0;display:inline-flex;align-items:center}.helix-toggle-switch:focus{box-shadow:0 0 0 3px var(--helix-color-3);outline:none}.helix-toggle-switch-off{background-color:var(--helix-color-3)}.helix-toggle-switch-off:hover:not(:disabled){background-color:var(--helix-color-4)}.helix-toggle-switch-on{background-color:var(--helix-color-8)}.helix-toggle-switch-on:hover:not(:disabled){background-color:var(--helix-color-9)}.helix-toggle-switch-disabled{opacity:.5;cursor:not-allowed}.helix-toggle-knob{display:inline-block;width:20px;height:20px;background-color:#fff;border-radius:50%;box-shadow:0 2px 4px #0003;transition:transform .2s ease-in-out;transform:translate(2px)}.helix-toggle-knob-on{transform:translate(26px)}.helix-toggle-knob-off{transform:translate(2px)}.helix-notification{background:var(--helix-color-1);border:1px solid var(--helix-color-3);border-radius:8px;padding:16px;margin:20px 0;box-shadow:0 4px 6px -1px #0000001a;opacity:0;transform:translateY(-10px);transition:all .3s ease}.helix-notification.visible{opacity:1;transform:translateY(0)}.helix-notification-success{background-color:var(--helix-success-light)}.helix-notification-error{background-color:var(--helix-error-light)}.helix-notification-warning{background-color:var(--helix-warning-light)}.helix-notification-info{background-color:var(--helix-primary-light)}.helix-notification-content{display:flex;align-items:center;gap:12px}.helix-notification-icon{font-size:18px;flex-shrink:0}.helix-notification-message{flex:1;font-size:14px;color:var(--helix-color-9)}.helix-notification-close{background:none;border:none;font-size:20px;color:var(--helix-color-6);cursor:pointer;padding:0;line-height:1;flex-shrink:0}.helix-notification-close:hover{color:var(--helix-color-9)}@media (max-width: 1024px){.helix-settings-grid{grid-template-columns:1fr;gap:20px}.helix-settings-subsection-header{margin-top:20px;padding-top:20px}}@media (max-width: 768px){.helix-settings-page{padding:15px}.helix-settings-header h1{font-size:2rem}.helix-tabs-nav{flex-direction:column;gap:0}.helix-tab{justify-content:flex-start;border-bottom:1px solid var(--helix-color-3);border-right:none}.helix-tab.active{border-bottom-color:var(--helix-color-3);border-left:3px solid var(--helix-primary);background-color:var(--helix-color-1)}.helix-settings-section-content,.helix-settings-section-header{padding:20px}.helix-settings-grid{grid-template-columns:1fr;gap:20px}.helix-settings-subsection-header{margin-top:20px;padding-top:20px}.helix-save-buttons{flex-direction:column;width:100%}.helix-btn{width:100%;justify-content:center}} diff --git a/build/index.js b/build/index.js index c2917ce..ee94179 100644 --- a/build/index.js +++ b/build/index.js @@ -1,4 +1,4 @@ -function wp(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Sp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tc={exports:{}},wi={},Pc={exports:{}},B={};/** +function wp(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Sp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jc={exports:{}},wi={},Pc={exports:{}},b={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function wp(e,t){for(var n=0;n>>1,pe=j[oe];if(0>>1;oel(so,F))enl(dl,so)?(j[oe]=dl,j[en]=F,oe=en):(j[oe]=so,j[qt]=F,oe=qt);else if(enl(dl,F))j[oe]=dl,j[en]=F,oe=en;else break e}}return R}function l(j,R){var F=j.sortIndex-R.sortIndex;return F!==0?F:j.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],g=1,m=null,h=3,w=!1,v=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(j){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=j)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function x(j){if(S=!1,y(j),!v)if(n(a)!==null)v=!0,W(E);else{var R=n(u);R!==null&&we(x,R.startTime-j)}}function E(j,R){v=!1,S&&(S=!1,d($),$=-1),w=!0;var F=h;try{for(y(R),m=n(a);m!==null&&(!(m.expirationTime>R)||j&&!D());){var oe=m.callback;if(typeof oe=="function"){m.callback=null,h=m.priorityLevel;var pe=oe(m.expirationTime<=R);R=e.unstable_now(),typeof pe=="function"?m.callback=pe:m===n(a)&&r(a),y(R)}else r(a);m=n(a)}if(m!==null)var fl=!0;else{var qt=n(u);qt!==null&&we(x,qt.startTime-R),fl=!1}return fl}finally{m=null,h=F,w=!1}}var k=!1,_=null,$=-1,M=5,A=-1;function D(){return!(e.unstable_now()-Aj||125oe?(j.sortIndex=F,t(u,j),n(a)===null&&j===n(u)&&(S?(d($),$=-1):S=!0,we(x,F-oe))):(j.sortIndex=pe,t(a,j),v||w||(v=!0,W(E))),j},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(j){var R=h;return function(){var F=h;h=R;try{return j.apply(this,arguments)}finally{h=F}}}})(Dc);Fc.exports=Dc;var bp=Fc.exports;/** + */(function(e){function t(A,I){var F=A.length;A.push(I);e:for(;0>>1,pe=A[oe];if(0>>1;oel(so,F))enl(dl,so)?(A[oe]=dl,A[en]=F,oe=en):(A[oe]=so,A[Jt]=F,oe=Jt);else if(enl(dl,F))A[oe]=dl,A[en]=F,oe=en;else break e}}return I}function l(A,I){var F=A.sortIndex-I.sortIndex;return F!==0?F:A.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],c=[],m=1,g=null,y=3,S=!1,v=!1,k=!1,j=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(A){for(var I=n(c);I!==null;){if(I.callback===null)r(c);else if(I.startTime<=A)r(c),I.sortIndex=I.expirationTime,t(a,I);else break;I=n(c)}}function x(A){if(k=!1,h(A),!v)if(n(a)!==null)v=!0,U(E);else{var I=n(c);I!==null&&we(x,I.startTime-A)}}function E(A,I){v=!1,k&&(k=!1,p(N),N=-1),S=!0;var F=y;try{for(h(I),g=n(a);g!==null&&(!(g.expirationTime>I)||A&&!D());){var oe=g.callback;if(typeof oe=="function"){g.callback=null,y=g.priorityLevel;var pe=oe(g.expirationTime<=I);I=e.unstable_now(),typeof pe=="function"?g.callback=pe:g===n(a)&&r(a),h(I)}else r(a);g=n(a)}if(g!==null)var fl=!0;else{var Jt=n(c);Jt!==null&&we(x,Jt.startTime-I),fl=!1}return fl}finally{g=null,y=F,S=!1}}var w=!1,C=null,N=-1,L=5,O=-1;function D(){return!(e.unstable_now()-OA||125oe?(A.sortIndex=F,t(c,A),n(a)===null&&A===n(c)&&(k?(p(N),N=-1):k=!0,we(x,F-oe))):(A.sortIndex=pe,t(a,A),v||S||(v=!0,U(E))),A},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(A){var I=y;return function(){var F=y;y=I;try{return A.apply(this,arguments)}finally{y=F}}}})(Fc);Mc.exports=Fc;var Vp=Mc.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function wp(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=Object.prototype.hasOwnProperty,Qp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ga={},Xa={};function Kp(e){return Do.call(Xa,e)?!0:Do.call(Ga,e)?!1:Qp.test(e)?Xa[e]=!0:(Ga[e]=!0,!1)}function Yp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Gp(e,t,n,r){if(t===null||typeof t>"u"||Yp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function je(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var bs=/[\-:]([a-z])/g;function Hs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(bs,Hs);xe[t]=new je(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(bs,Hs);xe[t]=new je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(bs,Hs);xe[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qs(e,t,n,r){var l=xe.hasOwnProperty(t)?xe[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fo=Object.prototype.hasOwnProperty,Qp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ga={},Xa={};function Kp(e){return Fo.call(Xa,e)?!0:Fo.call(Ga,e)?!1:Qp.test(e)?Xa[e]=!0:(Ga[e]=!0,!1)}function Yp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Gp(e,t,n,r){if(t===null||typeof t>"u"||Yp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Te(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Te(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Te(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Te(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Te(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new Te(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Te(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Te(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Te(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Te(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vs=/[\-:]([a-z])/g;function Hs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Vs,Hs);xe[t]=new Te(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Vs,Hs);xe[t]=new Te(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Vs,Hs);xe[t]=new Te(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Te(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Te("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Te(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qs(e,t,n,r){var l=xe.hasOwnProperty(t)?xe[t]:null;(l!==null?l.type!==0:r||!(2s||l[o]!==i[s]){var a=` -`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{co=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function Xp(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=fo(e.type,!1),e;case 11:return e=fo(e.type.render,!1),e;case 1:return e=fo(e.type,!0),e;default:return""}}function Vo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nn:return"Fragment";case Pn:return"Portal";case Bo:return"Profiler";case Ks:return"StrictMode";case Uo:return"Suspense";case Wo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wc:return(e.displayName||"Context")+".Consumer";case Uc:return(e._context.displayName||"Context")+".Provider";case Ys:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gs:return t=e.displayName||null,t!==null?t:Vo(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return Vo(e(t))}catch{}}return null}function Zp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Vo(t);case 8:return t===Ks?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jp(e){var t=bc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ml(e){e._valueTracker||(e._valueTracker=Jp(e))}function Hc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bo(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ja(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qc(e,t){t=t.checked,t!=null&&Qs(e,"checked",t,!1)}function Ho(e,t){Qc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qo(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Qo(e,t,n){(t!=="number"||Yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xr=Array.isArray;function Dn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=gl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Er={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qp=["Webkit","ms","Moz","O"];Object.keys(Er).forEach(function(e){qp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Er[t]=Er[e]})});function Xc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Er.hasOwnProperty(e)&&Er[e]?(""+t).trim():t+"px"}function Zc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Xc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var eh=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Go(e,t){if(t){if(eh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function Xo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zo=null;function Xs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jo=null,Bn=null,Un=null;function nu(e){if(e=il(e)){if(typeof Jo!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Ei(t),Jo(e.stateNode,e.type,t))}}function Jc(e){Bn?Un?Un.push(e):Un=[e]:Bn=e}function qc(){if(Bn){var e=Bn,t=Un;if(Un=Bn=null,nu(e),t)for(e=0;e>>=0,e===0?32:31-(fh(e)/dh|0)|0}var yl=64,vl=4194304;function wr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=wr(s):(i&=o,i!==0&&(r=wr(i)))}else o=n&~l,o!==0?r=wr(o):i!==0&&(r=wr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function rl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ot(t),e[t]=n}function gh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Pr),fu=" ",du=!1;function wf(e,t){switch(e){case"keyup":return bh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function Qh(e,t){switch(e){case"compositionend":return Sf(t);case"keypress":return t.which!==32?null:(du=!0,fu);case"textInput":return e=t.data,e===fu&&du?null:e;default:return null}}function Kh(e,t){if(jn)return e==="compositionend"||!la&&wf(e,t)?(e=vf(),Ll=ta=It=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gu(n)}}function Ef(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ef(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(){for(var e=window,t=Yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yl(e.document)}return t}function ia(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function nm(e){var t=Tf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ef(n.ownerDocument.documentElement,n)){if(r!==null&&ia(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=yu(n,i);var o=yu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,$n=null,ls=null,jr=null,is=!1;function vu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;is||$n==null||$n!==Yl(r)||(r=$n,"selectionStart"in r&&ia(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Wr(jr,r)||(jr=r,r=ti(ls,"onSelect"),0An||(e.current=fs[An],fs[An]=null,An--)}function G(e,t){An++,fs[An]=e.current,e.current=t}var Yt={},Ee=Zt(Yt),Oe=Zt(!1),pn=Yt;function Yn(e,t){var n=e.type.contextTypes;if(!n)return Yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ae(e){return e=e.childContextTypes,e!=null}function ri(){Z(Oe),Z(Ee)}function Eu(e,t,n){if(Ee.current!==Yt)throw Error(P(168));G(Ee,t),G(Oe,n)}function Lf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(P(108,Zp(e)||"Unknown",l));return ne({},n,r)}function li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,pn=Ee.current,G(Ee,e),G(Oe,Oe.current),!0}function Tu(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=Lf(e,t,pn),r.__reactInternalMemoizedMergedChildContext=e,Z(Oe),Z(Ee),G(Ee,e)):Z(Oe),G(Oe,n)}var wt=null,Ti=!1,To=!1;function If(e){wt===null?wt=[e]:wt.push(e)}function hm(e){Ti=!0,If(e)}function Jt(){if(!To&&wt!==null){To=!0;var e=0,t=K;try{var n=wt;for(K=1;e>=o,l-=o,kt=1<<32-ot(t)+l|n<$?(M=_,_=null):M=_.sibling;var A=h(d,_,y[$],x);if(A===null){_===null&&(_=M);break}e&&_&&A.alternate===null&&t(d,_),c=i(A,c,$),k===null?E=A:k.sibling=A,k=A,_=M}if($===y.length)return n(d,_),q&&nn(d,$),E;if(_===null){for(;$$?(M=_,_=null):M=_.sibling;var D=h(d,_,A.value,x);if(D===null){_===null&&(_=M);break}e&&_&&D.alternate===null&&t(d,_),c=i(D,c,$),k===null?E=D:k.sibling=D,k=D,_=M}if(A.done)return n(d,_),q&&nn(d,$),E;if(_===null){for(;!A.done;$++,A=y.next())A=m(d,A.value,x),A!==null&&(c=i(A,c,$),k===null?E=A:k.sibling=A,k=A);return q&&nn(d,$),E}for(_=r(d,_);!A.done;$++,A=y.next())A=w(_,d,$,A.value,x),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?$:A.key),c=i(A,c,$),k===null?E=A:k.sibling=A,k=A);return e&&_.forEach(function(f){return t(d,f)}),q&&nn(d,$),E}function T(d,c,y,x){if(typeof y=="object"&&y!==null&&y.type===Nn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case hl:e:{for(var E=y.key,k=c;k!==null;){if(k.key===E){if(E=y.type,E===Nn){if(k.tag===7){n(d,k.sibling),c=l(k,y.props.children),c.return=d,d=c;break e}}else if(k.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ot&&ju(E)===k.type){n(d,k.sibling),c=l(k,y.props),c.ref=pr(d,k,y),c.return=d,d=c;break e}n(d,k);break}else t(d,k);k=k.sibling}y.type===Nn?(c=fn(y.props.children,d.mode,x,y.key),c.return=d,d=c):(x=Vl(y.type,y.key,y.props,null,d.mode,x),x.ref=pr(d,c,y),x.return=d,d=x)}return o(d);case Pn:e:{for(k=y.key;c!==null;){if(c.key===k)if(c.tag===4&&c.stateNode.containerInfo===y.containerInfo&&c.stateNode.implementation===y.implementation){n(d,c.sibling),c=l(c,y.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=Ro(y,d.mode,x),c.return=d,d=c}return o(d);case Ot:return k=y._init,T(d,c,k(y._payload),x)}if(xr(y))return v(d,c,y,x);if(ar(y))return S(d,c,y,x);El(d,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,y),c.return=d,d=c):(n(d,c),c=Ao(y,d.mode,x),c.return=d,d=c),o(d)):n(d,c)}return T}var Xn=Bf(!0),Uf=Bf(!1),si=Zt(null),ai=null,In=null,ua=null;function ca(){ua=In=ai=null}function fa(e){var t=si.current;Z(si),e._currentValue=t}function hs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vn(e,t){ai=e,ua=In=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ze=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(ua!==e)if(e={context:e,memoizedValue:t,next:null},In===null){if(ai===null)throw Error(P(308));In=e,ai.dependencies={lanes:0,firstContext:e}}else In=In.next=e;return t}var sn=null;function da(e){sn===null?sn=[e]:sn.push(e)}function Wf(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,da(t)):(n.next=l.next,l.next=n),t.interleaved=n,Pt(e,r)}function Pt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var At=!1;function pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Pt(e,n)}return l=r.interleaved,l===null?(t.next=t,da(r)):(t.next=l.next,l.next=t),r.interleaved=t,Pt(e,n)}function Ml(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Js(e,n)}}function $u(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ui(e,t,n,r){var l=e.updateQueue;At=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var a=s,u=a.next;a.next=null,o===null?i=u:o.next=u,o=a;var g=e.alternate;g!==null&&(g=g.updateQueue,s=g.lastBaseUpdate,s!==o&&(s===null?g.firstBaseUpdate=u:s.next=u,g.lastBaseUpdate=a))}if(i!==null){var m=l.baseState;o=0,g=u=a=null,s=i;do{var h=s.lane,w=s.eventTime;if((r&h)===h){g!==null&&(g=g.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,S=s;switch(h=t,w=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){m=v.call(w,m,h);break e}m=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,h=typeof v=="function"?v.call(w,m,h):v,h==null)break e;m=ne({},m,h);break e;case 2:At=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[s]:h.push(s))}else w={eventTime:w,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},g===null?(u=g=w,a=m):g=g.next=w,o|=h;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;h=s,s=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(g===null&&(a=m),l.baseState=a,l.firstBaseUpdate=u,l.lastBaseUpdate=g,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);gn|=o,e.lanes=o,e.memoizedState=m}}function zu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=No.transition;No.transition={};try{e(!1),t()}finally{K=n,No.transition=r}}function od(){return Je().memoizedState}function vm(e,t,n){var r=bt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sd(e))ad(t,n);else if(n=Wf(e,t,n,r),n!==null){var l=Pe();st(n,e,r,l),ud(n,t,r)}}function xm(e,t,n){var r=bt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sd(e))ad(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,at(s,o)){var a=t.interleaved;a===null?(l.next=l,da(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Wf(e,t,l,r),n!==null&&(l=Pe(),st(n,e,r,l),ud(n,t,r))}}function sd(e){var t=e.alternate;return e===te||t!==null&&t===te}function ad(e,t){$r=fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ud(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Js(e,n)}}var di={readContext:Ze,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useInsertionEffect:Se,useLayoutEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useMutableSource:Se,useSyncExternalStore:Se,useId:Se,unstable_isNewReconciler:!1},wm={readContext:Ze,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:Au,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Dl(4194308,4,td.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dl(4,2,e,t)},useMemo:function(e,t){var n=ft();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ft();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=vm.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:Ou,useDebugValue:Sa,useDeferredValue:function(e){return ft().memoizedState=e},useTransition:function(){var e=Ou(!1),t=e[0];return e=ym.bind(null,e[1]),ft().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,l=ft();if(q){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),me===null)throw Error(P(349));mn&30||Kf(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Au(Gf.bind(null,r,i,e),[e]),r.flags|=2048,Xr(9,Yf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ft(),t=me.identifierPrefix;if(q){var n=Ct,r=kt;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yr++,0")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{co=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function Xp(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=fo(e.type,!1),e;case 11:return e=fo(e.type.render,!1),e;case 1:return e=fo(e.type,!0),e;default:return""}}function Wo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nn:return"Fragment";case Pn:return"Portal";case bo:return"Profiler";case Ks:return"StrictMode";case Bo:return"Suspense";case Uo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Uc:return(e.displayName||"Context")+".Consumer";case Bc:return(e._context.displayName||"Context")+".Provider";case Ys:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gs:return t=e.displayName||null,t!==null?t:Wo(e.type)||"Memo";case Rt:t=e._payload,e=e._init;try{return Wo(e(t))}catch{}}return null}function Zp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Wo(t);case 8:return t===Ks?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qp(e){var t=Vc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ml(e){e._valueTracker||(e._valueTracker=qp(e))}function Hc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vo(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qc(e,t){t=t.checked,t!=null&&Qs(e,"checked",t,!1)}function Ho(e,t){Qc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qo(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ja(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Qo(e,t,n){(t!=="number"||Yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xr=Array.isArray;function Fn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=gl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Er={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jp=["Webkit","ms","Moz","O"];Object.keys(Er).forEach(function(e){Jp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Er[t]=Er[e]})});function Xc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Er.hasOwnProperty(e)&&Er[e]?(""+t).trim():t+"px"}function Zc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Xc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var eh=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Go(e,t){if(t){if(eh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function Xo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zo=null;function Xs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qo=null,bn=null,Bn=null;function nu(e){if(e=il(e)){if(typeof qo!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Ei(t),qo(e.stateNode,e.type,t))}}function qc(e){bn?Bn?Bn.push(e):Bn=[e]:bn=e}function Jc(){if(bn){var e=bn,t=Bn;if(Bn=bn=null,nu(e),t)for(e=0;e>>=0,e===0?32:31-(fh(e)/dh|0)|0}var yl=64,vl=4194304;function wr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ql(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=wr(s):(i&=o,i!==0&&(r=wr(i)))}else o=n&~l,o!==0?r=wr(o):i!==0&&(r=wr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function rl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ot(t),e[t]=n}function gh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Pr),fu=" ",du=!1;function wf(e,t){switch(e){case"keyup":return Vh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tn=!1;function Qh(e,t){switch(e){case"compositionend":return Sf(t);case"keypress":return t.which!==32?null:(du=!0,fu);case"textInput":return e=t.data,e===fu&&du?null:e;default:return null}}function Kh(e,t){if(Tn)return e==="compositionend"||!la&&wf(e,t)?(e=vf(),Ll=ta=Dt=null,Tn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gu(n)}}function Ef(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ef(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jf(){for(var e=window,t=Yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yl(e.document)}return t}function ia(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function nm(e){var t=jf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ef(n.ownerDocument.documentElement,n)){if(r!==null&&ia(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=yu(n,i);var o=yu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,$n=null,ls=null,Tr=null,is=!1;function vu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;is||$n==null||$n!==Yl(r)||(r=$n,"selectionStart"in r&&ia(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Tr&&Ur(Tr,r)||(Tr=r,r=ti(ls,"onSelect"),0zn||(e.current=fs[zn],fs[zn]=null,zn--)}function G(e,t){zn++,fs[zn]=e.current,e.current=t}var Yt={},Ee=Zt(Yt),Re=Zt(!1),pn=Yt;function Yn(e,t){var n=e.type.contextTypes;if(!n)return Yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ze(e){return e=e.childContextTypes,e!=null}function ri(){Z(Re),Z(Ee)}function Eu(e,t,n){if(Ee.current!==Yt)throw Error(P(168));G(Ee,t),G(Re,n)}function Lf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(P(108,Zp(e)||"Unknown",l));return ne({},n,r)}function li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,pn=Ee.current,G(Ee,e),G(Re,Re.current),!0}function ju(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=Lf(e,t,pn),r.__reactInternalMemoizedMergedChildContext=e,Z(Re),Z(Ee),G(Ee,e)):Z(Re),G(Re,n)}var wt=null,ji=!1,jo=!1;function Df(e){wt===null?wt=[e]:wt.push(e)}function hm(e){ji=!0,Df(e)}function qt(){if(!jo&&wt!==null){jo=!0;var e=0,t=K;try{var n=wt;for(K=1;e>=o,l-=o,kt=1<<32-ot(t)+l|n<N?(L=C,C=null):L=C.sibling;var O=y(p,C,h[N],x);if(O===null){C===null&&(C=L);break}e&&C&&O.alternate===null&&t(p,C),f=i(O,f,N),w===null?E=O:w.sibling=O,w=O,C=L}if(N===h.length)return n(p,C),J&&nn(p,N),E;if(C===null){for(;NN?(L=C,C=null):L=C.sibling;var D=y(p,C,O.value,x);if(D===null){C===null&&(C=L);break}e&&C&&D.alternate===null&&t(p,C),f=i(D,f,N),w===null?E=D:w.sibling=D,w=D,C=L}if(O.done)return n(p,C),J&&nn(p,N),E;if(C===null){for(;!O.done;N++,O=h.next())O=g(p,O.value,x),O!==null&&(f=i(O,f,N),w===null?E=O:w.sibling=O,w=O);return J&&nn(p,N),E}for(C=r(p,C);!O.done;N++,O=h.next())O=S(C,p,N,O.value,x),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?N:O.key),f=i(O,f,N),w===null?E=O:w.sibling=O,w=O);return e&&C.forEach(function(d){return t(p,d)}),J&&nn(p,N),E}function j(p,f,h,x){if(typeof h=="object"&&h!==null&&h.type===Nn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case hl:e:{for(var E=h.key,w=f;w!==null;){if(w.key===E){if(E=h.type,E===Nn){if(w.tag===7){n(p,w.sibling),f=l(w,h.props.children),f.return=p,p=f;break e}}else if(w.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Rt&&Tu(E)===w.type){n(p,w.sibling),f=l(w,h.props),f.ref=pr(p,w,h),f.return=p,p=f;break e}n(p,w);break}else t(p,w);w=w.sibling}h.type===Nn?(f=fn(h.props.children,p.mode,x,h.key),f.return=p,p=f):(x=Wl(h.type,h.key,h.props,null,p.mode,x),x.ref=pr(p,f,h),x.return=p,p=x)}return o(p);case Pn:e:{for(w=h.key;f!==null;){if(f.key===w)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(p,f.sibling),f=l(f,h.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=Oo(h,p.mode,x),f.return=p,p=f}return o(p);case Rt:return w=h._init,j(p,f,w(h._payload),x)}if(xr(h))return v(p,f,h,x);if(ar(h))return k(p,f,h,x);El(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(p,f.sibling),f=l(f,h),f.return=p,p=f):(n(p,f),f=zo(h,p.mode,x),f.return=p,p=f),o(p)):n(p,f)}return j}var Xn=bf(!0),Bf=bf(!1),si=Zt(null),ai=null,Dn=null,ua=null;function ca(){ua=Dn=ai=null}function fa(e){var t=si.current;Z(si),e._currentValue=t}function hs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Wn(e,t){ai=e,ua=Dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ae=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(ua!==e)if(e={context:e,memoizedValue:t,next:null},Dn===null){if(ai===null)throw Error(P(308));Dn=e,ai.dependencies={lanes:0,firstContext:e}}else Dn=Dn.next=e;return t}var sn=null;function da(e){sn===null?sn=[e]:sn.push(e)}function Uf(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,da(t)):(n.next=l.next,l.next=n),t.interleaved=n,Pt(e,r)}function Pt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var zt=!1;function pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ut(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Pt(e,n)}return l=r.interleaved,l===null?(t.next=t,da(r)):(t.next=l.next,l.next=t),r.interleaved=t,Pt(e,n)}function Il(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qs(e,n)}}function $u(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ui(e,t,n,r){var l=e.updateQueue;zt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var a=s,c=a.next;a.next=null,o===null?i=c:o.next=c,o=a;var m=e.alternate;m!==null&&(m=m.updateQueue,s=m.lastBaseUpdate,s!==o&&(s===null?m.firstBaseUpdate=c:s.next=c,m.lastBaseUpdate=a))}if(i!==null){var g=l.baseState;o=0,m=c=a=null,s=i;do{var y=s.lane,S=s.eventTime;if((r&y)===y){m!==null&&(m=m.next={eventTime:S,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,k=s;switch(y=t,S=n,k.tag){case 1:if(v=k.payload,typeof v=="function"){g=v.call(S,g,y);break e}g=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=k.payload,y=typeof v=="function"?v.call(S,g,y):v,y==null)break e;g=ne({},g,y);break e;case 2:zt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,y=l.effects,y===null?l.effects=[s]:y.push(s))}else S={eventTime:S,lane:y,tag:s.tag,payload:s.payload,callback:s.callback,next:null},m===null?(c=m=S,a=g):m=m.next=S,o|=y;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;y=s,s=y.next,y.next=null,l.lastBaseUpdate=y,l.shared.pending=null}}while(!0);if(m===null&&(a=g),l.baseState=a,l.firstBaseUpdate=c,l.lastBaseUpdate=m,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);gn|=o,e.lanes=o,e.memoizedState=g}}function Au(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=No.transition;No.transition={};try{e(!1),t()}finally{K=n,No.transition=r}}function od(){return qe().memoizedState}function vm(e,t,n){var r=Vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sd(e))ad(t,n);else if(n=Uf(e,t,n,r),n!==null){var l=Pe();st(n,e,r,l),ud(n,t,r)}}function xm(e,t,n){var r=Vt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sd(e))ad(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,at(s,o)){var a=t.interleaved;a===null?(l.next=l,da(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Uf(e,t,l,r),n!==null&&(l=Pe(),st(n,e,r,l),ud(n,t,r))}}function sd(e){var t=e.alternate;return e===te||t!==null&&t===te}function ad(e,t){$r=fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ud(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qs(e,n)}}var di={readContext:Ze,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useInsertionEffect:Se,useLayoutEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useMutableSource:Se,useSyncExternalStore:Se,useId:Se,unstable_isNewReconciler:!1},wm={readContext:Ze,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:zu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fl(4194308,4,td.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fl(4,2,e,t)},useMemo:function(e,t){var n=ft();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ft();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=vm.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:Ru,useDebugValue:Sa,useDeferredValue:function(e){return ft().memoizedState=e},useTransition:function(){var e=Ru(!1),t=e[0];return e=ym.bind(null,e[1]),ft().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,l=ft();if(J){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),me===null)throw Error(P(349));mn&30||Kf(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,zu(Gf.bind(null,r,i,e),[e]),r.flags|=2048,Xr(9,Yf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ft(),t=me.identifierPrefix;if(J){var n=Ct,r=kt;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ht]=t,e[Hr]=r,xd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Xo(n,r),n){case"dialog":X("cancel",e),X("close",e),l=r;break;case"iframe":case"object":case"embed":X("load",e),l=r;break;case"video":case"audio":for(l=0;lqn&&(t.flags|=128,r=!0,hr(i,!1),t.lanes=4194304)}else{if(!r)if(e=ci(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!q)return ke(t),null}else 2*se()-i.renderingStartTime>qn&&n!==1073741824&&(t.flags|=128,r=!0,hr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=se(),t.sibling=null,n=ee.current,G(ee,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return Pa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ie&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Nm(e,t){switch(sa(t),t.tag){case 1:return Ae(t.type)&&ri(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),Z(Oe),Z(Ee),ga(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ma(t),null;case 13:if(Z(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(ee),null;case 4:return Zn(),null;case 10:return fa(t.type._context),null;case 22:case 23:return Pa(),null;case 24:return null;default:return null}}var Pl=!1,_e=!1,jm=typeof WeakSet=="function"?WeakSet:Set,O=null;function Mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ie(e,t,r)}else n.current=null}function Cs(e,t,n){try{n()}catch(r){ie(e,t,r)}}var bu=!1;function $m(e,t){if(os=ql,e=Tf(),ia(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,g=0,m=e,h=null;t:for(;;){for(var w;m!==n||l!==0&&m.nodeType!==3||(s=o+l),m!==i||r!==0&&m.nodeType!==3||(a=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(w=m.firstChild)!==null;)h=m,m=w;for(;;){if(m===e)break t;if(h===n&&++u===l&&(s=o),h===i&&++g===r&&(a=o),(w=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=w}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ss={focusedElem:e,selectionRange:n},ql=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,T=v.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?S:rt(t.type,S),T);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(x){ie(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return v=bu,bu=!1,v}function zr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Cs(t,n,i)}l=l.next}while(l!==r)}}function ji(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _s(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kd(e){var t=e.alternate;t!==null&&(e.alternate=null,kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ht],delete t[Hr],delete t[cs],delete t[dm],delete t[pm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Cd(e){return e.tag===5||e.tag===3||e.tag===4}function Hu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Es(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ni));else if(r!==4&&(e=e.child,e!==null))for(Es(e,t,n),e=e.sibling;e!==null;)Es(e,t,n),e=e.sibling}function Ts(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ts(e,t,n),e=e.sibling;e!==null;)Ts(e,t,n),e=e.sibling}var ge=null,lt=!1;function zt(e,t,n){for(n=n.child;n!==null;)_d(e,t,n),n=n.sibling}function _d(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Si,n)}catch{}switch(n.tag){case 5:_e||Mn(n,t);case 6:var r=ge,l=lt;ge=null,zt(e,t,n),ge=r,lt=l,ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?Eo(e.parentNode,n):e.nodeType===1&&Eo(e,n),Br(e)):Eo(ge,n.stateNode));break;case 4:r=ge,l=lt,ge=n.stateNode.containerInfo,lt=!0,zt(e,t,n),ge=r,lt=l;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Cs(n,t,o),l=l.next}while(l!==r)}zt(e,t,n);break;case 1:if(!_e&&(Mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ie(n,t,s)}zt(e,t,n);break;case 21:zt(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,zt(e,t,n),_e=r):zt(e,t,n);break;default:zt(e,t,n)}}function Qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jm),t.forEach(function(r){var l=Dm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Om(r/1960))-r,10e?16:e,Mt===null)var r=!1;else{if(e=Mt,Mt=null,mi=0,U&6)throw Error(P(331));var l=U;for(U|=4,O=e.current;O!==null;){var i=O,o=i.child;if(O.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ase()-Ea?cn(e,0):_a|=n),Re(e,t)}function Od(e,t){t===0&&(e.mode&1?(t=vl,vl<<=1,!(vl&130023424)&&(vl=4194304)):t=1);var n=Pe();e=Pt(e,t),e!==null&&(rl(e,t,n),Re(e,n))}function Fm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Od(e,n)}function Dm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),Od(e,n)}var Ad;Ad=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Oe.current)ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ze=!1,Tm(e,t,n);ze=!!(e.flags&131072)}else ze=!1,q&&t.flags&1048576&&Mf(t,oi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bl(e,t),e=t.pendingProps;var l=Yn(t,Ee.current);Vn(t,n),l=va(null,t,r,e,l,n);var i=xa();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ae(r)?(i=!0,li(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pa(t),l.updater=Ni,t.stateNode=l,l._reactInternals=t,gs(t,r,e,n),t=xs(null,t,r,!0,i,n)):(t.tag=0,q&&i&&oa(t),Te(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Um(r),e=rt(r,e),l){case 0:t=vs(null,t,r,e,n);break e;case 1:t=Uu(null,t,r,e,n);break e;case 11:t=Du(null,t,r,e,n);break e;case 14:t=Bu(null,t,r,rt(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),vs(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Uu(e,t,r,l,n);case 3:e:{if(gd(t),e===null)throw Error(P(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Vf(e,t),ui(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Jn(Error(P(423)),t),t=Wu(e,t,r,n,l);break e}else if(r!==l){l=Jn(Error(P(424)),t),t=Wu(e,t,r,n,l);break e}else for(Fe=Ut(t.stateNode.containerInfo.firstChild),De=t,q=!0,it=null,n=Uf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gn(),r===l){t=Nt(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return bf(t),e===null&&ps(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,as(r,l)?o=null:i!==null&&as(r,i)&&(t.flags|=32),md(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&ps(t),null;case 13:return yd(e,t,n);case 4:return ha(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xn(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Du(e,t,r,l,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,G(si,r._currentValue),r._currentValue=o,i!==null)if(at(i.value,o)){if(i.children===l.children&&!Oe.current){t=Nt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=_t(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var g=u.pending;g===null?a.next=a:(a.next=g.next,g.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),hs(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(P(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),hs(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Te(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Vn(t,n),l=Ze(l),r=r(l),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,l=rt(r,t.pendingProps),l=rt(r.type,l),Bu(e,t,r,l,n);case 15:return pd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Bl(e,t),t.tag=1,Ae(r)?(e=!0,li(t)):e=!1,Vn(t,n),cd(t,r,l),gs(t,r,l,n),xs(null,t,r,!0,e,n);case 19:return vd(e,t,n);case 22:return hd(e,t,n)}throw Error(P(156,t.tag))};function Rd(e,t){return sf(e,t)}function Bm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(e,t,n,r){return new Bm(e,t,n,r)}function ja(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Um(e){if(typeof e=="function")return ja(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ys)return 11;if(e===Gs)return 14}return 2}function Ht(e,t){var n=e.alternate;return n===null?(n=Ge(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")ja(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Nn:return fn(n.children,l,i,t);case Ks:o=8,l|=8;break;case Bo:return e=Ge(12,n,t,l|2),e.elementType=Bo,e.lanes=i,e;case Uo:return e=Ge(13,n,t,l),e.elementType=Uo,e.lanes=i,e;case Wo:return e=Ge(19,n,t,l),e.elementType=Wo,e.lanes=i,e;case Vc:return zi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Uc:o=10;break e;case Wc:o=9;break e;case Ys:o=11;break e;case Gs:o=14;break e;case Ot:o=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Ge(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function fn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function zi(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Vc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ao(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function Ro(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ho(0),this.expirationTimes=ho(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ho(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function $a(e,t,n,r,l,i,o,s,a){return e=new Wm(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ge(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pa(i),e}function Vm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fd)}catch(e){console.error(e)}}Fd(),Mc.exports=Ve;var Ym=Mc.exports,kr,ec=Ym;kr=ec.createRoot,ec.hydrateRoot;const tc=e=>e,Gm=()=>{let e=tc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tc}}},Xm=Gm();function vn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function er(e){if(typeof e!="string")throw new Error(vn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Dd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ht]=t,e[Hr]=r,xd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Xo(n,r),n){case"dialog":X("cancel",e),X("close",e),l=r;break;case"iframe":case"object":case"embed":X("load",e),l=r;break;case"video":case"audio":for(l=0;lJn&&(t.flags|=128,r=!0,hr(i,!1),t.lanes=4194304)}else{if(!r)if(e=ci(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!J)return ke(t),null}else 2*se()-i.renderingStartTime>Jn&&n!==1073741824&&(t.flags|=128,r=!0,hr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=se(),t.sibling=null,n=ee.current,G(ee,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return Pa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?De&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Nm(e,t){switch(sa(t),t.tag){case 1:return ze(t.type)&&ri(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),Z(Re),Z(Ee),ga(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ma(t),null;case 13:if(Z(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(ee),null;case 4:return Zn(),null;case 10:return fa(t.type._context),null;case 22:case 23:return Pa(),null;case 24:return null;default:return null}}var Pl=!1,_e=!1,Tm=typeof WeakSet=="function"?WeakSet:Set,R=null;function In(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ie(e,t,r)}else n.current=null}function Cs(e,t,n){try{n()}catch(r){ie(e,t,r)}}var Vu=!1;function $m(e,t){if(os=Jl,e=jf(),ia(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,c=0,m=0,g=e,y=null;t:for(;;){for(var S;g!==n||l!==0&&g.nodeType!==3||(s=o+l),g!==i||r!==0&&g.nodeType!==3||(a=o+r),g.nodeType===3&&(o+=g.nodeValue.length),(S=g.firstChild)!==null;)y=g,g=S;for(;;){if(g===e)break t;if(y===n&&++c===l&&(s=o),y===i&&++m===r&&(a=o),(S=g.nextSibling)!==null)break;g=y,y=g.parentNode}g=S}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ss={focusedElem:e,selectionRange:n},Jl=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var k=v.memoizedProps,j=v.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?k:rt(t.type,k),j);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(x){ie(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return v=Vu,Vu=!1,v}function Ar(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Cs(t,n,i)}l=l.next}while(l!==r)}}function Ti(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _s(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kd(e){var t=e.alternate;t!==null&&(e.alternate=null,kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ht],delete t[Hr],delete t[cs],delete t[dm],delete t[pm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Cd(e){return e.tag===5||e.tag===3||e.tag===4}function Hu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Es(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ni));else if(r!==4&&(e=e.child,e!==null))for(Es(e,t,n),e=e.sibling;e!==null;)Es(e,t,n),e=e.sibling}function js(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(js(e,t,n),e=e.sibling;e!==null;)js(e,t,n),e=e.sibling}var ge=null,lt=!1;function At(e,t,n){for(n=n.child;n!==null;)_d(e,t,n),n=n.sibling}function _d(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Si,n)}catch{}switch(n.tag){case 5:_e||In(n,t);case 6:var r=ge,l=lt;ge=null,At(e,t,n),ge=r,lt=l,ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?Eo(e.parentNode,n):e.nodeType===1&&Eo(e,n),br(e)):Eo(ge,n.stateNode));break;case 4:r=ge,l=lt,ge=n.stateNode.containerInfo,lt=!0,At(e,t,n),ge=r,lt=l;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Cs(n,t,o),l=l.next}while(l!==r)}At(e,t,n);break;case 1:if(!_e&&(In(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ie(n,t,s)}At(e,t,n);break;case 21:At(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,At(e,t,n),_e=r):At(e,t,n);break;default:At(e,t,n)}}function Qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tm),t.forEach(function(r){var l=Fm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Rm(r/1960))-r,10e?16:e,It===null)var r=!1;else{if(e=It,It=null,mi=0,B&6)throw Error(P(331));var l=B;for(B|=4,R=e.current;R!==null;){var i=R,o=i.child;if(R.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ase()-Ea?cn(e,0):_a|=n),Oe(e,t)}function Rd(e,t){t===0&&(e.mode&1?(t=vl,vl<<=1,!(vl&130023424)&&(vl=4194304)):t=1);var n=Pe();e=Pt(e,t),e!==null&&(rl(e,t,n),Oe(e,n))}function Mm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rd(e,n)}function Fm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),Rd(e,n)}var zd;zd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Re.current)Ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ae=!1,jm(e,t,n);Ae=!!(e.flags&131072)}else Ae=!1,J&&t.flags&1048576&&If(t,oi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bl(e,t),e=t.pendingProps;var l=Yn(t,Ee.current);Wn(t,n),l=va(null,t,r,e,l,n);var i=xa();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ze(r)?(i=!0,li(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pa(t),l.updater=Ni,t.stateNode=l,l._reactInternals=t,gs(t,r,e,n),t=xs(null,t,r,!0,i,n)):(t.tag=0,J&&i&&oa(t),je(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Bm(r),e=rt(r,e),l){case 0:t=vs(null,t,r,e,n);break e;case 1:t=Bu(null,t,r,e,n);break e;case 11:t=Fu(null,t,r,e,n);break e;case 14:t=bu(null,t,r,rt(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),vs(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Bu(e,t,r,l,n);case 3:e:{if(gd(t),e===null)throw Error(P(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Wf(e,t),ui(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=qn(Error(P(423)),t),t=Uu(e,t,r,n,l);break e}else if(r!==l){l=qn(Error(P(424)),t),t=Uu(e,t,r,n,l);break e}else for(Me=Bt(t.stateNode.containerInfo.firstChild),Fe=t,J=!0,it=null,n=Bf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gn(),r===l){t=Nt(e,t,n);break e}je(e,t,r,n)}t=t.child}return t;case 5:return Vf(t),e===null&&ps(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,as(r,l)?o=null:i!==null&&as(r,i)&&(t.flags|=32),md(e,t),je(e,t,o,n),t.child;case 6:return e===null&&ps(t),null;case 13:return yd(e,t,n);case 4:return ha(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xn(t,null,r,n):je(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Fu(e,t,r,l,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,G(si,r._currentValue),r._currentValue=o,i!==null)if(at(i.value,o)){if(i.children===l.children&&!Re.current){t=Nt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=_t(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var m=c.pending;m===null?a.next=a:(a.next=m.next,m.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),hs(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(P(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),hs(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}je(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Wn(t,n),l=Ze(l),r=r(l),t.flags|=1,je(e,t,r,n),t.child;case 14:return r=t.type,l=rt(r,t.pendingProps),l=rt(r.type,l),bu(e,t,r,l,n);case 15:return pd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),bl(e,t),t.tag=1,ze(r)?(e=!0,li(t)):e=!1,Wn(t,n),cd(t,r,l),gs(t,r,l,n),xs(null,t,r,!0,e,n);case 19:return vd(e,t,n);case 22:return hd(e,t,n)}throw Error(P(156,t.tag))};function Od(e,t){return sf(e,t)}function bm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(e,t,n,r){return new bm(e,t,n,r)}function Ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bm(e){if(typeof e=="function")return Ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ys)return 11;if(e===Gs)return 14}return 2}function Ht(e,t){var n=e.alternate;return n===null?(n=Ge(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Ta(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Nn:return fn(n.children,l,i,t);case Ks:o=8,l|=8;break;case bo:return e=Ge(12,n,t,l|2),e.elementType=bo,e.lanes=i,e;case Bo:return e=Ge(13,n,t,l),e.elementType=Bo,e.lanes=i,e;case Uo:return e=Ge(19,n,t,l),e.elementType=Uo,e.lanes=i,e;case Wc:return Ai(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bc:o=10;break e;case Uc:o=9;break e;case Ys:o=11;break e;case Gs:o=14;break e;case Rt:o=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Ge(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function fn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function Ai(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Wc,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function Oo(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Um(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ho(0),this.expirationTimes=ho(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ho(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function $a(e,t,n,r,l,i,o,s,a){return e=new Um(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ge(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pa(i),e}function Wm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Md)}catch(e){console.error(e)}}Md(),Ic.exports=We;var Ym=Ic.exports,kr,ec=Ym;kr=ec.createRoot,ec.hydrateRoot;const tc=e=>e,Gm=()=>{let e=tc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tc}}},Xm=Gm();function vn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function er(e){if(typeof e!="string")throw new Error(vn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Fd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t{t[n]=Vd(e[n])}),t}function Be(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return St(e)&&St(t)&&Object.keys(t).forEach(l=>{I.isValidElement(t[l])||Wd.isValidElementType(t[l])?r[l]=t[l]:St(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&St(e[l])?r[l]=Be(e[l],t[l],n):n.clone?r[l]=St(t[l])?Vd(t[l]):t[l]:r[l]=t[l]}),r}function Rr(e,t){return t?Be(e,t,{clone:!1}):e}function nc(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,l)=>{var o,s;const i=/min-width:\s*([0-9.]+)/;return+(((o=r.match(i))==null?void 0:o[1])||0)-+(((s=l.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,l)=>{const i=t[l];return delete r[l],r[l]=i,r},{...t}):t}function eg(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function tg(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,l]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(l).up(i)}function ng(e){const t=(i,o)=>i.replace("@media",o?`@container ${o}`:"@container");function n(i,o){i.up=(...s)=>t(e.breakpoints.up(...s),o),i.down=(...s)=>t(e.breakpoints.down(...s),o),i.between=(...s)=>t(e.breakpoints.between(...s),o),i.only=(...s)=>t(e.breakpoints.only(...s),o),i.not=(...s)=>{const a=t(e.breakpoints.not(...s),o);return a.includes("not all and")?a.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):a}}const r={},l=i=>(n(r,i),r);return n(l),{...e,containerQueries:l}}const Qi={xs:0,sm:600,md:900,lg:1200,xl:1536},rc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qi[e]}px)`},rg={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Qi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function jt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||rc;return t.reduce((o,s,a)=>(o[i.up(i.keys[a])]=n(t[a]),o),{})}if(typeof t=="object"){const i=r.breakpoints||rc;return Object.keys(t).reduce((o,s)=>{if(eg(i.keys,s)){const a=tg(r.containerQueries?r:rg,s);a&&(o[a]=n(t[s],s))}else if(Object.keys(i.values||Qi).includes(s)){const a=i.up(s);o[a]=n(t[s],s)}else{const a=s;o[a]=t[a]}return o},{})}return n(t)}function lg(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,l)=>{const i=e.up(l);return r[i]={},r},{}))||{}}function lc(e,t){return e.reduce((n,r)=>{const l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Ki(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((l,i)=>l&&l[i]?l[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function vi(e,t,n,r=n){let l;return typeof e=="function"?l=e(n):Array.isArray(e)?l=e[n]||r:l=Ki(e,n)||r,t&&(l=t(l,r,e)),l}function ae(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,i=o=>{if(o[t]==null)return null;const s=o[t],a=o.theme,u=Ki(a,r)||{};return jt(o,s,m=>{let h=vi(u,l,m);return m===h&&typeof m=="string"&&(h=vi(u,l,`${t}${m==="default"?"":er(m)}`,m)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}function ig(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const og={m:"margin",p:"padding"},sg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ic={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ag=ig(e=>{if(e.length>2)if(ic[e])e=ic[e];else return[e];const[t,n]=e.split(""),r=og[t],l=sg[n]||"";return Array.isArray(l)?l.map(i=>r+i):[r+l]}),Ia=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ma=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ia,...Ma];function sl(e,t,n,r){const l=Ki(e,t,!0)??n;return typeof l=="number"||typeof l=="string"?i=>typeof i=="string"?i:typeof l=="string"?l.startsWith("var(")&&i===0?0:l.startsWith("var(")&&i===1?l:`calc(${i} * ${l})`:l*i:Array.isArray(l)?i=>{if(typeof i=="string")return i;const o=Math.abs(i),s=l[o];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof l=="function"?l:()=>{}}function Fa(e){return sl(e,"spacing",8)}function al(e,t){return typeof t=="string"||t==null?t:e(t)}function ug(e,t){return n=>e.reduce((r,l)=>(r[l]=al(t,n),r),{})}function cg(e,t,n,r){if(!t.includes(n))return null;const l=ag(n),i=ug(l,r),o=e[n];return jt(e,o,i)}function bd(e,t){const n=Fa(e.theme);return Object.keys(e).map(r=>cg(e,t,r,n)).reduce(Rr,{})}function re(e){return bd(e,Ia)}re.propTypes={};re.filterProps=Ia;function le(e){return bd(e,Ma)}le.propTypes={};le.filterProps=Ma;function Yi(...e){const t=e.reduce((r,l)=>(l.filterProps.forEach(i=>{r[i]=l}),r),{}),n=r=>Object.keys(r).reduce((l,i)=>t[i]?Rr(l,t[i](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}function Ye(e){return typeof e!="number"?e:`${e}px solid`}function et(e,t){return ae({prop:e,themeKey:"borders",transform:t})}const fg=et("border",Ye),dg=et("borderTop",Ye),pg=et("borderRight",Ye),hg=et("borderBottom",Ye),mg=et("borderLeft",Ye),gg=et("borderColor"),yg=et("borderTopColor"),vg=et("borderRightColor"),xg=et("borderBottomColor"),wg=et("borderLeftColor"),Sg=et("outline",Ye),kg=et("outlineColor"),Gi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:al(t,r)});return jt(e,e.borderRadius,n)}return null};Gi.propTypes={};Gi.filterProps=["borderRadius"];Yi(fg,dg,pg,hg,mg,gg,yg,vg,xg,wg,Gi,Sg,kg);const Xi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sl(e.theme,"spacing",8),n=r=>({gap:al(t,r)});return jt(e,e.gap,n)}return null};Xi.propTypes={};Xi.filterProps=["gap"];const Zi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({columnGap:al(t,r)});return jt(e,e.columnGap,n)}return null};Zi.propTypes={};Zi.filterProps=["columnGap"];const Ji=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({rowGap:al(t,r)});return jt(e,e.rowGap,n)}return null};Ji.propTypes={};Ji.filterProps=["rowGap"];const Cg=ae({prop:"gridColumn"}),_g=ae({prop:"gridRow"}),Eg=ae({prop:"gridAutoFlow"}),Tg=ae({prop:"gridAutoColumns"}),Pg=ae({prop:"gridAutoRows"}),Ng=ae({prop:"gridTemplateColumns"}),jg=ae({prop:"gridTemplateRows"}),$g=ae({prop:"gridTemplateAreas"}),zg=ae({prop:"gridArea"});Yi(Xi,Zi,Ji,Cg,_g,Eg,Tg,Pg,Ng,jg,$g,zg);function Hn(e,t){return t==="grey"?t:e}const Og=ae({prop:"color",themeKey:"palette",transform:Hn}),Ag=ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hn}),Rg=ae({prop:"backgroundColor",themeKey:"palette",transform:Hn});Yi(Og,Ag,Rg);function Me(e){return e<=1&&e!==0?`${e*100}%`:e}const Lg=ae({prop:"width",transform:Me}),Da=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var l,i,o,s,a;const r=((o=(i=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:i.values)==null?void 0:o[n])||Qi[n];return r?((a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Me(n)}};return jt(e,e.maxWidth,t)}return null};Da.filterProps=["maxWidth"];const Ig=ae({prop:"minWidth",transform:Me}),Mg=ae({prop:"height",transform:Me}),Fg=ae({prop:"maxHeight",transform:Me}),Dg=ae({prop:"minHeight",transform:Me});ae({prop:"size",cssProperty:"width",transform:Me});ae({prop:"size",cssProperty:"height",transform:Me});const Bg=ae({prop:"boxSizing"});Yi(Lg,Da,Ig,Mg,Fg,Dg,Bg);const qi={border:{themeKey:"borders",transform:Ye},borderTop:{themeKey:"borders",transform:Ye},borderRight:{themeKey:"borders",transform:Ye},borderBottom:{themeKey:"borders",transform:Ye},borderLeft:{themeKey:"borders",transform:Ye},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ye},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gi},color:{themeKey:"palette",transform:Hn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hn},backgroundColor:{themeKey:"palette",transform:Hn},p:{style:le},pt:{style:le},pr:{style:le},pb:{style:le},pl:{style:le},px:{style:le},py:{style:le},padding:{style:le},paddingTop:{style:le},paddingRight:{style:le},paddingBottom:{style:le},paddingLeft:{style:le},paddingX:{style:le},paddingY:{style:le},paddingInline:{style:le},paddingInlineStart:{style:le},paddingInlineEnd:{style:le},paddingBlock:{style:le},paddingBlockStart:{style:le},paddingBlockEnd:{style:le},m:{style:re},mt:{style:re},mr:{style:re},mb:{style:re},ml:{style:re},mx:{style:re},my:{style:re},margin:{style:re},marginTop:{style:re},marginRight:{style:re},marginBottom:{style:re},marginLeft:{style:re},marginX:{style:re},marginY:{style:re},marginInline:{style:re},marginInlineStart:{style:re},marginInlineEnd:{style:re},marginBlock:{style:re},marginBlockStart:{style:re},marginBlockEnd:{style:re},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xi},rowGap:{style:Ji},columnGap:{style:Zi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Me},maxWidth:{style:Da},minWidth:{transform:Me},height:{transform:Me},maxHeight:{transform:Me},minHeight:{transform:Me},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ug(...e){const t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Wg(e,t){return typeof e=="function"?e(t):e}function Vg(){function e(n,r,l,i){const o={[n]:r,theme:l},s=i[n];if(!s)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:g,style:m}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=Ki(l,u)||{};return m?m(o):jt(o,r,v=>{let S=vi(h,g,v);return v===S&&typeof v=="string"&&(S=vi(h,g,`${n}${v==="default"?"":er(v)}`,v)),a===!1?S:{[a]:S}})}function t(n){const{sx:r,theme:l={},nested:i}=n||{};if(!r)return null;const o=l.unstable_sxConfig??qi;function s(a){let u=a;if(typeof a=="function")u=a(l);else if(typeof a!="object")return a;if(!u)return null;const g=lg(l.breakpoints),m=Object.keys(g);let h=g;return Object.keys(u).forEach(w=>{const v=Wg(u[w],l);if(v!=null)if(typeof v=="object")if(o[w])h=Rr(h,e(w,v,l,o));else{const S=jt({theme:l},v,T=>({[w]:T}));Ug(S,v)?h[w]=t({sx:v,theme:l,nested:!0}):h=Rr(h,S)}else h=Rr(h,e(w,v,l,o))}),!i&&l.modularCssLayers?{"@layer sx":nc(l,lc(m,h))}:nc(l,lc(m,h))}return Array.isArray(r)?r.map(s):s(r)}return t}const tr=Vg();tr.filterProps=["sx"];function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?ye(or,--Le):0,nr--,ue===10&&(nr=1,to--),ue}function Ue(){return ue=Le2||qr(ue)>3?"":" "}function r0(e,t){for(;--t&&Ue()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return ul(e,bl()+(t<6&&yt()==32&&Ue()==32))}function As(e){for(;Ue();)switch(ue){case e:return Le;case 34:case 39:e!==34&&e!==39&&As(ue);break;case 40:e===41&&As(e);break;case 92:Ue();break}return Le}function l0(e,t){for(;Ue()&&e+ue!==57;)if(e+ue===84&&yt()===47)break;return"/*"+ul(t,Le-1)+"*"+eo(e===47?e:Ue())}function i0(e){for(;!qr(yt());)Ue();return ul(e,Le)}function o0(e){return Xd(Ql("",null,null,null,[""],e=Gd(e),0,[0],e))}function Ql(e,t,n,r,l,i,o,s,a){for(var u=0,g=0,m=o,h=0,w=0,v=0,S=1,T=1,d=1,c=0,y="",x=l,E=i,k=r,_=y;T;)switch(v=c,c=Ue()){case 40:if(v!=108&&ye(_,m-1)==58){Os(_+=b(Hl(c),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:_+=Hl(c);break;case 9:case 10:case 13:case 32:_+=n0(v);break;case 92:_+=r0(bl()-1,7);continue;case 47:switch(yt()){case 42:case 47:$l(s0(l0(Ue(),bl()),t,n),a);break;default:_+="/"}break;case 123*S:s[u++]=dt(_)*d;case 125*S:case 59:case 0:switch(c){case 0:case 125:T=0;case 59+g:d==-1&&(_=b(_,/\f/g,"")),w>0&&dt(_)-m&&$l(w>32?sc(_+";",r,n,m-1):sc(b(_," ","")+";",r,n,m-2),a);break;case 59:_+=";";default:if($l(k=oc(_,t,n,u,g,l,s,y,x=[],E=[],m),i),c===123)if(g===0)Ql(_,t,k,k,x,i,m,s,E);else switch(h===99&&ye(_,3)===110?100:h){case 100:case 108:case 109:case 115:Ql(e,k,k,r&&$l(oc(e,k,k,0,0,l,s,y,l,x=[],m),E),l,E,m,s,r?x:E);break;default:Ql(_,k,k,k,[""],E,0,s,E)}}u=g=w=0,S=d=1,y=_="",m=o;break;case 58:m=1+dt(_),w=v;default:if(S<1){if(c==123)--S;else if(c==125&&S++==0&&t0()==125)continue}switch(_+=eo(c),c*S){case 38:d=g>0?1:(_+="\f",-1);break;case 44:s[u++]=(dt(_)-1)*d,d=1;break;case 64:yt()===45&&(_+=Hl(Ue())),h=yt(),g=m=dt(y=_+=i0(bl())),c++;break;case 45:v===45&&dt(_)==2&&(S=0)}}return i}function oc(e,t,n,r,l,i,o,s,a,u,g){for(var m=l-1,h=l===0?i:[""],w=Wa(h),v=0,S=0,T=0;v0?h[d]+" "+c:b(c,/&\f/g,h[d])))&&(a[T++]=y);return no(e,t,n,l===0?Ba:s,a,u,g)}function s0(e,t,n){return no(e,t,n,Hd,eo(e0()),Jr(e,2,-2),0)}function sc(e,t,n,r){return no(e,t,n,Ua,Jr(e,0,r),Jr(e,r+1,-1),r)}function Qn(e,t){for(var n="",r=Wa(e),l=0;l6)switch(ye(e,t+1)){case 109:if(ye(e,t+4)!==45)break;case 102:return b(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+xi+(ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Os(e,"stretch")?Jd(b(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ye(e,t+1)!==115)break;case 6444:switch(ye(e,dt(e)-3-(~Os(e,"!important")&&10))){case 107:return b(e,":",":"+V)+e;case 101:return b(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(ye(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(ye(e,t+11)){case 114:return V+e+Ce+b(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+Ce+b(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+Ce+b(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+Ce+e+e}return e}var g0=function(t,n,r,l){if(t.length>-1&&!t.return)switch(t.type){case Ua:t.return=Jd(t.value,t.length);break;case Qd:return Qn([gr(t,{value:b(t.value,"@","@"+V)})],l);case Ba:if(t.length)return qg(t.props,function(i){switch(Jg(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qn([gr(t,{props:[b(i,/:(read-\w+)/,":"+xi+"$1")]})],l);case"::placeholder":return Qn([gr(t,{props:[b(i,/:(plac\w+)/,":"+V+"input-$1")]}),gr(t,{props:[b(i,/:(plac\w+)/,":"+xi+"$1")]}),gr(t,{props:[b(i,/:(plac\w+)/,Ce+"input-$1")]})],l)}return""})}},y0=[g0],v0=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var T=S.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var l=t.stylisPlugins||y0,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var T=S.getAttribute("data-emotion").split(" "),d=1;d=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var C0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_0=/[A-Z]|^ms/g,E0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ep=function(t){return t.charCodeAt(1)===45},uc=function(t){return t!=null&&typeof t!="boolean"},Lo=Zd(function(e){return ep(e)?e:e.replace(_0,"-$&").toLowerCase()}),cc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(E0,function(r,l,i){return pt={name:l,styles:i,next:pt},l})}return C0[t]!==1&&!ep(t)&&typeof n=="number"&&n!==0?n+"px":n};function el(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var l=n;if(l.anim===1)return pt={name:l.name,styles:l.styles,next:pt},l.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)pt={name:o.name,styles:o.styles,next:pt},o=o.next;var s=i.styles+";";return s}return T0(e,t,n)}case"function":{if(e!==void 0){var a=pt,u=n(e);return pt=a,el(e,t,u)}break}}var g=n;if(t==null)return g;var m=t[g];return m!==void 0?m:g}function T0(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l96?R0:L0},pc=function(t,n,r){var l;if(n){var i=n.shouldForwardProp;l=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof l!="function"&&r&&(l=t.__emotion_forwardProp),l},I0=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return qd(n,r,l),j0(function(){return S0(n,r,l)}),null},M0=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,i,o;n!==void 0&&(i=n.label,o=n.target);var s=pc(t,n,r),a=s||dc(l),u=!a("as");return function(){var g=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&m.push("label:"+i+";"),g[0]==null||g[0].raw===void 0)m.push.apply(m,g);else{var h=g[0];m.push(h[0]);for(var w=g.length,v=1;v{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function W0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...l}=e,i=U0(t),o=Object.keys(i);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function a(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,w){const v=o.indexOf(w);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(v!==-1&&typeof t[o[v]]=="number"?t[o[v]]:w)-r/100}${n})`}function g(h){return o.indexOf(h)+1(r.length===0?[1]:r).map(i=>{const o=t(i);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function b0(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let l=n.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return n.palette.mode===e?t:{}}function lp(e={},...t){const{breakpoints:n={},palette:r={},spacing:l,shape:i={},...o}=e,s=W0(n),a=rp(l);let u=Be({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:a,shape:{...V0,...i}},o);return u=ng(u),u.applyStyles=b0,u=t.reduce((g,m)=>Be(g,m),u),u.unstable_sxConfig={...qi,...o==null?void 0:o.unstable_sxConfig},u.unstable_sx=function(m){return tr({sx:m,theme:this})},u}const H0={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ip(e,t,n="Mui"){const r=H0[t];return r?`${n}-${r}`:`${Xm.generate(e)}-${t}`}function Q0(e,t,n="Mui"){const r={};return t.forEach(l=>{r[l]=ip(e,l,n)}),r}function op(e){const{variants:t,...n}=e,r={variants:t,style:dn(n),isProcessed:!0};return r.style===n||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=dn(l.style))}),r}const K0=lp();function Io(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function un(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Y0(e){return e?(t,n)=>n[e]:null}function G0(e,t,n){e.theme=J0(e.theme)?n:e.theme[t]||e.theme}function Kl(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(l=>Kl(e,l,n));if(Array.isArray(r==null?void 0:r.variants)){let l;if(r.isProcessed)l=n?un(r.style,n):r.style;else{const{variants:i,...o}=r;l=n?un(dn(o),n):o}return sp(e,r.variants,[l],n)}return r!=null&&r.isProcessed?n?un(dn(r.style),n):r.style:n?un(dn(r),n):r}function sp(e,t,n=[],r=void 0){var i;let l;e:for(let o=0;o{B0(s,k=>k.filter(_=>_!==tr));const{name:u,slot:g,skipVariantsResolver:m,skipSx:h,overridesResolver:w=Y0(ey(g)),...v}=a,S=u&&u.startsWith("Mui")||g?"components":"custom",T=m!==void 0?m:g&&g!=="Root"&&g!=="root"||!1,d=h||!1;let c=Io;g==="Root"||g==="root"?c=r:g?c=l:q0(s)&&(c=void 0);const y=D0(s,{shouldForwardProp:c,label:Z0(),...v}),x=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function($){return Kl($,k,$.theme.modularCssLayers?S:void 0)};if(St(k)){const _=op(k);return function(M){return _.variants?Kl(M,_,M.theme.modularCssLayers?S:void 0):M.theme.modularCssLayers?un(_.style,S):_.style}}return k},E=(...k)=>{const _=[],$=k.map(x),M=[];if(_.push(i),u&&w&&M.push(function(z){var we,j;const L=(j=(we=z.theme.components)==null?void 0:we[u])==null?void 0:j.styleOverrides;if(!L)return null;const W={};for(const R in L)W[R]=Kl(z,L[R],z.theme.modularCssLayers?"theme":void 0);return w(z,W)}),u&&!T&&M.push(function(z){var W,we;const N=z.theme,L=(we=(W=N==null?void 0:N.components)==null?void 0:W[u])==null?void 0:we.variants;return L?sp(z,L,[],z.theme.modularCssLayers?"theme":void 0):null}),d||M.push(tr),Array.isArray($[0])){const f=$.shift(),z=new Array(_.length).fill(""),N=new Array(M.length).fill("");let L;L=[...z,...f,...N],L.raw=[...z,...f.raw,...N],_.unshift(L)}const A=[..._,...$,...M],D=y(...A);return s.muiName&&(D.muiName=s.muiName),D};return y.withConfig&&(E.withConfig=y.withConfig),E}}function Z0(e,t){return void 0}function J0(e){for(const t in e)return!1;return!0}function q0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ey(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ls(e,t,n=!1){const r={...t};for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){const i=l;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const o=e[i],s=t[i];if(!s)r[i]=o||{};else if(!o)r[i]=s;else{r[i]={...s};for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const u=a;r[i][u]=Ls(o[u],s[u],n)}}}else i==="className"&&n&&t.className?r.className=Bd(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function ty(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Va(e,t=0,n=1){return ty(e,t,n)}function ny(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Gt(e){if(e.type)return e;if(e.charAt(0)==="#")return Gt(ny(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(vn(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(vn(10,l))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:l}}const ry=e=>{const t=Gt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Cr=(e,t)=>{try{return ry(e)}catch{return e}};function ro(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((l,i)=>i<3?parseInt(l,10):l):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ap(e){e=Gt(e);const{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,i=r*Math.min(l,1-l),o=(u,g=(u+n/30)%12)=>l-i*Math.max(Math.min(g-3,9-g,1),-1);let s="rgb";const a=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",a.push(t[3])),ro({type:s,values:a})}function Is(e){e=Gt(e);let t=e.type==="hsl"||e.type==="hsla"?Gt(ap(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ly(e,t){const n=Is(e),r=Is(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function up(e,t){return e=Gt(e),t=Va(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ro(e)}function tn(e,t,n){try{return up(e,t)}catch{return e}}function lo(e,t){if(e=Gt(e),t=Va(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ro(e)}function H(e,t,n){try{return lo(e,t)}catch{return e}}function io(e,t){if(e=Gt(e),t=Va(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ro(e)}function Q(e,t,n){try{return io(e,t)}catch{return e}}function iy(e,t=.15){return Is(e)>.5?lo(e,t):io(e,t)}function zl(e,t,n){try{return iy(e,t)}catch{return e}}const oy=I.createContext(void 0);function sy(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const l=t.components[n];return l.defaultProps?Ls(l.defaultProps,r,t.components.mergeClassNameAndStyle):!l.styleOverrides&&!l.variants?Ls(l,r,t.components.mergeClassNameAndStyle):r}function ay({props:e,name:t}){const n=I.useContext(oy);return sy({props:e,name:t,theme:{components:n}})}const mc={theme:void 0};function uy(e){let t,n;return function(l){let i=t;return(i===void 0||l.theme!==n)&&(mc.theme=l.theme,i=op(e(mc)),t=i,n=l.theme),i}}function cy(e=""){function t(...r){if(!r.length)return"";const l=r[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...r.slice(1))})`:`, ${l}`}return(r,...l)=>`var(--${e?`${e}-`:""}${r}${t(...l)})`}const gc=(e,t,n,r=[])=>{let l=e;t.forEach((i,o)=>{o===t.length-1?Array.isArray(l)?l[Number(i)]=n:l&&typeof l=="object"&&(l[i]=n):l&&typeof l=="object"&&(l[i]||(l[i]=r.includes(i)?[]:{}),l=l[i])})},fy=(e,t,n)=>{function r(l,i=[],o=[]){Object.entries(l).forEach(([s,a])=>{(!n||n&&!n([...i,s]))&&a!=null&&(typeof a=="object"&&Object.keys(a).length>0?r(a,[...i,s],Array.isArray(a)?[...o,s]:o):t([...i,s],a,o))})}r(e)},dy=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Mo(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},l={},i={},o={};return fy(e,(s,a,u)=>{if((typeof a=="string"||typeof a=="number")&&(!r||!r(s,a))){const g=`--${n?`${n}-`:""}${s.join("-")}`,m=dy(s,a);Object.assign(l,{[g]:m}),gc(i,s,`var(${g})`,u),gc(o,s,`var(${g}, ${m})`,u)}},s=>s[0]==="vars"),{css:l,vars:i,varsWithDefaults:o}}function py(e,t={}){const{getSelector:n=d,disableCssColorScheme:r,colorSchemeSelector:l,enableContrastVars:i}=t,{colorSchemes:o={},components:s,defaultColorScheme:a="light",...u}=e,{vars:g,css:m,varsWithDefaults:h}=Mo(u,t);let w=h;const v={},{[a]:S,...T}=o;if(Object.entries(T||{}).forEach(([x,E])=>{const{vars:k,css:_,varsWithDefaults:$}=Mo(E,t);w=Be(w,$),v[x]={css:_,vars:k}}),S){const{css:x,vars:E,varsWithDefaults:k}=Mo(S,t);w=Be(w,k),v[a]={css:x,vars:E}}function d(x,E){var _,$;let k=l;if(l==="class"&&(k=".%s"),l==="data"&&(k="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(k=`[${l}="%s"]`),x){if(k==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${(($=(_=o[x])==null?void 0:_.palette)==null?void 0:$.mode)||x})`]:{":root":E}};if(k)return e.defaultColorScheme===x?`:root, ${k.replace("%s",String(x))}`:k.replace("%s",String(x))}return":root"}return{vars:w,generateThemeVars:()=>{let x={...g};return Object.entries(v).forEach(([,{vars:E}])=>{x=Be(x,E)}),x},generateStyleSheets:()=>{var M,A;const x=[],E=e.defaultColorScheme||"light";function k(D,f){Object.keys(f).length&&x.push(typeof D=="string"?{[D]:{...f}}:D)}k(n(void 0,{...m}),m);const{[E]:_,...$}=v;if(_){const{css:D}=_,f=(A=(M=o[E])==null?void 0:M.palette)==null?void 0:A.mode,z=!r&&f?{colorScheme:f,...D}:{...D};k(n(E,{...z}),z)}return Object.entries($).forEach(([D,{css:f}])=>{var L,W;const z=(W=(L=o[D])==null?void 0:L.palette)==null?void 0:W.mode,N=!r&&z?{colorScheme:z,...f}:{...f};k(n(D,{...N}),N)}),i&&x.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),x}}}function hy(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const tl={black:"#000",white:"#fff"},my={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},kn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Cn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},yr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},_n={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},En={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Tn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function cp(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:tl.white,default:tl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const fp=cp();function dp(){return{text:{primary:tl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:tl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ms=dp();function yc(e,t,n,r){const l=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=io(e.main,l):t==="dark"&&(e.dark=lo(e.main,i)))}function vc(e,t,n,r,l){const i=l.light||l,o=l.dark||l*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function gy(e="light"){return e==="dark"?{main:_n[200],light:_n[50],dark:_n[400]}:{main:_n[700],light:_n[400],dark:_n[800]}}function yy(e="light"){return e==="dark"?{main:kn[200],light:kn[50],dark:kn[400]}:{main:kn[500],light:kn[300],dark:kn[700]}}function vy(e="light"){return e==="dark"?{main:Cn[500],light:Cn[300],dark:Cn[700]}:{main:Cn[700],light:Cn[400],dark:Cn[800]}}function xy(e="light"){return e==="dark"?{main:En[400],light:En[300],dark:En[700]}:{main:En[700],light:En[500],dark:En[900]}}function wy(e="light"){return e==="dark"?{main:Tn[400],light:Tn[300],dark:Tn[700]}:{main:Tn[800],light:Tn[500],dark:Tn[900]}}function Sy(e="light"){return e==="dark"?{main:yr[400],light:yr[300],dark:yr[700]}:{main:"#ed6c02",light:yr[500],dark:yr[900]}}function ky(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ba(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:l,...i}=e,o=e.primary||gy(t),s=e.secondary||yy(t),a=e.error||vy(t),u=e.info||xy(t),g=e.success||wy(t),m=e.warning||Sy(t);function h(T){return l?ky(T):ly(T,Ms.text.primary)>=n?Ms.text.primary:fp.text.primary}const w=({color:T,name:d,mainShade:c=500,lightShade:y=300,darkShade:x=700})=>{if(T={...T},!T.main&&T[c]&&(T.main=T[c]),!T.hasOwnProperty("main"))throw new Error(vn(11,d?` (${d})`:"",c));if(typeof T.main!="string")throw new Error(vn(12,d?` (${d})`:"",JSON.stringify(T.main)));return l?(vc(l,T,"light",y,r),vc(l,T,"dark",x,r)):(yc(T,"light",y,r),yc(T,"dark",x,r)),T.contrastText||(T.contrastText=h(T.main)),T};let v;return t==="light"?v=cp():t==="dark"&&(v=dp()),Be({common:{...tl},mode:t,primary:w({color:o,name:"primary"}),secondary:w({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:a,name:"error"}),warning:w({color:m,name:"warning"}),info:w({color:u,name:"info"}),success:w({color:g,name:"success"}),grey:my,contrastThreshold:n,getContrastText:h,augmentColor:w,tonalOffset:r,...v},i)}function Cy(e){const t={};return Object.entries(e).forEach(r=>{const[l,i]=r;typeof i=="object"&&(t[l]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function _y(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Ey(e){return Math.round(e*1e5)/1e5}const xc={textTransform:"uppercase"},wc='"Roboto", "Helvetica", "Arial", sans-serif';function Ty(e,t){const{fontFamily:n=wc,fontSize:r=14,fontWeightLight:l=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:a=16,allVariants:u,pxToRem:g,...m}=typeof t=="function"?t(e):t,h=r/14,w=g||(T=>`${T/a*h}rem`),v=(T,d,c,y,x)=>({fontFamily:n,fontWeight:T,fontSize:w(d),lineHeight:c,...n===wc?{letterSpacing:`${Ey(y/d)}em`}:{},...x,...u}),S={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(o,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(o,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(o,14,1.75,.4,xc),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,xc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Be({htmlFontSize:a,pxToRem:w,fontFamily:n,fontSize:r,fontWeightLight:l,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:s,...S},m,{clone:!1})}const Py=.2,Ny=.14,jy=.12;function J(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Py})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ny})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${jy})`].join(",")}const $y=["none",J(0,2,1,-1,0,1,1,0,0,1,3,0),J(0,3,1,-2,0,2,2,0,0,1,5,0),J(0,3,3,-2,0,3,4,0,0,1,8,0),J(0,2,4,-1,0,4,5,0,0,1,10,0),J(0,3,5,-1,0,5,8,0,0,1,14,0),J(0,3,5,-1,0,6,10,0,0,1,18,0),J(0,4,5,-2,0,7,10,1,0,2,16,1),J(0,5,5,-3,0,8,10,1,0,3,14,2),J(0,5,6,-3,0,9,12,1,0,3,16,2),J(0,6,6,-3,0,10,14,1,0,4,18,3),J(0,6,7,-4,0,11,15,1,0,4,20,3),J(0,7,8,-4,0,12,17,2,0,5,22,4),J(0,7,8,-4,0,13,19,2,0,5,24,4),J(0,7,9,-4,0,14,21,2,0,5,26,4),J(0,8,9,-5,0,15,22,2,0,6,28,5),J(0,8,10,-5,0,16,24,2,0,6,30,5),J(0,8,11,-5,0,17,26,2,0,6,32,5),J(0,9,11,-5,0,18,28,2,0,7,34,6),J(0,9,12,-6,0,19,29,2,0,7,36,6),J(0,10,13,-6,0,20,31,3,0,8,38,7),J(0,10,13,-6,0,21,33,3,0,8,40,7),J(0,10,14,-6,0,22,35,3,0,8,42,7),J(0,11,14,-7,0,23,36,3,0,9,44,8),J(0,11,15,-7,0,24,38,3,0,9,46,8)],zy={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Oy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sc(e){return`${Math.round(e)}ms`}function Ay(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ry(e){const t={...zy,...e.easing},n={...Oy,...e.duration};return{getAutoHeightDuration:Ay,create:(l=["all"],i={})=>{const{duration:o=n.standard,easing:s=t.easeInOut,delay:a=0,...u}=i;return(Array.isArray(l)?l:[l]).map(g=>`${g} ${typeof o=="string"?o:Sc(o)} ${s} ${typeof a=="string"?a:Sc(a)}`).join(",")},...e,easing:t,duration:n}}const Ly={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Iy(e){return St(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function pp(e={}){const t={...e};function n(r){const l=Object.entries(r);for(let i=0;i{t[n]=Wd(e[n])}),t}function be(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return St(e)&&St(t)&&Object.keys(t).forEach(l=>{z.isValidElement(t[l])||Ud.isValidElementType(t[l])?r[l]=t[l]:St(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&St(e[l])?r[l]=be(e[l],t[l],n):n.clone?r[l]=St(t[l])?Wd(t[l]):t[l]:r[l]=t[l]}),r}function Or(e,t){return t?be(e,t,{clone:!1}):e}function nc(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,l)=>{var o,s;const i=/min-width:\s*([0-9.]+)/;return+(((o=r.match(i))==null?void 0:o[1])||0)-+(((s=l.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,l)=>{const i=t[l];return delete r[l],r[l]=i,r},{...t}):t}function eg(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function tg(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,l]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(l).up(i)}function ng(e){const t=(i,o)=>i.replace("@media",o?`@container ${o}`:"@container");function n(i,o){i.up=(...s)=>t(e.breakpoints.up(...s),o),i.down=(...s)=>t(e.breakpoints.down(...s),o),i.between=(...s)=>t(e.breakpoints.between(...s),o),i.only=(...s)=>t(e.breakpoints.only(...s),o),i.not=(...s)=>{const a=t(e.breakpoints.not(...s),o);return a.includes("not all and")?a.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):a}}const r={},l=i=>(n(r,i),r);return n(l),{...e,containerQueries:l}}const Qi={xs:0,sm:600,md:900,lg:1200,xl:1536},rc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qi[e]}px)`},rg={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Qi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Tt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||rc;return t.reduce((o,s,a)=>(o[i.up(i.keys[a])]=n(t[a]),o),{})}if(typeof t=="object"){const i=r.breakpoints||rc;return Object.keys(t).reduce((o,s)=>{if(eg(i.keys,s)){const a=tg(r.containerQueries?r:rg,s);a&&(o[a]=n(t[s],s))}else if(Object.keys(i.values||Qi).includes(s)){const a=i.up(s);o[a]=n(t[s],s)}else{const a=s;o[a]=t[a]}return o},{})}return n(t)}function lg(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,l)=>{const i=e.up(l);return r[i]={},r},{}))||{}}function lc(e,t){return e.reduce((n,r)=>{const l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Ki(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((l,i)=>l&&l[i]?l[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function vi(e,t,n,r=n){let l;return typeof e=="function"?l=e(n):Array.isArray(e)?l=e[n]||r:l=Ki(e,n)||r,t&&(l=t(l,r,e)),l}function ae(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,i=o=>{if(o[t]==null)return null;const s=o[t],a=o.theme,c=Ki(a,r)||{};return Tt(o,s,g=>{let y=vi(c,l,g);return g===y&&typeof g=="string"&&(y=vi(c,l,`${t}${g==="default"?"":er(g)}`,g)),n===!1?y:{[n]:y}})};return i.propTypes={},i.filterProps=[t],i}function ig(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const og={m:"margin",p:"padding"},sg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ic={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ag=ig(e=>{if(e.length>2)if(ic[e])e=ic[e];else return[e];const[t,n]=e.split(""),r=og[t],l=sg[n]||"";return Array.isArray(l)?l.map(i=>r+i):[r+l]}),Da=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ia=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Da,...Ia];function sl(e,t,n,r){const l=Ki(e,t,!0)??n;return typeof l=="number"||typeof l=="string"?i=>typeof i=="string"?i:typeof l=="string"?l.startsWith("var(")&&i===0?0:l.startsWith("var(")&&i===1?l:`calc(${i} * ${l})`:l*i:Array.isArray(l)?i=>{if(typeof i=="string")return i;const o=Math.abs(i),s=l[o];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof l=="function"?l:()=>{}}function Ma(e){return sl(e,"spacing",8)}function al(e,t){return typeof t=="string"||t==null?t:e(t)}function ug(e,t){return n=>e.reduce((r,l)=>(r[l]=al(t,n),r),{})}function cg(e,t,n,r){if(!t.includes(n))return null;const l=ag(n),i=ug(l,r),o=e[n];return Tt(e,o,i)}function Vd(e,t){const n=Ma(e.theme);return Object.keys(e).map(r=>cg(e,t,r,n)).reduce(Or,{})}function re(e){return Vd(e,Da)}re.propTypes={};re.filterProps=Da;function le(e){return Vd(e,Ia)}le.propTypes={};le.filterProps=Ia;function Yi(...e){const t=e.reduce((r,l)=>(l.filterProps.forEach(i=>{r[i]=l}),r),{}),n=r=>Object.keys(r).reduce((l,i)=>t[i]?Or(l,t[i](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}function Ye(e){return typeof e!="number"?e:`${e}px solid`}function et(e,t){return ae({prop:e,themeKey:"borders",transform:t})}const fg=et("border",Ye),dg=et("borderTop",Ye),pg=et("borderRight",Ye),hg=et("borderBottom",Ye),mg=et("borderLeft",Ye),gg=et("borderColor"),yg=et("borderTopColor"),vg=et("borderRightColor"),xg=et("borderBottomColor"),wg=et("borderLeftColor"),Sg=et("outline",Ye),kg=et("outlineColor"),Gi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:al(t,r)});return Tt(e,e.borderRadius,n)}return null};Gi.propTypes={};Gi.filterProps=["borderRadius"];Yi(fg,dg,pg,hg,mg,gg,yg,vg,xg,wg,Gi,Sg,kg);const Xi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sl(e.theme,"spacing",8),n=r=>({gap:al(t,r)});return Tt(e,e.gap,n)}return null};Xi.propTypes={};Xi.filterProps=["gap"];const Zi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({columnGap:al(t,r)});return Tt(e,e.columnGap,n)}return null};Zi.propTypes={};Zi.filterProps=["columnGap"];const qi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({rowGap:al(t,r)});return Tt(e,e.rowGap,n)}return null};qi.propTypes={};qi.filterProps=["rowGap"];const Cg=ae({prop:"gridColumn"}),_g=ae({prop:"gridRow"}),Eg=ae({prop:"gridAutoFlow"}),jg=ae({prop:"gridAutoColumns"}),Pg=ae({prop:"gridAutoRows"}),Ng=ae({prop:"gridTemplateColumns"}),Tg=ae({prop:"gridTemplateRows"}),$g=ae({prop:"gridTemplateAreas"}),Ag=ae({prop:"gridArea"});Yi(Xi,Zi,qi,Cg,_g,Eg,jg,Pg,Ng,Tg,$g,Ag);function Hn(e,t){return t==="grey"?t:e}const Rg=ae({prop:"color",themeKey:"palette",transform:Hn}),zg=ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hn}),Og=ae({prop:"backgroundColor",themeKey:"palette",transform:Hn});Yi(Rg,zg,Og);function Ie(e){return e<=1&&e!==0?`${e*100}%`:e}const Lg=ae({prop:"width",transform:Ie}),Fa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var l,i,o,s,a;const r=((o=(i=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:i.values)==null?void 0:o[n])||Qi[n];return r?((a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ie(n)}};return Tt(e,e.maxWidth,t)}return null};Fa.filterProps=["maxWidth"];const Dg=ae({prop:"minWidth",transform:Ie}),Ig=ae({prop:"height",transform:Ie}),Mg=ae({prop:"maxHeight",transform:Ie}),Fg=ae({prop:"minHeight",transform:Ie});ae({prop:"size",cssProperty:"width",transform:Ie});ae({prop:"size",cssProperty:"height",transform:Ie});const bg=ae({prop:"boxSizing"});Yi(Lg,Fa,Dg,Ig,Mg,Fg,bg);const Ji={border:{themeKey:"borders",transform:Ye},borderTop:{themeKey:"borders",transform:Ye},borderRight:{themeKey:"borders",transform:Ye},borderBottom:{themeKey:"borders",transform:Ye},borderLeft:{themeKey:"borders",transform:Ye},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ye},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gi},color:{themeKey:"palette",transform:Hn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hn},backgroundColor:{themeKey:"palette",transform:Hn},p:{style:le},pt:{style:le},pr:{style:le},pb:{style:le},pl:{style:le},px:{style:le},py:{style:le},padding:{style:le},paddingTop:{style:le},paddingRight:{style:le},paddingBottom:{style:le},paddingLeft:{style:le},paddingX:{style:le},paddingY:{style:le},paddingInline:{style:le},paddingInlineStart:{style:le},paddingInlineEnd:{style:le},paddingBlock:{style:le},paddingBlockStart:{style:le},paddingBlockEnd:{style:le},m:{style:re},mt:{style:re},mr:{style:re},mb:{style:re},ml:{style:re},mx:{style:re},my:{style:re},margin:{style:re},marginTop:{style:re},marginRight:{style:re},marginBottom:{style:re},marginLeft:{style:re},marginX:{style:re},marginY:{style:re},marginInline:{style:re},marginInlineStart:{style:re},marginInlineEnd:{style:re},marginBlock:{style:re},marginBlockStart:{style:re},marginBlockEnd:{style:re},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xi},rowGap:{style:qi},columnGap:{style:Zi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ie},maxWidth:{style:Fa},minWidth:{transform:Ie},height:{transform:Ie},maxHeight:{transform:Ie},minHeight:{transform:Ie},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Bg(...e){const t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Ug(e,t){return typeof e=="function"?e(t):e}function Wg(){function e(n,r,l,i){const o={[n]:r,theme:l},s=i[n];if(!s)return{[n]:r};const{cssProperty:a=n,themeKey:c,transform:m,style:g}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const y=Ki(l,c)||{};return g?g(o):Tt(o,r,v=>{let k=vi(y,m,v);return v===k&&typeof v=="string"&&(k=vi(y,m,`${n}${v==="default"?"":er(v)}`,v)),a===!1?k:{[a]:k}})}function t(n){const{sx:r,theme:l={},nested:i}=n||{};if(!r)return null;const o=l.unstable_sxConfig??Ji;function s(a){let c=a;if(typeof a=="function")c=a(l);else if(typeof a!="object")return a;if(!c)return null;const m=lg(l.breakpoints),g=Object.keys(m);let y=m;return Object.keys(c).forEach(S=>{const v=Ug(c[S],l);if(v!=null)if(typeof v=="object")if(o[S])y=Or(y,e(S,v,l,o));else{const k=Tt({theme:l},v,j=>({[S]:j}));Bg(k,v)?y[S]=t({sx:v,theme:l,nested:!0}):y=Or(y,k)}else y=Or(y,e(S,v,l,o))}),!i&&l.modularCssLayers?{"@layer sx":nc(l,lc(g,y))}:nc(l,lc(g,y))}return Array.isArray(r)?r.map(s):s(r)}return t}const tr=Wg();tr.filterProps=["sx"];function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?ye(or,--Le):0,nr--,ue===10&&(nr=1,to--),ue}function Be(){return ue=Le2||Jr(ue)>3?"":" "}function r0(e,t){for(;--t&&Be()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return ul(e,Vl()+(t<6&&yt()==32&&Be()==32))}function zs(e){for(;Be();)switch(ue){case e:return Le;case 34:case 39:e!==34&&e!==39&&zs(ue);break;case 40:e===41&&zs(e);break;case 92:Be();break}return Le}function l0(e,t){for(;Be()&&e+ue!==57;)if(e+ue===84&&yt()===47)break;return"/*"+ul(t,Le-1)+"*"+eo(e===47?e:Be())}function i0(e){for(;!Jr(yt());)Be();return ul(e,Le)}function o0(e){return Xd(Ql("",null,null,null,[""],e=Gd(e),0,[0],e))}function Ql(e,t,n,r,l,i,o,s,a){for(var c=0,m=0,g=o,y=0,S=0,v=0,k=1,j=1,p=1,f=0,h="",x=l,E=i,w=r,C=h;j;)switch(v=f,f=Be()){case 40:if(v!=108&&ye(C,g-1)==58){Rs(C+=V(Hl(f),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:C+=Hl(f);break;case 9:case 10:case 13:case 32:C+=n0(v);break;case 92:C+=r0(Vl()-1,7);continue;case 47:switch(yt()){case 42:case 47:$l(s0(l0(Be(),Vl()),t,n),a);break;default:C+="/"}break;case 123*k:s[c++]=dt(C)*p;case 125*k:case 59:case 0:switch(f){case 0:case 125:j=0;case 59+m:p==-1&&(C=V(C,/\f/g,"")),S>0&&dt(C)-g&&$l(S>32?sc(C+";",r,n,g-1):sc(V(C," ","")+";",r,n,g-2),a);break;case 59:C+=";";default:if($l(w=oc(C,t,n,c,m,l,s,h,x=[],E=[],g),i),f===123)if(m===0)Ql(C,t,w,w,x,i,g,s,E);else switch(y===99&&ye(C,3)===110?100:y){case 100:case 108:case 109:case 115:Ql(e,w,w,r&&$l(oc(e,w,w,0,0,l,s,h,l,x=[],g),E),l,E,g,s,r?x:E);break;default:Ql(C,w,w,w,[""],E,0,s,E)}}c=m=S=0,k=p=1,h=C="",g=o;break;case 58:g=1+dt(C),S=v;default:if(k<1){if(f==123)--k;else if(f==125&&k++==0&&t0()==125)continue}switch(C+=eo(f),f*k){case 38:p=m>0?1:(C+="\f",-1);break;case 44:s[c++]=(dt(C)-1)*p,p=1;break;case 64:yt()===45&&(C+=Hl(Be())),y=yt(),m=g=dt(h=C+=i0(Vl())),f++;break;case 45:v===45&&dt(C)==2&&(k=0)}}return i}function oc(e,t,n,r,l,i,o,s,a,c,m){for(var g=l-1,y=l===0?i:[""],S=Ua(y),v=0,k=0,j=0;v0?y[p]+" "+f:V(f,/&\f/g,y[p])))&&(a[j++]=h);return no(e,t,n,l===0?ba:s,a,c,m)}function s0(e,t,n){return no(e,t,n,Hd,eo(e0()),qr(e,2,-2),0)}function sc(e,t,n,r){return no(e,t,n,Ba,qr(e,0,r),qr(e,r+1,-1),r)}function Qn(e,t){for(var n="",r=Ua(e),l=0;l6)switch(ye(e,t+1)){case 109:if(ye(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+xi+(ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rs(e,"stretch")?qd(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ye(e,t+1)!==115)break;case 6444:switch(ye(e,dt(e)-3-(~Rs(e,"!important")&&10))){case 107:return V(e,":",":"+W)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(ye(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(ye(e,t+11)){case 114:return W+e+Ce+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+Ce+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+Ce+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+Ce+e+e}return e}var g0=function(t,n,r,l){if(t.length>-1&&!t.return)switch(t.type){case Ba:t.return=qd(t.value,t.length);break;case Qd:return Qn([gr(t,{value:V(t.value,"@","@"+W)})],l);case ba:if(t.length)return Jg(t.props,function(i){switch(qg(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qn([gr(t,{props:[V(i,/:(read-\w+)/,":"+xi+"$1")]})],l);case"::placeholder":return Qn([gr(t,{props:[V(i,/:(plac\w+)/,":"+W+"input-$1")]}),gr(t,{props:[V(i,/:(plac\w+)/,":"+xi+"$1")]}),gr(t,{props:[V(i,/:(plac\w+)/,Ce+"input-$1")]})],l)}return""})}},y0=[g0],v0=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(k){var j=k.getAttribute("data-emotion");j.indexOf(" ")!==-1&&(document.head.appendChild(k),k.setAttribute("data-s",""))})}var l=t.stylisPlugins||y0,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(k){for(var j=k.getAttribute("data-emotion").split(" "),p=1;p=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var C0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_0=/[A-Z]|^ms/g,E0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ep=function(t){return t.charCodeAt(1)===45},uc=function(t){return t!=null&&typeof t!="boolean"},Lo=Zd(function(e){return ep(e)?e:e.replace(_0,"-$&").toLowerCase()}),cc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(E0,function(r,l,i){return pt={name:l,styles:i,next:pt},l})}return C0[t]!==1&&!ep(t)&&typeof n=="number"&&n!==0?n+"px":n};function el(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var l=n;if(l.anim===1)return pt={name:l.name,styles:l.styles,next:pt},l.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)pt={name:o.name,styles:o.styles,next:pt},o=o.next;var s=i.styles+";";return s}return j0(e,t,n)}case"function":{if(e!==void 0){var a=pt,c=n(e);return pt=a,el(e,t,c)}break}}var m=n;if(t==null)return m;var g=t[m];return g!==void 0?g:m}function j0(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l96?O0:L0},pc=function(t,n,r){var l;if(n){var i=n.shouldForwardProp;l=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof l!="function"&&r&&(l=t.__emotion_forwardProp),l},D0=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return Jd(n,r,l),T0(function(){return S0(n,r,l)}),null},I0=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,i,o;n!==void 0&&(i=n.label,o=n.target);var s=pc(t,n,r),a=s||dc(l),c=!a("as");return function(){var m=arguments,g=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&g.push("label:"+i+";"),m[0]==null||m[0].raw===void 0)g.push.apply(g,m);else{var y=m[0];g.push(y[0]);for(var S=m.length,v=1;v{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function U0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...l}=e,i=B0(t),o=Object.keys(i);function s(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function a(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function c(y,S){const v=o.indexOf(S);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(v!==-1&&typeof t[o[v]]=="number"?t[o[v]]:S)-r/100}${n})`}function m(y){return o.indexOf(y)+1(r.length===0?[1]:r).map(i=>{const o=t(i);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function V0(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let l=n.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return n.palette.mode===e?t:{}}function lp(e={},...t){const{breakpoints:n={},palette:r={},spacing:l,shape:i={},...o}=e,s=U0(n),a=rp(l);let c=be({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:a,shape:{...W0,...i}},o);return c=ng(c),c.applyStyles=V0,c=t.reduce((m,g)=>be(m,g),c),c.unstable_sxConfig={...Ji,...o==null?void 0:o.unstable_sxConfig},c.unstable_sx=function(g){return tr({sx:g,theme:this})},c}const H0={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ip(e,t,n="Mui"){const r=H0[t];return r?`${n}-${r}`:`${Xm.generate(e)}-${t}`}function Q0(e,t,n="Mui"){const r={};return t.forEach(l=>{r[l]=ip(e,l,n)}),r}function op(e){const{variants:t,...n}=e,r={variants:t,style:dn(n),isProcessed:!0};return r.style===n||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=dn(l.style))}),r}const K0=lp();function Do(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function un(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Y0(e){return e?(t,n)=>n[e]:null}function G0(e,t,n){e.theme=q0(e.theme)?n:e.theme[t]||e.theme}function Kl(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(l=>Kl(e,l,n));if(Array.isArray(r==null?void 0:r.variants)){let l;if(r.isProcessed)l=n?un(r.style,n):r.style;else{const{variants:i,...o}=r;l=n?un(dn(o),n):o}return sp(e,r.variants,[l],n)}return r!=null&&r.isProcessed?n?un(dn(r.style),n):r.style:n?un(dn(r),n):r}function sp(e,t,n=[],r=void 0){var i;let l;e:for(let o=0;o{b0(s,w=>w.filter(C=>C!==tr));const{name:c,slot:m,skipVariantsResolver:g,skipSx:y,overridesResolver:S=Y0(ey(m)),...v}=a,k=c&&c.startsWith("Mui")||m?"components":"custom",j=g!==void 0?g:m&&m!=="Root"&&m!=="root"||!1,p=y||!1;let f=Do;m==="Root"||m==="root"?f=r:m?f=l:J0(s)&&(f=void 0);const h=F0(s,{shouldForwardProp:f,label:Z0(),...v}),x=w=>{if(w.__emotion_real===w)return w;if(typeof w=="function")return function(N){return Kl(N,w,N.theme.modularCssLayers?k:void 0)};if(St(w)){const C=op(w);return function(L){return C.variants?Kl(L,C,L.theme.modularCssLayers?k:void 0):L.theme.modularCssLayers?un(C.style,k):C.style}}return w},E=(...w)=>{const C=[],N=w.map(x),L=[];if(C.push(i),c&&S&&L.push(function(T){var we,A;const M=(A=(we=T.theme.components)==null?void 0:we[c])==null?void 0:A.styleOverrides;if(!M)return null;const U={};for(const I in M)U[I]=Kl(T,M[I],T.theme.modularCssLayers?"theme":void 0);return S(T,U)}),c&&!j&&L.push(function(T){var U,we;const $=T.theme,M=(we=(U=$==null?void 0:$.components)==null?void 0:U[c])==null?void 0:we.variants;return M?sp(T,M,[],T.theme.modularCssLayers?"theme":void 0):null}),p||L.push(tr),Array.isArray(N[0])){const d=N.shift(),T=new Array(C.length).fill(""),$=new Array(L.length).fill("");let M;M=[...T,...d,...$],M.raw=[...T,...d.raw,...$],C.unshift(M)}const O=[...C,...N,...L],D=h(...O);return s.muiName&&(D.muiName=s.muiName),D};return h.withConfig&&(E.withConfig=h.withConfig),E}}function Z0(e,t){return void 0}function q0(e){for(const t in e)return!1;return!0}function J0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ey(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ls(e,t,n=!1){const r={...t};for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){const i=l;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const o=e[i],s=t[i];if(!s)r[i]=o||{};else if(!o)r[i]=s;else{r[i]={...s};for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const c=a;r[i][c]=Ls(o[c],s[c],n)}}}else i==="className"&&n&&t.className?r.className=bd(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function ty(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Wa(e,t=0,n=1){return ty(e,t,n)}function ny(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Gt(e){if(e.type)return e;if(e.charAt(0)==="#")return Gt(ny(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(vn(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(vn(10,l))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:l}}const ry=e=>{const t=Gt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Cr=(e,t)=>{try{return ry(e)}catch{return e}};function ro(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((l,i)=>i<3?parseInt(l,10):l):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ap(e){e=Gt(e);const{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,i=r*Math.min(l,1-l),o=(c,m=(c+n/30)%12)=>l-i*Math.max(Math.min(m-3,9-m,1),-1);let s="rgb";const a=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",a.push(t[3])),ro({type:s,values:a})}function Ds(e){e=Gt(e);let t=e.type==="hsl"||e.type==="hsla"?Gt(ap(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ly(e,t){const n=Ds(e),r=Ds(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function up(e,t){return e=Gt(e),t=Wa(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ro(e)}function tn(e,t,n){try{return up(e,t)}catch{return e}}function lo(e,t){if(e=Gt(e),t=Wa(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ro(e)}function H(e,t,n){try{return lo(e,t)}catch{return e}}function io(e,t){if(e=Gt(e),t=Wa(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ro(e)}function Q(e,t,n){try{return io(e,t)}catch{return e}}function iy(e,t=.15){return Ds(e)>.5?lo(e,t):io(e,t)}function Al(e,t,n){try{return iy(e,t)}catch{return e}}const oy=z.createContext(void 0);function sy(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const l=t.components[n];return l.defaultProps?Ls(l.defaultProps,r,t.components.mergeClassNameAndStyle):!l.styleOverrides&&!l.variants?Ls(l,r,t.components.mergeClassNameAndStyle):r}function ay({props:e,name:t}){const n=z.useContext(oy);return sy({props:e,name:t,theme:{components:n}})}const mc={theme:void 0};function uy(e){let t,n;return function(l){let i=t;return(i===void 0||l.theme!==n)&&(mc.theme=l.theme,i=op(e(mc)),t=i,n=l.theme),i}}function cy(e=""){function t(...r){if(!r.length)return"";const l=r[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...r.slice(1))})`:`, ${l}`}return(r,...l)=>`var(--${e?`${e}-`:""}${r}${t(...l)})`}const gc=(e,t,n,r=[])=>{let l=e;t.forEach((i,o)=>{o===t.length-1?Array.isArray(l)?l[Number(i)]=n:l&&typeof l=="object"&&(l[i]=n):l&&typeof l=="object"&&(l[i]||(l[i]=r.includes(i)?[]:{}),l=l[i])})},fy=(e,t,n)=>{function r(l,i=[],o=[]){Object.entries(l).forEach(([s,a])=>{(!n||n&&!n([...i,s]))&&a!=null&&(typeof a=="object"&&Object.keys(a).length>0?r(a,[...i,s],Array.isArray(a)?[...o,s]:o):t([...i,s],a,o))})}r(e)},dy=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Io(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},l={},i={},o={};return fy(e,(s,a,c)=>{if((typeof a=="string"||typeof a=="number")&&(!r||!r(s,a))){const m=`--${n?`${n}-`:""}${s.join("-")}`,g=dy(s,a);Object.assign(l,{[m]:g}),gc(i,s,`var(${m})`,c),gc(o,s,`var(${m}, ${g})`,c)}},s=>s[0]==="vars"),{css:l,vars:i,varsWithDefaults:o}}function py(e,t={}){const{getSelector:n=p,disableCssColorScheme:r,colorSchemeSelector:l,enableContrastVars:i}=t,{colorSchemes:o={},components:s,defaultColorScheme:a="light",...c}=e,{vars:m,css:g,varsWithDefaults:y}=Io(c,t);let S=y;const v={},{[a]:k,...j}=o;if(Object.entries(j||{}).forEach(([x,E])=>{const{vars:w,css:C,varsWithDefaults:N}=Io(E,t);S=be(S,N),v[x]={css:C,vars:w}}),k){const{css:x,vars:E,varsWithDefaults:w}=Io(k,t);S=be(S,w),v[a]={css:x,vars:E}}function p(x,E){var C,N;let w=l;if(l==="class"&&(w=".%s"),l==="data"&&(w="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(w=`[${l}="%s"]`),x){if(w==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${((N=(C=o[x])==null?void 0:C.palette)==null?void 0:N.mode)||x})`]:{":root":E}};if(w)return e.defaultColorScheme===x?`:root, ${w.replace("%s",String(x))}`:w.replace("%s",String(x))}return":root"}return{vars:S,generateThemeVars:()=>{let x={...m};return Object.entries(v).forEach(([,{vars:E}])=>{x=be(x,E)}),x},generateStyleSheets:()=>{var L,O;const x=[],E=e.defaultColorScheme||"light";function w(D,d){Object.keys(d).length&&x.push(typeof D=="string"?{[D]:{...d}}:D)}w(n(void 0,{...g}),g);const{[E]:C,...N}=v;if(C){const{css:D}=C,d=(O=(L=o[E])==null?void 0:L.palette)==null?void 0:O.mode,T=!r&&d?{colorScheme:d,...D}:{...D};w(n(E,{...T}),T)}return Object.entries(N).forEach(([D,{css:d}])=>{var M,U;const T=(U=(M=o[D])==null?void 0:M.palette)==null?void 0:U.mode,$=!r&&T?{colorScheme:T,...d}:{...d};w(n(D,{...$}),$)}),i&&x.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),x}}}function hy(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const tl={black:"#000",white:"#fff"},my={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},kn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Cn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},yr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},_n={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},En={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},jn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function cp(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:tl.white,default:tl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const fp=cp();function dp(){return{text:{primary:tl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:tl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Is=dp();function yc(e,t,n,r){const l=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=io(e.main,l):t==="dark"&&(e.dark=lo(e.main,i)))}function vc(e,t,n,r,l){const i=l.light||l,o=l.dark||l*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function gy(e="light"){return e==="dark"?{main:_n[200],light:_n[50],dark:_n[400]}:{main:_n[700],light:_n[400],dark:_n[800]}}function yy(e="light"){return e==="dark"?{main:kn[200],light:kn[50],dark:kn[400]}:{main:kn[500],light:kn[300],dark:kn[700]}}function vy(e="light"){return e==="dark"?{main:Cn[500],light:Cn[300],dark:Cn[700]}:{main:Cn[700],light:Cn[400],dark:Cn[800]}}function xy(e="light"){return e==="dark"?{main:En[400],light:En[300],dark:En[700]}:{main:En[700],light:En[500],dark:En[900]}}function wy(e="light"){return e==="dark"?{main:jn[400],light:jn[300],dark:jn[700]}:{main:jn[800],light:jn[500],dark:jn[900]}}function Sy(e="light"){return e==="dark"?{main:yr[400],light:yr[300],dark:yr[700]}:{main:"#ed6c02",light:yr[500],dark:yr[900]}}function ky(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Va(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:l,...i}=e,o=e.primary||gy(t),s=e.secondary||yy(t),a=e.error||vy(t),c=e.info||xy(t),m=e.success||wy(t),g=e.warning||Sy(t);function y(j){return l?ky(j):ly(j,Is.text.primary)>=n?Is.text.primary:fp.text.primary}const S=({color:j,name:p,mainShade:f=500,lightShade:h=300,darkShade:x=700})=>{if(j={...j},!j.main&&j[f]&&(j.main=j[f]),!j.hasOwnProperty("main"))throw new Error(vn(11,p?` (${p})`:"",f));if(typeof j.main!="string")throw new Error(vn(12,p?` (${p})`:"",JSON.stringify(j.main)));return l?(vc(l,j,"light",h,r),vc(l,j,"dark",x,r)):(yc(j,"light",h,r),yc(j,"dark",x,r)),j.contrastText||(j.contrastText=y(j.main)),j};let v;return t==="light"?v=cp():t==="dark"&&(v=dp()),be({common:{...tl},mode:t,primary:S({color:o,name:"primary"}),secondary:S({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:a,name:"error"}),warning:S({color:g,name:"warning"}),info:S({color:c,name:"info"}),success:S({color:m,name:"success"}),grey:my,contrastThreshold:n,getContrastText:y,augmentColor:S,tonalOffset:r,...v},i)}function Cy(e){const t={};return Object.entries(e).forEach(r=>{const[l,i]=r;typeof i=="object"&&(t[l]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function _y(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Ey(e){return Math.round(e*1e5)/1e5}const xc={textTransform:"uppercase"},wc='"Roboto", "Helvetica", "Arial", sans-serif';function jy(e,t){const{fontFamily:n=wc,fontSize:r=14,fontWeightLight:l=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:a=16,allVariants:c,pxToRem:m,...g}=typeof t=="function"?t(e):t,y=r/14,S=m||(j=>`${j/a*y}rem`),v=(j,p,f,h,x)=>({fontFamily:n,fontWeight:j,fontSize:S(p),lineHeight:f,...n===wc?{letterSpacing:`${Ey(h/p)}em`}:{},...x,...c}),k={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(o,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(o,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(o,14,1.75,.4,xc),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,xc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return be({htmlFontSize:a,pxToRem:S,fontFamily:n,fontSize:r,fontWeightLight:l,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:s,...k},g,{clone:!1})}const Py=.2,Ny=.14,Ty=.12;function q(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Py})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ny})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ty})`].join(",")}const $y=["none",q(0,2,1,-1,0,1,1,0,0,1,3,0),q(0,3,1,-2,0,2,2,0,0,1,5,0),q(0,3,3,-2,0,3,4,0,0,1,8,0),q(0,2,4,-1,0,4,5,0,0,1,10,0),q(0,3,5,-1,0,5,8,0,0,1,14,0),q(0,3,5,-1,0,6,10,0,0,1,18,0),q(0,4,5,-2,0,7,10,1,0,2,16,1),q(0,5,5,-3,0,8,10,1,0,3,14,2),q(0,5,6,-3,0,9,12,1,0,3,16,2),q(0,6,6,-3,0,10,14,1,0,4,18,3),q(0,6,7,-4,0,11,15,1,0,4,20,3),q(0,7,8,-4,0,12,17,2,0,5,22,4),q(0,7,8,-4,0,13,19,2,0,5,24,4),q(0,7,9,-4,0,14,21,2,0,5,26,4),q(0,8,9,-5,0,15,22,2,0,6,28,5),q(0,8,10,-5,0,16,24,2,0,6,30,5),q(0,8,11,-5,0,17,26,2,0,6,32,5),q(0,9,11,-5,0,18,28,2,0,7,34,6),q(0,9,12,-6,0,19,29,2,0,7,36,6),q(0,10,13,-6,0,20,31,3,0,8,38,7),q(0,10,13,-6,0,21,33,3,0,8,40,7),q(0,10,14,-6,0,22,35,3,0,8,42,7),q(0,11,14,-7,0,23,36,3,0,9,44,8),q(0,11,15,-7,0,24,38,3,0,9,46,8)],Ay={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ry={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sc(e){return`${Math.round(e)}ms`}function zy(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Oy(e){const t={...Ay,...e.easing},n={...Ry,...e.duration};return{getAutoHeightDuration:zy,create:(l=["all"],i={})=>{const{duration:o=n.standard,easing:s=t.easeInOut,delay:a=0,...c}=i;return(Array.isArray(l)?l:[l]).map(m=>`${m} ${typeof o=="string"?o:Sc(o)} ${s} ${typeof a=="string"?a:Sc(a)}`).join(",")},...e,easing:t,duration:n}}const Ly={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Dy(e){return St(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function pp(e={}){const t={...e};function n(r){const l=Object.entries(r);for(let i=0;i{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;rBe(v,S),w),w.unstable_sxConfig={...qi,...g==null?void 0:g.unstable_sxConfig},w.unstable_sx=function(S){return tr({sx:S,theme:this})},w.toRuntimeSource=pp,Fy(w),w}function Dy(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const By=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Dy(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function hp(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function mp(e){return e==="dark"?By:[]}function Uy(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:l,...i}=e,o=ba({...t,colorSpace:l});return{palette:o,opacity:{...hp(o.mode),...n},overlays:r||mp(o.mode),...i}}function Wy(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Vy=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],by=e=>(t,n)=>{const r=e.rootSelector||":root",l=e.colorSchemeSelector;let i=l;if(l==="class"&&(i=".%s"),l==="data"&&(i="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(i=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return Vy(e.cssVarPrefix).forEach(s=>{o[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Hy(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function C(e,t,n){!e[t]&&n&&(e[t]=n)}function _r(e){return typeof e!="string"||!e.startsWith("hsl")?e:ap(e)}function vt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Cr(_r(e[t])))}function Qy(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ct=e=>{try{return e()}catch{}},Ky=(e="mui")=>cy(e);function Fo(e,t,n,r,l){if(!n)return;n=n===!0?{}:n;const i=l==="dark"?"dark":"light";if(!r){t[l]=Uy({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:o,...s}=Fs({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[l]={...n,palette:o,opacity:{...hp(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||mp(i)},s}function Yy(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:l=!1,cssVarPrefix:i="mui",nativeColor:o=!1,shouldSkipGeneratingVar:s=Wy,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...g}=e,m=Object.keys(n)[0],h=r||(n.light&&m!=="light"?"light":m),w=Ky(i),{[h]:v,light:S,dark:T,...d}=n,c={...d};let y=v;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(y=!0),!y)throw new Error(vn(21,h));let x;o&&(x="oklch");const E=Fo(x,c,y,g,h);S&&!c.light&&Fo(x,c,S,void 0,"light"),T&&!c.dark&&Fo(x,c,T,void 0,"dark");let k={defaultColorScheme:h,...E,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:u,getCssVar:w,colorSchemes:c,font:{...Cy(E.typography),...E.font},spacing:Qy(g.spacing)};Object.keys(k.colorSchemes).forEach(D=>{const f=k.colorSchemes[D].palette,z=L=>{const W=L.split("-"),we=W[1],j=W[2];return w(L,f[we][j])};f.mode==="light"&&(C(f.common,"background","#fff"),C(f.common,"onBackground","#000")),f.mode==="dark"&&(C(f.common,"background","#000"),C(f.common,"onBackground","#fff"));function N(L,W,we){if(x){let j;return L===tn&&(j=`transparent ${((1-we)*100).toFixed(0)}%`),L===H&&(j=`#000 ${(we*100).toFixed(0)}%`),L===Q&&(j=`#fff ${(we*100).toFixed(0)}%`),`color-mix(in ${x}, ${W}, ${j})`}return L(W,we)}if(Hy(f,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),f.mode==="light"){C(f.Alert,"errorColor",N(H,f.error.light,.6)),C(f.Alert,"infoColor",N(H,f.info.light,.6)),C(f.Alert,"successColor",N(H,f.success.light,.6)),C(f.Alert,"warningColor",N(H,f.warning.light,.6)),C(f.Alert,"errorFilledBg",z("palette-error-main")),C(f.Alert,"infoFilledBg",z("palette-info-main")),C(f.Alert,"successFilledBg",z("palette-success-main")),C(f.Alert,"warningFilledBg",z("palette-warning-main")),C(f.Alert,"errorFilledColor",ct(()=>f.getContrastText(f.error.main))),C(f.Alert,"infoFilledColor",ct(()=>f.getContrastText(f.info.main))),C(f.Alert,"successFilledColor",ct(()=>f.getContrastText(f.success.main))),C(f.Alert,"warningFilledColor",ct(()=>f.getContrastText(f.warning.main))),C(f.Alert,"errorStandardBg",N(Q,f.error.light,.9)),C(f.Alert,"infoStandardBg",N(Q,f.info.light,.9)),C(f.Alert,"successStandardBg",N(Q,f.success.light,.9)),C(f.Alert,"warningStandardBg",N(Q,f.warning.light,.9)),C(f.Alert,"errorIconColor",z("palette-error-main")),C(f.Alert,"infoIconColor",z("palette-info-main")),C(f.Alert,"successIconColor",z("palette-success-main")),C(f.Alert,"warningIconColor",z("palette-warning-main")),C(f.AppBar,"defaultBg",z("palette-grey-100")),C(f.Avatar,"defaultBg",z("palette-grey-400")),C(f.Button,"inheritContainedBg",z("palette-grey-300")),C(f.Button,"inheritContainedHoverBg",z("palette-grey-A100")),C(f.Chip,"defaultBorder",z("palette-grey-400")),C(f.Chip,"defaultAvatarColor",z("palette-grey-700")),C(f.Chip,"defaultIconColor",z("palette-grey-700")),C(f.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),C(f.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),C(f.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),C(f.LinearProgress,"primaryBg",N(Q,f.primary.main,.62)),C(f.LinearProgress,"secondaryBg",N(Q,f.secondary.main,.62)),C(f.LinearProgress,"errorBg",N(Q,f.error.main,.62)),C(f.LinearProgress,"infoBg",N(Q,f.info.main,.62)),C(f.LinearProgress,"successBg",N(Q,f.success.main,.62)),C(f.LinearProgress,"warningBg",N(Q,f.warning.main,.62)),C(f.Skeleton,"bg",x?N(tn,f.text.primary,.11):`rgba(${z("palette-text-primaryChannel")} / 0.11)`),C(f.Slider,"primaryTrack",N(Q,f.primary.main,.62)),C(f.Slider,"secondaryTrack",N(Q,f.secondary.main,.62)),C(f.Slider,"errorTrack",N(Q,f.error.main,.62)),C(f.Slider,"infoTrack",N(Q,f.info.main,.62)),C(f.Slider,"successTrack",N(Q,f.success.main,.62)),C(f.Slider,"warningTrack",N(Q,f.warning.main,.62));const L=x?N(H,f.background.default,.6825):zl(f.background.default,.8);C(f.SnackbarContent,"bg",L),C(f.SnackbarContent,"color",ct(()=>x?Ms.text.primary:f.getContrastText(L))),C(f.SpeedDialAction,"fabHoverBg",zl(f.background.paper,.15)),C(f.StepConnector,"border",z("palette-grey-400")),C(f.StepContent,"border",z("palette-grey-400")),C(f.Switch,"defaultColor",z("palette-common-white")),C(f.Switch,"defaultDisabledColor",z("palette-grey-100")),C(f.Switch,"primaryDisabledColor",N(Q,f.primary.main,.62)),C(f.Switch,"secondaryDisabledColor",N(Q,f.secondary.main,.62)),C(f.Switch,"errorDisabledColor",N(Q,f.error.main,.62)),C(f.Switch,"infoDisabledColor",N(Q,f.info.main,.62)),C(f.Switch,"successDisabledColor",N(Q,f.success.main,.62)),C(f.Switch,"warningDisabledColor",N(Q,f.warning.main,.62)),C(f.TableCell,"border",N(Q,N(tn,f.divider,1),.88)),C(f.Tooltip,"bg",N(tn,f.grey[700],.92))}if(f.mode==="dark"){C(f.Alert,"errorColor",N(Q,f.error.light,.6)),C(f.Alert,"infoColor",N(Q,f.info.light,.6)),C(f.Alert,"successColor",N(Q,f.success.light,.6)),C(f.Alert,"warningColor",N(Q,f.warning.light,.6)),C(f.Alert,"errorFilledBg",z("palette-error-dark")),C(f.Alert,"infoFilledBg",z("palette-info-dark")),C(f.Alert,"successFilledBg",z("palette-success-dark")),C(f.Alert,"warningFilledBg",z("palette-warning-dark")),C(f.Alert,"errorFilledColor",ct(()=>f.getContrastText(f.error.dark))),C(f.Alert,"infoFilledColor",ct(()=>f.getContrastText(f.info.dark))),C(f.Alert,"successFilledColor",ct(()=>f.getContrastText(f.success.dark))),C(f.Alert,"warningFilledColor",ct(()=>f.getContrastText(f.warning.dark))),C(f.Alert,"errorStandardBg",N(H,f.error.light,.9)),C(f.Alert,"infoStandardBg",N(H,f.info.light,.9)),C(f.Alert,"successStandardBg",N(H,f.success.light,.9)),C(f.Alert,"warningStandardBg",N(H,f.warning.light,.9)),C(f.Alert,"errorIconColor",z("palette-error-main")),C(f.Alert,"infoIconColor",z("palette-info-main")),C(f.Alert,"successIconColor",z("palette-success-main")),C(f.Alert,"warningIconColor",z("palette-warning-main")),C(f.AppBar,"defaultBg",z("palette-grey-900")),C(f.AppBar,"darkBg",z("palette-background-paper")),C(f.AppBar,"darkColor",z("palette-text-primary")),C(f.Avatar,"defaultBg",z("palette-grey-600")),C(f.Button,"inheritContainedBg",z("palette-grey-800")),C(f.Button,"inheritContainedHoverBg",z("palette-grey-700")),C(f.Chip,"defaultBorder",z("palette-grey-700")),C(f.Chip,"defaultAvatarColor",z("palette-grey-300")),C(f.Chip,"defaultIconColor",z("palette-grey-300")),C(f.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),C(f.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),C(f.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),C(f.LinearProgress,"primaryBg",N(H,f.primary.main,.5)),C(f.LinearProgress,"secondaryBg",N(H,f.secondary.main,.5)),C(f.LinearProgress,"errorBg",N(H,f.error.main,.5)),C(f.LinearProgress,"infoBg",N(H,f.info.main,.5)),C(f.LinearProgress,"successBg",N(H,f.success.main,.5)),C(f.LinearProgress,"warningBg",N(H,f.warning.main,.5)),C(f.Skeleton,"bg",x?N(tn,f.text.primary,.13):`rgba(${z("palette-text-primaryChannel")} / 0.13)`),C(f.Slider,"primaryTrack",N(H,f.primary.main,.5)),C(f.Slider,"secondaryTrack",N(H,f.secondary.main,.5)),C(f.Slider,"errorTrack",N(H,f.error.main,.5)),C(f.Slider,"infoTrack",N(H,f.info.main,.5)),C(f.Slider,"successTrack",N(H,f.success.main,.5)),C(f.Slider,"warningTrack",N(H,f.warning.main,.5));const L=x?N(Q,f.background.default,.985):zl(f.background.default,.98);C(f.SnackbarContent,"bg",L),C(f.SnackbarContent,"color",ct(()=>x?fp.text.primary:f.getContrastText(L))),C(f.SpeedDialAction,"fabHoverBg",zl(f.background.paper,.15)),C(f.StepConnector,"border",z("palette-grey-600")),C(f.StepContent,"border",z("palette-grey-600")),C(f.Switch,"defaultColor",z("palette-grey-300")),C(f.Switch,"defaultDisabledColor",z("palette-grey-600")),C(f.Switch,"primaryDisabledColor",N(H,f.primary.main,.55)),C(f.Switch,"secondaryDisabledColor",N(H,f.secondary.main,.55)),C(f.Switch,"errorDisabledColor",N(H,f.error.main,.55)),C(f.Switch,"infoDisabledColor",N(H,f.info.main,.55)),C(f.Switch,"successDisabledColor",N(H,f.success.main,.55)),C(f.Switch,"warningDisabledColor",N(H,f.warning.main,.55)),C(f.TableCell,"border",N(H,N(tn,f.divider,1),.68)),C(f.Tooltip,"bg",N(tn,f.grey[700],.92))}vt(f.background,"default"),vt(f.background,"paper"),vt(f.common,"background"),vt(f.common,"onBackground"),vt(f,"divider"),Object.keys(f).forEach(L=>{const W=f[L];L!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&C(f[L],"mainChannel",Cr(_r(W.main))),W.light&&C(f[L],"lightChannel",Cr(_r(W.light))),W.dark&&C(f[L],"darkChannel",Cr(_r(W.dark))),W.contrastText&&C(f[L],"contrastTextChannel",Cr(_r(W.contrastText))),L==="text"&&(vt(f[L],"primary"),vt(f[L],"secondary")),L==="action"&&(W.active&&vt(f[L],"active"),W.selected&&vt(f[L],"selected")))})}),k=t.reduce((D,f)=>Be(D,f),k);const _={prefix:i,disableCssColorScheme:l,shouldSkipGeneratingVar:s,getSelector:by(k),enableContrastVars:o},{vars:$,generateThemeVars:M,generateStyleSheets:A}=py(k,_);return k.vars=$,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([D,f])=>{k[D]=f}),k.generateThemeVars=M,k.generateStyleSheets=A,k.generateSpacing=function(){return rp(g.spacing,Fa(this))},k.getColorSchemeSelector=hy(a),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=s,k.unstable_sxConfig={...qi,...g==null?void 0:g.unstable_sxConfig},k.unstable_sx=function(f){return tr({sx:f,theme:this})},k.toRuntimeSource=pp,k}function Cc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ba({...n===!0?{}:n.palette,mode:t})})}function Gy(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:l=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...o}=e,s=i||"light",a=l==null?void 0:l[s],u={...l,...n?{[s]:{...typeof a!="boolean"&&a,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Fs(e,...t);let g=n;"palette"in e||u[s]&&(u[s]!==!0?g=u[s].palette:s==="dark"&&(g={mode:"dark"}));const m=Fs({...e,palette:g},...t);return m.defaultColorScheme=s,m.colorSchemes=u,m.palette.mode==="light"&&(m.colorSchemes.light={...u.light!==!0&&u.light,palette:m.palette},Cc(m,"dark",u.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:m.palette},Cc(m,"light",u.light)),m}return!n&&!("light"in u)&&s==="light"&&(u.light=!0),Yy({...o,colorSchemes:u,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Xy=Gy(),Zy="$$material";function Jy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qy=e=>Jy(e)&&e!=="classes",ev=X0({themeId:Zy,defaultTheme:Xy,rootShouldForwardProp:qy}),tv=uy;function nv(e){return ay(e)}function rv(e){return ip("MuiSvgIcon",e)}Q0("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lv=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${er(t)}`,`fontSize${er(n)}`]};return Zm(l,rv,r)},iv=ev("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${er(n.color)}`],t[`fontSize${er(n.fontSize)}`]]}})(tv(({theme:e})=>{var t,n,r,l,i,o,s,a,u,g,m,h,w,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(l=(t=e.transitions)==null?void 0:t.create)==null?void 0:l.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((a=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:a.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:g.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var T,d;return{props:{color:S},style:{color:(d=(T=(e.vars??e).palette)==null?void 0:T[S])==null?void 0:d.main}}}),{props:{color:"action"},style:{color:(h=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(v=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ds=I.forwardRef(function(t,n){const r=nv({props:t,name:"MuiSvgIcon"}),{children:l,className:i,color:o="inherit",component:s="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:g=!1,titleAccess:m,viewBox:h="0 0 24 24",...w}=r,v=I.isValidElement(l)&&l.type==="svg",S={...r,color:o,component:s,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:g,viewBox:h,hasSvgAsChild:v},T={};g||(T.viewBox=h);const d=lv(S);return p.jsxs(iv,{as:s,className:Bd(d.root,i),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...T,...w,...v&&l.props,ownerState:S,children:[v?l.props.children:l,m?p.jsx("title",{children:m}):null]})});Ds.muiName="SvgIcon";function tt(e,t){function n(r,l){return p.jsx(Ds,{"data-testid":void 0,ref:l,...r,children:e})}return n.muiName=Ds.muiName,I.memo(I.forwardRef(n))}const gp=tt(p.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"})),ov=tt(p.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"})),sv=tt(p.jsx("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4zM18 14H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"})),yp=tt(p.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),vp=tt(p.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),av=tt(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),uv=tt(p.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),cv=tt(p.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 11-2.5-1.5L14 13V5h5z"})),fv=tt(p.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}));function dv(){const[e,t]=I.useState({postsCount:0,pagesCount:0,commentsCount:0,usersCount:0,recentPosts:[],recentComments:[],loading:!0});I.useEffect(()=>{(async()=>{var i,o,s,a;try{const[u,g,m,h]=await Promise.all([fetch(`${((i=window.helixData)==null?void 0:i.restUrl)||"/wp-json/wp/v2/"}posts?per_page=5`),fetch(`${((o=window.helixData)==null?void 0:o.restUrl)||"/wp-json/wp/v2/"}pages?per_page=5`),fetch(`${((s=window.helixData)==null?void 0:s.restUrl)||"/wp-json/wp/v2/"}comments?per_page=5`),fetch(`${((a=window.helixData)==null?void 0:a.restUrl)||"/wp-json/wp/v2/"}users?per_page=5`)]),[w,v,S,T]=await Promise.all([u.json(),g.json(),m.json(),h.json()]);t({postsCount:u.headers.get("X-WP-Total")||w.length,pagesCount:g.headers.get("X-WP-Total")||v.length,commentsCount:m.headers.get("X-WP-Total")||S.length,usersCount:h.headers.get("X-WP-Total")||T.length,recentPosts:w.slice(0,5),recentComments:S.slice(0,5),loading:!1})}catch{t(g=>({...g,loading:!1}))}})()},[]);const n=({title:l,count:i,icon:o,color:s,trend:a})=>p.jsxs("div",{className:`helix-stats-card helix-stats-card--${s}`,children:[p.jsx("div",{className:"helix-stats-card__icon",children:p.jsx(o,{})}),p.jsxs("div",{className:"helix-stats-card__content",children:[p.jsxs("div",{className:"helix-stats-card__header",children:[p.jsx("h3",{className:"helix-stats-card__count",children:i}),a&&p.jsxs("div",{className:"helix-stats-card__trend",children:[p.jsx(fv,{className:"helix-trend-icon"}),p.jsx("span",{children:a})]})]}),p.jsx("p",{className:"helix-stats-card__title",children:l})]})]}),r=l=>new Date(l).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return e.loading?p.jsx("div",{className:"helix-settings-page",children:p.jsxs("div",{className:"helix-loading",children:[p.jsx("div",{className:"helix-spinner"}),p.jsx("p",{children:"Loading dashboard..."})]})}):p.jsxs("div",{className:"helix-dashboard",children:[p.jsxs("div",{className:"helix-dashboard__header",children:[p.jsx("h1",{children:"Welcome to Helix"}),p.jsx("p",{children:"Your modern WordPress admin experience"})]}),p.jsxs("div",{className:"helix-dashboard__stats",children:[p.jsx(n,{title:"Posts",count:e.postsCount,icon:gp,color:"blue",trend:"+12%"}),p.jsx(n,{title:"Pages",count:e.pagesCount,icon:ov,color:"green",trend:"+5%"}),p.jsx(n,{title:"Comments",count:e.commentsCount,icon:sv,color:"orange",trend:"+28%"}),p.jsx(n,{title:"Users",count:e.usersCount,icon:yp,color:"purple",trend:"+3%"})]}),p.jsxs("div",{className:"helix-dashboard__content",children:[p.jsxs("div",{className:"helix-widget",children:[p.jsxs("div",{className:"helix-widget__header",children:[p.jsx("h2",{children:"Recent Posts"}),p.jsx("a",{href:"/wp-admin/edit.php",className:"helix-widget__link",children:"View All"})]}),p.jsx("div",{className:"helix-widget__content",children:e.recentPosts.length>0?p.jsx("ul",{className:"helix-posts-list",children:e.recentPosts.map(l=>p.jsxs("li",{className:"helix-posts-list__item",children:[p.jsxs("div",{className:"helix-posts-list__content",children:[p.jsx("h3",{className:"helix-posts-list__title",children:p.jsx("a",{href:`/wp-admin/post.php?post=${l.id}&action=edit`,children:l.title.rendered||"Untitled"})}),p.jsx("p",{className:"helix-posts-list__date",children:r(l.date)})]}),p.jsx("div",{className:"helix-posts-list__status",children:p.jsx("span",{className:`helix-status helix-status--${l.status}`,children:l.status})})]},l.id))}):p.jsxs("p",{className:"helix-widget__empty",children:["No posts yet."," ",p.jsx("a",{href:"/wp-admin/post-new.php",children:"Create your first post!"})]})})]}),p.jsxs("div",{className:"helix-widget",children:[p.jsxs("div",{className:"helix-widget__header",children:[p.jsx("h2",{children:"Recent Comments"}),p.jsx("a",{href:"/wp-admin/edit-comments.php",className:"helix-widget__link",children:"View All"})]}),p.jsx("div",{className:"helix-widget__content",children:e.recentComments.length>0?p.jsx("ul",{className:"helix-comments-list",children:e.recentComments.map(l=>p.jsxs("li",{className:"helix-comments-list__item",children:[p.jsxs("div",{className:"helix-comments-list__content",children:[p.jsx("h4",{className:"helix-comments-list__author",children:l.author_name}),p.jsxs("p",{className:"helix-comments-list__excerpt",children:[l.content.rendered.replace(/<[^>]*>/g,"").substring(0,100),"..."]}),p.jsx("p",{className:"helix-comments-list__date",children:r(l.date)})]}),p.jsx("div",{className:"helix-comments-list__status",children:p.jsx("span",{className:`helix-status helix-status--${l.status}`,children:l.status})})]},l.id))}):p.jsx("p",{className:"helix-widget__empty",children:"No comments yet."})})]}),p.jsxs("div",{className:"helix-widget",children:[p.jsx("div",{className:"helix-widget__header",children:p.jsx("h2",{children:"Quick Actions"})}),p.jsx("div",{className:"helix-widget__content",children:p.jsxs("div",{className:"helix-quick-actions",children:[p.jsxs("a",{href:"/wp-admin/post-new.php",className:"helix-quick-action",children:[p.jsx("span",{className:"helix-quick-action__icon",children:p.jsx(vp,{})}),p.jsx("span",{className:"helix-quick-action__text",children:"Write a Post"})]}),p.jsxs("a",{href:"/wp-admin/post-new.php?post_type=page",className:"helix-quick-action",children:[p.jsx("span",{className:"helix-quick-action__icon",children:p.jsx(av,{})}),p.jsx("span",{className:"helix-quick-action__text",children:"Create a Page"})]}),p.jsxs("a",{href:"/wp-admin/upload.php",className:"helix-quick-action",children:[p.jsx("span",{className:"helix-quick-action__icon",children:p.jsx(uv,{})}),p.jsx("span",{className:"helix-quick-action__text",children:"Upload Media"})]}),p.jsxs("a",{href:"/wp-admin/edit-comments.php",className:"helix-quick-action",children:[p.jsx("span",{className:"helix-quick-action__icon",children:p.jsx(cv,{})}),p.jsx("span",{className:"helix-quick-action__text",children:"Moderate Comments"})]})]})})]}),p.jsxs("div",{className:"helix-widget",children:[p.jsx("div",{className:"helix-widget__header",children:p.jsx("h2",{children:"WordPress News"})}),p.jsxs("div",{className:"helix-widget__content",children:[p.jsx("p",{children:"Stay updated with the latest WordPress news and updates."}),p.jsx("div",{className:"helix-news-placeholder",children:p.jsxs("div",{className:"helix-news-item",children:[p.jsx("h4",{children:"WordPress 6.4 “Shirley” Released"}),p.jsx("p",{children:"The latest version includes new features and improvements..."}),p.jsx("a",{href:"https://wordpress.org/news/",target:"_blank",rel:"noopener noreferrer",children:"Read more"})]})})]})]})]})]})}const pv=()=>{var e;return((e=window.helixData)==null?void 0:e.restUrl)||"/wp-json/helix/v1/"},hv=()=>{var e;return((e=window.helixData)==null?void 0:e.nonce)||""},xp=async(e,t={})=>{const n=`${pv()}${e}`,r={headers:{"Content-Type":"application/json","X-WP-Nonce":hv()},credentials:"include"},l={...r,...t,headers:{...r.headers,...t.headers}};try{const i=await fetch(n,l);if(!i.ok){const o=await i.json().catch(()=>({}));throw new Error(o.message||`HTTP ${i.status}: ${i.statusText}`)}return await i.json()}catch(i){throw i}},mv=async()=>xp("settings"),gv=async e=>xp("settings",{method:"POST",body:JSON.stringify(e)}),yv=()=>{const[e,t]=I.useState({}),[n,r]=I.useState({}),[l,i]=I.useState(!0),[o,s]=I.useState(!1),[a,u]=I.useState(null),[g,m]=I.useState(!1),h=c=>c&&typeof c=="object"&&"value"in c?c.value:c,w=I.useCallback(async()=>{try{i(!0),u(null);const c=await mv(),y={};Object.keys(c).forEach(x=>{Object.keys(c[x]).forEach(E=>{const k=c[x][E];k.options&&Array.isArray(k.options)?y[E]=k:y[E]=k.value})}),t(y),r(y),m(!1)}catch(c){u(c.message)}finally{i(!1)}},[]),v=I.useCallback((c,y)=>{t(x=>{let E;x[c]&&typeof x[c]=="object"&&"options"in x[c]?E={...x,[c]:{...x[c],value:y}}:E={...x,[c]:y};const k=Object.keys(E).some(_=>h(E[_])!==h(n[_]));return m(k),E})},[n]),S=I.useCallback(async()=>{try{s(!0),u(null);const c={};if(Object.keys(e).forEach(x=>{const E=h(e[x]),k=h(n[x]);E!==k&&(c[x]=E)}),Object.keys(c).length===0)return{success:!0,message:"No changes to save"};const y=await gv(c);return r(e),m(!1),{success:!0,message:"Settings saved successfully",updated:y.updated,errors:y.errors}}catch(c){return u(c.message),{success:!1,message:c.message}}finally{s(!1)}},[e,n]),T=I.useCallback(()=>{t(n),m(!1),u(null)},[n]),d=I.useCallback(c=>{const y=h(n[c]);v(c,y)},[n,v]);return I.useEffect(()=>{w()},[w]),I.useEffect(()=>{const c=y=>{if(g)return y.preventDefault(),y.returnValue="You have unsaved changes. Are you sure you want to leave?",y.returnValue};return window.addEventListener("beforeunload",c),()=>window.removeEventListener("beforeunload",c)},[g]),{settings:e,loading:l,saving:o,error:a,hasUnsavedChanges:g,updateSetting:v,saveSettings:S,resetSettings:T,resetSetting:d,loadSettings:w}},vv=tt(p.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),xv=tt(p.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),wv=tt(p.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),Sv=({activeTab:e,onTabChange:t,hasUnsavedChanges:n})=>{const r=[{id:"site",label:"Site Information",icon:vv},{id:"content",label:"Content & Reading",icon:gp},{id:"writing",label:"Writing & Publishing",icon:vp},{id:"media",label:"Media & Assets",icon:xv},{id:"users",label:"Users & Membership",icon:yp},{id:"helix",label:"Helix Settings",icon:wv}];return p.jsx("div",{className:"helix-settings-tabs",children:p.jsx("nav",{className:"helix-tabs-nav",role:"tablist",children:r.map(l=>p.jsxs("button",{type:"button",role:"tab","aria-selected":e===l.id,"aria-controls":`${l.id}-panel`,className:`helix-tab ${e===l.id?"active":""}`,onClick:()=>t(l.id),children:[p.jsx("span",{className:"helix-tab-icon",children:p.jsx(l.icon,{})}),p.jsx("span",{className:"helix-tab-label",children:l.label}),n&&p.jsx("span",{className:"helix-tab-indicator",title:"Unsaved changes",children:"●"})]},l.id))})})},kv=({onSave:e,onReset:t,saving:n=!1,hasUnsavedChanges:r=!1,disabled:l=!1})=>p.jsxs("div",{className:"helix-save-buttons",children:[p.jsx("button",{type:"button",onClick:e,disabled:l||n||!r,className:`helix-btn helix-btn-primary ${n?"saving":""}`,children:n?p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"helix-spinner"}),"Saving..."]}):"Save Changes"}),r&&!n&&p.jsx("button",{type:"button",onClick:t,className:"helix-btn helix-btn-secondary",children:"Reset Changes"}),!r&&!n&&p.jsx("span",{className:"helix-save-status",children:"✓ All changes saved"})]}),_c=({type:e="info",message:t,onClose:n,autoClose:r=!0,duration:l=5e3})=>{const[i,o]=I.useState(!0);if(I.useEffect(()=>{if(r&&l>0){const a=setTimeout(()=>{o(!1),setTimeout(()=>n==null?void 0:n(),300)},l);return()=>clearTimeout(a)}},[r,l,n]),!i)return null;const s=()=>{switch(e){case"success":return"✅";case"error":return"❌";case"warning":return"⚠️";default:return"ℹ️"}};return p.jsx("div",{className:`helix-notification helix-notification-${e} ${i?"visible":""}`,children:p.jsxs("div",{className:"helix-notification-content",children:[p.jsx("span",{className:"helix-notification-icon",children:s()}),p.jsx("span",{className:"helix-notification-message",children:t}),n&&p.jsx("button",{type:"button",onClick:()=>{o(!1),setTimeout(()=>n(),300)},className:"helix-notification-close","aria-label":"Close notification",children:"×"})]})})},sr=({title:e,description:t,children:n,className:r=""})=>p.jsxs("div",{className:`helix-settings-section ${r}`,children:[e&&p.jsxs("div",{className:"helix-settings-section-header",children:[p.jsx("h3",{className:"helix-settings-section-title",children:e}),t&&p.jsx("p",{className:"helix-settings-section-description",children:t})]}),p.jsx("div",{className:"helix-settings-section-content",children:n})]}),oo=({label:e,description:t,error:n,required:r=!1,children:l,className:i=""})=>p.jsxs("div",{className:`helix-form-field ${i}`,children:[e&&p.jsxs("label",{className:"helix-form-label",children:[e,r&&p.jsx("span",{className:"helix-required",children:"*"})]}),p.jsx("div",{className:"helix-form-control",children:l}),t&&p.jsx("p",{className:"helix-form-description",children:t}),n&&p.jsx("p",{className:"helix-form-error",children:n})]}),ln=({label:e,description:t,value:n,onChange:r,placeholder:l="",type:i="text",required:o=!1,disabled:s=!1,error:a=null,className:u="",...g})=>{const m=h=>{r(h.target.value)};return p.jsx(oo,{label:e,description:t,error:a,required:o,className:u,children:p.jsx("input",{type:i,value:n||"",onChange:m,placeholder:l,required:o,disabled:s,className:"helix-text-input",...g})})},Qt=({label:e,description:t,value:n,onChange:r,options:l=[],required:i=!1,disabled:o=!1,error:s=null,className:a="",placeholder:u="Select an option...",...g})=>{const m=h=>{r(h.target.value)};return p.jsx(oo,{label:e,description:t,error:s,required:i,className:a,children:p.jsxs("select",{value:n||"",onChange:m,required:i,disabled:o,className:"helix-select-input",...g,children:[u&&p.jsx("option",{value:"",disabled:!0,children:u}),l.map(h=>p.jsx("option",{value:h.value,children:h.label},h.value))]})})},Ec=({settings:e,updateSetting:t})=>{var n,r,l,i;return p.jsx(sr,{title:"Site Information",description:"Basic information about your WordPress site",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(ln,{label:"Site Title",description:"In a few words, explain what this site is about.",value:e.siteTitle,onChange:o=>t("siteTitle",o),placeholder:"My Awesome Site",required:!0}),p.jsx(ln,{label:"Tagline",description:"A brief description of your site, usually displayed under the title.",value:e.tagline,onChange:o=>t("tagline",o),placeholder:"Just another WordPress site"}),p.jsx(ln,{label:"WordPress Address (URL)",description:"The address of your WordPress core files.",value:e.siteUrl,onChange:o=>t("siteUrl",o),type:"url",placeholder:"https://example.com"}),p.jsx(ln,{label:"Site Address (URL)",description:"The address you want people to type in their browser to reach your website.",value:e.homeUrl,onChange:o=>t("homeUrl",o),type:"url",placeholder:"https://example.com"}),p.jsx(ln,{label:"Administration Email Address",description:"This address is used for admin purposes, like new user notification.",value:e.adminEmail,onChange:o=>t("adminEmail",o),type:"email",placeholder:"admin@example.com",required:!0}),p.jsx(Qt,{label:"Site Language",description:"The language for your site interface.",value:((n=e.language)==null?void 0:n.value)||e.language||"",onChange:o=>t("language",o),options:((r=e.language)==null?void 0:r.options)||[],placeholder:"Select a language..."}),p.jsx(Qt,{label:"Timezone",description:"Choose either a city in the same timezone as you or a UTC timezone offset.",value:((l=e.timezone)==null?void 0:l.value)||e.timezone||"",onChange:o=>t("timezone",o),options:((i=e.timezone)==null?void 0:i.options)||[],placeholder:"Select a timezone..."})]})})},He=({label:e,description:t,value:n,onChange:r,min:l=null,max:i=null,step:o=1,required:s=!1,disabled:a=!1,error:u=null,className:g="",...m})=>{const h=w=>{const v=w.target.value;r(v===""?"":Number(v))};return p.jsx(oo,{label:e,description:t,error:u,required:s,className:g,children:p.jsx("input",{type:"number",value:n||"",onChange:h,min:l,max:i,step:o,required:s,disabled:a,className:"helix-number-input",...m})})},cl=({label:e,description:t,value:n,onChange:r,required:l=!1,disabled:i=!1,error:o=null,className:s="",id:a=`toggle-${Math.random().toString(36).substr(2,9)}`,...u})=>{const g=()=>{i||r(!n)};return p.jsx(oo,{description:t,error:o,required:l,className:`helix-toggle-field ${s}`,children:p.jsxs("div",{className:"helix-toggle-wrapper",children:[e&&p.jsx("label",{htmlFor:a,className:`helix-toggle-label ${i?"helix-toggle-label-disabled":""}`,children:e}),p.jsx("button",{id:a,type:"button",role:"switch","aria-checked":!!n,onClick:g,disabled:i,className:`helix-toggle-switch ${n?"helix-toggle-switch-on":"helix-toggle-switch-off"} ${i?"helix-toggle-switch-disabled":""}`,...u,children:p.jsx("span",{className:`helix-toggle-knob ${n?"helix-toggle-knob-on":"helix-toggle-knob-off"}`})})]})})},Cv=({settings:e,updateSetting:t})=>{const n=[{value:"posts",label:"Your latest posts"},{value:"page",label:"A static page"}],r=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:2,label:"Tuesday"},{value:3,label:"Wednesday"},{value:4,label:"Thursday"},{value:5,label:"Friday"},{value:6,label:"Saturday"}];return p.jsx(sr,{title:"Content & Reading",description:"Settings that affect how your content is displayed",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(Qt,{label:"Your homepage displays",description:"What to show on the front page of your site.",value:e.showOnFront,onChange:l=>t("showOnFront",l),options:n}),e.showOnFront==="page"&&p.jsxs(p.Fragment,{children:[p.jsx(He,{label:"Homepage",description:"The page to show on the front page (Page ID).",value:e.pageOnFront,onChange:l=>t("pageOnFront",l),min:0}),p.jsx(He,{label:"Posts page",description:"The page to show posts (Page ID).",value:e.pageForPosts,onChange:l=>t("pageForPosts",l),min:0})]}),p.jsx(He,{label:"Blog pages show at most",description:"Number of posts to show per page.",value:e.postsPerPage,onChange:l=>t("postsPerPage",l),min:1,max:100}),p.jsx(cl,{label:"Discourage search engines from indexing this site",description:"This will discourage, but not prevent, search engines from indexing this site.",value:!e.blogPublic,onChange:l=>t("blogPublic",!l)}),p.jsx(ln,{label:"Date Format",description:"Format for displaying dates throughout your site.",value:e.dateFormat,onChange:l=>t("dateFormat",l),placeholder:"F j, Y"}),p.jsx(ln,{label:"Time Format",description:"Format for displaying times throughout your site.",value:e.timeFormat,onChange:l=>t("timeFormat",l),placeholder:"g:i a"}),p.jsx(Qt,{label:"Week Starts On",description:"The day of the week the calendar should start on.",value:e.startOfWeek,onChange:l=>t("startOfWeek",parseInt(l)),options:r})]})})},_v=({settings:e,updateSetting:t})=>{const n=[{value:"standard",label:"Standard"},{value:"aside",label:"Aside"},{value:"gallery",label:"Gallery"},{value:"image",label:"Image"},{value:"link",label:"Link"},{value:"quote",label:"Quote"},{value:"status",label:"Status"},{value:"video",label:"Video"},{value:"audio",label:"Audio"},{value:"chat",label:"Chat"}],r=[{value:"open",label:"Open"},{value:"closed",label:"Closed"}];return p.jsx(sr,{title:"Writing & Publishing",description:"Settings for content creation and publishing",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(He,{label:"Default Post Category",description:"The default category for new posts (Category ID).",value:e.defaultCategory,onChange:l=>t("defaultCategory",l),min:1}),p.jsx(Qt,{label:"Default Post Format",description:"The default format for new posts.",value:e.defaultPostFormat,onChange:l=>t("defaultPostFormat",l),options:n}),p.jsx(cl,{label:"Convert emoticons like :-) and :-P to graphics on display",description:"Transform text emoticons into graphical representations.",value:e.useSmilies,onChange:l=>t("useSmilies",l)}),p.jsx(Qt,{label:"Default comment status",description:"Allow people to submit comments on new posts.",value:e.defaultCommentStatus,onChange:l=>t("defaultCommentStatus",l),options:r}),p.jsx(Qt,{label:"Default ping status",description:"Allow link notifications from other blogs (pingbacks and trackbacks) on new posts.",value:e.defaultPingStatus,onChange:l=>t("defaultPingStatus",l),options:r})]})})},Ev=({settings:e,updateSetting:t})=>p.jsx(sr,{title:"Media & Assets",description:"Settings for media files, images, and site branding",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(He,{label:"Site Logo",description:"The site logo (Media ID). Upload a logo in Media Library and enter its ID here.",value:e.siteLogo,onChange:n=>t("siteLogo",n),min:0}),p.jsx(He,{label:"Site Icon (Favicon)",description:"The site icon/favicon (Media ID). Upload an icon in Media Library and enter its ID here.",value:e.siteIcon,onChange:n=>t("siteIcon",n),min:0}),p.jsx("div",{className:"helix-settings-subsection-header",children:p.jsx("h4",{children:"Image Sizes"})}),p.jsx(He,{label:"Thumbnail Width",description:"Maximum width of thumbnail images in pixels.",value:e.thumbnailSizeW,onChange:n=>t("thumbnailSizeW",n),min:0,max:2e3}),p.jsx(He,{label:"Thumbnail Height",description:"Maximum height of thumbnail images in pixels.",value:e.thumbnailSizeH,onChange:n=>t("thumbnailSizeH",n),min:0,max:2e3}),p.jsx(He,{label:"Medium Width",description:"Maximum width of medium-sized images in pixels.",value:e.mediumSizeW,onChange:n=>t("mediumSizeW",n),min:0,max:2e3}),p.jsx(He,{label:"Medium Height",description:"Maximum height of medium-sized images in pixels.",value:e.mediumSizeH,onChange:n=>t("mediumSizeH",n),min:0,max:2e3}),p.jsx(He,{label:"Large Width",description:"Maximum width of large-sized images in pixels.",value:e.largeSizeW,onChange:n=>t("largeSizeW",n),min:0,max:4e3}),p.jsx(He,{label:"Large Height",description:"Maximum height of large-sized images in pixels.",value:e.largeSizeH,onChange:n=>t("largeSizeH",n),min:0,max:4e3}),p.jsx(cl,{label:"Organize my uploads into month- and year-based folders",description:"Organize uploaded files into date-based folder structure.",value:e.uploadsUseYearmonthFolders,onChange:n=>t("uploadsUseYearmonthFolders",n)})]})}),Tv=({settings:e,updateSetting:t})=>{const n=[{value:"subscriber",label:"Subscriber"},{value:"contributor",label:"Contributor"},{value:"author",label:"Author"},{value:"editor",label:"Editor"},{value:"administrator",label:"Administrator"}];return p.jsx(sr,{title:"Users & Membership",description:"Settings for user registration and default permissions",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(cl,{label:"Anyone can register",description:"Allow anyone to register as a user on your site.",value:e.usersCanRegister,onChange:r=>t("usersCanRegister",r)}),p.jsx(Qt,{label:"New User Default Role",description:"The default role assigned to new users when they register.",value:e.defaultRole,onChange:r=>t("defaultRole",r),options:n})]})})},Pv=({settings:e,updateSetting:t})=>p.jsx(sr,{title:"Helix Settings",description:"Settings specific to the Helix plugin",children:p.jsx("div",{className:"helix-settings-grid",children:p.jsx(cl,{label:"Use Default WordPress Admin",description:"Switch back to the default WordPress admin interface instead of using Helix.",value:e.helixUseDefaultAdmin,onChange:n=>t("helixUseDefaultAdmin",n)})})});function Nv(){const{settings:e,loading:t,saving:n,error:r,hasUnsavedChanges:l,updateSetting:i,saveSettings:o,resetSettings:s}=yv(),[a,u]=I.useState("site"),[g,m]=I.useState(null),h=()=>{window.scrollTo({top:0,behavior:"smooth"})},w=async()=>{const d=await o();d.success?m({type:"success",message:d.message||"Settings saved successfully!"}):m({type:"error",message:d.message||"Failed to save settings. Please try again."}),h()},v=()=>{s(),m({type:"info",message:"Changes have been reset to their original values."}),h()},S=d=>{l&&!window.confirm("You have unsaved changes. Are you sure you want to switch tabs? Your changes will be lost.")||u(d)},T=()=>{const d={settings:e,updateSetting:i};switch(a){case"site":return p.jsx(Ec,{...d});case"content":return p.jsx(Cv,{...d});case"writing":return p.jsx(_v,{...d});case"media":return p.jsx(Ev,{...d});case"users":return p.jsx(Tv,{...d});case"helix":return p.jsx(Pv,{...d});default:return p.jsx(Ec,{...d})}};return t?p.jsx("div",{className:"helix-settings-page",children:p.jsxs("div",{className:"helix-loading",children:[p.jsx("div",{className:"helix-spinner"}),p.jsx("p",{children:"Loading settings..."})]})}):p.jsxs("div",{className:"helix-settings-page",children:[p.jsxs("div",{className:"helix-settings-header",children:[p.jsx("h1",{children:"Settings"}),p.jsx("p",{children:"Manage your WordPress site configuration"})]}),r&&p.jsx(_c,{type:"error",message:r,onClose:()=>{},autoClose:!1}),g&&p.jsx(_c,{type:g.type,message:g.message,onClose:()=>m(null)}),p.jsx(Sv,{activeTab:a,onTabChange:S,hasUnsavedChanges:l}),p.jsx("div",{className:"helix-settings-content",children:p.jsx("div",{id:`${a}-panel`,role:"tabpanel","aria-labelledby":`${a}-tab`,className:"helix-tab-panel",children:T()})}),p.jsx("div",{className:"helix-settings-footer",children:p.jsx(kv,{onSave:w,onReset:v,saving:n,hasUnsavedChanges:l})})]})}function jv(){return p.jsx(dv,{})}function $v(){return p.jsxs("div",{className:"helix-page",children:[p.jsx("h1",{children:"Posts Management"}),p.jsx("p",{children:"Posts management interface will be implemented here."})]})}function zv(){return p.jsxs("div",{className:"helix-page",children:[p.jsx("h1",{children:"Users Management"}),p.jsx("p",{children:"Users management interface will be implemented here."})]})}document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("helix-root");e&&kr(e).render(p.jsx(jv,{}));const t=document.getElementById("helix-settings-root");t&&kr(t).render(p.jsx(Nv,{}));const n=document.getElementById("helix-posts-root");n&&kr(n).render(p.jsx($v,{}));const r=document.getElementById("helix-users-root");r&&kr(r).render(p.jsx(zv,{}))}); +export default theme;`}function kc(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Iy=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;rbe(v,k),S),S.unstable_sxConfig={...Ji,...m==null?void 0:m.unstable_sxConfig},S.unstable_sx=function(k){return tr({sx:k,theme:this})},S.toRuntimeSource=pp,My(S),S}function Fy(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const by=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Fy(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function hp(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function mp(e){return e==="dark"?by:[]}function By(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:l,...i}=e,o=Va({...t,colorSpace:l});return{palette:o,opacity:{...hp(o.mode),...n},overlays:r||mp(o.mode),...i}}function Uy(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Wy=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Vy=e=>(t,n)=>{const r=e.rootSelector||":root",l=e.colorSchemeSelector;let i=l;if(l==="class"&&(i=".%s"),l==="data"&&(i="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(i=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return Wy(e.cssVarPrefix).forEach(s=>{o[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Hy(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _(e,t,n){!e[t]&&n&&(e[t]=n)}function _r(e){return typeof e!="string"||!e.startsWith("hsl")?e:ap(e)}function vt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Cr(_r(e[t])))}function Qy(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ct=e=>{try{return e()}catch{}},Ky=(e="mui")=>cy(e);function Mo(e,t,n,r,l){if(!n)return;n=n===!0?{}:n;const i=l==="dark"?"dark":"light";if(!r){t[l]=By({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:o,...s}=Ms({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[l]={...n,palette:o,opacity:{...hp(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||mp(i)},s}function Yy(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:l=!1,cssVarPrefix:i="mui",nativeColor:o=!1,shouldSkipGeneratingVar:s=Uy,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...m}=e,g=Object.keys(n)[0],y=r||(n.light&&g!=="light"?"light":g),S=Ky(i),{[y]:v,light:k,dark:j,...p}=n,f={...p};let h=v;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(h=!0),!h)throw new Error(vn(21,y));let x;o&&(x="oklch");const E=Mo(x,f,h,m,y);k&&!f.light&&Mo(x,f,k,void 0,"light"),j&&!f.dark&&Mo(x,f,j,void 0,"dark");let w={defaultColorScheme:y,...E,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:c,getCssVar:S,colorSchemes:f,font:{...Cy(E.typography),...E.font},spacing:Qy(m.spacing)};Object.keys(w.colorSchemes).forEach(D=>{const d=w.colorSchemes[D].palette,T=M=>{const U=M.split("-"),we=U[1],A=U[2];return S(M,d[we][A])};d.mode==="light"&&(_(d.common,"background","#fff"),_(d.common,"onBackground","#000")),d.mode==="dark"&&(_(d.common,"background","#000"),_(d.common,"onBackground","#fff"));function $(M,U,we){if(x){let A;return M===tn&&(A=`transparent ${((1-we)*100).toFixed(0)}%`),M===H&&(A=`#000 ${(we*100).toFixed(0)}%`),M===Q&&(A=`#fff ${(we*100).toFixed(0)}%`),`color-mix(in ${x}, ${U}, ${A})`}return M(U,we)}if(Hy(d,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),d.mode==="light"){_(d.Alert,"errorColor",$(H,d.error.light,.6)),_(d.Alert,"infoColor",$(H,d.info.light,.6)),_(d.Alert,"successColor",$(H,d.success.light,.6)),_(d.Alert,"warningColor",$(H,d.warning.light,.6)),_(d.Alert,"errorFilledBg",T("palette-error-main")),_(d.Alert,"infoFilledBg",T("palette-info-main")),_(d.Alert,"successFilledBg",T("palette-success-main")),_(d.Alert,"warningFilledBg",T("palette-warning-main")),_(d.Alert,"errorFilledColor",ct(()=>d.getContrastText(d.error.main))),_(d.Alert,"infoFilledColor",ct(()=>d.getContrastText(d.info.main))),_(d.Alert,"successFilledColor",ct(()=>d.getContrastText(d.success.main))),_(d.Alert,"warningFilledColor",ct(()=>d.getContrastText(d.warning.main))),_(d.Alert,"errorStandardBg",$(Q,d.error.light,.9)),_(d.Alert,"infoStandardBg",$(Q,d.info.light,.9)),_(d.Alert,"successStandardBg",$(Q,d.success.light,.9)),_(d.Alert,"warningStandardBg",$(Q,d.warning.light,.9)),_(d.Alert,"errorIconColor",T("palette-error-main")),_(d.Alert,"infoIconColor",T("palette-info-main")),_(d.Alert,"successIconColor",T("palette-success-main")),_(d.Alert,"warningIconColor",T("palette-warning-main")),_(d.AppBar,"defaultBg",T("palette-grey-100")),_(d.Avatar,"defaultBg",T("palette-grey-400")),_(d.Button,"inheritContainedBg",T("palette-grey-300")),_(d.Button,"inheritContainedHoverBg",T("palette-grey-A100")),_(d.Chip,"defaultBorder",T("palette-grey-400")),_(d.Chip,"defaultAvatarColor",T("palette-grey-700")),_(d.Chip,"defaultIconColor",T("palette-grey-700")),_(d.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_(d.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_(d.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_(d.LinearProgress,"primaryBg",$(Q,d.primary.main,.62)),_(d.LinearProgress,"secondaryBg",$(Q,d.secondary.main,.62)),_(d.LinearProgress,"errorBg",$(Q,d.error.main,.62)),_(d.LinearProgress,"infoBg",$(Q,d.info.main,.62)),_(d.LinearProgress,"successBg",$(Q,d.success.main,.62)),_(d.LinearProgress,"warningBg",$(Q,d.warning.main,.62)),_(d.Skeleton,"bg",x?$(tn,d.text.primary,.11):`rgba(${T("palette-text-primaryChannel")} / 0.11)`),_(d.Slider,"primaryTrack",$(Q,d.primary.main,.62)),_(d.Slider,"secondaryTrack",$(Q,d.secondary.main,.62)),_(d.Slider,"errorTrack",$(Q,d.error.main,.62)),_(d.Slider,"infoTrack",$(Q,d.info.main,.62)),_(d.Slider,"successTrack",$(Q,d.success.main,.62)),_(d.Slider,"warningTrack",$(Q,d.warning.main,.62));const M=x?$(H,d.background.default,.6825):Al(d.background.default,.8);_(d.SnackbarContent,"bg",M),_(d.SnackbarContent,"color",ct(()=>x?Is.text.primary:d.getContrastText(M))),_(d.SpeedDialAction,"fabHoverBg",Al(d.background.paper,.15)),_(d.StepConnector,"border",T("palette-grey-400")),_(d.StepContent,"border",T("palette-grey-400")),_(d.Switch,"defaultColor",T("palette-common-white")),_(d.Switch,"defaultDisabledColor",T("palette-grey-100")),_(d.Switch,"primaryDisabledColor",$(Q,d.primary.main,.62)),_(d.Switch,"secondaryDisabledColor",$(Q,d.secondary.main,.62)),_(d.Switch,"errorDisabledColor",$(Q,d.error.main,.62)),_(d.Switch,"infoDisabledColor",$(Q,d.info.main,.62)),_(d.Switch,"successDisabledColor",$(Q,d.success.main,.62)),_(d.Switch,"warningDisabledColor",$(Q,d.warning.main,.62)),_(d.TableCell,"border",$(Q,$(tn,d.divider,1),.88)),_(d.Tooltip,"bg",$(tn,d.grey[700],.92))}if(d.mode==="dark"){_(d.Alert,"errorColor",$(Q,d.error.light,.6)),_(d.Alert,"infoColor",$(Q,d.info.light,.6)),_(d.Alert,"successColor",$(Q,d.success.light,.6)),_(d.Alert,"warningColor",$(Q,d.warning.light,.6)),_(d.Alert,"errorFilledBg",T("palette-error-dark")),_(d.Alert,"infoFilledBg",T("palette-info-dark")),_(d.Alert,"successFilledBg",T("palette-success-dark")),_(d.Alert,"warningFilledBg",T("palette-warning-dark")),_(d.Alert,"errorFilledColor",ct(()=>d.getContrastText(d.error.dark))),_(d.Alert,"infoFilledColor",ct(()=>d.getContrastText(d.info.dark))),_(d.Alert,"successFilledColor",ct(()=>d.getContrastText(d.success.dark))),_(d.Alert,"warningFilledColor",ct(()=>d.getContrastText(d.warning.dark))),_(d.Alert,"errorStandardBg",$(H,d.error.light,.9)),_(d.Alert,"infoStandardBg",$(H,d.info.light,.9)),_(d.Alert,"successStandardBg",$(H,d.success.light,.9)),_(d.Alert,"warningStandardBg",$(H,d.warning.light,.9)),_(d.Alert,"errorIconColor",T("palette-error-main")),_(d.Alert,"infoIconColor",T("palette-info-main")),_(d.Alert,"successIconColor",T("palette-success-main")),_(d.Alert,"warningIconColor",T("palette-warning-main")),_(d.AppBar,"defaultBg",T("palette-grey-900")),_(d.AppBar,"darkBg",T("palette-background-paper")),_(d.AppBar,"darkColor",T("palette-text-primary")),_(d.Avatar,"defaultBg",T("palette-grey-600")),_(d.Button,"inheritContainedBg",T("palette-grey-800")),_(d.Button,"inheritContainedHoverBg",T("palette-grey-700")),_(d.Chip,"defaultBorder",T("palette-grey-700")),_(d.Chip,"defaultAvatarColor",T("palette-grey-300")),_(d.Chip,"defaultIconColor",T("palette-grey-300")),_(d.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_(d.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_(d.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_(d.LinearProgress,"primaryBg",$(H,d.primary.main,.5)),_(d.LinearProgress,"secondaryBg",$(H,d.secondary.main,.5)),_(d.LinearProgress,"errorBg",$(H,d.error.main,.5)),_(d.LinearProgress,"infoBg",$(H,d.info.main,.5)),_(d.LinearProgress,"successBg",$(H,d.success.main,.5)),_(d.LinearProgress,"warningBg",$(H,d.warning.main,.5)),_(d.Skeleton,"bg",x?$(tn,d.text.primary,.13):`rgba(${T("palette-text-primaryChannel")} / 0.13)`),_(d.Slider,"primaryTrack",$(H,d.primary.main,.5)),_(d.Slider,"secondaryTrack",$(H,d.secondary.main,.5)),_(d.Slider,"errorTrack",$(H,d.error.main,.5)),_(d.Slider,"infoTrack",$(H,d.info.main,.5)),_(d.Slider,"successTrack",$(H,d.success.main,.5)),_(d.Slider,"warningTrack",$(H,d.warning.main,.5));const M=x?$(Q,d.background.default,.985):Al(d.background.default,.98);_(d.SnackbarContent,"bg",M),_(d.SnackbarContent,"color",ct(()=>x?fp.text.primary:d.getContrastText(M))),_(d.SpeedDialAction,"fabHoverBg",Al(d.background.paper,.15)),_(d.StepConnector,"border",T("palette-grey-600")),_(d.StepContent,"border",T("palette-grey-600")),_(d.Switch,"defaultColor",T("palette-grey-300")),_(d.Switch,"defaultDisabledColor",T("palette-grey-600")),_(d.Switch,"primaryDisabledColor",$(H,d.primary.main,.55)),_(d.Switch,"secondaryDisabledColor",$(H,d.secondary.main,.55)),_(d.Switch,"errorDisabledColor",$(H,d.error.main,.55)),_(d.Switch,"infoDisabledColor",$(H,d.info.main,.55)),_(d.Switch,"successDisabledColor",$(H,d.success.main,.55)),_(d.Switch,"warningDisabledColor",$(H,d.warning.main,.55)),_(d.TableCell,"border",$(H,$(tn,d.divider,1),.68)),_(d.Tooltip,"bg",$(tn,d.grey[700],.92))}vt(d.background,"default"),vt(d.background,"paper"),vt(d.common,"background"),vt(d.common,"onBackground"),vt(d,"divider"),Object.keys(d).forEach(M=>{const U=d[M];M!=="tonalOffset"&&U&&typeof U=="object"&&(U.main&&_(d[M],"mainChannel",Cr(_r(U.main))),U.light&&_(d[M],"lightChannel",Cr(_r(U.light))),U.dark&&_(d[M],"darkChannel",Cr(_r(U.dark))),U.contrastText&&_(d[M],"contrastTextChannel",Cr(_r(U.contrastText))),M==="text"&&(vt(d[M],"primary"),vt(d[M],"secondary")),M==="action"&&(U.active&&vt(d[M],"active"),U.selected&&vt(d[M],"selected")))})}),w=t.reduce((D,d)=>be(D,d),w);const C={prefix:i,disableCssColorScheme:l,shouldSkipGeneratingVar:s,getSelector:Vy(w),enableContrastVars:o},{vars:N,generateThemeVars:L,generateStyleSheets:O}=py(w,C);return w.vars=N,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([D,d])=>{w[D]=d}),w.generateThemeVars=L,w.generateStyleSheets=O,w.generateSpacing=function(){return rp(m.spacing,Ma(this))},w.getColorSchemeSelector=hy(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...Ji,...m==null?void 0:m.unstable_sxConfig},w.unstable_sx=function(d){return tr({sx:d,theme:this})},w.toRuntimeSource=pp,w}function Cc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Va({...n===!0?{}:n.palette,mode:t})})}function Gy(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:l=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...o}=e,s=i||"light",a=l==null?void 0:l[s],c={...l,...n?{[s]:{...typeof a!="boolean"&&a,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Ms(e,...t);let m=n;"palette"in e||c[s]&&(c[s]!==!0?m=c[s].palette:s==="dark"&&(m={mode:"dark"}));const g=Ms({...e,palette:m},...t);return g.defaultColorScheme=s,g.colorSchemes=c,g.palette.mode==="light"&&(g.colorSchemes.light={...c.light!==!0&&c.light,palette:g.palette},Cc(g,"dark",c.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:g.palette},Cc(g,"light",c.light)),g}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),Yy({...o,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Xy=Gy(),Zy="$$material";function qy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Jy=e=>qy(e)&&e!=="classes",ev=X0({themeId:Zy,defaultTheme:Xy,rootShouldForwardProp:Jy}),tv=uy;function nv(e){return ay(e)}function rv(e){return ip("MuiSvgIcon",e)}Q0("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lv=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${er(t)}`,`fontSize${er(n)}`]};return Zm(l,rv,r)},iv=ev("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${er(n.color)}`],t[`fontSize${er(n.fontSize)}`]]}})(tv(({theme:e})=>{var t,n,r,l,i,o,s,a,c,m,g,y,S,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(l=(t=e.transitions)==null?void 0:t.create)==null?void 0:l.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:k=>!k.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((a=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:a.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((m=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:m.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,k])=>k&&k.main).map(([k])=>{var j,p;return{props:{color:k},style:{color:(p=(j=(e.vars??e).palette)==null?void 0:j[k])==null?void 0:p.main}}}),{props:{color:"action"},style:{color:(y=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(v=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Fs=z.forwardRef(function(t,n){const r=nv({props:t,name:"MuiSvgIcon"}),{children:l,className:i,color:o="inherit",component:s="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:m=!1,titleAccess:g,viewBox:y="0 0 24 24",...S}=r,v=z.isValidElement(l)&&l.type==="svg",k={...r,color:o,component:s,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:y,hasSvgAsChild:v},j={};m||(j.viewBox=y);const p=lv(k);return u.jsxs(iv,{as:s,className:bd(p.root,i),focusable:"false",color:c,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...j,...S,...v&&l.props,ownerState:k,children:[v?l.props.children:l,g?u.jsx("title",{children:g}):null]})});Fs.muiName="SvgIcon";function tt(e,t){function n(r,l){return u.jsx(Fs,{"data-testid":void 0,ref:l,...r,children:e})}return n.muiName=Fs.muiName,z.memo(z.forwardRef(n))}const gp=tt(u.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"})),ov=tt(u.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"})),sv=tt(u.jsx("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4zM18 14H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"})),yp=tt(u.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),vp=tt(u.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),av=tt(u.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),uv=tt(u.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),cv=tt(u.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 11-2.5-1.5L14 13V5h5z"})),fv=tt(u.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}));function dv(){const[e,t]=z.useState({postsCount:0,pagesCount:0,commentsCount:0,usersCount:0,recentPosts:[],recentComments:[],loading:!0});z.useEffect(()=>{(async()=>{var i,o,s,a;try{const[c,m,g,y]=await Promise.all([fetch(`${((i=window.helixData)==null?void 0:i.restUrl)||"/wp-json/wp/v2/"}posts?per_page=5`),fetch(`${((o=window.helixData)==null?void 0:o.restUrl)||"/wp-json/wp/v2/"}pages?per_page=5`),fetch(`${((s=window.helixData)==null?void 0:s.restUrl)||"/wp-json/wp/v2/"}comments?per_page=5`),fetch(`${((a=window.helixData)==null?void 0:a.restUrl)||"/wp-json/wp/v2/"}users?per_page=5`)]),[S,v,k,j]=await Promise.all([c.json(),m.json(),g.json(),y.json()]);t({postsCount:c.headers.get("X-WP-Total")||S.length,pagesCount:m.headers.get("X-WP-Total")||v.length,commentsCount:g.headers.get("X-WP-Total")||k.length,usersCount:y.headers.get("X-WP-Total")||j.length,recentPosts:S.slice(0,5),recentComments:k.slice(0,5),loading:!1})}catch{t(m=>({...m,loading:!1}))}})()},[]);const n=({title:l,count:i,icon:o,color:s,trend:a})=>u.jsxs("div",{className:`helix-stats-card helix-stats-card--${s}`,children:[u.jsx("div",{className:"helix-stats-card__icon",children:u.jsx(o,{})}),u.jsxs("div",{className:"helix-stats-card__content",children:[u.jsxs("div",{className:"helix-stats-card__header",children:[u.jsx("h3",{className:"helix-stats-card__count",children:i}),a&&u.jsxs("div",{className:"helix-stats-card__trend",children:[u.jsx(fv,{className:"helix-trend-icon"}),u.jsx("span",{children:a})]})]}),u.jsx("p",{className:"helix-stats-card__title",children:l})]})]}),r=l=>new Date(l).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return e.loading?u.jsx("div",{className:"helix-settings-page",children:u.jsxs("div",{className:"helix-loading",children:[u.jsx("div",{className:"helix-spinner"}),u.jsx("p",{children:"Loading dashboard..."})]})}):u.jsxs("div",{className:"helix-dashboard",children:[u.jsxs("div",{className:"helix-dashboard__header",children:[u.jsx("h1",{children:"Welcome to Helix"}),u.jsx("p",{children:"Your modern WordPress admin experience"})]}),u.jsxs("div",{className:"helix-dashboard__stats",children:[u.jsx(n,{title:"Posts",count:e.postsCount,icon:gp,color:"blue",trend:"+12%"}),u.jsx(n,{title:"Pages",count:e.pagesCount,icon:ov,color:"green",trend:"+5%"}),u.jsx(n,{title:"Comments",count:e.commentsCount,icon:sv,color:"orange",trend:"+28%"}),u.jsx(n,{title:"Users",count:e.usersCount,icon:yp,color:"purple",trend:"+3%"})]}),u.jsxs("div",{className:"helix-dashboard__content",children:[u.jsxs("div",{className:"helix-widget",children:[u.jsxs("div",{className:"helix-widget__header",children:[u.jsx("h2",{children:"Recent Posts"}),u.jsx("a",{href:"/wp-admin/edit.php",className:"helix-widget__link",children:"View All"})]}),u.jsx("div",{className:"helix-widget__content",children:e.recentPosts.length>0?u.jsx("ul",{className:"helix-posts-list",children:e.recentPosts.map(l=>u.jsxs("li",{className:"helix-posts-list__item",children:[u.jsxs("div",{className:"helix-posts-list__content",children:[u.jsx("h3",{className:"helix-posts-list__title",children:u.jsx("a",{href:`/wp-admin/post.php?post=${l.id}&action=edit`,children:l.title.rendered||"Untitled"})}),u.jsx("p",{className:"helix-posts-list__date",children:r(l.date)})]}),u.jsx("div",{className:"helix-posts-list__status",children:u.jsx("span",{className:`helix-status helix-status--${l.status}`,children:l.status})})]},l.id))}):u.jsxs("p",{className:"helix-widget__empty",children:["No posts yet."," ",u.jsx("a",{href:"/wp-admin/post-new.php",children:"Create your first post!"})]})})]}),u.jsxs("div",{className:"helix-widget",children:[u.jsxs("div",{className:"helix-widget__header",children:[u.jsx("h2",{children:"Recent Comments"}),u.jsx("a",{href:"/wp-admin/edit-comments.php",className:"helix-widget__link",children:"View All"})]}),u.jsx("div",{className:"helix-widget__content",children:e.recentComments.length>0?u.jsx("ul",{className:"helix-comments-list",children:e.recentComments.map(l=>u.jsxs("li",{className:"helix-comments-list__item",children:[u.jsxs("div",{className:"helix-comments-list__content",children:[u.jsx("h4",{className:"helix-comments-list__author",children:l.author_name}),u.jsxs("p",{className:"helix-comments-list__excerpt",children:[l.content.rendered.replace(/<[^>]*>/g,"").substring(0,100),"..."]}),u.jsx("p",{className:"helix-comments-list__date",children:r(l.date)})]}),u.jsx("div",{className:"helix-comments-list__status",children:u.jsx("span",{className:`helix-status helix-status--${l.status}`,children:l.status})})]},l.id))}):u.jsx("p",{className:"helix-widget__empty",children:"No comments yet."})})]}),u.jsxs("div",{className:"helix-widget",children:[u.jsx("div",{className:"helix-widget__header",children:u.jsx("h2",{children:"Quick Actions"})}),u.jsx("div",{className:"helix-widget__content",children:u.jsxs("div",{className:"helix-quick-actions",children:[u.jsxs("a",{href:"/wp-admin/post-new.php",className:"helix-quick-action",children:[u.jsx("span",{className:"helix-quick-action__icon",children:u.jsx(vp,{})}),u.jsx("span",{className:"helix-quick-action__text",children:"Write a Post"})]}),u.jsxs("a",{href:"/wp-admin/post-new.php?post_type=page",className:"helix-quick-action",children:[u.jsx("span",{className:"helix-quick-action__icon",children:u.jsx(av,{})}),u.jsx("span",{className:"helix-quick-action__text",children:"Create a Page"})]}),u.jsxs("a",{href:"/wp-admin/upload.php",className:"helix-quick-action",children:[u.jsx("span",{className:"helix-quick-action__icon",children:u.jsx(uv,{})}),u.jsx("span",{className:"helix-quick-action__text",children:"Upload Media"})]}),u.jsxs("a",{href:"/wp-admin/edit-comments.php",className:"helix-quick-action",children:[u.jsx("span",{className:"helix-quick-action__icon",children:u.jsx(cv,{})}),u.jsx("span",{className:"helix-quick-action__text",children:"Moderate Comments"})]})]})})]}),u.jsxs("div",{className:"helix-widget",children:[u.jsx("div",{className:"helix-widget__header",children:u.jsx("h2",{children:"WordPress News"})}),u.jsxs("div",{className:"helix-widget__content",children:[u.jsx("p",{children:"Stay updated with the latest WordPress news and updates."}),u.jsx("div",{className:"helix-news-placeholder",children:u.jsxs("div",{className:"helix-news-item",children:[u.jsx("h4",{children:"WordPress 6.4 “Shirley” Released"}),u.jsx("p",{children:"The latest version includes new features and improvements..."}),u.jsx("a",{href:"https://wordpress.org/news/",target:"_blank",rel:"noopener noreferrer",children:"Read more"})]})})]})]})]})]})}const pv=()=>{var e;return((e=window.helixData)==null?void 0:e.restUrl)||"/wp-json/helix/v1/"},hv=()=>{var e;return((e=window.helixData)==null?void 0:e.nonce)||""},xp=async(e,t={})=>{const n=`${pv()}${e}`,r={headers:{"Content-Type":"application/json","X-WP-Nonce":hv()},credentials:"include"},l={...r,...t,headers:{...r.headers,...t.headers}};try{const i=await fetch(n,l);if(!i.ok){const o=await i.json().catch(()=>({}));throw new Error(o.message||`HTTP ${i.status}: ${i.statusText}`)}return await i.json()}catch(i){throw i}},mv=async()=>xp("settings"),gv=async e=>xp("settings",{method:"POST",body:JSON.stringify(e)}),yv=()=>{const[e,t]=z.useState({}),[n,r]=z.useState({}),[l,i]=z.useState(!0),[o,s]=z.useState(!1),[a,c]=z.useState(null),[m,g]=z.useState(!1),y=f=>f&&typeof f=="object"&&"value"in f?f.value:f,S=z.useCallback(async()=>{try{i(!0),c(null);const f=await mv(),h={};Object.keys(f).forEach(x=>{Object.keys(f[x]).forEach(E=>{const w=f[x][E];w.options&&Array.isArray(w.options)?h[E]=w:h[E]=w.value})}),t(h),r(h),g(!1)}catch(f){c(f.message)}finally{i(!1)}},[]),v=z.useCallback((f,h)=>{t(x=>{let E;x[f]&&typeof x[f]=="object"&&"options"in x[f]?E={...x,[f]:{...x[f],value:h}}:E={...x,[f]:h};const w=Object.keys(E).some(C=>y(E[C])!==y(n[C]));return g(w),E})},[n]),k=z.useCallback(async()=>{try{s(!0),c(null);const f={};if(Object.keys(e).forEach(x=>{const E=y(e[x]),w=y(n[x]);E!==w&&(f[x]=E)}),Object.keys(f).length===0)return{success:!0,message:"No changes to save"};const h=await gv(f);return r(e),g(!1),{success:!0,message:"Settings saved successfully",updated:h.updated,errors:h.errors}}catch(f){return c(f.message),{success:!1,message:f.message}}finally{s(!1)}},[e,n]),j=z.useCallback(()=>{t(n),g(!1),c(null)},[n]),p=z.useCallback(f=>{const h=y(n[f]);v(f,h)},[n,v]);return z.useEffect(()=>{S()},[S]),z.useEffect(()=>{const f=h=>{if(m)return h.preventDefault(),h.returnValue="You have unsaved changes. Are you sure you want to leave?",h.returnValue};return window.addEventListener("beforeunload",f),()=>window.removeEventListener("beforeunload",f)},[m]),{settings:e,loading:l,saving:o,error:a,hasUnsavedChanges:m,updateSetting:v,saveSettings:k,resetSettings:j,resetSetting:p,loadSettings:S}},vv=tt(u.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),xv=tt(u.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),wv=tt(u.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),Sv=({activeTab:e,onTabChange:t,hasUnsavedChanges:n})=>{const r=[{id:"site",label:"Site Information",icon:vv},{id:"content",label:"Content & Reading",icon:gp},{id:"writing",label:"Writing & Publishing",icon:vp},{id:"media",label:"Media & Assets",icon:xv},{id:"users",label:"Users & Membership",icon:yp},{id:"helix",label:"Helix Settings",icon:wv}];return u.jsx("div",{className:"helix-settings-tabs",children:u.jsx("nav",{className:"helix-tabs-nav",role:"tablist",children:r.map(l=>u.jsxs("button",{type:"button",role:"tab","aria-selected":e===l.id,"aria-controls":`${l.id}-panel`,className:`helix-tab ${e===l.id?"active":""}`,onClick:()=>t(l.id),children:[u.jsx("span",{className:"helix-tab-icon",children:u.jsx(l.icon,{})}),u.jsx("span",{className:"helix-tab-label",children:l.label}),n&&u.jsx("span",{className:"helix-tab-indicator",title:"Unsaved changes",children:"●"})]},l.id))})})},kv=({onSave:e,onReset:t,saving:n=!1,hasUnsavedChanges:r=!1,disabled:l=!1})=>u.jsxs("div",{className:"helix-save-buttons",children:[u.jsx("button",{type:"button",onClick:e,disabled:l||n||!r,className:`helix-btn helix-btn-primary ${n?"saving":""}`,children:n?u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"helix-spinner"}),"Saving..."]}):"Save Changes"}),r&&!n&&u.jsx("button",{type:"button",onClick:t,className:"helix-btn helix-btn-secondary",children:"Reset Changes"}),!r&&!n&&u.jsx("span",{className:"helix-save-status",children:"✓ All changes saved"})]}),_c=({type:e="info",message:t,onClose:n,autoClose:r=!0,duration:l=5e3})=>{const[i,o]=z.useState(!0);if(z.useEffect(()=>{if(r&&l>0){const a=setTimeout(()=>{o(!1),setTimeout(()=>n==null?void 0:n(),300)},l);return()=>clearTimeout(a)}},[r,l,n]),!i)return null;const s=()=>{switch(e){case"success":return"✅";case"error":return"❌";case"warning":return"⚠️";default:return"ℹ️"}};return u.jsx("div",{className:`helix-notification helix-notification-${e} ${i?"visible":""}`,children:u.jsxs("div",{className:"helix-notification-content",children:[u.jsx("span",{className:"helix-notification-icon",children:s()}),u.jsx("span",{className:"helix-notification-message",children:t}),n&&u.jsx("button",{type:"button",onClick:()=>{o(!1),setTimeout(()=>n(),300)},className:"helix-notification-close","aria-label":"Close notification",children:"×"})]})})},sr=({title:e,description:t,children:n,className:r=""})=>u.jsxs("div",{className:`helix-settings-section ${r}`,children:[e&&u.jsxs("div",{className:"helix-settings-section-header",children:[u.jsx("h3",{className:"helix-settings-section-title",children:e}),t&&u.jsx("p",{className:"helix-settings-section-description",children:t})]}),u.jsx("div",{className:"helix-settings-section-content",children:n})]}),oo=({label:e,description:t,error:n,required:r=!1,children:l,className:i=""})=>u.jsxs("div",{className:`helix-form-field ${i}`,children:[e&&u.jsxs("label",{className:"helix-form-label",children:[e,r&&u.jsx("span",{className:"helix-required",children:"*"})]}),u.jsx("div",{className:"helix-form-control",children:l}),t&&u.jsx("p",{className:"helix-form-description",children:t}),n&&u.jsx("p",{className:"helix-form-error",children:n})]}),ln=({label:e,description:t,value:n,onChange:r,placeholder:l="",type:i="text",required:o=!1,disabled:s=!1,error:a=null,className:c="",...m})=>{const g=y=>{r(y.target.value)};return u.jsx(oo,{label:e,description:t,error:a,required:o,className:c,children:u.jsx("input",{type:i,value:n||"",onChange:g,placeholder:l,required:o,disabled:s,className:"helix-text-input",...m})})},Qt=({label:e,description:t,value:n,onChange:r,options:l=[],required:i=!1,disabled:o=!1,error:s=null,className:a="",placeholder:c="Select an option...",...m})=>{const g=y=>{r(y.target.value)};return u.jsx(oo,{label:e,description:t,error:s,required:i,className:a,children:u.jsxs("select",{value:n||"",onChange:g,required:i,disabled:o,className:"helix-select-input",...m,children:[c&&u.jsx("option",{value:"",disabled:!0,children:c}),l.map(y=>u.jsx("option",{value:y.value,children:y.label},y.value))]})})},Ec=({settings:e,updateSetting:t})=>{var n,r,l,i;return u.jsx(sr,{title:"Site Information",description:"Basic information about your WordPress site",children:u.jsxs("div",{className:"helix-settings-grid",children:[u.jsx(ln,{label:"Site Title",description:"In a few words, explain what this site is about.",value:e.siteTitle,onChange:o=>t("siteTitle",o),placeholder:"My Awesome Site",required:!0}),u.jsx(ln,{label:"Tagline",description:"A brief description of your site, usually displayed under the title.",value:e.tagline,onChange:o=>t("tagline",o),placeholder:"Just another WordPress site"}),u.jsx(ln,{label:"WordPress Address (URL)",description:"The address of your WordPress core files.",value:e.siteUrl,onChange:o=>t("siteUrl",o),type:"url",placeholder:"https://example.com"}),u.jsx(ln,{label:"Site Address (URL)",description:"The address you want people to type in their browser to reach your website.",value:e.homeUrl,onChange:o=>t("homeUrl",o),type:"url",placeholder:"https://example.com"}),u.jsx(ln,{label:"Administration Email Address",description:"This address is used for admin purposes, like new user notification.",value:e.adminEmail,onChange:o=>t("adminEmail",o),type:"email",placeholder:"admin@example.com",required:!0}),u.jsx(Qt,{label:"Site Language",description:"The language for your site interface.",value:((n=e.language)==null?void 0:n.value)||e.language||"",onChange:o=>t("language",o),options:((r=e.language)==null?void 0:r.options)||[],placeholder:"Select a language..."}),u.jsx(Qt,{label:"Timezone",description:"Choose either a city in the same timezone as you or a UTC timezone offset.",value:((l=e.timezone)==null?void 0:l.value)||e.timezone||"",onChange:o=>t("timezone",o),options:((i=e.timezone)==null?void 0:i.options)||[],placeholder:"Select a timezone..."})]})})},He=({label:e,description:t,value:n,onChange:r,min:l=null,max:i=null,step:o=1,required:s=!1,disabled:a=!1,error:c=null,className:m="",...g})=>{const y=S=>{const v=S.target.value;r(v===""?"":Number(v))};return u.jsx(oo,{label:e,description:t,error:c,required:s,className:m,children:u.jsx("input",{type:"number",value:n||"",onChange:y,min:l,max:i,step:o,required:s,disabled:a,className:"helix-number-input",...g})})},cl=({label:e,description:t,value:n,onChange:r,required:l=!1,disabled:i=!1,error:o=null,className:s="",id:a=`toggle-${Math.random().toString(36).substr(2,9)}`,...c})=>{const m=()=>{i||r(!n)};return u.jsx(oo,{description:t,error:o,required:l,className:`helix-toggle-field ${s}`,children:u.jsxs("div",{className:"helix-toggle-wrapper",children:[e&&u.jsx("label",{htmlFor:a,className:`helix-toggle-label ${i?"helix-toggle-label-disabled":""}`,children:e}),u.jsx("button",{id:a,type:"button",role:"switch","aria-checked":!!n,onClick:m,disabled:i,className:`helix-toggle-switch ${n?"helix-toggle-switch-on":"helix-toggle-switch-off"} ${i?"helix-toggle-switch-disabled":""}`,...c,children:u.jsx("span",{className:`helix-toggle-knob ${n?"helix-toggle-knob-on":"helix-toggle-knob-off"}`})})]})})},Cv=({settings:e,updateSetting:t})=>{const n=[{value:"posts",label:"Your latest posts"},{value:"page",label:"A static page"}],r=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:2,label:"Tuesday"},{value:3,label:"Wednesday"},{value:4,label:"Thursday"},{value:5,label:"Friday"},{value:6,label:"Saturday"}];return u.jsx(sr,{title:"Content & Reading",description:"Settings that affect how your content is displayed",children:u.jsxs("div",{className:"helix-settings-grid",children:[u.jsx(Qt,{label:"Your homepage displays",description:"What to show on the front page of your site.",value:e.showOnFront,onChange:l=>t("showOnFront",l),options:n}),e.showOnFront==="page"&&u.jsxs(u.Fragment,{children:[u.jsx(He,{label:"Homepage",description:"The page to show on the front page (Page ID).",value:e.pageOnFront,onChange:l=>t("pageOnFront",l),min:0}),u.jsx(He,{label:"Posts page",description:"The page to show posts (Page ID).",value:e.pageForPosts,onChange:l=>t("pageForPosts",l),min:0})]}),u.jsx(He,{label:"Blog pages show at most",description:"Number of posts to show per page.",value:e.postsPerPage,onChange:l=>t("postsPerPage",l),min:1,max:100}),u.jsx(cl,{label:"Discourage search engines from indexing this site",description:"This will discourage, but not prevent, search engines from indexing this site.",value:!e.blogPublic,onChange:l=>t("blogPublic",!l)}),u.jsx(ln,{label:"Date Format",description:"Format for displaying dates throughout your site.",value:e.dateFormat,onChange:l=>t("dateFormat",l),placeholder:"F j, Y"}),u.jsx(ln,{label:"Time Format",description:"Format for displaying times throughout your site.",value:e.timeFormat,onChange:l=>t("timeFormat",l),placeholder:"g:i a"}),u.jsx(Qt,{label:"Week Starts On",description:"The day of the week the calendar should start on.",value:e.startOfWeek,onChange:l=>t("startOfWeek",parseInt(l)),options:r})]})})},_v=({settings:e,updateSetting:t})=>{const n=[{value:"standard",label:"Standard"},{value:"aside",label:"Aside"},{value:"gallery",label:"Gallery"},{value:"image",label:"Image"},{value:"link",label:"Link"},{value:"quote",label:"Quote"},{value:"status",label:"Status"},{value:"video",label:"Video"},{value:"audio",label:"Audio"},{value:"chat",label:"Chat"}],r=[{value:"open",label:"Open"},{value:"closed",label:"Closed"}];return u.jsx(sr,{title:"Writing & Publishing",description:"Settings for content creation and publishing",children:u.jsxs("div",{className:"helix-settings-grid",children:[u.jsx(He,{label:"Default Post Category",description:"The default category for new posts (Category ID).",value:e.defaultCategory,onChange:l=>t("defaultCategory",l),min:1}),u.jsx(Qt,{label:"Default Post Format",description:"The default format for new posts.",value:e.defaultPostFormat,onChange:l=>t("defaultPostFormat",l),options:n}),u.jsx(cl,{label:"Convert emoticons like :-) and :-P to graphics on display",description:"Transform text emoticons into graphical representations.",value:e.useSmilies,onChange:l=>t("useSmilies",l)}),u.jsx(Qt,{label:"Default comment status",description:"Allow people to submit comments on new posts.",value:e.defaultCommentStatus,onChange:l=>t("defaultCommentStatus",l),options:r}),u.jsx(Qt,{label:"Default ping status",description:"Allow link notifications from other blogs (pingbacks and trackbacks) on new posts.",value:e.defaultPingStatus,onChange:l=>t("defaultPingStatus",l),options:r})]})})},Ev=({settings:e,updateSetting:t})=>u.jsx(sr,{title:"Media & Assets",description:"Settings for media files, images, and site branding",children:u.jsxs("div",{className:"helix-settings-grid",children:[u.jsx(He,{label:"Site Logo",description:"The site logo (Media ID). Upload a logo in Media Library and enter its ID here.",value:e.siteLogo,onChange:n=>t("siteLogo",n),min:0}),u.jsx(He,{label:"Site Icon (Favicon)",description:"The site icon/favicon (Media ID). Upload an icon in Media Library and enter its ID here.",value:e.siteIcon,onChange:n=>t("siteIcon",n),min:0}),u.jsx("div",{className:"helix-settings-subsection-header",children:u.jsx("h4",{children:"Image Sizes"})}),u.jsx(He,{label:"Thumbnail Width",description:"Maximum width of thumbnail images in pixels.",value:e.thumbnailSizeW,onChange:n=>t("thumbnailSizeW",n),min:0,max:2e3}),u.jsx(He,{label:"Thumbnail Height",description:"Maximum height of thumbnail images in pixels.",value:e.thumbnailSizeH,onChange:n=>t("thumbnailSizeH",n),min:0,max:2e3}),u.jsx(He,{label:"Medium Width",description:"Maximum width of medium-sized images in pixels.",value:e.mediumSizeW,onChange:n=>t("mediumSizeW",n),min:0,max:2e3}),u.jsx(He,{label:"Medium Height",description:"Maximum height of medium-sized images in pixels.",value:e.mediumSizeH,onChange:n=>t("mediumSizeH",n),min:0,max:2e3}),u.jsx(He,{label:"Large Width",description:"Maximum width of large-sized images in pixels.",value:e.largeSizeW,onChange:n=>t("largeSizeW",n),min:0,max:4e3}),u.jsx(He,{label:"Large Height",description:"Maximum height of large-sized images in pixels.",value:e.largeSizeH,onChange:n=>t("largeSizeH",n),min:0,max:4e3}),u.jsx(cl,{label:"Organize my uploads into month- and year-based folders",description:"Organize uploaded files into date-based folder structure.",value:e.uploadsUseYearmonthFolders,onChange:n=>t("uploadsUseYearmonthFolders",n)})]})}),jv=({settings:e,updateSetting:t})=>{const n=[{value:"subscriber",label:"Subscriber"},{value:"contributor",label:"Contributor"},{value:"author",label:"Author"},{value:"editor",label:"Editor"},{value:"administrator",label:"Administrator"}];return u.jsx(sr,{title:"Users & Membership",description:"Settings for user registration and default permissions",children:u.jsxs("div",{className:"helix-settings-grid",children:[u.jsx(cl,{label:"Anyone can register",description:"Allow anyone to register as a user on your site.",value:e.usersCanRegister,onChange:r=>t("usersCanRegister",r)}),u.jsx(Qt,{label:"New User Default Role",description:"The default role assigned to new users when they register.",value:e.defaultRole,onChange:r=>t("defaultRole",r),options:n})]})})},Pv=({settings:e,updateSetting:t})=>u.jsx(sr,{title:"Helix Settings",description:"Settings specific to the Helix plugin",children:u.jsx("div",{className:"helix-settings-grid",children:u.jsx(cl,{label:"Use Default WordPress Admin",description:"Switch back to the default WordPress admin interface instead of using Helix.",value:e.helixUseDefaultAdmin,onChange:n=>t("helixUseDefaultAdmin",n)})})});function Nv(){const{settings:e,loading:t,saving:n,error:r,hasUnsavedChanges:l,updateSetting:i,saveSettings:o,resetSettings:s}=yv(),[a,c]=z.useState("site"),[m,g]=z.useState(null),y=()=>{window.scrollTo({top:0,behavior:"smooth"})},S=async()=>{const p=await o();p.success?g({type:"success",message:p.message||"Settings saved successfully!"}):g({type:"error",message:p.message||"Failed to save settings. Please try again."}),y()},v=()=>{s(),g({type:"info",message:"Changes have been reset to their original values."}),y()},k=p=>{l&&!window.confirm("You have unsaved changes. Are you sure you want to switch tabs? Your changes will be lost.")||c(p)},j=()=>{const p={settings:e,updateSetting:i};switch(a){case"site":return u.jsx(Ec,{...p});case"content":return u.jsx(Cv,{...p});case"writing":return u.jsx(_v,{...p});case"media":return u.jsx(Ev,{...p});case"users":return u.jsx(jv,{...p});case"helix":return u.jsx(Pv,{...p});default:return u.jsx(Ec,{...p})}};return t?u.jsx("div",{className:"helix-settings-page",children:u.jsxs("div",{className:"helix-loading",children:[u.jsx("div",{className:"helix-spinner"}),u.jsx("p",{children:"Loading settings..."})]})}):u.jsxs("div",{className:"helix-settings-page",children:[u.jsxs("div",{className:"helix-settings-header",children:[u.jsx("h1",{children:"Settings"}),u.jsx("p",{children:"Manage your WordPress site configuration"})]}),r&&u.jsx(_c,{type:"error",message:r,onClose:()=>{},autoClose:!1}),m&&u.jsx(_c,{type:m.type,message:m.message,onClose:()=>g(null)}),u.jsx(Sv,{activeTab:a,onTabChange:k,hasUnsavedChanges:l}),u.jsx("div",{className:"helix-settings-content",children:u.jsx("div",{id:`${a}-panel`,role:"tabpanel","aria-labelledby":`${a}-tab`,className:"helix-tab-panel",children:j()})}),u.jsx("div",{className:"helix-settings-footer",children:u.jsx(kv,{onSave:S,onReset:v,saving:n,hasUnsavedChanges:l})})]})}function Tv({post:e,onDelete:t,onStatusChange:n}){var S,v,k,j,p,f,h,x,E;const[r,l]=z.useState(!1),i=z.useRef(null);z.useEffect(()=>{const w=C=>{i.current&&!i.current.contains(C.target)&&l(!1)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w)}},[]);const o=w=>new Date(w).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),s=w=>{const C={publish:"helix-status-badge--publish",draft:"helix-status-badge--draft",private:"helix-status-badge--private",pending:"helix-status-badge--pending",future:"helix-status-badge--future"};return u.jsx("span",{className:`helix-status-badge ${C[w]||""}`,children:w.charAt(0).toUpperCase()+w.slice(1)})},a=w=>{n(e.id,w),l(!1)},c=()=>{t(e.id),l(!1)},m=w=>{var N;const C=`${((N=window.helixData)==null?void 0:N.adminUrl)||"/wp-admin/"}post.php?post=${w.id}&action=edit`;window.open(C,"_blank"),l(!1)},g=w=>{console.log("Quick edit for post:",w.id),l(!1)},y=w=>{const C=w.replace(/<[^>]*>/g,"");return C.length>100?C.substring(0,100)+"...":C};return u.jsxs("tr",{className:"helix-post-row",children:[u.jsx("td",{className:"helix-post-row__checkbox",children:u.jsx("input",{type:"checkbox"})}),u.jsx("td",{className:"helix-post-row__title",children:u.jsxs("div",{className:"helix-post-title",children:[u.jsx("h4",{className:"helix-post-title__text",children:u.jsx("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:e.title.rendered})}),u.jsx("p",{className:"helix-post-title__excerpt",children:y(e.content.rendered)}),u.jsxs("div",{className:"helix-post-quick-actions",children:[u.jsx("button",{className:"helix-button helix-button--small helix-button--secondary",onClick:()=>m(e),title:"Edit Post",children:"Edit"}),u.jsx("button",{className:"helix-button helix-button--small helix-button--secondary",onClick:()=>window.open(e.link,"_blank"),title:"View Post",children:"View"}),u.jsx("button",{className:"helix-button helix-button--small helix-button--secondary",onClick:()=>window.open(`${e.link}?preview=true`,"_blank"),title:"Preview Post",children:"Preview"}),e.status!=="publish"&&u.jsx("button",{className:"helix-button helix-button--small helix-button--primary",onClick:()=>a("publish"),title:"Publish Post",children:"Publish"}),e.status==="publish"&&u.jsx("button",{className:"helix-button helix-button--small helix-button--secondary",onClick:()=>a("draft"),title:"Move to Draft",children:"Draft"})]})]})}),u.jsx("td",{className:"helix-post-row__author",children:((k=(v=(S=e._embedded)==null?void 0:S.author)==null?void 0:v[0])==null?void 0:k.name)||"Unknown"}),u.jsx("td",{className:"helix-post-row__categories",children:((f=(p=(j=e._embedded)==null?void 0:j["wp:term"])==null?void 0:p[0])==null?void 0:f.map(w=>u.jsx("span",{className:"helix-category-tag",children:w.name},w.id)))||"Uncategorized"}),u.jsx("td",{className:"helix-post-row__tags",children:((E=(x=(h=e._embedded)==null?void 0:h["wp:term"])==null?void 0:x[1])==null?void 0:E.map(w=>u.jsx("span",{className:"helix-tag",children:w.name},w.id)))||"No tags"}),u.jsx("td",{className:"helix-post-row__status",children:s(e.status)}),u.jsx("td",{className:"helix-post-row__date",children:o(e.date)}),u.jsx("td",{className:"helix-post-row__actions",children:u.jsxs("div",{className:"helix-post-actions",ref:i,children:[u.jsx("button",{className:"helix-button helix-button--icon",onClick:()=>l(!r),title:"More actions",children:"⋮"}),r&&u.jsxs("div",{className:"helix-post-actions__dropdown",children:[u.jsx("button",{className:"helix-dropdown-item",onClick:()=>g(e),children:"Quick Edit"}),u.jsx("button",{className:"helix-dropdown-item",onClick:()=>a("private"),disabled:e.status==="private",children:"Make Private"}),u.jsx("button",{className:"helix-dropdown-item",onClick:()=>a("pending"),disabled:e.status==="pending",children:"Mark Pending"}),u.jsx("button",{className:"helix-dropdown-item",onClick:()=>{if(navigator.clipboard)navigator.clipboard.writeText(e.link);else{const w=document.createElement("textarea");w.value=e.link,document.body.appendChild(w),w.select(),document.execCommand("copy"),document.body.removeChild(w)}l(!1)},children:"Copy Link"}),u.jsx("button",{className:"helix-dropdown-item",onClick:()=>a("publish"),disabled:e.status==="publish",children:"Publish"}),u.jsx("button",{className:"helix-dropdown-item",onClick:()=>a("draft"),disabled:e.status==="draft",children:"Move to Draft"}),u.jsx("button",{className:"helix-dropdown-item",onClick:()=>a("private"),disabled:e.status==="private",children:"Make Private"}),u.jsx("hr",{className:"helix-dropdown-divider"}),u.jsx("button",{className:"helix-dropdown-item helix-dropdown-item--danger",onClick:c,children:"Delete"})]})]})})]})}function $v({posts:e,loading:t,pagination:n,onPageChange:r,onDelete:l,onStatusChange:i}){return t?u.jsxs("div",{className:"helix-loading",children:[u.jsx("div",{className:"helix-loading-spinner"}),u.jsx("p",{children:"Loading posts..."})]}):e.length===0?u.jsxs("div",{className:"helix-empty-state",children:[u.jsx("h3",{children:"No posts found"}),u.jsx("p",{children:"Try adjusting your filters or create a new post."})]}):u.jsxs("div",{className:"helix-posts-list",children:[u.jsx("div",{className:"helix-posts-table-container",children:u.jsxs("table",{className:"helix-posts-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{className:"helix-posts-table__checkbox",children:u.jsx("input",{type:"checkbox"})}),u.jsx("th",{className:"helix-posts-table__title",children:"Title"}),u.jsx("th",{className:"helix-posts-table__author",children:"Author"}),u.jsx("th",{className:"helix-posts-table__categories",children:"Categories"}),u.jsx("th",{className:"helix-posts-table__tags",children:"Tags"}),u.jsx("th",{className:"helix-posts-table__status",children:"Status"}),u.jsx("th",{className:"helix-posts-table__date",children:"Date"}),u.jsx("th",{className:"helix-posts-table__actions",children:"Actions"})]})}),u.jsx("tbody",{children:e.map(o=>u.jsx(Tv,{post:o,onDelete:l,onStatusChange:i},o.id))})]})}),n.totalPages>1&&u.jsxs("div",{className:"helix-pagination",children:[u.jsxs("div",{className:"helix-pagination__info",children:["Showing"," ",(n.page-1)*n.perPage+1," to"," ",Math.min(n.page*n.perPage,n.total)," ","of ",n.total," posts"]}),u.jsxs("div",{className:"helix-pagination__controls",children:[u.jsx("button",{className:"helix-button helix-button--secondary",disabled:n.page===1,onClick:()=>r(n.page-1),children:"Previous"}),u.jsxs("span",{className:"helix-pagination__current",children:["Page ",n.page," of"," ",n.totalPages]}),u.jsx("button",{className:"helix-button helix-button--secondary",disabled:n.page===n.totalPages,onClick:()=>r(n.page+1),children:"Next"})]})]})]})}function Av({filters:e,onFilterChange:t}){const[n,r]=z.useState([]),[l,i]=z.useState([]),[o,s]=z.useState(e);z.useEffect(()=>{a(),c()},[]),z.useEffect(()=>{s(e)},[e]);const a=async()=>{var v;try{const k=await fetch(`${((v=window.helixData)==null?void 0:v.wpRestUrl)||window.location.origin+"/wp-json/wp/v2/"}users?per_page=100`);if(k.ok){const j=await k.json();r(j)}}catch(k){console.error("Error fetching authors:",k)}},c=async()=>{var v;try{const k=await fetch(`${((v=window.helixData)==null?void 0:v.wpRestUrl)||window.location.origin+"/wp-json/wp/v2/"}categories?per_page=100`);if(k.ok){const j=await k.json();i(j)}}catch(k){console.error("Error fetching categories:",k)}},m=(v,k)=>{const j={...o,[v]:k};s(j)},g=()=>{t(o)},y=()=>{const v={search:"",status:"all",author:"all",dateRange:"all"};s(v),t(v)},S=()=>o.search||o.status!=="all"||o.author!=="all"||o.dateRange!=="all";return u.jsxs("div",{className:"helix-post-filters",children:[u.jsxs("div",{className:"helix-post-filters__row",children:[u.jsxs("div",{className:"helix-post-filters__search",children:[u.jsx("label",{className:"helix-filter-label",children:"Search Posts"}),u.jsx("input",{type:"text",placeholder:"Search posts...",value:o.search,onChange:v=>m("search",v.target.value),className:"helix-input"})]}),u.jsxs("div",{className:"helix-post-filters__controls",children:[u.jsxs("div",{className:"helix-filter-group",children:[u.jsx("label",{className:"helix-filter-label",children:"Status"}),u.jsxs("select",{value:o.status,onChange:v=>m("status",v.target.value),className:"helix-select",children:[u.jsx("option",{value:"all",children:"All Statuses"}),u.jsx("option",{value:"publish",children:"Published"}),u.jsx("option",{value:"draft",children:"Draft"}),u.jsx("option",{value:"pending",children:"Pending"}),u.jsx("option",{value:"private",children:"Private"}),u.jsx("option",{value:"future",children:"Scheduled"})]})]}),u.jsxs("div",{className:"helix-filter-group",children:[u.jsx("label",{className:"helix-filter-label",children:"Author"}),u.jsxs("select",{value:o.author,onChange:v=>m("author",v.target.value),className:"helix-select",children:[u.jsx("option",{value:"all",children:"All Authors"}),n.map(v=>u.jsx("option",{value:v.id,children:v.name},v.id))]})]}),u.jsxs("div",{className:"helix-filter-group",children:[u.jsx("label",{className:"helix-filter-label",children:"Date Range"}),u.jsxs("select",{value:o.dateRange,onChange:v=>m("dateRange",v.target.value),className:"helix-select",children:[u.jsx("option",{value:"all",children:"All Dates"}),u.jsx("option",{value:"today",children:"Today"}),u.jsx("option",{value:"yesterday",children:"Yesterday"}),u.jsx("option",{value:"week",children:"This Week"}),u.jsx("option",{value:"month",children:"This Month"}),u.jsx("option",{value:"quarter",children:"This Quarter"}),u.jsx("option",{value:"year",children:"This Year"})]})]})]})]}),u.jsxs("div",{className:"helix-post-filters__actions",children:[u.jsx("button",{className:"helix-button helix-button--primary",onClick:g,children:"Apply Filters"}),S()&&u.jsx("button",{className:"helix-button helix-button--secondary",onClick:y,children:"Clear Filters"})]})]})}function Rv(){console.log("Posts component mounted");const[e,t]=z.useState([]),[n,r]=z.useState([]),[l,i]=z.useState(!0),[o,s]=z.useState(null),[a,c]=z.useState({search:"",status:"all",author:"all",dateRange:"all"}),[m,g]=z.useState({page:1,perPage:50,total:0,totalPages:0}),y=(f,h)=>{let x=f;if(h.status!=="all"&&(x=x.filter(E=>E.status===h.status)),h.dateRange!=="all"){const E=new Date,w=new Date(E.getFullYear(),E.getMonth(),E.getDate());x=x.filter(C=>{const N=new Date(C.date);switch(h.dateRange){case"today":return N>=w;case"yesterday":const L=new Date(w);return L.setDate(L.getDate()-1),N>=L&&N=O;case"month":const D=new Date(w);return D.setMonth(D.getMonth()-1),N>=D;case"quarter":const d=new Date(w);return d.setMonth(d.getMonth()-3),N>=d;case"year":const T=new Date(w);return T.setFullYear(T.getFullYear()-1),N>=T;default:return!0}})}return x},S=z.useCallback(async()=>{var f,h,x,E,w;i(!0),s(null),console.log("fetchPosts function called");try{const C=new URLSearchParams({page:m.page,per_page:m.perPage});a.search&&C.set("search",a.search),a.author!=="all"&&C.set("author",a.author),a.status!=="all"&&C.set("status",a.status);const N=`${((f=window.helixData)==null?void 0:f.wpRestUrl)||window.location.origin+"/wp-json/wp/v2/"}posts?${C}`;console.log("API URL:",N),console.log("Nonce:",(h=window.helixData)==null?void 0:h.nonce);const L={"X-WP-Nonce":((x=window.helixData)==null?void 0:x.nonce)||"",Authorization:`Bearer ${((E=window.helixData)==null?void 0:E.nonce)||""}`};(w=window.helixData)!=null&&w.nonce&&C.set("_wpnonce",window.helixData.nonce);const O=await fetch(N,{headers:L});if(!O.ok){const T=await O.text();throw new Error(`HTTP error! status: ${O.status}, response: ${T}`)}const D=await O.json();console.log("Fetched posts:",D.map(T=>({id:T.id,title:T.title.rendered,status:T.status}))),r(D);const d=y(D,a);t(d),g(T=>({...T,total:d.length,totalPages:Math.ceil(d.length/m.perPage)}))}catch(C){s(C.message),console.error("Error fetching posts:",C)}finally{i(!1)}},[m.page,m.perPage,a]);z.useEffect(()=>{console.log("useEffect triggered, calling fetchPosts"),S()},[S]),z.useEffect(()=>{n.length>0&&(console.log("Filters changed, triggering new fetch"),S())},[a.status,a.author,a.search,S]);const v=f=>{if(c(f),g(h=>({...h,page:1})),n.length>0){const h=y(n,f);t(h),g(x=>({...x,total:h.length,totalPages:Math.ceil(h.length/x.perPage)}))}},k=f=>{g(h=>({...h,page:f}))},j=async f=>{var h,x;if(window.confirm("Are you sure you want to delete this post?"))try{if((await fetch(`${((h=window.helixData)==null?void 0:h.wpRestUrl)||window.location.origin+"/wp-json/wp/v2/"}posts/${f}`,{method:"DELETE",headers:{"X-WP-Nonce":((x=window.helixData)==null?void 0:x.nonce)||""}})).ok)t(w=>w.filter(C=>C.id!==f)),S();else throw new Error("Failed to delete post")}catch(E){s(`Error deleting post: ${E.message}`)}},p=async(f,h)=>{var x,E;try{if((await fetch(`${((x=window.helixData)==null?void 0:x.wpRestUrl)||window.location.origin+"/wp-json/wp/v2/"}posts/${f}`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":((E=window.helixData)==null?void 0:E.nonce)||""},body:JSON.stringify({status:h})})).ok)t(C=>C.map(N=>N.id===f?{...N,status:h}:N));else throw new Error("Failed to update post status")}catch(w){s(`Error updating post status: ${w.message}`)}};return o?u.jsx("div",{className:"helix-page",children:u.jsxs("div",{className:"helix-error",children:[u.jsx("h2",{children:"Error Loading Posts"}),u.jsx("p",{children:o}),u.jsx("button",{onClick:S,className:"helix-button",children:"Try Again"})]})}):u.jsxs("div",{className:"helix-page",children:[u.jsxs("div",{className:"helix-page-header",children:[u.jsx("h1",{children:"Posts Management"}),u.jsx("div",{className:"helix-page-actions",children:u.jsx("button",{className:"helix-button helix-button--primary",children:"Add New Post"})})]}),u.jsx(Av,{filters:a,onFilterChange:v}),u.jsx($v,{posts:e,loading:l,pagination:m,onPageChange:k,onDelete:j,onStatusChange:p})]})}function zv(){return u.jsx(dv,{})}function Ov(){return u.jsx(Rv,{})}function Lv(){return u.jsxs("div",{className:"helix-page",children:[u.jsx("h1",{children:"Users Management"}),u.jsx("p",{children:"Users management interface will be implemented here."})]})}document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("helix-root");e&&kr(e).render(u.jsx(zv,{}));const t=document.getElementById("helix-settings-root");t&&kr(t).render(u.jsx(Nv,{}));const n=document.getElementById("helix-posts-root");console.log("Posts root element:",n),n?(console.log("Creating Posts app root"),kr(n).render(u.jsx(Ov,{})),console.log("Posts app rendered")):console.log("Posts root element not found");const r=document.getElementById("helix-users-root");r&&kr(r).render(u.jsx(Lv,{}))}); diff --git a/enqueue.php b/enqueue.php index ee14d5a..f75840e 100644 --- a/enqueue.php +++ b/enqueue.php @@ -49,6 +49,7 @@ add_action( 'helixData', array( 'restUrl' => esc_url_raw( rest_url( 'helix/v1/' ) ), + 'wpRestUrl' => esc_url_raw( rest_url( 'wp/v2/' ) ), 'nonce' => wp_create_nonce( 'wp_rest' ), 'user' => wp_get_current_user(), 'originalRoute' => $original_route, diff --git a/src/App.jsx b/src/App.jsx index cf02f80..bb2ea14 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -2,6 +2,7 @@ import React from 'react'; import { createRoot } from 'react-dom/client'; import Dashboard from './pages/Dashboard/Dashboard'; import Settings from './pages/Settings/Settings'; +import Posts from './pages/Posts/Posts'; // Main App component for the dashboard page export default function App() { @@ -10,12 +11,7 @@ export default function App() { // Posts page component function PostsApp() { - return ( -
-

Posts Management

-

Posts management interface will be implemented here.

-
- ); + return ; } // Users page component @@ -46,9 +42,18 @@ document.addEventListener( 'DOMContentLoaded', function () { // Posts page const postsRoot = document.getElementById( 'helix-posts-root' ); + // eslint-disable-next-line no-console + console.log( 'Posts root element:', postsRoot ); if ( postsRoot ) { + // eslint-disable-next-line no-console + console.log( 'Creating Posts app root' ); const root = createRoot( postsRoot ); root.render( ); + // eslint-disable-next-line no-console + console.log( 'Posts app rendered' ); + } else { + // eslint-disable-next-line no-console + console.log( 'Posts root element not found' ); } // Users page diff --git a/src/pages/Posts/Implementation-Phases.md b/src/pages/Posts/Implementation-Phases.md new file mode 100644 index 0000000..1717d20 --- /dev/null +++ b/src/pages/Posts/Implementation-Phases.md @@ -0,0 +1,216 @@ +## 🚀 **Phase-Wise Implementation Plan** + +### **Phase 1: Foundation & Core List View** +**Timeline: 1-2 weeks | Priority: Critical** + +#### **1.1 Project Setup & Structure** +- [ ] Create Posts page directory structure +- [ ] Set up routing and navigation integration +- [ ] Create basic Posts page component with placeholder content +- [ ] Integrate with existing Helix navigation system + +#### **1.2 Basic Posts List** +- [ ] Create `PostsList` component with table structure +- [ ] Implement `PostRow` component for individual posts +- [ ] Basic data fetching from WordPress REST API (`/wp-json/wp/v2/posts`) +- [ ] Simple pagination (next/previous) +- [ ] Basic loading states and error handling + +#### **1.3 Essential CRUD Operations** +- [ ] View post details (read) +- [ ] Basic post creation form +- [ ] Simple post editing (title, content, status) +- [ ] Post deletion with confirmation +- [ ] Status changes (publish, draft, private) + +#### **1.4 Basic Search & Filtering** +- [ ] Search by post title +- [ ] Filter by status (published, draft, private) +- [ ] Filter by author +- [ ] Basic date range filtering + +**Deliverable**: Functional posts list with basic CRUD operations + +--- + +### **Phase 2: Enhanced List Features & Quick Actions** +**Timeline: 1-2 weeks | Priority: High** + +#### **2.1 Advanced Filtering & Search** +- [ ] Enhanced search (title + content + excerpt) +- [ ] Category and tag filtering +- [ ] Advanced date filtering (last week, last month, custom range) +- [ ] Filter combinations and saved filter presets +- [ ] Clear all filters functionality + +#### **2.2 Bulk Operations** +- [ ] Multi-select functionality with checkboxes +- [ ] Bulk actions toolbar (publish, draft, delete, move to trash) +- [ ] Bulk category/tag assignment +- [ ] Bulk author reassignment +- [ ] Confirmation dialogs for destructive actions + +#### **2.3 Quick Actions & Inline Editing** +- [ ] Quick edit modal for title, excerpt, categories +- [ ] Quick status change dropdown +- [ ] Quick delete with confirmation +- [ ] Quick preview functionality +- [ ] Keyboard shortcuts for common actions + +#### **2.4 Enhanced Data Display** +- [ ] Customizable columns (show/hide) +- [ ] Sortable columns (title, date, author, status) +- [ ] Post thumbnails and featured images +- [ ] Comment count display +- [ ] Last modified date + +**Deliverable**: Professional-grade posts list with bulk operations and quick actions + +--- + +### **Phase 3: Full Post Editor & Content Management** +**Timeline: 2-3 weeks | Priority: High** + +#### **3.1 Advanced Post Editor** +- [ ] Full-screen post editor modal/page +- [ ] Rich text editor integration (TinyMCE or modern alternative) +- [ ] Markdown support option +- [ ] Auto-save functionality +- [ ] Draft preview and comparison + +#### **3.2 Media Management Integration** +- [ ] Media library integration +- [ ] Drag & drop image uploads +- [ ] Featured image management +- [ ] Image optimization and resizing +- [ ] Media gallery management + +#### **3.3 Content Organization** +- [ ] Category and tag management +- [ ] Custom fields support +- [ ] Post templates and reusable content blocks +- [ ] Content scheduling with timezone support +- [ ] Post revisions and history + +#### **3.4 SEO & Publishing Tools** +- [ ] SEO meta fields (title, description, keywords) +- [ ] Social media preview settings +- [ ] Publishing workflow (draft → review → publish) +- [ ] Content validation and quality checks +- [ ] Publishing permissions and approvals + +**Deliverable**: Complete post creation and editing experience + +--- + +### **Phase 4: Advanced Features & Workflow** +**Timeline: 2-3 weeks | Priority: Medium** + +#### **4.1 Editorial Calendar** +- [ ] Calendar view for content planning +- [ ] Drag & drop post scheduling +- [ ] Content timeline visualization +- [ ] Deadline tracking and reminders +- [ ] Team availability integration + +#### **4.2 Collaboration & Workflow** +- [ ] User assignment and notifications +- [ ] Review and approval system +- [ ] Editorial comments and feedback +- [ ] Content submission workflow +- [ ] Team collaboration tools + +#### **4.3 Content Analytics** +- [ ] Basic performance metrics +- [ ] Content health scoring +- [ ] Readability analysis +- [ ] SEO scoring +- [ ] Engagement metrics integration + +#### **4.4 Advanced Publishing Features** +- [ ] Multi-site publishing +- [ ] Social media auto-posting +- [ ] Email newsletter integration +- [ ] Content syndication +- [ ] A/B testing framework + +**Deliverable**: Professional content management workflow system + +--- + +### **Phase 5: Performance & Polish** +**Timeline: 1-2 weeks | Priority: Medium** + +#### **5.1 Performance Optimization** +- [ ] Virtual scrolling for large post lists +- [ ] Advanced caching strategies +- [ ] Lazy loading for images and content +- [ ] Optimized API calls and data fetching +- [ ] Bundle size optimization + +#### **5.2 User Experience Polish** +- [ ] Advanced keyboard shortcuts +- [ ] Drag & drop reordering +- [ ] Customizable dashboard layouts +- [ ] User preference settings +- [ ] Accessibility improvements (WCAG 2.1 AA) + +#### **5.3 Advanced Customization** +- [ ] Custom post type support +- [ ] Extensible plugin architecture +- [ ] Theme customization options +- [ ] Advanced user role permissions +- [ ] API extensibility + +**Deliverable**: Production-ready, optimized posts management system + +--- + +## 🛠️ **Technical Implementation Details** + +### **Phase 1 Dependencies** +- WordPress REST API endpoints +- Basic React state management +- Existing Helix component library + +### **Phase 2 Dependencies** +- Enhanced WordPress REST API queries +- Advanced filtering logic +- Bulk operations API endpoints + +### **Phase 3 Dependencies** +- Rich text editor library +- Media management API +- Advanced WordPress hooks and filters + +### **Phase 4 Dependencies** +- Calendar component library +- Real-time updates (WebSocket/polling) +- Analytics and metrics APIs + +### **Phase 5 Dependencies** +- Performance monitoring tools +- Accessibility testing tools +- Advanced WordPress development hooks + +## �� **Success Criteria by Phase** + +- **Phase 1**: Users can view, create, edit, and delete posts with basic filtering +- **Phase 2**: Users can efficiently manage multiple posts with bulk operations +- **Phase 3**: Users have a complete content creation and editing experience +- **Phase 4**: Teams can collaborate effectively with advanced workflow tools +- **Phase 5**: System is performant, accessible, and production-ready + +## 🔄 **Iteration & Testing Strategy** + +- **End of each phase**: User testing and feedback collection +- **Continuous**: Code review and quality assurance +- **Phase transitions**: Performance testing and optimization +- **Final phase**: Comprehensive testing across different WordPress setups + +This phased approach ensures that: +1. **Each phase delivers immediate value** to users +2. **Development is manageable** and can be completed in realistic timeframes +3. **Testing and feedback** can be incorporated throughout the process +4. **Dependencies are clearly identified** and managed +5. **The system can be deployed** after each phase if needed diff --git a/src/pages/Posts/Posts.css b/src/pages/Posts/Posts.css new file mode 100644 index 0000000..82750f5 --- /dev/null +++ b/src/pages/Posts/Posts.css @@ -0,0 +1,179 @@ +/* Posts Page Styles */ +.helix-page { + max-width: 1400px; + margin: 0 auto; + padding: 20px; +} + +.helix-page-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 30px; + padding-bottom: 20px; + border-bottom: 2px solid #e1e5e9; +} + +.helix-page-header h1 { + margin: 0; + font-size: 2rem; + font-weight: 600; + color: #1a1a1a; +} + +.helix-page-actions { + display: flex; + gap: 12px; +} + +/* Button Styles */ +.helix-button { + padding: 10px 20px; + border: none; + border-radius: 6px; + font-size: 14px; + font-weight: 500; + cursor: pointer; + transition: all 0.2s ease; + text-decoration: none; + display: inline-flex; + align-items: center; + gap: 8px; +} + +.helix-button--primary { + background-color: #007cba; + color: white; +} + +.helix-button--primary:hover { + background-color: #005a87; + transform: translateY(-1px); +} + +.helix-button--secondary { + background-color: #f0f0f1; + color: #1a1a1a; + border: 1px solid #c3c4c7; +} + +.helix-button--secondary:hover { + background-color: #dcdcde; + border-color: #8c8f94; +} + +.helix-button--icon { + padding: 8px; + min-width: 36px; + justify-content: center; + background-color: transparent; + color: #50575e; +} + +.helix-button--small { + padding: 6px 12px; + font-size: 12px; + min-height: 28px; +} + +.helix-button--icon:hover { + background-color: #f0f0f1; + color: #1a1a1a; +} + +.helix-button:disabled { + opacity: 0.5; + cursor: not-allowed; + transform: none; +} + +/* Error State */ +.helix-error { + text-align: center; + padding: 40px 20px; + background-color: #fef7f1; + border: 1px solid #f0b849; + border-radius: 8px; + margin: 20px 0; +} + +.helix-error h2 { + color: #d63638; + margin-bottom: 16px; +} + +.helix-error p { + color: #50575e; + margin-bottom: 20px; +} + +/* Loading State */ +.helix-loading { + text-align: center; + padding: 60px 20px; +} + +.helix-loading-spinner { + width: 40px; + height: 40px; + border: 4px solid #f0f0f1; + border-top: 4px solid #007cba; + border-radius: 50%; + animation: spin 1s linear infinite; + margin: 0 auto 20px; +} + +@keyframes spin { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } +} + +/* Empty State */ +.helix-empty-state { + text-align: center; + padding: 60px 20px; + color: #50575e; +} + +.helix-empty-state h3 { + margin-bottom: 12px; + font-size: 1.5rem; + color: #1a1a1a; +} + +/* Responsive Design */ +@media (max-width: 768px) { + .helix-page { + padding: 15px; + } + + .helix-page-header { + flex-direction: column; + gap: 20px; + align-items: flex-start; + } + + .helix-page-header h1 { + font-size: 1.75rem; + } + + .helix-page-actions { + width: 100%; + justify-content: stretch; + } + + .helix-button { + flex: 1; + justify-content: center; + } +} + +@media (max-width: 480px) { + .helix-page { + padding: 10px; + } + + .helix-page-header h1 { + font-size: 1.5rem; + } +} diff --git a/src/pages/Posts/Posts.jsx b/src/pages/Posts/Posts.jsx new file mode 100644 index 0000000..e737160 --- /dev/null +++ b/src/pages/Posts/Posts.jsx @@ -0,0 +1,348 @@ +import React, { useState, useEffect, useCallback } from 'react'; +import PostsList from './components/PostsList'; +import PostFilters from './components/PostFilters'; +import './Posts.css'; + +/** + * Main Posts Management Page Component + * Phase 1: Foundation & Core List View + */ +export default function Posts() { + // Debug: Log when component mounts + // eslint-disable-next-line no-console + console.log( 'Posts component mounted' ); + + const [ posts, setPosts ] = useState( [] ); + const [ allPosts, setAllPosts ] = useState( [] ); // Store all posts for client-side filtering + const [ loading, setLoading ] = useState( true ); + const [ error, setError ] = useState( null ); + const [ filters, setFilters ] = useState( { + search: '', + status: 'all', + author: 'all', + dateRange: 'all', + } ); + const [ pagination, setPagination ] = useState( { + page: 1, + perPage: 50, // Increased to get more posts for better filtering + total: 0, + totalPages: 0, + } ); + + /** + * Apply client-side filtering for status and date ranges + */ + const applyClientSideFilters = ( postsData, currentFilters ) => { + let filtered = postsData; + + // Filter by status + if ( currentFilters.status !== 'all' ) { + filtered = filtered.filter( + ( post ) => post.status === currentFilters.status + ); + } + + // Filter by date range + if ( currentFilters.dateRange !== 'all' ) { + const now = new Date(); + const today = new Date( + now.getFullYear(), + now.getMonth(), + now.getDate() + ); + + filtered = filtered.filter( ( post ) => { + const postDate = new Date( post.date ); + + switch ( currentFilters.dateRange ) { + case 'today': + return postDate >= today; + case 'yesterday': + const yesterday = new Date( today ); + yesterday.setDate( yesterday.getDate() - 1 ); + return postDate >= yesterday && postDate < today; + case 'week': + const weekAgo = new Date( today ); + weekAgo.setDate( weekAgo.getDate() - 7 ); + return postDate >= weekAgo; + case 'month': + const monthAgo = new Date( today ); + monthAgo.setMonth( monthAgo.getMonth() - 1 ); + return postDate >= monthAgo; + case 'quarter': + const quarterAgo = new Date( today ); + quarterAgo.setMonth( quarterAgo.getMonth() - 3 ); + return postDate >= quarterAgo; + case 'year': + const yearAgo = new Date( today ); + yearAgo.setFullYear( yearAgo.getFullYear() - 1 ); + return postDate >= yearAgo; + default: + return true; + } + } ); + } + + return filtered; + }; + + /** + * Fetch posts from WordPress REST API + */ + const fetchPosts = useCallback( async () => { + setLoading( true ); + setError( null ); + + // Debug: Log function start + // eslint-disable-next-line no-console + console.log( 'fetchPosts function called' ); + + try { + const queryParams = new URLSearchParams( { + page: pagination.page, + per_page: pagination.perPage, + } ); + + // Add all filter parameters to API call + if ( filters.search ) { + queryParams.set( 'search', filters.search ); + } + if ( filters.author !== 'all' ) { + queryParams.set( 'author', filters.author ); + } + if ( filters.status !== 'all' ) { + queryParams.set( 'status', filters.status ); + } + // Note: date filtering will be done client-side + + // Try to get the API URL from helixData, fallback to standard WordPress REST API + const apiUrl = `${ + window.helixData?.wpRestUrl || + window.location.origin + '/wp-json/wp/v2/' + }posts?${ queryParams }`; + + // Debug: Log the API URL and nonce + // eslint-disable-next-line no-console + console.log( 'API URL:', apiUrl ); + // eslint-disable-next-line no-console + console.log( 'Nonce:', window.helixData?.nonce ); + + // Try different authentication methods + const headers = { + 'X-WP-Nonce': window.helixData?.nonce || '', + Authorization: `Bearer ${ window.helixData?.nonce || '' }`, + }; + + // Add nonce as query parameter as well + if ( window.helixData?.nonce ) { + queryParams.set( '_wpnonce', window.helixData.nonce ); + } + + const response = await fetch( apiUrl, { headers } ); + + if ( ! response.ok ) { + const errorText = await response.text(); + throw new Error( + `HTTP error! status: ${ response.status }, response: ${ errorText }` + ); + } + + const postsData = await response.json(); + + // Debug: Log what posts we're getting + // eslint-disable-next-line no-console + console.log( + 'Fetched posts:', + postsData.map( ( p ) => ( { + id: p.id, + title: p.title.rendered, + status: p.status, + } ) ) + ); + + // Store all posts for client-side filtering + setAllPosts( postsData ); + + // Apply client-side filtering + const filteredPosts = applyClientSideFilters( postsData, filters ); + setPosts( filteredPosts ); + + setPagination( ( prev ) => ( { + ...prev, + total: filteredPosts.length, + totalPages: Math.ceil( + filteredPosts.length / pagination.perPage + ), + } ) ); + } catch ( err ) { + setError( err.message ); + // eslint-disable-next-line no-console + console.error( 'Error fetching posts:', err ); + } finally { + setLoading( false ); + } + }, [ pagination.page, pagination.perPage, filters ] ); + + // useEffect must come after fetchPosts is defined + useEffect( () => { + // Debug: Log when useEffect runs + // eslint-disable-next-line no-console + console.log( 'useEffect triggered, calling fetchPosts' ); + fetchPosts(); + }, [ fetchPosts ] ); // fetchPosts is now stable with useCallback + + // Trigger fetch when filters change (for server-side filtering) + useEffect( () => { + if ( allPosts.length > 0 ) { + // eslint-disable-next-line no-console + console.log( 'Filters changed, triggering new fetch' ); + fetchPosts(); + } + }, [ filters.status, filters.author, filters.search, fetchPosts ] ); + + /** + * Handle filter changes + */ + const handleFilterChange = ( newFilters ) => { + setFilters( newFilters ); + setPagination( ( prev ) => ( { ...prev, page: 1 } ) ); // Reset to first page + + // Apply client-side filtering to existing posts + if ( allPosts.length > 0 ) { + const filteredPosts = applyClientSideFilters( + allPosts, + newFilters + ); + setPosts( filteredPosts ); + setPagination( ( prev ) => ( { + ...prev, + total: filteredPosts.length, + totalPages: Math.ceil( filteredPosts.length / prev.perPage ), + } ) ); + } + }; + + /** + * Handle pagination changes + */ + const handlePageChange = ( newPage ) => { + setPagination( ( prev ) => ( { ...prev, page: newPage } ) ); + }; + + /** + * Handle post deletion + */ + const handlePostDelete = async ( postId ) => { + if ( + ! window.confirm( 'Are you sure you want to delete this post?' ) + ) { + return; + } + + try { + const response = await fetch( + `${ + window.helixData?.wpRestUrl || + window.location.origin + '/wp-json/wp/v2/' + }posts/${ postId }`, + { + method: 'DELETE', + headers: { + 'X-WP-Nonce': window.helixData?.nonce || '', + }, + } + ); + + if ( response.ok ) { + // Remove post from local state + setPosts( ( prev ) => + prev.filter( ( post ) => post.id !== postId ) + ); + // Refresh posts to update pagination + fetchPosts(); + } else { + throw new Error( 'Failed to delete post' ); + } + } catch ( err ) { + setError( `Error deleting post: ${ err.message }` ); + } + }; + + /** + * Handle post status change + */ + const handleStatusChange = async ( postId, newStatus ) => { + try { + const response = await fetch( + `${ + window.helixData?.wpRestUrl || + window.location.origin + '/wp-json/wp/v2/' + }posts/${ postId }`, + { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + 'X-WP-Nonce': window.helixData?.nonce || '', + }, + body: JSON.stringify( { status: newStatus } ), + } + ); + + if ( response.ok ) { + // Update post in local state + setPosts( ( prev ) => + prev.map( ( post ) => + post.id === postId + ? { ...post, status: newStatus } + : post + ) + ); + } else { + throw new Error( 'Failed to update post status' ); + } + } catch ( err ) { + setError( `Error updating post status: ${ err.message }` ); + } + }; + + if ( error ) { + return ( +
+
+

Error Loading Posts

+

{ error }

+ +
+
+ ); + } + + return ( +
+
+

Posts Management

+
+ +
+
+ + + + +
+ ); +} diff --git a/src/pages/Posts/README.md b/src/pages/Posts/README.md new file mode 100644 index 0000000..97524ce --- /dev/null +++ b/src/pages/Posts/README.md @@ -0,0 +1,95 @@ +# Posts Management Page - Phase 1 + +## Overview +This is the Posts Management page implementation for Phase 1 of the Helix WordPress admin replacement. It provides a modern, React-based interface for managing WordPress posts. + +## Features Implemented (Phase 1) + +### ✅ Core List View +- **Posts Table**: Clean, responsive table displaying posts with essential information +- **Post Information**: Title, excerpt, author, categories, tags, status, and date +- **Responsive Design**: Mobile-first approach with responsive breakpoints + +### ✅ Essential CRUD Operations +- **View Posts**: Display posts with pagination support +- **Delete Posts**: Remove posts with confirmation dialog +- **Status Changes**: Quick status updates (publish, draft, private, etc.) +- **Post Links**: Direct links to view posts and previews + +### ✅ Basic Search & Filtering +- **Search**: Search posts by title and content +- **Status Filter**: Filter by post status (published, draft, private, etc.) +- **Author Filter**: Filter by post author +- **Date Filter**: Filter by date ranges (today, week, month, etc.) + +### ✅ User Experience Features +- **Loading States**: Spinner and loading indicators +- **Error Handling**: Graceful error display with retry options +- **Empty States**: Helpful messages when no posts are found +- **Pagination**: Navigate through large numbers of posts +- **Action Dropdowns**: Contextual actions for each post + +## Component Structure + +``` +src/pages/Posts/ +├── Posts.jsx # Main posts page component +├── components/ +│ ├── PostsList.jsx # Posts table and pagination +│ ├── PostRow.jsx # Individual post row with actions +│ └── PostFilters.jsx # Search and filter controls +├── utils/ +│ └── postsAPI.js # WordPress REST API integration +├── Posts.css # Main page styles +└── components/ + ├── PostsList.css # Table and list styles + ├── PostRow.css # Row and action styles + └── PostFilters.css # Filter form styles +``` + +## API Integration + +The page integrates with WordPress REST API endpoints: +- `GET /wp-json/wp/v2/posts` - Fetch posts with filters and pagination +- `POST /wp-json/wp/v2/posts/{id}` - Update post status +- `DELETE /wp-json/wp/v2/posts/{id}` - Delete posts +- `GET /wp-json/wp/v2/users` - Fetch authors for filtering +- `GET /wp-json/wp/v2/categories` - Fetch categories for filtering + +## Styling + +- **Design System**: Consistent with Helix design patterns +- **Responsive**: Mobile-first responsive design +- **Accessibility**: Proper contrast, focus states, and semantic HTML +- **Modern UI**: Clean, professional appearance with subtle shadows and animations + +## Browser Support + +- Modern browsers with ES6+ support +- Responsive design for mobile and tablet devices +- Graceful degradation for older browsers + +## Next Steps (Phase 2) + +- [ ] Bulk operations (select multiple posts) +- [ ] Enhanced filtering (category, tag combinations) +- [ ] Quick edit functionality +- [ ] Advanced search options +- [ ] Post creation form +- [ ] Enhanced post editor + +## Usage + +1. Navigate to the Posts menu in Helix admin +2. Use search and filters to find specific posts +3. Click the action menu (⋮) on any post row for options +4. Use pagination to navigate through large numbers of posts +5. Click post titles to view posts in new tabs + +## Technical Notes + +- Built with React hooks for state management +- Uses WordPress REST API for data operations +- Implements proper error handling and loading states +- Follows Helix component patterns and styling conventions +- Includes comprehensive responsive design diff --git a/src/pages/Posts/components/PostFilters.css b/src/pages/Posts/components/PostFilters.css new file mode 100644 index 0000000..adee9fb --- /dev/null +++ b/src/pages/Posts/components/PostFilters.css @@ -0,0 +1,133 @@ +/* Post Filters Styles */ +.helix-post-filters { + background: white; + border-radius: 8px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + padding: 24px; + margin-bottom: 24px; +} + +.helix-post-filters__row { + display: flex; + flex-direction: column; + gap: 20px; + margin-bottom: 20px; +} + +.helix-post-filters__search { + width: 100%; + max-width: 400px; + display: flex; + flex-direction: column; + gap: 8px; +} + +.helix-post-filters__controls { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 16px; + align-items: center; +} + +.helix-post-filters__actions { + display: flex; + gap: 12px; + align-items: center; + justify-content: flex-start; +} + +/* Filter Group Styles */ +.helix-filter-group { + display: flex; + flex-direction: column; + gap: 8px; +} + +.helix-filter-label { + font-size: 14px; + font-weight: 500; + color: #1a1a1a; + margin: 0; +} + +/* Form Input Styles */ +.helix-input, +.helix-select { + padding: 10px 12px; + border: 1px solid #c3c4c7; + border-radius: 4px; + font-size: 14px; + transition: border-color 0.2s ease, box-shadow 0.2s ease; + width: 100%; +} + +.helix-input:focus, +.helix-select:focus { + outline: none; + border-color: #007cba; + box-shadow: 0 0 0 1px #007cba; +} + +.helix-input::placeholder { + color: #8c8f94; +} + +.helix-select { + background-color: white; + cursor: pointer; + min-width: 140px; + height: 42px; /* Match input height */ +} + +.helix-select option { + padding: 8px; +} + +/* Responsive Design */ +@media (max-width: 768px) { + .helix-post-filters { + padding: 20px; + } + + .helix-post-filters__row { + gap: 16px; + } + + .helix-post-filters__search { + max-width: 100%; + } + + .helix-post-filters__controls { + justify-content: stretch; + } + + .helix-post-filters__actions { + justify-content: stretch; + } + + .helix-select { + flex: 1; + min-width: auto; + } +} + +@media (max-width: 480px) { + .helix-post-filters { + padding: 16px; + } + + .helix-post-filters__controls { + flex-direction: column; + gap: 12px; + } + + .helix-post-filters__actions { + flex-direction: column; + gap: 8px; + } + + .helix-button { + width: 100%; + justify-content: center; + } +} diff --git a/src/pages/Posts/components/PostFilters.jsx b/src/pages/Posts/components/PostFilters.jsx new file mode 100644 index 0000000..a60311f --- /dev/null +++ b/src/pages/Posts/components/PostFilters.jsx @@ -0,0 +1,200 @@ +import React, { useState, useEffect } from 'react'; +import './PostFilters.css'; + +/** + * Post Filters Component - Search and filtering controls + */ +export default function PostFilters( { filters, onFilterChange } ) { + const [ authors, setAuthors ] = useState( [] ); + // eslint-disable-next-line no-unused-vars + const [ categories, setCategories ] = useState( [] ); + const [ localFilters, setLocalFilters ] = useState( filters ); + + useEffect( () => { + fetchAuthors(); + fetchCategories(); + }, [] ); + + useEffect( () => { + setLocalFilters( filters ); + }, [ filters ] ); + + /** + * Fetch authors for filter dropdown + */ + const fetchAuthors = async () => { + try { + const response = await fetch( + `${ + window.helixData?.wpRestUrl || + window.location.origin + '/wp-json/wp/v2/' + }users?per_page=100` + ); + if ( response.ok ) { + const authorsData = await response.json(); + setAuthors( authorsData ); + } + } catch ( error ) { + // eslint-disable-next-line no-console + console.error( 'Error fetching authors:', error ); + } + }; + + /** + * Fetch categories for filter dropdown + */ + const fetchCategories = async () => { + try { + const response = await fetch( + `${ + window.helixData?.wpRestUrl || + window.location.origin + '/wp-json/wp/v2/' + }categories?per_page=100` + ); + if ( response.ok ) { + const categoriesData = await response.json(); + setCategories( categoriesData ); + } + } catch ( error ) { + // eslint-disable-next-line no-console + console.error( 'Error fetching categories:', error ); + } + }; + + /** + * Handle filter input changes + */ + const handleFilterChange = ( key, value ) => { + const newFilters = { ...localFilters, [ key ]: value }; + setLocalFilters( newFilters ); + }; + + /** + * Apply filters + */ + const handleApplyFilters = () => { + onFilterChange( localFilters ); + }; + + /** + * Clear all filters + */ + const handleClearFilters = () => { + const clearedFilters = { + search: '', + status: 'all', + author: 'all', + dateRange: 'all', + }; + setLocalFilters( clearedFilters ); + onFilterChange( clearedFilters ); + }; + + /** + * Check if any filters are active + */ + const hasActiveFilters = () => { + return ( + localFilters.search || + localFilters.status !== 'all' || + localFilters.author !== 'all' || + localFilters.dateRange !== 'all' + ); + }; + + return ( +
+
+
+ + + handleFilterChange( 'search', e.target.value ) + } + className="helix-input" + /> +
+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+
+
+ +
+ + { hasActiveFilters() && ( + + ) } +
+
+ ); +} diff --git a/src/pages/Posts/components/PostRow.css b/src/pages/Posts/components/PostRow.css new file mode 100644 index 0000000..0e49137 --- /dev/null +++ b/src/pages/Posts/components/PostRow.css @@ -0,0 +1,103 @@ +/* Post Row Styles */ +.helix-post-row { + transition: background-color 0.2s ease; +} + +.helix-post-row:hover { + background-color: #f8f9fa; +} + +/* Post Actions Styles */ +.helix-post-actions { + position: relative; +} + +/* Quick Actions Styles */ +.helix-post-quick-actions { + display: flex; + gap: 8px; + margin-top: 6px; + flex-wrap: wrap; +} + +.helix-button--small { + padding: 6px 12px; + font-size: 12px; + min-height: 28px; +} + +.helix-post-actions__dropdown { + position: absolute; + top: 100%; + right: 0; + z-index: 1000; + background: white; + border: 1px solid #e1e5e9; + border-radius: 6px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); + min-width: 200px; + padding: 8px 0; + margin-top: 4px; + /* Ensure dropdown is above other elements */ + z-index: 9999; +} + +.helix-dropdown-item { + display: block; + width: 100%; + padding: 8px 16px; + border: none; + background: none; + text-align: left; + font-size: 14px; + color: #1a1a1a; + cursor: pointer; + transition: background-color 0.2s ease; +} + +.helix-dropdown-item:hover { + background-color: #f0f0f1; +} + +.helix-dropdown-item:disabled { + color: #8c8f94; + cursor: not-allowed; +} + +.helix-dropdown-item:disabled:hover { + background-color: transparent; +} + +.helix-dropdown-item--danger { + color: #d63638; +} + +.helix-dropdown-item--danger:hover { + background-color: #fef7f1; +} + +.helix-dropdown-divider { + margin: 8px 0; + border: none; + border-top: 1px solid #e1e5e9; +} + +/* Responsive Design */ +@media (max-width: 768px) { + .helix-post-actions__dropdown { + right: auto; + left: 0; + min-width: 160px; + } +} + +@media (max-width: 480px) { + .helix-post-actions__dropdown { + min-width: 140px; + } + + .helix-dropdown-item { + padding: 6px 12px; + font-size: 13px; + } +} diff --git a/src/pages/Posts/components/PostRow.jsx b/src/pages/Posts/components/PostRow.jsx new file mode 100644 index 0000000..978aebe --- /dev/null +++ b/src/pages/Posts/components/PostRow.jsx @@ -0,0 +1,309 @@ +import React, { useState, useEffect, useRef } from 'react'; +import './PostRow.css'; + +/** + * Individual Post Row Component + */ +export default function PostRow( { post, onDelete, onStatusChange } ) { + const [ showActions, setShowActions ] = useState( false ); + const actionsRef = useRef( null ); + + // Close dropdown when clicking outside + useEffect( () => { + const handleClickOutside = ( event ) => { + if ( + actionsRef.current && + ! actionsRef.current.contains( event.target ) + ) { + setShowActions( false ); + } + }; + + document.addEventListener( 'mousedown', handleClickOutside ); + return () => { + document.removeEventListener( 'mousedown', handleClickOutside ); + }; + }, [] ); + + /** + * Format date for display + */ + const formatDate = ( dateString ) => { + const date = new Date( dateString ); + return date.toLocaleDateString( 'en-US', { + year: 'numeric', + month: 'short', + day: 'numeric', + } ); + }; + + /** + * Get status badge styling + */ + const getStatusBadge = ( status ) => { + const statusClasses = { + publish: 'helix-status-badge--publish', + draft: 'helix-status-badge--draft', + private: 'helix-status-badge--private', + pending: 'helix-status-badge--pending', + future: 'helix-status-badge--future', + }; + + return ( + + { status.charAt( 0 ).toUpperCase() + status.slice( 1 ) } + + ); + }; + + /** + * Handle status change + */ + const handleStatusChange = ( newStatus ) => { + onStatusChange( post.id, newStatus ); + setShowActions( false ); + }; + + /** + * Handle post deletion + */ + const handleDelete = () => { + onDelete( post.id ); + setShowActions( false ); + }; + + /** + * Handle edit post (open in new tab) + */ + const handleEditPost = ( postData ) => { + // Open WordPress admin edit page in new tab + const editUrl = `${ + window.helixData?.adminUrl || '/wp-admin/' + }post.php?post=${ postData.id }&action=edit`; + window.open( editUrl, '_blank' ); + setShowActions( false ); + }; + + /** + * Handle quick edit (placeholder for future implementation) + */ + const handleQuickEdit = ( postData ) => { + // TODO: Implement quick edit modal + // eslint-disable-next-line no-console + console.log( 'Quick edit for post:', postData.id ); + setShowActions( false ); + }; + + /** + * Get excerpt from content + */ + const getExcerpt = ( content ) => { + // Remove HTML tags and get first 100 characters + const textContent = content.replace( /<[^>]*>/g, '' ); + return textContent.length > 100 + ? textContent.substring( 0, 100 ) + '...' + : textContent; + }; + + return ( + + + + + +
+

+ + { post.title.rendered } + +

+

+ { getExcerpt( post.content.rendered ) } +

+
+ + + + { post.status !== 'publish' && ( + + ) } + { post.status === 'publish' && ( + + ) } +
+
+ + + { post._embedded?.author?.[ 0 ]?.name || 'Unknown' } + + + { post._embedded?.[ 'wp:term' ]?.[ 0 ]?.map( ( term ) => ( + + { term.name } + + ) ) || 'Uncategorized' } + + + { post._embedded?.[ 'wp:term' ]?.[ 1 ]?.map( ( tag ) => ( + + { tag.name } + + ) ) || 'No tags' } + + + { getStatusBadge( post.status ) } + + + { formatDate( post.date ) } + + +
+ + + { showActions && ( +
+ + + + + + + +
+ +
+ ) } +
+ + + ); +} diff --git a/src/pages/Posts/components/PostsList.css b/src/pages/Posts/components/PostsList.css new file mode 100644 index 0000000..91a33eb --- /dev/null +++ b/src/pages/Posts/components/PostsList.css @@ -0,0 +1,224 @@ +/* Posts List Styles */ +.helix-posts-list { + background: white; + border-radius: 8px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + overflow: hidden; +} + +.helix-posts-table-container { + overflow-x: auto; +} + +.helix-posts-table { + width: 100%; + border-collapse: collapse; + font-size: 14px; +} + +.helix-posts-table th { + background-color: #f8f9fa; + padding: 16px 12px; + text-align: left; + font-weight: 600; + color: #1a1a1a; + border-bottom: 2px solid #e1e5e9; + white-space: nowrap; +} + +.helix-posts-table td { + padding: 16px 12px; + border-bottom: 1px solid #f0f0f1; + vertical-align: top; +} + +.helix-posts-table tbody tr:hover { + background-color: #f8f9fa; +} + +/* Table Column Specific Styles */ +.helix-posts-table__checkbox { + width: 40px; + text-align: center; +} + +.helix-posts-table__checkbox input[type="checkbox"] { + width: 18px; + height: 18px; + cursor: pointer; +} + +.helix-posts-table__title { + min-width: 300px; +} + +.helix-posts-table__author { + min-width: 120px; +} + +.helix-posts-table__categories { + min-width: 150px; +} + +.helix-posts-table__tags { + min-width: 150px; +} + +.helix-posts-table__status { + min-width: 100px; +} + +.helix-posts-table__date { + min-width: 100px; +} + +.helix-posts-table__actions { + width: 80px; + text-align: center; +} + +/* Post Title Styles */ +.helix-post-title__text { + margin: 0 0 8px 0; + font-size: 16px; + font-weight: 600; +} + +.helix-post-title__text a { + color: #007cba; + text-decoration: none; +} + +.helix-post-title__text a:hover { + color: #005a87; + text-decoration: underline; +} + +.helix-post-title__excerpt { + margin: 0; + font-size: 13px; + color: #646970; + line-height: 1.4; +} + +/* Status Badge Styles */ +.helix-status-badge { + padding: 4px 8px; + border-radius: 12px; + font-size: 12px; + font-weight: 500; + text-transform: capitalize; +} + +.helix-status-badge--publish { + background-color: #d1e7dd; + color: #0f5132; +} + +.helix-status-badge--draft { + background-color: #fff3cd; + color: #856404; +} + +.helix-status-badge--private { + background-color: #f8d7da; + color: #721c24; +} + +.helix-status-badge--pending { + background-color: #cce5ff; + color: #004085; +} + +.helix-status-badge--future { + background-color: #e2e3e5; + color: #383d41; +} + +/* Category and Tag Styles */ +.helix-category-tag, +.helix-tag { + display: inline-block; + padding: 2px 8px; + margin: 2px 4px 2px 0; + border-radius: 12px; + font-size: 11px; + font-weight: 500; + background-color: #f0f0f1; + color: #50575e; +} + +.helix-category-tag { + background-color: #e7f3ff; + color: #007cba; +} + +/* Pagination Styles */ +.helix-pagination { + display: flex; + justify-content: space-between; + align-items: center; + padding: 20px; + background-color: #f8f9fa; + border-top: 1px solid #e1e5e9; +} + +.helix-pagination__info { + color: #646970; + font-size: 14px; +} + +.helix-pagination__controls { + display: flex; + align-items: center; + gap: 16px; +} + +.helix-pagination__current { + font-weight: 500; + color: #1a1a1a; +} + +/* Responsive Design */ +@media (max-width: 1024px) { + .helix-posts-table__categories, + .helix-posts-table__tags { + display: none; + } +} + +@media (max-width: 768px) { + .helix-posts-table__author { + display: none; + } + + .helix-posts-table__title { + min-width: 200px; + } + + .helix-pagination { + flex-direction: column; + gap: 16px; + text-align: center; + } +} + +@media (max-width: 480px) { + .helix-posts-table th, + .helix-posts-table td { + padding: 12px 8px; + font-size: 13px; + } + + .helix-posts-table__date { + display: none; + } + + .helix-post-title__text { + font-size: 14px; + } + + .helix-post-title__excerpt { + font-size: 12px; + } +} diff --git a/src/pages/Posts/components/PostsList.jsx b/src/pages/Posts/components/PostsList.jsx new file mode 100644 index 0000000..06ab17a --- /dev/null +++ b/src/pages/Posts/components/PostsList.jsx @@ -0,0 +1,114 @@ +import React from 'react'; +import PostRow from './PostRow'; +import './PostsList.css'; + +/** + * Posts List Component - Displays posts in a table format + */ +export default function PostsList( { + posts, + loading, + pagination, + onPageChange, + onDelete, + onStatusChange, +} ) { + if ( loading ) { + return ( +
+
+

Loading posts...

+
+ ); + } + + if ( posts.length === 0 ) { + return ( +
+

No posts found

+

Try adjusting your filters or create a new post.

+
+ ); + } + + return ( +
+
+ + + + + + + + + + + + + + + { posts.map( ( post ) => ( + + ) ) } + +
+ + Title + Author + + Categories + Tags + Status + Date + Actions +
+
+ + { pagination.totalPages > 1 && ( +
+
+ Showing{ ' ' } + { ( pagination.page - 1 ) * pagination.perPage + 1 } to{ ' ' } + { Math.min( + pagination.page * pagination.perPage, + pagination.total + ) }{ ' ' } + of { pagination.total } posts +
+
+ + + Page { pagination.page } of{ ' ' } + { pagination.totalPages } + + +
+
+ ) } +
+ ); +} diff --git a/src/pages/Posts/utils/postsAPI.js b/src/pages/Posts/utils/postsAPI.js new file mode 100644 index 0000000..26d3d8e --- /dev/null +++ b/src/pages/Posts/utils/postsAPI.js @@ -0,0 +1,201 @@ +/** + * Posts API Utility Functions + * Centralized API calls for posts management + */ + +const API_BASE = + window.helixData?.wpRestUrl || window.location.origin + '/wp-json/wp/v2/'; + +/** + * Fetch posts with filters and pagination + */ +export const fetchPosts = async ( params = {} ) => { + const queryParams = new URLSearchParams( { + page: 1, + per_page: 20, + ...params, + } ); + + // Remove 'all' values as they're not valid API parameters + [ 'status', 'author', 'dateRange' ].forEach( ( key ) => { + if ( params[ key ] === 'all' ) { + queryParams.delete( key ); + } + } ); + + try { + const response = await fetch( `${ API_BASE }posts?${ queryParams }` ); + + if ( ! response.ok ) { + throw new Error( `HTTP error! status: ${ response.status }` ); + } + + const posts = await response.json(); + const total = response.headers.get( 'X-WP-Total' ); + const totalPages = response.headers.get( 'X-WP-TotalPages' ); + + return { + posts, + pagination: { + total: parseInt( total ) || 0, + totalPages: parseInt( totalPages ) || 0, + }, + }; + } catch ( error ) { + // eslint-disable-next-line no-console + console.error( 'Error fetching posts:', error ); + throw error; + } +}; + +/** + * Fetch a single post by ID + */ +export const fetchPost = async ( postId ) => { + try { + const response = await fetch( `${ API_BASE }posts/${ postId }` ); + + if ( ! response.ok ) { + throw new Error( `HTTP error! status: ${ response.status }` ); + } + + return await response.json(); + } catch ( error ) { + // eslint-disable-next-line no-console + console.error( 'Error fetching post:', error ); + throw error; + } +}; + +/** + * Create a new post + */ +export const createPost = async ( postData ) => { + try { + const response = await fetch( `${ API_BASE }posts`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + 'X-WP-Nonce': window.helixData?.nonce || '', + }, + body: JSON.stringify( postData ), + } ); + + if ( ! response.ok ) { + throw new Error( `HTTP error! status: ${ response.status }` ); + } + + return await response.json(); + } catch ( error ) { + // eslint-disable-next-line no-console + console.error( 'Error creating post:', error ); + throw error; + } +}; + +/** + * Update an existing post + */ +export const updatePost = async ( postId, postData ) => { + try { + const response = await fetch( `${ API_BASE }posts/${ postId }`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + 'X-WP-Nonce': window.helixData?.nonce || '', + }, + body: JSON.stringify( postData ), + } ); + + if ( ! response.ok ) { + throw new Error( `HTTP error! status: ${ response.status }` ); + } + + return await response.json(); + } catch ( error ) { + // eslint-disable-next-line no-console + console.error( 'Error updating post:', error ); + throw error; + } +}; + +/** + * Delete a post + */ +export const deletePost = async ( postId ) => { + try { + const response = await fetch( `${ API_BASE }posts/${ postId }`, { + method: 'DELETE', + headers: { + 'X-WP-Nonce': window.helixData?.nonce || '', + }, + } ); + + if ( ! response.ok ) { + throw new Error( `HTTP error! status: ${ response.status }` ); + } + + return true; + } catch ( error ) { + // eslint-disable-next-line no-console + console.error( 'Error deleting post:', error ); + throw error; + } +}; + +/** + * Fetch authors for filter dropdown + */ +export const fetchAuthors = async () => { + try { + const response = await fetch( `${ API_BASE }users?per_page=100` ); + + if ( ! response.ok ) { + throw new Error( `HTTP error! status: ${ response.status }` ); + } + + return await response.json(); + } catch ( error ) { + // eslint-disable-next-line no-console + console.error( 'Error fetching authors:', error ); + throw error; + } +}; + +/** + * Fetch categories for filter dropdown + */ +export const fetchCategories = async () => { + try { + const response = await fetch( `${ API_BASE }categories?per_page=100` ); + + if ( ! response.ok ) { + throw new Error( `HTTP error! status: ${ response.status }` ); + } + + return await response.json(); + } catch ( error ) { + // eslint-disable-next-line no-console + console.error( 'Error fetching categories:', error ); + throw error; + } +}; + +/** + * Fetch tags for filter dropdown + */ +export const fetchTags = async () => { + try { + const response = await fetch( `${ API_BASE }tags?per_page=100` ); + + if ( ! response.ok ) { + throw new Error( `HTTP error! status: ${ response.status }` ); + } + + return await response.json(); + } catch ( error ) { + // eslint-disable-next-line no-console + console.error( 'Error fetching tags:', error ); + throw error; + } +};