syntaxic-react-editor 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`:root{--swe-bg-gray:#f3f3f3;--swe-bg-workspace:#e6e6e6;--swe-border-color:#d1d5db;--swe-primary-blue:#2b579a;--swe-primary-blue-hover:#1e3e6d;--swe-text-gray:#4b5563;--swe-shadow:0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f;--swe-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d;--swe-shadow-xl:0 20px 25px -5px #0000001a, 0 10px 10px -5px #0000000a;--swe-dropdown-shadow:0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d;--swe-bg-premium:#fff}.swe-text-primary-blue{color:var(--swe-primary-blue)}.swe-editor-root{background-color:var(--swe-bg-gray);-webkit-user-select:none;user-select:none;border:1px solid var(--swe-border-color);flex-direction:column;width:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.875rem;display:flex;overflow:hidden}.swe-toolbar-container{background-color:var(--swe-bg-gray);border-bottom:1px solid var(--swe-border-color);flex-shrink:0;padding:4px 4px 0;display:flex;position:relative}.swe-tab{cursor:pointer;color:#374151;border-top:1px solid #0000;border-left:1px solid #0000;border-right:1px solid #0000;padding:4px 16px;font-size:.75rem;transition:background-color .2s,border-color .2s}.swe-tab:hover{border-left-color:var(--swe-border-color);border-right-color:var(--swe-border-color);background-color:#fff}.swe-tab-active{border-left-color:var(--swe-border-color);border-right-color:var(--swe-border-color);border-top-color:var(--swe-border-color);color:var(--swe-primary-blue);background-color:#fff;font-weight:600}.swe-tab-blue{color:#1e40af;background-color:#f0f7ff;border-color:#60a5fa}.swe-tab-green{color:#166534;background-color:#f5fff5;border-color:#4ade80}.swe-ribbon{background-color:var(--swe-bg-gray);border-bottom:1px solid var(--swe-border-color);z-index:30;flex-wrap:nowrap;flex-shrink:0;align-items:flex-start;gap:8px;height:105px;padding:6px 8px;display:flex;position:relative;overflow-x:auto}.swe-workspace{flex:1;display:flex;overflow:hidden}.swe-scroll-area{background-color:var(--swe-bg-workspace);z-index:10;flex:1;position:relative;overflow:auto}.swe-btn{cursor:pointer;color:#374151;background:0 0;border:1px solid #0000;border-radius:2px;flex-direction:column;justify-content:center;align-items:center;padding:6px;transition:all .2s;display:flex}.swe-btn:hover{background-color:#d0d0d0;border-color:#9ca3af}.swe-btn-active{border-color:var(--swe-primary-blue);background-color:#c1d3ee;box-shadow:inset 0 2px 4px #0000000f}.swe-btn-disabled{opacity:.5;cursor:not-allowed}.swe-btn-label{margin-top:2px;font-size:8px}.swe-page-container{flex-direction:column;align-items:center;min-width:100%;min-height:100%;padding-top:0;padding-bottom:32px;display:flex;position:relative}.swe-page-wrapper{border:1px solid var(--swe-border-color);background-color:#fff;flex-direction:column;width:210mm;max-width:100%;margin:0 auto;display:flex;position:relative;box-shadow:0 10px 15px -3px #0000001a}.swe-editor-content{color:#000;word-break:break-word;outline:none;width:100%;min-height:297mm;line-height:1.5}.swe-editor-content p{min-height:1.5em;margin:0}.swe-editor-root td::selection{color:#000!important;background-color:#c1d3ee!important}.swe-editor-root th::selection{color:#000!important;background-color:#c1d3ee!important}.swe-editor-root td ::selection{color:#000!important;background-color:#c1d3ee!important}.swe-editor-root th ::selection{color:#000!important;background-color:#c1d3ee!important}.swe-editor-root td,.swe-editor-root th{outline-offset:-1px;border:1px solid #000;min-width:30px;padding:8px;transition:background-color .1s;position:relative}.swe-editor-root td[data-selected=true],.swe-editor-root th[data-selected=true]{box-shadow:inset 0 0 0 1px #2b579a;background-color:#e7f0fd!important}.swe-locked-region{border:1px dashed var(--swe-border-color);-webkit-user-select:all;user-select:all;background-color:#f3f4f680;transition:all .2s;position:relative}span.swe-locked-region{vertical-align:baseline;border-radius:4px;margin:0 2px;padding:0 4px;line-height:normal;display:inline-block}.swe-locked-region:hover{background-color:#f3f4f6cc;border-color:#9ca3af}.swe-locked-region:hover:after{content:"🔒 Locked";color:#fff;pointer-events:none;z-index:10;background:#374151;border-radius:4px;padding:2px 6px;font-size:10px;position:absolute;top:-18px;right:0}.swe-toolbar-group{border-right:1px solid var(--swe-border-color);height:88px;margin-right:8px;padding-bottom:18px;padding-right:8px;display:flex;position:relative}.swe-toolbar-group-label{text-align:center;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;pointer-events:none;padding-bottom:2px;font-size:8px;font-weight:800;position:absolute;bottom:0;left:0;right:0}.swe-vertical-divider{background-color:var(--swe-border-color);width:1px;height:16px;margin:0 4px}.swe-dropdown-menu{background-color:var(--swe-bg-premium);border:1px solid var(--swe-border-color);box-shadow:var(--swe-shadow-xl);z-index:110;color:#333;border-radius:6px;flex-direction:column;padding:8px 0;display:flex;position:fixed}.swe-dropdown-item{text-align:left;cursor:pointer;color:#374151;background:0 0;border:none;align-items:center;gap:8px;width:100%;padding:8px 16px;font-size:12px;transition:background-color .1s;display:flex}.swe-dropdown-item:hover{background-color:var(--swe-bg-gray)}.swe-table-grid{border:1px solid var(--swe-border-color);background-color:#fff;border-radius:4px;flex-direction:column;gap:2px;padding:8px;display:flex}.swe-table-cell{cursor:pointer;border:1px solid #e5e7eb;border-radius:2px;width:20px;height:20px;transition:background-color .1s}.swe-table-cell-active{border-color:var(--swe-primary-blue);background-color:#c1d3ee}.swe-input{border:1px solid var(--swe-border-color);border-radius:2px;outline:none;width:100%;padding:4px 8px;font-size:14px}.swe-input:focus{border-color:var(--swe-primary-blue)}.swe-input-sm{border:1px solid var(--swe-border-color);background-color:#fff;border-radius:2px;outline:none;width:56px;height:24px;padding:0 6px;font-size:12px;transition:border-color .1s}.swe-input-sm:focus{border-color:var(--swe-primary-blue)}.swe-form-label{color:#374151;text-align:right;min-width:60px;font-size:10px}.swe-kbd{border:1px solid var(--swe-border-color);color:#374151;text-align:center;background-color:#f3f4f6;border-radius:4px;min-width:60px;padding:2px 6px;font-family:monospace;font-size:10px;font-weight:700;box-shadow:0 1px #0000001a}.swe-shortcut-item{align-items:center;gap:8px;min-width:140px;display:flex}.swe-shortcut-grid{grid-template-rows:repeat(2,1fr);grid-auto-flow:column;gap:8px 24px;display:grid}.swe-btn-icon{cursor:pointer;background:0 0;border:1px solid #0000;border-radius:2px;justify-content:center;align-items:center;padding:4px;transition:all .1s;display:flex}.swe-btn-icon:hover{background-color:var(--swe-bg-hover);border-color:var(--swe-border-color)}.swe-divider-v{background-color:var(--swe-border-color);width:1px;height:24px;margin:0 4px}.swe-divider-h{background-color:var(--swe-border-color);width:100%;height:1px;margin:8px 0}.swe-grid-3{border:1px solid var(--swe-border-color);border-radius:4px;grid-template-columns:repeat(3,1fr);gap:2px;padding:2px;display:grid}.swe-text-red-500{color:#ef4444}.swe-text-red-700{color:#b91c1c}.swe-text-green-700{color:#15803d}.swe-text-green-800{color:#166534}.swe-text-gray-100{color:#f3f4f6}.swe-text-gray-200{color:#e5e7eb}.swe-text-gray-300{color:#d1d5db}.swe-text-gray-400{color:#9ca3af}.swe-text-gray-500{color:#6b7280}.swe-text-gray-600{color:#4b5563}.swe-text-gray-700{color:#374151}.swe-text-gray-800{color:#1f2937}.swe-text-gray-900{color:#111827}.swe-text-center{text-align:center}.swe-toolbar-group-green{background-color:#f0fdf4;border-right:1px solid #bbf7d0;border-radius:4px;flex-direction:row;height:60px;display:flex;position:relative}.swe-accent-green{accent-color:#16a34a}.swe-color-picker-btn{cursor:pointer;background:0 0;border:1px solid #0000;flex-direction:column;justify-content:center;align-items:center;width:36px;height:52px;transition:all .1s;display:flex}.swe-color-picker-btn:hover:not(:disabled){background-color:var(--swe-bg-hover);border-color:var(--swe-border-color);box-shadow:0 1px 2px #0000000d}.swe-color-picker-btn-compact{width:auto;height:32px;padding:0 4px}.swe-color-picker-content{background-color:var(--swe-bg-premium);border:1px solid var(--swe-border-color);box-shadow:var(--swe-shadow-xl);color:#333;border-radius:8px;flex-direction:column;gap:12px;padding:16px;display:flex}.swe-color-picker-title{color:#6b7280;text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;font-size:10px;font-weight:700}.swe-color-swatch{cursor:pointer;border:1px solid #e5e7eb;width:18px;height:18px;transition:transform .1s}.swe-color-swatch:hover{z-index:10;border-color:#9ca3af;transform:scale(1.2)}.swe-color-btn-action{cursor:pointer;text-align:left;color:#333;background:0 0;border:none;border-radius:6px;align-items:center;gap:10px;width:100%;padding:8px 12px;font-size:13px;transition:all .1s;display:flex}.swe-color-btn-action:hover{background-color:#f3f4f6}.swe-color-btn-more{color:var(--swe-primary-blue);font-weight:500}.swe-color-btn-more:hover{background-color:#eff6ff}.swe-btn-primary{background-color:var(--swe-primary-blue);color:#fff;cursor:pointer;border:none;border-radius:2px;padding:4px 12px;font-size:12px}.swe-btn-primary:hover{background-color:#1a3a6a}.swe-btn-secondary{color:#4b5563;cursor:pointer;background-color:#0000;border:1px solid #0000;border-radius:2px;padding:4px 12px;font-size:12px}.swe-btn-secondary:hover{background-color:#f3f4f6}.swe-sidebar{border-left:1px solid var(--swe-border-color);z-index:40;color:#333;background-color:#fff;flex-direction:column;flex-shrink:0;width:320px;display:flex;position:relative;box-shadow:-10px 0 15px -3px #0000000d}.swe-sidebar-header{background-color:var(--swe-bg-gray);border-bottom:1px solid var(--swe-border-color);color:#333;justify-content:space-between;align-items:center;height:48px;padding:0 16px;display:flex}.swe-sidebar-tabs{z-index:10;background-color:#fff;border-bottom:1px solid #e5e7eb;display:flex;position:sticky;top:0}.swe-sidebar-tab{text-transform:uppercase;letter-spacing:.05em;color:#9ca3af;cursor:pointer;background:0 0;border:none;flex:1;padding:12px 0;font-size:10px;font-weight:800}.swe-sidebar-tab-active{color:var(--swe-primary-blue);border-bottom-color:var(--swe-primary-blue)}.swe-sidebar-content{flex:1;padding:20px;overflow-y:auto}.swe-custom-scrollbar::-webkit-scrollbar{width:6px;height:6px}.swe-custom-scrollbar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.swe-custom-scrollbar::-webkit-scrollbar-track{background:0 0}.swe-hidden{display:none}.swe-flex{display:flex}.swe-flex-col{flex-direction:column;display:flex}.swe-items-center{align-items:center}.swe-justify-between{justify-content:space-between}.swe-w-full{width:100%}.swe-h-full{height:100%}.swe-relative{position:relative}.swe-absolute{position:absolute}.swe-p-8{padding:32px}.swe-py-8{padding-top:32px;padding-bottom:32px}.swe-flex-1{flex:1}.swe-min-w-full{min-width:100%}.swe-max-w-full{max-width:100%}.swe-min-h-full{min-height:100%}.swe-overflow-hidden{overflow:hidden}.swe-overflow-auto{overflow:auto}.swe-sticky{position:sticky}.swe-top-0{top:0}.swe-z-10{z-index:10}.swe-z-20{z-index:20}.swe-bg-white{background-color:#fff}.swe-shadow-xl{box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.swe-border{border:1px solid var(--swe-border-color)}.swe-outline-none{outline-offset:2px;outline:2px solid #0000}.swe-text-black{color:#000}.swe-text-12pt{font-size:12pt}.swe-text-11pt{font-size:11pt}.swe-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.swe-resize-none{resize:none}.swe-fixed{position:fixed}.swe-inset-0{inset:0}.swe-z-overlay{z-index:100}.swe-z-modal{z-index:110}.swe-overlay{z-index:100;background-color:#0000;position:fixed;inset:0}.swe-ruler-container{background-color:var(--swe-bg-gray);border-bottom:1px solid var(--swe-border-color);justify-content:center;width:100%;height:26px;display:flex;overflow:hidden}.swe-ruler-content{background-color:#fff;align-items:flex-end;height:100%;display:flex;position:relative}.swe-ruler-margin-area{opacity:.8;z-index:10;pointer-events:none;background-color:#e8e8e8;height:100%;position:absolute;top:0}.swe-ruler-margin-left{border-right:1px solid #9ca3af;left:0}.swe-ruler-margin-right{border-left:1px solid #9ca3af;right:0}.swe-ruler-marker{z-index:30;cursor:ew-resize;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:center;display:flex;position:absolute;bottom:0}.swe-ruler-marker-triangle{border-left:6px solid #0000;border-right:6px solid #0000;border-bottom:8px solid var(--swe-primary-blue);width:0;height:0;transition:border-bottom-color .1s}.swe-ruler-marker:hover .swe-ruler-marker-triangle{border-bottom-color:var(--swe-primary-blue-hover)}.swe-ruler-marker-box{background-color:var(--swe-primary-blue);border-bottom-right-radius:2px;border-bottom-left-radius:2px;width:14px;height:8px;transition:background-color .1s}.swe-ruler-marker:hover .swe-ruler-marker-box{background-color:var(--swe-primary-blue-hover)}.swe-ruler-ticks{z-index:0;align-items:flex-end;width:100%;height:100%;display:flex;position:absolute;inset:0}.swe-ruler-tick-group{border-left:1px solid #d1d5db;flex:1;align-items:flex-end;height:100%;display:flex;position:relative}.swe-ruler-tick-label{color:#6b7280;font-size:8px;font-weight:500;position:absolute;bottom:8px;left:4px}.swe-ruler-subticks{justify-content:space-between;width:100%;padding:0 20%;display:flex}.swe-ruler-tick-small{background-color:#aaa;width:1px;height:4px}.swe-sidebar-label{text-transform:uppercase;color:#6b7280;letter-spacing:.05em;margin-bottom:8px;margin-left:4px;font-size:10px;font-weight:800;display:block}.swe-sidebar-input-wrapper{width:100%;margin-bottom:16px;position:relative}.swe-sidebar-input{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;outline:none;width:100%;padding:10px 36px 10px 12px;font-size:13px;transition:all .2s;box-shadow:inset 0 1px 2px #0000000d}.swe-sidebar-input:focus{border-color:var(--swe-primary-blue);background-color:#fff;box-shadow:0 0 0 4px #2b579a0d}.swe-sidebar-input-icon{color:#d1d5db;pointer-events:none;transition:color .2s;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.swe-sidebar-input:focus+.swe-sidebar-input-icon{color:var(--swe-primary-blue)}.swe-sidebar-help-box{color:#9ca3af;background-color:#f9fafb;border:1px solid #f3f4f6;border-radius:8px;margin-top:32px;padding:16px;font-size:10px;font-style:italic;line-height:1.6}.swe-sidebar-help-icon{color:#e5e7eb;margin-bottom:8px}@keyframes swe-fade-in{0%{opacity:0}to{opacity:1}}@keyframes swe-slide-in-top{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.swe-animate-fade{animation:.2s ease-out swe-fade-in}.swe-animate-slide{animation:.2s ease-out swe-slide-in-top}.swe-status-msg{border-radius:6px;align-items:center;gap:8px;margin-bottom:16px;padding:12px;font-size:10px;font-weight:700;display:flex}.swe-status-error{color:#dc2626;background-color:#fef2f2;border:1px solid #fee2e2}.swe-status-success{color:#16a34a;background-color:#f0fdf4;border:1px solid #dcfce7}.swe-status-info{color:#2563eb;background-color:#eff6ff;border:1px solid #dbeafe}.swe-search-results-list{flex-direction:column;gap:8px;max-height:400px;padding-right:4px;display:flex;overflow-y:auto}.swe-search-result-item{text-align:left;cursor:pointer;background-color:#fff;border:1px solid #f3f4f6;border-radius:8px;width:100%;padding:10px;transition:all .2s;box-shadow:0 1px 2px #00000005}.swe-search-result-item:hover{border-color:var(--swe-primary-blue);background-color:#f0f7ff;transform:translateY(-1px)}.swe-search-result-item:active{transform:translateY(0)}.swe-gap-1{gap:4px}.swe-gap-2{gap:8px}.swe-gap-3{gap:12px}.swe-gap-4{gap:16px}.swe-p-1{padding:4px}.swe-p-2{padding:8px}.swe-p-3{padding:12px}.swe-mt-1{margin-top:4px}.swe-mt-2{margin-top:8px}.swe-mt-4{margin-top:16px}.swe-mb-1{margin-bottom:4px}.swe-mb-2{margin-bottom:8px}.swe-mb-4{margin-bottom:16px}.swe-ml-1{margin-left:4px}.swe-mr-1{margin-right:4px}.swe-font-bold{font-weight:700}.swe-text-xs{font-size:.75rem}.swe-text-sm{font-size:.875rem}.swe-uppercase{text-transform:uppercase}.swe-tracking-wide{letter-spacing:.025em}.swe-tracking-widest{letter-spacing:.1em}.swe-italic{font-style:italic}.swe-rounded-full{border-radius:9999px}.swe-btn-sidebar-main{cursor:pointer;border:none;border-radius:10px;justify-content:center;align-items:center;gap:8px;width:100%;padding:12px;font-size:11px;font-weight:700;transition:all .2s;display:flex}.swe-btn-sidebar-primary{background-color:var(--swe-primary-blue);color:#fff;box-shadow:0 4px 6px -1px #2b579a33}.swe-btn-sidebar-primary:hover:not(:disabled){background-color:var(--swe-primary-blue-hover);transform:translateY(-1px)}.swe-btn-sidebar-success{color:#fff;background-color:#16a34a;box-shadow:0 4px 6px -1px #16a34a33}.swe-btn-sidebar-success:hover:not(:disabled){background-color:#15803d;transform:translateY(-1px)}.swe-btn-sidebar-outline{color:#374151;background-color:#fff;border:1px solid #d1d5db}.swe-btn-sidebar-outline:hover:not(:disabled){background-color:#f9fafb;border-color:#9ca3af}.swe-btn-sidebar-main:disabled{opacity:.5;cursor:not-allowed}.swe-btn-sidebar-main:active:not(:disabled){transform:translateY(0)}.swe-pt-1{padding-top:4px}.swe-pt-2{padding-top:8px}.swe-pt-3{padding-top:12px}.swe-pt-4{padding-top:16px}.swe-pb-1{padding-bottom:4px}.swe-pb-2{padding-bottom:8px}.swe-pl-1{padding-left:4px}.swe-pl-2{padding-left:8px}.swe-accent-blue{accent-color:var(--swe-primary-blue)}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`:root{--swe-bg-gray:#f3f3f3;--swe-bg-workspace:#e6e6e6;--swe-border-color:#d1d5db;--swe-primary-blue:#2b579a;--swe-primary-blue-hover:#1e3e6d;--swe-text-gray:#4b5563;--swe-shadow:0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f;--swe-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d;--swe-shadow-xl:0 20px 25px -5px #0000001a, 0 10px 10px -5px #0000000a;--swe-dropdown-shadow:0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d;--swe-bg-premium:#fff}.swe-text-primary-blue{color:var(--swe-primary-blue)}.swe-editor-root{background-color:var(--swe-bg-gray);-webkit-user-select:none;user-select:none;border:1px solid var(--swe-border-color);flex-direction:column;width:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.875rem;display:flex;overflow:hidden}.swe-toolbar-container{background-color:var(--swe-bg-gray);border-bottom:1px solid var(--swe-border-color);flex-shrink:0;padding:4px 4px 0;display:flex;position:relative}.swe-tab{cursor:pointer;color:#374151;border-top:1px solid #0000;border-left:1px solid #0000;border-right:1px solid #0000;padding:4px 16px;font-size:.75rem;transition:background-color .2s,border-color .2s}.swe-tab:hover{border-left-color:var(--swe-border-color);border-right-color:var(--swe-border-color);background-color:#fff}.swe-tab-active{border-left-color:var(--swe-border-color);border-right-color:var(--swe-border-color);border-top-color:var(--swe-border-color);color:var(--swe-primary-blue);background-color:#fff;font-weight:600}.swe-tab-blue{color:#1e40af;background-color:#f0f7ff;border-color:#60a5fa}.swe-tab-green{color:#166534;background-color:#f5fff5;border-color:#4ade80}.swe-ribbon{background-color:var(--swe-bg-gray);border-bottom:1px solid var(--swe-border-color);z-index:30;flex-wrap:nowrap;flex-shrink:0;align-items:flex-start;gap:8px;height:105px;padding:6px 8px;display:flex;position:relative;overflow-x:auto}.swe-workspace{flex:1;display:flex;overflow:hidden}.swe-scroll-area{background-color:var(--swe-bg-workspace);z-index:10;flex:1;position:relative;overflow:auto}.swe-btn{cursor:pointer;color:#374151;background:0 0;border:1px solid #0000;border-radius:2px;flex-direction:column;justify-content:center;align-items:center;padding:6px;transition:all .2s;display:flex}.swe-btn:hover{background-color:#d0d0d0;border-color:#9ca3af}.swe-btn-active{border-color:var(--swe-primary-blue);background-color:#c1d3ee;box-shadow:inset 0 2px 4px #0000000f}.swe-btn-disabled{opacity:.5;cursor:not-allowed}.swe-btn-label{margin-top:2px;font-size:8px}.swe-page-container{flex-direction:column;align-items:center;min-width:100%;min-height:100%;padding-top:0;padding-bottom:32px;display:flex;position:relative}.swe-page-wrapper{border:1px solid var(--swe-border-color);background-color:#fff;flex-direction:column;width:210mm;max-width:100%;margin:0 auto;display:flex;position:relative;box-shadow:0 10px 15px -3px #0000001a}.swe-editor-content{color:#000;word-break:break-word;outline:none;width:100%;min-height:297mm;line-height:1.5}.swe-editor-content p{min-height:1.5em;margin:0}.swe-editor-root td::selection{color:#000!important;background-color:#c1d3ee!important}.swe-editor-root th::selection{color:#000!important;background-color:#c1d3ee!important}.swe-editor-root td ::selection{color:#000!important;background-color:#c1d3ee!important}.swe-editor-root th ::selection{color:#000!important;background-color:#c1d3ee!important}.swe-editor-root td,.swe-editor-root th{outline-offset:-1px;border:1px solid #000;min-width:30px;padding:8px;transition:background-color .1s;position:relative}.swe-editor-root td[data-selected=true],.swe-editor-root th[data-selected=true]{box-shadow:inset 0 0 0 1px #2b579a;background-color:#e7f0fd!important}.swe-locked-region{border:1px dashed var(--swe-border-color);-webkit-user-select:all;user-select:all;background-color:#f3f4f680;transition:all .2s;position:relative}span.swe-locked-region{vertical-align:baseline;border-radius:4px;margin:0 2px;padding:0 4px;line-height:normal;display:inline-block}.swe-locked-region:hover{background-color:#f3f4f6cc;border-color:#9ca3af}.swe-locked-region:hover:after{content:"🔒 Locked";color:#fff;pointer-events:none;z-index:10;background:#374151;border-radius:4px;padding:2px 6px;font-size:10px;position:absolute;top:-18px;right:0}.swe-toolbar-group{border-right:1px solid var(--swe-border-color);height:88px;margin-right:8px;padding-bottom:18px;padding-right:8px;display:flex;position:relative}.swe-toolbar-group-label{text-align:center;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;pointer-events:none;padding-bottom:2px;font-size:8px;font-weight:800;position:absolute;bottom:0;left:0;right:0}.swe-vertical-divider{background-color:var(--swe-border-color);width:1px;height:16px;margin:0 4px}.swe-dropdown-menu{background-color:var(--swe-bg-premium);border:1px solid var(--swe-border-color);box-shadow:var(--swe-shadow-xl);z-index:110;color:#333;border-radius:6px;flex-direction:column;padding:8px 0;display:flex;position:fixed}.swe-dropdown-item{text-align:left;cursor:pointer;color:#374151;background:0 0;border:none;align-items:center;gap:8px;width:100%;padding:8px 16px;font-size:12px;transition:background-color .1s;display:flex}.swe-dropdown-item:hover{background-color:var(--swe-bg-gray)}.swe-table-grid{border:1px solid var(--swe-border-color);background-color:#fff;border-radius:4px;flex-direction:column;gap:2px;padding:8px;display:flex}.swe-table-cell{cursor:pointer;border:1px solid #e5e7eb;border-radius:2px;width:20px;height:20px;transition:background-color .1s}.swe-table-cell-active{border-color:var(--swe-primary-blue);background-color:#c1d3ee}.swe-input{border:1px solid var(--swe-border-color);border-radius:2px;outline:none;width:100%;padding:4px 8px;font-size:14px}.swe-input:focus{border-color:var(--swe-primary-blue)}.swe-input-sm{border:1px solid var(--swe-border-color);background-color:#fff;border-radius:2px;outline:none;width:56px;height:24px;padding:0 6px;font-size:12px;transition:border-color .1s}.swe-input-sm:focus{border-color:var(--swe-primary-blue)}.swe-form-label{color:#374151;text-align:right;min-width:60px;font-size:10px}.swe-kbd{border:1px solid var(--swe-border-color);color:#374151;text-align:center;background-color:#f3f4f6;border-radius:4px;min-width:60px;padding:2px 6px;font-family:monospace;font-size:10px;font-weight:700;box-shadow:0 1px #0000001a}.swe-shortcut-item{align-items:center;gap:8px;min-width:140px;display:flex}.swe-shortcut-grid{grid-template-rows:repeat(2,1fr);grid-auto-flow:column;gap:8px 24px;display:grid}.swe-btn-icon{cursor:pointer;background:0 0;border:1px solid #0000;border-radius:2px;justify-content:center;align-items:center;padding:4px;transition:all .1s;display:flex}.swe-btn-icon:hover{background-color:var(--swe-bg-hover);border-color:var(--swe-border-color)}.swe-divider-v{background-color:var(--swe-border-color);width:1px;height:24px;margin:0 4px}.swe-divider-h{background-color:var(--swe-border-color);width:100%;height:1px;margin:8px 0}.swe-grid-3{border:1px solid var(--swe-border-color);border-radius:4px;grid-template-columns:repeat(3,1fr);gap:2px;padding:2px;display:grid}.swe-text-red-500{color:#ef4444}.swe-text-red-700{color:#b91c1c}.swe-text-green-700{color:#15803d}.swe-text-green-800{color:#166534}.swe-text-gray-100{color:#f3f4f6}.swe-text-gray-200{color:#e5e7eb}.swe-text-gray-300{color:#d1d5db}.swe-text-gray-400{color:#9ca3af}.swe-text-gray-500{color:#6b7280}.swe-text-gray-600{color:#4b5563}.swe-text-gray-700{color:#374151}.swe-text-gray-800{color:#1f2937}.swe-text-gray-900{color:#111827}.swe-text-center{text-align:center}.swe-toolbar-group-green{background-color:#f0fdf4;border-right:1px solid #bbf7d0;border-radius:4px;flex-direction:row;height:60px;display:flex;position:relative}.swe-accent-green{accent-color:#16a34a}.swe-color-picker-btn{cursor:pointer;background:0 0;border:1px solid #0000;flex-direction:column;justify-content:center;align-items:center;width:36px;height:52px;transition:all .1s;display:flex}.swe-color-picker-btn:hover:not(:disabled){background-color:var(--swe-bg-hover);border-color:var(--swe-border-color);box-shadow:0 1px 2px #0000000d}.swe-color-picker-btn-compact{width:auto;height:32px;padding:0 4px}.swe-color-picker-content{background-color:var(--swe-bg-premium);border:1px solid var(--swe-border-color);box-shadow:var(--swe-shadow-xl);color:#333;border-radius:8px;flex-direction:column;gap:12px;padding:16px;display:flex}.swe-color-picker-title{color:#6b7280;text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;font-size:10px;font-weight:700}.swe-color-swatch{cursor:pointer;border:1px solid #e5e7eb;width:18px;height:18px;transition:transform .1s}.swe-color-swatch:hover{z-index:10;border-color:#9ca3af;transform:scale(1.2)}.swe-color-btn-action{cursor:pointer;text-align:left;color:#333;background:0 0;border:none;border-radius:6px;align-items:center;gap:10px;width:100%;padding:8px 12px;font-size:13px;transition:all .1s;display:flex}.swe-color-btn-action:hover{background-color:#f3f4f6}.swe-color-btn-more{color:var(--swe-primary-blue);font-weight:500}.swe-color-btn-more:hover{background-color:#eff6ff}.swe-btn-primary{background-color:var(--swe-primary-blue);color:#fff;cursor:pointer;border:none;border-radius:2px;padding:4px 12px;font-size:12px}.swe-btn-primary:hover{background-color:#1a3a6a}.swe-btn-secondary{color:#4b5563;cursor:pointer;background-color:#0000;border:1px solid #0000;border-radius:2px;padding:4px 12px;font-size:12px}.swe-btn-secondary:hover{background-color:#f3f4f6}.swe-sidebar{border-left:1px solid var(--swe-border-color);z-index:40;color:#333;background-color:#fff;flex-direction:column;flex-shrink:0;width:320px;display:flex;position:relative;box-shadow:-10px 0 15px -3px #0000000d}.swe-sidebar-header{background-color:var(--swe-bg-gray);border-bottom:1px solid var(--swe-border-color);color:#333;justify-content:space-between;align-items:center;height:48px;padding:0 16px;display:flex}.swe-sidebar-tabs{z-index:10;background-color:#fff;border-bottom:1px solid #e5e7eb;display:flex;position:sticky;top:0}.swe-sidebar-tab{text-transform:uppercase;letter-spacing:.05em;color:#9ca3af;cursor:pointer;background:0 0;border:none;flex:1;padding:12px 0;font-size:10px;font-weight:800}.swe-sidebar-tab-active{color:var(--swe-primary-blue);border-bottom-color:var(--swe-primary-blue)}.swe-sidebar-content{flex:1;padding:20px;overflow-y:auto}.swe-custom-scrollbar::-webkit-scrollbar{width:6px;height:6px}.swe-custom-scrollbar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.swe-custom-scrollbar::-webkit-scrollbar-track{background:0 0}.swe-hidden{display:none}.swe-flex{display:flex}.swe-flex-col{flex-direction:column;display:flex}.swe-items-center{align-items:center}.swe-justify-between{justify-content:space-between}.swe-w-full{width:100%}.swe-h-full{height:100%}.swe-relative{position:relative}.swe-absolute{position:absolute}.swe-p-8{padding:32px}.swe-py-8{padding-top:32px;padding-bottom:32px}.swe-flex-1{flex:1}.swe-min-w-full{min-width:100%}.swe-max-w-full{max-width:100%}.swe-min-h-full{min-height:100%}.swe-overflow-hidden{overflow:hidden}.swe-overflow-auto{overflow:auto}.swe-sticky{position:sticky}.swe-top-0{top:0}.swe-z-10{z-index:10}.swe-z-20{z-index:20}.swe-bg-white{background-color:#fff}.swe-shadow-xl{box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.swe-border{border:1px solid var(--swe-border-color)}.swe-outline-none{outline-offset:2px;outline:2px solid #0000}.swe-text-black{color:#000}.swe-text-12pt{font-size:12pt}.swe-text-11pt{font-size:11pt}.swe-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.swe-resize-none{resize:none}.swe-fixed{position:fixed}.swe-inset-0{inset:0}.swe-z-overlay{z-index:100}.swe-z-modal{z-index:110}.swe-overlay{z-index:100;background-color:#0000;position:fixed;inset:0}.swe-ruler-container{background-color:var(--swe-bg-gray);border-bottom:1px solid var(--swe-border-color);justify-content:center;width:100%;height:26px;display:flex;overflow:hidden}.swe-ruler-content{background-color:#fff;align-items:flex-end;height:100%;display:flex;position:relative}.swe-ruler-margin-area{opacity:.8;z-index:10;pointer-events:none;background-color:#e8e8e8;height:100%;position:absolute;top:0}.swe-ruler-margin-left{border-right:1px solid #9ca3af;left:0}.swe-ruler-margin-right{border-left:1px solid #9ca3af;right:0}.swe-ruler-marker{z-index:30;cursor:ew-resize;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:center;display:flex;position:absolute;bottom:0}.swe-ruler-marker-triangle{border-left:6px solid #0000;border-right:6px solid #0000;border-bottom:8px solid var(--swe-primary-blue);width:0;height:0;transition:border-bottom-color .1s}.swe-ruler-marker:hover .swe-ruler-marker-triangle{border-bottom-color:var(--swe-primary-blue-hover)}.swe-ruler-marker-box{background-color:var(--swe-primary-blue);border-bottom-right-radius:2px;border-bottom-left-radius:2px;width:14px;height:8px;transition:background-color .1s}.swe-ruler-marker:hover .swe-ruler-marker-box{background-color:var(--swe-primary-blue-hover)}.swe-ruler-ticks{z-index:0;align-items:flex-end;width:100%;height:100%;display:flex;position:absolute;inset:0}.swe-ruler-tick-group{border-left:1px solid #d1d5db;flex:1;align-items:flex-end;height:100%;display:flex;position:relative}.swe-ruler-tick-label{color:#6b7280;font-size:8px;font-weight:500;position:absolute;bottom:8px;left:4px}.swe-ruler-subticks{justify-content:space-between;width:100%;padding:0 20%;display:flex}.swe-ruler-tick-small{background-color:#aaa;width:1px;height:4px}.swe-sidebar-label{text-transform:uppercase;color:#6b7280;letter-spacing:.05em;margin-bottom:8px;margin-left:4px;font-size:10px;font-weight:800;display:block}.swe-sidebar-input-wrapper{width:100%;margin-bottom:16px;position:relative}.swe-sidebar-input{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;outline:none;width:100%;padding:10px 36px 10px 12px;font-size:13px;transition:all .2s;box-shadow:inset 0 1px 2px #0000000d}.swe-sidebar-input:focus{border-color:var(--swe-primary-blue);background-color:#fff;box-shadow:0 0 0 4px #2b579a0d}.swe-sidebar-input-icon{color:#d1d5db;pointer-events:none;transition:color .2s;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.swe-sidebar-input:focus+.swe-sidebar-input-icon{color:var(--swe-primary-blue)}.swe-sidebar-help-box{color:#9ca3af;background-color:#f9fafb;border:1px solid #f3f4f6;border-radius:8px;margin-top:32px;padding:16px;font-size:10px;font-style:italic;line-height:1.6}.swe-sidebar-help-icon{color:#e5e7eb;margin-bottom:8px}@keyframes swe-fade-in{0%{opacity:0}to{opacity:1}}@keyframes swe-slide-in-top{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.swe-animate-fade{animation:.2s ease-out swe-fade-in}.swe-animate-slide{animation:.2s ease-out swe-slide-in-top}.swe-status-msg{border-radius:6px;align-items:center;gap:8px;margin-bottom:16px;padding:12px;font-size:10px;font-weight:700;display:flex}.swe-status-error{color:#dc2626;background-color:#fef2f2;border:1px solid #fee2e2}.swe-status-success{color:#16a34a;background-color:#f0fdf4;border:1px solid #dcfce7}.swe-status-info{color:#2563eb;background-color:#eff6ff;border:1px solid #dbeafe}.swe-search-results-list{flex-direction:column;gap:8px;max-height:400px;padding-right:4px;display:flex;overflow-y:auto}.swe-search-result-item{text-align:left;cursor:pointer;background-color:#fff;border:1px solid #f3f4f6;border-radius:8px;width:100%;padding:10px;transition:all .2s;box-shadow:0 1px 2px #00000005}.swe-search-result-item:hover{border-color:var(--swe-primary-blue);background-color:#f0f7ff;transform:translateY(-1px)}.swe-search-result-item:active{transform:translateY(0)}.swe-gap-1{gap:4px}.swe-gap-2{gap:8px}.swe-gap-3{gap:12px}.swe-gap-4{gap:16px}.swe-p-1{padding:4px}.swe-p-2{padding:8px}.swe-p-3{padding:12px}.swe-mt-1{margin-top:4px}.swe-mt-2{margin-top:8px}.swe-mt-4{margin-top:16px}.swe-mb-1{margin-bottom:4px}.swe-mb-2{margin-bottom:8px}.swe-mb-4{margin-bottom:16px}.swe-ml-1{margin-left:4px}.swe-mr-1{margin-right:4px}.swe-font-bold{font-weight:700}.swe-text-xs{font-size:.75rem}.swe-text-sm{font-size:.875rem}.swe-uppercase{text-transform:uppercase}.swe-tracking-wide{letter-spacing:.025em}.swe-tracking-widest{letter-spacing:.1em}.swe-italic{font-style:italic}.swe-rounded-full{border-radius:9999px}.swe-btn-sidebar-main{cursor:pointer;border:none;border-radius:10px;justify-content:center;align-items:center;gap:8px;width:100%;padding:12px;font-size:11px;font-weight:700;transition:all .2s;display:flex}.swe-btn-sidebar-primary{background-color:var(--swe-primary-blue);color:#fff;box-shadow:0 4px 6px -1px #2b579a33}.swe-btn-sidebar-primary:hover:not(:disabled){background-color:var(--swe-primary-blue-hover);transform:translateY(-1px)}.swe-btn-sidebar-success{color:#fff;background-color:#16a34a;box-shadow:0 4px 6px -1px #16a34a33}.swe-btn-sidebar-success:hover:not(:disabled){background-color:#15803d;transform:translateY(-1px)}.swe-btn-sidebar-outline{color:#374151;background-color:#fff;border:1px solid #d1d5db}.swe-btn-sidebar-outline:hover:not(:disabled){background-color:#f9fafb;border-color:#9ca3af}.swe-btn-sidebar-main:disabled{opacity:.5;cursor:not-allowed}.swe-btn-sidebar-main:active:not(:disabled){transform:translateY(0)}.swe-pt-1{padding-top:4px}.swe-pt-2{padding-top:8px}.swe-pt-3{padding-top:12px}.swe-pt-4{padding-top:16px}.swe-pb-1{padding-bottom:4px}.swe-pb-2{padding-bottom:8px}.swe-pl-1{padding-left:4px}.swe-pl-2{padding-left:8px}.swe-accent-blue{accent-color:var(--swe-primary-blue)}.swe-editor-content p,.swe-editor-content div,.swe-editor-content li,.swe-editor-content span,.swe-editor-content td,.swe-editor-content th,.swe-editor-content h1,.swe-editor-content h2,.swe-editor-content h3,.swe-editor-content h4,.swe-editor-content h5,.swe-editor-content h6{color:#000}.swe-editor-content ul{list-style-type:disc;margin-top:8px!important;margin-bottom:8px!important;padding-left:30px!important}.swe-editor-content ol{list-style-type:decimal;margin-top:8px!important;margin-bottom:8px!important;padding-left:30px!important}.swe-editor-content li{margin-bottom:4px!important}.swe-editor-content blockquote{border-left:4px solid var(--swe-primary-blue)!important;color:#4b5563!important;background-color:#f9fafb!important;margin:12px 0!important;padding:10px 20px!important;font-style:italic!important}.swe-ribbon-collapsed{border-bottom-width:0!important;height:0!important;padding-top:0!important;padding-bottom:0!important;overflow:hidden!important}.swe-tab-collapse-btn:hover{color:var(--swe-primary-blue)!important;background-color:#e2e8f0!important}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
2
|
import e, { createElement as t, forwardRef as n, useCallback as r, useEffect as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
|
|
3
3
|
import c from "react-dom";
|
|
4
4
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
@@ -22,19 +22,19 @@ var f = Object.create, p = Object.defineProperty, m = Object.getOwnPropertyDescr
|
|
|
22
22
|
}) : n, e)), C = (e) => _.call(e, "module.exports") ? e["module.exports"] : x(p({}, "__esModule", { value: !0 }), e), w = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
23
23
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
24
24
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
25
|
-
}), T, E, D, O, k, A, j, M, N, P, F, I, L, R, z, B, ee, te,
|
|
26
|
-
T = "1.13.8", E = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || Function("return this")() || {}, D = Array.prototype, O = Object.prototype, k = typeof Symbol < "u" ? Symbol.prototype : null, A = D.push, j = D.slice, M = O.toString, N = O.hasOwnProperty, P = typeof ArrayBuffer < "u", F = typeof DataView < "u", I = Array.isArray, L = Object.keys, R = Object.create, z = P && ArrayBuffer.isView, B = isNaN, ee = isFinite, te = !{ toString: null }.propertyIsEnumerable("toString"),
|
|
25
|
+
}), T, E, D, O, k, A, j, M, N, P, F, I, L, R, z, B, ee, te, ne, re, V = v((() => {
|
|
26
|
+
T = "1.13.8", E = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || Function("return this")() || {}, D = Array.prototype, O = Object.prototype, k = typeof Symbol < "u" ? Symbol.prototype : null, A = D.push, j = D.slice, M = O.toString, N = O.hasOwnProperty, P = typeof ArrayBuffer < "u", F = typeof DataView < "u", I = Array.isArray, L = Object.keys, R = Object.create, z = P && ArrayBuffer.isView, B = isNaN, ee = isFinite, te = !{ toString: null }.propertyIsEnumerable("toString"), ne = [
|
|
27
27
|
"valueOf",
|
|
28
28
|
"isPrototypeOf",
|
|
29
29
|
"toString",
|
|
30
30
|
"propertyIsEnumerable",
|
|
31
31
|
"hasOwnProperty",
|
|
32
32
|
"toLocaleString"
|
|
33
|
-
],
|
|
33
|
+
], re = 2 ** 53 - 1;
|
|
34
34
|
}));
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region node_modules/underscore/modules/restArguments.js
|
|
37
|
-
function
|
|
37
|
+
function H(e, t) {
|
|
38
38
|
return t = t == null ? e.length - 1 : +t, function() {
|
|
39
39
|
for (var n = Math.max(arguments.length - t, 0), r = Array(n), i = 0; i < n; i++) r[i] = arguments[i + t];
|
|
40
40
|
switch (t) {
|
|
@@ -47,10 +47,10 @@ function U(e, t) {
|
|
|
47
47
|
return a[t] = r, e.apply(this, a);
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
var
|
|
50
|
+
var U = v((() => {}));
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region node_modules/underscore/modules/isObject.js
|
|
53
|
-
function
|
|
53
|
+
function W(e) {
|
|
54
54
|
var t = typeof e;
|
|
55
55
|
return t === "function" || t === "object" && !!e;
|
|
56
56
|
}
|
|
@@ -73,7 +73,7 @@ function ce(e) {
|
|
|
73
73
|
return e === !0 || e === !1 || M.call(e) === "[object Boolean]";
|
|
74
74
|
}
|
|
75
75
|
var le = v((() => {
|
|
76
|
-
|
|
76
|
+
V();
|
|
77
77
|
}));
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region node_modules/underscore/modules/isElement.js
|
|
@@ -90,7 +90,7 @@ function K(e) {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
var fe = v((() => {
|
|
93
|
-
|
|
93
|
+
V();
|
|
94
94
|
})), pe, me = v((() => {
|
|
95
95
|
fe(), pe = K("String");
|
|
96
96
|
})), he, ge = v((() => {
|
|
@@ -106,13 +106,13 @@ var fe = v((() => {
|
|
|
106
106
|
})), Te, Ee = v((() => {
|
|
107
107
|
fe(), Te = K("ArrayBuffer");
|
|
108
108
|
})), De, Oe, q, ke = v((() => {
|
|
109
|
-
fe(),
|
|
109
|
+
fe(), V(), De = K("Function"), Oe = E.document && E.document.childNodes, typeof /./ != "function" && typeof Int8Array != "object" && typeof Oe != "function" && (De = function(e) {
|
|
110
110
|
return typeof e == "function" || !1;
|
|
111
111
|
}), q = De;
|
|
112
112
|
})), Ae, je = v((() => {
|
|
113
113
|
fe(), Ae = K("Object");
|
|
114
114
|
})), Me, Ne, Pe = v((() => {
|
|
115
|
-
|
|
115
|
+
V(), je(), Me = F && (!/\[native code\]/.test(String(DataView)) || Ae(/* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(8)))), Ne = typeof Map < "u" && Ae(/* @__PURE__ */ new Map());
|
|
116
116
|
}));
|
|
117
117
|
//#endregion
|
|
118
118
|
//#region node_modules/underscore/modules/isDataView.js
|
|
@@ -122,29 +122,29 @@ function Fe(e) {
|
|
|
122
122
|
var Ie, Le, Re = v((() => {
|
|
123
123
|
fe(), ke(), Ee(), Pe(), Ie = K("DataView"), Le = Me ? Fe : Ie;
|
|
124
124
|
})), ze, Be = v((() => {
|
|
125
|
-
|
|
125
|
+
V(), fe(), ze = I || K("Array");
|
|
126
126
|
}));
|
|
127
127
|
//#endregion
|
|
128
128
|
//#region node_modules/underscore/modules/_has.js
|
|
129
|
-
function
|
|
129
|
+
function Ve(e, t) {
|
|
130
130
|
return e != null && N.call(e, t);
|
|
131
131
|
}
|
|
132
|
-
var
|
|
133
|
-
|
|
134
|
-
})),
|
|
135
|
-
fe(),
|
|
136
|
-
|
|
137
|
-
return
|
|
132
|
+
var He = v((() => {
|
|
133
|
+
V();
|
|
134
|
+
})), Ue, We, Ge = v((() => {
|
|
135
|
+
fe(), He(), Ue = K("Arguments"), (function() {
|
|
136
|
+
Ue(arguments) || (Ue = function(e) {
|
|
137
|
+
return Ve(e, "callee");
|
|
138
138
|
});
|
|
139
|
-
})(),
|
|
139
|
+
})(), We = Ue;
|
|
140
140
|
}));
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region node_modules/underscore/modules/isFinite.js
|
|
143
|
-
function
|
|
143
|
+
function J(e) {
|
|
144
144
|
return !Ce(e) && ee(e) && !isNaN(parseFloat(e));
|
|
145
145
|
}
|
|
146
146
|
var Ke = v((() => {
|
|
147
|
-
|
|
147
|
+
V(), we();
|
|
148
148
|
}));
|
|
149
149
|
//#endregion
|
|
150
150
|
//#region node_modules/underscore/modules/isNaN.js
|
|
@@ -152,7 +152,7 @@ function qe(e) {
|
|
|
152
152
|
return he(e) && B(e);
|
|
153
153
|
}
|
|
154
154
|
var Je = v((() => {
|
|
155
|
-
|
|
155
|
+
V(), ge();
|
|
156
156
|
}));
|
|
157
157
|
//#endregion
|
|
158
158
|
//#region node_modules/underscore/modules/constant.js
|
|
@@ -167,11 +167,11 @@ var Xe = v((() => {}));
|
|
|
167
167
|
function Ze(e) {
|
|
168
168
|
return function(t) {
|
|
169
169
|
var n = e(t);
|
|
170
|
-
return typeof n == "number" && n >= 0 && n <=
|
|
170
|
+
return typeof n == "number" && n >= 0 && n <= re;
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
173
|
var Qe = v((() => {
|
|
174
|
-
|
|
174
|
+
V();
|
|
175
175
|
}));
|
|
176
176
|
//#endregion
|
|
177
177
|
//#region node_modules/underscore/modules/_shallowProperty.js
|
|
@@ -187,13 +187,13 @@ var et = v((() => {})), tt, nt = v((() => {
|
|
|
187
187
|
}));
|
|
188
188
|
//#endregion
|
|
189
189
|
//#region node_modules/underscore/modules/isTypedArray.js
|
|
190
|
-
function
|
|
191
|
-
return z ? z(e) && !Le(e) : rt(e) &&
|
|
190
|
+
function at(e) {
|
|
191
|
+
return z ? z(e) && !Le(e) : rt(e) && ot.test(M.call(e));
|
|
192
192
|
}
|
|
193
|
-
var
|
|
194
|
-
|
|
195
|
-
})),
|
|
196
|
-
et(),
|
|
193
|
+
var ot, st, ct = v((() => {
|
|
194
|
+
V(), Re(), Xe(), it(), ot = /\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/, st = P ? at : Ye(!1);
|
|
195
|
+
})), lt, Y = v((() => {
|
|
196
|
+
et(), lt = $e("length");
|
|
197
197
|
}));
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region node_modules/underscore/modules/_collectNonEnumProps.js
|
|
@@ -210,33 +210,33 @@ function ut(e) {
|
|
|
210
210
|
}
|
|
211
211
|
function dt(e, t) {
|
|
212
212
|
t = ut(t);
|
|
213
|
-
var n =
|
|
214
|
-
for (
|
|
213
|
+
var n = ne.length, r = e.constructor, i = q(r) && r.prototype || O, a = "constructor";
|
|
214
|
+
for (Ve(e, a) && !t.contains(a) && t.push(a); n--;) a = ne[n], a in e && e[a] !== i[a] && !t.contains(a) && t.push(a);
|
|
215
215
|
}
|
|
216
216
|
var ft = v((() => {
|
|
217
|
-
|
|
217
|
+
V(), ke(), He();
|
|
218
218
|
}));
|
|
219
219
|
//#endregion
|
|
220
220
|
//#region node_modules/underscore/modules/keys.js
|
|
221
221
|
function pt(e) {
|
|
222
|
-
if (!
|
|
222
|
+
if (!W(e)) return [];
|
|
223
223
|
if (L) return L(e);
|
|
224
224
|
var t = [];
|
|
225
|
-
for (var n in e)
|
|
225
|
+
for (var n in e) Ve(e, n) && t.push(n);
|
|
226
226
|
return te && dt(e, t), t;
|
|
227
227
|
}
|
|
228
228
|
var mt = v((() => {
|
|
229
|
-
G(),
|
|
229
|
+
G(), V(), He(), ft();
|
|
230
230
|
}));
|
|
231
231
|
//#endregion
|
|
232
232
|
//#region node_modules/underscore/modules/isEmpty.js
|
|
233
233
|
function ht(e) {
|
|
234
234
|
if (e == null) return !0;
|
|
235
|
-
var t =
|
|
236
|
-
return typeof t == "number" && (ze(e) || pe(e) ||
|
|
235
|
+
var t = lt(e);
|
|
236
|
+
return typeof t == "number" && (ze(e) || pe(e) || We(e)) ? t === 0 : lt(pt(e)) === 0;
|
|
237
237
|
}
|
|
238
238
|
var gt = v((() => {
|
|
239
|
-
|
|
239
|
+
Y(), Be(), me(), Ge(), mt();
|
|
240
240
|
}));
|
|
241
241
|
//#endregion
|
|
242
242
|
//#region node_modules/underscore/modules/isMatch.js
|
|
@@ -260,7 +260,7 @@ function X(e) {
|
|
|
260
260
|
this._wrapped = e;
|
|
261
261
|
}
|
|
262
262
|
var yt = v((() => {
|
|
263
|
-
|
|
263
|
+
V(), X.VERSION = T, X.prototype.value = function() {
|
|
264
264
|
return this._wrapped;
|
|
265
265
|
}, X.prototype.valueOf = X.prototype.toJSON = X.prototype.value, X.prototype.toString = function() {
|
|
266
266
|
return String(this._wrapped);
|
|
@@ -331,7 +331,7 @@ function St(e, t) {
|
|
|
331
331
|
continue;
|
|
332
332
|
}
|
|
333
333
|
var c = s === "[object Array]";
|
|
334
|
-
if (!c &&
|
|
334
|
+
if (!c && st(e)) {
|
|
335
335
|
if (tt(e) !== tt(t)) return !1;
|
|
336
336
|
if (e.buffer === t.buffer && e.byteOffset === t.byteOffset) continue;
|
|
337
337
|
c = !0;
|
|
@@ -355,7 +355,7 @@ function St(e, t) {
|
|
|
355
355
|
var f = pt(e), p;
|
|
356
356
|
if (d = f.length, pt(t).length !== d) return !1;
|
|
357
357
|
for (; d--;) {
|
|
358
|
-
if (p = f[d], !
|
|
358
|
+
if (p = f[d], !Ve(t, p)) return !1;
|
|
359
359
|
n.push({
|
|
360
360
|
a: e[p],
|
|
361
361
|
b: t[p]
|
|
@@ -366,31 +366,31 @@ function St(e, t) {
|
|
|
366
366
|
return !0;
|
|
367
367
|
}
|
|
368
368
|
var Ct, wt = v((() => {
|
|
369
|
-
yt(),
|
|
369
|
+
yt(), V(), nt(), ct(), ke(), Pe(), Re(), mt(), He(), xt(), Ct = "[object DataView]";
|
|
370
370
|
}));
|
|
371
371
|
//#endregion
|
|
372
372
|
//#region node_modules/underscore/modules/allKeys.js
|
|
373
373
|
function Tt(e) {
|
|
374
|
-
if (!
|
|
374
|
+
if (!W(e)) return [];
|
|
375
375
|
var t = [];
|
|
376
376
|
for (var n in e) t.push(n);
|
|
377
377
|
return te && dt(e, t), t;
|
|
378
378
|
}
|
|
379
379
|
var Et = v((() => {
|
|
380
|
-
G(),
|
|
380
|
+
G(), V(), ft();
|
|
381
381
|
}));
|
|
382
382
|
//#endregion
|
|
383
383
|
//#region node_modules/underscore/modules/_methodFingerprint.js
|
|
384
384
|
function Dt(e) {
|
|
385
|
-
var t =
|
|
385
|
+
var t = lt(e);
|
|
386
386
|
return function(n) {
|
|
387
|
-
if (n == null ||
|
|
387
|
+
if (n == null || lt(Tt(n))) return !1;
|
|
388
388
|
for (var r = 0; r < t; r++) if (!q(n[e[r]])) return !1;
|
|
389
389
|
return e !== Nt || !q(n[Ot]);
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
392
|
var Ot, kt, At, jt, Mt, Nt, Pt, Ft = v((() => {
|
|
393
|
-
|
|
393
|
+
Y(), ke(), Et(), Ot = "forEach", kt = "has", At = ["clear", "delete"], jt = [
|
|
394
394
|
"get",
|
|
395
395
|
kt,
|
|
396
396
|
"set"
|
|
@@ -467,7 +467,7 @@ function sn() {
|
|
|
467
467
|
return function() {};
|
|
468
468
|
}
|
|
469
469
|
function cn(e) {
|
|
470
|
-
if (!
|
|
470
|
+
if (!W(e)) return {};
|
|
471
471
|
if (R) return R(e);
|
|
472
472
|
var t = sn();
|
|
473
473
|
t.prototype = e;
|
|
@@ -475,7 +475,7 @@ function cn(e) {
|
|
|
475
475
|
return t.prototype = null, n;
|
|
476
476
|
}
|
|
477
477
|
var ln = v((() => {
|
|
478
|
-
G(),
|
|
478
|
+
G(), V();
|
|
479
479
|
}));
|
|
480
480
|
//#endregion
|
|
481
481
|
//#region node_modules/underscore/modules/create.js
|
|
@@ -489,7 +489,7 @@ var dn = v((() => {
|
|
|
489
489
|
//#endregion
|
|
490
490
|
//#region node_modules/underscore/modules/clone.js
|
|
491
491
|
function fn(e) {
|
|
492
|
-
return
|
|
492
|
+
return W(e) ? ze(e) ? e.slice() : en({}, e) : e;
|
|
493
493
|
}
|
|
494
494
|
var pn = v((() => {
|
|
495
495
|
G(), Be(), tn();
|
|
@@ -541,13 +541,13 @@ function wn(e, t) {
|
|
|
541
541
|
t = vn(t);
|
|
542
542
|
for (var n = t.length, r = 0; r < n; r++) {
|
|
543
543
|
var i = t[r];
|
|
544
|
-
if (!
|
|
544
|
+
if (!Ve(e, i)) return !1;
|
|
545
545
|
e = e[i];
|
|
546
546
|
}
|
|
547
547
|
return !!n;
|
|
548
548
|
}
|
|
549
549
|
var Tn = v((() => {
|
|
550
|
-
|
|
550
|
+
He(), yn();
|
|
551
551
|
}));
|
|
552
552
|
//#endregion
|
|
553
553
|
//#region node_modules/underscore/modules/identity.js
|
|
@@ -598,7 +598,7 @@ var Nn = v((() => {}));
|
|
|
598
598
|
//#endregion
|
|
599
599
|
//#region node_modules/underscore/modules/_baseIteratee.js
|
|
600
600
|
function Pn(e, t, n) {
|
|
601
|
-
return e == null ? En : q(e) ? Mn(e, t, n) :
|
|
601
|
+
return e == null ? En : q(e) ? Mn(e, t, n) : W(e) && !ze(e) ? On(e) : An(e);
|
|
602
602
|
}
|
|
603
603
|
var Fn = v((() => {
|
|
604
604
|
Dn(), ke(), G(), Be(), kn(), jn(), Nn();
|
|
@@ -780,12 +780,12 @@ var Cr = v((() => {
|
|
|
780
780
|
function wr(e, t, n, r, i) {
|
|
781
781
|
if (!(r instanceof t)) return e.apply(n, i);
|
|
782
782
|
var a = cn(e.prototype), o = e.apply(a, i);
|
|
783
|
-
return
|
|
783
|
+
return W(o) ? o : a;
|
|
784
784
|
}
|
|
785
785
|
var Tr = v((() => {
|
|
786
786
|
ln(), G();
|
|
787
787
|
})), Er, Dr = v((() => {
|
|
788
|
-
|
|
788
|
+
U(), Tr(), yt(), Er = H(function(e, t) {
|
|
789
789
|
var n = Er.placeholder, r = function() {
|
|
790
790
|
for (var i = 0, a = t.length, o = Array(a), s = 0; s < a; s++) o[s] = t[s] === n ? arguments[i++] : t[s];
|
|
791
791
|
for (; i < arguments.length;) o.push(arguments[i++]);
|
|
@@ -794,39 +794,39 @@ var Tr = v((() => {
|
|
|
794
794
|
return r;
|
|
795
795
|
}), Er.placeholder = X;
|
|
796
796
|
})), Or, kr = v((() => {
|
|
797
|
-
|
|
797
|
+
U(), ke(), Tr(), Or = H(function(e, t, n) {
|
|
798
798
|
if (!q(e)) throw TypeError("Bind must be called on a function");
|
|
799
|
-
var r =
|
|
799
|
+
var r = H(function(i) {
|
|
800
800
|
return wr(e, r, t, this, n.concat(i));
|
|
801
801
|
});
|
|
802
802
|
return r;
|
|
803
803
|
});
|
|
804
804
|
})), Ar, jr = v((() => {
|
|
805
|
-
Qe(),
|
|
805
|
+
Qe(), Y(), Ar = Ze(lt);
|
|
806
806
|
}));
|
|
807
807
|
//#endregion
|
|
808
808
|
//#region node_modules/underscore/modules/_flatten.js
|
|
809
809
|
function Mr(e, t, n) {
|
|
810
810
|
!t && t !== 0 && (t = Infinity);
|
|
811
|
-
for (var r = [], i = 0, a = 0, o =
|
|
811
|
+
for (var r = [], i = 0, a = 0, o = lt(e) || 0, s = [];;) {
|
|
812
812
|
if (a >= o) {
|
|
813
813
|
if (!s.length) break;
|
|
814
814
|
var c = s.pop();
|
|
815
|
-
a = c.i, e = c.v, o =
|
|
815
|
+
a = c.i, e = c.v, o = lt(e);
|
|
816
816
|
continue;
|
|
817
817
|
}
|
|
818
818
|
var l = e[a++];
|
|
819
|
-
s.length >= t ? r[i++] = l : Ar(l) && (ze(l) ||
|
|
819
|
+
s.length >= t ? r[i++] = l : Ar(l) && (ze(l) || We(l)) ? (s.push({
|
|
820
820
|
i: a,
|
|
821
821
|
v: e
|
|
822
|
-
}), a = 0, e = l, o =
|
|
822
|
+
}), a = 0, e = l, o = lt(e)) : n || (r[i++] = l);
|
|
823
823
|
}
|
|
824
824
|
return r;
|
|
825
825
|
}
|
|
826
826
|
var Nr = v((() => {
|
|
827
|
-
|
|
827
|
+
Y(), jr(), Be(), Ge();
|
|
828
828
|
})), Pr, Fr = v((() => {
|
|
829
|
-
|
|
829
|
+
U(), Nr(), kr(), Pr = H(function(e, t) {
|
|
830
830
|
t = Mr(t, !1, !1);
|
|
831
831
|
var n = t.length;
|
|
832
832
|
if (n < 1) throw Error("bindAll must be passed function names");
|
|
@@ -842,14 +842,14 @@ var Nr = v((() => {
|
|
|
842
842
|
function Ir(e, t) {
|
|
843
843
|
var n = function(r) {
|
|
844
844
|
var i = n.cache, a = "" + (t ? t.apply(this, arguments) : r);
|
|
845
|
-
return
|
|
845
|
+
return Ve(i, a) || (i[a] = e.apply(this, arguments)), i[a];
|
|
846
846
|
};
|
|
847
847
|
return n.cache = {}, n;
|
|
848
848
|
}
|
|
849
849
|
var Lr = v((() => {
|
|
850
|
-
|
|
850
|
+
He();
|
|
851
851
|
})), Rr, zr = v((() => {
|
|
852
|
-
|
|
852
|
+
U(), Rr = H(function(e, t, n) {
|
|
853
853
|
return setTimeout(function() {
|
|
854
854
|
return e.apply(null, n);
|
|
855
855
|
}, t);
|
|
@@ -883,7 +883,7 @@ function Wr(e, t, n) {
|
|
|
883
883
|
var r, i, a, o, s, c = function() {
|
|
884
884
|
var l = Xn() - i;
|
|
885
885
|
t > l ? r = setTimeout(c, t - l) : (r = null, n || (o = e.apply(s, a)), r || (a = s = null));
|
|
886
|
-
}, l =
|
|
886
|
+
}, l = H(function(l) {
|
|
887
887
|
return s = this, a = l, i = Xn(), r || (r = setTimeout(c, t), n && (o = e.apply(s, a))), o;
|
|
888
888
|
});
|
|
889
889
|
return l.cancel = function() {
|
|
@@ -891,7 +891,7 @@ function Wr(e, t, n) {
|
|
|
891
891
|
}, l;
|
|
892
892
|
}
|
|
893
893
|
var Gr = v((() => {
|
|
894
|
-
|
|
894
|
+
U(), Zn();
|
|
895
895
|
}));
|
|
896
896
|
//#endregion
|
|
897
897
|
//#region node_modules/underscore/modules/wrap.js
|
|
@@ -952,12 +952,12 @@ var ai = v((() => {
|
|
|
952
952
|
function oi(e) {
|
|
953
953
|
return function(t, n, r) {
|
|
954
954
|
n = Rn(n, r);
|
|
955
|
-
for (var i =
|
|
955
|
+
for (var i = lt(t), a = e > 0 ? 0 : i - 1; a >= 0 && a < i; a += e) if (n(t[a], a, t)) return a;
|
|
956
956
|
return -1;
|
|
957
957
|
};
|
|
958
958
|
}
|
|
959
959
|
var si = v((() => {
|
|
960
|
-
zn(),
|
|
960
|
+
zn(), Y();
|
|
961
961
|
})), ci, li = v((() => {
|
|
962
962
|
si(), ci = oi(1);
|
|
963
963
|
})), ui, di = v((() => {
|
|
@@ -967,20 +967,20 @@ var si = v((() => {
|
|
|
967
967
|
//#region node_modules/underscore/modules/sortedIndex.js
|
|
968
968
|
function fi(e, t, n, r) {
|
|
969
969
|
n = Rn(n, r, 1);
|
|
970
|
-
for (var i = n(t), a = 0, o =
|
|
970
|
+
for (var i = n(t), a = 0, o = lt(e); a < o;) {
|
|
971
971
|
var s = Math.floor((a + o) / 2);
|
|
972
972
|
n(e[s]) < i ? a = s + 1 : o = s;
|
|
973
973
|
}
|
|
974
974
|
return a;
|
|
975
975
|
}
|
|
976
976
|
var pi = v((() => {
|
|
977
|
-
zn(),
|
|
977
|
+
zn(), Y();
|
|
978
978
|
}));
|
|
979
979
|
//#endregion
|
|
980
980
|
//#region node_modules/underscore/modules/_createIndexFinder.js
|
|
981
981
|
function mi(e, t, n) {
|
|
982
982
|
return function(r, i, a) {
|
|
983
|
-
var o = 0, s =
|
|
983
|
+
var o = 0, s = lt(r);
|
|
984
984
|
if (typeof a == "number") e > 0 ? o = a >= 0 ? a : Math.max(a + s, o) : s = a >= 0 ? Math.min(a + 1, s) : a + s + 1;
|
|
985
985
|
else if (n && a && s) return a = n(r, i), r[a] === i ? a : -1;
|
|
986
986
|
if (i !== i) return a = t(j.call(r, o, s), qe), a >= 0 ? a + o : -1;
|
|
@@ -989,7 +989,7 @@ function mi(e, t, n) {
|
|
|
989
989
|
};
|
|
990
990
|
}
|
|
991
991
|
var hi = v((() => {
|
|
992
|
-
|
|
992
|
+
Y(), V(), Je();
|
|
993
993
|
})), gi, _i = v((() => {
|
|
994
994
|
pi(), li(), hi(), gi = mi(1, ci, fi);
|
|
995
995
|
})), vi, yi = v((() => {
|
|
@@ -1116,7 +1116,7 @@ function Hi(e, t, n, r) {
|
|
|
1116
1116
|
var Ui = v((() => {
|
|
1117
1117
|
jr(), Gt(), _i();
|
|
1118
1118
|
})), Wi, Gi = v((() => {
|
|
1119
|
-
|
|
1119
|
+
U(), ke(), Di(), xn(), yn(), Wi = H(function(e, t, n) {
|
|
1120
1120
|
var r, i;
|
|
1121
1121
|
return q(t) ? i = t : (t = vn(t), r = t.slice(0, -1), t = t[t.length - 1]), Ei(e, function(e) {
|
|
1122
1122
|
var a = i;
|
|
@@ -1180,13 +1180,13 @@ function ea(e) {
|
|
|
1180
1180
|
return e ? ze(e) ? j.call(e) : pe(e) ? e.match(ta) : Ar(e) ? Ei(e, En) : Wt(e) : [];
|
|
1181
1181
|
}
|
|
1182
1182
|
var ta, na = v((() => {
|
|
1183
|
-
Be(),
|
|
1183
|
+
Be(), V(), me(), jr(), Di(), Dn(), Gt(), ta = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;
|
|
1184
1184
|
}));
|
|
1185
1185
|
//#endregion
|
|
1186
1186
|
//#region node_modules/underscore/modules/sample.js
|
|
1187
1187
|
function ra(e, t, n) {
|
|
1188
1188
|
if (t == null || n) return Ar(e) || (e = Wt(e)), e[Jn(e.length - 1)];
|
|
1189
|
-
var r = ea(e), i =
|
|
1189
|
+
var r = ea(e), i = lt(r);
|
|
1190
1190
|
t = Math.max(Math.min(t, i), 0);
|
|
1191
1191
|
for (var a = i - 1, o = 0; o < t; o++) {
|
|
1192
1192
|
var s = Jn(o, a), c = r[o];
|
|
@@ -1195,7 +1195,7 @@ function ra(e, t, n) {
|
|
|
1195
1195
|
return r.slice(0, t);
|
|
1196
1196
|
}
|
|
1197
1197
|
var ia = v((() => {
|
|
1198
|
-
jr(), Gt(),
|
|
1198
|
+
jr(), Gt(), Y(), Yn(), na();
|
|
1199
1199
|
}));
|
|
1200
1200
|
//#endregion
|
|
1201
1201
|
//#region node_modules/underscore/modules/shuffle.js
|
|
@@ -1240,16 +1240,16 @@ function la(e, t) {
|
|
|
1240
1240
|
var ua = v((() => {
|
|
1241
1241
|
zn(), Ti();
|
|
1242
1242
|
})), da, fa = v((() => {
|
|
1243
|
-
ua(),
|
|
1244
|
-
|
|
1243
|
+
ua(), He(), da = la(function(e, t, n) {
|
|
1244
|
+
Ve(e, n) ? e[n].push(t) : e[n] = [t];
|
|
1245
1245
|
});
|
|
1246
1246
|
})), pa, ma = v((() => {
|
|
1247
1247
|
ua(), pa = la(function(e, t, n) {
|
|
1248
1248
|
e[n] = t;
|
|
1249
1249
|
});
|
|
1250
1250
|
})), ha, ga = v((() => {
|
|
1251
|
-
ua(),
|
|
1252
|
-
|
|
1251
|
+
ua(), He(), ha = la(function(e, t, n) {
|
|
1252
|
+
Ve(e, n) ? e[n]++ : e[n] = 1;
|
|
1253
1253
|
});
|
|
1254
1254
|
})), _a, va = v((() => {
|
|
1255
1255
|
ua(), _a = la(function(e, t, n) {
|
|
@@ -1270,7 +1270,7 @@ function xa(e, t, n) {
|
|
|
1270
1270
|
return t in n;
|
|
1271
1271
|
}
|
|
1272
1272
|
var Sa = v((() => {})), Ca, wa = v((() => {
|
|
1273
|
-
|
|
1273
|
+
U(), ke(), Nn(), Et(), Sa(), Nr(), Ca = H(function(e, t) {
|
|
1274
1274
|
var n = {}, r = t[0];
|
|
1275
1275
|
if (e == null) return n;
|
|
1276
1276
|
q(r) ? (t.length > 1 && (r = Mn(r, t[1])), t = Tt(e)) : (r = xa, t = Mr(t, !1, !1), e = Object(e));
|
|
@@ -1281,7 +1281,7 @@ var Sa = v((() => {})), Ca, wa = v((() => {
|
|
|
1281
1281
|
return n;
|
|
1282
1282
|
});
|
|
1283
1283
|
})), Ta, Ea = v((() => {
|
|
1284
|
-
|
|
1284
|
+
U(), ke(), Yr(), Di(), Nr(), Ui(), wa(), Ta = H(function(e, t) {
|
|
1285
1285
|
var n = t[0], r;
|
|
1286
1286
|
return q(n) ? (n = Jr(n), t.length > 1 && (r = t[1])) : (t = Ei(Mr(t, !1, !1), String), n = function(e, n) {
|
|
1287
1287
|
return !Hi(t, n);
|
|
@@ -1294,7 +1294,7 @@ function Da(e, t, n) {
|
|
|
1294
1294
|
return j.call(e, 0, Math.max(0, e.length - (t == null || n ? 1 : t)));
|
|
1295
1295
|
}
|
|
1296
1296
|
var Oa = v((() => {
|
|
1297
|
-
|
|
1297
|
+
V();
|
|
1298
1298
|
}));
|
|
1299
1299
|
//#endregion
|
|
1300
1300
|
//#region node_modules/underscore/modules/first.js
|
|
@@ -1310,7 +1310,7 @@ function ja(e, t, n) {
|
|
|
1310
1310
|
return j.call(e, t == null || n ? 1 : t);
|
|
1311
1311
|
}
|
|
1312
1312
|
var Ma = v((() => {
|
|
1313
|
-
|
|
1313
|
+
V();
|
|
1314
1314
|
}));
|
|
1315
1315
|
//#endregion
|
|
1316
1316
|
//#region node_modules/underscore/modules/last.js
|
|
@@ -1336,13 +1336,13 @@ function La(e, t) {
|
|
|
1336
1336
|
var Ra = v((() => {
|
|
1337
1337
|
Nr();
|
|
1338
1338
|
})), za, Ba = v((() => {
|
|
1339
|
-
|
|
1339
|
+
U(), Nr(), Fi(), Ui(), za = H(function(e, t) {
|
|
1340
1340
|
return t = Mr(t, !0, !0), Pi(e, function(e) {
|
|
1341
1341
|
return !Hi(t, e);
|
|
1342
1342
|
});
|
|
1343
1343
|
});
|
|
1344
1344
|
})), Va, Ha = v((() => {
|
|
1345
|
-
|
|
1345
|
+
U(), Ba(), Va = H(function(e, t) {
|
|
1346
1346
|
return za(e, t);
|
|
1347
1347
|
});
|
|
1348
1348
|
}));
|
|
@@ -1350,23 +1350,23 @@ var Ra = v((() => {
|
|
|
1350
1350
|
//#region node_modules/underscore/modules/uniq.js
|
|
1351
1351
|
function Ua(e, t, n, r) {
|
|
1352
1352
|
ce(t) || (r = n, n = t, t = !1), n != null && (n = Rn(n, r));
|
|
1353
|
-
for (var i = [], a = [], o = 0, s =
|
|
1353
|
+
for (var i = [], a = [], o = 0, s = lt(e); o < s; o++) {
|
|
1354
1354
|
var c = e[o], l = n ? n(c, o, e) : c;
|
|
1355
1355
|
t && !n ? ((!o || a !== l) && i.push(c), a = l) : n ? Hi(a, l) || (a.push(l), i.push(c)) : Hi(i, c) || i.push(c);
|
|
1356
1356
|
}
|
|
1357
1357
|
return i;
|
|
1358
1358
|
}
|
|
1359
1359
|
var Wa = v((() => {
|
|
1360
|
-
le(), zn(),
|
|
1360
|
+
le(), zn(), Y(), Ui();
|
|
1361
1361
|
})), Ga, Ka = v((() => {
|
|
1362
|
-
|
|
1362
|
+
U(), Wa(), Nr(), Ga = H(function(e) {
|
|
1363
1363
|
return Ua(Mr(e, !0, !0));
|
|
1364
1364
|
});
|
|
1365
1365
|
}));
|
|
1366
1366
|
//#endregion
|
|
1367
1367
|
//#region node_modules/underscore/modules/intersection.js
|
|
1368
1368
|
function qa(e) {
|
|
1369
|
-
for (var t = [], n = arguments.length, r = 0, i =
|
|
1369
|
+
for (var t = [], n = arguments.length, r = 0, i = lt(e); r < i; r++) {
|
|
1370
1370
|
var a = e[r];
|
|
1371
1371
|
if (!Hi(t, a)) {
|
|
1372
1372
|
var o;
|
|
@@ -1377,27 +1377,27 @@ function qa(e) {
|
|
|
1377
1377
|
return t;
|
|
1378
1378
|
}
|
|
1379
1379
|
var Ja = v((() => {
|
|
1380
|
-
|
|
1380
|
+
Y(), Ui();
|
|
1381
1381
|
}));
|
|
1382
1382
|
//#endregion
|
|
1383
1383
|
//#region node_modules/underscore/modules/unzip.js
|
|
1384
1384
|
function Ya(e) {
|
|
1385
|
-
for (var t = e && Xi(e,
|
|
1385
|
+
for (var t = e && Xi(e, lt).length || 0, n = Array(t), r = 0; r < t; r++) n[r] = Ki(e, r);
|
|
1386
1386
|
return n;
|
|
1387
1387
|
}
|
|
1388
1388
|
var Xa = v((() => {
|
|
1389
|
-
Zi(),
|
|
1389
|
+
Zi(), Y(), qi();
|
|
1390
1390
|
})), Za, Qa = v((() => {
|
|
1391
|
-
|
|
1391
|
+
U(), Xa(), Za = H(Ya);
|
|
1392
1392
|
}));
|
|
1393
1393
|
//#endregion
|
|
1394
1394
|
//#region node_modules/underscore/modules/object.js
|
|
1395
1395
|
function $a(e, t) {
|
|
1396
|
-
for (var n = {}, r = 0, i =
|
|
1396
|
+
for (var n = {}, r = 0, i = lt(e); r < i; r++) t ? n[e[r]] = t[r] : n[e[r][0]] = e[r][1];
|
|
1397
1397
|
return n;
|
|
1398
1398
|
}
|
|
1399
1399
|
var eo = v((() => {
|
|
1400
|
-
|
|
1400
|
+
Y();
|
|
1401
1401
|
}));
|
|
1402
1402
|
//#endregion
|
|
1403
1403
|
//#region node_modules/underscore/modules/range.js
|
|
@@ -1415,7 +1415,7 @@ function ro(e, t) {
|
|
|
1415
1415
|
return n;
|
|
1416
1416
|
}
|
|
1417
1417
|
var io = v((() => {
|
|
1418
|
-
|
|
1418
|
+
V();
|
|
1419
1419
|
}));
|
|
1420
1420
|
//#endregion
|
|
1421
1421
|
//#region node_modules/underscore/modules/_chainResult.js
|
|
@@ -1437,9 +1437,9 @@ function so(e) {
|
|
|
1437
1437
|
}), X;
|
|
1438
1438
|
}
|
|
1439
1439
|
var co = v((() => {
|
|
1440
|
-
yt(), Ti(), Zt(),
|
|
1440
|
+
yt(), Ti(), Zt(), V(), oo();
|
|
1441
1441
|
})), lo, uo = v((() => {
|
|
1442
|
-
yt(), Ti(),
|
|
1442
|
+
yt(), Ti(), V(), oo(), wi([
|
|
1443
1443
|
"pop",
|
|
1444
1444
|
"push",
|
|
1445
1445
|
"reverse",
|
|
@@ -1523,7 +1523,7 @@ var co = v((() => {
|
|
|
1523
1523
|
intersection: () => qa,
|
|
1524
1524
|
invert: () => Jt,
|
|
1525
1525
|
invoke: () => Wi,
|
|
1526
|
-
isArguments: () =>
|
|
1526
|
+
isArguments: () => We,
|
|
1527
1527
|
isArray: () => ze,
|
|
1528
1528
|
isArrayBuffer: () => Te,
|
|
1529
1529
|
isBoolean: () => ce,
|
|
@@ -1533,19 +1533,19 @@ var co = v((() => {
|
|
|
1533
1533
|
isEmpty: () => ht,
|
|
1534
1534
|
isEqual: () => St,
|
|
1535
1535
|
isError: () => xe,
|
|
1536
|
-
isFinite: () =>
|
|
1536
|
+
isFinite: () => J,
|
|
1537
1537
|
isFunction: () => q,
|
|
1538
1538
|
isMap: () => It,
|
|
1539
1539
|
isMatch: () => _t,
|
|
1540
1540
|
isNaN: () => qe,
|
|
1541
1541
|
isNull: () => ie,
|
|
1542
1542
|
isNumber: () => he,
|
|
1543
|
-
isObject: () =>
|
|
1543
|
+
isObject: () => W,
|
|
1544
1544
|
isRegExp: () => ye,
|
|
1545
1545
|
isSet: () => Bt,
|
|
1546
1546
|
isString: () => pe,
|
|
1547
1547
|
isSymbol: () => Ce,
|
|
1548
|
-
isTypedArray: () =>
|
|
1548
|
+
isTypedArray: () => st,
|
|
1549
1549
|
isUndefined: () => oe,
|
|
1550
1550
|
isWeakMap: () => Rt,
|
|
1551
1551
|
isWeakSet: () => Ht,
|
|
@@ -1581,7 +1581,7 @@ var co = v((() => {
|
|
|
1581
1581
|
reduceRight: () => Mi,
|
|
1582
1582
|
reject: () => Ii,
|
|
1583
1583
|
rest: () => ja,
|
|
1584
|
-
restArguments: () =>
|
|
1584
|
+
restArguments: () => H,
|
|
1585
1585
|
result: () => _r,
|
|
1586
1586
|
sample: () => ra,
|
|
1587
1587
|
select: () => Pi,
|
|
@@ -1612,7 +1612,7 @@ var co = v((() => {
|
|
|
1612
1612
|
wrap: () => Kr,
|
|
1613
1613
|
zip: () => Za
|
|
1614
1614
|
}), po = v((() => {
|
|
1615
|
-
|
|
1615
|
+
V(), U(), G(), ae(), se(), le(), de(), me(), ge(), ve(), be(), Se(), we(), Ee(), Re(), Be(), ke(), Ge(), Ke(), Je(), ct(), gt(), vt(), wt(), Lt(), zt(), Vt(), Ut(), mt(), Et(), Gt(), qt(), Yt(), Zt(), tn(), rn(), on(), dn(), pn(), hn(), Cn(), Tn(), Vn(), Dn(), Xe(), Un(), _n(), jn(), Gn(), kn(), qn(), Yn(), Zn(), rr(), sr(), lr(), gr(), vr(), xr(), Cr(), Ln(), Dr(), kr(), Fr(), Lr(), zr(), Vr(), Ur(), Gr(), qr(), Yr(), Zr(), $r(), ti(), ri(), ai(), li(), di(), pi(), _i(), yi(), xi(), Ci(), Ti(), Di(), ji(), Ni(), Fi(), Li(), zi(), Vi(), Ui(), Gi(), qi(), Yi(), Zi(), $i(), oa(), ia(), ca(), fa(), ma(), ga(), va(), na(), ba(), wa(), Ea(), Aa(), Oa(), Pa(), Ma(), Ia(), Ra(), Ha(), Wa(), Ka(), Ja(), Ba(), Xa(), Qa(), eo(), no(), io(), co(), uo();
|
|
1616
1616
|
})), mo, ho = v((() => {
|
|
1617
1617
|
po(), mo = so(fo), mo._ = mo;
|
|
1618
1618
|
})), go = /* @__PURE__ */ b({
|
|
@@ -1674,7 +1674,7 @@ var co = v((() => {
|
|
|
1674
1674
|
intersection: () => qa,
|
|
1675
1675
|
invert: () => Jt,
|
|
1676
1676
|
invoke: () => Wi,
|
|
1677
|
-
isArguments: () =>
|
|
1677
|
+
isArguments: () => We,
|
|
1678
1678
|
isArray: () => ze,
|
|
1679
1679
|
isArrayBuffer: () => Te,
|
|
1680
1680
|
isBoolean: () => ce,
|
|
@@ -1684,19 +1684,19 @@ var co = v((() => {
|
|
|
1684
1684
|
isEmpty: () => ht,
|
|
1685
1685
|
isEqual: () => St,
|
|
1686
1686
|
isError: () => xe,
|
|
1687
|
-
isFinite: () =>
|
|
1687
|
+
isFinite: () => J,
|
|
1688
1688
|
isFunction: () => q,
|
|
1689
1689
|
isMap: () => It,
|
|
1690
1690
|
isMatch: () => _t,
|
|
1691
1691
|
isNaN: () => qe,
|
|
1692
1692
|
isNull: () => ie,
|
|
1693
1693
|
isNumber: () => he,
|
|
1694
|
-
isObject: () =>
|
|
1694
|
+
isObject: () => W,
|
|
1695
1695
|
isRegExp: () => ye,
|
|
1696
1696
|
isSet: () => Bt,
|
|
1697
1697
|
isString: () => pe,
|
|
1698
1698
|
isSymbol: () => Ce,
|
|
1699
|
-
isTypedArray: () =>
|
|
1699
|
+
isTypedArray: () => st,
|
|
1700
1700
|
isUndefined: () => oe,
|
|
1701
1701
|
isWeakMap: () => Rt,
|
|
1702
1702
|
isWeakSet: () => Ht,
|
|
@@ -1732,7 +1732,7 @@ var co = v((() => {
|
|
|
1732
1732
|
reduceRight: () => Mi,
|
|
1733
1733
|
reject: () => Ii,
|
|
1734
1734
|
rest: () => ja,
|
|
1735
|
-
restArguments: () =>
|
|
1735
|
+
restArguments: () => H,
|
|
1736
1736
|
result: () => _r,
|
|
1737
1737
|
sample: () => ra,
|
|
1738
1738
|
select: () => Pi,
|
|
@@ -2443,7 +2443,7 @@ var co = v((() => {
|
|
|
2443
2443
|
}, e.prototype._ensurePossibleRejectionHandled = function() {
|
|
2444
2444
|
this._bitField & 524288 || (this._setRejectionIsUnhandled(), r.invokeLater(this._notifyUnhandledRejection, this, void 0));
|
|
2445
2445
|
}, e.prototype._notifyUnhandledRejectionIsHandled = function() {
|
|
2446
|
-
|
|
2446
|
+
W("rejectionHandled", s, void 0, this);
|
|
2447
2447
|
}, e.prototype._setReturnedNonUndefined = function() {
|
|
2448
2448
|
this._bitField |= 268435456;
|
|
2449
2449
|
}, e.prototype._returnedNonUndefined = function() {
|
|
@@ -2451,7 +2451,7 @@ var co = v((() => {
|
|
|
2451
2451
|
}, e.prototype._notifyUnhandledRejection = function() {
|
|
2452
2452
|
if (this._isRejectionUnhandled()) {
|
|
2453
2453
|
var e = this._settledValue();
|
|
2454
|
-
this._setUnhandledRejectionIsNotified(),
|
|
2454
|
+
this._setUnhandledRejectionIsNotified(), W("unhandledRejection", c, e, this);
|
|
2455
2455
|
}
|
|
2456
2456
|
}, e.prototype._setUnhandledRejectionIsNotified = function() {
|
|
2457
2457
|
this._bitField |= 262144;
|
|
@@ -2635,7 +2635,7 @@ var co = v((() => {
|
|
|
2635
2635
|
var n = this._trace;
|
|
2636
2636
|
if (n !== void 0 && t && (n = n._parent), n !== void 0) n.attachExtraTrace(e);
|
|
2637
2637
|
else if (!e.__stackCleaned__) {
|
|
2638
|
-
var r =
|
|
2638
|
+
var r = H(e);
|
|
2639
2639
|
a.notEnumerableProp(e, "stack", r.message + "\n" + r.stack.join("\n")), a.notEnumerableProp(e, "__stackCleaned__", !0);
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
@@ -2646,7 +2646,7 @@ var co = v((() => {
|
|
|
2646
2646
|
n && (n += " ");
|
|
2647
2647
|
var a = "", o = "";
|
|
2648
2648
|
if (t._trace) {
|
|
2649
|
-
for (var s = t._trace.stack.split("\n"), c =
|
|
2649
|
+
for (var s = t._trace.stack.split("\n"), c = re(s), l = c.length - 1; l >= 0; --l) {
|
|
2650
2650
|
var f = c[l];
|
|
2651
2651
|
if (!u.test(f)) {
|
|
2652
2652
|
var p = f.match(d);
|
|
@@ -2675,10 +2675,10 @@ var co = v((() => {
|
|
|
2675
2675
|
if (n) r._attachExtraTrace(a);
|
|
2676
2676
|
else if (K.longStackTraces && (o = e._peekContext())) o.attachExtraTrace(a);
|
|
2677
2677
|
else {
|
|
2678
|
-
var s =
|
|
2678
|
+
var s = H(a);
|
|
2679
2679
|
a.stack = s.message + "\n" + s.stack.join("\n");
|
|
2680
2680
|
}
|
|
2681
|
-
T("warning", a) ||
|
|
2681
|
+
T("warning", a) || U(a, "", !0);
|
|
2682
2682
|
}
|
|
2683
2683
|
}
|
|
2684
2684
|
function ee(e, t) {
|
|
@@ -2688,7 +2688,7 @@ var co = v((() => {
|
|
|
2688
2688
|
function te(e) {
|
|
2689
2689
|
for (var t = 0; t < e.length; ++t) (e[t].length === 0 || t + 1 < e.length && e[t][0] === e[t + 1][0]) && (e.splice(t, 1), t--);
|
|
2690
2690
|
}
|
|
2691
|
-
function
|
|
2691
|
+
function ne(e) {
|
|
2692
2692
|
for (var t = e[0], n = 1; n < e.length; ++n) {
|
|
2693
2693
|
for (var r = e[n], i = t.length - 1, a = t[i], o = -1, s = r.length - 1; s >= 0; --s) if (r[s] === a) {
|
|
2694
2694
|
o = s;
|
|
@@ -2702,28 +2702,28 @@ var co = v((() => {
|
|
|
2702
2702
|
t = r;
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2705
|
+
function re(e) {
|
|
2706
2706
|
for (var t = [], n = 0; n < e.length; ++n) {
|
|
2707
2707
|
var r = e[n], i = r === " (No stack trace)" || f.test(r), a = i && oe(r);
|
|
2708
2708
|
i && !a && (m && r.charAt(0) !== " " && (r = " " + r), t.push(r));
|
|
2709
2709
|
}
|
|
2710
2710
|
return t;
|
|
2711
2711
|
}
|
|
2712
|
-
function
|
|
2712
|
+
function V(e) {
|
|
2713
2713
|
for (var t = e.stack.replace(/\s+$/g, "").split("\n"), n = 0; n < t.length; ++n) {
|
|
2714
2714
|
var r = t[n];
|
|
2715
2715
|
if (r === " (No stack trace)" || f.test(r)) break;
|
|
2716
2716
|
}
|
|
2717
2717
|
return n > 0 && e.name != "SyntaxError" && (t = t.slice(n)), t;
|
|
2718
2718
|
}
|
|
2719
|
-
function
|
|
2719
|
+
function H(e) {
|
|
2720
2720
|
var t = e.stack, n = e.toString();
|
|
2721
|
-
return t = typeof t == "string" && t.length > 0 ?
|
|
2721
|
+
return t = typeof t == "string" && t.length > 0 ? V(e) : [" (No stack trace)"], {
|
|
2722
2722
|
message: n,
|
|
2723
|
-
stack: e.name == "SyntaxError" ? t :
|
|
2723
|
+
stack: e.name == "SyntaxError" ? t : re(t)
|
|
2724
2724
|
};
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2726
|
+
function U(e, t, n) {
|
|
2727
2727
|
if (typeof console < "u") {
|
|
2728
2728
|
var r;
|
|
2729
2729
|
if (a.isObject(e)) {
|
|
@@ -2733,14 +2733,14 @@ var co = v((() => {
|
|
|
2733
2733
|
typeof h == "function" ? h(r, n) : (typeof console.log == "function" || typeof console.log == "object") && console.log(r);
|
|
2734
2734
|
}
|
|
2735
2735
|
}
|
|
2736
|
-
function
|
|
2736
|
+
function W(e, t, n, i) {
|
|
2737
2737
|
var a = !1;
|
|
2738
2738
|
try {
|
|
2739
2739
|
typeof t == "function" && (a = !0, e === "rejectionHandled" ? t(i) : t(n, i));
|
|
2740
2740
|
} catch (e) {
|
|
2741
2741
|
r.throwLater(e);
|
|
2742
2742
|
}
|
|
2743
|
-
e === "unhandledRejection" ? !T(e, n, i) && !a &&
|
|
2743
|
+
e === "unhandledRejection" ? !T(e, n, i) && !a && U(n, "Unhandled rejection ") : T(e, i);
|
|
2744
2744
|
}
|
|
2745
2745
|
function G(e) {
|
|
2746
2746
|
var t;
|
|
@@ -2821,8 +2821,8 @@ var co = v((() => {
|
|
|
2821
2821
|
}, ue.prototype.attachExtraTrace = function(e) {
|
|
2822
2822
|
if (!e.__stackCleaned__) {
|
|
2823
2823
|
this.uncycle();
|
|
2824
|
-
for (var t =
|
|
2825
|
-
|
|
2824
|
+
for (var t = H(e), n = t.message, r = [t.stack], i = this; i !== void 0;) r.push(re(i.stack.split("\n"))), i = i._parent;
|
|
2825
|
+
ne(r), te(r), a.notEnumerableProp(e, "stack", ee(n, r)), a.notEnumerableProp(e, "__stackCleaned__", !0);
|
|
2826
2826
|
}
|
|
2827
2827
|
};
|
|
2828
2828
|
var de = (function() {
|
|
@@ -6497,32 +6497,32 @@ while (l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] ===
|
|
|
6497
6497
|
}
|
|
6498
6498
|
return e.match_available &&= (r = a._tr_tally(e, 0, e.window[e.strstart - 1]), 0), e.insert = e.strstart < C - 1 ? e.strstart : C - 1, t === u ? (I(e, !0), e.strm.avail_out === 0 ? A : j) : e.last_lit && (I(e, !1), e.strm.avail_out === 0) ? O : k;
|
|
6499
6499
|
}
|
|
6500
|
-
function
|
|
6500
|
+
function ne(e, t, n, r, i) {
|
|
6501
6501
|
this.good_length = e, this.max_lazy = t, this.nice_length = n, this.max_chain = r, this.func = i;
|
|
6502
6502
|
}
|
|
6503
|
-
function
|
|
6503
|
+
function re() {
|
|
6504
6504
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = g, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new i.Buf16(2 * x), this.dyn_dtree = new i.Buf16(2 * (2 * y + 1)), this.bl_tree = new i.Buf16(2 * (2 * b + 1)), P(this.dyn_ltree), P(this.dyn_dtree), P(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new i.Buf16(S + 1), this.heap = new i.Buf16(2 * v + 1), P(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new i.Buf16(2 * v + 1), P(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
6505
6505
|
}
|
|
6506
|
-
function
|
|
6506
|
+
function V(e) {
|
|
6507
6507
|
var t;
|
|
6508
6508
|
return e && e.state ? (e.total_in = e.total_out = 0, e.data_type = h, (t = e.state).pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? E : D, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = l, a._tr_init(t), d) : M(e, f);
|
|
6509
6509
|
}
|
|
6510
|
-
function
|
|
6511
|
-
var t =
|
|
6510
|
+
function H(e) {
|
|
6511
|
+
var t = V(e);
|
|
6512
6512
|
return t === d && function(e) {
|
|
6513
6513
|
e.window_size = 2 * e.w_size, P(e.head), e.max_lazy_match = r[e.level].max_lazy, e.good_match = r[e.level].good_length, e.nice_match = r[e.level].nice_length, e.max_chain_length = r[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = C - 1, e.match_available = 0, e.ins_h = 0;
|
|
6514
6514
|
}(e.state), t;
|
|
6515
6515
|
}
|
|
6516
|
-
function
|
|
6516
|
+
function U(e, t, n, r, a, o) {
|
|
6517
6517
|
if (!e) return f;
|
|
6518
6518
|
var s = 1;
|
|
6519
6519
|
if (t === p && (t = 6), r < 0 ? (s = 0, r = -r) : 15 < r && (s = 2, r -= 16), a < 1 || _ < a || n !== g || r < 8 || 15 < r || t < 0 || 9 < t || o < 0 || m < o) return M(e, f);
|
|
6520
6520
|
r === 8 && (r = 9);
|
|
6521
|
-
var c = new
|
|
6522
|
-
return (e.state = c).strm = e, c.wrap = s, c.gzhead = null, c.w_bits = r, c.w_size = 1 << c.w_bits, c.w_mask = c.w_size - 1, c.hash_bits = a + 7, c.hash_size = 1 << c.hash_bits, c.hash_mask = c.hash_size - 1, c.hash_shift = ~~((c.hash_bits + C - 1) / C), c.window = new i.Buf8(2 * c.w_size), c.head = new i.Buf16(c.hash_size), c.prev = new i.Buf16(c.w_size), c.lit_bufsize = 1 << a + 6, c.pending_buf_size = 4 * c.lit_bufsize, c.pending_buf = new i.Buf8(c.pending_buf_size), c.d_buf = 1 * c.lit_bufsize, c.l_buf = 3 * c.lit_bufsize, c.level = t, c.strategy = o, c.method = n,
|
|
6521
|
+
var c = new re();
|
|
6522
|
+
return (e.state = c).strm = e, c.wrap = s, c.gzhead = null, c.w_bits = r, c.w_size = 1 << c.w_bits, c.w_mask = c.w_size - 1, c.hash_bits = a + 7, c.hash_size = 1 << c.hash_bits, c.hash_mask = c.hash_size - 1, c.hash_shift = ~~((c.hash_bits + C - 1) / C), c.window = new i.Buf8(2 * c.w_size), c.head = new i.Buf16(c.hash_size), c.prev = new i.Buf16(c.w_size), c.lit_bufsize = 1 << a + 6, c.pending_buf_size = 4 * c.lit_bufsize, c.pending_buf = new i.Buf8(c.pending_buf_size), c.d_buf = 1 * c.lit_bufsize, c.l_buf = 3 * c.lit_bufsize, c.level = t, c.strategy = o, c.method = n, H(e);
|
|
6523
6523
|
}
|
|
6524
6524
|
r = [
|
|
6525
|
-
new
|
|
6525
|
+
new ne(0, 0, 0, 0, function(e, t) {
|
|
6526
6526
|
var n = 65535;
|
|
6527
6527
|
for (n > e.pending_buf_size - 5 && (n = e.pending_buf_size - 5);;) {
|
|
6528
6528
|
if (e.lookahead <= 1) {
|
|
@@ -6535,18 +6535,18 @@ while (l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] ===
|
|
|
6535
6535
|
}
|
|
6536
6536
|
return e.insert = 0, t === u ? (I(e, !0), e.strm.avail_out === 0 ? A : j) : (e.strstart > e.block_start && (I(e, !1), e.strm.avail_out), O);
|
|
6537
6537
|
}),
|
|
6538
|
-
new
|
|
6539
|
-
new
|
|
6540
|
-
new
|
|
6541
|
-
new
|
|
6542
|
-
new
|
|
6543
|
-
new
|
|
6544
|
-
new
|
|
6545
|
-
new
|
|
6546
|
-
new
|
|
6538
|
+
new ne(4, 4, 8, 4, ee),
|
|
6539
|
+
new ne(4, 5, 16, 8, ee),
|
|
6540
|
+
new ne(4, 6, 32, 32, ee),
|
|
6541
|
+
new ne(4, 4, 16, 16, te),
|
|
6542
|
+
new ne(8, 16, 32, 32, te),
|
|
6543
|
+
new ne(8, 16, 128, 128, te),
|
|
6544
|
+
new ne(8, 32, 128, 256, te),
|
|
6545
|
+
new ne(32, 128, 258, 1024, te),
|
|
6546
|
+
new ne(32, 258, 258, 4096, te)
|
|
6547
6547
|
], n.deflateInit = function(e, t) {
|
|
6548
|
-
return
|
|
6549
|
-
}, n.deflateInit2 =
|
|
6548
|
+
return U(e, t, g, 15, 8, 0);
|
|
6549
|
+
}, n.deflateInit2 = U, n.deflateReset = H, n.deflateResetKeep = V, n.deflateSetHeader = function(e, t) {
|
|
6550
6550
|
return e && e.state && e.state.wrap === 2 ? (e.state.gzhead = t, d) : f;
|
|
6551
6551
|
}, n.deflate = function(e, t) {
|
|
6552
6552
|
var n, i, o, c;
|
|
@@ -7471,28 +7471,28 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
7471
7471
|
for (t = 0; t < f; t++) e.bl_tree[2 * t] = 0;
|
|
7472
7472
|
e.dyn_ltree[2 * _] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
|
|
7473
7473
|
}
|
|
7474
|
-
function
|
|
7474
|
+
function ne(e) {
|
|
7475
7475
|
8 < e.bi_valid ? L(e, e.bi_buf) : 0 < e.bi_valid && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
|
|
7476
7476
|
}
|
|
7477
|
-
function
|
|
7477
|
+
function re(e, t, n, r) {
|
|
7478
7478
|
var i = 2 * t, a = 2 * n;
|
|
7479
7479
|
return e[i] < e[a] || e[i] === e[a] && r[t] <= r[n];
|
|
7480
7480
|
}
|
|
7481
|
-
function
|
|
7482
|
-
for (var r = e.heap[n], i = n << 1; i <= e.heap_len && (i < e.heap_len &&
|
|
7481
|
+
function V(e, t, n) {
|
|
7482
|
+
for (var r = e.heap[n], i = n << 1; i <= e.heap_len && (i < e.heap_len && re(t, e.heap[i + 1], e.heap[i], e.depth) && i++, !re(t, r, e.heap[i], e.depth));) e.heap[n] = e.heap[i], n = i, i <<= 1;
|
|
7483
7483
|
e.heap[n] = r;
|
|
7484
7484
|
}
|
|
7485
|
-
function
|
|
7485
|
+
function H(e, t, n) {
|
|
7486
7486
|
var r, i, a, o, s = 0;
|
|
7487
7487
|
if (e.last_lit !== 0) for (; r = e.pending_buf[e.d_buf + 2 * s] << 8 | e.pending_buf[e.d_buf + 2 * s + 1], i = e.pending_buf[e.l_buf + s], s++, r === 0 ? z(e, i, t) : (z(e, (a = O[i]) + l + 1, t), (o = x[a]) !== 0 && R(e, i -= k[a], o), z(e, a = I(--r), n), (o = S[a]) !== 0 && R(e, r -= N[a], o)), s < e.last_lit;);
|
|
7488
7488
|
z(e, _, t);
|
|
7489
7489
|
}
|
|
7490
|
-
function
|
|
7490
|
+
function U(e, t) {
|
|
7491
7491
|
var n, r, i, a = t.dyn_tree, o = t.stat_desc.static_tree, s = t.stat_desc.has_stree, c = t.stat_desc.elems, l = -1;
|
|
7492
7492
|
for (e.heap_len = 0, e.heap_max = p, n = 0; n < c; n++) a[2 * n] === 0 ? a[2 * n + 1] = 0 : (e.heap[++e.heap_len] = l = n, e.depth[n] = 0);
|
|
7493
7493
|
for (; e.heap_len < 2;) a[2 * (i = e.heap[++e.heap_len] = l < 2 ? ++l : 0)] = 1, e.depth[i] = 0, e.opt_len--, s && (e.static_len -= o[2 * i + 1]);
|
|
7494
|
-
for (t.max_code = l, n = e.heap_len >> 1; 1 <= n; n--)
|
|
7495
|
-
for (i = c; n = e.heap[1], e.heap[1] = e.heap[e.heap_len--],
|
|
7494
|
+
for (t.max_code = l, n = e.heap_len >> 1; 1 <= n; n--) V(e, a, n);
|
|
7495
|
+
for (i = c; n = e.heap[1], e.heap[1] = e.heap[e.heap_len--], V(e, a, 1), r = e.heap[1], e.heap[--e.heap_max] = n, e.heap[--e.heap_max] = r, a[2 * i] = a[2 * n] + a[2 * r], e.depth[i] = (e.depth[n] >= e.depth[r] ? e.depth[n] : e.depth[r]) + 1, a[2 * n + 1] = a[2 * r + 1] = i, e.heap[1] = i++, V(e, a, 1), 2 <= e.heap_len;);
|
|
7496
7496
|
e.heap[--e.heap_max] = e.heap[1], function(e, t) {
|
|
7497
7497
|
var n, r, i, a, o, s, c = t.dyn_tree, l = t.max_code, u = t.stat_desc.static_tree, d = t.stat_desc.has_stree, f = t.stat_desc.extra_bits, h = t.stat_desc.extra_base, g = t.stat_desc.max_length, _ = 0;
|
|
7498
7498
|
for (a = 0; a <= m; a++) e.bl_count[a] = 0;
|
|
@@ -7506,7 +7506,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
7506
7506
|
}
|
|
7507
7507
|
}(e, t), ee(a, l, e.bl_count);
|
|
7508
7508
|
}
|
|
7509
|
-
function
|
|
7509
|
+
function W(e, t, n) {
|
|
7510
7510
|
var r, i, a = -1, o = t[1], s = 0, c = 7, l = 4;
|
|
7511
7511
|
for (o === 0 && (c = 138, l = 3), t[2 * (n + 1) + 1] = 65535, r = 0; r <= n; r++) i = o, o = t[2 * (r + 1) + 1], ++s < c && i === o || (s < l ? e.bl_tree[2 * i] += s : i === 0 ? s <= 10 ? e.bl_tree[2 * y]++ : e.bl_tree[2 * b]++ : (i !== a && e.bl_tree[2 * i]++, e.bl_tree[2 * v]++), a = i, l = (s = 0) === o ? (c = 138, 3) : i === o ? (c = 6, 3) : (c = 7, 4));
|
|
7512
7512
|
}
|
|
@@ -7522,7 +7522,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
7522
7522
|
var ie = !1;
|
|
7523
7523
|
function ae(e, t, n, i) {
|
|
7524
7524
|
R(e, (s << 1) + +!!i, 3), function(e, t, n, i) {
|
|
7525
|
-
|
|
7525
|
+
ne(e), i && (L(e, n), L(e, ~n)), r.arraySet(e.pending_buf, e.window, t, n, e.pending), e.pending += n;
|
|
7526
7526
|
}(e, t, n, !0);
|
|
7527
7527
|
}
|
|
7528
7528
|
n._tr_init = function(e) {
|
|
@@ -7547,15 +7547,15 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
7547
7547
|
if (e.dyn_ltree[18] !== 0 || e.dyn_ltree[20] !== 0 || e.dyn_ltree[26] !== 0) return a;
|
|
7548
7548
|
for (t = 32; t < l; t++) if (e.dyn_ltree[2 * t] !== 0) return a;
|
|
7549
7549
|
return i;
|
|
7550
|
-
}(e)),
|
|
7550
|
+
}(e)), U(e, e.l_desc), U(e, e.d_desc), c = function(e) {
|
|
7551
7551
|
var t;
|
|
7552
|
-
for (
|
|
7552
|
+
for (W(e, e.dyn_ltree, e.l_desc.max_code), W(e, e.dyn_dtree, e.d_desc.max_code), U(e, e.bl_desc), t = f - 1; 3 <= t && e.bl_tree[2 * w[t] + 1] === 0; t--);
|
|
7553
7553
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
7554
|
-
}(e), o = e.opt_len + 3 + 7 >>> 3, (s = e.static_len + 3 + 7 >>> 3) <= o && (o = s)) : o = s = n + 5, n + 4 <= o && t !== -1 ? ae(e, t, n, r) : e.strategy === 4 || s === o ? (R(e, 2 + +!!r, 3),
|
|
7554
|
+
}(e), o = e.opt_len + 3 + 7 >>> 3, (s = e.static_len + 3 + 7 >>> 3) <= o && (o = s)) : o = s = n + 5, n + 4 <= o && t !== -1 ? ae(e, t, n, r) : e.strategy === 4 || s === o ? (R(e, 2 + +!!r, 3), H(e, T, E)) : (R(e, 4 + +!!r, 3), function(e, t, n, r) {
|
|
7555
7555
|
var i;
|
|
7556
7556
|
for (R(e, t - 257, 5), R(e, n - 1, 5), R(e, r - 4, 4), i = 0; i < r; i++) R(e, e.bl_tree[2 * w[i] + 1], 3);
|
|
7557
7557
|
G(e, e.dyn_ltree, t - 1), G(e, e.dyn_dtree, n - 1);
|
|
7558
|
-
}(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, c + 1),
|
|
7558
|
+
}(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, c + 1), H(e, e.dyn_ltree, e.dyn_dtree)), te(e), r && ne(e);
|
|
7559
7559
|
}, n._tr_tally = function(e, t, n) {
|
|
7560
7560
|
return e.pending_buf[e.d_buf + 2 * e.last_lit] = t >>> 8 & 255, e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t, e.pending_buf[e.l_buf + e.last_lit] = 255 & n, e.last_lit++, t === 0 ? e.dyn_ltree[2 * n]++ : (e.matches++, t--, e.dyn_ltree[2 * (O[n] + l + 1)]++, e.dyn_dtree[2 * I(t)]++), e.last_lit === e.lit_bufsize - 1;
|
|
7561
7561
|
}, n._tr_align = function(e) {
|
|
@@ -7862,7 +7862,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
7862
7862
|
if (r ? t[F(t, r)] = n : t[t.length++] = n, e) {
|
|
7863
7863
|
n.ownerElement = e;
|
|
7864
7864
|
var i = e.ownerDocument;
|
|
7865
|
-
i && (r &&
|
|
7865
|
+
i && (r && re(i, e, r), ne(i, e, n));
|
|
7866
7866
|
}
|
|
7867
7867
|
}
|
|
7868
7868
|
function L(e, t, n) {
|
|
@@ -7871,7 +7871,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
7871
7871
|
for (var i = t.length - 1; r < i;) t[r] = t[++r];
|
|
7872
7872
|
if (t.length = i, e) {
|
|
7873
7873
|
var a = e.ownerDocument;
|
|
7874
|
-
a && (
|
|
7874
|
+
a && (re(a, e, n), n.ownerElement = null);
|
|
7875
7875
|
}
|
|
7876
7876
|
} else throw new A(O, /* @__PURE__ */ Error(e.tagName + "@" + n));
|
|
7877
7877
|
}
|
|
@@ -7950,7 +7950,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
7950
7950
|
de(this, e, t, ue), t && this.removeChild(t);
|
|
7951
7951
|
},
|
|
7952
7952
|
removeChild: function(e) {
|
|
7953
|
-
return
|
|
7953
|
+
return H(this, e);
|
|
7954
7954
|
},
|
|
7955
7955
|
appendChild: function(e) {
|
|
7956
7956
|
return this.insertBefore(e, null);
|
|
@@ -8008,13 +8008,13 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
8008
8008
|
function te() {
|
|
8009
8009
|
this.ownerDocument = this;
|
|
8010
8010
|
}
|
|
8011
|
-
function
|
|
8011
|
+
function ne(e, t, n) {
|
|
8012
8012
|
e && e._inc++, n.namespaceURI === r.XMLNS && (t._nsMap[n.prefix ? n.localName : ""] = n.value);
|
|
8013
8013
|
}
|
|
8014
|
-
function
|
|
8014
|
+
function re(e, t, n, i) {
|
|
8015
8015
|
e && e._inc++, n.namespaceURI === r.XMLNS && delete t._nsMap[n.prefix ? n.localName : ""];
|
|
8016
8016
|
}
|
|
8017
|
-
function
|
|
8017
|
+
function V(e, t, n) {
|
|
8018
8018
|
if (e && e._inc) {
|
|
8019
8019
|
e._inc++;
|
|
8020
8020
|
var r = t.childNodes;
|
|
@@ -8025,14 +8025,14 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
8025
8025
|
}
|
|
8026
8026
|
}
|
|
8027
8027
|
}
|
|
8028
|
-
function
|
|
8028
|
+
function H(e, t) {
|
|
8029
8029
|
var n = t.previousSibling, r = t.nextSibling;
|
|
8030
|
-
return n ? n.nextSibling = r : e.firstChild = r, r ? r.previousSibling = n : e.lastChild = n, t.parentNode = null, t.previousSibling = null, t.nextSibling = null,
|
|
8030
|
+
return n ? n.nextSibling = r : e.firstChild = r, r ? r.previousSibling = n : e.lastChild = n, t.parentNode = null, t.previousSibling = null, t.nextSibling = null, V(e.ownerDocument, e), t;
|
|
8031
8031
|
}
|
|
8032
|
-
function
|
|
8032
|
+
function U(e) {
|
|
8033
8033
|
return e && (e.nodeType === z.DOCUMENT_NODE || e.nodeType === z.DOCUMENT_FRAGMENT_NODE || e.nodeType === z.ELEMENT_NODE);
|
|
8034
8034
|
}
|
|
8035
|
-
function
|
|
8035
|
+
function W(e) {
|
|
8036
8036
|
return e && (ie(e) || ae(e) || G(e) || e.nodeType === z.DOCUMENT_FRAGMENT_NODE || e.nodeType === z.COMMENT_NODE || e.nodeType === z.PROCESSING_INSTRUCTION_NODE);
|
|
8037
8037
|
}
|
|
8038
8038
|
function G(e) {
|
|
@@ -8060,9 +8060,9 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
8060
8060
|
return !(t && a && r.indexOf(a) > r.indexOf(t));
|
|
8061
8061
|
}
|
|
8062
8062
|
function ce(e, t, n) {
|
|
8063
|
-
if (!
|
|
8063
|
+
if (!U(e)) throw new A(E, "Unexpected parent node type " + e.nodeType);
|
|
8064
8064
|
if (n && n.parentNode !== e) throw new A(O, "child not in parent");
|
|
8065
|
-
if (!
|
|
8065
|
+
if (!W(t) || G(t) && e.nodeType !== z.DOCUMENT_NODE) throw new A(E, "Unexpected node type " + t.nodeType + " for parent node type " + e.nodeType);
|
|
8066
8066
|
}
|
|
8067
8067
|
function le(e, t, r) {
|
|
8068
8068
|
var i = e.childNodes || [], a = t.childNodes || [];
|
|
@@ -8111,7 +8111,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
8111
8111
|
var c = e.ownerDocument || e;
|
|
8112
8112
|
K(a, c);
|
|
8113
8113
|
} while (a !== o && (a = a.nextSibling));
|
|
8114
|
-
return
|
|
8114
|
+
return V(e.ownerDocument || e, e), t.nodeType == S && (t.firstChild = t.lastChild = null), t;
|
|
8115
8115
|
}
|
|
8116
8116
|
function K(e, t) {
|
|
8117
8117
|
if (e.ownerDocument !== t) {
|
|
@@ -8123,7 +8123,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
8123
8123
|
}
|
|
8124
8124
|
}
|
|
8125
8125
|
function fe(e, t) {
|
|
8126
|
-
return t.parentNode && t.parentNode.removeChild(t), t.parentNode = e, t.previousSibling = e.lastChild, t.nextSibling = null, t.previousSibling ? t.previousSibling.nextSibling = t : e.firstChild = t, e.lastChild = t,
|
|
8126
|
+
return t.parentNode && t.parentNode.removeChild(t), t.parentNode = e, t.previousSibling = e.lastChild, t.nextSibling = null, t.previousSibling ? t.previousSibling.nextSibling = t : e.firstChild = t, e.lastChild = t, V(e.ownerDocument, e, t), K(t, e.ownerDocument || e), t;
|
|
8127
8127
|
}
|
|
8128
8128
|
te.prototype = {
|
|
8129
8129
|
nodeName: "#document",
|
|
@@ -8142,7 +8142,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
8142
8142
|
return de(this, e, t), K(e, this), this.documentElement === null && e.nodeType === f && (this.documentElement = e), e;
|
|
8143
8143
|
},
|
|
8144
8144
|
removeChild: function(e) {
|
|
8145
|
-
return this.documentElement == e && (this.documentElement = null),
|
|
8145
|
+
return this.documentElement == e && (this.documentElement = null), H(this, e);
|
|
8146
8146
|
},
|
|
8147
8147
|
replaceChild: function(e, t) {
|
|
8148
8148
|
de(this, e, t, ue), K(e, this), t && this.removeChild(t), ie(e) && (this.documentElement = e);
|
|
@@ -19702,7 +19702,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
19702
19702
|
}
|
|
19703
19703
|
function D(e) {
|
|
19704
19704
|
if (e.type === "element") {
|
|
19705
|
-
var t =
|
|
19705
|
+
var t = W[e.name];
|
|
19706
19706
|
if (t) return t(e);
|
|
19707
19707
|
if (!Object.prototype.hasOwnProperty.call(p, e.name)) return m([a("An unrecognised element was ignored: " + e.name)]);
|
|
19708
19708
|
}
|
|
@@ -19828,14 +19828,14 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
19828
19828
|
}
|
|
19829
19829
|
return { type: "unknown" };
|
|
19830
19830
|
}
|
|
19831
|
-
function
|
|
19831
|
+
function ne(e) {
|
|
19832
19832
|
return l.push(e.text()), h();
|
|
19833
19833
|
}
|
|
19834
|
-
function
|
|
19834
|
+
function re(e) {
|
|
19835
19835
|
var n = e.attributes["w:font"], i = e.attributes["w:char"], o = t.hex(n, i);
|
|
19836
19836
|
return o == null && /^F0..$/.test(i) && (o = t.hex(n, i.substring(2))), o == null ? m([a("A w:sym element with an unsupported character was ignored: char " + i + " in font " + n)]) : g(new r.Text(o.string));
|
|
19837
19837
|
}
|
|
19838
|
-
function
|
|
19838
|
+
function V(e) {
|
|
19839
19839
|
return function(t) {
|
|
19840
19840
|
var n = t.attributes["w:id"];
|
|
19841
19841
|
return g(new r.NoteReference({
|
|
@@ -19844,13 +19844,13 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
19844
19844
|
}));
|
|
19845
19845
|
};
|
|
19846
19846
|
}
|
|
19847
|
-
function
|
|
19847
|
+
function H(e) {
|
|
19848
19848
|
return g(r.commentReference({ commentId: e.attributes["w:id"] }));
|
|
19849
19849
|
}
|
|
19850
|
-
function
|
|
19850
|
+
function U(e) {
|
|
19851
19851
|
return E(e.children);
|
|
19852
19852
|
}
|
|
19853
|
-
var
|
|
19853
|
+
var W = {
|
|
19854
19854
|
"w:p": function(e) {
|
|
19855
19855
|
var t = e.firstOrEmpty("w:pPr");
|
|
19856
19856
|
if (t.firstOrEmpty("w:rPr").first("w:del")) return e.children.forEach(function(e) {
|
|
@@ -19868,7 +19868,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
19868
19868
|
});
|
|
19869
19869
|
},
|
|
19870
19870
|
"w:fldChar": z,
|
|
19871
|
-
"w:instrText":
|
|
19871
|
+
"w:instrText": ne,
|
|
19872
19872
|
"w:t": function(e) {
|
|
19873
19873
|
return g(new r.Text(e.text()));
|
|
19874
19874
|
},
|
|
@@ -19881,7 +19881,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
19881
19881
|
"w:softHyphen": function(e) {
|
|
19882
19882
|
return g(new r.Text(""));
|
|
19883
19883
|
},
|
|
19884
|
-
"w:sym":
|
|
19884
|
+
"w:sym": re,
|
|
19885
19885
|
"w:hyperlink": function(e) {
|
|
19886
19886
|
var t = e.attributes["r:id"], i = e.attributes["w:anchor"];
|
|
19887
19887
|
return E(e.children).map(function(a) {
|
|
@@ -19899,9 +19899,9 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
19899
19899
|
"w:tbl": G,
|
|
19900
19900
|
"w:tr": ae,
|
|
19901
19901
|
"w:tc": oe,
|
|
19902
|
-
"w:footnoteReference":
|
|
19903
|
-
"w:endnoteReference":
|
|
19904
|
-
"w:commentReference":
|
|
19902
|
+
"w:footnoteReference": V("footnote"),
|
|
19903
|
+
"w:endnoteReference": V("endnote"),
|
|
19904
|
+
"w:commentReference": H,
|
|
19905
19905
|
"w:br": function(e) {
|
|
19906
19906
|
var t = e.attributes["w:type"];
|
|
19907
19907
|
return t == null || t === "textWrapping" ? g(r.lineBreak) : t === "page" ? g(r.pageBreak) : t === "column" ? g(r.columnBreak) : m([a("Unsupported break type: " + t)]);
|
|
@@ -19911,7 +19911,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
19911
19911
|
return t === "_GoBack" ? h() : g(new r.BookmarkStart({ name: t }));
|
|
19912
19912
|
},
|
|
19913
19913
|
"mc:AlternateContent": function(e) {
|
|
19914
|
-
return
|
|
19914
|
+
return U(e.firstOrEmpty("mc:Fallback"));
|
|
19915
19915
|
},
|
|
19916
19916
|
"w:sdt": function(e) {
|
|
19917
19917
|
return E(e.firstOrEmpty("w:sdtContent").children).map(function(t) {
|
|
@@ -19924,22 +19924,22 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
19924
19924
|
} else return t;
|
|
19925
19925
|
});
|
|
19926
19926
|
},
|
|
19927
|
-
"w:ins":
|
|
19928
|
-
"w:object":
|
|
19929
|
-
"w:smartTag":
|
|
19930
|
-
"w:drawing":
|
|
19927
|
+
"w:ins": U,
|
|
19928
|
+
"w:object": U,
|
|
19929
|
+
"w:smartTag": U,
|
|
19930
|
+
"w:drawing": U,
|
|
19931
19931
|
"w:pict": function(e) {
|
|
19932
|
-
return
|
|
19932
|
+
return U(e).toExtra();
|
|
19933
19933
|
},
|
|
19934
|
-
"v:roundrect":
|
|
19935
|
-
"v:shape":
|
|
19936
|
-
"v:textbox":
|
|
19937
|
-
"w:txbxContent":
|
|
19934
|
+
"v:roundrect": U,
|
|
19935
|
+
"v:shape": U,
|
|
19936
|
+
"v:textbox": U,
|
|
19937
|
+
"w:txbxContent": U,
|
|
19938
19938
|
"wp:inline": ue,
|
|
19939
19939
|
"wp:anchor": ue,
|
|
19940
19940
|
"v:imagedata": pe,
|
|
19941
|
-
"v:group":
|
|
19942
|
-
"v:rect":
|
|
19941
|
+
"v:group": U,
|
|
19942
|
+
"v:rect": U
|
|
19943
19943
|
};
|
|
19944
19944
|
return {
|
|
19945
19945
|
readXmlElement: D,
|
|
@@ -21008,7 +21008,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
21008
21008
|
}
|
|
21009
21009
|
function w(e, t, n) {
|
|
21010
21010
|
if (!n) throw Error("options not set");
|
|
21011
|
-
var r =
|
|
21011
|
+
var r = H[e.type];
|
|
21012
21012
|
return r ? r(e, t, n) : [];
|
|
21013
21013
|
}
|
|
21014
21014
|
function T(e, t, n) {
|
|
@@ -21111,26 +21111,26 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
21111
21111
|
}, [s.text(r)])];
|
|
21112
21112
|
});
|
|
21113
21113
|
}
|
|
21114
|
-
function
|
|
21114
|
+
function ne(e, t, n) {
|
|
21115
21115
|
var r = e.label, i = e.comment, a = C(i.body, t, n).concat([s.nonFreshElement("p", {}, [s.text(" "), s.freshElement("a", { href: "#" + F("comment", i.commentId) }, [s.text("↑")])])]);
|
|
21116
21116
|
return [s.freshElement("dt", { id: P("comment", i.commentId) }, [s.text("Comment " + r)]), s.freshElement("dd", {}, a)];
|
|
21117
21117
|
}
|
|
21118
|
-
function
|
|
21119
|
-
return
|
|
21118
|
+
function re(e, t, n) {
|
|
21119
|
+
return V(e).wrap(function() {
|
|
21120
21120
|
return [];
|
|
21121
21121
|
});
|
|
21122
21122
|
}
|
|
21123
|
-
function
|
|
21123
|
+
function V(e) {
|
|
21124
21124
|
var t = A(e);
|
|
21125
21125
|
return t ? t.to : e.breakType === "line" ? i.topLevelElement("br") : i.empty;
|
|
21126
21126
|
}
|
|
21127
|
-
var
|
|
21127
|
+
var H = {
|
|
21128
21128
|
document: function(e, t, n) {
|
|
21129
21129
|
var r = C(e.children, t, n), i = C(d.map(function(t) {
|
|
21130
21130
|
return e.notes.resolve(t);
|
|
21131
21131
|
}), t, n);
|
|
21132
21132
|
return r.concat([s.freshElement("ol", {}, i), s.freshElement("dl", {}, m(_, function(e) {
|
|
21133
|
-
return
|
|
21133
|
+
return ne(e, t, n);
|
|
21134
21134
|
}))]);
|
|
21135
21135
|
},
|
|
21136
21136
|
paragraph: T,
|
|
@@ -21167,12 +21167,12 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
21167
21167
|
return s.freshElement("li", { id: M(e) }, o);
|
|
21168
21168
|
},
|
|
21169
21169
|
commentReference: te,
|
|
21170
|
-
comment:
|
|
21170
|
+
comment: ne,
|
|
21171
21171
|
image: f(j(e.convertImage || o.dataUri)),
|
|
21172
21172
|
table: R,
|
|
21173
21173
|
tableRow: B,
|
|
21174
21174
|
tableCell: ee,
|
|
21175
|
-
break:
|
|
21175
|
+
break: re
|
|
21176
21176
|
};
|
|
21177
21177
|
return { convertToHtml: S };
|
|
21178
21178
|
}
|
|
@@ -22563,7 +22563,10 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22563
22563
|
}]]), qc = Q("ChevronRight", [["path", {
|
|
22564
22564
|
d: "m9 18 6-6-6-6",
|
|
22565
22565
|
key: "mthhwq"
|
|
22566
|
-
}]]), Jc = Q("
|
|
22566
|
+
}]]), Jc = Q("ChevronUp", [["path", {
|
|
22567
|
+
d: "m18 15-6-6-6 6",
|
|
22568
|
+
key: "153udz"
|
|
22569
|
+
}]]), Yc = Q("CircleAlert", [
|
|
22567
22570
|
["circle", {
|
|
22568
22571
|
cx: "12",
|
|
22569
22572
|
cy: "12",
|
|
@@ -22584,13 +22587,13 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22584
22587
|
y2: "16",
|
|
22585
22588
|
key: "4dfq90"
|
|
22586
22589
|
}]
|
|
22587
|
-
]),
|
|
22590
|
+
]), Xc = Q("CircleCheckBig", [["path", {
|
|
22588
22591
|
d: "M21.801 10A10 10 0 1 1 17 3.335",
|
|
22589
22592
|
key: "yps3ct"
|
|
22590
22593
|
}], ["path", {
|
|
22591
22594
|
d: "m9 11 3 3L22 4",
|
|
22592
22595
|
key: "1pflzl"
|
|
22593
|
-
}]]),
|
|
22596
|
+
}]]), Zc = Q("CircleHelp", [
|
|
22594
22597
|
["circle", {
|
|
22595
22598
|
cx: "12",
|
|
22596
22599
|
cy: "12",
|
|
@@ -22605,7 +22608,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22605
22608
|
d: "M12 17h.01",
|
|
22606
22609
|
key: "p32p05"
|
|
22607
22610
|
}]
|
|
22608
|
-
]),
|
|
22611
|
+
]), Qc = Q("ClipboardPaste", [
|
|
22609
22612
|
["path", {
|
|
22610
22613
|
d: "M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z",
|
|
22611
22614
|
key: "1pp7kr"
|
|
@@ -22618,7 +22621,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22618
22621
|
d: "m17 10 4 4-4 4",
|
|
22619
22622
|
key: "vp2hj1"
|
|
22620
22623
|
}]
|
|
22621
|
-
]),
|
|
22624
|
+
]), $c = Q("Combine", [
|
|
22622
22625
|
["path", {
|
|
22623
22626
|
d: "M10 18H5a3 3 0 0 1-3-3v-1",
|
|
22624
22627
|
key: "ru65g8"
|
|
@@ -22651,7 +22654,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22651
22654
|
rx: "2",
|
|
22652
22655
|
key: "1x09vl"
|
|
22653
22656
|
}]
|
|
22654
|
-
]),
|
|
22657
|
+
]), el = Q("Copy", [["rect", {
|
|
22655
22658
|
width: "14",
|
|
22656
22659
|
height: "14",
|
|
22657
22660
|
x: "8",
|
|
@@ -22662,7 +22665,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22662
22665
|
}], ["path", {
|
|
22663
22666
|
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
|
|
22664
22667
|
key: "zix9uf"
|
|
22665
|
-
}]]),
|
|
22668
|
+
}]]), tl = Q("Eraser", [
|
|
22666
22669
|
["path", {
|
|
22667
22670
|
d: "m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",
|
|
22668
22671
|
key: "182aya"
|
|
@@ -22675,7 +22678,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22675
22678
|
d: "m5 11 9 9",
|
|
22676
22679
|
key: "1mo9qw"
|
|
22677
22680
|
}]
|
|
22678
|
-
]),
|
|
22681
|
+
]), nl = Q("FileCode", [
|
|
22679
22682
|
["path", {
|
|
22680
22683
|
d: "M10 12.5 8 15l2 2.5",
|
|
22681
22684
|
key: "1tg20x"
|
|
@@ -22692,7 +22695,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22692
22695
|
d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",
|
|
22693
22696
|
key: "1mlx9k"
|
|
22694
22697
|
}]
|
|
22695
|
-
]),
|
|
22698
|
+
]), rl = Q("FileText", [
|
|
22696
22699
|
["path", {
|
|
22697
22700
|
d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",
|
|
22698
22701
|
key: "1rqfz7"
|
|
@@ -22713,7 +22716,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22713
22716
|
d: "M16 17H8",
|
|
22714
22717
|
key: "z1uh3a"
|
|
22715
22718
|
}]
|
|
22716
|
-
]),
|
|
22719
|
+
]), il = Q("Image", [
|
|
22717
22720
|
["rect", {
|
|
22718
22721
|
width: "18",
|
|
22719
22722
|
height: "18",
|
|
@@ -22733,7 +22736,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22733
22736
|
d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
|
|
22734
22737
|
key: "1xmnt7"
|
|
22735
22738
|
}]
|
|
22736
|
-
]),
|
|
22739
|
+
]), al = Q("IndentDecrease", [
|
|
22737
22740
|
["path", {
|
|
22738
22741
|
d: "M21 12H11",
|
|
22739
22742
|
key: "wd7e0v"
|
|
@@ -22750,7 +22753,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22750
22753
|
d: "m7 8-4 4 4 4",
|
|
22751
22754
|
key: "o5hrat"
|
|
22752
22755
|
}]
|
|
22753
|
-
]),
|
|
22756
|
+
]), ol = Q("IndentIncrease", [
|
|
22754
22757
|
["path", {
|
|
22755
22758
|
d: "M21 12H11",
|
|
22756
22759
|
key: "wd7e0v"
|
|
@@ -22767,7 +22770,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22767
22770
|
d: "m3 8 4 4-4 4",
|
|
22768
22771
|
key: "1a3j6y"
|
|
22769
22772
|
}]
|
|
22770
|
-
]),
|
|
22773
|
+
]), sl = Q("Info", [
|
|
22771
22774
|
["circle", {
|
|
22772
22775
|
cx: "12",
|
|
22773
22776
|
cy: "12",
|
|
@@ -22782,7 +22785,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22782
22785
|
d: "M12 8h.01",
|
|
22783
22786
|
key: "e9boi3"
|
|
22784
22787
|
}]
|
|
22785
|
-
]),
|
|
22788
|
+
]), cl = Q("Italic", [
|
|
22786
22789
|
["line", {
|
|
22787
22790
|
x1: "19",
|
|
22788
22791
|
x2: "10",
|
|
@@ -22804,13 +22807,13 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22804
22807
|
y2: "20",
|
|
22805
22808
|
key: "uljnxc"
|
|
22806
22809
|
}]
|
|
22807
|
-
]),
|
|
22810
|
+
]), ll = Q("Link", [["path", {
|
|
22808
22811
|
d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
|
|
22809
22812
|
key: "1cjeqo"
|
|
22810
22813
|
}], ["path", {
|
|
22811
22814
|
d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",
|
|
22812
22815
|
key: "19qd67"
|
|
22813
|
-
}]]),
|
|
22816
|
+
}]]), ul = Q("ListOrdered", [
|
|
22814
22817
|
["path", {
|
|
22815
22818
|
d: "M10 12h11",
|
|
22816
22819
|
key: "6m4ad9"
|
|
@@ -22835,7 +22838,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22835
22838
|
d: "M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",
|
|
22836
22839
|
key: "m9a95d"
|
|
22837
22840
|
}]
|
|
22838
|
-
]),
|
|
22841
|
+
]), dl = Q("List", [
|
|
22839
22842
|
["path", {
|
|
22840
22843
|
d: "M3 12h.01",
|
|
22841
22844
|
key: "nlz23k"
|
|
@@ -22860,7 +22863,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22860
22863
|
d: "M8 6h13",
|
|
22861
22864
|
key: "ik3vkj"
|
|
22862
22865
|
}]
|
|
22863
|
-
]),
|
|
22866
|
+
]), fl = Q("Maximize", [
|
|
22864
22867
|
["path", {
|
|
22865
22868
|
d: "M8 3H5a2 2 0 0 0-2 2v3",
|
|
22866
22869
|
key: "1dcmit"
|
|
@@ -22877,7 +22880,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22877
22880
|
d: "M16 21h3a2 2 0 0 0 2-2v-3",
|
|
22878
22881
|
key: "18trek"
|
|
22879
22882
|
}]
|
|
22880
|
-
]),
|
|
22883
|
+
]), pl = Q("MoveVertical", [
|
|
22881
22884
|
["path", {
|
|
22882
22885
|
d: "M12 2v20",
|
|
22883
22886
|
key: "t6zp3m"
|
|
@@ -22890,7 +22893,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22890
22893
|
d: "m8 6 4-4 4 4",
|
|
22891
22894
|
key: "ybng9g"
|
|
22892
22895
|
}]
|
|
22893
|
-
]),
|
|
22896
|
+
]), ml = Q("PaintBucket", [
|
|
22894
22897
|
["path", {
|
|
22895
22898
|
d: "m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z",
|
|
22896
22899
|
key: "irua1i"
|
|
@@ -22907,7 +22910,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22907
22910
|
d: "M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z",
|
|
22908
22911
|
key: "xk76lq"
|
|
22909
22912
|
}]
|
|
22910
|
-
]),
|
|
22913
|
+
]), hl = Q("Printer", [
|
|
22911
22914
|
["path", {
|
|
22912
22915
|
d: "M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",
|
|
22913
22916
|
key: "143wyd"
|
|
@@ -22924,19 +22927,19 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22924
22927
|
rx: "1",
|
|
22925
22928
|
key: "1ue0tg"
|
|
22926
22929
|
}]
|
|
22927
|
-
]),
|
|
22930
|
+
]), gl = Q("Quote", [["path", {
|
|
22928
22931
|
d: "M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",
|
|
22929
22932
|
key: "rib7q0"
|
|
22930
22933
|
}], ["path", {
|
|
22931
22934
|
d: "M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",
|
|
22932
22935
|
key: "1ymkrd"
|
|
22933
|
-
}]]),
|
|
22936
|
+
}]]), _l = Q("Redo", [["path", {
|
|
22934
22937
|
d: "M21 7v6h-6",
|
|
22935
22938
|
key: "3ptur4"
|
|
22936
22939
|
}], ["path", {
|
|
22937
22940
|
d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",
|
|
22938
22941
|
key: "1kgawr"
|
|
22939
|
-
}]]),
|
|
22942
|
+
}]]), vl = Q("Replace", [
|
|
22940
22943
|
["path", {
|
|
22941
22944
|
d: "M14 4a2 2 0 0 1 2-2",
|
|
22942
22945
|
key: "1w2hp7"
|
|
@@ -22969,13 +22972,13 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22969
22972
|
rx: "2",
|
|
22970
22973
|
key: "4rksxw"
|
|
22971
22974
|
}]
|
|
22972
|
-
]),
|
|
22975
|
+
]), yl = Q("RotateCcw", [["path", {
|
|
22973
22976
|
d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
|
|
22974
22977
|
key: "1357e3"
|
|
22975
22978
|
}], ["path", {
|
|
22976
22979
|
d: "M3 3v5h5",
|
|
22977
22980
|
key: "1xhq8a"
|
|
22978
|
-
}]]),
|
|
22981
|
+
}]]), bl = Q("Save", [
|
|
22979
22982
|
["path", {
|
|
22980
22983
|
d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",
|
|
22981
22984
|
key: "1c8476"
|
|
@@ -22988,7 +22991,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
22988
22991
|
d: "M7 3v4a1 1 0 0 0 1 1h7",
|
|
22989
22992
|
key: "t51u73"
|
|
22990
22993
|
}]
|
|
22991
|
-
]),
|
|
22994
|
+
]), xl = Q("Scissors", [
|
|
22992
22995
|
["circle", {
|
|
22993
22996
|
cx: "6",
|
|
22994
22997
|
cy: "6",
|
|
@@ -23013,7 +23016,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23013
23016
|
d: "M14.8 14.8 20 20",
|
|
23014
23017
|
key: "ptml3r"
|
|
23015
23018
|
}]
|
|
23016
|
-
]),
|
|
23019
|
+
]), Sl = Q("Search", [["circle", {
|
|
23017
23020
|
cx: "11",
|
|
23018
23021
|
cy: "11",
|
|
23019
23022
|
r: "8",
|
|
@@ -23021,7 +23024,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23021
23024
|
}], ["path", {
|
|
23022
23025
|
d: "m21 21-4.3-4.3",
|
|
23023
23026
|
key: "1qie3q"
|
|
23024
|
-
}]]),
|
|
23027
|
+
}]]), Cl = Q("Split", [
|
|
23025
23028
|
["path", {
|
|
23026
23029
|
d: "M16 3h5v5",
|
|
23027
23030
|
key: "1806ms"
|
|
@@ -23038,14 +23041,14 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23038
23041
|
d: "m15 9 6-6",
|
|
23039
23042
|
key: "ko1vev"
|
|
23040
23043
|
}]
|
|
23041
|
-
]),
|
|
23044
|
+
]), wl = Q("Square", [["rect", {
|
|
23042
23045
|
width: "18",
|
|
23043
23046
|
height: "18",
|
|
23044
23047
|
x: "3",
|
|
23045
23048
|
y: "3",
|
|
23046
23049
|
rx: "2",
|
|
23047
23050
|
key: "afitv7"
|
|
23048
|
-
}]]),
|
|
23051
|
+
}]]), Tl = Q("Strikethrough", [
|
|
23049
23052
|
["path", {
|
|
23050
23053
|
d: "M16 4H9a3 3 0 0 0-2.83 4",
|
|
23051
23054
|
key: "43sutm"
|
|
@@ -23061,7 +23064,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23061
23064
|
y2: "12",
|
|
23062
23065
|
key: "1e0a9i"
|
|
23063
23066
|
}]
|
|
23064
|
-
]),
|
|
23067
|
+
]), El = Q("Table", [
|
|
23065
23068
|
["path", {
|
|
23066
23069
|
d: "M12 3v18",
|
|
23067
23070
|
key: "108xh3"
|
|
@@ -23082,7 +23085,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23082
23085
|
d: "M3 15h18",
|
|
23083
23086
|
key: "5xshup"
|
|
23084
23087
|
}]
|
|
23085
|
-
]),
|
|
23088
|
+
]), Dl = Q("Trash2", [
|
|
23086
23089
|
["path", {
|
|
23087
23090
|
d: "M3 6h18",
|
|
23088
23091
|
key: "d0wm0j"
|
|
@@ -23109,7 +23112,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23109
23112
|
y2: "17",
|
|
23110
23113
|
key: "xtxkd"
|
|
23111
23114
|
}]
|
|
23112
|
-
]),
|
|
23115
|
+
]), Ol = Q("Underline", [["path", {
|
|
23113
23116
|
d: "M6 4v6a6 6 0 0 0 12 0V4",
|
|
23114
23117
|
key: "9kb039"
|
|
23115
23118
|
}], ["line", {
|
|
@@ -23118,13 +23121,13 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23118
23121
|
y1: "20",
|
|
23119
23122
|
y2: "20",
|
|
23120
23123
|
key: "nun2al"
|
|
23121
|
-
}]]),
|
|
23124
|
+
}]]), kl = Q("Undo", [["path", {
|
|
23122
23125
|
d: "M3 7v6h6",
|
|
23123
23126
|
key: "1v2h90"
|
|
23124
23127
|
}], ["path", {
|
|
23125
23128
|
d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",
|
|
23126
23129
|
key: "1r6uu6"
|
|
23127
|
-
}]]),
|
|
23130
|
+
}]]), Al = Q("X", [["path", {
|
|
23128
23131
|
d: "M18 6 6 18",
|
|
23129
23132
|
key: "1bl5f8"
|
|
23130
23133
|
}], ["path", {
|
|
@@ -23142,7 +23145,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23142
23145
|
className: "swe-btn-label",
|
|
23143
23146
|
children: a
|
|
23144
23147
|
})]
|
|
23145
|
-
}),
|
|
23148
|
+
}), jl = ({ showHtml: t, execCommand: n, activeStyles: r, fontConf: i, paragraphConf: a, changeLineSpacing: o, changeListStyleType: s, clipboardConf: f, handlePaste: p, toggleHtmlView: m, onOpenFind: h, onOpenReplace: g, editingConf: _, pluginContributions: v = [], toggleSelectionLock: y, fonts: b, sizes: x, saveSelection: S, openTextColorPicker: C, openHighlightColorPicker: w }) => {
|
|
23146
23149
|
let [T, E] = e.useState({
|
|
23147
23150
|
type: "ul",
|
|
23148
23151
|
open: !1,
|
|
@@ -23194,7 +23197,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23194
23197
|
width: "50px"
|
|
23195
23198
|
},
|
|
23196
23199
|
title: "Paste (Ctrl+V)",
|
|
23197
|
-
children: [/* @__PURE__ */ u(
|
|
23200
|
+
children: [/* @__PURE__ */ u(Qc, {
|
|
23198
23201
|
size: 28,
|
|
23199
23202
|
className: "swe-text-primary-blue"
|
|
23200
23203
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -23207,12 +23210,12 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23207
23210
|
className: "swe-flex swe-items-center",
|
|
23208
23211
|
children: [f.cut && /* @__PURE__ */ u($, {
|
|
23209
23212
|
onClick: () => n("cut"),
|
|
23210
|
-
icon: /* @__PURE__ */ u(
|
|
23213
|
+
icon: /* @__PURE__ */ u(xl, { size: 14 }),
|
|
23211
23214
|
disabled: t,
|
|
23212
23215
|
title: "Cut (Ctrl+X)"
|
|
23213
23216
|
}), f.undo && /* @__PURE__ */ u($, {
|
|
23214
23217
|
onClick: () => n("undo"),
|
|
23215
|
-
icon: /* @__PURE__ */ u(
|
|
23218
|
+
icon: /* @__PURE__ */ u(kl, { size: 14 }),
|
|
23216
23219
|
disabled: t,
|
|
23217
23220
|
title: "Undo (Ctrl+Z)"
|
|
23218
23221
|
})]
|
|
@@ -23220,12 +23223,12 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23220
23223
|
className: "swe-flex swe-items-center",
|
|
23221
23224
|
children: [f.copy && /* @__PURE__ */ u($, {
|
|
23222
23225
|
onClick: () => n("copy"),
|
|
23223
|
-
icon: /* @__PURE__ */ u(
|
|
23226
|
+
icon: /* @__PURE__ */ u(el, { size: 14 }),
|
|
23224
23227
|
disabled: t,
|
|
23225
23228
|
title: "Copy (Ctrl+C)"
|
|
23226
23229
|
}), f.redo && /* @__PURE__ */ u($, {
|
|
23227
23230
|
onClick: () => n("redo"),
|
|
23228
|
-
icon: /* @__PURE__ */ u(
|
|
23231
|
+
icon: /* @__PURE__ */ u(_l, { size: 14 }),
|
|
23229
23232
|
disabled: t,
|
|
23230
23233
|
title: "Redo (Ctrl+Y)"
|
|
23231
23234
|
})]
|
|
@@ -23258,7 +23261,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23258
23261
|
title: "Bold (Ctrl+B)"
|
|
23259
23262
|
}), i.italic && /* @__PURE__ */ u($, {
|
|
23260
23263
|
onClick: () => n("italic"),
|
|
23261
|
-
icon: /* @__PURE__ */ u(
|
|
23264
|
+
icon: /* @__PURE__ */ u(cl, { size: 14 }),
|
|
23262
23265
|
isActive: r.italic,
|
|
23263
23266
|
disabled: t,
|
|
23264
23267
|
title: "Italic (Ctrl+I)"
|
|
@@ -23267,13 +23270,13 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23267
23270
|
className: "swe-flex-col swe-items-center",
|
|
23268
23271
|
children: [i.underline && /* @__PURE__ */ u($, {
|
|
23269
23272
|
onClick: () => n("underline"),
|
|
23270
|
-
icon: /* @__PURE__ */ u(
|
|
23273
|
+
icon: /* @__PURE__ */ u(Ol, { size: 14 }),
|
|
23271
23274
|
isActive: r.underline,
|
|
23272
23275
|
disabled: t,
|
|
23273
23276
|
title: "Underline (Ctrl+U)"
|
|
23274
23277
|
}), i.strikeThrough && /* @__PURE__ */ u($, {
|
|
23275
23278
|
onClick: () => n("strikeThrough"),
|
|
23276
|
-
icon: /* @__PURE__ */ u(
|
|
23279
|
+
icon: /* @__PURE__ */ u(Tl, { size: 14 }),
|
|
23277
23280
|
isActive: r.strikeThrough,
|
|
23278
23281
|
disabled: t,
|
|
23279
23282
|
title: "Strikethrough"
|
|
@@ -23295,14 +23298,14 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23295
23298
|
children: [
|
|
23296
23299
|
a.bullets && /* @__PURE__ */ u($, {
|
|
23297
23300
|
onClick: (e) => A(e, "ul"),
|
|
23298
|
-
icon: /* @__PURE__ */ u(
|
|
23301
|
+
icon: /* @__PURE__ */ u(dl, { size: 14 }),
|
|
23299
23302
|
isActive: r.insertUnorderedList,
|
|
23300
23303
|
disabled: t,
|
|
23301
23304
|
title: "Bullets"
|
|
23302
23305
|
}),
|
|
23303
23306
|
a.numbering && /* @__PURE__ */ u($, {
|
|
23304
23307
|
onClick: (e) => A(e, "ol"),
|
|
23305
|
-
icon: /* @__PURE__ */ u(
|
|
23308
|
+
icon: /* @__PURE__ */ u(ul, { size: 14 }),
|
|
23306
23309
|
isActive: r.insertOrderedList,
|
|
23307
23310
|
disabled: t,
|
|
23308
23311
|
title: "Numbering"
|
|
@@ -23310,13 +23313,13 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23310
23313
|
(a.bullets || a.numbering) && /* @__PURE__ */ u("div", { className: "swe-vertical-divider" }),
|
|
23311
23314
|
a.outdent && /* @__PURE__ */ u($, {
|
|
23312
23315
|
onClick: () => n("outdent"),
|
|
23313
|
-
icon: /* @__PURE__ */ u(
|
|
23316
|
+
icon: /* @__PURE__ */ u(al, { size: 14 }),
|
|
23314
23317
|
disabled: t,
|
|
23315
23318
|
title: "Decrease Indent"
|
|
23316
23319
|
}),
|
|
23317
23320
|
a.indent && /* @__PURE__ */ u($, {
|
|
23318
23321
|
onClick: () => n("indent"),
|
|
23319
|
-
icon: /* @__PURE__ */ u(
|
|
23322
|
+
icon: /* @__PURE__ */ u(ol, { size: 14 }),
|
|
23320
23323
|
disabled: t,
|
|
23321
23324
|
title: "Increase Indent"
|
|
23322
23325
|
}),
|
|
@@ -23330,13 +23333,13 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23330
23333
|
y: t.bottom
|
|
23331
23334
|
});
|
|
23332
23335
|
},
|
|
23333
|
-
icon: /* @__PURE__ */ u(
|
|
23336
|
+
icon: /* @__PURE__ */ u(pl, { size: 14 }),
|
|
23334
23337
|
disabled: t,
|
|
23335
23338
|
title: "Line Spacing"
|
|
23336
23339
|
}),
|
|
23337
23340
|
a.blockquote && /* @__PURE__ */ u($, {
|
|
23338
23341
|
onClick: () => n("formatBlock", "blockquote"),
|
|
23339
|
-
icon: /* @__PURE__ */ u(
|
|
23342
|
+
icon: /* @__PURE__ */ u(gl, { size: 14 }),
|
|
23340
23343
|
disabled: t,
|
|
23341
23344
|
title: "Quote"
|
|
23342
23345
|
})
|
|
@@ -23392,7 +23395,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23392
23395
|
onClick: h,
|
|
23393
23396
|
disabled: t,
|
|
23394
23397
|
className: `swe-btn ${t ? "swe-btn-disabled" : ""}`,
|
|
23395
|
-
children: [/* @__PURE__ */ u(
|
|
23398
|
+
children: [/* @__PURE__ */ u(Sl, {
|
|
23396
23399
|
size: 14,
|
|
23397
23400
|
className: "swe-text-primary-blue"
|
|
23398
23401
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -23403,7 +23406,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23403
23406
|
onClick: g,
|
|
23404
23407
|
disabled: t,
|
|
23405
23408
|
className: `swe-btn ${t ? "swe-btn-disabled" : ""}`,
|
|
23406
|
-
children: [/* @__PURE__ */ u(
|
|
23409
|
+
children: [/* @__PURE__ */ u(vl, {
|
|
23407
23410
|
size: 14,
|
|
23408
23411
|
className: "swe-text-primary-blue"
|
|
23409
23412
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -23548,7 +23551,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23548
23551
|
}, e))
|
|
23549
23552
|
})] }), document.body)
|
|
23550
23553
|
] });
|
|
23551
|
-
},
|
|
23554
|
+
}, Ml = ({ showHtml: t, tableConf: n, tableMenuRef: r, isTableMenuOpen: i, setIsTableMenuOpen: o, tableGridSize: f, setTableGridSize: p, handleInsertTable: m, mediaConf: h, imageInputRef: g, linkConf: _, execCommand: v, saveSelection: y, isLinkMenuOpen: b, setIsLinkMenuOpen: x, linkUrl: S, setLinkUrl: C }) => {
|
|
23552
23555
|
let [w, T] = s({
|
|
23553
23556
|
top: 0,
|
|
23554
23557
|
left: 0
|
|
@@ -23596,7 +23599,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23596
23599
|
height: "60px",
|
|
23597
23600
|
width: "52px"
|
|
23598
23601
|
},
|
|
23599
|
-
children: [/* @__PURE__ */ u(
|
|
23602
|
+
children: [/* @__PURE__ */ u(El, {
|
|
23600
23603
|
size: 22,
|
|
23601
23604
|
className: "swe-text-primary-blue"
|
|
23602
23605
|
}), /* @__PURE__ */ d("span", {
|
|
@@ -23657,7 +23660,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23657
23660
|
width: "52px"
|
|
23658
23661
|
},
|
|
23659
23662
|
title: "Insert Picture",
|
|
23660
|
-
children: [/* @__PURE__ */ u(
|
|
23663
|
+
children: [/* @__PURE__ */ u(il, {
|
|
23661
23664
|
size: 22,
|
|
23662
23665
|
className: "swe-text-primary-blue"
|
|
23663
23666
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -23683,7 +23686,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23683
23686
|
width: "52px"
|
|
23684
23687
|
},
|
|
23685
23688
|
title: "Insert Link",
|
|
23686
|
-
children: [/* @__PURE__ */ u(
|
|
23689
|
+
children: [/* @__PURE__ */ u(ll, {
|
|
23687
23690
|
size: 22,
|
|
23688
23691
|
className: "swe-text-primary-blue"
|
|
23689
23692
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -23735,7 +23738,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23735
23738
|
})]
|
|
23736
23739
|
})
|
|
23737
23740
|
] });
|
|
23738
|
-
},
|
|
23741
|
+
}, Nl = ({ showHtml: e, inputIndentLeft: t, setInputIndentLeft: n, inputIndentRight: r, setInputIndentRight: i, applyIndent: a, inputSpacingBefore: o, setInputSpacingBefore: s, inputSpacingAfter: c, setInputSpacingAfter: f, applySpacing: p, insertPageBreak: m, pagesConf: h }) => /* @__PURE__ */ d(l, { children: [h && !e && /* @__PURE__ */ d("div", {
|
|
23739
23742
|
className: "swe-toolbar-group",
|
|
23740
23743
|
children: [/* @__PURE__ */ d("button", {
|
|
23741
23744
|
onClick: m,
|
|
@@ -23746,7 +23749,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23746
23749
|
width: "52px"
|
|
23747
23750
|
},
|
|
23748
23751
|
title: "Page Break (Ctrl+Enter)",
|
|
23749
|
-
children: [/* @__PURE__ */ u(
|
|
23752
|
+
children: [/* @__PURE__ */ u(xl, {
|
|
23750
23753
|
size: 22,
|
|
23751
23754
|
className: "swe-text-primary-blue"
|
|
23752
23755
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -23854,7 +23857,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23854
23857
|
children: "Paragraph"
|
|
23855
23858
|
})
|
|
23856
23859
|
]
|
|
23857
|
-
})] }),
|
|
23860
|
+
})] }), Pl = [
|
|
23858
23861
|
"#ffffff",
|
|
23859
23862
|
"#000000",
|
|
23860
23863
|
"#eeece1",
|
|
@@ -23865,7 +23868,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23865
23868
|
"#8064a2",
|
|
23866
23869
|
"#4bacc6",
|
|
23867
23870
|
"#f79646"
|
|
23868
|
-
],
|
|
23871
|
+
], Fl = [
|
|
23869
23872
|
[
|
|
23870
23873
|
"#f2f2f2",
|
|
23871
23874
|
"#7f7f7f",
|
|
@@ -23926,7 +23929,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23926
23929
|
"#205867",
|
|
23927
23930
|
"#974806"
|
|
23928
23931
|
]
|
|
23929
|
-
],
|
|
23932
|
+
], Il = [
|
|
23930
23933
|
"#c00000",
|
|
23931
23934
|
"#ff0000",
|
|
23932
23935
|
"#ffc000",
|
|
@@ -23937,7 +23940,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
23937
23940
|
"#0070c0",
|
|
23938
23941
|
"#002060",
|
|
23939
23942
|
"#7030a0"
|
|
23940
|
-
],
|
|
23943
|
+
], Ll = ({ label: e, icon: t, onSelect: n, disabled: r, onOpen: a, variant: l = "big", activeColor: f }) => {
|
|
23941
23944
|
let [p, m] = s(!1), [h, g] = s(null), _ = o(null), v = o(null), [y, b] = s("#000000"), x = o(null), S = (e) => {
|
|
23942
23945
|
e.preventDefault(), !r && (p ? m(!1) : (a?.(), m(!0)));
|
|
23943
23946
|
};
|
|
@@ -24020,12 +24023,12 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24020
24023
|
className: "swe-flex-col",
|
|
24021
24024
|
children: [/* @__PURE__ */ u("div", {
|
|
24022
24025
|
className: "swe-flex",
|
|
24023
|
-
children:
|
|
24026
|
+
children: Pl.map((e) => /* @__PURE__ */ u("div", {
|
|
24024
24027
|
onMouseDown: (t) => C(t, e),
|
|
24025
24028
|
className: "swe-color-swatch",
|
|
24026
24029
|
style: { backgroundColor: e }
|
|
24027
24030
|
}, e))
|
|
24028
|
-
}),
|
|
24031
|
+
}), Fl.map((e, t) => /* @__PURE__ */ u("div", {
|
|
24029
24032
|
className: "swe-flex",
|
|
24030
24033
|
children: e.map((e) => /* @__PURE__ */ u("div", {
|
|
24031
24034
|
onMouseDown: (t) => C(t, e),
|
|
@@ -24042,7 +24045,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24042
24045
|
children: "Standard Colors"
|
|
24043
24046
|
}), /* @__PURE__ */ u("div", {
|
|
24044
24047
|
className: "swe-flex",
|
|
24045
|
-
children:
|
|
24048
|
+
children: Il.map((e) => /* @__PURE__ */ u("div", {
|
|
24046
24049
|
onMouseDown: (t) => C(t, e),
|
|
24047
24050
|
className: "swe-color-swatch",
|
|
24048
24051
|
style: { backgroundColor: e },
|
|
@@ -24059,7 +24062,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24059
24062
|
/* @__PURE__ */ d("button", {
|
|
24060
24063
|
onMouseDown: (e) => C(e, null),
|
|
24061
24064
|
className: "swe-color-btn-action",
|
|
24062
|
-
children: [/* @__PURE__ */ u(
|
|
24065
|
+
children: [/* @__PURE__ */ u(tl, {
|
|
24063
24066
|
size: 14,
|
|
24064
24067
|
className: "swe-text-gray-400"
|
|
24065
24068
|
}), /* @__PURE__ */ u("span", { children: "No Color" })]
|
|
@@ -24116,7 +24119,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24116
24119
|
]
|
|
24117
24120
|
}), document.body)]
|
|
24118
24121
|
});
|
|
24119
|
-
},
|
|
24122
|
+
}, Rl = ({ showHtml: e, activeTableCell: t, handleTableAction: n, saveSelection: r }) => {
|
|
24120
24123
|
if (!t || e) return null;
|
|
24121
24124
|
let i = (e) => {
|
|
24122
24125
|
let n = `padding${e}`, r = t.style[n];
|
|
@@ -24187,7 +24190,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24187
24190
|
children: [
|
|
24188
24191
|
/* @__PURE__ */ u($, {
|
|
24189
24192
|
onClick: () => n("deleteRow"),
|
|
24190
|
-
icon: /* @__PURE__ */ u(
|
|
24193
|
+
icon: /* @__PURE__ */ u(Dl, {
|
|
24191
24194
|
size: 14,
|
|
24192
24195
|
className: "swe-text-red-500"
|
|
24193
24196
|
}),
|
|
@@ -24196,7 +24199,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24196
24199
|
}),
|
|
24197
24200
|
/* @__PURE__ */ u($, {
|
|
24198
24201
|
onClick: () => n("deleteCol"),
|
|
24199
|
-
icon: /* @__PURE__ */ u(
|
|
24202
|
+
icon: /* @__PURE__ */ u(Dl, {
|
|
24200
24203
|
size: 14,
|
|
24201
24204
|
className: "swe-text-red-500"
|
|
24202
24205
|
}),
|
|
@@ -24205,7 +24208,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24205
24208
|
}),
|
|
24206
24209
|
/* @__PURE__ */ u($, {
|
|
24207
24210
|
onClick: () => n("deleteTable"),
|
|
24208
|
-
icon: /* @__PURE__ */ u(
|
|
24211
|
+
icon: /* @__PURE__ */ u(Dl, {
|
|
24209
24212
|
size: 14,
|
|
24210
24213
|
className: "swe-text-red-700"
|
|
24211
24214
|
}),
|
|
@@ -24235,7 +24238,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24235
24238
|
className: "swe-flex swe-gap-1",
|
|
24236
24239
|
children: /* @__PURE__ */ u($, {
|
|
24237
24240
|
onClick: () => n("mergeCells"),
|
|
24238
|
-
icon: /* @__PURE__ */ u(
|
|
24241
|
+
icon: /* @__PURE__ */ u($c, {
|
|
24239
24242
|
size: 14,
|
|
24240
24243
|
className: "swe-text-primary-blue"
|
|
24241
24244
|
}),
|
|
@@ -24255,7 +24258,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24255
24258
|
children: [
|
|
24256
24259
|
/* @__PURE__ */ u($, {
|
|
24257
24260
|
onClick: () => n("mergeRight"),
|
|
24258
|
-
icon: /* @__PURE__ */ u(
|
|
24261
|
+
icon: /* @__PURE__ */ u($c, {
|
|
24259
24262
|
size: 14,
|
|
24260
24263
|
className: "swe-text-primary-blue"
|
|
24261
24264
|
}),
|
|
@@ -24265,7 +24268,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24265
24268
|
onClick: () => n("mergeDown"),
|
|
24266
24269
|
icon: /* @__PURE__ */ u("div", {
|
|
24267
24270
|
style: { transform: "rotate(90deg)" },
|
|
24268
|
-
children: /* @__PURE__ */ u(
|
|
24271
|
+
children: /* @__PURE__ */ u($c, {
|
|
24269
24272
|
size: 14,
|
|
24270
24273
|
className: "swe-text-primary-blue"
|
|
24271
24274
|
})
|
|
@@ -24274,7 +24277,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24274
24277
|
}),
|
|
24275
24278
|
/* @__PURE__ */ u($, {
|
|
24276
24279
|
onClick: () => n("splitCell"),
|
|
24277
|
-
icon: /* @__PURE__ */ u(
|
|
24280
|
+
icon: /* @__PURE__ */ u(Cl, {
|
|
24278
24281
|
size: 14,
|
|
24279
24282
|
className: "swe-text-primary-blue"
|
|
24280
24283
|
}),
|
|
@@ -24329,9 +24332,9 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24329
24332
|
/* @__PURE__ */ u("div", { className: "swe-divider-v" }),
|
|
24330
24333
|
/* @__PURE__ */ u("div", {
|
|
24331
24334
|
className: "swe-flex swe-gap-1",
|
|
24332
|
-
children: /* @__PURE__ */ u(
|
|
24335
|
+
children: /* @__PURE__ */ u(Ll, {
|
|
24333
24336
|
label: "Shading",
|
|
24334
|
-
icon: /* @__PURE__ */ u(
|
|
24337
|
+
icon: /* @__PURE__ */ u(ml, {
|
|
24335
24338
|
size: 16,
|
|
24336
24339
|
className: "swe-text-primary-blue"
|
|
24337
24340
|
}),
|
|
@@ -24471,7 +24474,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24471
24474
|
onClick: () => n("borderAll"),
|
|
24472
24475
|
className: "swe-btn-icon",
|
|
24473
24476
|
title: "All Borders",
|
|
24474
|
-
children: /* @__PURE__ */ u(
|
|
24477
|
+
children: /* @__PURE__ */ u(wl, {
|
|
24475
24478
|
size: 12,
|
|
24476
24479
|
style: { opacity: .6 }
|
|
24477
24480
|
})
|
|
@@ -24480,7 +24483,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24480
24483
|
onClick: () => n("borderNone"),
|
|
24481
24484
|
className: "swe-btn-icon",
|
|
24482
24485
|
title: "No Borders",
|
|
24483
|
-
children: /* @__PURE__ */ u(
|
|
24486
|
+
children: /* @__PURE__ */ u(fl, {
|
|
24484
24487
|
size: 12,
|
|
24485
24488
|
className: "swe-text-gray-400"
|
|
24486
24489
|
})
|
|
@@ -24496,7 +24499,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24496
24499
|
})]
|
|
24497
24500
|
})
|
|
24498
24501
|
] });
|
|
24499
|
-
},
|
|
24502
|
+
}, zl = ({ showHtml: e, activeImage: t, imageWidth: n, handleImageWidthChange: r, handleImageAction: i }) => /* @__PURE__ */ u(l, { children: t && !e && /* @__PURE__ */ u("div", {
|
|
24500
24503
|
className: "swe-flex swe-items-center swe-gap-1",
|
|
24501
24504
|
children: /* @__PURE__ */ u("div", {
|
|
24502
24505
|
className: "swe-toolbar-group swe-toolbar-group-green",
|
|
@@ -24591,7 +24594,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24591
24594
|
style: { paddingLeft: "8px" },
|
|
24592
24595
|
children: [/* @__PURE__ */ u($, {
|
|
24593
24596
|
onClick: () => i("delete"),
|
|
24594
|
-
icon: /* @__PURE__ */ u(
|
|
24597
|
+
icon: /* @__PURE__ */ u(Dl, {
|
|
24595
24598
|
size: 18,
|
|
24596
24599
|
className: "swe-text-red-500"
|
|
24597
24600
|
}),
|
|
@@ -24610,20 +24613,21 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24610
24613
|
]
|
|
24611
24614
|
})
|
|
24612
24615
|
})
|
|
24613
|
-
}) }),
|
|
24614
|
-
let
|
|
24616
|
+
}) }), Bl = ({ onSave: e, onSaveAsDocs: t, onPrint: n, toggleHtmlView: r, activeStyles: i, showHtml: a, execCommand: o, onImportWord: s, pluginContributions: c = [], fonts: f, sizes: p, fileConf: m }) => {
|
|
24617
|
+
let h = (e) => c.filter((t) => t.groupId === e).map((t, n) => /* @__PURE__ */ u(t.component, {
|
|
24615
24618
|
execCommand: o,
|
|
24616
24619
|
activeStyles: i,
|
|
24617
24620
|
showHtml: a,
|
|
24618
24621
|
toggleHtmlView: r,
|
|
24619
24622
|
onImportWord: s,
|
|
24620
24623
|
fonts: f,
|
|
24621
|
-
sizes: p
|
|
24622
|
-
|
|
24623
|
-
|
|
24624
|
+
sizes: p,
|
|
24625
|
+
fileConf: m
|
|
24626
|
+
}, `file-plugin-${e}-${n}`)), g = !m || m.print !== !1, _ = !m || m.save !== !1, v = !m || m.saveAs !== !1, y = !m || m.html !== !1, b = g || _ || v || y;
|
|
24627
|
+
return !b && c.filter((e) => e.groupId === "insert").length === 0 ? null : /* @__PURE__ */ d(l, { children: [b && /* @__PURE__ */ d("div", {
|
|
24624
24628
|
className: "swe-toolbar-group",
|
|
24625
24629
|
children: [
|
|
24626
|
-
/* @__PURE__ */ u("div", {
|
|
24630
|
+
g && /* @__PURE__ */ u("div", {
|
|
24627
24631
|
className: "swe-flex swe-justify-start",
|
|
24628
24632
|
children: /* @__PURE__ */ d("button", {
|
|
24629
24633
|
onClick: n,
|
|
@@ -24633,7 +24637,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24633
24637
|
height: "60px",
|
|
24634
24638
|
width: "52px"
|
|
24635
24639
|
},
|
|
24636
|
-
children: [/* @__PURE__ */ u(
|
|
24640
|
+
children: [/* @__PURE__ */ u(hl, {
|
|
24637
24641
|
size: 22,
|
|
24638
24642
|
className: "swe-text-primary-blue"
|
|
24639
24643
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -24642,10 +24646,10 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24642
24646
|
})]
|
|
24643
24647
|
})
|
|
24644
24648
|
}),
|
|
24645
|
-
/* @__PURE__ */ d("div", {
|
|
24649
|
+
(_ || v || y) && /* @__PURE__ */ d("div", {
|
|
24646
24650
|
className: "swe-flex-col swe-justify-center",
|
|
24647
24651
|
children: [
|
|
24648
|
-
/* @__PURE__ */ d("button", {
|
|
24652
|
+
_ && /* @__PURE__ */ d("button", {
|
|
24649
24653
|
onClick: e,
|
|
24650
24654
|
className: "swe-btn",
|
|
24651
24655
|
style: {
|
|
@@ -24653,7 +24657,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24653
24657
|
gap: "8px",
|
|
24654
24658
|
padding: "4px 8px"
|
|
24655
24659
|
},
|
|
24656
|
-
children: [/* @__PURE__ */ u(
|
|
24660
|
+
children: [/* @__PURE__ */ u(bl, {
|
|
24657
24661
|
size: 14,
|
|
24658
24662
|
className: "swe-text-primary-blue"
|
|
24659
24663
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -24661,7 +24665,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24661
24665
|
children: "Save"
|
|
24662
24666
|
})]
|
|
24663
24667
|
}),
|
|
24664
|
-
/* @__PURE__ */ d("button", {
|
|
24668
|
+
v && /* @__PURE__ */ d("button", {
|
|
24665
24669
|
onClick: t,
|
|
24666
24670
|
className: "swe-btn",
|
|
24667
24671
|
style: {
|
|
@@ -24669,7 +24673,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24669
24673
|
gap: "8px",
|
|
24670
24674
|
padding: "4px 8px"
|
|
24671
24675
|
},
|
|
24672
|
-
children: [/* @__PURE__ */ u(
|
|
24676
|
+
children: [/* @__PURE__ */ u(rl, {
|
|
24673
24677
|
size: 14,
|
|
24674
24678
|
className: "swe-text-primary-blue"
|
|
24675
24679
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -24677,7 +24681,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24677
24681
|
children: "Save As Docx"
|
|
24678
24682
|
})]
|
|
24679
24683
|
}),
|
|
24680
|
-
/* @__PURE__ */ d("button", {
|
|
24684
|
+
y && /* @__PURE__ */ d("button", {
|
|
24681
24685
|
onClick: r,
|
|
24682
24686
|
className: `swe-btn ${a ? "swe-btn-active" : ""}`,
|
|
24683
24687
|
style: {
|
|
@@ -24685,7 +24689,7 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24685
24689
|
gap: "8px",
|
|
24686
24690
|
padding: "4px 8px"
|
|
24687
24691
|
},
|
|
24688
|
-
children: [/* @__PURE__ */ u(
|
|
24692
|
+
children: [/* @__PURE__ */ u(nl, {
|
|
24689
24693
|
size: 14,
|
|
24690
24694
|
className: a ? "swe-text-primary-blue" : "swe-text-gray-400"
|
|
24691
24695
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -24695,17 +24699,17 @@ var Ac = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jc = (..
|
|
|
24695
24699
|
})
|
|
24696
24700
|
]
|
|
24697
24701
|
}),
|
|
24698
|
-
|
|
24702
|
+
h("insert"),
|
|
24699
24703
|
/* @__PURE__ */ u("div", {
|
|
24700
24704
|
className: "swe-toolbar-group-label",
|
|
24701
24705
|
children: "Document"
|
|
24702
24706
|
})
|
|
24703
24707
|
]
|
|
24704
|
-
}),
|
|
24708
|
+
}), h("custom")] });
|
|
24705
24709
|
};
|
|
24706
24710
|
//#endregion
|
|
24707
24711
|
//#region src/components/WordEditor/ribbon/tabs/HelpTab.tsx
|
|
24708
|
-
function
|
|
24712
|
+
function Vl() {
|
|
24709
24713
|
return /* @__PURE__ */ d("div", {
|
|
24710
24714
|
className: "swe-flex swe-items-center swe-h-full swe-gap-6",
|
|
24711
24715
|
style: {
|
|
@@ -24722,7 +24726,7 @@ function Bl() {
|
|
|
24722
24726
|
},
|
|
24723
24727
|
children: [/* @__PURE__ */ d("div", {
|
|
24724
24728
|
className: "swe-flex swe-items-center swe-gap-2 swe-mb-1",
|
|
24725
|
-
children: [/* @__PURE__ */ u(
|
|
24729
|
+
children: [/* @__PURE__ */ u(Zc, {
|
|
24726
24730
|
size: 16,
|
|
24727
24731
|
className: "swe-text-primary-blue"
|
|
24728
24732
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -24818,21 +24822,21 @@ function Bl() {
|
|
|
24818
24822
|
}
|
|
24819
24823
|
//#endregion
|
|
24820
24824
|
//#region src/components/WordEditor/WordEditor.tsx
|
|
24821
|
-
function
|
|
24825
|
+
function Hl(e, t) {
|
|
24822
24826
|
if (!e) return !1;
|
|
24823
24827
|
if (e === !0) return { ...t };
|
|
24824
24828
|
let n = { ...t };
|
|
24825
24829
|
for (let t in n) n[t] = !!e[t];
|
|
24826
24830
|
return n;
|
|
24827
24831
|
}
|
|
24828
|
-
var
|
|
24829
|
-
let C = o(null), w = o(null), T = o(null), E = o(null), D = o(null), O = o(null), k = o(null), A = o(null), j = o(null), M = t.trim(), N = o(M), [P, F] = s("Home"), I =
|
|
24832
|
+
var Ul = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave: a, toolbarOptions: f = {}, height: p = "100vh", className: m = "", initialPaddingLeft: h = 20, initialPaddingRight: g = 20, initialIndentLeft: _ = 0, initialIndentRight: v = 0, initialLineSpacing: y = "1.5", initialSpacingBefore: b = 0, initialSpacingAfter: x = 0, plugins: S = [] }) => {
|
|
24833
|
+
let C = o(null), w = o(null), T = o(null), E = o(null), D = o(null), O = o(null), k = o(null), A = o(null), j = o(null), M = t.trim(), N = o(M), [P, F] = s("Home"), I = Hl(f.clipboard ?? !0, {
|
|
24830
24834
|
paste: !0,
|
|
24831
24835
|
cut: !0,
|
|
24832
24836
|
copy: !0,
|
|
24833
24837
|
undo: !0,
|
|
24834
24838
|
redo: !0
|
|
24835
|
-
}), L =
|
|
24839
|
+
}), L = Hl(f.font ?? !0, {
|
|
24836
24840
|
family: !0,
|
|
24837
24841
|
size: !0,
|
|
24838
24842
|
bold: !0,
|
|
@@ -24844,7 +24848,7 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
24844
24848
|
highlight: !0,
|
|
24845
24849
|
color: !0,
|
|
24846
24850
|
clear: !0
|
|
24847
|
-
}), R = typeof f.font == "object" ? f.font : {}, z =
|
|
24851
|
+
}), R = typeof f.font == "object" ? f.font : {}, z = Hl(f.paragraph ?? !0, {
|
|
24848
24852
|
bullets: !0,
|
|
24849
24853
|
numbering: !0,
|
|
24850
24854
|
outdent: !0,
|
|
@@ -24855,11 +24859,24 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
24855
24859
|
alignJustify: !0,
|
|
24856
24860
|
lineSpacing: !0,
|
|
24857
24861
|
blockquote: !0
|
|
24858
|
-
}), B =
|
|
24862
|
+
}), B = Hl(f.editing ?? !0, {
|
|
24859
24863
|
find: !0,
|
|
24860
24864
|
replace: !0,
|
|
24861
|
-
lock: !0
|
|
24862
|
-
|
|
24865
|
+
lock: !0,
|
|
24866
|
+
source: !0
|
|
24867
|
+
}), ee = Hl(f.file ?? !0, {
|
|
24868
|
+
save: !0,
|
|
24869
|
+
saveAs: !0,
|
|
24870
|
+
print: !0,
|
|
24871
|
+
html: !0,
|
|
24872
|
+
import: !0
|
|
24873
|
+
}), te = !!(f.table ?? !0), ne = !!(f.link ?? !0), re = !!(f.media ?? !0), V = !!(f.pages ?? !0), H = f.help ?? !0, U = f.collapsible ?? !0, [W, G] = s(f.collapsed ?? !1);
|
|
24874
|
+
i(() => {
|
|
24875
|
+
f.collapsed !== void 0 && G(f.collapsed);
|
|
24876
|
+
}, [f.collapsed]), i(() => {
|
|
24877
|
+
!H && P === "Help" && F("Home");
|
|
24878
|
+
}, [H, P]);
|
|
24879
|
+
let [ie, ae] = s({
|
|
24863
24880
|
bold: !1,
|
|
24864
24881
|
italic: !1,
|
|
24865
24882
|
underline: !1,
|
|
@@ -24874,23 +24891,23 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
24874
24891
|
fontName: (R.family, "Arial"),
|
|
24875
24892
|
subscript: !1,
|
|
24876
24893
|
superscript: !1
|
|
24877
|
-
}), [
|
|
24894
|
+
}), [oe, se] = s(_), [ce, le] = s(v), [ue, de] = s(_.toString()), [K, fe] = s(v.toString()), [pe, me] = s(b.toString()), [he, ge] = s(x.toString()), [_e, ve] = s(null), [ye, be] = s(!1), [xe, Se] = s(!1), [Ce, we] = s("https://"), [Te, Ee] = s(null), [De, Oe] = s({
|
|
24878
24895
|
top: 0,
|
|
24879
24896
|
left: 0
|
|
24880
|
-
}), [
|
|
24897
|
+
}), [q, ke] = s({
|
|
24881
24898
|
r: 0,
|
|
24882
24899
|
c: 0
|
|
24883
|
-
}), [
|
|
24900
|
+
}), [Ae, je] = s(null), [Me, Ne] = s(null), [Pe, Fe] = s(100), [Ie, Le] = s(!1), [Re, ze] = s(M), [Be, Ve] = s(0), [He, Ue] = s(0), [We, Ge] = s(!1), [J, Ke] = s(""), [qe, Je] = s(""), [Ye, Xe] = s("find"), [Ze, Qe] = s(!1), [$e, et] = s({
|
|
24884
24901
|
message: "",
|
|
24885
24902
|
type: null
|
|
24886
|
-
}), [
|
|
24903
|
+
}), [tt, nt] = s([]), rt = r(() => {
|
|
24887
24904
|
if (!J || !C.current) {
|
|
24888
|
-
|
|
24905
|
+
nt([]);
|
|
24889
24906
|
return;
|
|
24890
24907
|
}
|
|
24891
|
-
let e = C.current, t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT, null), n = [], r =
|
|
24908
|
+
let e = C.current, t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT, null), n = [], r = Ze ? J : J.toLowerCase(), i = t.nextNode();
|
|
24892
24909
|
for (; i;) {
|
|
24893
|
-
let e = i.textContent || "", a =
|
|
24910
|
+
let e = i.textContent || "", a = Ze ? e : e.toLowerCase(), o = a.indexOf(r);
|
|
24894
24911
|
for (; o !== -1;) {
|
|
24895
24912
|
let t = Math.max(0, o - 20), s = Math.min(e.length, o + J.length + 20), c = e.substring(t, s);
|
|
24896
24913
|
n.push({
|
|
@@ -24904,23 +24921,23 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
24904
24921
|
}
|
|
24905
24922
|
i = t.nextNode();
|
|
24906
24923
|
}
|
|
24907
|
-
return
|
|
24908
|
-
}, [J,
|
|
24924
|
+
return nt(n), n;
|
|
24925
|
+
}, [J, Ze]);
|
|
24909
24926
|
i(() => {
|
|
24910
|
-
|
|
24927
|
+
et({
|
|
24911
24928
|
message: "",
|
|
24912
24929
|
type: null
|
|
24913
24930
|
});
|
|
24914
24931
|
let e = setTimeout(() => {
|
|
24915
|
-
|
|
24932
|
+
Ye === "find" && rt();
|
|
24916
24933
|
}, 300);
|
|
24917
24934
|
return () => clearTimeout(e);
|
|
24918
24935
|
}, [
|
|
24919
24936
|
J,
|
|
24920
|
-
|
|
24921
|
-
|
|
24937
|
+
rt,
|
|
24938
|
+
Ye
|
|
24922
24939
|
]);
|
|
24923
|
-
let [
|
|
24940
|
+
let [it] = s(M), at = (e) => e * 25.4 / 96, ot = e.useCallback(() => {
|
|
24924
24941
|
if (!C.current) return;
|
|
24925
24942
|
let e = C.current, t = !1;
|
|
24926
24943
|
return Array.from(e.childNodes).forEach((n) => {
|
|
@@ -24930,10 +24947,10 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
24930
24947
|
e.insertBefore(r, n), r.appendChild(n), t = !0;
|
|
24931
24948
|
}
|
|
24932
24949
|
}), t;
|
|
24933
|
-
}, []),
|
|
24950
|
+
}, []), st = e.useCallback(() => {
|
|
24934
24951
|
let e = window.getSelection();
|
|
24935
24952
|
e && e.rangeCount > 0 && (A.current = e.getRangeAt(0).cloneRange());
|
|
24936
|
-
}, []),
|
|
24953
|
+
}, []), ct = e.useCallback(() => {
|
|
24937
24954
|
if (!C.current) return;
|
|
24938
24955
|
let e = window.getSelection();
|
|
24939
24956
|
if (!e || e.rangeCount === 0) return;
|
|
@@ -24974,30 +24991,30 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
24974
24991
|
let t = document.createRange();
|
|
24975
24992
|
t.setStart(n, r), t.collapse(!0), e.removeAllRanges(), e.addRange(t);
|
|
24976
24993
|
} catch {}
|
|
24977
|
-
}, []),
|
|
24994
|
+
}, []), lt = e.useCallback(() => {
|
|
24978
24995
|
if (!C.current) return;
|
|
24979
24996
|
let e = (C.current.innerText || C.current.textContent || "").replace(/\u200B/g, "");
|
|
24980
|
-
|
|
24997
|
+
Ue(e.length), Ve(e.trim().split(/\s+/).filter((e) => e.length > 0).length);
|
|
24981
24998
|
}, []);
|
|
24982
24999
|
i(() => {
|
|
24983
|
-
|
|
24984
|
-
}, [
|
|
25000
|
+
lt();
|
|
25001
|
+
}, [lt]);
|
|
24985
25002
|
let Y = e.useCallback(() => {
|
|
24986
|
-
if (!C.current ||
|
|
25003
|
+
if (!C.current || Ie) return;
|
|
24987
25004
|
let e = C.current.innerHTML;
|
|
24988
|
-
e !== N.current && (N.current = e, n?.(e),
|
|
25005
|
+
e !== N.current && (N.current = e, n?.(e), lt());
|
|
24989
25006
|
}, [
|
|
24990
25007
|
n,
|
|
24991
|
-
|
|
24992
|
-
|
|
24993
|
-
]),
|
|
25008
|
+
Ie,
|
|
25009
|
+
lt
|
|
25010
|
+
]), ut = e.useCallback(() => {
|
|
24994
25011
|
if (!document.queryCommandState || !C.current) return;
|
|
24995
25012
|
let e = document.queryCommandState("subscript"), t = document.queryCommandState("superscript"), n = window.getSelection();
|
|
24996
25013
|
if (n && n.rangeCount > 0) {
|
|
24997
25014
|
let r = n.anchorNode, i = r?.nodeType === 3 ? r.parentElement : r;
|
|
24998
25015
|
i && C.current.contains(i) && (i.closest("sub") && (e = !0), i.closest("sup") && (t = !0));
|
|
24999
25016
|
}
|
|
25000
|
-
if (
|
|
25017
|
+
if (ae({
|
|
25001
25018
|
bold: document.queryCommandState("bold"),
|
|
25002
25019
|
italic: document.queryCommandState("italic"),
|
|
25003
25020
|
underline: document.queryCommandState("underline"),
|
|
@@ -25019,30 +25036,30 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25019
25036
|
if (t && C.current.contains(t)) {
|
|
25020
25037
|
let e = t.closest("ul,ol,p,div,h1,h2,h3,h4,h5,h6");
|
|
25021
25038
|
if (e && C.current.contains(e)) {
|
|
25022
|
-
let t = window.getComputedStyle(e), n = t.marginLeft, r = t.marginRight, i = t.marginTop, a = t.marginBottom, o = (e) => e.endsWith("mm") ? parseFloat(e) : e.endsWith("px") ?
|
|
25023
|
-
|
|
25039
|
+
let t = window.getComputedStyle(e), n = t.marginLeft, r = t.marginRight, i = t.marginTop, a = t.marginBottom, o = (e) => e.endsWith("mm") ? parseFloat(e) : e.endsWith("px") ? at(parseFloat(e)) : 0, s = (e) => e.endsWith("pt") ? parseFloat(e) : e.endsWith("px") ? Math.round(parseFloat(e) * .75) : 0, c = o(n), l = o(r);
|
|
25040
|
+
se(c), le(l), document.activeElement?.getAttribute("data-field") !== "indentLeft" && de(Math.round(c).toString()), document.activeElement?.getAttribute("data-field") !== "indentRight" && fe(Math.round(l).toString());
|
|
25024
25041
|
let u = s(i), d = s(a);
|
|
25025
|
-
document.activeElement?.getAttribute("data-field") !== "spacingBefore" &&
|
|
25042
|
+
document.activeElement?.getAttribute("data-field") !== "spacingBefore" && me(u.toString()), document.activeElement?.getAttribute("data-field") !== "spacingAfter" && ge(d.toString());
|
|
25026
25043
|
}
|
|
25027
|
-
|
|
25028
|
-
} else
|
|
25044
|
+
je(t.closest("td,th"));
|
|
25045
|
+
} else je(null);
|
|
25029
25046
|
}
|
|
25030
25047
|
}, []);
|
|
25031
25048
|
i(() => {
|
|
25032
|
-
C.current && (C.current.innerHTML =
|
|
25033
|
-
}, [
|
|
25034
|
-
!
|
|
25035
|
-
}, [
|
|
25036
|
-
let [
|
|
25049
|
+
C.current && (C.current.innerHTML = it, N.current = it), document.execCommand("defaultParagraphSeparator", !1, "p");
|
|
25050
|
+
}, [it]), i(() => {
|
|
25051
|
+
!Ie && C.current && (C.current.innerHTML = N.current);
|
|
25052
|
+
}, [Ie]);
|
|
25053
|
+
let [dt, ft] = s(!1), [pt, mt] = s(null);
|
|
25037
25054
|
i(() => {
|
|
25038
25055
|
let e = (e) => {
|
|
25039
25056
|
let t = e.target.closest("td, th");
|
|
25040
|
-
t && C.current?.contains(t) ? (
|
|
25057
|
+
t && C.current?.contains(t) ? (ft(!0), mt(t), e.shiftKey || (C.current.querySelectorAll("td[data-selected], th[data-selected]").forEach((e) => e.removeAttribute("data-selected")), t.setAttribute("data-selected", "true"))) : (ft(!1), mt(null));
|
|
25041
25058
|
}, t = (e) => {
|
|
25042
|
-
if (!
|
|
25059
|
+
if (!dt || !pt || !C.current) return;
|
|
25043
25060
|
let t = e.target.closest("td, th");
|
|
25044
25061
|
if (!t || !C.current.contains(t)) return;
|
|
25045
|
-
let n =
|
|
25062
|
+
let n = pt.closest("table");
|
|
25046
25063
|
if (!n || n !== t.closest("table")) return;
|
|
25047
25064
|
let r = n.tBodies[0], i = (() => {
|
|
25048
25065
|
let e = [];
|
|
@@ -25059,7 +25076,7 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25059
25076
|
})(), a = -1, o = -1, s = -1, c = -1;
|
|
25060
25077
|
if (i.forEach((e, n) => {
|
|
25061
25078
|
e.forEach((e, r) => {
|
|
25062
|
-
e ===
|
|
25079
|
+
e === pt && (a = n, o = r), e === t && (s = n, c = r);
|
|
25063
25080
|
});
|
|
25064
25081
|
}), a !== -1 && s !== -1) {
|
|
25065
25082
|
let e = Math.min(a, s), t = Math.max(a, s), r = Math.min(o, c), l = Math.max(o, c);
|
|
@@ -25067,17 +25084,17 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25067
25084
|
for (let n = e; n <= t; n++) for (let e = r; e <= l; e++) i[n]?.[e]?.setAttribute("data-selected", "true");
|
|
25068
25085
|
}
|
|
25069
25086
|
}, n = () => {
|
|
25070
|
-
|
|
25087
|
+
ft(!1), mt(null);
|
|
25071
25088
|
};
|
|
25072
25089
|
return document.addEventListener("mousedown", e), document.addEventListener("mousemove", t), document.addEventListener("mouseup", n), () => {
|
|
25073
25090
|
document.removeEventListener("mousedown", e), document.removeEventListener("mousemove", t), document.removeEventListener("mouseup", n);
|
|
25074
25091
|
};
|
|
25075
|
-
}, [
|
|
25092
|
+
}, [dt, pt]), i(() => {
|
|
25076
25093
|
let e = () => {
|
|
25077
25094
|
setTimeout(() => {
|
|
25078
|
-
|
|
25095
|
+
ut();
|
|
25079
25096
|
let e = window.getSelection();
|
|
25080
|
-
if (e && e.rangeCount > 0 && C.current?.contains(e.anchorNode) && (A.current = e.getRangeAt(0).cloneRange(), !
|
|
25097
|
+
if (e && e.rangeCount > 0 && C.current?.contains(e.anchorNode) && (A.current = e.getRangeAt(0).cloneRange(), !dt)) {
|
|
25081
25098
|
let t = C.current;
|
|
25082
25099
|
if (t) if (t.querySelectorAll("td[data-selected], th[data-selected]").forEach((e) => e.removeAttribute("data-selected")), !e.getRangeAt(0).collapsed) t.querySelectorAll("table").forEach((t) => {
|
|
25083
25100
|
t.querySelectorAll("td, th").forEach((t) => {
|
|
@@ -25092,21 +25109,21 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25092
25109
|
}, 10);
|
|
25093
25110
|
};
|
|
25094
25111
|
return document.addEventListener("selectionchange", e), () => document.removeEventListener("selectionchange", e);
|
|
25095
|
-
}, [
|
|
25112
|
+
}, [dt, ut]), i(() => {
|
|
25096
25113
|
let e = (e) => {
|
|
25097
|
-
j.current && !j.current.contains(e.target) && (
|
|
25114
|
+
j.current && !j.current.contains(e.target) && (be(!1), ke({
|
|
25098
25115
|
r: 0,
|
|
25099
25116
|
c: 0
|
|
25100
25117
|
}));
|
|
25101
25118
|
};
|
|
25102
25119
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
25103
25120
|
}, []);
|
|
25104
|
-
let
|
|
25121
|
+
let ht = e.useCallback((e, t) => {
|
|
25105
25122
|
let n = window.getSelection(), r = n && n.rangeCount > 0 ? n.getRangeAt(0) : null;
|
|
25106
25123
|
if ((!r || !C.current?.contains(r.commonAncestorContainer)) && (r = A.current), !r) return;
|
|
25107
25124
|
let i = r.startContainer, a = (i.nodeType === 3 ? i.parentNode : i).closest("ul,ol,p,div,h1,h2,h3,h4,h5,h6");
|
|
25108
25125
|
a && C.current?.contains(a) && (a.style[e === "left" ? "marginLeft" : "marginRight"] = `${t}mm`, Y());
|
|
25109
|
-
}, [Y]),
|
|
25126
|
+
}, [Y]), gt = e.useCallback((e, t) => {
|
|
25110
25127
|
let n = window.getSelection(), r = n && n.rangeCount > 0 ? n.getRangeAt(0) : null;
|
|
25111
25128
|
if ((!r || !C.current?.contains(r.commonAncestorContainer)) && (r = A.current), !r) return;
|
|
25112
25129
|
let i = r.startContainer, a = (i.nodeType === 3 ? i.parentNode : i).closest("ul,ol,p,div,h1,h2,h3,h4,h5,h6");
|
|
@@ -25114,26 +25131,26 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25114
25131
|
}, [Y]);
|
|
25115
25132
|
i(() => {
|
|
25116
25133
|
let e = (e) => {
|
|
25117
|
-
if (!
|
|
25134
|
+
if (!_e || !w.current) return;
|
|
25118
25135
|
let t = w.current.getBoundingClientRect(), n = 210 / t.width, r = (e.clientX - t.left) * n;
|
|
25119
|
-
if (
|
|
25120
|
-
let e = Math.max(-20, Math.min(r - 20, 170 -
|
|
25121
|
-
|
|
25136
|
+
if (_e === "left") {
|
|
25137
|
+
let e = Math.max(-20, Math.min(r - 20, 170 - ce - 5));
|
|
25138
|
+
se(e), ht("left", e);
|
|
25122
25139
|
} else {
|
|
25123
|
-
let e = Math.max(-20, Math.min(210 - r - 20, 170 -
|
|
25124
|
-
|
|
25140
|
+
let e = Math.max(-20, Math.min(210 - r - 20, 170 - oe - 5));
|
|
25141
|
+
le(e), ht("right", e);
|
|
25125
25142
|
}
|
|
25126
|
-
}, t = () =>
|
|
25127
|
-
return
|
|
25143
|
+
}, t = () => ve(null);
|
|
25144
|
+
return _e ? (document.body.style.cursor = "ew-resize", window.addEventListener("mousemove", e), window.addEventListener("mouseup", t)) : document.body.style.cursor = "default", () => {
|
|
25128
25145
|
window.removeEventListener("mousemove", e), window.removeEventListener("mouseup", t);
|
|
25129
25146
|
};
|
|
25130
25147
|
}, [
|
|
25131
|
-
|
|
25132
|
-
|
|
25133
|
-
|
|
25134
|
-
|
|
25148
|
+
_e,
|
|
25149
|
+
oe,
|
|
25150
|
+
ce,
|
|
25151
|
+
ht
|
|
25135
25152
|
]);
|
|
25136
|
-
let
|
|
25153
|
+
let _t = (e, t = null) => {
|
|
25137
25154
|
if (C.current) {
|
|
25138
25155
|
if (e === "removeFormat") {
|
|
25139
25156
|
let e = window.getSelection(), t = null;
|
|
@@ -25219,7 +25236,7 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25219
25236
|
if (e) {
|
|
25220
25237
|
let t = document.createDocumentFragment();
|
|
25221
25238
|
for (; a.firstChild;) t.appendChild(a.firstChild);
|
|
25222
|
-
e.replaceChild(t, a),
|
|
25239
|
+
e.replaceChild(t, a), ut(), Y();
|
|
25223
25240
|
return;
|
|
25224
25241
|
}
|
|
25225
25242
|
}
|
|
@@ -25227,9 +25244,9 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25227
25244
|
}
|
|
25228
25245
|
document.execCommand(n, !1, t ?? "");
|
|
25229
25246
|
}
|
|
25230
|
-
|
|
25247
|
+
ut(), Y();
|
|
25231
25248
|
}
|
|
25232
|
-
},
|
|
25249
|
+
}, vt = async () => {
|
|
25233
25250
|
try {
|
|
25234
25251
|
let e = await navigator.clipboard.read();
|
|
25235
25252
|
for (let t of e) if (t.types.includes("text/html")) {
|
|
@@ -25249,26 +25266,55 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25249
25266
|
document.execCommand("paste");
|
|
25250
25267
|
}
|
|
25251
25268
|
}
|
|
25252
|
-
C.current?.focus(),
|
|
25253
|
-
},
|
|
25269
|
+
C.current?.focus(), ut(), Y();
|
|
25270
|
+
}, X = (e) => {
|
|
25254
25271
|
if (!C.current) return;
|
|
25255
|
-
|
|
25256
|
-
|
|
25257
|
-
|
|
25272
|
+
let t = A.current, n = window.getSelection();
|
|
25273
|
+
if (n && n.rangeCount > 0) {
|
|
25274
|
+
let e = n.getRangeAt(0);
|
|
25275
|
+
C.current.contains(e.commonAncestorContainer) && (t = e);
|
|
25258
25276
|
}
|
|
25259
|
-
|
|
25260
|
-
|
|
25261
|
-
|
|
25277
|
+
if (!t) return;
|
|
25278
|
+
let r = [];
|
|
25279
|
+
if (t.collapsed) {
|
|
25280
|
+
let e = t.commonAncestorContainer, n = (e.nodeType === 3 ? e.parentNode : e)?.closest?.("p,div,li,h1,h2,h3,h4,h5,h6,blockquote");
|
|
25281
|
+
n && C.current.contains(n) && n !== C.current && r.push(n);
|
|
25282
|
+
} else r = Array.from(C.current.querySelectorAll("p,div,li,h1,h2,h3,h4,h5,h6,blockquote")).filter((e) => {
|
|
25283
|
+
let n = e;
|
|
25284
|
+
return n === C.current || !t.intersectsNode(n) ? !1 : !Array.from(n.querySelectorAll("p,div,li,h1,h2,h3,h4,h5,h6,blockquote")).some((e) => t.intersectsNode(e));
|
|
25285
|
+
});
|
|
25286
|
+
if (r.length > 0) r.forEach((t) => {
|
|
25287
|
+
t.style.lineHeight = e;
|
|
25288
|
+
});
|
|
25289
|
+
else {
|
|
25290
|
+
let n = t.commonAncestorContainer, r = n.nodeType === 3 ? n.parentNode : n;
|
|
25291
|
+
r && C.current.contains(r) && r !== C.current && (r.style.lineHeight = e);
|
|
25292
|
+
}
|
|
25293
|
+
n && (n.removeAllRanges(), n.addRange(t)), C.current.focus(), Y();
|
|
25294
|
+
}, yt = (e) => {
|
|
25262
25295
|
if (!C.current) return;
|
|
25263
25296
|
let t = window.getSelection();
|
|
25264
25297
|
if (t && t.rangeCount > 0) {
|
|
25265
25298
|
let n = t.getRangeAt(0).commonAncestorContainer, r = (n.nodeType === 3 ? n.parentElement : n)?.closest("ol, ul");
|
|
25299
|
+
if (!r) {
|
|
25300
|
+
let t = [
|
|
25301
|
+
"disc",
|
|
25302
|
+
"circle",
|
|
25303
|
+
"square"
|
|
25304
|
+
].includes(e) ? "insertUnorderedList" : "insertOrderedList";
|
|
25305
|
+
document.execCommand(t, !1);
|
|
25306
|
+
let n = window.getSelection();
|
|
25307
|
+
if (n && n.rangeCount > 0) {
|
|
25308
|
+
let e = n.getRangeAt(0).commonAncestorContainer;
|
|
25309
|
+
r = (e.nodeType === 3 ? e.parentElement : e)?.closest("ol, ul");
|
|
25310
|
+
}
|
|
25311
|
+
}
|
|
25266
25312
|
r && C.current.contains(r) && (r.style.listStyleType = e);
|
|
25267
25313
|
}
|
|
25268
25314
|
C.current.focus(), Y();
|
|
25269
|
-
},
|
|
25315
|
+
}, bt = (e, t) => {
|
|
25270
25316
|
if (!e || !t) return;
|
|
25271
|
-
let n = !!
|
|
25317
|
+
let n = !!Ae, r = `<table border="1" style="border-collapse:collapse;width:100%;${n ? "margin:0" : "margin:10px 0"}"><tbody>`;
|
|
25272
25318
|
for (let n = 0; n < e; n++) {
|
|
25273
25319
|
r += "<tr>";
|
|
25274
25320
|
for (let e = 0; e < t; e++) r += "<td style=\"border:1px solid black;padding:8px;min-width:50px;resize:both;overflow:hidden;\">​</td>";
|
|
@@ -25276,15 +25322,15 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25276
25322
|
}
|
|
25277
25323
|
r += `</tbody></table>${n ? "" : "<p>​</p>"}`, C.current?.focus();
|
|
25278
25324
|
let i = window.getSelection();
|
|
25279
|
-
if (i && (i.removeAllRanges(), A.current && i.addRange(A.current)), n &&
|
|
25325
|
+
if (i && (i.removeAllRanges(), A.current && i.addRange(A.current)), n && Ae && (Ae.textContent || "").replace(/\u200B/g, "").trim() === "" && Ae.children.length === 0) {
|
|
25280
25326
|
let e = document.createRange();
|
|
25281
|
-
e.selectNodeContents(
|
|
25327
|
+
e.selectNodeContents(Ae), i?.removeAllRanges(), i?.addRange(e);
|
|
25282
25328
|
}
|
|
25283
|
-
document.execCommand("insertHTML", !1, r),
|
|
25329
|
+
document.execCommand("insertHTML", !1, r), be(!1), ke({
|
|
25284
25330
|
r: 0,
|
|
25285
25331
|
c: 0
|
|
25286
25332
|
}), Y();
|
|
25287
|
-
},
|
|
25333
|
+
}, xt = (e) => {
|
|
25288
25334
|
let t = window.getSelection();
|
|
25289
25335
|
if (!t) return;
|
|
25290
25336
|
let n = document.createRange();
|
|
@@ -25294,11 +25340,11 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25294
25340
|
behavior: "smooth",
|
|
25295
25341
|
block: "center"
|
|
25296
25342
|
}), C.current?.focus();
|
|
25297
|
-
},
|
|
25343
|
+
}, St = () => {
|
|
25298
25344
|
if (!J || !C.current) return;
|
|
25299
|
-
let e =
|
|
25345
|
+
let e = rt();
|
|
25300
25346
|
if (!e || e.length === 0) {
|
|
25301
|
-
|
|
25347
|
+
et({
|
|
25302
25348
|
message: `No matches found for "${J}"`,
|
|
25303
25349
|
type: "error"
|
|
25304
25350
|
});
|
|
@@ -25325,7 +25371,7 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25325
25371
|
s = a.nextNode();
|
|
25326
25372
|
}
|
|
25327
25373
|
return null;
|
|
25328
|
-
}, o = a(t, J,
|
|
25374
|
+
}, o = a(t, J, Ze, r, i) || a(t, J, Ze, t, 0);
|
|
25329
25375
|
if (o) {
|
|
25330
25376
|
let e = document.createRange();
|
|
25331
25377
|
e.setStart(o.node, o.start), e.setEnd(o.node, o.end), n.removeAllRanges(), n.addRange(e);
|
|
@@ -25335,11 +25381,11 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25335
25381
|
block: "center"
|
|
25336
25382
|
});
|
|
25337
25383
|
}
|
|
25338
|
-
},
|
|
25384
|
+
}, Ct = (e = !1) => {
|
|
25339
25385
|
if (!(!J || !C.current)) if (e) {
|
|
25340
|
-
let e = document.createTreeWalker(C.current, NodeFilter.SHOW_TEXT, null), t = 0, n = [], r =
|
|
25386
|
+
let e = document.createTreeWalker(C.current, NodeFilter.SHOW_TEXT, null), t = 0, n = [], r = Ze ? J : J.toLowerCase(), i = e.nextNode();
|
|
25341
25387
|
for (; i;) {
|
|
25342
|
-
let t = i.textContent || "", a =
|
|
25388
|
+
let t = i.textContent || "", a = Ze ? t : t.toLowerCase(), o = a.indexOf(r);
|
|
25343
25389
|
for (; o !== -1;) n.push({
|
|
25344
25390
|
node: i,
|
|
25345
25391
|
start: o,
|
|
@@ -25349,12 +25395,12 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25349
25395
|
}
|
|
25350
25396
|
for (let e = n.length - 1; e >= 0; e--) {
|
|
25351
25397
|
let r = n[e], i = r.node.textContent || "";
|
|
25352
|
-
r.node.textContent = i.substring(0, r.start) +
|
|
25398
|
+
r.node.textContent = i.substring(0, r.start) + qe + i.substring(r.end), t++;
|
|
25353
25399
|
}
|
|
25354
|
-
t > 0 ? (Y(),
|
|
25400
|
+
t > 0 ? (Y(), et({
|
|
25355
25401
|
message: `Successfully replaced ${t} occurrences.`,
|
|
25356
25402
|
type: "success"
|
|
25357
|
-
})) :
|
|
25403
|
+
})) : et({
|
|
25358
25404
|
message: "No matches found to replace.",
|
|
25359
25405
|
type: "error"
|
|
25360
25406
|
});
|
|
@@ -25362,10 +25408,10 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25362
25408
|
let e = window.getSelection();
|
|
25363
25409
|
if (e && e.rangeCount > 0) {
|
|
25364
25410
|
let t = e.getRangeAt(0).toString();
|
|
25365
|
-
(
|
|
25366
|
-
} else
|
|
25411
|
+
(Ze ? t === J : t.toLowerCase() === J.toLowerCase()) && document.execCommand("insertHTML", !1, qe), St();
|
|
25412
|
+
} else St();
|
|
25367
25413
|
}
|
|
25368
|
-
},
|
|
25414
|
+
}, wt = (e) => {
|
|
25369
25415
|
let t = e.target.files?.[0];
|
|
25370
25416
|
if (t) {
|
|
25371
25417
|
let e = new FileReader();
|
|
@@ -25374,43 +25420,43 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25374
25420
|
if (C.current && t) {
|
|
25375
25421
|
C.current.focus();
|
|
25376
25422
|
let e = window.getSelection();
|
|
25377
|
-
e && (e.removeAllRanges(), A.current && e.addRange(A.current)), document.execCommand("insertImage", !1, t),
|
|
25423
|
+
e && (e.removeAllRanges(), A.current && e.addRange(A.current)), document.execCommand("insertImage", !1, t), ut(), Y();
|
|
25378
25424
|
}
|
|
25379
25425
|
}, e.readAsDataURL(t);
|
|
25380
25426
|
}
|
|
25381
25427
|
e.target.value = "";
|
|
25382
|
-
},
|
|
25428
|
+
}, Tt = async (e) => {
|
|
25383
25429
|
let t = e.target.files?.[0];
|
|
25384
25430
|
if (t) {
|
|
25385
|
-
|
|
25431
|
+
et({
|
|
25386
25432
|
message: "Importing document...",
|
|
25387
25433
|
type: "info"
|
|
25388
25434
|
});
|
|
25389
25435
|
try {
|
|
25390
25436
|
let e = await t.arrayBuffer(), n = (await Oc.convertToHtml({ arrayBuffer: e })).value;
|
|
25391
|
-
C.current && (C.current.innerHTML = n, Y(),
|
|
25437
|
+
C.current && (C.current.innerHTML = n, Y(), et({
|
|
25392
25438
|
message: "Document imported successfully.",
|
|
25393
25439
|
type: "success"
|
|
25394
25440
|
}));
|
|
25395
25441
|
} catch (e) {
|
|
25396
|
-
console.error(e),
|
|
25442
|
+
console.error(e), et({
|
|
25397
25443
|
message: "Failed to import document.",
|
|
25398
25444
|
type: "error"
|
|
25399
25445
|
});
|
|
25400
25446
|
}
|
|
25401
25447
|
e.target.value = "";
|
|
25402
25448
|
}
|
|
25403
|
-
},
|
|
25449
|
+
}, Et = () => {
|
|
25404
25450
|
let e = window.getSelection();
|
|
25405
25451
|
if (!e || e.rangeCount === 0 || !C.current) return;
|
|
25406
|
-
let t = e.getRangeAt(0), n = C.current, r = Array.from(n.querySelectorAll(".locked-region"));
|
|
25452
|
+
let t = e.getRangeAt(0), n = C.current, r = Array.from(n.querySelectorAll(".locked-region, .swe-locked-region"));
|
|
25407
25453
|
if (r.find((t) => e.containsNode(t, !0))) {
|
|
25408
25454
|
r.forEach((t) => {
|
|
25409
25455
|
if (e.containsNode(t, !0)) if (t.tagName === "SPAN") {
|
|
25410
25456
|
let e = t.parentNode;
|
|
25411
25457
|
for (; t.firstChild;) e?.insertBefore(t.firstChild, t);
|
|
25412
25458
|
e?.removeChild(t);
|
|
25413
|
-
} else t.removeAttribute("contenteditable"), t.classList.remove("locked-region");
|
|
25459
|
+
} else t.removeAttribute("contenteditable"), t.classList.remove("locked-region", "swe-locked-region");
|
|
25414
25460
|
}), Y();
|
|
25415
25461
|
return;
|
|
25416
25462
|
}
|
|
@@ -25418,10 +25464,10 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25418
25464
|
let e = t.commonAncestorContainer;
|
|
25419
25465
|
e.nodeType === 3 && (e = e.parentElement);
|
|
25420
25466
|
let r = e.closest("p, div, li, h1, h2, h3, h4, h5, h6, blockquote");
|
|
25421
|
-
r && n.contains(r) && (r.setAttribute("contenteditable", "false"), r.classList.add("locked-region"));
|
|
25467
|
+
r && n.contains(r) && (r.setAttribute("contenteditable", "false"), r.classList.add("swe-locked-region"));
|
|
25422
25468
|
} else {
|
|
25423
25469
|
let e = document.createElement("span");
|
|
25424
|
-
e.setAttribute("contenteditable", "false"), e.className = "locked-region", e.title = "Locked Segment", e.style.userSelect = "all";
|
|
25470
|
+
e.setAttribute("contenteditable", "false"), e.className = "swe-locked-region", e.title = "Locked Segment", e.style.userSelect = "all";
|
|
25425
25471
|
try {
|
|
25426
25472
|
t.surroundContents(e);
|
|
25427
25473
|
} catch {
|
|
@@ -25430,15 +25476,15 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25430
25476
|
}
|
|
25431
25477
|
}
|
|
25432
25478
|
Y(), e.removeAllRanges();
|
|
25433
|
-
},
|
|
25434
|
-
kc(e,
|
|
25435
|
-
onTableDeleted: () =>
|
|
25479
|
+
}, Dt = (e, t) => {
|
|
25480
|
+
kc(e, Ae, t, {
|
|
25481
|
+
onTableDeleted: () => je(null),
|
|
25436
25482
|
onContentChanged: Y,
|
|
25437
25483
|
onFocusRequested: () => C.current?.focus()
|
|
25438
25484
|
});
|
|
25439
|
-
},
|
|
25440
|
-
if (!
|
|
25441
|
-
let t =
|
|
25485
|
+
}, Ot = (e) => {
|
|
25486
|
+
if (!Me) return;
|
|
25487
|
+
let t = Me;
|
|
25442
25488
|
switch (e) {
|
|
25443
25489
|
case "alignLeft":
|
|
25444
25490
|
t.style.display = "inline", t.style.float = "left", t.style.margin = "10px 10px 10px 0";
|
|
@@ -25453,11 +25499,11 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25453
25499
|
t.style.display = "inline", t.style.float = "none", t.style.margin = "10px 0";
|
|
25454
25500
|
break;
|
|
25455
25501
|
case "delete":
|
|
25456
|
-
t.remove(),
|
|
25502
|
+
t.remove(), Ne(null);
|
|
25457
25503
|
break;
|
|
25458
25504
|
}
|
|
25459
25505
|
C.current?.focus(), Y();
|
|
25460
|
-
},
|
|
25506
|
+
}, kt = () => {
|
|
25461
25507
|
if (!C.current) return;
|
|
25462
25508
|
let e = C.current.innerHTML, t = document.createElement("iframe");
|
|
25463
25509
|
t.style.position = "fixed", t.style.right = "0", t.style.bottom = "0", t.style.width = "0", t.style.height = "0", t.style.border = "none", document.body.appendChild(t);
|
|
@@ -25471,48 +25517,48 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25471
25517
|
t && t.parentNode && t.parentNode.removeChild(t);
|
|
25472
25518
|
}, 500);
|
|
25473
25519
|
}, 250);
|
|
25474
|
-
},
|
|
25475
|
-
let e = C.current?.innerHTML ||
|
|
25520
|
+
}, At = () => {
|
|
25521
|
+
let e = C.current?.innerHTML || Re;
|
|
25476
25522
|
a?.(e);
|
|
25477
|
-
},
|
|
25478
|
-
let e = "\n <html xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:w='urn:schemas-microsoft-com:office:word' xmlns='http://www.w3.org/TR/REC-html40'>\n <head><meta charset='utf-8'><title>Export DOC</title>\n <style>\n body { font-family: Arial, sans-serif; font-size: 11pt; }\n table { border-collapse: collapse; width: 100%; border: 1px solid #000; }\n td, th { border: 1px solid #000; padding: 8px; }\n img { max-width: 100%; height: auto; }\n </style>\n </head><body>\n " + (C.current?.innerHTML ||
|
|
25523
|
+
}, jt = () => {
|
|
25524
|
+
let e = "\n <html xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:w='urn:schemas-microsoft-com:office:word' xmlns='http://www.w3.org/TR/REC-html40'>\n <head><meta charset='utf-8'><title>Export DOC</title>\n <style>\n body { font-family: Arial, sans-serif; font-size: 11pt; }\n table { border-collapse: collapse; width: 100%; border: 1px solid #000; }\n td, th { border: 1px solid #000; padding: 8px; }\n img { max-width: 100%; height: auto; }\n </style>\n </head><body>\n " + (C.current?.innerHTML || Re) + "</body></html>", t = new Blob(["", e], { type: "application/msword" }), n = URL.createObjectURL(t), r = document.createElement("a");
|
|
25479
25525
|
r.href = n, r.download = "document.doc", document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n);
|
|
25480
|
-
},
|
|
25481
|
-
C.current?.focus(), document.execCommand("insertHTML", !1, "<div class=\"page-break-element\" contenteditable=\"false\"></div><p>​</p>"),
|
|
25482
|
-
},
|
|
25483
|
-
|
|
25484
|
-
},
|
|
25526
|
+
}, Mt = () => {
|
|
25527
|
+
C.current?.focus(), document.execCommand("insertHTML", !1, "<div class=\"page-break-element\" contenteditable=\"false\"></div><p>​</p>"), ut(), Y();
|
|
25528
|
+
}, Nt = () => {
|
|
25529
|
+
Ie ? (N.current = Re, n?.(Re), Le(!1)) : (C.current && ze(C.current.innerHTML), Le(!0), F("Home"));
|
|
25530
|
+
}, Pt = (e) => {
|
|
25485
25531
|
let t = parseInt(e.target.value);
|
|
25486
|
-
|
|
25487
|
-
},
|
|
25532
|
+
Fe(t), Me && (Me.style.width = `${t}%`, Me.style.height = "auto", Y());
|
|
25533
|
+
}, Ft = (e) => {
|
|
25488
25534
|
C.current?.querySelectorAll("img").forEach((e) => e.classList.remove("selected-img"));
|
|
25489
25535
|
let t = e.target, n = t.closest("a");
|
|
25490
25536
|
if (n && C.current?.contains(n)) {
|
|
25491
|
-
|
|
25537
|
+
Ee(n);
|
|
25492
25538
|
let e = n.getBoundingClientRect();
|
|
25493
|
-
|
|
25539
|
+
Oe({
|
|
25494
25540
|
top: e.bottom + window.scrollY + 5,
|
|
25495
25541
|
left: Math.max(10, e.left + window.scrollX)
|
|
25496
|
-
}),
|
|
25497
|
-
} else t.tagName === "IMG" ? (t.classList.add("selected-img"),
|
|
25498
|
-
|
|
25499
|
-
},
|
|
25500
|
-
if (!
|
|
25542
|
+
}), Ne(null);
|
|
25543
|
+
} else t.tagName === "IMG" ? (t.classList.add("selected-img"), Ne(t), Fe(t.style.width ? parseInt(t.style.width) : 100), Ee(null)) : (Ne(null), Ee(null));
|
|
25544
|
+
ut();
|
|
25545
|
+
}, It = () => {
|
|
25546
|
+
if (!Te) return;
|
|
25501
25547
|
let e = document.createRange();
|
|
25502
|
-
e.selectNode(
|
|
25548
|
+
e.selectNode(Te);
|
|
25503
25549
|
let t = window.getSelection();
|
|
25504
|
-
t && (t.removeAllRanges(), t.addRange(e)), document.execCommand("unlink"),
|
|
25505
|
-
},
|
|
25506
|
-
if (!
|
|
25507
|
-
|
|
25550
|
+
t && (t.removeAllRanges(), t.addRange(e)), document.execCommand("unlink"), Ee(null), Y();
|
|
25551
|
+
}, Lt = () => {
|
|
25552
|
+
if (!Te) return;
|
|
25553
|
+
we(Te.href);
|
|
25508
25554
|
let e = document.createRange();
|
|
25509
|
-
e.selectNode(
|
|
25510
|
-
},
|
|
25555
|
+
e.selectNode(Te), A.current = e, F("Insert"), Se(!0), Ee(null);
|
|
25556
|
+
}, Rt = (e) => {
|
|
25511
25557
|
let t = window.getSelection(), n = t && t.rangeCount > 0 ? t.getRangeAt(0) : null;
|
|
25512
25558
|
if ((e.key === "Backspace" || e.key === "Delete") && n && t && C.current) if (n.collapsed) {
|
|
25513
25559
|
if (e.key === "Backspace" && n.startOffset === 0) {
|
|
25514
25560
|
let t = n.startContainer.previousSibling;
|
|
25515
|
-
if (!t && n.startContainer.parentNode !== C.current && (t = n.startContainer.parentNode?.previousSibling ?? null), t && t.classList?.contains("locked-region")) {
|
|
25561
|
+
if (!t && n.startContainer.parentNode !== C.current && (t = n.startContainer.parentNode?.previousSibling ?? null), t && (t.classList?.contains("locked-region") || t.classList?.contains("swe-locked-region"))) {
|
|
25516
25562
|
e.preventDefault();
|
|
25517
25563
|
return;
|
|
25518
25564
|
}
|
|
@@ -25521,14 +25567,14 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25521
25567
|
let t = n.startContainer, r = t.nodeType === 3 ? t.textContent?.length ?? 0 : 0;
|
|
25522
25568
|
if (n.startOffset === r) {
|
|
25523
25569
|
let n = t.nextSibling;
|
|
25524
|
-
if (!n && t.parentNode !== C.current && (n = t.parentNode?.nextSibling ?? null), n && n.classList?.contains("locked-region")) {
|
|
25570
|
+
if (!n && t.parentNode !== C.current && (n = t.parentNode?.nextSibling ?? null), n && (n.classList?.contains("locked-region") || n.classList?.contains("swe-locked-region"))) {
|
|
25525
25571
|
e.preventDefault();
|
|
25526
25572
|
return;
|
|
25527
25573
|
}
|
|
25528
25574
|
}
|
|
25529
25575
|
}
|
|
25530
25576
|
} else {
|
|
25531
|
-
let n = C.current.querySelectorAll(".locked-region");
|
|
25577
|
+
let n = C.current.querySelectorAll(".locked-region, .swe-locked-region");
|
|
25532
25578
|
for (let r of Array.from(n)) if (t.containsNode(r, !0)) {
|
|
25533
25579
|
e.preventDefault();
|
|
25534
25580
|
return;
|
|
@@ -25544,20 +25590,20 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25544
25590
|
}
|
|
25545
25591
|
Y();
|
|
25546
25592
|
}
|
|
25547
|
-
if (e.ctrlKey && e.key === "Enter" && (e.preventDefault(),
|
|
25548
|
-
|
|
25593
|
+
if (e.ctrlKey && e.key === "Enter" && (e.preventDefault(), Mt()), e.ctrlKey && e.key === "b" && (e.preventDefault(), _t("bold")), e.ctrlKey && e.key === "i" && (e.preventDefault(), _t("italic")), e.ctrlKey && e.key === "u" && (e.preventDefault(), _t("underline")), e.ctrlKey && e.key === "f" && !Ie && B && B.find && (e.preventDefault(), Ge(!0), Xe("find")), e.ctrlKey && e.key === "h" && !Ie && B && B.replace && (e.preventDefault(), Ge(!0), Xe("replace")), e.ctrlKey && e.key === "k" && !Ie && ne && (e.preventDefault(), st(), Se(!0), F("Insert")), e.ctrlKey && e.key === "s" && (e.preventDefault(), At()), e.ctrlKey && e.key === "p" && (e.preventDefault(), kt()), e.ctrlKey && e.key === "l" && (e.preventDefault(), _t("justifyLeft")), e.ctrlKey && e.key === "e" && (e.preventDefault(), _t("justifyCenter")), e.ctrlKey && e.key === "r" && (e.preventDefault(), _t("justifyRight")), e.ctrlKey && e.key === "j" && (e.preventDefault(), _t("justifyFull")), (e.key === " " || e.key === "Enter") && setTimeout(() => {
|
|
25594
|
+
ot(), ct();
|
|
25549
25595
|
}, 10), e.key === " " && n && t && n.startContainer.nodeType === 3) {
|
|
25550
25596
|
let r = n.startContainer, i = r.textContent ?? "", a = i.substring(0, n.startOffset);
|
|
25551
25597
|
(a === "1." || a === "-") && (!r.previousSibling || r.previousSibling.nodeName === "BR") && (e.preventDefault(), r.textContent = i.substring(n.startOffset), n.setStart(r, 0), n.collapse(!0), t.removeAllRanges(), t.addRange(n), document.execCommand(a === "1." ? "insertOrderedList" : "insertUnorderedList"), Y());
|
|
25552
25598
|
}
|
|
25553
|
-
},
|
|
25599
|
+
}, zt = [
|
|
25554
25600
|
"Arial",
|
|
25555
25601
|
"Calibri",
|
|
25556
25602
|
"Times New Roman",
|
|
25557
25603
|
"Verdana",
|
|
25558
25604
|
"Georgia",
|
|
25559
25605
|
"Courier New"
|
|
25560
|
-
],
|
|
25606
|
+
], Bt = [
|
|
25561
25607
|
{
|
|
25562
25608
|
label: "8",
|
|
25563
25609
|
value: "1"
|
|
@@ -25586,12 +25632,12 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25586
25632
|
label: "36",
|
|
25587
25633
|
value: "7"
|
|
25588
25634
|
}
|
|
25589
|
-
],
|
|
25635
|
+
], Vt = o(null), Ht = o(null);
|
|
25590
25636
|
return i(() => {
|
|
25591
|
-
|
|
25592
|
-
}, [
|
|
25593
|
-
|
|
25594
|
-
}, [
|
|
25637
|
+
Ae && !Vt.current ? F("Table Layout") : !Ae && Vt.current && P === "Table Layout" && F("Home"), Vt.current = Ae;
|
|
25638
|
+
}, [Ae, P]), i(() => {
|
|
25639
|
+
Me && !Ht.current ? F("Picture Format") : !Me && Ht.current && P === "Picture Format" && F("Home"), Ht.current = Me;
|
|
25640
|
+
}, [Me, P]), /* @__PURE__ */ d("div", {
|
|
25595
25641
|
className: `swe-editor-root ${m}`,
|
|
25596
25642
|
style: { height: p },
|
|
25597
25643
|
children: [
|
|
@@ -25600,20 +25646,20 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25600
25646
|
type: "color",
|
|
25601
25647
|
ref: T,
|
|
25602
25648
|
className: "swe-hidden",
|
|
25603
|
-
onChange: (e) =>
|
|
25649
|
+
onChange: (e) => _t("foreColor", e.target.value)
|
|
25604
25650
|
}),
|
|
25605
25651
|
/* @__PURE__ */ u("input", {
|
|
25606
25652
|
type: "color",
|
|
25607
25653
|
ref: E,
|
|
25608
25654
|
className: "swe-hidden",
|
|
25609
|
-
onChange: (e) =>
|
|
25655
|
+
onChange: (e) => _t("backColor", e.target.value)
|
|
25610
25656
|
}),
|
|
25611
25657
|
/* @__PURE__ */ u("input", {
|
|
25612
25658
|
type: "color",
|
|
25613
25659
|
ref: D,
|
|
25614
25660
|
className: "swe-hidden",
|
|
25615
25661
|
onChange: (e) => {
|
|
25616
|
-
|
|
25662
|
+
Ae && (Ae.style.backgroundColor = e.target.value, Y());
|
|
25617
25663
|
}
|
|
25618
25664
|
}),
|
|
25619
25665
|
/* @__PURE__ */ u("input", {
|
|
@@ -25621,147 +25667,182 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25621
25667
|
ref: O,
|
|
25622
25668
|
accept: "image/*",
|
|
25623
25669
|
className: "swe-hidden",
|
|
25624
|
-
onChange:
|
|
25670
|
+
onChange: wt
|
|
25625
25671
|
}),
|
|
25626
25672
|
/* @__PURE__ */ u("input", {
|
|
25627
25673
|
type: "file",
|
|
25628
25674
|
ref: k,
|
|
25629
25675
|
accept: ".docx",
|
|
25630
25676
|
className: "swe-hidden",
|
|
25631
|
-
onChange:
|
|
25677
|
+
onChange: Tt
|
|
25632
25678
|
}),
|
|
25633
25679
|
/* @__PURE__ */ d("div", {
|
|
25634
25680
|
className: "swe-toolbar-container",
|
|
25635
25681
|
children: [
|
|
25636
|
-
/* @__PURE__ */ u("div", {
|
|
25637
|
-
onClick: () =>
|
|
25682
|
+
ee && /* @__PURE__ */ u("div", {
|
|
25683
|
+
onClick: () => {
|
|
25684
|
+
F("File"), W && G(!1);
|
|
25685
|
+
},
|
|
25638
25686
|
className: `swe-tab ${P === "File" ? "swe-tab-active" : ""}`,
|
|
25639
25687
|
children: "File"
|
|
25640
25688
|
}),
|
|
25641
25689
|
/* @__PURE__ */ u("div", {
|
|
25642
|
-
onClick: () =>
|
|
25690
|
+
onClick: () => {
|
|
25691
|
+
F("Home"), W && G(!1);
|
|
25692
|
+
},
|
|
25643
25693
|
className: `swe-tab ${P === "Home" ? "swe-tab-active" : ""}`,
|
|
25644
25694
|
children: "Home"
|
|
25645
25695
|
}),
|
|
25646
|
-
(
|
|
25647
|
-
onClick: () =>
|
|
25696
|
+
(te || re || V) && /* @__PURE__ */ u("div", {
|
|
25697
|
+
onClick: () => {
|
|
25698
|
+
F("Insert"), W && G(!1);
|
|
25699
|
+
},
|
|
25648
25700
|
className: `swe-tab ${P === "Insert" ? "swe-tab-active" : ""}`,
|
|
25649
25701
|
children: "Insert"
|
|
25650
25702
|
}),
|
|
25651
25703
|
/* @__PURE__ */ u("div", {
|
|
25652
|
-
onClick: () =>
|
|
25704
|
+
onClick: () => {
|
|
25705
|
+
F("Layout"), W && G(!1);
|
|
25706
|
+
},
|
|
25653
25707
|
className: `swe-tab ${P === "Layout" ? "swe-tab-active" : ""}`,
|
|
25654
25708
|
children: "Layout"
|
|
25655
25709
|
}),
|
|
25656
|
-
|
|
25657
|
-
onClick: () =>
|
|
25710
|
+
Ae && !Ie && /* @__PURE__ */ u("div", {
|
|
25711
|
+
onClick: () => {
|
|
25712
|
+
F("Table Layout"), W && G(!1);
|
|
25713
|
+
},
|
|
25658
25714
|
className: `swe-tab swe-tab-blue ${P === "Table Layout" ? "swe-tab-active" : ""}`,
|
|
25659
25715
|
children: "Table Layout"
|
|
25660
25716
|
}),
|
|
25661
|
-
|
|
25662
|
-
onClick: () =>
|
|
25717
|
+
Me && !Ie && /* @__PURE__ */ u("div", {
|
|
25718
|
+
onClick: () => {
|
|
25719
|
+
F("Picture Format"), W && G(!1);
|
|
25720
|
+
},
|
|
25663
25721
|
className: `swe-tab swe-tab-green ${P === "Picture Format" ? "swe-tab-active" : ""}`,
|
|
25664
25722
|
children: "Picture Format"
|
|
25665
25723
|
}),
|
|
25666
|
-
/* @__PURE__ */ u("div", {
|
|
25667
|
-
onClick: () =>
|
|
25724
|
+
H && /* @__PURE__ */ u("div", {
|
|
25725
|
+
onClick: () => {
|
|
25726
|
+
F("Help"), W && G(!1);
|
|
25727
|
+
},
|
|
25668
25728
|
className: `swe-tab ${P === "Help" ? "swe-tab-active" : ""}`,
|
|
25669
25729
|
children: "Help"
|
|
25670
25730
|
}),
|
|
25671
|
-
/* @__PURE__ */ u("div", { className: "flex-1" })
|
|
25731
|
+
/* @__PURE__ */ u("div", { className: "flex-1" }),
|
|
25732
|
+
U && /* @__PURE__ */ u("button", {
|
|
25733
|
+
onClick: () => G(!W),
|
|
25734
|
+
className: "swe-tab-collapse-btn",
|
|
25735
|
+
style: {
|
|
25736
|
+
background: "none",
|
|
25737
|
+
border: "none",
|
|
25738
|
+
cursor: "pointer",
|
|
25739
|
+
display: "flex",
|
|
25740
|
+
alignItems: "center",
|
|
25741
|
+
justifyContent: "center",
|
|
25742
|
+
padding: "4px 8px",
|
|
25743
|
+
borderRadius: "4px",
|
|
25744
|
+
color: "#4b5563",
|
|
25745
|
+
height: "24px",
|
|
25746
|
+
alignSelf: "center",
|
|
25747
|
+
marginRight: "8px"
|
|
25748
|
+
},
|
|
25749
|
+
title: W ? "Expand Ribbon" : "Collapse Ribbon",
|
|
25750
|
+
children: u(W ? Kc : Jc, { size: 14 })
|
|
25751
|
+
})
|
|
25672
25752
|
]
|
|
25673
25753
|
}),
|
|
25674
25754
|
/* @__PURE__ */ d("div", {
|
|
25675
|
-
className:
|
|
25755
|
+
className: `swe-ribbon swe-custom-scrollbar ${W ? "swe-ribbon-collapsed" : ""}`,
|
|
25676
25756
|
children: [
|
|
25677
|
-
P === "File" && /* @__PURE__ */ u(
|
|
25678
|
-
onSave:
|
|
25679
|
-
onSaveAsDocs:
|
|
25680
|
-
onPrint:
|
|
25681
|
-
toggleHtmlView:
|
|
25757
|
+
P === "File" && /* @__PURE__ */ u(Bl, {
|
|
25758
|
+
onSave: At,
|
|
25759
|
+
onSaveAsDocs: jt,
|
|
25760
|
+
onPrint: kt,
|
|
25761
|
+
toggleHtmlView: Nt,
|
|
25682
25762
|
onImportWord: () => k.current?.click(),
|
|
25683
|
-
activeStyles:
|
|
25684
|
-
showHtml:
|
|
25685
|
-
execCommand:
|
|
25686
|
-
fonts:
|
|
25687
|
-
sizes:
|
|
25763
|
+
activeStyles: ie,
|
|
25764
|
+
showHtml: Ie,
|
|
25765
|
+
execCommand: _t,
|
|
25766
|
+
fonts: zt,
|
|
25767
|
+
sizes: Bt,
|
|
25768
|
+
fileConf: ee,
|
|
25688
25769
|
pluginContributions: S.flatMap((e) => e.ribbonContributions?.filter((e) => e.tabId === "File") || [])
|
|
25689
25770
|
}),
|
|
25690
|
-
P === "Home" && /* @__PURE__ */ u(
|
|
25691
|
-
showHtml:
|
|
25771
|
+
P === "Home" && /* @__PURE__ */ u(jl, {
|
|
25772
|
+
showHtml: Ie,
|
|
25692
25773
|
clipboardConf: I,
|
|
25693
|
-
handlePaste:
|
|
25694
|
-
execCommand:
|
|
25774
|
+
handlePaste: vt,
|
|
25775
|
+
execCommand: _t,
|
|
25695
25776
|
fontConf: L,
|
|
25696
|
-
activeStyles:
|
|
25777
|
+
activeStyles: ie,
|
|
25697
25778
|
paragraphConf: z,
|
|
25698
|
-
changeLineSpacing:
|
|
25699
|
-
changeListStyleType:
|
|
25700
|
-
toggleHtmlView:
|
|
25701
|
-
saveSelection:
|
|
25779
|
+
changeLineSpacing: X,
|
|
25780
|
+
changeListStyleType: yt,
|
|
25781
|
+
toggleHtmlView: Nt,
|
|
25782
|
+
saveSelection: st,
|
|
25702
25783
|
onOpenFind: () => {
|
|
25703
|
-
|
|
25784
|
+
Ge(!0), Xe("find");
|
|
25704
25785
|
},
|
|
25705
25786
|
onOpenReplace: () => {
|
|
25706
|
-
|
|
25787
|
+
Ge(!0), Xe("replace");
|
|
25707
25788
|
},
|
|
25708
|
-
toggleSelectionLock:
|
|
25789
|
+
toggleSelectionLock: Et,
|
|
25709
25790
|
editingConf: B,
|
|
25710
25791
|
pluginContributions: S.flatMap((e) => e.ribbonContributions?.filter((e) => e.tabId === "Home") || []),
|
|
25711
|
-
fonts:
|
|
25712
|
-
sizes:
|
|
25792
|
+
fonts: zt,
|
|
25793
|
+
sizes: Bt,
|
|
25713
25794
|
openTextColorPicker: () => T.current?.click(),
|
|
25714
25795
|
openHighlightColorPicker: () => E.current?.click()
|
|
25715
25796
|
}),
|
|
25716
|
-
P === "Insert" && /* @__PURE__ */ u(
|
|
25717
|
-
showHtml:
|
|
25718
|
-
tableConf:
|
|
25797
|
+
P === "Insert" && /* @__PURE__ */ u(Ml, {
|
|
25798
|
+
showHtml: Ie,
|
|
25799
|
+
tableConf: te,
|
|
25719
25800
|
tableMenuRef: j,
|
|
25720
|
-
isTableMenuOpen:
|
|
25721
|
-
setIsTableMenuOpen:
|
|
25722
|
-
tableGridSize:
|
|
25723
|
-
setTableGridSize:
|
|
25724
|
-
handleInsertTable:
|
|
25725
|
-
mediaConf:
|
|
25801
|
+
isTableMenuOpen: ye,
|
|
25802
|
+
setIsTableMenuOpen: be,
|
|
25803
|
+
tableGridSize: q,
|
|
25804
|
+
setTableGridSize: ke,
|
|
25805
|
+
handleInsertTable: bt,
|
|
25806
|
+
mediaConf: re,
|
|
25726
25807
|
imageInputRef: O,
|
|
25727
|
-
linkConf:
|
|
25728
|
-
execCommand:
|
|
25808
|
+
linkConf: ne,
|
|
25809
|
+
execCommand: _t,
|
|
25729
25810
|
savedRangeRef: A,
|
|
25730
|
-
saveSelection:
|
|
25731
|
-
isLinkMenuOpen:
|
|
25732
|
-
setIsLinkMenuOpen:
|
|
25733
|
-
linkUrl:
|
|
25734
|
-
setLinkUrl:
|
|
25811
|
+
saveSelection: st,
|
|
25812
|
+
isLinkMenuOpen: xe,
|
|
25813
|
+
setIsLinkMenuOpen: Se,
|
|
25814
|
+
linkUrl: Ce,
|
|
25815
|
+
setLinkUrl: we
|
|
25735
25816
|
}),
|
|
25736
|
-
P === "Layout" && /* @__PURE__ */ u(
|
|
25737
|
-
showHtml:
|
|
25738
|
-
inputIndentLeft:
|
|
25739
|
-
setInputIndentLeft:
|
|
25740
|
-
inputIndentRight:
|
|
25741
|
-
setInputIndentRight:
|
|
25742
|
-
applyIndent:
|
|
25743
|
-
inputSpacingBefore:
|
|
25744
|
-
setInputSpacingBefore:
|
|
25745
|
-
inputSpacingAfter:
|
|
25746
|
-
setInputSpacingAfter:
|
|
25747
|
-
applySpacing:
|
|
25748
|
-
insertPageBreak:
|
|
25749
|
-
pagesConf:
|
|
25817
|
+
P === "Layout" && /* @__PURE__ */ u(Nl, {
|
|
25818
|
+
showHtml: Ie,
|
|
25819
|
+
inputIndentLeft: ue,
|
|
25820
|
+
setInputIndentLeft: de,
|
|
25821
|
+
inputIndentRight: K,
|
|
25822
|
+
setInputIndentRight: fe,
|
|
25823
|
+
applyIndent: ht,
|
|
25824
|
+
inputSpacingBefore: pe,
|
|
25825
|
+
setInputSpacingBefore: me,
|
|
25826
|
+
inputSpacingAfter: he,
|
|
25827
|
+
setInputSpacingAfter: ge,
|
|
25828
|
+
applySpacing: gt,
|
|
25829
|
+
insertPageBreak: Mt,
|
|
25830
|
+
pagesConf: V
|
|
25750
25831
|
}),
|
|
25751
|
-
P === "Table Layout" && /* @__PURE__ */ u(
|
|
25752
|
-
showHtml:
|
|
25753
|
-
activeTableCell:
|
|
25754
|
-
handleTableAction:
|
|
25755
|
-
saveSelection:
|
|
25832
|
+
P === "Table Layout" && /* @__PURE__ */ u(Rl, {
|
|
25833
|
+
showHtml: Ie,
|
|
25834
|
+
activeTableCell: Ae,
|
|
25835
|
+
handleTableAction: Dt,
|
|
25836
|
+
saveSelection: st
|
|
25756
25837
|
}),
|
|
25757
|
-
P === "Picture Format" && /* @__PURE__ */ u(
|
|
25758
|
-
showHtml:
|
|
25759
|
-
activeImage:
|
|
25760
|
-
imageWidth:
|
|
25761
|
-
handleImageWidthChange:
|
|
25762
|
-
handleImageAction:
|
|
25838
|
+
P === "Picture Format" && /* @__PURE__ */ u(zl, {
|
|
25839
|
+
showHtml: Ie,
|
|
25840
|
+
activeImage: Me,
|
|
25841
|
+
imageWidth: Pe,
|
|
25842
|
+
handleImageWidthChange: Pt,
|
|
25843
|
+
handleImageAction: Ot
|
|
25763
25844
|
}),
|
|
25764
|
-
P === "Help" && /* @__PURE__ */ u(
|
|
25845
|
+
P === "Help" && /* @__PURE__ */ u(Vl, {})
|
|
25765
25846
|
]
|
|
25766
25847
|
}),
|
|
25767
25848
|
/* @__PURE__ */ d("div", {
|
|
@@ -25782,16 +25863,16 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25782
25863
|
children: [
|
|
25783
25864
|
/* @__PURE__ */ u("div", {
|
|
25784
25865
|
className: "swe-ruler-margin-area swe-ruler-margin-left",
|
|
25785
|
-
style: { width: `calc(${h}mm + ${
|
|
25866
|
+
style: { width: `calc(${h}mm + ${oe}mm)` }
|
|
25786
25867
|
}),
|
|
25787
25868
|
/* @__PURE__ */ d("div", {
|
|
25788
25869
|
className: "swe-ruler-marker",
|
|
25789
25870
|
style: {
|
|
25790
|
-
left: `calc(${h}mm + ${
|
|
25871
|
+
left: `calc(${h}mm + ${oe}mm)`,
|
|
25791
25872
|
transform: "translateX(-50%)"
|
|
25792
25873
|
},
|
|
25793
25874
|
onMouseDown: (e) => {
|
|
25794
|
-
e.preventDefault(),
|
|
25875
|
+
e.preventDefault(), ve("left");
|
|
25795
25876
|
},
|
|
25796
25877
|
children: [/* @__PURE__ */ u("div", { className: "swe-ruler-marker-triangle" }), /* @__PURE__ */ u("div", { className: "swe-ruler-marker-box" })]
|
|
25797
25878
|
}),
|
|
@@ -25810,16 +25891,16 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25810
25891
|
}),
|
|
25811
25892
|
/* @__PURE__ */ u("div", {
|
|
25812
25893
|
className: "swe-ruler-margin-area swe-ruler-margin-right",
|
|
25813
|
-
style: { width: `calc(${g}mm + ${
|
|
25894
|
+
style: { width: `calc(${g}mm + ${ce}mm)` }
|
|
25814
25895
|
}),
|
|
25815
25896
|
/* @__PURE__ */ u("div", {
|
|
25816
25897
|
className: "swe-ruler-marker",
|
|
25817
25898
|
style: {
|
|
25818
|
-
right: `calc(${g}mm + ${
|
|
25899
|
+
right: `calc(${g}mm + ${ce}mm)`,
|
|
25819
25900
|
transform: "translateX(50%)"
|
|
25820
25901
|
},
|
|
25821
25902
|
onMouseDown: (e) => {
|
|
25822
|
-
e.preventDefault(),
|
|
25903
|
+
e.preventDefault(), ve("right");
|
|
25823
25904
|
},
|
|
25824
25905
|
children: /* @__PURE__ */ u("div", { className: "swe-ruler-marker-triangle" })
|
|
25825
25906
|
})
|
|
@@ -25829,7 +25910,7 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25829
25910
|
className: "swe-py-8 swe-flex swe-w-full",
|
|
25830
25911
|
children: /* @__PURE__ */ u("div", {
|
|
25831
25912
|
className: "swe-page-wrapper",
|
|
25832
|
-
children:
|
|
25913
|
+
children: Ie ? /* @__PURE__ */ u("textarea", {
|
|
25833
25914
|
className: "swe-editor-content swe-outline-none swe-text-11pt swe-text-black swe-font-mono swe-resize-none",
|
|
25834
25915
|
style: {
|
|
25835
25916
|
paddingTop: "20mm",
|
|
@@ -25838,19 +25919,19 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25838
25919
|
paddingRight: `${g}mm`,
|
|
25839
25920
|
lineHeight: y
|
|
25840
25921
|
},
|
|
25841
|
-
value:
|
|
25922
|
+
value: Re,
|
|
25842
25923
|
onChange: (e) => {
|
|
25843
|
-
|
|
25924
|
+
ze(e.target.value), n?.(e.target.value);
|
|
25844
25925
|
},
|
|
25845
25926
|
spellCheck: !1
|
|
25846
25927
|
}) : /* @__PURE__ */ u("div", {
|
|
25847
25928
|
ref: C,
|
|
25848
25929
|
contentEditable: !0,
|
|
25849
25930
|
suppressContentEditableWarning: !0,
|
|
25850
|
-
onKeyDown:
|
|
25931
|
+
onKeyDown: Rt,
|
|
25851
25932
|
onInput: Y,
|
|
25852
|
-
onMouseUp:
|
|
25853
|
-
onClick:
|
|
25933
|
+
onMouseUp: ut,
|
|
25934
|
+
onClick: Ft,
|
|
25854
25935
|
className: "swe-editor-content swe-outline-none swe-text-12pt swe-text-black",
|
|
25855
25936
|
style: {
|
|
25856
25937
|
paddingTop: "20mm",
|
|
@@ -25863,14 +25944,14 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25863
25944
|
})
|
|
25864
25945
|
})]
|
|
25865
25946
|
})
|
|
25866
|
-
}),
|
|
25947
|
+
}), We && /* @__PURE__ */ d("div", {
|
|
25867
25948
|
className: "swe-sidebar",
|
|
25868
25949
|
children: [
|
|
25869
25950
|
/* @__PURE__ */ d("div", {
|
|
25870
25951
|
className: "swe-sidebar-header",
|
|
25871
25952
|
children: [/* @__PURE__ */ d("div", {
|
|
25872
25953
|
className: "swe-flex swe-items-center swe-gap-2",
|
|
25873
|
-
children: [/* @__PURE__ */ u(
|
|
25954
|
+
children: [/* @__PURE__ */ u(Sl, {
|
|
25874
25955
|
size: 16,
|
|
25875
25956
|
className: "swe-text-primary-blue"
|
|
25876
25957
|
}), /* @__PURE__ */ u("span", {
|
|
@@ -25878,21 +25959,21 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25878
25959
|
children: "Navigation"
|
|
25879
25960
|
})]
|
|
25880
25961
|
}), /* @__PURE__ */ u("button", {
|
|
25881
|
-
onClick: () =>
|
|
25962
|
+
onClick: () => Ge(!1),
|
|
25882
25963
|
className: "swe-btn-icon swe-rounded-full",
|
|
25883
25964
|
title: "Close Sidebar",
|
|
25884
|
-
children: /* @__PURE__ */ u(
|
|
25965
|
+
children: /* @__PURE__ */ u(Al, { size: 16 })
|
|
25885
25966
|
})]
|
|
25886
25967
|
}),
|
|
25887
25968
|
/* @__PURE__ */ d("div", {
|
|
25888
25969
|
className: "swe-sidebar-tabs",
|
|
25889
25970
|
children: [/* @__PURE__ */ u("button", {
|
|
25890
|
-
onClick: () =>
|
|
25891
|
-
className: `swe-sidebar-tab ${
|
|
25971
|
+
onClick: () => Xe("find"),
|
|
25972
|
+
className: `swe-sidebar-tab ${Ye === "find" ? "swe-sidebar-tab-active" : ""}`,
|
|
25892
25973
|
children: "Find"
|
|
25893
25974
|
}), /* @__PURE__ */ u("button", {
|
|
25894
|
-
onClick: () =>
|
|
25895
|
-
className: `swe-sidebar-tab ${
|
|
25975
|
+
onClick: () => Xe("replace"),
|
|
25976
|
+
className: `swe-sidebar-tab ${Ye === "replace" ? "swe-sidebar-tab-active" : ""}`,
|
|
25896
25977
|
children: "Replace"
|
|
25897
25978
|
})]
|
|
25898
25979
|
}),
|
|
@@ -25909,20 +25990,20 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25909
25990
|
children: [/* @__PURE__ */ u("input", {
|
|
25910
25991
|
type: "text",
|
|
25911
25992
|
value: J,
|
|
25912
|
-
onChange: (e) =>
|
|
25993
|
+
onChange: (e) => Ke(e.target.value),
|
|
25913
25994
|
onKeyDown: (e) => {
|
|
25914
|
-
e.key === "Enter" && (e.preventDefault(), e.stopPropagation(),
|
|
25995
|
+
e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), Ye === "find" ? St() : Ct(!1));
|
|
25915
25996
|
},
|
|
25916
25997
|
placeholder: "Type to search...",
|
|
25917
25998
|
className: "swe-sidebar-input",
|
|
25918
25999
|
autoFocus: !0
|
|
25919
|
-
}), /* @__PURE__ */ u(
|
|
26000
|
+
}), /* @__PURE__ */ u(Sl, {
|
|
25920
26001
|
size: 14,
|
|
25921
26002
|
className: "swe-sidebar-input-icon"
|
|
25922
26003
|
})]
|
|
25923
26004
|
})]
|
|
25924
26005
|
}),
|
|
25925
|
-
|
|
26006
|
+
Ye === "replace" && /* @__PURE__ */ d("div", {
|
|
25926
26007
|
className: "swe-flex-col swe-animate-slide",
|
|
25927
26008
|
children: [/* @__PURE__ */ u("label", {
|
|
25928
26009
|
className: "swe-sidebar-label",
|
|
@@ -25931,14 +26012,14 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25931
26012
|
className: "swe-sidebar-input-wrapper",
|
|
25932
26013
|
children: [/* @__PURE__ */ u("input", {
|
|
25933
26014
|
type: "text",
|
|
25934
|
-
value:
|
|
25935
|
-
onChange: (e) =>
|
|
26015
|
+
value: qe,
|
|
26016
|
+
onChange: (e) => Je(e.target.value),
|
|
25936
26017
|
onKeyDown: (e) => {
|
|
25937
|
-
e.key === "Enter" && (e.preventDefault(), e.stopPropagation(),
|
|
26018
|
+
e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), Ct(!1));
|
|
25938
26019
|
},
|
|
25939
26020
|
placeholder: "Replacement text...",
|
|
25940
26021
|
className: "swe-sidebar-input"
|
|
25941
|
-
}), /* @__PURE__ */ u(
|
|
26022
|
+
}), /* @__PURE__ */ u(vl, {
|
|
25942
26023
|
size: 14,
|
|
25943
26024
|
className: "swe-sidebar-input-icon"
|
|
25944
26025
|
})]
|
|
@@ -25949,8 +26030,8 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25949
26030
|
children: [/* @__PURE__ */ u("input", {
|
|
25950
26031
|
type: "checkbox",
|
|
25951
26032
|
id: "caseSensitive",
|
|
25952
|
-
checked:
|
|
25953
|
-
onChange: (e) =>
|
|
26033
|
+
checked: Ze,
|
|
26034
|
+
onChange: (e) => Qe(e.target.checked),
|
|
25954
26035
|
className: "swe-accent-blue"
|
|
25955
26036
|
}), /* @__PURE__ */ u("label", {
|
|
25956
26037
|
htmlFor: "caseSensitive",
|
|
@@ -25960,26 +26041,26 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25960
26041
|
}),
|
|
25961
26042
|
/* @__PURE__ */ d("div", {
|
|
25962
26043
|
className: "swe-flex-col swe-gap-2",
|
|
25963
|
-
children: [
|
|
25964
|
-
className: `swe-status-msg swe-animate-slide ${
|
|
26044
|
+
children: [$e.message && /* @__PURE__ */ d("div", {
|
|
26045
|
+
className: `swe-status-msg swe-animate-slide ${$e.type === "error" ? "swe-status-error" : $e.type === "success" ? "swe-status-success" : "swe-status-info"}`,
|
|
25965
26046
|
children: [
|
|
25966
|
-
|
|
25967
|
-
|
|
25968
|
-
|
|
25969
|
-
|
|
26047
|
+
$e.type === "error" && /* @__PURE__ */ u(Yc, { size: 12 }),
|
|
26048
|
+
$e.type === "success" && /* @__PURE__ */ u(Xc, { size: 12 }),
|
|
26049
|
+
$e.type === "info" && /* @__PURE__ */ u(sl, { size: 12 }),
|
|
26050
|
+
$e.message
|
|
25970
26051
|
]
|
|
25971
|
-
}),
|
|
25972
|
-
onClick: () =>
|
|
26052
|
+
}), Ye === "replace" ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ d("button", {
|
|
26053
|
+
onClick: () => Ct(!1),
|
|
25973
26054
|
disabled: !J,
|
|
25974
26055
|
className: "swe-btn-sidebar-main swe-btn-sidebar-success",
|
|
25975
|
-
children: [/* @__PURE__ */ u(
|
|
26056
|
+
children: [/* @__PURE__ */ u(vl, { size: 14 }), " Replace Current"]
|
|
25976
26057
|
}), /* @__PURE__ */ d("button", {
|
|
25977
|
-
onClick: () =>
|
|
26058
|
+
onClick: () => Ct(!0),
|
|
25978
26059
|
disabled: !J,
|
|
25979
26060
|
className: "swe-btn-sidebar-main swe-btn-sidebar-outline swe-mt-2",
|
|
25980
|
-
children: [/* @__PURE__ */ u(
|
|
26061
|
+
children: [/* @__PURE__ */ u(yl, { size: 14 }), " Replace All"]
|
|
25981
26062
|
})] }) : /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("button", {
|
|
25982
|
-
onClick:
|
|
26063
|
+
onClick: St,
|
|
25983
26064
|
disabled: !J,
|
|
25984
26065
|
className: "swe-btn-sidebar-main swe-btn-sidebar-primary",
|
|
25985
26066
|
children: ["Find Next Match ", /* @__PURE__ */ u(qc, { size: 14 })]
|
|
@@ -25987,12 +26068,12 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
25987
26068
|
}),
|
|
25988
26069
|
/* @__PURE__ */ d("div", {
|
|
25989
26070
|
className: "swe-sidebar-help-box",
|
|
25990
|
-
children: [/* @__PURE__ */ u(
|
|
26071
|
+
children: [/* @__PURE__ */ u(Zc, {
|
|
25991
26072
|
size: 14,
|
|
25992
26073
|
className: "swe-sidebar-help-icon"
|
|
25993
26074
|
}), "Use the search box above to find specific terms throughout your document. The editor will automatically scroll and highlight matches."]
|
|
25994
26075
|
}),
|
|
25995
|
-
|
|
26076
|
+
Ye === "find" && tt.length > 0 && /* @__PURE__ */ d("div", {
|
|
25996
26077
|
className: "swe-flex-col swe-mt-4",
|
|
25997
26078
|
children: [/* @__PURE__ */ d("div", {
|
|
25998
26079
|
className: "swe-flex swe-justify-between swe-items-center swe-mb-2",
|
|
@@ -26000,23 +26081,23 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
26000
26081
|
className: "swe-text-xs swe-font-bold swe-uppercase swe-tracking-widest",
|
|
26001
26082
|
children: [
|
|
26002
26083
|
"Results (",
|
|
26003
|
-
|
|
26084
|
+
tt.length,
|
|
26004
26085
|
")"
|
|
26005
26086
|
]
|
|
26006
26087
|
}), /* @__PURE__ */ u("button", {
|
|
26007
|
-
onClick: () =>
|
|
26088
|
+
onClick: () => nt([]),
|
|
26008
26089
|
className: "swe-text-xs swe-text-primary-blue swe-font-bold swe-uppercase hover:underline",
|
|
26009
26090
|
children: "Clear"
|
|
26010
26091
|
})]
|
|
26011
26092
|
}), /* @__PURE__ */ u("div", {
|
|
26012
26093
|
className: "swe-search-results-list swe-custom-scrollbar",
|
|
26013
|
-
children:
|
|
26014
|
-
onClick: () =>
|
|
26094
|
+
children: tt.map((t, n) => /* @__PURE__ */ d("button", {
|
|
26095
|
+
onClick: () => xt(t),
|
|
26015
26096
|
className: "swe-search-result-item",
|
|
26016
26097
|
children: [/* @__PURE__ */ d("div", {
|
|
26017
26098
|
className: "swe-text-xs swe-font-bold swe-uppercase swe-mb-1 swe-flex swe-items-center swe-gap-1",
|
|
26018
26099
|
children: [
|
|
26019
|
-
/* @__PURE__ */ u(
|
|
26100
|
+
/* @__PURE__ */ u(Sl, {
|
|
26020
26101
|
size: 10,
|
|
26021
26102
|
className: "swe-text-primary-blue"
|
|
26022
26103
|
}),
|
|
@@ -26042,14 +26123,14 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
26042
26123
|
]
|
|
26043
26124
|
})]
|
|
26044
26125
|
}),
|
|
26045
|
-
|
|
26126
|
+
Te && c.createPortal(/* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", {
|
|
26046
26127
|
className: "fixed inset-0 z-[99]",
|
|
26047
|
-
onClick: () =>
|
|
26128
|
+
onClick: () => Ee(null)
|
|
26048
26129
|
}), /* @__PURE__ */ d("div", {
|
|
26049
26130
|
className: "fixed z-[100] bg-white border border-gray-300 shadow-xl px-3 py-2 rounded-lg flex items-center gap-3 animate-in fade-in zoom-in duration-200",
|
|
26050
26131
|
style: {
|
|
26051
|
-
top:
|
|
26052
|
-
left:
|
|
26132
|
+
top: De.top,
|
|
26133
|
+
left: De.left
|
|
26053
26134
|
},
|
|
26054
26135
|
children: [
|
|
26055
26136
|
/* @__PURE__ */ d("div", {
|
|
@@ -26058,26 +26139,26 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
26058
26139
|
className: "text-[10px] text-gray-400 font-bold uppercase tracking-wider",
|
|
26059
26140
|
children: "Link Address"
|
|
26060
26141
|
}), /* @__PURE__ */ u("a", {
|
|
26061
|
-
href:
|
|
26142
|
+
href: Te.href,
|
|
26062
26143
|
target: "_blank",
|
|
26063
26144
|
rel: "noopener noreferrer",
|
|
26064
26145
|
className: "text-xs text-blue-600 truncate hover:underline",
|
|
26065
|
-
children:
|
|
26146
|
+
children: Te.href
|
|
26066
26147
|
})]
|
|
26067
26148
|
}),
|
|
26068
26149
|
/* @__PURE__ */ u("div", { className: "w-[1px] h-6 bg-gray-200" }),
|
|
26069
26150
|
/* @__PURE__ */ d("div", {
|
|
26070
26151
|
className: "flex gap-1",
|
|
26071
26152
|
children: [/* @__PURE__ */ u("button", {
|
|
26072
|
-
onClick:
|
|
26153
|
+
onClick: Lt,
|
|
26073
26154
|
className: "p-1.5 hover:bg-gray-100 rounded text-gray-600 transition-colors",
|
|
26074
26155
|
title: "Edit Link",
|
|
26075
|
-
children: /* @__PURE__ */ u(
|
|
26156
|
+
children: /* @__PURE__ */ u(ll, { size: 14 })
|
|
26076
26157
|
}), /* @__PURE__ */ u("button", {
|
|
26077
|
-
onClick:
|
|
26158
|
+
onClick: It,
|
|
26078
26159
|
className: "p-1.5 hover:bg-red-50 rounded text-red-500 transition-colors",
|
|
26079
26160
|
title: "Remove Link",
|
|
26080
|
-
children: /* @__PURE__ */ u(
|
|
26161
|
+
children: /* @__PURE__ */ u(Al, { size: 14 })
|
|
26081
26162
|
})]
|
|
26082
26163
|
})
|
|
26083
26164
|
]
|
|
@@ -26093,7 +26174,7 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
26093
26174
|
children: "Words:"
|
|
26094
26175
|
}), /* @__PURE__ */ u("span", {
|
|
26095
26176
|
className: "bg-gray-200/50 px-1.5 py-0.5 rounded border border-gray-300 text-gray-700",
|
|
26096
|
-
children:
|
|
26177
|
+
children: Be
|
|
26097
26178
|
})]
|
|
26098
26179
|
}), /* @__PURE__ */ d("div", {
|
|
26099
26180
|
className: "flex items-center gap-1.5 font-medium uppercase tracking-tight",
|
|
@@ -26102,7 +26183,7 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
26102
26183
|
children: "Characters:"
|
|
26103
26184
|
}), /* @__PURE__ */ u("span", {
|
|
26104
26185
|
className: "bg-gray-200/50 px-1.5 py-0.5 rounded border border-gray-300 text-gray-700",
|
|
26105
|
-
children:
|
|
26186
|
+
children: He
|
|
26106
26187
|
})]
|
|
26107
26188
|
})]
|
|
26108
26189
|
}), /* @__PURE__ */ d("div", {
|
|
@@ -26110,7 +26191,7 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
26110
26191
|
children: [
|
|
26111
26192
|
/* @__PURE__ */ u("span", {
|
|
26112
26193
|
className: "uppercase text-[9px]",
|
|
26113
|
-
children:
|
|
26194
|
+
children: Ie ? "Source Code View" : "Rich Text Editor"
|
|
26114
26195
|
}),
|
|
26115
26196
|
/* @__PURE__ */ u("div", { className: "w-[1px] h-3 bg-gray-300" }),
|
|
26116
26197
|
/* @__PURE__ */ u("span", { children: "100%" })
|
|
@@ -26121,4 +26202,4 @@ var Hl = ({ initialHTML: t = "<p>Start typing here...</p>", onChange: n, onSave:
|
|
|
26121
26202
|
});
|
|
26122
26203
|
};
|
|
26123
26204
|
//#endregion
|
|
26124
|
-
export {
|
|
26205
|
+
export { Ll as ColorPicker, Ul as default };
|