@qaiddev/thumbs-embed 1.10.0 → 1.10.1

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.
@@ -1,26 +1,49 @@
1
- import { i as Dt, F as zt, T as Ht, a as Lt, R as Mt } from "./annotate-D-o8xCV9.js";
2
- const Bt = "button{cursor:pointer}.qaid-buttons{display:flex;gap:.5rem}.qaid-buttons.qaid-vertical{flex-direction:column}.qaid-buttons.qaid-auto-container{position:fixed;z-index:50}.qaid-buttons.qaid-auto-container.qaid-bottom-right{bottom:1rem;right:1rem}.qaid-buttons.qaid-auto-container.qaid-bottom-left{bottom:1rem;left:1rem}.qaid-buttons.qaid-auto-container.qaid-top-right{top:1rem;right:1rem}.qaid-buttons.qaid-auto-container.qaid-top-left{top:1rem;left:1rem}.qaid-buttons.qaid-incognito{opacity:0;transition:opacity .2s ease-in-out}.qaid-buttons.qaid-incognito:hover{opacity:1}.qaid-buttons.qaid-dismissed{display:none!important}.qaid-dismiss-btn{width:20px;height:20px;padding:0;border:none;border-radius:50%;background:#0006;color:#fff;display:flex;align-items:center;justify-content:center;align-self:center;opacity:0;transition:opacity .15s,background .15s;cursor:pointer;pointer-events:auto;-webkit-appearance:none;appearance:none}.qaid-dismiss-btn:hover{background:#0009}.qaid-buttons:hover .qaid-dismiss-btn{opacity:1}button.qaid-btn-structural{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;-webkit-appearance:none;appearance:none}.qaid-icon{width:24px;height:24px}:where(button.qaid-btn-structural)>svg:where(:not(.qaid-icon):not([width])){width:var(--qaid-icon-size, 24px);height:var(--qaid-icon-size, 24px)}.qaid-btn-structural:not(:has(svg)),.qaid-btn:not(:has(svg)){font-size:var(--qaid-icon-size, 24px);line-height:1}.qaid-emoji-icon{font-size:var(--qaid-icon-size, 24px);line-height:1}.qaid-buttons,.qaid-buttons *,.qaid-modal-container,.qaid-modal-container *{cursor:pointer!important}.qaid-tooltip-wrapper{position:relative}.qaid-tooltip-text{position:fixed;padding:.5rem .75rem;background:#1f2937;color:#fff;font-size:var(--qaid-font-size, 16px);font-weight:600;border-radius:.5rem;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s;z-index:99999}.qaid-tooltip-text.qaid-tooltip-visible{opacity:1}.qaid-targeting-overlay{position:fixed;inset:0;z-index:40;pointer-events:none}.qaid-capture-layer{position:fixed;inset:0;pointer-events:none;z-index:9999}@keyframes qaid-slideDown{0%{transform:translateY(-100%)}to{transform:translateY(0)}}.qaid-vignette{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,transparent 30%,rgba(0,0,0,.3) 70%,rgba(0,0,0,.6) 100%);z-index:41}.qaid-crosshair-h,.qaid-crosshair-v{position:fixed;pointer-events:none;z-index:42}.qaid-crosshair-h{left:0;right:0;height:1px;background:color-mix(in srgb,var(--qaid-negative) 60%,transparent)}.qaid-crosshair-v{top:0;bottom:0;width:1px;background:color-mix(in srgb,var(--qaid-negative) 60%,transparent)}.qaid-type-up .qaid-crosshair-h,.qaid-type-up .qaid-crosshair-v{background:color-mix(in srgb,var(--qaid-positive) 60%,transparent)}.qaid-highlight-box{position:fixed;top:0;left:0;pointer-events:none;z-index:41;display:none;border:3px solid color-mix(in srgb,var(--qaid-negative) 80%,transparent);border-radius:2px;background:color-mix(in srgb,var(--qaid-negative) 8%,transparent);will-change:transform,width,height}.qaid-type-up .qaid-highlight-box{border-color:color-mix(in srgb,var(--qaid-positive) 80%,transparent);background:color-mix(in srgb,var(--qaid-positive) 8%,transparent)}.qaid-scope{position:fixed;width:80px;height:80px;pointer-events:none;z-index:43;transform:translate(-50%,-50%)}.qaid-scope-ring{position:absolute;inset:10px;border:2px solid color-mix(in srgb,var(--qaid-negative) 80%,transparent);border-radius:50%}.qaid-type-up .qaid-scope-ring{border-color:color-mix(in srgb,var(--qaid-positive) 80%,transparent)}.qaid-scope-ring-inner{position:absolute;inset:20px;border:1px solid color-mix(in srgb,var(--qaid-negative) 50%,transparent);border-radius:50%}.qaid-type-up .qaid-scope-ring-inner{border-color:color-mix(in srgb,var(--qaid-positive) 50%,transparent)}.qaid-scope-dot{position:absolute;top:50%;left:50%;width:4px;height:4px;background:var(--qaid-negative);border-radius:50%;transform:translate(-50%,-50%)}.qaid-type-up .qaid-scope-dot{background:var(--qaid-positive)}.qaid-selected-marker{position:fixed;border:3px solid var(--qaid-marker, #6365f1);border-radius:50%;pointer-events:none;z-index:44;animation:qaid-markerPulse 1.5s ease-in-out infinite}@keyframes qaid-markerPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.05)}}.qaid-backdrop{position:fixed;inset:0;z-index:45;background:#0000004d}.qaid-modal-container{position:fixed;z-index:50;display:flex;flex-direction:column;align-items:flex-start;max-height:calc(100vh - 32px);font-family:var(--qaid-font-family, system-ui, -apple-system, sans-serif);font-size:var(--qaid-font-size, 16px)}.qaid-modal-container.qaid-above{flex-direction:column-reverse}.qaid-modal-arrow{width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;position:relative;align-self:flex-start}.qaid-modal-container.qaid-below .qaid-modal-arrow{border-bottom:12px solid light-dark(#ffffff,#1f2937)}.qaid-modal-container.qaid-above .qaid-modal-arrow{border-top:12px solid light-dark(#ffffff,#1f2937)}.qaid-modal-box{color-scheme:inherit;background:light-dark(#ffffff,#1f2937);border-radius:1rem;padding:1.5rem;box-shadow:0 25px 50px -12px light-dark(rgba(0,0,0,.25),rgba(0,0,0,.5));width:var(--qaid-modal-width, 400px);max-width:calc(100vw - 32px);max-height:calc(100vh - 60px);overflow-y:auto}.qaid-modal-header{display:flex;align-items:flex-start;gap:.75rem;margin-bottom:1rem}button.qaid-type-toggle{border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;flex-shrink:0;-webkit-appearance:none;appearance:none}button.qaid-type-toggle:hover{transform:scale(1.1)}button.qaid-type-toggle:not(.qaid-type-toggle-custom){width:2.5rem;height:2.5rem;border-radius:50%}button.qaid-type-toggle:not(.qaid-type-toggle-custom) svg{width:1.25rem;height:1.25rem}button.qaid-type-toggle.qaid-type-up{background:var(--qaid-positive);color:#fff}button.qaid-type-toggle.qaid-type-down{background:var(--qaid-negative);color:#fff}.qaid-type-static{width:2.5rem;height:2.5rem;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--qaid-marker, #6365f1);color:var(--qaid-marker-text, white)}.qaid-type-static svg{width:1.25rem;height:1.25rem}.qaid-modal-header-text{flex:1;min-width:0}.qaid-modal-title{font-size:calc(var(--qaid-font-size, 16px) * 1.125);font-weight:700;margin:0 0 .25rem;color:light-dark(#1f2937,#f9fafb)}.qaid-modal-subtitle{color:light-dark(#6b7280,#9ca3af);margin:0;font-size:calc(var(--qaid-font-size, 16px) * .875)}.qaid-textarea{width:100%;height:6rem;padding:.75rem;border:1px solid light-dark(#d1d5db,#374151);border-radius:.5rem;font-family:inherit;font-size:var(--qaid-font-size, 16px);resize:vertical;margin-bottom:1rem;box-sizing:border-box;background:light-dark(#ffffff,#111827);color:light-dark(#1f2937,#f9fafb)}.qaid-textarea:focus{outline:none;border-color:var(--qaid-marker);box-shadow:0 0 0 3px color-mix(in srgb,var(--qaid-marker) 20%,transparent)}.qaid-btn-row{display:flex;gap:.5rem;justify-content:flex-end}button.qaid-btn-submit{padding:.5rem 1rem;background:var(--qaid-marker);color:var(--qaid-marker-text, white);border:none;border-radius:.5rem;font-size:calc(var(--qaid-font-size, 16px) * .875);font-weight:500;cursor:pointer;transition:background-color .2s,filter .2s;-webkit-appearance:none;appearance:none}button.qaid-btn-submit:hover{filter:brightness(.85)}button.qaid-btn-submit:focus{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--qaid-marker) 30%,transparent)}.qaid-bottom-sheet{position:fixed;bottom:0;left:0;right:0;z-index:50;animation:qaid-slideUpSheet .3s ease-out;font-family:var(--qaid-font-family, system-ui, -apple-system, sans-serif);font-size:var(--qaid-font-size, 16px)}.qaid-bottom-sheet-content{background:light-dark(#ffffff,#1f2937);border-radius:1rem 1rem 0 0;padding:1.5rem;padding-bottom:max(1.5rem,env(safe-area-inset-bottom))}.qaid-bottom-sheet-handle{width:36px;height:4px;background:light-dark(rgba(0,0,0,.2),rgba(255,255,255,.2));border-radius:2px;margin:0 auto 1rem}@keyframes qaid-slideUpSheet{0%{transform:translateY(100%)}to{transform:translateY(0)}}button.qaid-btn-record:hover{background:#dc2626;color:#fff}.qaid-recording-indicator{position:fixed;pointer-events:auto;top:12px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:light-dark(#1f2937,#374151);color:#fff;border-radius:9999px;font-family:var(--qaid-font-family, system-ui, -apple-system, sans-serif);font-size:calc(var(--qaid-font-size, 16px) * .875);font-weight:500;box-shadow:0 4px 12px #0000004d;z-index:99999;animation:qaid-slideDown .2s ease-out}.qaid-recording-dot{width:10px;height:10px;background:#dc2626;border-radius:50%;animation:qaid-dotPulse 1.5s ease-in-out infinite}@keyframes qaid-dotPulse{0%,to{opacity:1}50%{opacity:.3}}.qaid-recording-time{font-variant-numeric:tabular-nums;min-width:2.5rem;text-align:center}button.qaid-recording-stop{padding:.25rem .75rem;background:#dc2626;color:#fff;border:none;border-radius:9999px;font-size:calc(var(--qaid-font-size, 16px) * .75);font-weight:600;cursor:pointer;transition:background-color .2s;-webkit-appearance:none;appearance:none}button.qaid-recording-stop:hover{background:#b91c1c}.qaid-video-preview{position:fixed;inset:0 0 auto;height:100vh;height:100dvh;display:flex;align-items:center;justify-content:center;padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));box-sizing:border-box;background:#0009;z-index:99998;animation:qaid-fadeIn .2s ease-out}@keyframes qaid-fadeIn{0%{opacity:0}to{opacity:1}}.qaid-video-preview-box{color-scheme:inherit;background:light-dark(#ffffff,#1f2937);border-radius:1rem;padding:1.5rem;box-shadow:0 25px 50px -12px #00000080;width:560px;max-width:100%;max-height:100%;overflow-y:auto;font-family:var(--qaid-font-family, system-ui, -apple-system, sans-serif);font-size:var(--qaid-font-size, 16px)}.qaid-video-preview-box h3{font-size:calc(var(--qaid-font-size, 16px) * 1.125);font-weight:700;margin:0 0 1rem;color:light-dark(#1f2937,#f9fafb)}.qaid-video-preview-box video{width:100%;max-height:50vh;max-height:50dvh;object-fit:contain;border-radius:.5rem;background:#000;margin-bottom:1rem}.qaid-video-preview-box textarea{width:100%;height:4rem;padding:.75rem;border:1px solid light-dark(#d1d5db,#374151);border-radius:.5rem;font-family:inherit;font-size:calc(var(--qaid-font-size, 16px) * .875);resize:vertical;margin-bottom:1rem;box-sizing:border-box;background:light-dark(#ffffff,#111827);color:light-dark(#1f2937,#f9fafb)}.qaid-video-preview-box textarea:focus{outline:none;border-color:var(--qaid-marker);box-shadow:0 0 0 3px color-mix(in srgb,var(--qaid-marker) 20%,transparent)}.qaid-video-error{margin:0 0 .75rem;font-size:calc(var(--qaid-font-size, 16px) * .875);font-weight:500;color:light-dark(#b91c1c,#fca5a5)}.qaid-video-preview-actions{display:flex;gap:.5rem;justify-content:flex-end}button.qaid-video-btn{padding:.5rem 1rem;border:none;border-radius:.5rem;font-size:calc(var(--qaid-font-size, 16px) * .875);font-weight:500;cursor:pointer;transition:background-color .2s,filter .2s;-webkit-appearance:none;appearance:none}button.qaid-video-btn-cancel{background:light-dark(#f3f4f6,#374151);color:light-dark(#374151,#d1d5db)}button.qaid-video-btn-cancel:hover{background:light-dark(#e5e7eb,#4b5563)}button.qaid-video-btn-rerecord{background:light-dark(#fef3c7,#78350f);color:light-dark(#92400e,#fde68a)}button.qaid-video-btn-rerecord:hover{filter:brightness(.9)}button.qaid-video-btn-send{background:var(--qaid-marker);color:var(--qaid-marker-text, white)}button.qaid-video-btn-send:hover{filter:brightness(.85)}button.qaid-video-btn-send:disabled{opacity:.5;cursor:not-allowed}.qaid-video-sending{display:flex;align-items:center;gap:.5rem;font-size:calc(var(--qaid-font-size, 16px) * .875);color:light-dark(#6b7280,#9ca3af)}.qaid-annotate{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;gap:.75rem;padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));box-sizing:border-box;background:#000000d9;font-family:var(--qaid-font-family, system-ui, -apple-system, sans-serif);font-size:var(--qaid-font-size, 16px);animation:qaid-fadeIn .2s ease-out}.qaid-annotate-title{margin:0;font-size:var(--qaid-font-size, 16px);font-weight:700;text-align:center;color:#f9fafb}.qaid-annotate-desc{margin:0;font-size:calc(var(--qaid-font-size, 16px) * .8125);line-height:1.4;text-align:center;color:#f9fafbbf}.qaid-annotate-stage{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto}.qaid-annotate-canvas{max-width:100%;max-height:100%;object-fit:contain;background:light-dark(#ffffff,#111827);border-radius:.5rem;box-shadow:0 10px 30px #00000080;touch-action:none;cursor:crosshair}.qaid-annotate-toolbar{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:center;padding:.5rem .75rem;background:light-dark(#ffffff,#1f2937);border-radius:.75rem;box-shadow:0 10px 30px light-dark(rgba(0,0,0,.25),rgba(0,0,0,.5))}.qaid-annotate-tools,.qaid-annotate-actions{display:flex;gap:.375rem;align-items:center}button.qaid-annotate-tool,button.qaid-annotate-action{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;min-width:44px;min-height:44px;padding:0 .75rem;border:1px solid light-dark(#d1d5db,#374151);border-radius:.5rem;background:light-dark(#f9fafb,#111827);color:light-dark(#1f2937,#f9fafb);font-family:inherit;font-size:calc(var(--qaid-font-size, 16px) * .8125);font-weight:600;cursor:pointer;-webkit-appearance:none;appearance:none;transition:background-color .15s,color .15s,border-color .15s,filter .15s}button.qaid-annotate-tool svg,button.qaid-annotate-action svg{width:20px;height:20px}.qaid-annotate-colors{display:flex;gap:.25rem;align-items:center}button.qaid-annotate-swatch{width:28px;height:28px;min-width:28px;padding:0;border-radius:9999px;border:2px solid light-dark(#d1d5db,#4b5563);background:var(--qaid-swatch, #000);cursor:pointer;-webkit-appearance:none;appearance:none;transition:transform .1s,box-shadow .15s,border-color .15s}button.qaid-annotate-swatch:hover{transform:scale(1.12)}button.qaid-annotate-swatch[aria-pressed=true]{border-color:light-dark(#111827,#f9fafb);box-shadow:0 0 0 2px var(--qaid-swatch)}@media(forced-colors:active){button.qaid-annotate-swatch[aria-pressed=true]{outline:2px solid Highlight;outline-offset:1px}}button.qaid-annotate-tool:hover,button.qaid-annotate-action:hover{background:light-dark(#eef2ff,#312e81)}button.qaid-annotate-tool[aria-pressed=true],button.qaid-annotate-done{background:var(--qaid-marker, #6365f1);color:var(--qaid-marker-text, #fff);border-color:var(--qaid-marker, #6365f1)}button.qaid-annotate-done:hover{filter:brightness(.9);background:var(--qaid-marker, #6365f1)}button.qaid-annotate-action:disabled{opacity:.45;cursor:not-allowed}@media(forced-colors:active){button.qaid-annotate-tool[aria-pressed=true],button.qaid-annotate-done{border:2px solid Highlight}.qaid-annotate-canvas{border:1px solid CanvasText}}button:focus-visible,textarea:focus-visible,a:focus-visible,[tabindex]:focus-visible,[role=button]:focus-visible{outline:2px solid var(--qaid-marker, #6365f1);outline-offset:2px}.qaid-textarea:focus-visible,button.qaid-btn-submit:focus-visible,.qaid-video-preview-box textarea:focus-visible{outline:2px solid var(--qaid-marker, #6365f1);outline-offset:2px}.qaid-buttons.qaid-incognito:focus-within{opacity:1}.qaid-buttons:focus-within .qaid-dismiss-btn,.qaid-dismiss-btn:focus-visible{opacity:1}.qaid-dismiss-btn{min-width:24px;min-height:24px}button.qaid-recording-stop{min-height:24px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(forced-colors:active){button:focus-visible,textarea:focus-visible,a:focus-visible,[tabindex]:focus-visible,[role=button]:focus-visible,.qaid-textarea:focus,button.qaid-btn-submit:focus,.qaid-video-preview-box textarea:focus{outline:2px solid CanvasText;outline-offset:2px}.qaid-selected-marker,.qaid-highlight-box{border-color:Highlight}}.qaid-confirm{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.5rem;padding:.5rem 0}.qaid-confirm-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:9999px;color:#fff;background:var(--qaid-success, #22c55e);margin-bottom:.25rem;animation:qaid-confirm-pop .28s cubic-bezier(.34,1.56,.64,1)}.qaid-confirm-icon .qaid-icon{width:24px;height:24px}.qaid-confirm-error .qaid-confirm-icon{background:var(--qaid-error, #dc2626)}.qaid-confirm-title{margin:0;font-size:var(--qaid-font-size, 16px);font-weight:600;color:var(--qaid-text, light-dark(#111827, #f9fafb))}.qaid-confirm-title:focus-visible{outline:2px solid var(--qaid-primary, #6365f1);outline-offset:3px;border-radius:4px}.qaid-confirm-message{margin:0;font-size:calc(var(--qaid-font-size, 16px) * .875);color:var(--qaid-text-muted, light-dark(#6b7280, #9ca3af))}.qaid-confirm .qaid-confirm-close{margin-top:.5rem;min-width:96px}@keyframes qaid-confirm-pop{0%{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.qaid-confirm-icon{animation:none}}", Ot = "body.qaid-targeting,body.qaid-targeting *{cursor:none!important}";
1
+ const Dt = `<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
2
+ <path stroke-linecap="round" stroke-linejoin="round" d="M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5"/>
3
+ </svg>`, zt = `<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
4
+ <path stroke-linecap="round" stroke-linejoin="round" d="M10 14H5.236a2 2 0 01-1.789-2.894l3.5-7A2 2 0 018.737 3h4.018a2 2 0 01.485.06l3.76.94m-7 10v5a2 2 0 002 2h.095c.5 0 .905-.405.905-.905 0-.714.211-1.412.608-2.006L17 13V4m-7 10h2m5-10h2a2 2 0 012 2v6a2 2 0 01-2 2h-2.5"/>
5
+ </svg>`, Mt = `<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
6
+ <path stroke-linecap="round" stroke-linejoin="round" d="M15.75 10.5l4.72-4.72a.75.75 0 011.28.53v11.38a.75.75 0 01-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 002.25-2.25v-9a2.25 2.25 0 00-2.25-2.25h-9A2.25 2.25 0 002.25 7.5v9a2.25 2.25 0 002.25 2.25z"/>
7
+ </svg>`, Lt = `<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
8
+ <path stroke-linecap="round" stroke-linejoin="round" d="M8 10h8M8 14h5m-9 6l3.5-3.5H18a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v14z"/>
9
+ </svg>`, Te = `<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
10
+ <rect x="4" y="6" width="16" height="12" rx="1" stroke-linejoin="round"/>
11
+ </svg>`, Ee = `<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
12
+ <path stroke-linecap="round" stroke-linejoin="round" d="M5 19L19 5m0 0h-8m8 0v8"/>
13
+ </svg>`, Ie = `<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
14
+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 20h9M16.5 3.5a2.121 2.121 0 013 3L7 19l-4 1 1-4L16.5 3.5z"/>
15
+ </svg>`, De = `<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
16
+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 3s6 6.4 6 10a6 6 0 01-12 0c0-3.6 6-10 6-10z"/>
17
+ </svg>`, ze = `<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
18
+ <path stroke-linecap="round" stroke-linejoin="round" d="M9 14L4 9l5-5M4 9h11a5 5 0 010 10h-4"/>
19
+ </svg>`, Me = `<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
20
+ <path stroke-linecap="round" stroke-linejoin="round" d="M20 6L9 17l-5-5"/>
21
+ </svg>`, Le = `<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
22
+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 6v8m0 4h.01"/>
23
+ </svg>`, He = `<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
24
+ <path stroke-linecap="round" stroke-linejoin="round" d="M6 6l12 12M18 6L6 18"/>
25
+ </svg>`, Ht = "button{cursor:pointer}.qaid-buttons{display:flex;gap:.5rem}.qaid-buttons.qaid-vertical{flex-direction:column}.qaid-buttons.qaid-auto-container{position:fixed;z-index:50}.qaid-buttons.qaid-auto-container.qaid-bottom-right{bottom:1rem;right:1rem}.qaid-buttons.qaid-auto-container.qaid-bottom-left{bottom:1rem;left:1rem}.qaid-buttons.qaid-auto-container.qaid-top-right{top:1rem;right:1rem}.qaid-buttons.qaid-auto-container.qaid-top-left{top:1rem;left:1rem}.qaid-buttons.qaid-incognito{opacity:0;transition:opacity .2s ease-in-out}.qaid-buttons.qaid-incognito:hover{opacity:1}.qaid-buttons.qaid-dismissed{display:none!important}.qaid-dismiss-btn{width:20px;height:20px;padding:0;border:none;border-radius:50%;background:#0006;color:#fff;display:flex;align-items:center;justify-content:center;align-self:center;opacity:0;transition:opacity .15s,background .15s;cursor:pointer;pointer-events:auto;-webkit-appearance:none;appearance:none}.qaid-dismiss-btn:hover{background:#0009}.qaid-buttons:hover .qaid-dismiss-btn{opacity:1}button.qaid-btn-structural{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;-webkit-appearance:none;appearance:none}.qaid-icon{width:24px;height:24px}:where(button.qaid-btn-structural)>svg:where(:not(.qaid-icon):not([width])){width:var(--qaid-icon-size, 24px);height:var(--qaid-icon-size, 24px)}.qaid-btn-structural:not(:has(svg)),.qaid-btn:not(:has(svg)){font-size:var(--qaid-icon-size, 24px);line-height:1}.qaid-emoji-icon{font-size:var(--qaid-icon-size, 24px);line-height:1}.qaid-buttons,.qaid-buttons *,.qaid-modal-container,.qaid-modal-container *{cursor:pointer!important}.qaid-tooltip-wrapper{position:relative}.qaid-tooltip-text{position:fixed;padding:.5rem .75rem;background:#1f2937;color:#fff;font-size:var(--qaid-font-size, 16px);font-weight:600;border-radius:.5rem;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s;z-index:99999}.qaid-tooltip-text.qaid-tooltip-visible{opacity:1}.qaid-targeting-overlay{position:fixed;inset:0;z-index:40;pointer-events:none}.qaid-capture-layer{position:fixed;inset:0;pointer-events:none;z-index:9999}@keyframes qaid-slideDown{0%{transform:translateY(-100%)}to{transform:translateY(0)}}.qaid-vignette{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,transparent 30%,rgba(0,0,0,.3) 70%,rgba(0,0,0,.6) 100%);z-index:41}.qaid-crosshair-h,.qaid-crosshair-v{position:fixed;pointer-events:none;z-index:42}.qaid-crosshair-h{left:0;right:0;height:1px;background:color-mix(in srgb,var(--qaid-negative) 60%,transparent)}.qaid-crosshair-v{top:0;bottom:0;width:1px;background:color-mix(in srgb,var(--qaid-negative) 60%,transparent)}.qaid-type-up .qaid-crosshair-h,.qaid-type-up .qaid-crosshair-v{background:color-mix(in srgb,var(--qaid-positive) 60%,transparent)}.qaid-highlight-box{position:fixed;top:0;left:0;pointer-events:none;z-index:41;display:none;border:3px solid color-mix(in srgb,var(--qaid-negative) 80%,transparent);border-radius:2px;background:color-mix(in srgb,var(--qaid-negative) 8%,transparent);will-change:transform,width,height}.qaid-type-up .qaid-highlight-box{border-color:color-mix(in srgb,var(--qaid-positive) 80%,transparent);background:color-mix(in srgb,var(--qaid-positive) 8%,transparent)}.qaid-scope{position:fixed;width:80px;height:80px;pointer-events:none;z-index:43;transform:translate(-50%,-50%)}.qaid-scope-ring{position:absolute;inset:10px;border:2px solid color-mix(in srgb,var(--qaid-negative) 80%,transparent);border-radius:50%}.qaid-type-up .qaid-scope-ring{border-color:color-mix(in srgb,var(--qaid-positive) 80%,transparent)}.qaid-scope-ring-inner{position:absolute;inset:20px;border:1px solid color-mix(in srgb,var(--qaid-negative) 50%,transparent);border-radius:50%}.qaid-type-up .qaid-scope-ring-inner{border-color:color-mix(in srgb,var(--qaid-positive) 50%,transparent)}.qaid-scope-dot{position:absolute;top:50%;left:50%;width:4px;height:4px;background:var(--qaid-negative);border-radius:50%;transform:translate(-50%,-50%)}.qaid-type-up .qaid-scope-dot{background:var(--qaid-positive)}.qaid-selected-marker{position:fixed;border:3px solid var(--qaid-marker, #6365f1);border-radius:50%;pointer-events:none;z-index:44;animation:qaid-markerPulse 1.5s ease-in-out infinite}@keyframes qaid-markerPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.05)}}.qaid-backdrop{position:fixed;inset:0;z-index:45;background:#0000004d}.qaid-modal-container{position:fixed;z-index:50;display:flex;flex-direction:column;align-items:flex-start;max-height:calc(100vh - 32px);font-family:var(--qaid-font-family, system-ui, -apple-system, sans-serif);font-size:var(--qaid-font-size, 16px)}.qaid-modal-container.qaid-above{flex-direction:column-reverse}.qaid-modal-arrow{width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;position:relative;align-self:flex-start}.qaid-modal-container.qaid-below .qaid-modal-arrow{border-bottom:12px solid light-dark(#ffffff,#1f2937)}.qaid-modal-container.qaid-above .qaid-modal-arrow{border-top:12px solid light-dark(#ffffff,#1f2937)}.qaid-modal-box{color-scheme:inherit;background:light-dark(#ffffff,#1f2937);border-radius:1rem;padding:1.5rem;box-shadow:0 25px 50px -12px light-dark(rgba(0,0,0,.25),rgba(0,0,0,.5));width:var(--qaid-modal-width, 400px);max-width:calc(100vw - 32px);max-height:calc(100vh - 60px);overflow-y:auto}.qaid-modal-header{display:flex;align-items:flex-start;gap:.75rem;margin-bottom:1rem}button.qaid-type-toggle{border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;flex-shrink:0;-webkit-appearance:none;appearance:none}button.qaid-type-toggle:hover{transform:scale(1.1)}button.qaid-type-toggle:not(.qaid-type-toggle-custom){width:2.5rem;height:2.5rem;border-radius:50%}button.qaid-type-toggle:not(.qaid-type-toggle-custom) svg{width:1.25rem;height:1.25rem}button.qaid-type-toggle.qaid-type-up{background:var(--qaid-positive);color:#fff}button.qaid-type-toggle.qaid-type-down{background:var(--qaid-negative);color:#fff}.qaid-type-static{width:2.5rem;height:2.5rem;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--qaid-marker, #6365f1);color:var(--qaid-marker-text, white)}.qaid-type-static svg{width:1.25rem;height:1.25rem}.qaid-modal-header-text{flex:1;min-width:0}.qaid-modal-title{font-size:calc(var(--qaid-font-size, 16px) * 1.125);font-weight:700;margin:0 0 .25rem;color:light-dark(#1f2937,#f9fafb)}.qaid-modal-subtitle{color:light-dark(#6b7280,#9ca3af);margin:0;font-size:calc(var(--qaid-font-size, 16px) * .875)}.qaid-textarea{width:100%;height:6rem;padding:.75rem;border:1px solid light-dark(#d1d5db,#374151);border-radius:.5rem;font-family:inherit;font-size:var(--qaid-font-size, 16px);resize:vertical;margin-bottom:1rem;box-sizing:border-box;background:light-dark(#ffffff,#111827);color:light-dark(#1f2937,#f9fafb)}.qaid-textarea:focus{outline:none;border-color:var(--qaid-marker);box-shadow:0 0 0 3px color-mix(in srgb,var(--qaid-marker) 20%,transparent)}.qaid-btn-row{display:flex;gap:.5rem;justify-content:flex-end}button.qaid-btn-submit{padding:.5rem 1rem;background:var(--qaid-marker);color:var(--qaid-marker-text, white);border:none;border-radius:.5rem;font-size:calc(var(--qaid-font-size, 16px) * .875);font-weight:500;cursor:pointer;transition:background-color .2s,filter .2s;-webkit-appearance:none;appearance:none}button.qaid-btn-submit:hover{filter:brightness(.85)}button.qaid-btn-submit:focus{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--qaid-marker) 30%,transparent)}.qaid-bottom-sheet{position:fixed;bottom:0;left:0;right:0;z-index:50;animation:qaid-slideUpSheet .3s ease-out;font-family:var(--qaid-font-family, system-ui, -apple-system, sans-serif);font-size:var(--qaid-font-size, 16px)}.qaid-bottom-sheet-content{background:light-dark(#ffffff,#1f2937);border-radius:1rem 1rem 0 0;padding:1.5rem;padding-bottom:max(1.5rem,env(safe-area-inset-bottom))}.qaid-bottom-sheet-handle{width:36px;height:4px;background:light-dark(rgba(0,0,0,.2),rgba(255,255,255,.2));border-radius:2px;margin:0 auto 1rem}@keyframes qaid-slideUpSheet{0%{transform:translateY(100%)}to{transform:translateY(0)}}button.qaid-btn-record:hover{background:#dc2626;color:#fff}.qaid-recording-indicator{position:fixed;pointer-events:auto;top:12px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:light-dark(#1f2937,#374151);color:#fff;border-radius:9999px;font-family:var(--qaid-font-family, system-ui, -apple-system, sans-serif);font-size:calc(var(--qaid-font-size, 16px) * .875);font-weight:500;box-shadow:0 4px 12px #0000004d;z-index:99999;animation:qaid-slideDown .2s ease-out}.qaid-recording-dot{width:10px;height:10px;background:#dc2626;border-radius:50%;animation:qaid-dotPulse 1.5s ease-in-out infinite}@keyframes qaid-dotPulse{0%,to{opacity:1}50%{opacity:.3}}.qaid-recording-time{font-variant-numeric:tabular-nums;min-width:2.5rem;text-align:center}button.qaid-recording-stop{padding:.25rem .75rem;background:#dc2626;color:#fff;border:none;border-radius:9999px;font-size:calc(var(--qaid-font-size, 16px) * .75);font-weight:600;cursor:pointer;transition:background-color .2s;-webkit-appearance:none;appearance:none}button.qaid-recording-stop:hover{background:#b91c1c}.qaid-video-preview{position:fixed;inset:0 0 auto;height:100vh;height:100dvh;display:flex;align-items:center;justify-content:center;padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));box-sizing:border-box;background:#0009;z-index:99998;animation:qaid-fadeIn .2s ease-out}@keyframes qaid-fadeIn{0%{opacity:0}to{opacity:1}}.qaid-video-preview-box{color-scheme:inherit;background:light-dark(#ffffff,#1f2937);border-radius:1rem;padding:1.5rem;box-shadow:0 25px 50px -12px #00000080;width:560px;max-width:100%;max-height:100%;overflow-y:auto;font-family:var(--qaid-font-family, system-ui, -apple-system, sans-serif);font-size:var(--qaid-font-size, 16px)}.qaid-video-preview-box h3{font-size:calc(var(--qaid-font-size, 16px) * 1.125);font-weight:700;margin:0 0 1rem;color:light-dark(#1f2937,#f9fafb)}.qaid-video-preview-box video{width:100%;max-height:50vh;max-height:50dvh;object-fit:contain;border-radius:.5rem;background:#000;margin-bottom:1rem}.qaid-video-preview-box textarea{width:100%;height:4rem;padding:.75rem;border:1px solid light-dark(#d1d5db,#374151);border-radius:.5rem;font-family:inherit;font-size:calc(var(--qaid-font-size, 16px) * .875);resize:vertical;margin-bottom:1rem;box-sizing:border-box;background:light-dark(#ffffff,#111827);color:light-dark(#1f2937,#f9fafb)}.qaid-video-preview-box textarea:focus{outline:none;border-color:var(--qaid-marker);box-shadow:0 0 0 3px color-mix(in srgb,var(--qaid-marker) 20%,transparent)}.qaid-video-error{margin:0 0 .75rem;font-size:calc(var(--qaid-font-size, 16px) * .875);font-weight:500;color:light-dark(#b91c1c,#fca5a5)}.qaid-video-preview-actions{display:flex;gap:.5rem;justify-content:flex-end}button.qaid-video-btn{padding:.5rem 1rem;border:none;border-radius:.5rem;font-size:calc(var(--qaid-font-size, 16px) * .875);font-weight:500;cursor:pointer;transition:background-color .2s,filter .2s;-webkit-appearance:none;appearance:none}button.qaid-video-btn-cancel{background:light-dark(#f3f4f6,#374151);color:light-dark(#374151,#d1d5db)}button.qaid-video-btn-cancel:hover{background:light-dark(#e5e7eb,#4b5563)}button.qaid-video-btn-rerecord{background:light-dark(#fef3c7,#78350f);color:light-dark(#92400e,#fde68a)}button.qaid-video-btn-rerecord:hover{filter:brightness(.9)}button.qaid-video-btn-send{background:var(--qaid-marker);color:var(--qaid-marker-text, white)}button.qaid-video-btn-send:hover{filter:brightness(.85)}button.qaid-video-btn-send:disabled{opacity:.5;cursor:not-allowed}.qaid-video-sending{display:flex;align-items:center;gap:.5rem;font-size:calc(var(--qaid-font-size, 16px) * .875);color:light-dark(#6b7280,#9ca3af)}.qaid-annotate{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;gap:.75rem;padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));box-sizing:border-box;background:#000000d9;font-family:var(--qaid-font-family, system-ui, -apple-system, sans-serif);font-size:var(--qaid-font-size, 16px);animation:qaid-fadeIn .2s ease-out}.qaid-annotate-title{margin:0;font-size:var(--qaid-font-size, 16px);font-weight:700;text-align:center;color:#f9fafb}.qaid-annotate-desc{margin:0;font-size:calc(var(--qaid-font-size, 16px) * .8125);line-height:1.4;text-align:center;color:#f9fafbbf}.qaid-annotate-stage{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto}.qaid-annotate-canvas{max-width:100%;max-height:100%;object-fit:contain;background:light-dark(#ffffff,#111827);border-radius:.5rem;box-shadow:0 10px 30px #00000080;touch-action:none;cursor:crosshair}.qaid-annotate-toolbar{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:center;padding:.5rem .75rem;background:light-dark(#ffffff,#1f2937);border-radius:.75rem;box-shadow:0 10px 30px light-dark(rgba(0,0,0,.25),rgba(0,0,0,.5))}.qaid-annotate-tools,.qaid-annotate-actions{display:flex;gap:.375rem;align-items:center}button.qaid-annotate-tool,button.qaid-annotate-action{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;min-width:44px;min-height:44px;padding:0 .75rem;border:1px solid light-dark(#d1d5db,#374151);border-radius:.5rem;background:light-dark(#f9fafb,#111827);color:light-dark(#1f2937,#f9fafb);font-family:inherit;font-size:calc(var(--qaid-font-size, 16px) * .8125);font-weight:600;cursor:pointer;-webkit-appearance:none;appearance:none;transition:background-color .15s,color .15s,border-color .15s,filter .15s}button.qaid-annotate-tool svg,button.qaid-annotate-action svg{width:20px;height:20px}.qaid-annotate-colors{display:flex;gap:.25rem;align-items:center}button.qaid-annotate-swatch{width:28px;height:28px;min-width:28px;padding:0;border-radius:9999px;border:2px solid light-dark(#d1d5db,#4b5563);background:var(--qaid-swatch, #000);cursor:pointer;-webkit-appearance:none;appearance:none;transition:transform .1s,box-shadow .15s,border-color .15s}button.qaid-annotate-swatch:hover{transform:scale(1.12)}button.qaid-annotate-swatch[aria-pressed=true]{border-color:light-dark(#111827,#f9fafb);box-shadow:0 0 0 2px var(--qaid-swatch)}@media(forced-colors:active){button.qaid-annotate-swatch[aria-pressed=true]{outline:2px solid Highlight;outline-offset:1px}}button.qaid-annotate-tool:hover,button.qaid-annotate-action:hover{background:light-dark(#eef2ff,#312e81)}button.qaid-annotate-tool[aria-pressed=true],button.qaid-annotate-done{background:var(--qaid-marker, #6365f1);color:var(--qaid-marker-text, #fff);border-color:var(--qaid-marker, #6365f1)}button.qaid-annotate-done:hover{filter:brightness(.9);background:var(--qaid-marker, #6365f1)}button.qaid-annotate-action:disabled{opacity:.45;cursor:not-allowed}@media(forced-colors:active){button.qaid-annotate-tool[aria-pressed=true],button.qaid-annotate-done{border:2px solid Highlight}.qaid-annotate-canvas{border:1px solid CanvasText}}button:focus-visible,textarea:focus-visible,a:focus-visible,[tabindex]:focus-visible,[role=button]:focus-visible{outline:2px solid var(--qaid-marker, #6365f1);outline-offset:2px}.qaid-textarea:focus-visible,button.qaid-btn-submit:focus-visible,.qaid-video-preview-box textarea:focus-visible{outline:2px solid var(--qaid-marker, #6365f1);outline-offset:2px}.qaid-buttons.qaid-incognito:focus-within{opacity:1}.qaid-buttons:focus-within .qaid-dismiss-btn,.qaid-dismiss-btn:focus-visible{opacity:1}.qaid-dismiss-btn{min-width:24px;min-height:24px}button.qaid-recording-stop{min-height:24px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(forced-colors:active){button:focus-visible,textarea:focus-visible,a:focus-visible,[tabindex]:focus-visible,[role=button]:focus-visible,.qaid-textarea:focus,button.qaid-btn-submit:focus,.qaid-video-preview-box textarea:focus{outline:2px solid CanvasText;outline-offset:2px}.qaid-selected-marker,.qaid-highlight-box{border-color:Highlight}}.qaid-confirm{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.5rem;padding:.5rem 0}.qaid-confirm-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:9999px;color:#fff;background:var(--qaid-success, #22c55e);margin-bottom:.25rem;animation:qaid-confirm-pop .28s cubic-bezier(.34,1.56,.64,1)}.qaid-confirm-icon .qaid-icon{width:24px;height:24px}.qaid-confirm-error .qaid-confirm-icon{background:var(--qaid-error, #dc2626)}.qaid-confirm-title{margin:0;font-size:var(--qaid-font-size, 16px);font-weight:600;color:var(--qaid-text, light-dark(#111827, #f9fafb))}.qaid-confirm-title:focus-visible{outline:2px solid var(--qaid-primary, #6365f1);outline-offset:3px;border-radius:4px}.qaid-confirm-message{margin:0;font-size:calc(var(--qaid-font-size, 16px) * .875);color:var(--qaid-text-muted, light-dark(#6b7280, #9ca3af))}.qaid-confirm .qaid-confirm-close{margin-top:.5rem;min-width:96px}@keyframes qaid-confirm-pop{0%{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.qaid-confirm-icon{animation:none}}", Bt = "body.qaid-targeting,body.qaid-targeting *{cursor:none!important}";
3
26
  let b = 0;
4
- const Pt = "button.qaid-btn{width:var(--qaid-btn-size);height:var(--qaid-btn-size);border-radius:50%;border:none;background:#f3f4f6;color:#374151;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);transition:background-color .2s,color .2s,transform .2s;-webkit-appearance:none;appearance:none;--qaid-hover-up-bg:var(--qaid-positive);--qaid-hover-up-color:#fff;--qaid-hover-down-bg:var(--qaid-negative);--qaid-hover-down-color:#fff}button.qaid-btn:hover{transform:scale(1.05)}button.qaid-btn-up:hover{background:var(--qaid-hover-up-bg);color:var(--qaid-hover-up-color)}button.qaid-btn-down:hover{background:var(--qaid-hover-down-bg);color:var(--qaid-hover-down-color)}button.qaid-btn-feedback:hover{background:var(--qaid-marker,#6365f1);color:var(--qaid-marker-text,#fff)}button.qaid-btn svg{width:var(--qaid-icon-size);height:var(--qaid-icon-size)}", Rt = {
27
+ const Ot = "button.qaid-btn{width:var(--qaid-btn-size);height:var(--qaid-btn-size);border-radius:50%;border:none;background:#f3f4f6;color:#374151;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);transition:background-color .2s,color .2s,transform .2s;-webkit-appearance:none;appearance:none;--qaid-hover-up-bg:var(--qaid-positive);--qaid-hover-up-color:#fff;--qaid-hover-down-bg:var(--qaid-negative);--qaid-hover-down-color:#fff}button.qaid-btn:hover{transform:scale(1.05)}button.qaid-btn-up:hover{background:var(--qaid-hover-up-bg);color:var(--qaid-hover-up-color)}button.qaid-btn-down:hover{background:var(--qaid-hover-down-bg);color:var(--qaid-hover-down-color)}button.qaid-btn-feedback:hover{background:var(--qaid-marker,#6365f1);color:var(--qaid-marker-text,#fff)}button.qaid-btn svg{width:var(--qaid-icon-size);height:var(--qaid-icon-size)}", Pt = {
5
28
  small: 36,
6
29
  medium: 48,
7
30
  large: 64
8
- }, Ft = {
31
+ }, Rt = {
9
32
  small: 18,
10
33
  medium: 24,
11
34
  large: 32
12
35
  };
13
- function Ut(e, t, i) {
14
- const [o, n, a] = [e, t, i].map((r) => (r = r / 255, r <= 0.03928 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4)));
15
- return 0.2126 * o + 0.7152 * n + 0.0722 * a;
36
+ function Nt(e, t, i) {
37
+ const [o, a, n] = [e, t, i].map((r) => (r = r / 255, r <= 0.03928 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4)));
38
+ return 0.2126 * o + 0.7152 * a + 0.0722 * n;
16
39
  }
17
- function Vt(e) {
40
+ function Ut(e) {
18
41
  if (e.startsWith("#")) {
19
- const i = e.slice(1), o = i.length === 3 ? i.split("").map((a) => a + a).join("") : i, n = parseInt(o, 16);
42
+ const i = e.slice(1), o = i.length === 3 ? i.split("").map((n) => n + n).join("") : i, a = parseInt(o, 16);
20
43
  return {
21
- r: n >> 16 & 255,
22
- g: n >> 8 & 255,
23
- b: n & 255
44
+ r: a >> 16 & 255,
45
+ g: a >> 8 & 255,
46
+ b: a & 255
24
47
  };
25
48
  }
26
49
  const t = e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
@@ -30,21 +53,21 @@ function Vt(e) {
30
53
  b: parseInt(t[3])
31
54
  } : null;
32
55
  }
33
- function $t(e) {
34
- const t = Vt(e);
35
- return t && Ut(t.r, t.g, t.b) > 0.4 ? "black" : "white";
56
+ function Ft(e) {
57
+ const t = Ut(e);
58
+ return t && Nt(t.r, t.g, t.b) > 0.4 ? "black" : "white";
36
59
  }
37
60
  function _t(e = {}) {
38
61
  const {
39
62
  positiveColor: t = "rgb(0, 200, 83)",
40
63
  negativeColor: i = "rgb(255, 0, 0)",
41
64
  markerColor: o = "#6365f1",
42
- buttonSize: n = "medium",
43
- modalWidth: a = 400,
65
+ buttonSize: a = "medium",
66
+ modalWidth: n = 400,
44
67
  backdropOpacity: r = 0.3,
45
68
  fontFamily: l = "system-ui, -apple-system, sans-serif",
46
69
  fontSize: c = 16
47
- } = e, d = Rt[n], s = Ft[n], u = $t(o);
70
+ } = e, d = Pt[a], s = Rt[a], u = Ft(o);
48
71
  return {
49
72
  "--qaid-positive": t,
50
73
  "--qaid-negative": i,
@@ -52,28 +75,28 @@ function _t(e = {}) {
52
75
  "--qaid-marker-text": u,
53
76
  "--qaid-btn-size": `${d}px`,
54
77
  "--qaid-icon-size": `${s}px`,
55
- "--qaid-modal-width": `${a}px`,
78
+ "--qaid-modal-width": `${n}px`,
56
79
  "--qaid-backdrop-opacity": String(r),
57
80
  "--qaid-font-family": l,
58
81
  "--qaid-font-size": `${c}px`
59
82
  };
60
83
  }
61
- function Kt(e, t) {
84
+ function Vt(e, t) {
62
85
  for (const [i, o] of Object.entries(t))
63
86
  e.style.setProperty(i, o);
64
87
  }
65
88
  function Y() {
66
- return Bt + Pt;
89
+ return Ht + Ot;
67
90
  }
68
- function Nt() {
91
+ function jt() {
69
92
  if (b++, b > 1) return;
70
93
  const e = document.createElement("style");
71
- e.id = "qaid-styles", e.textContent = Ot, document.head.appendChild(e);
94
+ e.id = "qaid-styles", e.textContent = Bt, document.head.appendChild(e);
72
95
  }
73
- function Qt() {
96
+ function $t() {
74
97
  b <= 0 || (b--, b === 0 && document.getElementById("qaid-styles")?.remove());
75
98
  }
76
- const X = "data-qaid-a11y-live", jt = "position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;", Wt = [
99
+ const X = "data-qaid-a11y-live", Kt = "position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;", Qt = [
77
100
  "a[href]",
78
101
  "button",
79
102
  "input",
@@ -81,25 +104,25 @@ const X = "data-qaid-a11y-live", jt = "position:absolute;width:1px;height:1px;ma
81
104
  "select",
82
105
  "[tabindex]"
83
106
  ].join(",");
84
- function Yt(e) {
107
+ function Wt(e) {
85
108
  return e.ownerDocument || document;
86
109
  }
87
- function Xt(e, t) {
110
+ function Yt(e, t) {
88
111
  const i = t ? "assertive" : "polite", o = e.querySelector(
89
112
  `[${X}="${i}"]`
90
113
  );
91
114
  if (o) return o;
92
- const a = Yt(e).createElement("div");
93
- return a.setAttribute(X, i), a.setAttribute("role", t ? "alert" : "status"), a.setAttribute("aria-live", t ? "assertive" : "polite"), a.setAttribute("aria-atomic", "true"), a.style.cssText = jt, e.appendChild(a), a;
115
+ const n = Wt(e).createElement("div");
116
+ return n.setAttribute(X, i), n.setAttribute("role", t ? "alert" : "status"), n.setAttribute("aria-live", t ? "assertive" : "polite"), n.setAttribute("aria-atomic", "true"), n.style.cssText = Kt, e.appendChild(n), n;
94
117
  }
95
- function Jt(e, t, i = {}) {
96
- const o = Xt(e, !!i.assertive);
118
+ function Xt(e, t, i = {}) {
119
+ const o = Yt(e, !!i.assertive);
97
120
  o.textContent = "", o.textContent = t;
98
121
  }
99
- function Gt(e) {
122
+ function Jt(e) {
100
123
  return e.hasAttribute("disabled") ? !0 : e.disabled === !0;
101
124
  }
102
- function Zt(e) {
125
+ function Gt(e) {
103
126
  let t = e;
104
127
  for (; t; ) {
105
128
  if (t.hasAttribute("hidden")) return !0;
@@ -112,8 +135,8 @@ function Zt(e) {
112
135
  }
113
136
  function J(e) {
114
137
  return Array.from(
115
- e.querySelectorAll(Wt)
116
- ).filter((i) => !(i.getAttribute("tabindex") === "-1" || i instanceof HTMLInputElement && i.type === "hidden" || i instanceof HTMLAnchorElement && !i.getAttribute("href") || Gt(i) || Zt(i)));
138
+ e.querySelectorAll(Qt)
139
+ ).filter((i) => !(i.getAttribute("tabindex") === "-1" || i instanceof HTMLInputElement && i.type === "hidden" || i instanceof HTMLAnchorElement && !i.getAttribute("href") || Jt(i) || Gt(i)));
117
140
  }
118
141
  function it(e) {
119
142
  let t = e.activeElement;
@@ -121,41 +144,41 @@ function it(e) {
121
144
  t = t.shadowRoot.activeElement;
122
145
  return t instanceof HTMLElement ? t : null;
123
146
  }
124
- function te(e) {
147
+ function Zt(e) {
125
148
  const t = e.ownerDocument || document;
126
149
  let i = !1;
127
- const o = (a) => {
128
- if (a.key !== "Tab") return;
150
+ const o = (n) => {
151
+ if (n.key !== "Tab") return;
129
152
  const r = J(e);
130
153
  if (r.length === 0) {
131
- a.preventDefault(), e.focus();
154
+ n.preventDefault(), e.focus();
132
155
  return;
133
156
  }
134
157
  const l = r[0], c = r[r.length - 1], d = it(t), s = d ? r.indexOf(d) !== -1 : !1;
135
- a.shiftKey ? (!s || d === l) && (a.preventDefault(), c.focus()) : (!s || d === c) && (a.preventDefault(), l.focus());
158
+ n.shiftKey ? (!s || d === l) && (n.preventDefault(), c.focus()) : (!s || d === c) && (n.preventDefault(), l.focus());
136
159
  };
137
160
  e.addEventListener("keydown", o);
138
- const n = J(e);
139
- return n.length > 0 ? n[0].focus() : (e.hasAttribute("tabindex") || (e.setAttribute("tabindex", "-1"), i = !0), e.focus()), {
161
+ const a = J(e);
162
+ return a.length > 0 ? a[0].focus() : (e.hasAttribute("tabindex") || (e.setAttribute("tabindex", "-1"), i = !0), e.focus()), {
140
163
  release() {
141
164
  e.removeEventListener("keydown", o), i && (e.removeAttribute("tabindex"), i = !1);
142
165
  }
143
166
  };
144
167
  }
145
- function ee() {
168
+ function te() {
146
169
  return it(document);
147
170
  }
148
- function ie(e) {
171
+ function ee(e) {
149
172
  if (!(!e || typeof e.focus != "function"))
150
173
  try {
151
174
  e.focus();
152
175
  } catch {
153
176
  }
154
177
  }
155
- function oe(e, t = {}) {
178
+ function ie(e, t = {}) {
156
179
  e.setAttribute("role", "dialog"), e.setAttribute("aria-modal", "true"), t.labelledbyId && e.setAttribute("aria-labelledby", t.labelledbyId), t.describedbyId && e.setAttribute("aria-describedby", t.describedbyId), t.label && e.setAttribute("aria-label", t.label);
157
180
  }
158
- function ae(e, t) {
181
+ function oe(e, t) {
159
182
  let i = e;
160
183
  for (; i && i !== t; ) {
161
184
  const o = i.parentNode;
@@ -173,14 +196,14 @@ function ne(e) {
173
196
  const i = (e.ownerDocument || document).body;
174
197
  if (!i) return () => {
175
198
  };
176
- const o = ae(e, i), n = [];
177
- return Array.from(i.children).forEach((a) => {
178
- if (!(a instanceof HTMLElement) || o && a === o) return;
179
- const r = a.inert === !0, l = a.getAttribute("aria-hidden");
180
- r && l === "true" || (a.inert = !0, a.setAttribute("aria-hidden", "true"), n.push({ el: a, prevInert: r, prevAriaHidden: l }));
199
+ const o = oe(e, i), a = [];
200
+ return Array.from(i.children).forEach((n) => {
201
+ if (!(n instanceof HTMLElement) || o && n === o) return;
202
+ const r = n.inert === !0, l = n.getAttribute("aria-hidden");
203
+ r && l === "true" || (n.inert = !0, n.setAttribute("aria-hidden", "true"), a.push({ el: n, prevInert: r, prevAriaHidden: l }));
181
204
  }), function() {
182
- for (; n.length; ) {
183
- const r = n.pop();
205
+ for (; a.length; ) {
206
+ const r = a.pop();
184
207
  r.el.inert = r.prevInert, r.prevAriaHidden === null ? r.el.removeAttribute("aria-hidden") : r.el.setAttribute("aria-hidden", r.prevAriaHidden);
185
208
  }
186
209
  };
@@ -192,93 +215,121 @@ const ot = {
192
215
  gap: 8,
193
216
  viewportPadding: 16
194
217
  };
195
- function re(e, t, i, o, n) {
196
- const a = e.y, r = t - (e.y + e.height);
218
+ function ae(e, t, i, o, a) {
219
+ const n = e.y, r = t - (e.y + e.height);
197
220
  if (r >= i + o)
198
221
  return {
199
222
  top: e.y + e.height + o,
200
223
  position: "below"
201
224
  };
202
- if (a >= i + o)
225
+ if (n >= i + o)
203
226
  return {
204
227
  top: e.y - i - o,
205
228
  position: "above"
206
229
  };
207
- const l = r > a ? "below" : "above";
230
+ const l = r > n ? "below" : "above";
208
231
  let c;
209
232
  return l === "below" ? c = Math.min(
210
233
  e.y + e.height + o,
211
- t - i - n
212
- ) : c = Math.max(n, e.y - i - o), { top: c, position: l };
234
+ t - i - a
235
+ ) : c = Math.max(a, e.y - i - o), { top: c, position: l };
213
236
  }
214
- function se(e, t, i, o) {
215
- let a = e.x + e.width / 2 - i / 2;
216
- return a = Math.max(o, Math.min(a, t - i - o)), a;
237
+ function re(e, t, i, o) {
238
+ let n = e.x + e.width / 2 - i / 2;
239
+ return n = Math.max(o, Math.min(n, t - i - o)), n;
217
240
  }
218
- function de(e, t, i, o = 24, n = 24) {
219
- const r = e.clickX - t - n / 2;
220
- return Math.max(o, Math.min(r, i - o - n / 2));
241
+ function se(e, t, i, o = 24, a = 24) {
242
+ const r = e.clickX - t - a / 2;
243
+ return Math.max(o, Math.min(r, i - o - a / 2));
221
244
  }
222
- function le(e, t, i, o = ot) {
223
- const n = o.height + o.arrowHeight, a = re(
245
+ function de(e, t, i, o = ot) {
246
+ const a = o.height + o.arrowHeight, n = ae(
224
247
  e,
225
248
  i,
226
- n,
249
+ a,
227
250
  o.gap,
228
251
  o.viewportPadding
229
- ), r = se(
252
+ ), r = re(
230
253
  e,
231
254
  t,
232
255
  o.width,
233
256
  o.viewportPadding
234
257
  );
235
258
  return {
236
- top: a.top,
259
+ top: n.top,
237
260
  left: r,
238
- position: a.position
261
+ position: n.position
239
262
  };
240
263
  }
241
- function ce(e, t, i, o = {}) {
242
- const n = o.gap ?? 8;
243
- let a = e.bottom + n;
244
- a + t.height > i.height - n && (a = e.top - t.height - n);
264
+ function le(e, t, i, o = {}) {
265
+ const a = o.gap ?? 8;
266
+ let n = e.bottom + a;
267
+ n + t.height > i.height - a && (n = e.top - t.height - a);
245
268
  let r = e.left;
246
- return r < n ? r = n : r + t.width > i.width - n && (r = i.width - t.width - n), a < n ? a = n : a + t.height > i.height - n && (a = i.height - t.height - n), { top: a, left: r };
269
+ return r < a ? r = a : r + t.width > i.width - a && (r = i.width - t.width - a), n < a ? n = a : n + t.height > i.height - a && (n = i.height - t.height - a), { top: n, left: r };
247
270
  }
248
- function Ee(e, t, i, o = ot) {
249
- const n = le(e, t, i, o), a = de(
271
+ function Be(e, t, i, o = ot) {
272
+ const a = de(e, t, i, o), n = se(
250
273
  e,
251
- n.left,
274
+ a.left,
252
275
  o.width
253
276
  );
254
277
  return {
255
- modal: n,
256
- arrow: { left: a }
278
+ modal: a,
279
+ arrow: { left: n }
257
280
  };
258
281
  }
259
- const ue = 20;
260
- function he(e) {
261
- const t = [], i = console.error, o = console.warn, n = console.log, a = (r, l) => {
282
+ const ce = 20;
283
+ function ue(e) {
284
+ const t = [], i = console.error, o = console.warn, a = console.log, n = (r, l) => {
262
285
  const c = {
263
286
  message: l.map((d) => String(d)).join(" "),
264
287
  timestamp: Date.now(),
265
288
  level: r
266
289
  };
267
- t.length >= ue && t.shift(), t.push(c), e && e(c);
290
+ t.length >= ce && t.shift(), t.push(c), e && e(c);
268
291
  };
269
292
  return console.error = function(...r) {
270
- a("error", r), i.apply(console, r);
293
+ n("error", r), i.apply(console, r);
271
294
  }, console.warn = function(...r) {
272
- a("warn", r), o.apply(console, r);
295
+ n("warn", r), o.apply(console, r);
273
296
  }, console.log = function(...r) {
274
- a("log", r), n.apply(console, r);
297
+ n("log", r), a.apply(console, r);
275
298
  }, {
276
299
  errors: t,
277
300
  restore: () => {
278
- console.error = i, console.warn = o, console.log = n;
301
+ console.error = i, console.warn = o, console.log = a;
279
302
  }
280
303
  };
281
304
  }
305
+ function Oe(e, t, i) {
306
+ const o = document.createElement(e);
307
+ if (t)
308
+ for (const [a, n] of Object.entries(t))
309
+ a === "className" ? o.className = n : o.setAttribute(a, n);
310
+ return o;
311
+ }
312
+ function he(e = 640) {
313
+ return typeof window < "u" && window.innerWidth < e;
314
+ }
315
+ function Pe(e, t, i) {
316
+ const o = i.map((n) => n.style.visibility);
317
+ i.forEach((n) => n.style.visibility = "hidden");
318
+ const a = document.elementFromPoint(e, t);
319
+ return i.forEach((n, r) => n.style.visibility = o[r]), a;
320
+ }
321
+ function Re(e) {
322
+ return e ? e.hasAttribute("data-qaid-embed") || e.hasAttribute("data-qaid-embed-overlay") ? !0 : !!e.closest("[data-qaid-embed], [data-qaid-embed-overlay]") : !1;
323
+ }
324
+ function Ne(e, t = 0) {
325
+ const i = e.getBoundingClientRect();
326
+ return {
327
+ x: i.left - t,
328
+ y: i.top - t,
329
+ width: i.width + t * 2,
330
+ height: i.height + t * 2
331
+ };
332
+ }
282
333
  const fe = "https://unpkg.com/@qaiddev/quests-embed@1/dist/qaid-quests.js", pe = (e) => (
283
334
  // The URL is a runtime value, not a static specifier — keep Vite from
284
335
  // trying to analyze/bundle it.
@@ -288,23 +339,23 @@ const fe = "https://unpkg.com/@qaiddev/quests-embed@1/dist/qaid-quests.js", pe =
288
339
  )
289
340
  );
290
341
  let be = pe, p = null, k = null;
291
- const C = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map();
292
- function at(e, t) {
342
+ const A = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map();
343
+ function nt(e, t) {
293
344
  return `${e.replace(/\/+$/, "")}/${encodeURIComponent(t)}/definition`;
294
345
  }
295
346
  function me(e) {
296
- if (C.has(e)) return Promise.resolve();
297
- const t = S.get(e);
347
+ if (A.has(e)) return Promise.resolve();
348
+ const t = C.get(e);
298
349
  if (t) return t;
299
350
  const i = fetch(e, { headers: { Accept: "application/json" } }).then((o) => o.ok ? o.json() : null).then((o) => {
300
- o && C.set(e, o);
351
+ o && A.set(e, o);
301
352
  }).catch(() => {
302
353
  }).finally(() => {
303
- S.delete(e);
354
+ C.delete(e);
304
355
  });
305
- return S.set(e, i), i;
356
+ return C.set(e, i), i;
306
357
  }
307
- function nt(e) {
358
+ function at(e) {
308
359
  return p && k === e || (k = e, p = Promise.resolve(be(e)).then((t) => {
309
360
  const i = t;
310
361
  if (!i || typeof i.QaidQuests != "function")
@@ -315,18 +366,18 @@ function nt(e) {
315
366
  })), p;
316
367
  }
317
368
  async function ge(e) {
318
- const t = await nt(e.moduleUrl), i = e.base.replace(/\/+$/, ""), o = at(i, e.questId), n = (l) => l != null ? { feedbackId: l } : void 0;
319
- let a;
369
+ const t = await at(e.moduleUrl), i = e.base.replace(/\/+$/, ""), o = nt(i, e.questId), a = (l) => l != null ? { feedbackId: l } : void 0;
370
+ let n;
320
371
  const r = e.feedbackId;
321
- return r instanceof Promise ? a = t.QaidQuests.supports?.asyncMetadata ? r.then(n, () => {
322
- }) : n(await r.catch(() => null)) : a = n(r ?? null), new t.QaidQuests({
372
+ return r instanceof Promise ? n = t.QaidQuests.supports?.asyncMetadata ? r.then(a, () => {
373
+ }) : a(await r.catch(() => null)) : n = a(r ?? null), new t.QaidQuests({
323
374
  endpoint: `${i}/responses`,
324
375
  configUrl: o,
325
376
  // Only a definition already in hand. One still loading is left to the
326
377
  // widget, which shows its own loading state instead of nothing.
327
- questionnaire: C.get(o),
378
+ questionnaire: A.get(o),
328
379
  apiKey: e.apiKey || void 0,
329
- metadata: a,
380
+ metadata: n,
330
381
  onClose: e.onClose
331
382
  });
332
383
  }
@@ -341,19 +392,19 @@ const G = "qaid_visitor_id", Z = "qaid_hide_feedback", ve = [
341
392
  function ye() {
342
393
  return typeof window.matchMedia == "function" && window.matchMedia("(pointer: coarse)").matches;
343
394
  }
344
- function A(e) {
395
+ function S(e) {
345
396
  return e ? `${Z}_${e}` : Z;
346
397
  }
347
- function qe(e) {
398
+ function we(e) {
348
399
  try {
349
- return localStorage.getItem(A(e)) === "1";
400
+ return localStorage.getItem(S(e)) === "1";
350
401
  } catch {
351
402
  return !1;
352
403
  }
353
404
  }
354
405
  function tt(e, t = !0) {
355
406
  try {
356
- t ? localStorage.setItem(A(e), "1") : localStorage.removeItem(A(e));
407
+ t ? localStorage.setItem(S(e), "1") : localStorage.removeItem(S(e));
357
408
  } catch {
358
409
  }
359
410
  }
@@ -369,7 +420,7 @@ function et() {
369
420
  const i = Array.from(t, (o) => o.toString(16).padStart(2, "0")).join("");
370
421
  return `${i.slice(0, 8)}-${i.slice(8, 12)}-${i.slice(12, 16)}-${i.slice(16, 20)}-${i.slice(20)}`;
371
422
  }
372
- function we() {
423
+ function qe() {
373
424
  try {
374
425
  let e = localStorage.getItem(G);
375
426
  return e || (e = et(), localStorage.setItem(G, e)), e;
@@ -530,10 +581,10 @@ class xe {
530
581
  apiKey: t.quests?.apiKey ?? t.apiKey ?? "",
531
582
  moduleUrl: t.quests?.moduleUrl ?? fe
532
583
  }
533
- }, this.boundKeyDown = this.handleKeyDown.bind(this), this.boundResize = this.handleResize.bind(this), this.visitorId = we(), this.init();
584
+ }, this.boundKeyDown = this.handleKeyDown.bind(this), this.boundResize = this.handleResize.bind(this), this.visitorId = qe(), this.init();
534
585
  }
535
586
  applyVars(t) {
536
- Kt(t, this.cssVars);
587
+ Vt(t, this.cssVars);
537
588
  }
538
589
  /**
539
590
  * Announce a message via the shared visually-hidden live regions.
@@ -543,7 +594,7 @@ class xe {
543
594
  */
544
595
  announceMsg(t, i = !1) {
545
596
  const o = this.overlayShadowRoot ?? this.shadowRoot;
546
- o && Jt(o, t, { assertive: i });
597
+ o && Xt(o, t, { assertive: i });
547
598
  }
548
599
  /**
549
600
  * Turn a transient surface into an accessible modal dialog: save the
@@ -551,16 +602,16 @@ class xe {
551
602
  * background. Paired with closeDialogA11y() on every close path.
552
603
  */
553
604
  openDialogA11y(t, i) {
554
- this.dialogTrigger = ee(), oe(t, i), this.dialogTrap = te(t), this.dialogRestoreInert = ne(t);
605
+ this.dialogTrigger = te(), ie(t, i), this.dialogTrap = Zt(t), this.dialogRestoreInert = ne(t);
555
606
  }
556
607
  closeDialogA11y() {
557
- this.dialogTrap?.release(), this.dialogTrap = null, this.dialogRestoreInert && (this.dialogRestoreInert(), this.dialogRestoreInert = null), ie(this.dialogTrigger), this.dialogTrigger = null;
608
+ this.dialogTrap?.release(), this.dialogTrap = null, this.dialogRestoreInert && (this.dialogRestoreInert(), this.dialogRestoreInert = null), ee(this.dialogTrigger), this.dialogTrigger = null;
558
609
  }
559
610
  clearActiveThumb() {
560
611
  this.activeThumbBtn && (this.activeThumbBtn.setAttribute("aria-pressed", "false"), this.activeThumbBtn = null);
561
612
  }
562
613
  init() {
563
- Nt(), this.cssVars = _t({
614
+ jt(), this.cssVars = _t({
564
615
  positiveColor: this.config.colors.positive,
565
616
  negativeColor: this.config.colors.negative,
566
617
  markerColor: this.config.colors.marker,
@@ -569,7 +620,7 @@ class xe {
569
620
  backdropOpacity: this.config.backdropOpacity,
570
621
  fontFamily: this.config.fontFamily,
571
622
  fontSize: this.config.fontSize
572
- }), !this.config.hideDismiss && qe(this.config.apiKey) && (this._startDismissed = !0), this.checkMobile(), window.addEventListener("resize", this.boundResize), this.createEmbed(), this.consoleCapture = he((t) => {
623
+ }), !this.config.hideDismiss && we(this.config.apiKey) && (this._startDismissed = !0), this.checkMobile(), window.addEventListener("resize", this.boundResize), this.createEmbed(), this.consoleCapture = ue((t) => {
573
624
  this.feedbackData.consoleErrors = this.consoleCapture?.errors ?? [];
574
625
  }), this.feedbackData.consoleErrors = this.consoleCapture.errors, this.observeDom(), (this.config.captureVideo && this.videoSupported() || this.config.captureScreenshot || this.linkedQuestIds().length > 0) && this.schedulePrewarm(() => {
575
626
  this.config.captureVideo && this.videoSupported() && this.prewarmVideo(), this.config.captureScreenshot && this.prewarmScreenshot(), this.prewarmQuests();
@@ -582,13 +633,13 @@ class xe {
582
633
  * swallowed — a failed preload just falls back to an on-demand load.
583
634
  */
584
635
  prewarmVideo() {
585
- this.videoPrewarmed || (this.videoPrewarmed = !0, import("./recording-CcfOfIC7.js").catch(() => {
636
+ this.videoPrewarmed || (this.videoPrewarmed = !0, import("./recording-DNngIGr2.js").catch(() => {
586
637
  }), import("./video-Bd_29-rK.js").catch(() => {
587
638
  }));
588
639
  }
589
640
  prewarmScreenshot() {
590
641
  this.screenshotPrewarmed || (this.screenshotPrewarmed = !0, (this.shouldCaptureViaDom() ? import("./screenshot-dom-CME7tYRE.js") : import("./screenshot-DYOKg2bS.js")).catch(() => {
591
- }), this.config.annotate && import("./annotate-D-o8xCV9.js").then((t) => t.d).catch(() => {
642
+ }), this.config.annotate && import("./annotate-BTLeFQa0.js").catch(() => {
592
643
  }));
593
644
  }
594
645
  /** Quest ids linked to any button, when quest launching is on. */
@@ -605,10 +656,10 @@ class xe {
605
656
  if (this.questsPrewarmed) return;
606
657
  const t = this.linkedQuestIds();
607
658
  if (t.length !== 0) {
608
- this.questsPrewarmed = !0, nt(this.config.quests.moduleUrl).catch(() => {
659
+ this.questsPrewarmed = !0, at(this.config.quests.moduleUrl).catch(() => {
609
660
  });
610
661
  for (const i of t)
611
- me(at(this.config.quests.base, i));
662
+ me(nt(this.config.quests.base, i));
612
663
  }
613
664
  }
614
665
  /** Run fn when the main thread is idle; cancelled by destroy(). */
@@ -637,7 +688,7 @@ class xe {
637
688
  }), this.domObserver.observe(document.body, { childList: !0 });
638
689
  }
639
690
  checkMobile() {
640
- this.isMobile = Dt();
691
+ this.isMobile = he();
641
692
  }
642
693
  handleResize() {
643
694
  this.checkMobile();
@@ -666,25 +717,25 @@ class xe {
666
717
  }), this.buttonsContainer.addEventListener("pointerdown", () => {
667
718
  this.keyboardActivation = !1;
668
719
  });
669
- const n = !!this.config.buttonClass, a = n ? `qaid-btn-structural ${this.config.buttonClass}` : "qaid-btn", l = this.config.text.tooltip || "Feedback for us?", c = document.createElement("div");
720
+ const a = !!this.config.buttonClass, n = a ? `qaid-btn-structural ${this.config.buttonClass}` : "qaid-btn", l = this.config.text.tooltip || "Feedback for us?", c = document.createElement("div");
670
721
  if (c.className = "qaid-tooltip-text", c.textContent = l, this.applyVars(c), this.shadowRoot.appendChild(c), this.tooltipElement = c, this.config.singleButton) {
671
722
  const d = document.createElement("div");
672
723
  d.className = "qaid-tooltip-wrapper";
673
724
  const s = document.createElement("button");
674
- s.type = "button", s.className = n ? `${a} qaid-btn-feedback` : "qaid-btn qaid-btn-feedback", s.setAttribute("aria-label", this.config.text.feedbackLabel), s.innerHTML = this.config.feedbackIcon || zt, s.addEventListener("click", (u) => this.handleThumbClick("neutral", u.currentTarget, u)), s.addEventListener("mouseenter", () => {
725
+ s.type = "button", s.className = a ? `${n} qaid-btn-feedback` : "qaid-btn qaid-btn-feedback", s.setAttribute("aria-label", this.config.text.feedbackLabel), s.innerHTML = this.config.feedbackIcon || Lt, s.addEventListener("click", (u) => this.handleThumbClick("neutral", u.currentTarget, u)), s.addEventListener("mouseenter", () => {
675
726
  this.prewarmTargeting(), this.showTooltip(s);
676
727
  }), s.addEventListener("mouseleave", () => this.hideTooltip()), d.appendChild(s), this.buttonsContainer.appendChild(d);
677
728
  } else if (!this.config.hideThumbs) {
678
729
  const d = document.createElement("div");
679
730
  d.className = "qaid-tooltip-wrapper";
680
731
  const s = document.createElement("button");
681
- s.type = "button", s.className = n ? `${a} qaid-btn-up` : "qaid-btn qaid-btn-up", s.setAttribute("aria-label", this.config.text.positiveLabel), s.innerHTML = this.config.positiveIcon || Ht, s.addEventListener("click", (f) => this.handleThumbClick("up", f.currentTarget, f)), s.addEventListener("mouseenter", () => {
732
+ s.type = "button", s.className = a ? `${n} qaid-btn-up` : "qaid-btn qaid-btn-up", s.setAttribute("aria-label", this.config.text.positiveLabel), s.innerHTML = this.config.positiveIcon || Dt, s.addEventListener("click", (f) => this.handleThumbClick("up", f.currentTarget, f)), s.addEventListener("mouseenter", () => {
682
733
  this.prewarmTargeting(), this.prewarmQuests(), this.showTooltip(s);
683
734
  }), s.addEventListener("mouseleave", () => this.hideTooltip()), d.appendChild(s);
684
735
  const u = document.createElement("div");
685
736
  u.className = "qaid-tooltip-wrapper";
686
737
  const h = document.createElement("button");
687
- h.type = "button", h.className = n ? `${a} qaid-btn-down` : "qaid-btn qaid-btn-down", h.setAttribute("aria-label", this.config.text.negativeLabel), h.innerHTML = this.config.negativeIcon || Lt, h.addEventListener("click", (f) => this.handleThumbClick("down", f.currentTarget, f)), h.addEventListener("mouseenter", () => {
738
+ h.type = "button", h.className = a ? `${n} qaid-btn-down` : "qaid-btn qaid-btn-down", h.setAttribute("aria-label", this.config.text.negativeLabel), h.innerHTML = this.config.negativeIcon || zt, h.addEventListener("click", (f) => this.handleThumbClick("down", f.currentTarget, f)), h.addEventListener("mouseenter", () => {
688
739
  this.prewarmTargeting(), this.prewarmQuests(), this.showTooltip(h);
689
740
  }), h.addEventListener("mouseleave", () => this.hideTooltip()), u.appendChild(h), this.buttonsContainer.appendChild(d), this.buttonsContainer.appendChild(u);
690
741
  }
@@ -692,7 +743,7 @@ class xe {
692
743
  const d = document.createElement("div");
693
744
  d.className = "qaid-tooltip-wrapper";
694
745
  const s = document.createElement("button");
695
- s.type = "button", s.className = n ? `${a} qaid-btn-record` : "qaid-btn qaid-btn-record", s.setAttribute("aria-label", this.config.text.recordLabel), s.innerHTML = this.config.recordIcon || Mt, s.addEventListener("click", () => {
746
+ s.type = "button", s.className = a ? `${n} qaid-btn-record` : "qaid-btn qaid-btn-record", s.setAttribute("aria-label", this.config.text.recordLabel), s.innerHTML = this.config.recordIcon || Mt, s.addEventListener("click", () => {
696
747
  this.ensureRecording().then(
697
748
  (h) => this.config.videoOptions.redaction ? h.startPicking() : h.startRecording()
698
749
  );
@@ -726,12 +777,12 @@ class xe {
726
777
  showTooltip(t) {
727
778
  const i = this.tooltipElement;
728
779
  i.style.visibility = "hidden", i.classList.add("qaid-tooltip-visible");
729
- const o = t.getBoundingClientRect(), n = i.getBoundingClientRect(), { top: a, left: r } = ce(
780
+ const o = t.getBoundingClientRect(), a = i.getBoundingClientRect(), { top: n, left: r } = le(
730
781
  o,
731
- n,
782
+ a,
732
783
  { width: window.innerWidth, height: window.innerHeight }
733
784
  );
734
- i.style.top = `${a}px`, i.style.left = `${r}px`, i.style.visibility = "visible";
785
+ i.style.top = `${n}px`, i.style.left = `${r}px`, i.style.visibility = "visible";
735
786
  }
736
787
  hideTooltip() {
737
788
  this.tooltipElement.classList.remove("qaid-tooltip-visible");
@@ -744,9 +795,9 @@ class xe {
744
795
  this.submitDirectFeedback(t, i);
745
796
  else {
746
797
  this.activeThumbBtn = i, i.setAttribute("aria-pressed", "true");
747
- const n = this.keyboardActivation;
748
- this.keyboardActivation = !1, this.ensureTargeting().then((a) => {
749
- this.destroyed || (n ? a.startKeyboard(t) : a.startPointer(t, o));
798
+ const a = this.keyboardActivation;
799
+ this.keyboardActivation = !1, this.ensureTargeting().then((n) => {
800
+ this.destroyed || (a ? n.startKeyboard(t) : n.startPointer(t, o));
750
801
  });
751
802
  }
752
803
  }
@@ -783,11 +834,11 @@ class xe {
783
834
  * enabled while the editor is open and restored on close.
784
835
  */
785
836
  async openAnnotationEditor(t) {
786
- const i = this.ensureOverlayHost(), o = this.overlayShadowHost, n = o.style.pointerEvents;
837
+ const i = this.ensureOverlayHost(), o = this.overlayShadowHost, a = o.style.pointerEvents;
787
838
  o.style.pointerEvents = "auto";
788
839
  try {
789
- const { openAnnotationEditor: a } = await import("./annotate-D-o8xCV9.js").then((r) => r.d);
790
- return await a({
840
+ const { openAnnotationEditor: n } = await import("./annotate-BTLeFQa0.js");
841
+ return await n({
791
842
  dataUrl: t,
792
843
  root: i,
793
844
  quality: this.config.screenshotOptions.quality,
@@ -798,10 +849,10 @@ class xe {
798
849
  openDialog: (r, l) => this.openDialogA11y(r, l),
799
850
  closeDialog: () => this.closeDialogA11y()
800
851
  });
801
- } catch (a) {
802
- return console.error("Annotation editor failed to open:", a), null;
852
+ } catch (n) {
853
+ return console.error("Annotation editor failed to open:", n), null;
803
854
  } finally {
804
- o.style.pointerEvents = n;
855
+ o.style.pointerEvents = a;
805
856
  }
806
857
  }
807
858
  async submitFeedback() {
@@ -825,7 +876,7 @@ class xe {
825
876
  y: this.selectedBounds.y,
826
877
  width: this.selectedBounds.width,
827
878
  height: this.selectedBounds.height
828
- } : null, n = {
879
+ } : null, a = {
829
880
  feedbackType: this.feedbackData.feedbackType,
830
881
  pageUrl: window.location.href,
831
882
  apiKey: this.config.apiKey || void 0,
@@ -844,9 +895,9 @@ class xe {
844
895
  elementBounds: o,
845
896
  userAgent: navigator.userAgent
846
897
  };
847
- this.feedbackIdPromise = this.postFeedback(n);
848
- const a = this.feedbackData.feedbackType;
849
- if (a && a !== "neutral" && await this.tryLaunchQuest(a, this.feedbackIdPromise)) {
898
+ this.feedbackIdPromise = this.postFeedback(a);
899
+ const n = this.feedbackData.feedbackType;
900
+ if (n && n !== "neutral" && await this.tryLaunchQuest(n, this.feedbackIdPromise)) {
850
901
  this.resetFeedbackUi();
851
902
  return;
852
903
  }
@@ -905,8 +956,8 @@ class xe {
905
956
  this.activeQuest = null;
906
957
  }
907
958
  }), !0;
908
- } catch (n) {
909
- return console.error("Failed to launch quest:", n), this.activeQuest = null, !1;
959
+ } catch (a) {
960
+ return console.error("Failed to launch quest:", a), this.activeQuest = null, !1;
910
961
  }
911
962
  }
912
963
  /**
@@ -924,7 +975,7 @@ class xe {
924
975
  */
925
976
  async ensureModal() {
926
977
  if (!this.modal) {
927
- const { ModalController: t } = await import("./modal-DwwbWQ-F.js");
978
+ const { ModalController: t } = await import("./modal-zwBhxWO0.js");
928
979
  this.modal = new t(this.makeModalHost());
929
980
  }
930
981
  return this.modal;
@@ -965,7 +1016,7 @@ class xe {
965
1016
  }
966
1017
  /** Warm the modal chunk while the user is targeting, so it opens instantly. */
967
1018
  prewarmModal() {
968
- this.modalPrewarmed || (this.modalPrewarmed = !0, import("./modal-DwwbWQ-F.js").catch(() => {
1019
+ this.modalPrewarmed || (this.modalPrewarmed = !0, import("./modal-zwBhxWO0.js").catch(() => {
969
1020
  }));
970
1021
  }
971
1022
  /**
@@ -975,7 +1026,7 @@ class xe {
975
1026
  */
976
1027
  async ensureTargeting() {
977
1028
  if (!this.targeting) {
978
- const { TargetingController: t } = await import("./targeting-Dz6z1BYl.js");
1029
+ const { TargetingController: t } = await import("./targeting-DaBmGVk5.js");
979
1030
  this.targeting = new t(this.makeTargetingHost());
980
1031
  }
981
1032
  return this.targeting;
@@ -1020,7 +1071,7 @@ class xe {
1020
1071
  }
1021
1072
  /** Warm the targeting chunk on thumb-button hover, before the click. */
1022
1073
  prewarmTargeting() {
1023
- this.targetingPrewarmed || this.config.skipTargeting || (this.targetingPrewarmed = !0, import("./targeting-Dz6z1BYl.js").catch(() => {
1074
+ this.targetingPrewarmed || this.config.skipTargeting || (this.targetingPrewarmed = !0, import("./targeting-DaBmGVk5.js").catch(() => {
1024
1075
  }));
1025
1076
  }
1026
1077
  // ==================== Video Recording ====================
@@ -1039,7 +1090,7 @@ class xe {
1039
1090
  */
1040
1091
  async ensureRecording() {
1041
1092
  if (!this.recording) {
1042
- const { RecordingController: t } = await import("./recording-CcfOfIC7.js");
1093
+ const { RecordingController: t } = await import("./recording-DNngIGr2.js");
1043
1094
  this.recording = new t(this.makeRecordingHost());
1044
1095
  }
1045
1096
  return this.recording;
@@ -1095,7 +1146,7 @@ class xe {
1095
1146
  const t = window;
1096
1147
  this.prewarmIsTimeout ? clearTimeout(this.prewarmHandle) : t.cancelIdleCallback?.(this.prewarmHandle), this.prewarmHandle = null;
1097
1148
  }
1098
- this.recording?.destroy(), this.recording = null, this.modal?.destroy(), this.modal = null, this.activeQuest?.destroy(), this.activeQuest = null, this.consoleCapture && (this.consoleCapture.restore(), this.consoleCapture = null), window.removeEventListener("resize", this.boundResize), document.removeEventListener("keydown", this.boundKeyDown), document.body.classList.remove("qaid-targeting", "qaid-type-up"), document.body.style.removeProperty("--qaid-positive"), document.body.style.removeProperty("--qaid-negative"), this.shadowHost && (this.shadowHost.remove(), this.shadowHost = null, this.shadowRoot = null), this.overlayShadowHost && (this.overlayShadowHost.remove(), this.overlayShadowHost = null, this.overlayShadowRoot = null), this.buttonsContainer = null, this.dismissBtn = null, this.tooltipElement = null, Qt();
1149
+ this.recording?.destroy(), this.recording = null, this.modal?.destroy(), this.modal = null, this.activeQuest?.destroy(), this.activeQuest = null, this.consoleCapture && (this.consoleCapture.restore(), this.consoleCapture = null), window.removeEventListener("resize", this.boundResize), document.removeEventListener("keydown", this.boundKeyDown), document.body.classList.remove("qaid-targeting", "qaid-type-up"), document.body.style.removeProperty("--qaid-positive"), document.body.style.removeProperty("--qaid-negative"), this.shadowHost && (this.shadowHost.remove(), this.shadowHost = null, this.shadowRoot = null), this.overlayShadowHost && (this.overlayShadowHost.remove(), this.overlayShadowHost = null, this.overlayShadowRoot = null), this.buttonsContainer = null, this.dismissBtn = null, this.tooltipElement = null, $t();
1099
1150
  }
1100
1151
  }
1101
1152
  function rt(e) {
@@ -1118,14 +1169,14 @@ function ke() {
1118
1169
  function st(e, t, i) {
1119
1170
  console.warn(`[thumbs-embed] Ignoring ${e}="${t}": expected ${i}.`);
1120
1171
  }
1121
- function Se(e) {
1172
+ function Ce(e) {
1122
1173
  const t = [];
1123
1174
  let i = 0, o = "";
1124
- for (const n of e)
1125
- n === "(" && i++, n === ")" && (i = Math.max(0, i - 1)), n === "," && i === 0 ? (t.push(o.trim()), o = "") : o += n;
1175
+ for (const a of e)
1176
+ a === "(" && i++, a === ")" && (i = Math.max(0, i - 1)), a === "," && i === 0 ? (t.push(o.trim()), o = "") : o += a;
1126
1177
  return t.push(o.trim()), t;
1127
1178
  }
1128
- function Ce(e, t) {
1179
+ function Ae(e, t) {
1129
1180
  if (t === null) return;
1130
1181
  const i = t.trim();
1131
1182
  let o = null;
@@ -1136,9 +1187,9 @@ function Ce(e, t) {
1136
1187
  o = null;
1137
1188
  }
1138
1189
  else
1139
- o = Se(i);
1140
- if (Array.isArray(o) && o.length > 0 && o.every((n) => typeof n == "string" && n.trim() !== ""))
1141
- return o.map((n) => n.trim());
1190
+ o = Ce(i);
1191
+ if (Array.isArray(o) && o.length > 0 && o.every((a) => typeof a == "string" && a.trim() !== ""))
1192
+ return o.map((a) => a.trim());
1142
1193
  st(e, t, "a JSON array of colours or a comma-separated list");
1143
1194
  }
1144
1195
  function m(e, t) {
@@ -1150,32 +1201,32 @@ function m(e, t) {
1150
1201
  return t;
1151
1202
  }
1152
1203
  }
1153
- function Ae(e) {
1204
+ function Se(e) {
1154
1205
  const t = e.getAttribute("data-endpoint");
1155
1206
  if (!t) return null;
1156
- const i = e.getAttribute("data-position"), o = e.getAttribute("data-zindex"), n = e.getAttribute("data-positive-color"), a = e.getAttribute("data-negative-color"), r = e.getAttribute("data-marker-color"), l = e.getAttribute("data-container"), c = e.getAttribute("data-button-class"), d = e.getAttribute("data-skip-targeting"), s = e.getAttribute("data-hide-confirmation"), u = e.getAttribute("data-single-button"), h = e.getAttribute("data-feedback-mode"), f = e.getAttribute("data-incognito"), dt = e.getAttribute("data-button-size"), g = e.getAttribute("data-offset-x"), v = e.getAttribute("data-offset-y"), T = e.getAttribute("data-modal-width"), I = e.getAttribute("data-backdrop-opacity"), lt = e.getAttribute("data-font-family"), E = e.getAttribute("data-font-size"), D = e.getAttribute("data-tooltip"), z = e.getAttribute("data-modal-title"), H = e.getAttribute("data-confirmation-title"), L = e.getAttribute("data-confirmation-message"), M = e.getAttribute("data-confirmation-close"), B = e.getAttribute("data-error-title"), O = e.getAttribute("data-error-message"), P = e.getAttribute("data-modal-subtitle"), R = e.getAttribute("data-placeholder"), F = e.getAttribute("data-submit-button"), U = e.getAttribute("data-skip-button"), ct = e.getAttribute("data-positive-icon"), ut = e.getAttribute("data-negative-icon"), ht = e.getAttribute("data-feedback-icon"), V = e.getAttribute("data-feedback-label"), ft = e.getAttribute("data-api-key"), pt = e.getAttribute("data-capture-screenshot"), bt = e.getAttribute("data-annotate"), mt = e.getAttribute("data-annotation-color"), y = e.getAttribute("data-screenshot-quality"), q = e.getAttribute("data-screenshot-max-width"), w = e.getAttribute("data-screenshot-max-height"), gt = e.getAttribute("data-capture-video"), $ = e.getAttribute("data-video-redaction"), vt = e.getAttribute("data-hide-thumbs"), yt = e.getAttribute("data-hide-dismiss"), x = e.getAttribute("data-video-max-duration"), qt = e.getAttribute("data-screenshot-method"), wt = e.getAttribute("data-direction"), _ = e.getAttribute("data-css-selector"), xt = e.getAttribute("data-css"), K = m("data-positive-label", e.getAttribute("data-positive-label")), N = m("data-negative-label", e.getAttribute("data-negative-label")), Q = m("data-record-label", e.getAttribute("data-record-label")), j = m("data-dismiss-label", e.getAttribute("data-dismiss-label")), kt = Ce(
1207
+ const i = e.getAttribute("data-position"), o = e.getAttribute("data-zindex"), a = e.getAttribute("data-positive-color"), n = e.getAttribute("data-negative-color"), r = e.getAttribute("data-marker-color"), l = e.getAttribute("data-container"), c = e.getAttribute("data-button-class"), d = e.getAttribute("data-skip-targeting"), s = e.getAttribute("data-hide-confirmation"), u = e.getAttribute("data-single-button"), h = e.getAttribute("data-feedback-mode"), f = e.getAttribute("data-incognito"), dt = e.getAttribute("data-button-size"), g = e.getAttribute("data-offset-x"), v = e.getAttribute("data-offset-y"), T = e.getAttribute("data-modal-width"), E = e.getAttribute("data-backdrop-opacity"), lt = e.getAttribute("data-font-family"), I = e.getAttribute("data-font-size"), D = e.getAttribute("data-tooltip"), z = e.getAttribute("data-modal-title"), M = e.getAttribute("data-confirmation-title"), L = e.getAttribute("data-confirmation-message"), H = e.getAttribute("data-confirmation-close"), B = e.getAttribute("data-error-title"), O = e.getAttribute("data-error-message"), P = e.getAttribute("data-modal-subtitle"), R = e.getAttribute("data-placeholder"), N = e.getAttribute("data-submit-button"), U = e.getAttribute("data-skip-button"), ct = e.getAttribute("data-positive-icon"), ut = e.getAttribute("data-negative-icon"), ht = e.getAttribute("data-feedback-icon"), F = e.getAttribute("data-feedback-label"), ft = e.getAttribute("data-api-key"), pt = e.getAttribute("data-capture-screenshot"), bt = e.getAttribute("data-annotate"), mt = e.getAttribute("data-annotation-color"), y = e.getAttribute("data-screenshot-quality"), w = e.getAttribute("data-screenshot-max-width"), q = e.getAttribute("data-screenshot-max-height"), gt = e.getAttribute("data-capture-video"), _ = e.getAttribute("data-video-redaction"), vt = e.getAttribute("data-hide-thumbs"), yt = e.getAttribute("data-hide-dismiss"), x = e.getAttribute("data-video-max-duration"), wt = e.getAttribute("data-screenshot-method"), qt = e.getAttribute("data-direction"), V = e.getAttribute("data-css-selector"), xt = e.getAttribute("data-css"), j = m("data-positive-label", e.getAttribute("data-positive-label")), $ = m("data-negative-label", e.getAttribute("data-negative-label")), K = m("data-record-label", e.getAttribute("data-record-label")), Q = m("data-dismiss-label", e.getAttribute("data-dismiss-label")), kt = Ae(
1157
1208
  "data-annotation-palette",
1158
1209
  e.getAttribute("data-annotation-palette")
1159
- ), St = e.getAttribute("data-record-icon"), W = e.getAttribute("data-quest-base"), Ct = e.getAttribute("data-quest-up"), At = e.getAttribute("data-quest-down"), Tt = e.getAttribute("data-quest-video"), It = e.getAttribute("data-quest-api-key"), Et = e.getAttribute("data-quest-module-url");
1210
+ ), Ct = e.getAttribute("data-record-icon"), W = e.getAttribute("data-quest-base"), At = e.getAttribute("data-quest-up"), St = e.getAttribute("data-quest-down"), Tt = e.getAttribute("data-quest-video"), Et = e.getAttribute("data-quest-api-key"), It = e.getAttribute("data-quest-module-url");
1160
1211
  return {
1161
1212
  endpoint: t,
1162
1213
  // Inline CSS wins over a selector, as `css` wins over `cssSelector` in
1163
1214
  // the JSON block.
1164
- css: xt || (_ ? rt(_) : void 0),
1215
+ css: xt || (V ? rt(V) : void 0),
1165
1216
  apiKey: ft ?? void 0,
1166
1217
  captureScreenshot: pt === "true" ? !0 : void 0,
1167
1218
  // Annotation is on by default; only an explicit "false" disables it.
1168
1219
  annotate: bt === "false" ? !1 : void 0,
1169
1220
  annotationColor: mt ?? void 0,
1170
1221
  annotationPalette: kt,
1171
- screenshotOptions: y || q || w ? {
1222
+ screenshotOptions: y || w || q ? {
1172
1223
  quality: y ? parseFloat(y) : void 0,
1173
- maxWidth: q ? parseInt(q, 10) : void 0,
1174
- maxHeight: w ? parseInt(w, 10) : void 0
1224
+ maxWidth: w ? parseInt(w, 10) : void 0,
1225
+ maxHeight: q ? parseInt(q, 10) : void 0
1175
1226
  } : void 0,
1176
1227
  container: l ?? void 0,
1177
1228
  buttonClass: c ?? void 0,
1178
- direction: wt ?? void 0,
1229
+ direction: qt ?? void 0,
1179
1230
  position: i ?? void 0,
1180
1231
  zIndex: o ? parseInt(o, 10) : void 0,
1181
1232
  skipTargeting: d === "true" ? !0 : void 0,
@@ -1189,65 +1240,80 @@ function Ae(e) {
1189
1240
  y: v ? parseInt(v, 10) : void 0
1190
1241
  } : void 0,
1191
1242
  modalWidth: T ? parseInt(T, 10) : void 0,
1192
- backdropOpacity: I ? parseFloat(I) : void 0,
1243
+ backdropOpacity: E ? parseFloat(E) : void 0,
1193
1244
  fontFamily: lt ?? void 0,
1194
- fontSize: E ? parseInt(E, 10) : void 0,
1245
+ fontSize: I ? parseInt(I, 10) : void 0,
1195
1246
  colors: {
1196
- positive: n ?? void 0,
1197
- negative: a ?? void 0,
1247
+ positive: a ?? void 0,
1248
+ negative: n ?? void 0,
1198
1249
  marker: r ?? void 0
1199
1250
  },
1200
- text: D || z || P || R || F || U || V || H || L || M || B || O || K || N || Q || j ? {
1251
+ text: D || z || P || R || N || U || F || M || L || H || B || O || j || $ || K || Q ? {
1201
1252
  tooltip: D ?? void 0,
1202
1253
  modalTitle: z ?? void 0,
1203
1254
  modalSubtitle: P ?? void 0,
1204
1255
  placeholder: R ?? void 0,
1205
- submitButton: F ?? void 0,
1256
+ submitButton: N ?? void 0,
1206
1257
  skipButton: U ?? void 0,
1207
- feedbackLabel: V ?? void 0,
1208
- confirmationTitle: H ?? void 0,
1258
+ feedbackLabel: F ?? void 0,
1259
+ confirmationTitle: M ?? void 0,
1209
1260
  confirmationMessage: L ?? void 0,
1210
- confirmationClose: M ?? void 0,
1261
+ confirmationClose: H ?? void 0,
1211
1262
  errorTitle: B ?? void 0,
1212
1263
  errorMessage: O ?? void 0,
1213
- positiveLabel: K,
1214
- negativeLabel: N,
1215
- recordLabel: Q,
1216
- dismissLabel: j
1264
+ positiveLabel: j,
1265
+ negativeLabel: $,
1266
+ recordLabel: K,
1267
+ dismissLabel: Q
1217
1268
  } : void 0,
1218
1269
  positiveIcon: ct ?? void 0,
1219
- recordIcon: St ?? void 0,
1270
+ recordIcon: Ct ?? void 0,
1220
1271
  negativeIcon: ut ?? void 0,
1221
1272
  feedbackIcon: ht ?? void 0,
1222
- screenshotMethod: qt ?? void 0,
1273
+ screenshotMethod: wt ?? void 0,
1223
1274
  captureVideo: gt === "true" ? !0 : void 0,
1224
1275
  hideThumbs: vt === "true" ? !0 : void 0,
1225
1276
  hideDismiss: yt === "true" ? !0 : void 0,
1226
- videoOptions: x || $ ? {
1277
+ videoOptions: x || _ ? {
1227
1278
  maxDuration: x ? parseInt(x, 10) : void 0,
1228
- redaction: $ === "true" ? !0 : void 0
1279
+ redaction: _ === "true" ? !0 : void 0
1229
1280
  } : void 0,
1230
1281
  quests: W ? {
1231
1282
  base: W,
1232
- up: Ct ?? void 0,
1233
- down: At ?? void 0,
1283
+ up: At ?? void 0,
1284
+ down: St ?? void 0,
1234
1285
  video: Tt ?? void 0,
1235
- apiKey: It ?? void 0,
1236
- moduleUrl: Et ?? void 0
1286
+ apiKey: Et ?? void 0,
1287
+ moduleUrl: It ?? void 0
1237
1288
  } : void 0
1238
1289
  };
1239
1290
  }
1240
- function Te() {
1291
+ function Ue() {
1241
1292
  if (typeof document > "u") return;
1242
1293
  const e = () => {
1243
- const t = document.currentScript ?? document.querySelector("script[data-endpoint]"), i = ke() ?? (t ? Ae(t) : null);
1294
+ const t = document.currentScript ?? document.querySelector("script[data-endpoint]"), i = ke() ?? (t ? Se(t) : null);
1244
1295
  i?.endpoint && new xe(i);
1245
1296
  };
1246
1297
  document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", e) : e();
1247
1298
  }
1248
- Te();
1249
1299
  export {
1300
+ Ee as A,
1301
+ De as B,
1302
+ Me as D,
1303
+ Le as E,
1304
+ Lt as F,
1305
+ Ie as P,
1250
1306
  xe as Q,
1251
- Ee as c
1307
+ Te as R,
1308
+ He as S,
1309
+ Dt as T,
1310
+ ze as U,
1311
+ Ue as a,
1312
+ Be as b,
1313
+ Oe as c,
1314
+ zt as d,
1315
+ Pe as e,
1316
+ Ne as g,
1317
+ Re as i
1252
1318
  };
1253
- //# sourceMappingURL=loader-BVNyi56k.js.map
1319
+ //# sourceMappingURL=core-2nGsCcZq.js.map