@qaiddev/thumbs-embed 1.12.2 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +61 -5
  2. package/dist/bootstrap.d.ts +29 -4
  3. package/dist/chunks/annotate-1zompTEi.js +2 -0
  4. package/dist/chunks/annotate-1zompTEi.js.map +1 -0
  5. package/dist/chunks/core-vu1EieDc.js +26 -0
  6. package/dist/chunks/core-vu1EieDc.js.map +1 -0
  7. package/dist/chunks/dom-kdwHduNo.js +2 -0
  8. package/dist/chunks/dom-kdwHduNo.js.map +1 -0
  9. package/dist/chunks/html2canvas.esm-Csbr1w14.js +6 -0
  10. package/dist/chunks/html2canvas.esm-Csbr1w14.js.map +1 -0
  11. package/dist/chunks/modal-5G2DhiUE.js +2 -0
  12. package/dist/chunks/modal-5G2DhiUE.js.map +1 -0
  13. package/dist/chunks/{recording-BUw5-5Rf.js → recording-CVwPTtB0.js} +2 -2
  14. package/dist/chunks/{recording-BUw5-5Rf.js.map → recording-CVwPTtB0.js.map} +1 -1
  15. package/dist/chunks/screenshot-dom-DO-0UlOz.js +2 -0
  16. package/dist/chunks/screenshot-dom-DO-0UlOz.js.map +1 -0
  17. package/dist/chunks/send-C3IvslZA.js +2 -0
  18. package/dist/chunks/send-C3IvslZA.js.map +1 -0
  19. package/dist/chunks/{targeting-CMUEe-7C.js → targeting-Bpbt68Pp.js} +2 -6
  20. package/dist/chunks/{targeting-CMUEe-7C.js.map → targeting-Bpbt68Pp.js.map} +1 -1
  21. package/dist/dom.d.ts +0 -2
  22. package/dist/embed-loader.d.ts +7 -0
  23. package/dist/embed.js +1 -1
  24. package/dist/embed.js.map +1 -1
  25. package/dist/icons.d.ts +2 -0
  26. package/dist/index.js +6628 -1530
  27. package/dist/index.js.map +1 -1
  28. package/dist/loader.js +1 -1
  29. package/dist/loader.js.map +1 -1
  30. package/dist/origin-key.d.ts +7 -0
  31. package/dist/qaid.umd.cjs +17 -17
  32. package/dist/qaid.umd.cjs.map +1 -1
  33. package/dist/quest-config.d.ts +27 -2
  34. package/dist/quest-launcher.d.ts +12 -0
  35. package/dist/screenshot-dom.d.ts +7 -5
  36. package/dist/svg-sanitize.d.ts +35 -0
  37. package/dist/trusted-types.d.ts +29 -0
  38. package/package.json +4 -2
  39. package/dist/chunks/annotate-DGyRcgPt.js +0 -2
  40. package/dist/chunks/annotate-DGyRcgPt.js.map +0 -1
  41. package/dist/chunks/core-BsR7oV99.js +0 -26
  42. package/dist/chunks/core-BsR7oV99.js.map +0 -1
  43. package/dist/chunks/dom-scpOS8nl.js +0 -2
  44. package/dist/chunks/dom-scpOS8nl.js.map +0 -1
  45. package/dist/chunks/modal-DYxcs1Gm.js +0 -2
  46. package/dist/chunks/modal-DYxcs1Gm.js.map +0 -1
  47. package/dist/chunks/screenshot-dom-ZYP2w2h0.js +0 -2
  48. package/dist/chunks/screenshot-dom-ZYP2w2h0.js.map +0 -1
  49. package/dist/chunks/send-C26DRoYc.js +0 -2
  50. package/dist/chunks/send-C26DRoYc.js.map +0 -1
package/dist/qaid.umd.cjs CHANGED
@@ -1,30 +1,30 @@
1
- (function(v,E){typeof exports=="object"&&typeof module<"u"?E(exports):typeof define=="function"&&define.amd?define(["exports"],E):(v=typeof globalThis<"u"?globalThis:v||self,E(v.Qaid={}))})(this,(function(v){"use strict";const E=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
1
+ (function(N,SA){typeof exports=="object"&&typeof module<"u"?SA(exports):typeof define=="function"&&define.amd?define(["exports"],SA):(N=typeof globalThis<"u"?globalThis:N||self,SA(N.Qaid={}))})(this,(function(N){"use strict";var SA=typeof document<"u"?document.currentScript:null;const Et=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
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>`,V=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
3
+ </svg>`,Ht=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
4
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>`,pe=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
5
+ </svg>`,eo=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
6
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>`,tt=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
7
+ </svg>`,Tr=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
8
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>`,fe=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
9
+ </svg>`,to='<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 2l8 8M10 2l-8 8" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>',ro=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
10
10
  <rect x="4" y="6" width="16" height="12" rx="1" stroke-linejoin="round"/>
11
- </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">
11
+ </svg>`,no=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
12
12
  <path stroke-linecap="round" stroke-linejoin="round" d="M5 19L19 5m0 0h-8m8 0v8"/>
13
- </svg>`,be=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
13
+ </svg>`,io=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
14
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>`,ge=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
15
+ </svg>`,so=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
16
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>`,ve=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
17
+ </svg>`,oo=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
18
18
  <path stroke-linecap="round" stroke-linejoin="round" d="M9 14L4 9l5-5M4 9h11a5 5 0 010 10h-4"/>
19
- </svg>`,et=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
19
+ </svg>`,Dr=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
20
20
  <path stroke-linecap="round" stroke-linejoin="round" d="M20 6L9 17l-5-5"/>
21
- </svg>`,ye=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
21
+ </svg>`,ao=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
22
22
  <path stroke-linecap="round" stroke-linejoin="round" d="M12 6v8m0 4h.01"/>
23
- </svg>`,we=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
23
+ </svg>`,co=`<svg xmlns="http://www.w3.org/2000/svg" class="qaid-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
24
24
  <path stroke-linecap="round" stroke-linejoin="round" d="M6 6l12 12M18 6L6 18"/>
25
- </svg>`,ke="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}button.qaid-btn-record:hover{background:#dc2626;color:#fff}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-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}@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{outline:2px solid CanvasText;outline-offset:2px}}",qe="body.qaid-targeting,body.qaid-targeting *{cursor:none!important}";let M=0;const xe="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)}",Ce={small:36,medium:48,large:64},Se={small:18,medium:24,large:32};function Ee(o,t,e){const[i,n,a]=[o,t,e].map(s=>(s=s/255,s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)));return .2126*i+.7152*n+.0722*a}function Te(o){if(o.startsWith("#")){const e=o.slice(1),i=e.length===3?e.split("").map(a=>a+a).join(""):e,n=parseInt(i,16);return{r:n>>16&255,g:n>>8&255,b:n&255}}const t=o.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);return t?{r:parseInt(t[1]),g:parseInt(t[2]),b:parseInt(t[3])}:null}function Ae(o){const t=Te(o);return t&&Ee(t.r,t.g,t.b)>.4?"black":"white"}function Le(o={}){const{positiveColor:t="rgb(0, 200, 83)",negativeColor:e="rgb(255, 0, 0)",markerColor:i="#6365f1",buttonSize:n="medium",modalWidth:a=400,backdropOpacity:s=.3,fontFamily:d="system-ui, -apple-system, sans-serif",fontSize:c=16}=o,l=Ce[n],r=Se[n],h=Ae(i);return{"--qaid-positive":t,"--qaid-negative":e,"--qaid-marker":i,"--qaid-marker-text":h,"--qaid-btn-size":`${l}px`,"--qaid-icon-size":`${r}px`,"--qaid-modal-width":`${a}px`,"--qaid-backdrop-opacity":String(s),"--qaid-font-family":d,"--qaid-font-size":`${c}px`}}function De(o,t){for(const[e,i]of Object.entries(t))o.style.setProperty(e,i)}function ot(){return ke+xe}function Me(){if(M++,M>1)return;const o=document.createElement("style");o.id="qaid-styles",o.textContent=qe,document.head.appendChild(o)}function Ie(){M<=0||(M--,M===0&&document.getElementById("qaid-styles")?.remove())}const it="data-qaid-a11y-live",Pe="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;";function Re(o){return o.ownerDocument||document}function Be(o,t){const e=t?"assertive":"polite",i=o.querySelector(`[${it}="${e}"]`);if(i)return i;const a=Re(o).createElement("div");return a.setAttribute(it,e),a.setAttribute("role",t?"alert":"status"),a.setAttribute("aria-live",t?"assertive":"polite"),a.setAttribute("aria-atomic","true"),a.style.cssText=Pe,o.appendChild(a),a}function He(o,t,e={}){const i=Be(o,!!e.assertive);i.textContent="",i.textContent=t}function Oe(o,t,e,i={}){const n=i.gap??8;let a=o.bottom+n;a+t.height>e.height-n&&(a=o.top-t.height-n);let s=o.left;return s<n?s=n:s+t.width>e.width-n&&(s=e.width-t.width-n),a<n?a=n:a+t.height>e.height-n&&(a=e.height-t.height-n),{top:a,left:s}}const ze=20;function $e(o){const t=[],e=console.error,i=console.warn,n=console.log,a=(s,d)=>{const c={message:d.map(l=>String(l)).join(" "),timestamp:Date.now(),level:s};t.length>=ze&&t.shift(),t.push(c),o&&o(c)};return console.error=function(...s){a("error",s),e.apply(console,s)},console.warn=function(...s){a("warn",s),i.apply(console,s)},console.log=function(...s){a("log",s),n.apply(console,s)},{errors:t,restore:()=>{console.error=e,console.warn=i,console.log=n}}}function x(o,t,e){const i=document.createElement(o);if(t)for(const[n,a]of Object.entries(t))n==="className"?i.className=a:i.setAttribute(n,a);return i}function _e(o=640){return typeof window<"u"&&window.innerWidth<o}function nt(o,t,e){const i=e.map(a=>a.style.visibility);e.forEach(a=>a.style.visibility="hidden");const n=document.elementFromPoint(o,t);return e.forEach((a,s)=>a.style.visibility=i[s]),n}function H(o){return o?o.hasAttribute("data-qaid-embed")||o.hasAttribute("data-qaid-embed-overlay")?!0:!!o.closest("[data-qaid-embed], [data-qaid-embed-overlay]"):!1}function at(o,t=0){const e=o.getBoundingClientRect();return{x:e.left-t,y:e.top-t,width:e.width+t*2,height:e.height+t*2}}const st="https://unpkg.com/@qaiddev/quests-embed@1/dist/qaid-quests.js",rt="qaid_visitor_id",dt="qaid_hide_feedback",Fe=["#ef4444","#f59e0b","#22c55e","#3b82f6","#111827","#ffffff"];function Ve(){return typeof window.matchMedia=="function"&&window.matchMedia("(pointer: coarse)").matches}function N(o){return o?`${dt}_${o}`:dt}function Ne(o){try{return localStorage.getItem(N(o))==="1"}catch{return!1}}function ct(o,t=!0){try{t?localStorage.setItem(N(o),"1"):localStorage.removeItem(N(o))}catch{}}function lt(){const o=typeof crypto<"u"?crypto:void 0;if(o&&typeof o.randomUUID=="function")return o.randomUUID();const t=new Uint8Array(16);if(o&&typeof o.getRandomValues=="function")o.getRandomValues(t);else for(let i=0;i<t.length;i++)t[i]=Math.floor(Math.random()*256);t[6]=t[6]&15|64,t[8]=t[8]&63|128;const e=Array.from(t,i=>i.toString(16).padStart(2,"0")).join("");return`${e.slice(0,8)}-${e.slice(8,12)}-${e.slice(12,16)}-${e.slice(16,20)}-${e.slice(20)}`}function Ue(){try{let o=localStorage.getItem(rt);return o||(o=lt(),localStorage.setItem(rt,o)),o}catch{return lt()}}function ht(o,t){const e=document.createElement("style");e.setAttribute("data-qaid-feature",""),e.textContent=t;const i=o.querySelectorAll("style[data-qaid-base], style[data-qaid-feature]"),n=i[i.length-1];o.insertBefore(e,n?n.nextSibling:o.firstChild)}class ut{config;state="IDLE";feedbackData={feedbackType:null,elementSelector:null,elementText:null,consoleErrors:[]};selectedBounds={x:0,y:0,width:0,height:0,clickX:0,clickY:0,visible:!1};feedbackIdPromise=Promise.resolve(null);questsPrewarmed=!1;activeQuest=null;isMobile=!1;visitorId;consoleCapture=null;recording=null;targeting=null;clickPathPrewarmed=!1;prewarmHandle=null;prewarmIsTimeout=!1;videoPrewarmed=!1;screenshotPrewarmed=!1;shadowHost=null;shadowRoot=null;overlayShadowHost=null;overlayShadowRoot=null;buttonsContainer=null;isUserProvidedContainer=!1;modal=null;dismissBtn=null;cssVars={};activeThumbBtn=null;keyboardActivation=!1;dialogModule=null;dialogClose=null;uid=Math.random().toString(36).slice(2,9);boundKeyDown;boundResize;_startDismissed=!1;destroyed=!1;domObserver=null;boundBeforeSwap=null;constructor(t){this.config={endpoint:t.endpoint,apiKey:t.apiKey??"",container:t.container??"",buttonClass:t.buttonClass??"",direction:t.direction??"horizontal",position:t.position??"bottom-right",offset:{x:t.offset?.x??16,y:t.offset?.y??16},zIndex:t.zIndex??50,skipTargeting:t.skipTargeting??!1,singleButton:t.singleButton??!1,feedbackMode:t.feedbackMode??"target",colors:{positive:t.colors?.positive??"rgb(0, 200, 83)",negative:t.colors?.negative??"rgb(255, 0, 0)",marker:t.colors?.marker??"#6365f1"},buttonSize:t.buttonSize??"medium",text:{tooltip:t.text?.tooltip??"",modalTitle:t.text?.modalTitle??"Thank you for your feedback!",modalSubtitle:t.text?.modalSubtitle??"Would you like to add a message to help us understand your feedback better?",placeholder:t.text?.placeholder??"Optional: Tell us more about your experience...",submitButton:t.text?.submitButton??"Submit",skipButton:t.text?.skipButton??"Skip",positiveLabel:t.text?.positiveLabel??"Send positive feedback",negativeLabel:t.text?.negativeLabel??"Send negative feedback",recordLabel:t.text?.recordLabel??"Record a screen recording",dismissLabel:t.text?.dismissLabel??"Hide Feedback",feedbackLabel:t.text?.feedbackLabel??"Send feedback",confirmationTitle:t.text?.confirmationTitle??"Thank you!",confirmationMessage:t.text?.confirmationMessage??"Your feedback has been received.",confirmationClose:t.text?.confirmationClose??"Close",errorTitle:t.text?.errorTitle??"Message not sent",errorMessage:t.text?.errorMessage??"Something went wrong, so we did not get your message. Please try again later."},hideConfirmation:t.hideConfirmation??!1,modalWidth:t.modalWidth??400,backdropOpacity:t.backdropOpacity??.3,fontFamily:t.fontFamily??"system-ui, -apple-system, sans-serif",fontSize:t.fontSize??16,captureScreenshot:t.captureScreenshot??!1,annotate:t.annotate??!0,annotationColor:t.annotationColor??t.colors?.marker??"#6365f1",annotationPalette:t.annotationPalette??Fe,screenshotMethod:t.screenshotMethod??"permission",screenshotOptions:{quality:t.screenshotOptions?.quality??.8,maxWidth:t.screenshotOptions?.maxWidth??1280,maxHeight:t.screenshotOptions?.maxHeight??800},incognito:t.incognito??!1,hideDismiss:t.hideDismiss??!1,positiveIcon:t.positiveIcon??"",negativeIcon:t.negativeIcon??"",feedbackIcon:t.feedbackIcon??"",hideThumbs:t.hideThumbs??!1,css:t.css??"",captureVideo:t.captureVideo??!1,videoOptions:{maxDuration:t.videoOptions?.maxDuration??15,redaction:t.videoOptions?.redaction??!1},recordIcon:t.recordIcon??"",quests:{base:t.quests?.base??"",up:t.quests?.up??"",down:t.quests?.down??"",video:t.quests?.video??"",apiKey:t.quests?.apiKey??t.apiKey??"",moduleUrl:t.quests?.moduleUrl??st}},this.boundKeyDown=this.handleKeyDown.bind(this),this.boundResize=this.handleResize.bind(this),this.visitorId=Ue(),this.init()}applyVars(t){De(t,this.cssVars)}announceMsg(t,e=!1){const i=this.overlayShadowRoot??this.shadowRoot;i&&He(i,t,{assertive:e})}async loadDialogA11y(){this.dialogModule??=await Promise.resolve().then(()=>zt)}openDialogA11y(t,e){this.dialogClose=this.dialogModule.openDialog(t,e)}closeDialogA11y(){const t=this.dialogClose;this.dialogClose=null,t?.()}clearActiveThumb(){this.activeThumbBtn&&(this.activeThumbBtn.setAttribute("aria-pressed","false"),this.activeThumbBtn=null)}init(){Me(),this.cssVars=Le({positiveColor:this.config.colors.positive,negativeColor:this.config.colors.negative,markerColor:this.config.colors.marker,buttonSize:this.config.buttonSize,modalWidth:this.config.modalWidth,backdropOpacity:this.config.backdropOpacity,fontFamily:this.config.fontFamily,fontSize:this.config.fontSize}),!this.config.hideDismiss&&Ne(this.config.apiKey)&&(this._startDismissed=!0),this.checkMobile(),window.addEventListener("resize",this.boundResize),this.createEmbed(),this.consoleCapture=$e(t=>{this.feedbackData.consoleErrors=this.consoleCapture?.errors??[]}),this.feedbackData.consoleErrors=this.consoleCapture.errors,this.observeDom(),this.schedulePrewarm(()=>{this.prewarmClickPath(),this.config.captureVideo&&this.videoSupported()&&this.prewarmVideo(),this.config.captureScreenshot&&this.prewarmScreenshot(),this.prewarmQuests()})}prewarmClickPath(){this.clickPathPrewarmed||(this.clickPathPrewarmed=!0,Promise.resolve().then(()=>Q).catch(()=>{}),Promise.resolve().then(()=>zt).catch(()=>{}),Promise.resolve().then(()=>Wt).catch(()=>{}),this.skipsTargeting()||Promise.resolve().then(()=>Yt).catch(()=>{}))}skipsTargeting(){return this.config.skipTargeting||this.config.feedbackMode==="annotate"}prewarmVideo(){this.videoPrewarmed||(this.videoPrewarmed=!0,Promise.resolve().then(()=>Jt).catch(()=>{}),Promise.resolve().then(()=>xt).catch(()=>{}))}prewarmScreenshot(){this.screenshotPrewarmed||(this.screenshotPrewarmed=!0,(this.shouldCaptureViaDom()?Promise.resolve().then(()=>Tt):Promise.resolve().then(()=>Gt)).catch(()=>{}),this.config.annotate&&Promise.resolve().then(()=>Mt).catch(()=>{}))}linkedQuestIds(){const t=this.config.quests;return t.base?[t.up,t.down,t.video].filter(e=>e):[]}prewarmQuests(){if(this.questsPrewarmed)return;const t=this.linkedQuestIds();if(t.length===0)return;this.questsPrewarmed=!0;const{base:e,moduleUrl:i}=this.config.quests;Promise.resolve().then(()=>Do).then(n=>{n.loadQuestsModule(i).catch(()=>{});for(const a of t)n.prefetchQuestDefinition(n.questDefinitionUrl(e,a))}).catch(()=>{})}schedulePrewarm(t){const e=window,i=()=>{this.destroyed||t()};typeof e.requestIdleCallback=="function"?(this.prewarmIsTimeout=!1,this.prewarmHandle=e.requestIdleCallback(i,{timeout:2e3})):(this.prewarmIsTimeout=!0,this.prewarmHandle=window.setTimeout(i,1200))}observeDom(){this.boundBeforeSwap=t=>{const e=t.newDocument;!e||this.destroyed||(this.shadowHost&&e.body.appendChild(this.shadowHost),this.overlayShadowHost&&e.body.appendChild(this.overlayShadowHost))},document.addEventListener("astro:before-swap",this.boundBeforeSwap),this.domObserver=new MutationObserver(()=>{this.destroyed||(this.shadowHost&&!this.shadowHost.isConnected&&document.body.appendChild(this.shadowHost),this.overlayShadowHost&&!this.overlayShadowHost.isConnected&&document.body.appendChild(this.overlayShadowHost))}),this.domObserver.observe(document.body,{childList:!0})}checkMobile(){this.isMobile=_e()}handleResize(){this.checkMobile()}createEmbed(){this.shadowHost=document.createElement("div"),this.shadowHost.setAttribute("data-qaid-embed",""),this.shadowHost.style.position="static",this.shadowHost.style.display="contents";let t=null;this.config.container&&(t=document.querySelector(this.config.container)),t?(t.appendChild(this.shadowHost),this.isUserProvidedContainer=!0,this.config.hideDismiss=!0):(this.shadowHost.style.position="fixed",this.shadowHost.style.display="block",this.shadowHost.style.inset="0",this.shadowHost.style.pointerEvents="none",this.shadowHost.style.zIndex=String(this.config.zIndex),document.body.appendChild(this.shadowHost)),this.shadowRoot=this.shadowHost.attachShadow({mode:"open"});const e=document.createElement("style");if(e.setAttribute("data-qaid-base",""),e.textContent=ot(),this.shadowRoot.appendChild(e),this.config.css){const r=document.createElement("style");r.textContent=this.config.css,this.shadowRoot.appendChild(r)}const i=this.config.direction==="vertical"?"qaid-vertical":"";if(this.isUserProvidedContainer)this.buttonsContainer=document.createElement("div"),this.buttonsContainer.className=`qaid-buttons qaid-${this.config.position} ${i}`.trim(),this.config.incognito&&this.buttonsContainer.classList.add("qaid-incognito");else{this.buttonsContainer=document.createElement("div"),this.buttonsContainer.className=`qaid-buttons qaid-auto-container qaid-${this.config.position} ${i}${this.config.incognito?" qaid-incognito":""}`.trim(),this.buttonsContainer.style.pointerEvents="auto";const{x:r,y:h}=this.config.offset;this.config.position.includes("right")?this.buttonsContainer.style.right=`${r}px`:this.buttonsContainer.style.left=`${r}px`,this.config.position.includes("bottom")?this.buttonsContainer.style.bottom=`${h}px`:this.buttonsContainer.style.top=`${h}px`}this.applyVars(this.buttonsContainer),this.shadowRoot.appendChild(this.buttonsContainer),this.buttonsContainer.addEventListener("keydown",r=>{(r.key==="Enter"||r.key===" "||r.key==="Spacebar")&&(this.keyboardActivation=!0)}),this.buttonsContainer.addEventListener("mousedown",()=>{this.keyboardActivation=!1}),this.buttonsContainer.addEventListener("pointerdown",()=>{this.keyboardActivation=!1});const n=()=>this.prewarmClickPath();this.buttonsContainer.addEventListener("pointerenter",n),this.buttonsContainer.addEventListener("focusin",n);const a=!!this.config.buttonClass,s=a?`qaid-btn-structural ${this.config.buttonClass}`:"qaid-btn",c=this.config.text.tooltip||"Feedback for us?",l=document.createElement("div");if(l.className="qaid-tooltip-text",l.textContent=c,this.applyVars(l),this.shadowRoot.appendChild(l),this.tooltipElement=l,this.config.singleButton){const r=document.createElement("div");r.className="qaid-tooltip-wrapper";const h=document.createElement("button");h.type="button",h.className=a?`${s} qaid-btn-feedback`:"qaid-btn qaid-btn-feedback",h.setAttribute("aria-label",this.config.text.feedbackLabel),h.innerHTML=this.config.feedbackIcon||tt,h.addEventListener("click",f=>this.handleThumbClick("neutral",f.currentTarget,f)),h.addEventListener("mouseenter",()=>this.showTooltip(h)),h.addEventListener("mouseleave",()=>this.hideTooltip()),r.appendChild(h),this.buttonsContainer.appendChild(r)}else if(!this.config.hideThumbs){const r=document.createElement("div");r.className="qaid-tooltip-wrapper";const h=document.createElement("button");h.type="button",h.className=a?`${s} qaid-btn-up`:"qaid-btn qaid-btn-up",h.setAttribute("aria-label",this.config.text.positiveLabel),h.innerHTML=this.config.positiveIcon||E,h.addEventListener("click",g=>this.handleThumbClick("up",g.currentTarget,g)),h.addEventListener("mouseenter",()=>{this.prewarmQuests(),this.showTooltip(h)}),h.addEventListener("mouseleave",()=>this.hideTooltip()),r.appendChild(h);const f=document.createElement("div");f.className="qaid-tooltip-wrapper";const m=document.createElement("button");m.type="button",m.className=a?`${s} qaid-btn-down`:"qaid-btn qaid-btn-down",m.setAttribute("aria-label",this.config.text.negativeLabel),m.innerHTML=this.config.negativeIcon||V,m.addEventListener("click",g=>this.handleThumbClick("down",g.currentTarget,g)),m.addEventListener("mouseenter",()=>{this.prewarmQuests(),this.showTooltip(m)}),m.addEventListener("mouseleave",()=>this.hideTooltip()),f.appendChild(m),this.buttonsContainer.appendChild(r),this.buttonsContainer.appendChild(f)}if(this.config.captureVideo&&this.videoSupported()){const r=document.createElement("div");r.className="qaid-tooltip-wrapper";const h=document.createElement("button");h.type="button",h.className=a?`${s} qaid-btn-record`:"qaid-btn qaid-btn-record",h.setAttribute("aria-label",this.config.text.recordLabel),h.innerHTML=this.config.recordIcon||pe,h.addEventListener("click",()=>{this.ensureRecording().then(m=>this.config.videoOptions.redaction?m.startPicking():m.startRecording())});const f=()=>this.prewarmVideo();h.addEventListener("mouseenter",()=>{f(),this.showTooltip(h)}),h.addEventListener("focus",f),h.addEventListener("touchstart",f,{passive:!0}),h.addEventListener("mouseleave",()=>this.hideTooltip()),r.appendChild(h),this.buttonsContainer.appendChild(r)}this.config.hideDismiss||(this.dismissBtn=document.createElement("button"),this.dismissBtn.type="button",this.dismissBtn.className="qaid-dismiss-btn",this.dismissBtn.setAttribute("aria-label",this.config.text.dismissLabel),this.dismissBtn.title=this.config.text.dismissLabel,this.dismissBtn.innerHTML='<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 2l8 8M10 2l-8 8" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>',this.dismissBtn.addEventListener("click",r=>{r.stopPropagation(),this.handleDismiss()}),this.buttonsContainer.insertBefore(this.dismissBtn,this.buttonsContainer.firstChild),this._startDismissed&&this.buttonsContainer.classList.add("qaid-dismissed"))}ensureOverlayHost(){if(this.overlayShadowRoot)return this.overlayShadowRoot;this.overlayShadowHost=document.createElement("div"),this.overlayShadowHost.setAttribute("data-qaid-embed-overlay",""),this.overlayShadowHost.style.position="fixed",this.overlayShadowHost.style.inset="0",this.overlayShadowHost.style.pointerEvents="none",this.overlayShadowHost.style.zIndex=String(this.config.zIndex),document.body.appendChild(this.overlayShadowHost),this.overlayShadowRoot=this.overlayShadowHost.attachShadow({mode:"open"});const t=document.createElement("style");t.setAttribute("data-qaid-base",""),t.textContent=ot(),this.overlayShadowRoot.appendChild(t);for(const e of this.featureStyles)ht(this.overlayShadowRoot,e);if(this.config.css){const e=document.createElement("style");e.textContent=this.config.css,this.overlayShadowRoot.appendChild(e)}return this.overlayShadowRoot}featureStyles=[];addFeatureStyles(t){if(!this.featureStyles.includes(t)){this.featureStyles.push(t);for(const e of[this.shadowRoot,this.overlayShadowRoot])e&&ht(e,t)}}tooltipElement=null;showTooltip(t){const e=this.tooltipElement;e.style.visibility="hidden",e.classList.add("qaid-tooltip-visible");const i=t.getBoundingClientRect(),n=e.getBoundingClientRect(),{top:a,left:s}=Oe(i,n,{width:window.innerWidth,height:window.innerHeight});e.style.top=`${a}px`,e.style.left=`${s}px`,e.style.visibility="visible"}hideTooltip(){this.tooltipElement.classList.remove("qaid-tooltip-visible")}handleDismiss(){this.buttonsContainer.classList.add("qaid-dismissed"),ct(this.config.apiKey,!0)}handleThumbClick(t,e,i){if(this.buttonsContainer?.classList.contains("qaid-incognito")&&(this.buttonsContainer.classList.remove("qaid-incognito"),ct(this.config.apiKey,!1)),this.prewarmClickPath(),this.skipsTargeting())this.submitDirectFeedback(t,e);else{this.activeThumbBtn=e,e.setAttribute("aria-pressed","true");const n=this.keyboardActivation;this.keyboardActivation=!1,this.ensureTargeting().then(a=>{this.destroyed||(n?a.startKeyboard(t):a.startPointer(t,i))})}}submitDirectFeedback(t,e){this.feedbackData.feedbackType=t,this.feedbackData.elementSelector=null,this.feedbackData.elementText=null;const i=e.getBoundingClientRect();this.selectedBounds={x:i.left,y:i.top,width:i.width,height:i.height,clickX:i.left+i.width/2,clickY:i.top+i.height/2,visible:!1},this.submitFeedback()}handleKeyDown(t){if(t.key==="Escape"){if(this.recording?.handleEscape())return;this.state==="TARGETING"?this.targeting?.cancel():this.state==="MODAL_OPEN"&&this.modal?.close()}}shouldCaptureViaDom(){return this.config.screenshotMethod==="dom"||Ve()}async submitFeedback(){try{const[t]=await Promise.all([Promise.resolve().then(()=>Q),this.loadDialogA11y()]);await t.submitFeedback(this.makeSendHost())}catch(t){console.error("Failed to send feedback:",t),this.announceMsg("Failed to send feedback",!0),this.resetFeedbackUi()}}async tryLaunchQuest(t,e){try{return await(await Promise.resolve().then(()=>Q)).tryLaunchQuest(this.makeSendHost(),t,e)}catch(i){return console.error("Failed to launch quest:",i),!1}}makeSendHost(){const t=this;return{get config(){return t.config},get visitorId(){return t.visitorId},get feedbackData(){return t.feedbackData},get selectedBounds(){return t.selectedBounds},get destroyed(){return t.destroyed},get overlayShadowHost(){return t.overlayShadowHost},get activeQuest(){return t.activeQuest},set activeQuest(e){t.activeQuest=e},setState:e=>{t.state=e},setFeedbackId:e=>{t.feedbackIdPromise=e},shouldCaptureViaDom:()=>t.shouldCaptureViaDom(),ensureOverlayHost:()=>t.ensureOverlayHost(),ensureModal:()=>t.ensureModal(),addFeatureStyles:e=>t.addFeatureStyles(e),applyVars:e=>t.applyVars(e),announceMsg:(e,i)=>t.announceMsg(e,i),openDialogA11y:(e,i)=>t.openDialogA11y(e,i),closeDialogA11y:()=>t.closeDialogA11y(),resetFeedbackUi:()=>t.resetFeedbackUi()}}resetFeedbackUi(){this.targeting?.hideMarker(),this.overlayShadowHost&&(this.overlayShadowHost.style.pointerEvents="none"),this.state="IDLE",this.feedbackIdPromise=Promise.resolve(null),this.feedbackData.feedbackType=null,this.feedbackData.elementSelector=null,this.feedbackData.elementText=null,this.selectedBounds.visible=!1}async ensureModal(){if(!this.modal){const[{ModalController:t,styles:e}]=await Promise.all([Promise.resolve().then(()=>Wt),this.loadDialogA11y()]);this.addFeatureStyles(e),this.modal=new t(this.makeModalHost())}return this.modal}makeModalHost(){const t=this;return{get config(){return t.config},get uid(){return t.uid},get isMobile(){return t.isMobile},get state(){return t.state},get boundKeyDown(){return t.boundKeyDown},get feedbackData(){return t.feedbackData},get selectedBounds(){return t.selectedBounds},whenFeedbackId:()=>t.feedbackIdPromise,ensureOverlayHost:()=>t.ensureOverlayHost(),applyVars:e=>t.applyVars(e),announceMsg:(e,i)=>t.announceMsg(e,i),openDialogA11y:(e,i)=>t.openDialogA11y(e,i),closeDialogA11y:()=>t.closeDialogA11y(),resetFeedbackUi:()=>t.resetFeedbackUi()}}async ensureTargeting(){if(!this.targeting){const{TargetingController:t,styles:e}=await Promise.resolve().then(()=>Yt);this.addFeatureStyles(e),this.targeting=new t(this.makeTargetingHost())}return this.targeting}makeTargetingHost(){const t=this;return{get config(){return t.config},get cssVars(){return t.cssVars},get state(){return t.state},get shadowHost(){return t.shadowHost},get overlayShadowHost(){return t.overlayShadowHost},get boundKeyDown(){return t.boundKeyDown},get feedbackData(){return t.feedbackData},get selectedBounds(){return t.selectedBounds},setState:e=>{t.state=e},ensureOverlayHost:()=>t.ensureOverlayHost(),applyVars:e=>t.applyVars(e),announceMsg:(e,i)=>t.announceMsg(e,i),clearActiveThumb:()=>t.clearActiveThumb(),submitFeedback:()=>t.submitFeedback()}}videoSupported(){return typeof navigator<"u"&&!!navigator.mediaDevices&&typeof navigator.mediaDevices.getDisplayMedia=="function"&&typeof MediaRecorder<"u"}async ensureRecording(){if(!this.recording){const[{RecordingController:t,styles:e}]=await Promise.all([Promise.resolve().then(()=>Jt),this.loadDialogA11y()]);this.addFeatureStyles(e),this.recording=new t(this.makeRecordingHost())}return this.recording}makeRecordingHost(){const t=this;return{get config(){return t.config},get visitorId(){return t.visitorId},get uid(){return t.uid},get overlayShadowHost(){return t.overlayShadowHost},get consoleCapture(){return t.consoleCapture},get boundKeyDown(){return t.boundKeyDown},get state(){return t.state},setState:e=>{t.state=e},ensureOverlayHost:()=>t.ensureOverlayHost(),applyVars:e=>t.applyVars(e),announceMsg:(e,i)=>t.announceMsg(e,i),openDialogA11y:(e,i)=>t.openDialogA11y(e,i),closeDialogA11y:()=>t.closeDialogA11y(),setButtonsDisabled:e=>t.setButtonsDisabled(e),tryLaunchQuest:(e,i)=>t.tryLaunchQuest(e,i)}}setButtonsDisabled(t){if(!this.buttonsContainer)return;this.buttonsContainer.querySelectorAll("button.qaid-btn, button.qaid-btn-structural").forEach(i=>{t?i.classList.contains("qaid-btn-record")||(i.disabled=!0,i.style.opacity="0.5"):(i.disabled=!1,i.style.opacity="")})}destroy(){if(this.destroyed=!0,this.domObserver&&(this.domObserver.disconnect(),this.domObserver=null),this.boundBeforeSwap&&(document.removeEventListener("astro:before-swap",this.boundBeforeSwap),this.boundBeforeSwap=null),this.targeting?.destroy(),this.targeting=null,this.clearActiveThumb(),this.closeDialogA11y(),this.prewarmHandle!==null){const t=window;this.prewarmIsTimeout?clearTimeout(this.prewarmHandle):t.cancelIdleCallback?.(this.prewarmHandle),this.prewarmHandle=null}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,Ie()}}function pt(o){return document.querySelector(o)?.textContent?.trim()??""}function je(){const o=document.querySelector('script[type="application/json"][data-feedback-config]');if(!o)return null;const t=o.textContent?.trim();if(!t)return null;try{const e=JSON.parse(t);return e.cssSelector&&!e.css&&(e.css=pt(e.cssSelector),delete e.cssSelector),e}catch{return null}}function ft(o,t,e){console.warn(`[thumbs-embed] Ignoring ${o}="${t}": expected ${e}.`)}function Ke(o){const t=[];let e=0,i="";for(const n of o)n==="("&&e++,n===")"&&(e=Math.max(0,e-1)),n===","&&e===0?(t.push(i.trim()),i=""):i+=n;return t.push(i.trim()),t}function We(o,t){if(t===null)return;const e=t.trim();let i=null;if(e.startsWith("[")||e.startsWith("{"))try{i=JSON.parse(e)}catch{i=null}else i=Ke(e);if(Array.isArray(i)&&i.length>0&&i.every(n=>typeof n=="string"&&n.trim()!==""))return i.map(n=>n.trim());ft(o,t,"a JSON array of colours or a comma-separated list")}function O(o,t){if(t!==null){if(t.trim()===""){ft(o,t,"a non-empty label");return}return t}}function Qe(o){const t=o.getAttribute("data-endpoint");if(!t)return null;const e=o.getAttribute("data-position"),i=o.getAttribute("data-zindex"),n=o.getAttribute("data-positive-color"),a=o.getAttribute("data-negative-color"),s=o.getAttribute("data-marker-color"),d=o.getAttribute("data-container"),c=o.getAttribute("data-button-class"),l=o.getAttribute("data-skip-targeting"),r=o.getAttribute("data-hide-confirmation"),h=o.getAttribute("data-single-button"),f=o.getAttribute("data-feedback-mode"),m=o.getAttribute("data-incognito"),g=o.getAttribute("data-button-size"),y=o.getAttribute("data-offset-x"),k=o.getAttribute("data-offset-y"),C=o.getAttribute("data-modal-width"),p=o.getAttribute("data-backdrop-opacity"),q=o.getAttribute("data-font-family"),w=o.getAttribute("data-font-size"),S=o.getAttribute("data-tooltip"),B=o.getAttribute("data-modal-title"),T=o.getAttribute("data-confirmation-title"),b=o.getAttribute("data-confirmation-message"),D=o.getAttribute("data-confirmation-close"),Zt=o.getAttribute("data-error-title"),te=o.getAttribute("data-error-message"),ee=o.getAttribute("data-modal-subtitle"),oe=o.getAttribute("data-placeholder"),ie=o.getAttribute("data-submit-button"),ne=o.getAttribute("data-skip-button"),ii=o.getAttribute("data-positive-icon"),ni=o.getAttribute("data-negative-icon"),ai=o.getAttribute("data-feedback-icon"),ae=o.getAttribute("data-feedback-label"),si=o.getAttribute("data-api-key"),ri=o.getAttribute("data-capture-screenshot"),di=o.getAttribute("data-annotate"),ci=o.getAttribute("data-annotation-color"),Y=o.getAttribute("data-screenshot-quality"),J=o.getAttribute("data-screenshot-max-width"),G=o.getAttribute("data-screenshot-max-height"),li=o.getAttribute("data-capture-video"),se=o.getAttribute("data-video-redaction"),hi=o.getAttribute("data-hide-thumbs"),ui=o.getAttribute("data-hide-dismiss"),Z=o.getAttribute("data-video-max-duration"),pi=o.getAttribute("data-screenshot-method"),fi=o.getAttribute("data-direction"),re=o.getAttribute("data-css-selector"),mi=o.getAttribute("data-css"),de=O("data-positive-label",o.getAttribute("data-positive-label")),ce=O("data-negative-label",o.getAttribute("data-negative-label")),le=O("data-record-label",o.getAttribute("data-record-label")),he=O("data-dismiss-label",o.getAttribute("data-dismiss-label")),bi=We("data-annotation-palette",o.getAttribute("data-annotation-palette")),gi=o.getAttribute("data-record-icon"),ue=o.getAttribute("data-quest-base"),vi=o.getAttribute("data-quest-up"),yi=o.getAttribute("data-quest-down"),wi=o.getAttribute("data-quest-video"),ki=o.getAttribute("data-quest-api-key"),qi=o.getAttribute("data-quest-module-url");return{endpoint:t,css:mi||(re?pt(re):void 0),apiKey:si??void 0,captureScreenshot:ri==="true"?!0:void 0,annotate:di==="false"?!1:void 0,annotationColor:ci??void 0,annotationPalette:bi,screenshotOptions:Y||J||G?{quality:Y?parseFloat(Y):void 0,maxWidth:J?parseInt(J,10):void 0,maxHeight:G?parseInt(G,10):void 0}:void 0,container:d??void 0,buttonClass:c??void 0,direction:fi??void 0,position:e??void 0,zIndex:i?parseInt(i,10):void 0,skipTargeting:l==="true"?!0:void 0,hideConfirmation:r==="true"?!0:void 0,singleButton:h==="true"?!0:void 0,feedbackMode:f??void 0,incognito:m==="true"?!0:void 0,buttonSize:g??void 0,offset:y||k?{x:y?parseInt(y,10):void 0,y:k?parseInt(k,10):void 0}:void 0,modalWidth:C?parseInt(C,10):void 0,backdropOpacity:p?parseFloat(p):void 0,fontFamily:q??void 0,fontSize:w?parseInt(w,10):void 0,colors:{positive:n??void 0,negative:a??void 0,marker:s??void 0},text:S||B||ee||oe||ie||ne||ae||T||b||D||Zt||te||de||ce||le||he?{tooltip:S??void 0,modalTitle:B??void 0,modalSubtitle:ee??void 0,placeholder:oe??void 0,submitButton:ie??void 0,skipButton:ne??void 0,feedbackLabel:ae??void 0,confirmationTitle:T??void 0,confirmationMessage:b??void 0,confirmationClose:D??void 0,errorTitle:Zt??void 0,errorMessage:te??void 0,positiveLabel:de,negativeLabel:ce,recordLabel:le,dismissLabel:he}:void 0,positiveIcon:ii??void 0,recordIcon:gi??void 0,negativeIcon:ni??void 0,feedbackIcon:ai??void 0,screenshotMethod:pi??void 0,captureVideo:li==="true"?!0:void 0,hideThumbs:hi==="true"?!0:void 0,hideDismiss:ui==="true"?!0:void 0,videoOptions:Z||se?{maxDuration:Z?parseInt(Z,10):void 0,redaction:se==="true"?!0:void 0}:void 0,quests:ue?{base:ue,up:vi??void 0,down:yi??void 0,video:wi??void 0,apiKey:ki??void 0,moduleUrl:qi??void 0}:void 0}}function Xe(){if(typeof document>"u")return;const o=()=>{const t=document.currentScript??document.querySelector("script[data-endpoint]"),e=je()??(t?Qe(t):null);e?.endpoint&&new ut(e)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",o):o()}const Ye=20,mt=4096;function z(o){const t=typeof o=="string"?o:JSON.stringify(o);return t.length>mt?t.slice(0,mt)+"…[truncated]":t}function bt(o,t){o.length>=Ye&&o.shift(),o.push(t)}async function Je(o){try{const t=await o.clone().text();return z(t)}catch{return}}function gt(){const o=[],t=window.fetch;window.fetch=async function(n,a){const s=typeof n=="string"?n:n instanceof URL?n.toString():n.url,d=a?.method??(typeof n=="object"&&"method"in n?n.method:"GET");let c;a?.body&&(c=z(a.body));const l=await t.apply(window,[n,a]);if(l.status>=400){const r=await Je(l);bt(o,{url:s,method:d.toUpperCase(),status:l.status,statusText:l.statusText,requestBody:c,responseBody:r,timestamp:Date.now()})}return l};const e=XMLHttpRequest.prototype.open,i=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(n,a,...s){return this._qaid_method=n,this._qaid_url=typeof a=="string"?a:a.toString(),e.apply(this,[n,a,...s])},XMLHttpRequest.prototype.send=function(n){const a=this,s=n?z(n):void 0;return a.addEventListener("load",function(){a.status>=400&&bt(o,{url:a._qaid_url,method:a._qaid_method.toUpperCase(),status:a.status,statusText:a.statusText,requestBody:s,responseBody:z(a.responseText),timestamp:Date.now()})}),i.apply(this,[n])},{errors:o,restore:()=>{window.fetch=t,XMLHttpRequest.prototype.open=e,XMLHttpRequest.prototype.send=i}}}function Ge(){const o=navigator.userAgent||"";return/iP(hone|ad|od)/.test(o)||navigator.platform==="MacIntel"&&(navigator.maxTouchPoints||0)>1}function Ze(o,t,e,i,n){const a=o>=t,s=e>=i;return a===s?{width:o,height:t,rotate:0}:{width:t,height:o,rotate:n===270?-90:90}}function to(o,t,e){if(e.rotate===0){o.drawImage(t,0,0,e.width,e.height);return}o.save(),e.rotate===90?(o.translate(e.width,0),o.rotate(Math.PI/2)):(o.translate(0,e.height),o.rotate(-Math.PI/2)),o.drawImage(t,0,0,e.height,e.width),o.restore()}function eo(){const o=typeof screen<"u"?screen.orientation:void 0;return o&&typeof o.angle=="number"?o.angle:0}function vt(o){return new Promise(t=>{if(o.videoWidth>0){t();return}o.addEventListener("loadedmetadata",()=>t(),{once:!0})})}async function yt(o){try{await o.play()}catch{}}async function oo(o,t=15){const e=document.createElement("canvas");if(typeof e.captureStream!="function")return null;const i=e.getContext("2d");if(!i)return null;const n=document.createElement("video");n.muted=!0,n.playsInline=!0,n.srcObject=o,await vt(n);const a=Ze(n.videoWidth,n.videoHeight,window.innerWidth,window.innerHeight,eo());e.width=a.width,e.height=a.height,await yt(n);let s=0;const d=()=>{to(i,n,a),s=requestAnimationFrame(d)};d();const c=e.captureStream(t);return{stream:c,stop:()=>{s&&cancelAnimationFrame(s),s=0,c.getTracks().forEach(l=>l.stop()),n.pause(),n.srcObject=null}}}function io(o,t,e,i,n){const a=Math.max(0,Math.min(i,o.left*t)),s=Math.max(0,Math.min(n,o.top*e)),d=Math.max(0,Math.min(i,(o.left+o.width)*t)),c=Math.max(0,Math.min(n,(o.top+o.height)*e)),l=d-a,r=c-s;return l<=0||r<=0?null:{x:a,y:s,w:l,h:r}}function no(o,t,e,i,n,a,s){o.drawImage(t,0,0,i,n);const d=i/Math.max(1,window.innerWidth),c=n/Math.max(1,window.innerHeight);for(const l of e){const r=io(l.getBoundingClientRect(),d,c,i,n);r&&(o.save(),s?(o.filter=`blur(${a}px)`,o.drawImage(t,r.x,r.y,r.w,r.h,r.x,r.y,r.w,r.h)):(o.fillStyle="#0b0b0b",o.fillRect(r.x,r.y,r.w,r.h)),o.restore())}}async function ao(o,t,e={}){const i=e.frameRate??15,n=e.blurRadius??12,a=document.createElement("canvas");if(typeof a.captureStream!="function")return null;const s=a.getContext("2d");if(!s)return null;const d="filter"in s,c=document.createElement("video");c.muted=!0,c.playsInline=!0,c.srcObject=o,await vt(c),a.width=c.videoWidth,a.height=c.videoHeight,await yt(c);let l=0;const r=()=>{no(s,c,t,a.width,a.height,n,d),l=requestAnimationFrame(r)};r();const h=a.captureStream(i);return{stream:h,stop:()=>{l&&cancelAnimationFrame(l),l=0,h.getTracks().forEach(f=>f.stop()),c.pause(),c.srcObject=null}}}const wt="This browser cannot blur the areas you picked, so the recording was not started.";function kt(){return typeof navigator<"u"&&!!navigator.mediaDevices&&typeof navigator.mediaDevices.getDisplayMedia=="function"&&typeof MediaRecorder<"u"}function U(){if(typeof MediaRecorder>"u")return"";const o=["video/webm;codecs=vp9","video/webm;codecs=vp8","video/webm","video/mp4"];for(const t of o)if(MediaRecorder.isTypeSupported(t))return t;return""}function qt(o={}){const t=o.maxDuration??15,e=o.videoBitsPerSecond??8e5,i=o.redactionElements??[],n=o.redactionBlurRadius;let a=null,s=null,d=null,c=null,l=[],r=null,h=null,f=null,m=0,g=null,y=null,k=!1,C=null;function p(){f!==null&&(clearInterval(f),f=null),C!==null&&(clearTimeout(C),C=null),s&&(s.stop(),s=null),d&&(d.stop(),d=null),a&&(a.getTracks().forEach(w=>w.stop()),a=null),c=null,l=[],r=null,h=null,g=null,y=null}function q(){k||(k=!0,c&&c.state!=="inactive"&&c.stop())}return{async start(){k=!1,l=[];const w=U();if(!w)throw new Error("No supported video MIME type found");a=await navigator.mediaDevices.getDisplayMedia({video:{frameRate:15,displaySurface:"browser"},audio:!1,preferCurrentTab:!0,selfBrowserSurface:"include",monitorTypeSurfaces:"exclude",surfaceSwitching:"exclude"});const S=a.getVideoTracks()[0],B=S?.getSettings?.()?.displaySurface;if(B==="monitor"||B==="window")throw a.getTracks().forEach(b=>b.stop()),a=null,new Error("qaid records only the current tab — please share this tab, not a window or your whole screen.");S&&S.addEventListener("ended",()=>{q()});let T=a;if(Ge()){const b=await oo(a);b&&(s=b,T=b.stream)}if(i.length>0){const b=await ao(T,i,{blurRadius:n});if(!b)throw s&&(s.stop(),s=null),a.getTracks().forEach(D=>D.stop()),a=null,new Error(wt);d=b,T=b.stream}c=new MediaRecorder(T,{mimeType:w,videoBitsPerSecond:e}),c.ondataavailable=b=>{b.data.size>0&&l.push(b.data)},c.onstop=()=>{const b=new Blob(l,{type:w});g&&g(b),h&&h(b),s&&(s.stop(),s=null),d&&(d.stop(),d=null),a&&a.getTracks().forEach(D=>D.stop())},c.onerror=()=>{y&&y(new Error("MediaRecorder error"))},c.start(1e3),m=Date.now(),f=setInterval(()=>{const b=Math.floor((Date.now()-m)/1e3);r&&r(b)},1e3),C=setTimeout(()=>{q()},t*1e3)},stop(){return new Promise((w,S)=>{g=w,y=S,q()})},onTick(w){r=w},onStop(w){h=w},destroy(){q(),p()}}}const xt=Object.freeze(Object.defineProperty({__proto__:null,REDACTION_UNAVAILABLE:wt,createVideoRecorder:qt,getSupportedMimeType:U,isVideoRecordingSupported:kt},Symbol.toStringTag,{value:"Module"})),Ct="https://qaid.dev/lib/html2canvas.min.js",so=1e4,ro=50;let I=null;function St(){if(typeof document>"u"||typeof window>"u")return!1;const o=document.createElement("canvas");return typeof o.getContext=="function"&&!!o.getContext("2d")}function co(){return window.html2canvas?Promise.resolve(!0):I||(I=new Promise(o=>{if(!document.querySelector(`script[src="${Ct}"]`)){const n=document.createElement("script");n.src=Ct,n.async=!0,document.head.appendChild(n)}const e=Date.now(),i=()=>{if(window.html2canvas){o(!0);return}if(Date.now()-e>so){I=null,o(!1);return}setTimeout(i,ro)};i()}),I)}async function Et(o={}){const{quality:t=.8,maxWidth:e=1280,maxHeight:i=800}=o;try{if(!await co()||!window.html2canvas)return console.warn("html2canvas failed to load"),null;const a=await window.html2canvas(document.body,{useCORS:!0,allowTaint:!1,logging:!1,windowWidth:document.documentElement.clientWidth,windowHeight:document.documentElement.clientHeight,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,x:window.scrollX,y:window.scrollY,ignoreElements:l=>l instanceof HTMLElement?l.classList.contains("qaid-buttons")||l.classList.contains("qaid-targeting-overlay")||l.classList.contains("qaid-modal-container")||l.classList.contains("qaid-bottom-sheet")||l.classList.contains("qaid-backdrop")||l.classList.contains("qaid-selected-marker")||l.classList.contains("qaid-tooltip-text")||l.classList.contains("qaid-recording-indicator")||l.classList.contains("qaid-video-preview")||l.className?.toString().startsWith?.("qaid-"):!1}),s=a.width,d=a.height,c=Math.min(e/s,i/d,1);if(c<1){const l=Math.round(s*c),r=Math.round(d*c),h=document.createElement("canvas");h.width=l,h.height=r;const f=h.getContext("2d");return f?(f.drawImage(a,0,0,l,r),h.toDataURL("image/webp",t)):null}return a.toDataURL("image/webp",t)}catch(n){return console.warn("DOM screenshot capture failed:",n),null}}const Tt=Object.freeze(Object.defineProperty({__proto__:null,captureDomScreenshot:Et,isDomScreenshotSupported:St},Symbol.toStringTag,{value:"Module"})),lo=".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}}@keyframes qaid-fadeIn{0%{opacity:0}to{opacity:1}}",A=12,ho="#ef4444",uo=["#ef4444","#f59e0b","#22c55e","#3b82f6","#111827","#ffffff"],po={"#ef4444":"red","#f59e0b":"amber","#22c55e":"green","#3b82f6":"blue","#111827":"black","#ffffff":"white","#6365f1":"indigo","#6366f1":"indigo"};function At(o){return po[o.toLowerCase()]??o}const fo=4,mo=.8,bo={title:"Annotate screenshot",instructions:"Draw on the screenshot to highlight or hide details, then choose Done to attach it or Skip to send the original.",rectangle:"Rectangle",arrow:"Arrow",pen:"Pen",blur:"Blur or redact",undo:"Undo last",skip:"Skip annotation",done:"Done",colors:"Drawing colour"};function P(o,t){return{x:Math.min(o.x,t.x),y:Math.min(o.y,t.y),w:Math.abs(o.x-t.x),h:Math.abs(o.y-t.y)}}function go(o){if(o.type==="pen")return o.points.length<2;const t=P(o.points[0],o.points[1]);return t.w<3&&t.h<3}function vo(o,t,e,i){o.beginPath(),o.moveTo(t.x,t.y),o.lineTo(e.x,e.y),o.stroke();const n=Math.atan2(e.y-t.y,e.x-t.x),a=Math.max(10,i*3);o.beginPath(),o.moveTo(e.x,e.y),o.lineTo(e.x-a*Math.cos(n-Math.PI/6),e.y-a*Math.sin(n-Math.PI/6)),o.moveTo(e.x,e.y),o.lineTo(e.x-a*Math.cos(n+Math.PI/6),e.y-a*Math.sin(n+Math.PI/6)),o.stroke()}function yo(o,t){if(t.length!==0){o.beginPath(),o.moveTo(t[0].x,t[0].y);for(let e=1;e<t.length;e++)o.lineTo(t[e].x,t[e].y);o.stroke()}}function wo(o,t,e,i,n){o.fillStyle="rgb(15, 23, 42)",o.fillRect(t,e,i,n),o.fillStyle="rgb(37, 47, 63)";for(let a=e;a<e+n;a+=A)for(let s=t;s<t+i;s+=A)(Math.floor((s-t)/A)+Math.floor((a-e)/A))%2===0&&o.fillRect(s,a,Math.min(A,t+i-s),Math.min(A,e+n-a))}function R(o,t){switch(o.save(),o.strokeStyle=t.color,o.fillStyle=t.color,o.lineWidth=t.strokeWidth,o.lineJoin="round",o.lineCap="round",t.type){case"rect":{const e=P(t.points[0],t.points[1]);o.strokeRect(e.x,e.y,e.w,e.h);break}case"arrow":vo(o,t.points[0],t.points[1],t.strokeWidth);break;case"pen":yo(o,t.points);break;case"blur":{const e=P(t.points[0],t.points[1]);wo(o,e.x,e.y,e.w,e.h);break}}o.restore()}function Lt(o){return new Promise((t,e)=>{const i=new Image;i.onload=()=>t(i),i.onerror=()=>e(new Error("Failed to load screenshot")),i.src=o})}async function j(o,t,e={}){const i=e.quality??mo;let n;try{n=await Lt(o)}catch{return o}const a=document.createElement("canvas");a.width=n.naturalWidth||n.width||1,a.height=n.naturalHeight||n.height||1;const s=a.getContext("2d");if(!s)return o;s.drawImage(n,0,0,a.width,a.height);for(const d of t)R(s,d);return a.toDataURL("image/webp",i)}let ko=0;class K{shapes=[];tool="rect";opts;labels;color;palette;strokeWidth;uid=`qaid-annotate-${++ko}`;container;canvas;ctx=null;toolbar;undoBtn;img=null;drawing=!1;current=null;settled=!1;resolveResult;constructor(t){this.opts=t,this.labels={...bo,...t.labels??{}},this.color=t.color??ho,this.palette=(t.palette&&t.palette.length?t.palette:uo).slice(),this.palette.some(e=>e.toLowerCase()===this.color.toLowerCase())||this.palette.unshift(this.color),this.strokeWidth=t.strokeWidth??fo}open(){const t=new Promise(e=>{this.resolveResult=e});return this.mount(),t}toolButton(t,e,i){const n=x("button",{type:"button",class:"qaid-annotate-tool","data-qaid-tool":t,"aria-pressed":t===this.tool?"true":"false","aria-label":`${i} tool`,title:i});return n.innerHTML=`${e}<span class="qaid-annotate-btn-text">${i}</span>`,n}swatchButton(t){const e=At(t),i=x("button",{type:"button",class:"qaid-annotate-swatch","data-qaid-color":t,"aria-pressed":t.toLowerCase()===this.color.toLowerCase()?"true":"false","aria-label":`Draw in ${e}`,title:e});return i.style.setProperty("--qaid-swatch",t),i}actionButton(t,e,i,n){const a=x("button",{type:"button",class:`qaid-annotate-action ${n}`,"data-qaid-action":t,"aria-label":i,title:i});return a.innerHTML=`${e}<span class="qaid-annotate-btn-text">${i}</span>`,a}mount(){const t=`${this.uid}-title`,e=`${this.uid}-desc`;this.container=x("div",{class:"qaid-annotate"}),this.opts.applyVars?.(this.container);const i=x("h2",{id:t,class:"qaid-annotate-title"});i.textContent=this.labels.title;const n=x("p",{id:e,class:"qaid-annotate-desc"});n.textContent=this.labels.instructions;const a=x("div",{class:"qaid-annotate-stage"});this.canvas=document.createElement("canvas"),this.canvas.className="qaid-annotate-canvas",this.canvas.width=1,this.canvas.height=1,this.canvas.setAttribute("role","img"),this.canvas.setAttribute("aria-label",this.labels.title),this.ctx=this.canvas.getContext("2d"),a.appendChild(this.canvas),this.toolbar=x("div",{class:"qaid-annotate-toolbar",role:"toolbar","aria-label":this.labels.title});const s=x("div",{class:"qaid-annotate-tools"});s.appendChild(this.toolButton("rect",fe,this.labels.rectangle)),s.appendChild(this.toolButton("arrow",me,this.labels.arrow)),s.appendChild(this.toolButton("pen",be,this.labels.pen)),s.appendChild(this.toolButton("blur",ge,this.labels.blur));const d=x("div",{class:"qaid-annotate-colors",role:"group","aria-label":this.labels.colors});for(const h of this.palette)d.appendChild(this.swatchButton(h));this.undoBtn=this.actionButton("undo",ve,this.labels.undo,"qaid-annotate-undo"),this.undoBtn.disabled=!0;const c=this.actionButton("skip",we,this.labels.skip,"qaid-annotate-skip"),l=this.actionButton("done",et,this.labels.done,"qaid-annotate-done"),r=x("div",{class:"qaid-annotate-actions"});r.appendChild(this.undoBtn),r.appendChild(c),r.appendChild(l),this.toolbar.appendChild(s),this.toolbar.appendChild(d),this.toolbar.appendChild(r),this.container.appendChild(i),this.container.appendChild(n),this.container.appendChild(a),this.container.appendChild(this.toolbar),this.opts.root.appendChild(this.container),this.toolbar.addEventListener("click",this.onToolbarClick),this.canvas.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp),this.container.addEventListener("keydown",this.onKeyDown),this.opts.openDialog?.(this.container,{labelledbyId:t,describedbyId:e}),this.opts.announce?.(this.labels.instructions),Lt(this.opts.dataUrl).then(h=>{this.img=h,this.canvas.width=h.naturalWidth||h.width||1,this.canvas.height=h.naturalHeight||h.height||1,this.redraw()}).catch(()=>{this.img=null,this.redraw()})}toImageCoords(t){const e=this.canvas.getBoundingClientRect(),i=this.canvas.width/(e.width||this.canvas.width),n=this.canvas.height/(e.height||this.canvas.height);return{x:(t.clientX-e.left)*i,y:(t.clientY-e.top)*n}}redraw(){const t=this.ctx;if(t){t.clearRect(0,0,this.canvas.width,this.canvas.height),this.img&&t.drawImage(this.img,0,0,this.canvas.width,this.canvas.height);for(const e of this.shapes)R(t,e);this.current&&R(t,this.current)}}selectTool(t){this.tool=t,this.toolbar.querySelectorAll("[data-qaid-tool]").forEach(n=>{n.setAttribute("aria-pressed",n.getAttribute("data-qaid-tool")===t?"true":"false")});const i=this.labels[qo[t]];this.opts.announce?.(`${i} tool selected`)}selectColor(t){this.color=t,this.toolbar.querySelectorAll("[data-qaid-color]").forEach(i=>{i.setAttribute("aria-pressed",(i.getAttribute("data-qaid-color")??"").toLowerCase()===t.toLowerCase()?"true":"false")}),this.opts.announce?.(`${At(t)} colour selected`)}onToolbarClick=t=>{const i=t.target?.closest("[data-qaid-tool],[data-qaid-action],[data-qaid-color]");if(!i)return;const n=i.getAttribute("data-qaid-color");if(n){this.selectColor(n);return}const a=i.getAttribute("data-qaid-tool");if(a){this.selectTool(a);return}const s=i.getAttribute("data-qaid-action");s==="undo"?this.undo():s==="skip"?this.skip():s==="done"&&this.done()};onPointerDown=t=>{t.preventDefault?.(),this.drawing=!0;const e=this.toImageCoords(t);this.current={type:this.tool,color:this.color,strokeWidth:this.strokeWidth,points:this.tool==="pen"?[e]:[e,{...e}]},this.redraw()};onPointerMove=t=>{if(!this.drawing||!this.current)return;const e=this.toImageCoords(t);this.current.type==="pen"?this.current.points.push(e):this.current.points[1]=e,this.redraw()};onPointerUp=()=>{if(!this.drawing||!this.current)return;this.drawing=!1;const t=this.current;if(this.current=null,go(t)){this.redraw();return}this.shapes.push(t),this.undoBtn.disabled=!1,this.opts.announce?.("Annotation added"),this.redraw()};onKeyDown=t=>{if(t.key==="Escape"){t.preventDefault(),this.skip();return}if(t.key==="Enter"){const e=t.target;if(e?.getAttribute("data-qaid-tool")||e?.getAttribute("data-qaid-action"))return;t.preventDefault(),this.done()}};undo(){if(this.shapes.length===0){this.opts.announce?.("Nothing to undo");return}this.shapes.pop(),this.undoBtn.disabled=this.shapes.length===0,this.opts.announce?.("Removed last annotation"),this.redraw()}async done(){if(this.settled)return;const t=await j(this.opts.dataUrl,this.shapes,{quality:this.opts.quality});this.opts.announce?.("Annotated screenshot attached"),this.settle(t)}skip(){this.settled||(this.opts.announce?.("Annotation skipped"),this.settle(null))}settle(t){this.settled=!0,this.teardown(),this.resolveResult(t)}teardown(){this.toolbar.removeEventListener("click",this.onToolbarClick),this.canvas.removeEventListener("pointerdown",this.onPointerDown),this.container.removeEventListener("pointermove",this.onPointerMove),this.container.removeEventListener("pointerup",this.onPointerUp),this.container.removeEventListener("keydown",this.onKeyDown),this.opts.closeDialog?.(),this.container.remove()}}const qo={rect:"rectangle",arrow:"arrow",pen:"pen",blur:"blur"};function Dt(o){return new K(o).open()}const Mt=Object.freeze(Object.defineProperty({__proto__:null,AnnotationEditor:K,compositeAnnotations:j,drawShape:R,openAnnotationEditor:Dt,rectFromPoints:P,styles:lo},Symbol.toStringTag,{value:"Module"}));Xe();const xo=["a[href]","button","input","textarea","select","[tabindex]"].join(",");function Co(o){return o.hasAttribute("disabled")?!0:o.disabled===!0}function So(o){let t=o;for(;t;){if(t.hasAttribute("hidden"))return!0;const e=t.style;if(e&&(e.display==="none"||e.visibility==="hidden"||e.visibility==="collapse"))return!0;t=t.parentElement}return!1}function W(o){return Array.from(o.querySelectorAll(xo)).filter(e=>!(e.getAttribute("tabindex")==="-1"||e instanceof HTMLInputElement&&e.type==="hidden"||e instanceof HTMLAnchorElement&&!e.getAttribute("href")||Co(e)||So(e)))}function It(o){let t=o.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t instanceof HTMLElement?t:null}function Pt(o){const t=o.ownerDocument||document;let e=!1;const i=a=>{if(a.key!=="Tab")return;const s=W(o);if(s.length===0){a.preventDefault(),o.focus();return}const d=s[0],c=s[s.length-1],l=It(t),r=l?s.indexOf(l)!==-1:!1;a.shiftKey?(!r||l===d)&&(a.preventDefault(),c.focus()):(!r||l===c)&&(a.preventDefault(),d.focus())};o.addEventListener("keydown",i);const n=W(o);return n.length>0?n[0].focus():(o.hasAttribute("tabindex")||(o.setAttribute("tabindex","-1"),e=!0),o.focus()),{release(){o.removeEventListener("keydown",i),e&&(o.removeAttribute("tabindex"),e=!1)}}}function Rt(){return It(document)}function Bt(o){if(!(!o||typeof o.focus!="function"))try{o.focus()}catch{}}function Ht(o,t={}){o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),t.labelledbyId&&o.setAttribute("aria-labelledby",t.labelledbyId),t.describedbyId&&o.setAttribute("aria-describedby",t.describedbyId),t.label&&o.setAttribute("aria-label",t.label)}function Eo(o,t){let e=o;for(;e&&e!==t;){const i=e.parentNode;if(i===t)return e;if(i&&i.host){e=i.host;continue}if(!i)return null;e=i}return null}function Ot(o){const e=(o.ownerDocument||document).body;if(!e)return()=>{};const i=Eo(o,e),n=[];return Array.from(e.children).forEach(a=>{if(!(a instanceof HTMLElement)||i&&a===i)return;const s=a.inert===!0,d=a.getAttribute("aria-hidden");s&&d==="true"||(a.inert=!0,a.setAttribute("aria-hidden","true"),n.push({el:a,prevInert:s,prevAriaHidden:d}))}),function(){for(;n.length;){const s=n.pop();s.el.inert=s.prevInert,s.prevAriaHidden===null?s.el.removeAttribute("aria-hidden"):s.el.setAttribute("aria-hidden",s.prevAriaHidden)}}}function To(o,t){const e=Rt();Ht(o,t);const i=Pt(o),n=Ot(o);return()=>{i.release(),n(),Bt(e)}}const zt=Object.freeze(Object.defineProperty({__proto__:null,applyDialog:Ht,createFocusTrap:Pt,getFocusable:W,openDialog:To,restoreFocus:Bt,saveFocus:Rt,setBackgroundInert:Ot},Symbol.toStringTag,{value:"Module"})),$t=o=>import(o);let _t=$t,L=null,$=null;const _=new Map,F=new Map;function Ao(o){_t=o??$t,L=null,$=null,_.clear(),F.clear()}function Ft(o,t){return`${o.replace(/\/+$/,"")}/${encodeURIComponent(t)}/definition`}function Lo(o){if(_.has(o))return Promise.resolve();const t=F.get(o);if(t)return t;const e=fetch(o,{headers:{Accept:"application/json"}}).then(i=>i.ok?i.json():null).then(i=>{i&&_.set(o,i)}).catch(()=>{}).finally(()=>{F.delete(o)});return F.set(o,e),e}function Vt(o){return L&&$===o||($=o,L=Promise.resolve(_t(o)).then(t=>{const e=t;if(!e||typeof e.QaidQuests!="function")throw new Error("quests module has no QaidQuests export");return e}).catch(t=>{throw L=null,$=null,t})),L}async function Nt(o){const t=await Vt(o.moduleUrl),e=o.base.replace(/\/+$/,""),i=Ft(e,o.questId),n=d=>d!=null?{feedbackId:d}:void 0;let a;const s=o.feedbackId;return s instanceof Promise?a=t.QaidQuests.supports?.asyncMetadata?s.then(n,()=>{}):n(await s.catch(()=>null)):a=n(s??null),new t.QaidQuests({endpoint:`${e}/responses`,configUrl:i,questionnaire:_.get(i),apiKey:o.apiKey||void 0,metadata:a,onClose:o.onClose})}const Do=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_QUESTS_MODULE_URL:st,_setQuestsImporter:Ao,launchQuest:Nt,loadQuestsModule:Vt,prefetchQuestDefinition:Lo,questDefinitionUrl:Ft},Symbol.toStringTag,{value:"Module"}));async function Ut(o,t){const e=o.ensureOverlayHost(),i=o.overlayShadowHost,n=i.style.pointerEvents;i.style.pointerEvents="auto";try{const{openAnnotationEditor:a,styles:s}=await Promise.resolve().then(()=>Mt);return o.addFeatureStyles(s),await a({dataUrl:t,root:e,quality:o.config.screenshotOptions.quality,color:o.config.annotationColor,palette:o.config.annotationPalette,applyVars:d=>o.applyVars(d),announce:(d,c)=>o.announceMsg(d,c),openDialog:(d,c)=>o.openDialogA11y(d,c),closeDialog:()=>o.closeDialogA11y()})}catch(a){return console.error("Annotation editor failed to open:",a),null}finally{i.style.pointerEvents=n}}async function Mo(o){const{config:t,feedbackData:e,selectedBounds:i}=o;let n=null;if(t.captureScreenshot||t.feedbackMode==="annotate")try{if(o.shouldCaptureViaDom()){const{captureDomScreenshot:r}=await Promise.resolve().then(()=>Tt);n=await r(t.screenshotOptions)}else{const{captureScreenshot:r}=await Promise.resolve().then(()=>Gt);n=await r(t.screenshotOptions)}n&&o.announceMsg("Screenshot captured")}catch(r){console.error("Screenshot capture failed:",r),n=null}n&&t.annotate&&(n=await Ut(o,n)??n);const s=e.elementSelector?{x:i.x,y:i.y,width:i.width,height:i.height}:null,d={feedbackType:e.feedbackType,pageUrl:window.location.href,apiKey:t.apiKey||void 0,elementSelector:e.elementSelector,elementText:e.elementText,consoleErrors:[...e.consoleErrors],screenWidth:window.innerWidth,screenHeight:window.innerHeight,clickX:i.clickX,clickY:i.clickY,scrollX:window.scrollX,scrollY:window.scrollY,screenshot:n,visitorId:o.visitorId,elementBounds:s,userAgent:navigator.userAgent},c=Io(o,d);o.setFeedbackId(c);const l=e.feedbackType;if(l&&l!=="neutral"&&await jt(o,l,c)){o.resetFeedbackUi();return}o.setState("MODAL_OPEN");try{const r=await o.ensureModal();if(o.destroyed)return;r.open(),o.overlayShadowHost&&(o.overlayShadowHost.style.pointerEvents="auto")}catch(r){console.error("Failed to open the feedback modal:",r),o.announceMsg("Thank you for your feedback!",!0),o.resetFeedbackUi()}}async function Io(o,t){try{const e=await fetch(o.config.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(e.ok){const i=await e.json();return o.announceMsg("Feedback sent"),i.id}}catch(e){console.error("Failed to submit feedback:",e),o.announceMsg("Failed to send feedback",!0)}return null}async function jt(o,t,e){const i=o.config.quests,n=i.base&&i[t]||"";if(!n)return!1;try{return o.activeQuest?.destroy(),o.activeQuest=await Nt({questId:n,base:i.base,apiKey:i.apiKey||void 0,moduleUrl:i.moduleUrl,feedbackId:e,onClose:()=>{o.activeQuest=null}}),!0}catch(a){return console.error("Failed to launch quest:",a),o.activeQuest=null,!1}}const Q=Object.freeze(Object.defineProperty({__proto__:null,openAnnotationEditor:Ut,submitFeedback:Mo,tryLaunchQuest:jt},Symbol.toStringTag,{value:"Module"})),Kt={width:400,height:280,arrowHeight:12,gap:8,viewportPadding:16};function Po(o,t,e,i,n){const a=o.y,s=t-(o.y+o.height);if(s>=e+i)return{top:o.y+o.height+i,position:"below"};if(a>=e+i)return{top:o.y-e-i,position:"above"};const d=s>a?"below":"above";let c;return d==="below"?c=Math.min(o.y+o.height+i,t-e-n):c=Math.max(n,o.y-e-i),{top:c,position:d}}function Ro(o,t,e,i){let a=o.x+o.width/2-e/2;return a=Math.max(i,Math.min(a,t-e-i)),a}function Bo(o,t,e,i=24,n=24){const s=o.clickX-t-n/2;return Math.max(i,Math.min(s,e-i-n/2))}function Ho(o,t,e,i=Kt){const n=i.height+i.arrowHeight,a=Po(o,e,n,i.gap,i.viewportPadding),s=Ro(o,t,i.width,i.viewportPadding);return{top:a.top,left:s,position:a.position}}function Oo(o,t,e,i=Kt){const n=Ho(o,t,e,i),a=Bo(o,n.left,i.width);return{modal:n,arrow:{left:a}}}const zo=document;function u(o,t,...e){const i=zo.createElement(o);if(t){if(t.class&&(i.className=t.class),t.style&&(i.style.cssText=t.style),t.html!=null&&(i.innerHTML=t.html),t.text!=null&&(i.textContent=t.text),t.attrs)for(const n in t.attrs)i.setAttribute(n,t.attrs[n]);if(t.on)for(const n in t.on)i.addEventListener(n,t.on[n])}for(const n of e)n!=null&&n!==!1&&i.append(n);return i}const $o=".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)}}.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}}.qaid-textarea:focus-visible,button.qaid-btn-submit:focus-visible{outline:2px solid var(--qaid-marker, #6365f1);outline-offset:2px}@media(forced-colors:active){.qaid-textarea:focus,button.qaid-btn-submit:focus{outline:2px solid CanvasText;outline-offset:2px}}";class _o{constructor(t){this.host=t}host;modalContainer=null;backdrop=null;finalized=!1;open(){this.finalized=!1;const t=this.host.ensureOverlayHost();this.backdrop=document.createElement("div"),this.backdrop.className="qaid-backdrop",this.backdrop.style.zIndex=String(this.host.config.zIndex+2),this.backdrop.style.background=`rgba(0, 0, 0, ${this.host.config.backdropOpacity})`,this.backdrop.addEventListener("click",()=>this.close()),this.host.applyVars(this.backdrop),this.host.isMobile?this.showBottomSheet():this.showPositionedModal(),t.appendChild(this.backdrop),document.addEventListener("keydown",this.host.boundKeyDown)}close(){this.host.state==="MODAL_OPEN"&&!this.finalized&&(this.finalized=!0,this.host.whenFeedbackId().then(t=>{t&&fetch(`${this.host.config.endpoint}/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:null})}).catch(e=>console.error("Failed to finalize feedback:",e))})),this.teardown(),this.host.resetFeedbackUi()}destroy(){this.teardown()}teardown(){this.host.closeDialogA11y(),this.modalContainer&&(this.modalContainer.remove(),this.modalContainer=null),this.backdrop&&(this.backdrop.remove(),this.backdrop=null),document.removeEventListener("keydown",this.host.boundKeyDown)}showBottomSheet(){const t=this.host.ensureOverlayHost(),e=document.createElement("div");e.className="qaid-bottom-sheet",e.style.zIndex=String(this.host.config.zIndex+3),e.appendChild(u("div",{class:"qaid-bottom-sheet-content"},u("div",{class:"qaid-bottom-sheet-handle"}),this.buildModalContent())),this.host.applyVars(e),t.appendChild(e),this.modalContainer=e,this.setupModalInteractions()}showPositionedModal(){const t=this.host.ensureOverlayHost(),{modal:e,arrow:i}=Oo(this.host.selectedBounds,window.innerWidth,window.innerHeight,{width:this.host.config.modalWidth,height:280,arrowHeight:12,gap:8,viewportPadding:16});this.modalContainer=document.createElement("div"),this.modalContainer.className=`qaid-modal-container qaid-${e.position}`,this.modalContainer.style.top=`${e.top}px`,this.modalContainer.style.left=`${e.left}px`,this.modalContainer.style.zIndex=String(this.host.config.zIndex+3);const n=document.createElement("div");n.className="qaid-modal-arrow",n.style.left=`${i.left}px`;const a=document.createElement("div");a.className="qaid-modal-box",a.appendChild(this.buildModalContent()),this.modalContainer.appendChild(n),this.modalContainer.appendChild(a),this.host.applyVars(this.modalContainer),t.appendChild(this.modalContainer),this.setupModalInteractions()}buildModalContent(){const{config:t,uid:e}=this.host,i=t.text,n=this.host.feedbackData.feedbackType,a=n==="up",s=t.positiveIcon||E,d=t.negativeIcon||V,c=t.buttonClass?`qaid-type-toggle qaid-type-toggle-custom ${t.buttonClass} ${a?"qaid-btn-up":"qaid-btn-down"}`:`qaid-type-toggle ${a?"qaid-type-up":"qaid-type-down"}`,l=a?"Feedback type: positive":"Feedback type: negative",r=n==="neutral"?u("span",{class:"qaid-type-static",html:t.feedbackIcon||tt,attrs:{"aria-hidden":"true"}}):u("button",{class:c,html:a?s:d,attrs:{type:"button",title:"Click to switch","aria-pressed":String(a),"aria-label":l}}),h=document.createDocumentFragment();return h.append(u("div",{class:"qaid-modal-header"},r,u("div",{class:"qaid-modal-header-text"},u("h3",{class:"qaid-modal-title",text:i.modalTitle,attrs:{id:`qaid-modal-title-${e}`}}),u("p",{class:"qaid-modal-subtitle",text:i.modalSubtitle,attrs:{id:`qaid-modal-subtitle-${e}`}}))),u("textarea",{class:"qaid-textarea",attrs:{"aria-label":i.modalSubtitle,placeholder:i.placeholder}}),u("div",{class:"qaid-btn-row"},u("button",{class:"qaid-btn-submit",text:i.skipButton,attrs:{type:"button"}}))),h}setupModalInteractions(){this.host.openDialogA11y(this.modalContainer,{labelledbyId:`qaid-modal-title-${this.host.uid}`,describedbyId:`qaid-modal-subtitle-${this.host.uid}`});const t=this.modalContainer.querySelector(".qaid-textarea"),e=this.modalContainer.querySelector(".qaid-btn-submit");t&&(setTimeout(()=>t.focus(),100),t.addEventListener("input",()=>{e&&(e.textContent=t.value.trim()?this.host.config.text.submitButton:this.host.config.text.skipButton)})),e&&e.addEventListener("click",()=>{const n=t?.value.trim()||null;this.submitMessage(n)});const i=this.modalContainer.querySelector(".qaid-type-toggle");i&&i.addEventListener("click",()=>{const n=this.host.feedbackData.feedbackType==="up"?"down":"up";this.host.feedbackData.feedbackType=n,this.host.config.buttonClass?(i.classList.toggle("qaid-btn-up",n==="up"),i.classList.toggle("qaid-btn-down",n==="down")):(i.classList.toggle("qaid-type-up",n==="up"),i.classList.toggle("qaid-type-down",n==="down"));const a=this.host.config.positiveIcon||E,s=this.host.config.negativeIcon||V;i.innerHTML=n==="up"?a:s;const d=n==="up"?"Feedback type: positive":"Feedback type: negative";i.setAttribute("aria-pressed",String(n==="up")),i.setAttribute("aria-label",d),this.host.announceMsg(d),this.host.whenFeedbackId().then(c=>{c&&fetch(`${this.host.config.endpoint}/${c}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({feedbackType:n})}).catch(l=>console.error("Failed to update feedback type:",l))})})}async submitMessage(t){let e=null;this.finalized=!0;const i=await this.host.whenFeedbackId();if(i)try{const n=await fetch(`${this.host.config.endpoint}/${i}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:t})});e=n.ok,n.ok||console.error("Failed to submit feedback message: HTTP",n.status)}catch(n){console.error("Failed to submit feedback message:",n),e=!1}if(e===!1){this.showResult(!1);return}if(e&&!this.host.config.hideConfirmation){this.showResult(!0);return}this.close()}showResult(t){const e=this.modalContainer?.querySelector(".qaid-modal-box")??this.modalContainer?.querySelector(".qaid-bottom-sheet-content")??this.modalContainer;if(!e){this.close();return}const i=this.host.config.text,n=t?i.confirmationTitle:i.errorTitle,a=t?i.confirmationMessage:i.errorMessage,s=u("h3",{class:"qaid-confirm-title",text:n,attrs:{id:`qaid-confirm-title-${this.host.uid}`,tabindex:"-1"}});e.textContent="",e.appendChild(u("div",{class:t?"qaid-confirm":"qaid-confirm qaid-confirm-error"},u("span",{class:"qaid-confirm-icon",html:t?et:ye,attrs:{"aria-hidden":"true"}}),s,u("p",{class:"qaid-confirm-message",text:a}),u("button",{class:"qaid-btn-submit qaid-confirm-close",text:i.confirmationClose,attrs:{type:"button"},on:{click:()=>this.close()}}))),requestAnimationFrame(()=>s.focus()),this.host.announceMsg(`${n} ${a}`,!0)}}const Wt=Object.freeze(Object.defineProperty({__proto__:null,ModalController:_o,styles:$o},Symbol.toStringTag,{value:"Module"})),Qt=["data-comp","data-qa","data-testid","data-id"];function Xt(o,t=document.body){let e=o;for(;e&&e!==t;){for(const i of Qt){const n=e.getAttribute(i);if(n)return`${i}="${n}"`}e=e.parentElement}return null}function Fo(o,t=100){const e=o.textContent?.trim().slice(0,t)||"";return e.length===t?e+"...":e}function Vo(o){let t=1,e=o.previousElementSibling;for(;e;)t++,e=e.previousElementSibling;return t}function No(o){const t=[];let e=o;for(;e&&e!==document.body&&e!==document.documentElement;){const i=e.tagName.toLowerCase(),n=Vo(e);t.unshift(`${i}:nth-child(${n})`),e=e.parentElement}return t.length>0?`body > ${t.join(" > ")}`:"body"}function Uo(o){return o.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")}function jo(o){const t=Xt(o);return t?`[${t}]`:o.id?`#${Uo(o.id)}`:No(o)}function X(o){const t=Fo(o),e=Xt(o);return{selector:jo(o),text:t,dataAttr:e}}const Ko=["a[href]","button","input:not([type=hidden])","select","textarea","summary","[tabindex]","[role]","img","h1","h2","h3","h4","h5","h6","p","li","label",...Qt.map(o=>`[${o}]`)].join(","),Wo=/^(?:A|BUTTON|INPUT|SELECT|TEXTAREA|SUMMARY)$/;function Qo(o){if(o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true")return!1;const t=o.ownerDocument?.defaultView;if(t&&typeof t.getComputedStyle=="function"){const e=t.getComputedStyle(o);if(e.display==="none"||e.visibility==="hidden")return!1}return!0}function Xo(o={}){const t=o.root??document.body,e=o.selector??Ko,i=o.isExcluded??(()=>!1),n=o.isVisible??Qo;return Array.from(t.querySelectorAll(e)).filter(a=>!i(a)&&n(a))}function Yo(o){const t=o.candidates??Xo({root:o.root,selector:o.selector,isExcluded:o.isExcluded,isVisible:o.isVisible}),e=o.moveFocus??!0,i=o.eventTarget??document,n=new Set;let a=-1,s=!1;const d=o.initial!==void 0?o.initial:typeof document<"u"?document.activeElement:null;if(d){const p=t.indexOf(d);p>=0&&(a=p)}a<0&&t.length>0&&(a=0);function c(p){if(!e)return;const q=p;if(typeof q.focus=="function"){p.getAttribute("tabindex")===null&&!Wo.test(p.tagName)&&(p.setAttribute("tabindex","-1"),n.add(p));try{q.focus()}catch{}}}function l(){const p=t[a];p&&(c(p),o.onHighlight?.(p,a))}function r(p){if(s||t.length===0)return;const q=t.length;a=(p%q+q)%q,l()}function h(){r(a+1)}function f(){r(a-1)}function m(){return t[a]??null}function g(){s||(s=!0,i.removeEventListener("keydown",C,!0),n.forEach(p=>p.removeAttribute("tabindex")),n.clear())}function y(){if(s)return;const p=m();g(),p&&o.onSelect(p)}function k(){s||(g(),o.onCancel?.())}function C(p){if(!s)switch(p.key){case"Tab":p.preventDefault(),p.stopPropagation(),p.shiftKey?f():h();break;case"ArrowDown":case"ArrowRight":p.preventDefault(),p.stopPropagation(),h();break;case"ArrowUp":case"ArrowLeft":p.preventDefault(),p.stopPropagation(),f();break;case"Enter":case" ":case"Spacebar":p.preventDefault(),p.stopPropagation(),y();break;case"Escape":case"Esc":p.preventDefault(),p.stopPropagation(),k();break}}return i.addEventListener("keydown",C,!0),a>=0&&l(),{candidates:t,getIndex:()=>a,getCurrent:m,next:h,prev:f,moveTo:r,select:y,cancel:k,handleKey:C,stop:g}}const Jo=".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}.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)}}@media(forced-colors:active){.qaid-selected-marker,.qaid-highlight-box{border-color:Highlight}}",Go=12;class Zo{constructor(t){this.host=t}host;mousePos={x:0,y:0};touchStartPos=null;overlayContainer=null;captureLayer=null;crosshairH=null;crosshairV=null;scope=null;highlightBox=null;marker=null;keyboardController=null;boundMouseMove=t=>this.handleMouseMove(t);boundClick=t=>this.handleClick(t);boundTouchStart=t=>this.handleTouchStart(t);boundTouchEnd=t=>this.handleTouchEnd(t);startPointer(t,e){this.host.setState("TARGETING"),this.host.feedbackData.feedbackType=t,this.host.feedbackData.elementSelector=null,this.host.feedbackData.elementText=null,this.host.selectedBounds.visible=!1,this.mousePos.x=e.clientX,this.mousePos.y=e.clientY,document.body.classList.add("qaid-targeting"),t==="up"?document.body.classList.add("qaid-type-up"):document.body.classList.remove("qaid-type-up"),document.body.style.setProperty("--qaid-positive",this.host.cssVars["--qaid-positive"]),document.body.style.setProperty("--qaid-negative",this.host.cssVars["--qaid-negative"]),this.createTargetingOverlay(),document.addEventListener("keydown",this.host.boundKeyDown),document.addEventListener("mousemove",this.boundMouseMove),document.addEventListener("click",this.boundClick,!0),document.addEventListener("touchstart",this.boundTouchStart,{passive:!0}),document.addEventListener("touchend",this.boundTouchEnd,{passive:!1})}startKeyboard(t){this.host.setState("TARGETING"),this.host.feedbackData.feedbackType=t,this.host.feedbackData.elementSelector=null,this.host.feedbackData.elementText=null,this.host.selectedBounds.visible=!1,document.body.style.setProperty("--qaid-positive",this.host.cssVars["--qaid-positive"]),document.body.style.setProperty("--qaid-negative",this.host.cssVars["--qaid-negative"]),this.createTargetingOverlay(),this.crosshairH&&(this.crosshairH.style.display="none"),this.crosshairV&&(this.crosshairV.style.display="none"),this.scope&&(this.scope.style.display="none"),this.keyboardController=Yo({isExcluded:e=>H(e),onHighlight:e=>{const i=e.getBoundingClientRect(),n=this.highlightBox;n&&(n.style.transform=`translate(${i.left}px, ${i.top}px)`,n.style.width=`${i.width}px`,n.style.height=`${i.height}px`,n.style.display="block");const{text:a}=X(e);this.host.announceMsg(`Targeting ${a||e.tagName.toLowerCase()}`)},onSelect:e=>this.selectKeyboardTarget(e),onCancel:()=>this.cancel()})}selectKeyboardTarget(t){const e=at(t,8);Object.assign(this.host.selectedBounds,e,{clickX:e.x+e.width/2,clickY:e.y+e.height/2,visible:!0});const{selector:i,text:n}=X(t);this.host.feedbackData.elementSelector=i,this.host.feedbackData.elementText=n,this.removeTargetingOverlay(),document.body.classList.remove("qaid-targeting","qaid-type-up"),document.body.style.removeProperty("--qaid-positive"),document.body.style.removeProperty("--qaid-negative"),this.keyboardController=null,this.host.clearActiveThumb(),this.host.setState("SELECTED"),this.showSelectedMarker(),this.host.submitFeedback()}createTargetingOverlay(){const t=this.host.ensureOverlayHost();this.overlayContainer=document.createElement("div"),this.overlayContainer.className=`qaid-targeting-overlay qaid-type-${this.host.feedbackData.feedbackType}`,this.captureLayer=document.createElement("div"),this.captureLayer.className="qaid-capture-layer";const e=document.createElement("div");e.className="qaid-vignette",this.crosshairH=document.createElement("div"),this.crosshairH.className="qaid-crosshair-h",this.crosshairV=document.createElement("div"),this.crosshairV.className="qaid-crosshair-v",this.scope=document.createElement("div"),this.scope.className="qaid-scope",this.scope.innerHTML=`
26
- <div class="qaid-scope-ring"></div>
27
- <div class="qaid-scope-ring-inner"></div>
28
- <div class="qaid-scope-dot"></div>
29
- `,this.highlightBox=document.createElement("div"),this.highlightBox.className="qaid-highlight-box",this.overlayContainer.appendChild(this.captureLayer),this.overlayContainer.appendChild(e),this.overlayContainer.appendChild(this.highlightBox),this.overlayContainer.appendChild(this.crosshairH),this.overlayContainer.appendChild(this.crosshairV),this.overlayContainer.appendChild(this.scope),this.crosshairH.style.top=`${this.mousePos.y}px`,this.crosshairV.style.left=`${this.mousePos.x}px`,this.scope.style.left=`${this.mousePos.x}px`,this.scope.style.top=`${this.mousePos.y}px`,this.host.applyVars(this.overlayContainer),t.appendChild(this.overlayContainer)}handleMouseMove(t){this.updateReticleAt(t.clientX,t.clientY)}updateReticleAt(t,e){if(this.mousePos.x=t,this.mousePos.y=e,this.crosshairH&&(this.crosshairH.style.top=`${e}px`),this.crosshairV&&(this.crosshairV.style.left=`${t}px`),this.scope&&(this.scope.style.left=`${t}px`,this.scope.style.top=`${e}px`),this.captureLayer&&this.host.shadowHost){const i=[this.host.shadowHost,this.host.overlayShadowHost].filter(Boolean),n=nt(t,e,i);if(n&&!H(n)){if(this.highlightBox){const a=n.getBoundingClientRect();this.highlightBox.style.transform=`translate(${a.left}px, ${a.top}px)`,this.highlightBox.style.width=`${a.width}px`,this.highlightBox.style.height=`${a.height}px`,this.highlightBox.style.display="block"}}else this.highlightBox&&(this.highlightBox.style.display="none")}}handleClick(t){t.preventDefault(),t.stopPropagation(),this.selectAt(t.clientX,t.clientY)}handleTouchStart(t){const e=t.touches[0];e&&(this.touchStartPos={x:e.clientX,y:e.clientY},this.updateReticleAt(e.clientX,e.clientY))}handleTouchEnd(t){const e=t.changedTouches[0],i=this.touchStartPos;this.touchStartPos=null,!(!e||!i||Math.hypot(e.clientX-i.x,e.clientY-i.y)>Go)&&(t.preventDefault(),this.selectAt(e.clientX,e.clientY))}selectAt(t,e){const i=[this.host.shadowHost,this.host.overlayShadowHost].filter(Boolean),n=nt(t,e,i);if(!n||H(n))return;const a=at(n,8);Object.assign(this.host.selectedBounds,a,{clickX:t,clickY:e,visible:!0});const{selector:s,text:d}=X(n);this.host.feedbackData.elementSelector=s,this.host.feedbackData.elementText=d,this.stopTargetingListeners(),document.body.classList.remove("qaid-targeting","qaid-type-up"),document.body.style.removeProperty("--qaid-positive"),document.body.style.removeProperty("--qaid-negative"),this.host.setState("SELECTED"),this.host.clearActiveThumb(),this.showSelectedMarker(),this.host.submitFeedback()}stopTargetingListeners(){this.removeTargetingOverlay(),this.touchStartPos=null,document.removeEventListener("mousemove",this.boundMouseMove),document.removeEventListener("click",this.boundClick,!0),document.removeEventListener("touchstart",this.boundTouchStart),document.removeEventListener("touchend",this.boundTouchEnd),document.removeEventListener("keydown",this.host.boundKeyDown)}cancel(){this.keyboardController?.stop(),this.keyboardController=null,this.stopTargetingListeners(),document.body.classList.remove("qaid-targeting","qaid-type-up"),document.body.style.removeProperty("--qaid-positive"),document.body.style.removeProperty("--qaid-negative"),this.host.clearActiveThumb(),this.host.setState("IDLE"),this.host.feedbackData.feedbackType=null,this.host.feedbackData.elementSelector=null,this.host.feedbackData.elementText=null,this.host.selectedBounds.visible=!1}removeTargetingOverlay(){this.overlayContainer&&(this.overlayContainer.remove(),this.overlayContainer=null),this.captureLayer=null,this.crosshairH=null,this.crosshairV=null,this.scope=null}showSelectedMarker(){const t=this.host.ensureOverlayHost();this.marker=document.createElement("div"),this.marker.className="qaid-selected-marker",this.marker.style.left=`${this.host.selectedBounds.x}px`,this.marker.style.top=`${this.host.selectedBounds.y}px`,this.marker.style.width=`${this.host.selectedBounds.width}px`,this.marker.style.height=`${this.host.selectedBounds.height}px`,this.marker.style.zIndex=String(this.host.config.zIndex+1),this.host.applyVars(this.marker),t.appendChild(this.marker)}hideMarker(){this.marker&&(this.marker.remove(),this.marker=null)}destroy(){this.keyboardController?.stop(),this.keyboardController=null,this.stopTargetingListeners(),this.hideMarker()}}const Yt=Object.freeze(Object.defineProperty({__proto__:null,TargetingController:Zo,styles:Jo},Symbol.toStringTag,{value:"Module"})),ti=".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)}@keyframes qaid-slideDown{0%{transform:translateY(-100%)}to{transform:translateY(0)}}button.qaid-recording-stop{min-height:24px}.qaid-video-preview-box textarea:focus-visible{outline:2px solid var(--qaid-marker, #6365f1);outline-offset:2px}@media(forced-colors:active){.qaid-video-preview-box textarea:focus{outline:2px solid CanvasText;outline-offset:2px}}";class ei{constructor(t){this.host=t}host;videoRecorder=null;networkCapture=null;recordedBlob=null;recordingIndicator=null;videoPreview=null;isRecording=!1;isSendingVideo=!1;redactPicks=[];redactPickerRoot=null;redactRafId=0;boundRedactClick=t=>this.handleRedactPickClick(t);handleEscape(){return this.isRecording?(this.stopRecording(),!0):this.videoPreview?(this.cancelRecordingPreview(),!0):this.redactPickerRoot?(this.finishRedactionPicking(!1),!0):!1}destroy(){this.redactRafId&&cancelAnimationFrame(this.redactRafId),this.redactRafId=0,document.removeEventListener("click",this.boundRedactClick,!0),this.redactPickerRoot&&(this.redactPickerRoot.remove(),this.redactPickerRoot=null),this.redactPicks=[],this.cleanupRecording(),this.removeVideoPreview()}async startRecording(t=[]){if(!(this.isRecording||this.host.state!=="IDLE"))try{this.networkCapture=gt();const{createVideoRecorder:e}=await Promise.resolve().then(()=>xt);this.videoRecorder=e({maxDuration:this.host.config.videoOptions.maxDuration,redactionElements:t}),this.videoRecorder.onTick(i=>{this.updateRecordingTimer(i)}),this.videoRecorder.onStop(i=>{this.isRecording&&(this.recordedBlob=i,this.isRecording=!1,this.host.announceMsg("Recording stopped"),this.removeRecordingIndicator(),document.removeEventListener("keydown",this.host.boundKeyDown),this.host.setButtonsDisabled(!1),i&&i.size>0?this.showRecordingPreview():this.cleanupRecording())}),await this.videoRecorder.start(),this.isRecording=!0,this.host.announceMsg("Recording started"),this.host.setButtonsDisabled(!0),this.showRecordingIndicator(),document.addEventListener("keydown",this.host.boundKeyDown)}catch(e){e instanceof Error&&/current tab|cannot blur/i.test(e.message)&&this.host.announceMsg(e.message),this.cleanupRecording()}}async stopRecording(){try{this.recordedBlob=await this.videoRecorder.stop()}catch{this.recordedBlob=null}this.isRecording=!1,this.host.announceMsg("Recording stopped"),this.removeRecordingIndicator(),document.removeEventListener("keydown",this.host.boundKeyDown),this.recordedBlob&&this.recordedBlob.size>0?this.showRecordingPreview():this.cleanupRecording()}startPicking(){if(this.isRecording||this.host.state!=="IDLE")return;this.host.setState("REDACT_PICKING"),this.redactPicks=[];const t=this.host.ensureOverlayHost(),e=u("div",{style:"position:absolute;inset:0;"}),i=u("div",{class:"qaid-redact-picker",style:"position:fixed;inset:0;pointer-events:none;"},e,u("div",{style:"position:fixed;left:50%;bottom:24px;transform:translateX(-50%);display:flex;gap:12px;align-items:center;pointer-events:auto;background:#0b1220;color:#fff;border:1px solid #ff6b6b;border-radius:9999px;padding:10px 16px;font:600 13px system-ui,sans-serif;box-shadow:0 8px 30px rgba(0,0,0,.5);"},u("span",{text:"Click sensitive areas to blur",attrs:{"data-qaid-redact-label":""}}),u("button",{text:"Start recording",attrs:{type:"button"},style:"cursor:pointer;border:0;border-radius:9999px;padding:8px 14px;background:#ff6b6b;color:#0b1220;font:inherit;",on:{click:()=>this.finishRedactionPicking(!0)}}),u("button",{text:"Cancel",attrs:{type:"button"},style:"cursor:pointer;border:0;background:transparent;color:#9fb3c8;font:inherit;",on:{click:()=>this.finishRedactionPicking(!1)}})));t.appendChild(i),this.redactPickerRoot=i;const n=()=>{this.renderRedactPicks(e),this.redactRafId=requestAnimationFrame(n)};n(),document.addEventListener("click",this.boundRedactClick,!0),document.addEventListener("keydown",this.host.boundKeyDown),this.host.announceMsg("Click sensitive areas to blur, then start recording")}handleRedactPickClick(t){const e=t.target instanceof Element?t.target:null;if(!e||H(e)||this.redactPickerRoot?.contains(e))return;t.preventDefault(),t.stopPropagation();const i=this.redactPicks.indexOf(e);i>=0?this.redactPicks.splice(i,1):this.redactPicks.push(e);const n=this.redactPickerRoot?.querySelector("[data-qaid-redact-label]");if(n){const a=this.redactPicks.length;n.textContent=a===0?"Click sensitive areas to blur":`${a} area${a===1?"":"s"} will be blurred`}}renderRedactPicks(t){t.textContent="";for(const e of this.redactPicks){const i=e.getBoundingClientRect();i.width<=0||i.height<=0||t.appendChild(u("div",{style:`position:fixed;left:${i.left}px;top:${i.top}px;width:${i.width}px;height:${i.height}px;border:2px solid #ff6b6b;border-radius:4px;background:rgba(255,107,107,.18);pointer-events:none;`}))}}finishRedactionPicking(t){this.redactRafId&&cancelAnimationFrame(this.redactRafId),this.redactRafId=0,document.removeEventListener("click",this.boundRedactClick,!0),document.removeEventListener("keydown",this.host.boundKeyDown),this.redactPickerRoot&&(this.redactPickerRoot.remove(),this.redactPickerRoot=null);const e=this.redactPicks;this.redactPicks=[],this.host.setState("IDLE"),t&&this.startRecording(e)}showRecordingIndicator(){const t=this.host.ensureOverlayHost();this.recordingIndicator=u("div",{class:"qaid-recording-indicator",style:`z-index:${this.host.config.zIndex+100}`},u("div",{class:"qaid-recording-dot"}),u("span",{class:"qaid-recording-time",text:this.formatTime(this.host.config.videoOptions.maxDuration)}),u("button",{class:"qaid-recording-stop",text:"Stop",attrs:{type:"button"},on:{click:()=>this.stopRecording()}})),this.host.applyVars(this.recordingIndicator),t.appendChild(this.recordingIndicator)}updateRecordingTimer(t){if(!this.recordingIndicator)return;const e=this.recordingIndicator.querySelector(".qaid-recording-time");if(e){const i=Math.max(0,this.host.config.videoOptions.maxDuration-t);e.textContent=this.formatTime(i),i>0&&i<=5&&this.host.announceMsg(`${i} second${i===1?"":"s"} remaining`)}}formatTime(t){const e=Math.floor(t/60),i=t%60;return`${e}:${i.toString().padStart(2,"0")}`}removeRecordingIndicator(){this.recordingIndicator&&(this.recordingIndicator.remove(),this.recordingIndicator=null)}showRecordingPreview(){const t=this.host.ensureOverlayHost(),e=URL.createObjectURL(this.recordedBlob),i=`qaid-video-title-${this.host.uid}`,n=u("h3",{text:"Review your recording",attrs:{id:i}}),a=u("video");a.src=e,a.controls=!0,a.autoplay=!0,a.muted=!0;const s=u("textarea",{attrs:{placeholder:"Optional: Describe the issue you recorded...","aria-label":"Describe the issue you recorded"}}),d=u("button",{class:"qaid-video-btn qaid-video-btn-send",text:"Send",attrs:{type:"button"},on:{click:()=>this.submitVideoFeedback(s.value.trim()||null,d)}}),c=u("div",{class:"qaid-video-preview-box"},n,a,s,u("div",{class:"qaid-video-preview-actions"},u("button",{class:"qaid-video-btn qaid-video-btn-cancel",text:"Cancel",attrs:{type:"button"},on:{click:()=>this.cancelRecordingPreview()}}),u("button",{class:"qaid-video-btn qaid-video-btn-rerecord",text:"Re-record",attrs:{type:"button"},on:{click:()=>{this.cancelRecordingPreview(),this.startRecording()}}}),d));this.videoPreview=u("div",{class:"qaid-video-preview",style:`z-index:${this.host.config.zIndex+100}`},c),this.host.applyVars(this.videoPreview),this.host.overlayShadowHost&&(this.host.overlayShadowHost.style.pointerEvents="auto"),t.appendChild(this.videoPreview),this.host.openDialogA11y(c,{labelledbyId:n.id}),document.addEventListener("keydown",this.host.boundKeyDown)}cancelRecordingPreview(){this.removeVideoPreview(),this.cleanupRecording()}removeVideoPreview(){if(this.host.closeDialogA11y(),this.videoPreview){const t=this.videoPreview.querySelector("video");t?.src&&URL.revokeObjectURL(t.src),this.videoPreview.remove(),this.videoPreview=null}document.removeEventListener("keydown",this.host.boundKeyDown)}async submitVideoFeedback(t,e){if(!this.recordedBlob||this.isSendingVideo)return;this.isSendingVideo=!0,e.disabled=!0,e.textContent="Sending...";const i=new FormData;i.append("video",this.recordedBlob,`recording.${this.recordedBlob.type.includes("mp4")?"mp4":"webm"}`),i.append("pageUrl",window.location.href),i.append("visitorId",this.host.visitorId),this.host.config.apiKey&&i.append("apiKey",this.host.config.apiKey),t&&i.append("message",t),this.host.consoleCapture&&i.append("consoleErrors",JSON.stringify(this.host.consoleCapture.errors)),this.networkCapture&&i.append("networkErrors",JSON.stringify(this.networkCapture.errors));let n=null,a=null;try{const s=await fetch(`${this.host.config.endpoint}/video`,{method:"POST",body:i});if(s.ok){this.host.announceMsg("Recording sent");try{n=(await s.json())?.id??null}catch{}}else console.error("Failed to submit video feedback:",await s.text()),a=s.status===413?"This recording is too large to send. Try a shorter one.":"Your recording could not be sent."}catch(s){console.error("Failed to submit video feedback:",s),a="Your recording could not be sent. Check your connection and try again."}if(this.isSendingVideo=!1,a){this.showSendError(a,e);return}this.removeVideoPreview(),this.cleanupRecording(),await this.host.tryLaunchQuest("video",n)}showSendError(t,e){this.host.announceMsg(`Failed to send recording. ${t}`,!0),e.disabled=!1,e.textContent="Send";const i=this.videoPreview?.querySelector(".qaid-video-preview-actions");if(i){let n=this.videoPreview.querySelector(".qaid-video-error");n||(n=u("p",{class:"qaid-video-error"}),i.before(n)),n.textContent=t}}cleanupRecording(){this.isRecording=!1,this.removeRecordingIndicator(),this.videoRecorder&&(this.videoRecorder.destroy(),this.videoRecorder=null),this.networkCapture&&(this.networkCapture.restore(),this.networkCapture=null),this.recordedBlob&&(this.recordedBlob=null),this.host.setButtonsDisabled(!1),this.host.overlayShadowHost&&this.host.state==="IDLE"&&(this.host.overlayShadowHost.style.pointerEvents="none")}}const Jt=Object.freeze(Object.defineProperty({__proto__:null,RecordingController:ei,styles:ti},Symbol.toStringTag,{value:"Module"}));async function oi(o={}){const{quality:t=.8,maxWidth:e=1280,maxHeight:i=800}=o;try{if(!navigator.mediaDevices?.getDisplayMedia)return console.warn("Screen Capture API not available"),null;const n=await navigator.mediaDevices.getDisplayMedia({preferCurrentTab:!0,video:{displaySurface:"browser"}}),a=n.getVideoTracks()[0],s=a.getSettings(),d=document.createElement("video");d.srcObject=n,d.muted=!0,await new Promise(y=>{d.onloadedmetadata=()=>{d.play(),y()}}),await new Promise(y=>{const k=()=>{d.readyState>=2?y():requestAnimationFrame(k)};k()}),await new Promise(y=>setTimeout(y,100));const c=s.width||d.videoWidth,l=s.height||d.videoHeight,r=Math.min(e/c,i/l,1),h=Math.round(c*r),f=Math.round(l*r),m=document.createElement("canvas");m.width=h,m.height=f;const g=m.getContext("2d");return g?(g.drawImage(d,0,0,h,f),a.stop(),m.toDataURL("image/webp",t)):(a.stop(),null)}catch(n){return console.warn("Screenshot capture failed:",n),null}}const Gt=Object.freeze(Object.defineProperty({__proto__:null,captureScreenshot:oi},Symbol.toStringTag,{value:"Module"}));v.AnnotationEditor=K,v.QaidFeedback=ut,v.captureDomScreenshot=Et,v.captureNetworkErrors=gt,v.compositeAnnotations=j,v.createVideoRecorder=qt,v.drawShape=R,v.getSupportedMimeType=U,v.isDomScreenshotSupported=St,v.isVideoRecordingSupported=kt,v.openAnnotationEditor=Dt,v.rectFromPoints=P,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})}));
25
+ </svg>`,lo="http://www.w3.org/2000/svg",kr={};for(const e of["svg","g","path","circle","ellipse","rect","line","polyline","polygon","title","desc","defs","linearGradient","radialGradient","stop","clipPath"])kr[e.toLowerCase()]=e;const Mr={};for(const e of["viewBox","width","height","preserveAspectRatio","version","fill","fill-rule","fill-opacity","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-dasharray","stroke-dashoffset","stroke-opacity","clip-rule","clip-path","clipPathUnits","opacity","vector-effect","shape-rendering","d","points","x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","fx","fy","transform","class","id","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","aria-hidden","aria-label","focusable","role"])Mr[e.toLowerCase()]=e;const Bo=new Set(["title","desc"]),Or=5e4,uo=1e3,ho={lt:"<",gt:">",amp:"&",quot:'"',apos:"'",nbsp:" "};function Rr(e){return e.replace(/&(#x[0-9a-f]+|#\d+|[a-z]+);/gi,(A,t)=>{if(t[0]==="#"){const r=t[1]==="x"||t[1]==="X"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return r>0&&r<=1114111?String.fromCodePoint(r):""}return ho[t.toLowerCase()]??A})}const qr=/url\(\s*(['"]?)#[A-Za-z_][\w.:-]*\1\s*\)/gi;function go(e,A){const t=A.replace(/[\u0000- \u007f-\u009f]+/g,"").toLowerCase();if(/(java|vb)script:|data:|expression\(/.test(t))return!1;const r=A.replace(qr,"");return/url\(/.test(r.replace(/[\u0000- \u007f-\u009f]+/g,"").toLowerCase())?!1:e==="clip-path"?/^\s*none\s*$/i.test(A)||new RegExp(`^\\s*${qr.source}\\s*$`,"i").test(A):!0}function Vr(e){if(typeof e!="string"||typeof document>"u")return null;const A=e.trim();if(!A||A.length>Or)return null;let t=null,r=!1,n=0;const i=[];let s=0;const o=()=>i[i.length-1];for(;s<A.length&&!r;){const a=A.indexOf("<",s),c=a===-1?A.length:a;if(c>s){const v=A.slice(s,c),U=o();if(U?.node&&Bo.has(U.name))U.node.appendChild(document.createTextNode(Rr(v)));else if(!U&&v.trim())return null}if(a===-1)break;if(s=a,A.startsWith("<!--",s)){const v=A.indexOf("-->",s+4);if(v===-1)return null;s=v+3;continue}if(A.startsWith("<?",s)){if(t)return null;const v=A.indexOf("?>",s+2);if(v===-1)return null;s=v+2;continue}if(A.startsWith("<!",s))return null;if(A[s+1]==="/"){const v=/^<\/\s*([A-Za-z][\w:.-]*)\s*>/.exec(A.slice(s,s+200));if(!v)return null;s+=v[0].length;const U=v[1].toLowerCase(),F=i.map(w=>w.name).lastIndexOf(U);F!==-1&&(i.length=F,F===0&&(r=!0));continue}const l=/^<([A-Za-z][\w:.-]*)/.exec(A.slice(s,s+200));if(!l)return null;const d=l[1].toLowerCase();s+=l[0].length;const g=[];let u=!1,f=!1;for(;s<A.length;){const v=/^\s*/.exec(A.slice(s,s+1e3))[0];if(s+=v.length,A.startsWith("/>",s)){u=!0,f=!0,s+=2;break}if(A[s]===">"){f=!0,s+=1;break}const U=/^([^\s=/>"'<]+)/.exec(A.slice(s,s+200));if(!U)return null;const F=U[1];s+=F.length;let w="";const E=/^\s*=\s*/.exec(A.slice(s,s+1e3));if(E){s+=E[0].length;const y=A[s];if(y==='"'||y==="'"){const b=A.indexOf(y,s+1);if(b===-1)return null;w=A.slice(s+1,b),s=b+1}else{const b=/^[^\s>]+/.exec(A.slice(s,s+Or));if(!b)return null;w=b[0],w.endsWith("/")&&A[s+w.length]===">"&&(w=w.slice(0,-1)),s+=w.length}}g.push([F,Rr(w)])}if(!f||++n>uo)return null;const m=o();if(m){if(!m.node){u||i.push({name:d,node:null});continue}}else if(t||d!=="svg")return null;const Q=kr[d];if(!Q){u||i.push({name:d,node:null});continue}const h=document.createElementNS(lo,Q);for(const[v,U]of g){const F=Mr[v.toLowerCase()];F&&go(F,U)&&h.setAttribute(F,U)}m?m.node.appendChild(h):t=h,u?m||(r=!0):i.push({name:d,node:h})}return t}function TA(e,A){return(e?Vr(e):null)??Vr(A)}function DA(e,A,t){e.textContent="",e.appendChild(TA(A,t))}const fo="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}button.qaid-btn-record:hover{background:#dc2626;color:#fff}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-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}@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{outline:2px solid CanvasText;outline-offset:2px}}",wo="body.qaid-targeting,body.qaid-targeting *{cursor:none!important}";let ne=0;const Qo="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)}",Co={small:36,medium:48,large:64},po={small:18,medium:24,large:32};function Uo(e,A,t){const[r,n,i]=[e,A,t].map(s=>(s=s/255,s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)));return .2126*r+.7152*n+.0722*i}function Fo(e){if(e.startsWith("#")){const t=e.slice(1),r=t.length===3?t.split("").map(i=>i+i).join(""):t,n=parseInt(r,16);return{r:n>>16&255,g:n>>8&255,b:n&255}}const A=e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);return A?{r:parseInt(A[1]),g:parseInt(A[2]),b:parseInt(A[3])}:null}function vo(e){const A=Fo(e);return A&&Uo(A.r,A.g,A.b)>.4?"black":"white"}function mo(e={}){const{positiveColor:A="rgb(0, 200, 83)",negativeColor:t="rgb(255, 0, 0)",markerColor:r="#6365f1",buttonSize:n="medium",modalWidth:i=400,backdropOpacity:s=.3,fontFamily:o="system-ui, -apple-system, sans-serif",fontSize:a=16}=e,c=Co[n],l=po[n],B=vo(r);return{"--qaid-positive":A,"--qaid-negative":t,"--qaid-marker":r,"--qaid-marker-text":B,"--qaid-btn-size":`${c}px`,"--qaid-icon-size":`${l}px`,"--qaid-modal-width":`${i}px`,"--qaid-backdrop-opacity":String(s),"--qaid-font-family":o,"--qaid-font-size":`${a}px`}}function bo(e,A){for(const[t,r]of Object.entries(A))e.style.setProperty(t,r)}function Nr(){return fo+Qo}function yo(){if(ne++,ne>1)return;const e=document.createElement("style");e.id="qaid-styles",e.textContent=wo,document.head.appendChild(e)}function Eo(){ne<=0||(ne--,ne===0&&document.getElementById("qaid-styles")?.remove())}const Gr="data-qaid-a11y-live",Ho="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;";function Io(e){return e.ownerDocument||document}function xo(e,A){const t=A?"assertive":"polite",r=e.querySelector(`[${Gr}="${t}"]`);if(r)return r;const i=Io(e).createElement("div");return i.setAttribute(Gr,t),i.setAttribute("role",A?"alert":"status"),i.setAttribute("aria-live",A?"assertive":"polite"),i.setAttribute("aria-atomic","true"),i.style.cssText=Ho,e.appendChild(i),i}function Lo(e,A,t={}){const r=xo(e,!!t.assertive);r.textContent="",r.textContent=A}function Ko(e,A,t,r={}){const n=r.gap??8;let i=e.bottom+n;i+A.height>t.height-n&&(i=e.top-A.height-n);let s=e.left;return s<n?s=n:s+A.width>t.width-n&&(s=t.width-A.width-n),i<n?i=n:i+A.height>t.height-n&&(i=t.height-A.height-n),{top:i,left:s}}const So=20;function To(e){const A=[],t=console.error,r=console.warn,n=console.log,i=(s,o)=>{const a={message:o.map(c=>String(c)).join(" "),timestamp:Date.now(),level:s};A.length>=So&&A.shift(),A.push(a),e&&e(a)};return console.error=function(...s){i("error",s),t.apply(console,s)},console.warn=function(...s){i("warn",s),r.apply(console,s)},console.log=function(...s){i("log",s),n.apply(console,s)},{errors:A,restore:()=>{console.error=t,console.warn=r,console.log=n}}}function $(e,A,t){const r=document.createElement(e);if(A)for(const[n,i]of Object.entries(A))n==="className"?r.className=i:r.setAttribute(n,i);if(t)for(const n of t)typeof n=="string"?r.appendChild(document.createTextNode(n)):r.appendChild(n);return r}function Do(e=640){return typeof window<"u"&&window.innerWidth<e}function Pr(e,A,t){const r=t.map(i=>i.style.visibility);t.forEach(i=>i.style.visibility="hidden");const n=document.elementFromPoint(e,A);return t.forEach((i,s)=>i.style.visibility=r[s]),n}function He(e){return e?e.hasAttribute("data-qaid-embed")||e.hasAttribute("data-qaid-embed-overlay")?!0:!!e.closest("[data-qaid-embed], [data-qaid-embed-overlay]"):!1}function _r(e,A=0){const t=e.getBoundingClientRect();return{x:t.left-A,y:t.top-A,width:t.width+A*2,height:t.height+A*2}}const NA="https://unpkg.com/@qaiddev/quests-embed@1.11.0/dist/qaid-quests.js",ko="sha384-w5xVbyvdrJUM+he0J0AFPtdzfem3CLSbVKUydXWcMAP28z2anhQmlNgWGulyY7kl",Mo=/^https:\/\/unpkg\.com\/@qaiddev\/quests-embed@\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?\//;let Xr=!1;function Oo(e){if(!e)return NA;if(e===NA)return e;try{const A=typeof location<"u"?location.href:void 0,t=new URL(e,A);if(Mo.test(t.href)&&!/%2e|%2f|%5c/i.test(t.pathname)||A&&t.origin===new URL(A).origin&&(t.protocol==="https:"||t.protocol==="http:"))return t.href}catch{}return Xr||(Xr=!0,console.warn(`[thumbs-embed] Ignoring quests moduleUrl "${e}": use a same-origin URL or https://unpkg.com/@qaiddev/quests-embed@<exact version>/…. Using ${NA}.`)),NA}const Jr="qaid_visitor_id",Wr="qaid_hide_feedback",Ro=["#ef4444","#f59e0b","#22c55e","#3b82f6","#111827","#ffffff"];function qo(){return typeof window.matchMedia=="function"&&window.matchMedia("(pointer: coarse)").matches}function It(e){return e?`${Wr}_${e}`:Wr}function Vo(e){try{return localStorage.getItem(It(e))==="1"}catch{return!1}}function Yr(e,A=!0){try{A?localStorage.setItem(It(e),"1"):localStorage.removeItem(It(e))}catch{}}function Zr(){const e=typeof crypto<"u"?crypto:void 0;if(e&&typeof e.randomUUID=="function")return e.randomUUID();const A=new Uint8Array(16);if(e&&typeof e.getRandomValues=="function")e.getRandomValues(A);else for(let r=0;r<A.length;r++)A[r]=Math.floor(Math.random()*256);A[6]=A[6]&15|64,A[8]=A[8]&63|128;const t=Array.from(A,r=>r.toString(16).padStart(2,"0")).join("");return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}function No(){try{let e=localStorage.getItem(Jr);return e||(e=Zr(),localStorage.setItem(Jr,e)),e}catch{return Zr()}}function zr(e,A){const t=document.createElement("style");t.setAttribute("data-qaid-feature",""),t.textContent=A;const r=e.querySelectorAll("style[data-qaid-base], style[data-qaid-feature]"),n=r[r.length-1];e.insertBefore(t,n?n.nextSibling:e.firstChild)}class jr{config;state="IDLE";feedbackData={feedbackType:null,elementSelector:null,elementText:null,consoleErrors:[]};selectedBounds={x:0,y:0,width:0,height:0,clickX:0,clickY:0,visible:!1};feedbackIdPromise=Promise.resolve(null);questsPrewarmed=!1;activeQuest=null;isMobile=!1;visitorId;consoleCapture=null;recording=null;targeting=null;clickPathPrewarmed=!1;prewarmHandle=null;prewarmIsTimeout=!1;videoPrewarmed=!1;screenshotPrewarmed=!1;shadowHost=null;shadowRoot=null;overlayShadowHost=null;overlayShadowRoot=null;buttonsContainer=null;isUserProvidedContainer=!1;modal=null;dismissBtn=null;cssVars={};activeThumbBtn=null;keyboardActivation=!1;dialogModule=null;dialogClose=null;uid=Math.random().toString(36).slice(2,9);boundKeyDown;boundResize;_startDismissed=!1;destroyed=!1;domObserver=null;boundBeforeSwap=null;constructor(A){this.config={endpoint:A.endpoint,apiKey:A.apiKey??"",container:A.container??"",buttonClass:A.buttonClass??"",direction:A.direction??"horizontal",position:A.position??"bottom-right",offset:{x:A.offset?.x??16,y:A.offset?.y??16},zIndex:A.zIndex??50,skipTargeting:A.skipTargeting??!1,singleButton:A.singleButton??!1,feedbackMode:A.feedbackMode??"target",colors:{positive:A.colors?.positive??"rgb(0, 200, 83)",negative:A.colors?.negative??"rgb(255, 0, 0)",marker:A.colors?.marker??"#6365f1"},buttonSize:A.buttonSize??"medium",text:{tooltip:A.text?.tooltip??"",modalTitle:A.text?.modalTitle??"Thank you for your feedback!",modalSubtitle:A.text?.modalSubtitle??"Would you like to add a message to help us understand your feedback better?",placeholder:A.text?.placeholder??"Optional: Tell us more about your experience...",submitButton:A.text?.submitButton??"Submit",skipButton:A.text?.skipButton??"Skip",positiveLabel:A.text?.positiveLabel??"Send positive feedback",negativeLabel:A.text?.negativeLabel??"Send negative feedback",recordLabel:A.text?.recordLabel??"Record a screen recording",dismissLabel:A.text?.dismissLabel??"Hide Feedback",feedbackLabel:A.text?.feedbackLabel??"Send feedback",confirmationTitle:A.text?.confirmationTitle??"Thank you!",confirmationMessage:A.text?.confirmationMessage??"Your feedback has been received.",confirmationClose:A.text?.confirmationClose??"Close",errorTitle:A.text?.errorTitle??"Message not sent",errorMessage:A.text?.errorMessage??"Something went wrong, so we did not get your message. Please try again later."},hideConfirmation:A.hideConfirmation??!1,modalWidth:A.modalWidth??400,backdropOpacity:A.backdropOpacity??.3,fontFamily:A.fontFamily??"system-ui, -apple-system, sans-serif",fontSize:A.fontSize??16,captureScreenshot:A.captureScreenshot??!1,annotate:A.annotate??!0,annotationColor:A.annotationColor??A.colors?.marker??"#6365f1",annotationPalette:A.annotationPalette??Ro,screenshotMethod:A.screenshotMethod??"permission",screenshotOptions:{quality:A.screenshotOptions?.quality??.8,maxWidth:A.screenshotOptions?.maxWidth??1280,maxHeight:A.screenshotOptions?.maxHeight??800},incognito:A.incognito??!1,hideDismiss:A.hideDismiss??!1,positiveIcon:A.positiveIcon??"",negativeIcon:A.negativeIcon??"",feedbackIcon:A.feedbackIcon??"",hideThumbs:A.hideThumbs??!1,css:A.css??"",captureVideo:A.captureVideo??!1,videoOptions:{maxDuration:A.videoOptions?.maxDuration??15,redaction:A.videoOptions?.redaction??!1},recordIcon:A.recordIcon??"",quests:{base:A.quests?.base??"",up:A.quests?.up??"",down:A.quests?.down??"",video:A.quests?.video??"",apiKey:A.quests?.apiKey??A.apiKey??"",moduleUrl:Oo(A.quests?.moduleUrl)}},this.boundKeyDown=this.handleKeyDown.bind(this),this.boundResize=this.handleResize.bind(this),this.visitorId=No(),this.init()}applyVars(A){bo(A,this.cssVars)}announceMsg(A,t=!1){const r=this.overlayShadowRoot??this.shadowRoot;r&&Lo(r,A,{assertive:t})}async loadDialogA11y(){this.dialogModule??=await Promise.resolve().then(()=>In)}openDialogA11y(A,t){this.dialogClose=this.dialogModule.openDialog(A,t)}closeDialogA11y(){const A=this.dialogClose;this.dialogClose=null,A?.()}clearActiveThumb(){this.activeThumbBtn&&(this.activeThumbBtn.setAttribute("aria-pressed","false"),this.activeThumbBtn=null)}init(){yo(),this.cssVars=mo({positiveColor:this.config.colors.positive,negativeColor:this.config.colors.negative,markerColor:this.config.colors.marker,buttonSize:this.config.buttonSize,modalWidth:this.config.modalWidth,backdropOpacity:this.config.backdropOpacity,fontFamily:this.config.fontFamily,fontSize:this.config.fontSize}),!this.config.hideDismiss&&Vo(this.config.apiKey)&&(this._startDismissed=!0),this.checkMobile(),window.addEventListener("resize",this.boundResize),this.createEmbed(),this.consoleCapture=To(A=>{this.feedbackData.consoleErrors=this.consoleCapture?.errors??[]}),this.feedbackData.consoleErrors=this.consoleCapture.errors,this.observeDom(),this.schedulePrewarm(()=>{this.prewarmClickPath(),this.config.captureVideo&&this.videoSupported()&&this.prewarmVideo(),this.config.captureScreenshot&&this.prewarmScreenshot(),this.prewarmQuests()})}prewarmClickPath(){this.clickPathPrewarmed||(this.clickPathPrewarmed=!0,Promise.resolve().then(()=>Tt).catch(()=>{}),Promise.resolve().then(()=>In).catch(()=>{}),Promise.resolve().then(()=>qn).catch(()=>{}),this.skipsTargeting()||Promise.resolve().then(()=>Gn).catch(()=>{}))}skipsTargeting(){return this.config.skipTargeting||this.config.feedbackMode==="annotate"}prewarmVideo(){this.videoPrewarmed||(this.videoPrewarmed=!0,Promise.resolve().then(()=>Pn).catch(()=>{}),Promise.resolve().then(()=>un).catch(()=>{}))}prewarmScreenshot(){this.screenshotPrewarmed||(this.screenshotPrewarmed=!0,(this.shouldCaptureViaDom()?Promise.resolve().then(()=>Qn):Promise.resolve().then(()=>_n)).catch(()=>{}),this.config.annotate&&Promise.resolve().then(()=>Fn).catch(()=>{}))}linkedQuestIds(){const A=this.config.quests;return A.base?[A.up,A.down,A.video].filter(t=>t):[]}prewarmQuests(){if(this.questsPrewarmed)return;const A=this.linkedQuestIds();if(A.length===0)return;this.questsPrewarmed=!0;const{base:t,moduleUrl:r}=this.config.quests;Promise.resolve().then(()=>Ka).then(n=>{n.loadQuestsModule(r).catch(()=>{});for(const i of A)n.prefetchQuestDefinition(n.questDefinitionUrl(t,i))}).catch(()=>{})}schedulePrewarm(A){const t=window,r=()=>{this.destroyed||A()};typeof t.requestIdleCallback=="function"?(this.prewarmIsTimeout=!1,this.prewarmHandle=t.requestIdleCallback(r,{timeout:2e3})):(this.prewarmIsTimeout=!0,this.prewarmHandle=window.setTimeout(r,1200))}observeDom(){this.boundBeforeSwap=A=>{const t=A.newDocument;!t||this.destroyed||(this.shadowHost&&t.body.appendChild(this.shadowHost),this.overlayShadowHost&&t.body.appendChild(this.overlayShadowHost))},document.addEventListener("astro:before-swap",this.boundBeforeSwap),this.domObserver=new MutationObserver(()=>{this.destroyed||(this.shadowHost&&!this.shadowHost.isConnected&&document.body.appendChild(this.shadowHost),this.overlayShadowHost&&!this.overlayShadowHost.isConnected&&document.body.appendChild(this.overlayShadowHost))}),this.domObserver.observe(document.body,{childList:!0})}checkMobile(){this.isMobile=Do()}handleResize(){this.checkMobile()}createEmbed(){this.shadowHost=document.createElement("div"),this.shadowHost.setAttribute("data-qaid-embed",""),this.shadowHost.style.position="static",this.shadowHost.style.display="contents";let A=null;this.config.container&&(A=document.querySelector(this.config.container)),A?(A.appendChild(this.shadowHost),this.isUserProvidedContainer=!0,this.config.hideDismiss=!0):(this.shadowHost.style.position="fixed",this.shadowHost.style.display="block",this.shadowHost.style.inset="0",this.shadowHost.style.pointerEvents="none",this.shadowHost.style.zIndex=String(this.config.zIndex),document.body.appendChild(this.shadowHost)),this.shadowRoot=this.shadowHost.attachShadow({mode:"open"});const t=document.createElement("style");if(t.setAttribute("data-qaid-base",""),t.textContent=Nr(),this.shadowRoot.appendChild(t),this.config.css){const l=document.createElement("style");l.textContent=this.config.css,this.shadowRoot.appendChild(l)}const r=this.config.direction==="vertical"?"qaid-vertical":"";if(this.isUserProvidedContainer)this.buttonsContainer=document.createElement("div"),this.buttonsContainer.className=`qaid-buttons qaid-${this.config.position} ${r}`.trim(),this.config.incognito&&this.buttonsContainer.classList.add("qaid-incognito");else{this.buttonsContainer=document.createElement("div"),this.buttonsContainer.className=`qaid-buttons qaid-auto-container qaid-${this.config.position} ${r}${this.config.incognito?" qaid-incognito":""}`.trim(),this.buttonsContainer.style.pointerEvents="auto";const{x:l,y:B}=this.config.offset;this.config.position.includes("right")?this.buttonsContainer.style.right=`${l}px`:this.buttonsContainer.style.left=`${l}px`,this.config.position.includes("bottom")?this.buttonsContainer.style.bottom=`${B}px`:this.buttonsContainer.style.top=`${B}px`}this.applyVars(this.buttonsContainer),this.shadowRoot.appendChild(this.buttonsContainer),this.buttonsContainer.addEventListener("keydown",l=>{(l.key==="Enter"||l.key===" "||l.key==="Spacebar")&&(this.keyboardActivation=!0)}),this.buttonsContainer.addEventListener("mousedown",()=>{this.keyboardActivation=!1}),this.buttonsContainer.addEventListener("pointerdown",()=>{this.keyboardActivation=!1});const n=()=>this.prewarmClickPath();this.buttonsContainer.addEventListener("pointerenter",n),this.buttonsContainer.addEventListener("focusin",n);const i=!!this.config.buttonClass,s=i?`qaid-btn-structural ${this.config.buttonClass}`:"qaid-btn",a=this.config.text.tooltip||"Feedback for us?",c=document.createElement("div");if(c.className="qaid-tooltip-text",c.textContent=a,this.applyVars(c),this.shadowRoot.appendChild(c),this.tooltipElement=c,this.config.singleButton){const l=document.createElement("div");l.className="qaid-tooltip-wrapper";const B=document.createElement("button");B.type="button",B.className=i?`${s} qaid-btn-feedback`:"qaid-btn qaid-btn-feedback",B.setAttribute("aria-label",this.config.text.feedbackLabel),DA(B,this.config.feedbackIcon,Tr),B.addEventListener("click",d=>this.handleThumbClick("neutral",d.currentTarget,d)),B.addEventListener("mouseenter",()=>this.showTooltip(B)),B.addEventListener("mouseleave",()=>this.hideTooltip()),l.appendChild(B),this.buttonsContainer.appendChild(l)}else if(!this.config.hideThumbs){const l=document.createElement("div");l.className="qaid-tooltip-wrapper";const B=document.createElement("button");B.type="button",B.className=i?`${s} qaid-btn-up`:"qaid-btn qaid-btn-up",B.setAttribute("aria-label",this.config.text.positiveLabel),DA(B,this.config.positiveIcon,Et),B.addEventListener("click",u=>this.handleThumbClick("up",u.currentTarget,u)),B.addEventListener("mouseenter",()=>{this.prewarmQuests(),this.showTooltip(B)}),B.addEventListener("mouseleave",()=>this.hideTooltip()),l.appendChild(B);const d=document.createElement("div");d.className="qaid-tooltip-wrapper";const g=document.createElement("button");g.type="button",g.className=i?`${s} qaid-btn-down`:"qaid-btn qaid-btn-down",g.setAttribute("aria-label",this.config.text.negativeLabel),DA(g,this.config.negativeIcon,Ht),g.addEventListener("click",u=>this.handleThumbClick("down",u.currentTarget,u)),g.addEventListener("mouseenter",()=>{this.prewarmQuests(),this.showTooltip(g)}),g.addEventListener("mouseleave",()=>this.hideTooltip()),d.appendChild(g),this.buttonsContainer.appendChild(l),this.buttonsContainer.appendChild(d)}if(this.config.captureVideo&&this.videoSupported()){const l=document.createElement("div");l.className="qaid-tooltip-wrapper";const B=document.createElement("button");B.type="button",B.className=i?`${s} qaid-btn-record`:"qaid-btn qaid-btn-record",B.setAttribute("aria-label",this.config.text.recordLabel),DA(B,this.config.recordIcon,eo),B.addEventListener("click",()=>{this.ensureRecording().then(g=>this.config.videoOptions.redaction?g.startPicking():g.startRecording())});const d=()=>this.prewarmVideo();B.addEventListener("mouseenter",()=>{d(),this.showTooltip(B)}),B.addEventListener("focus",d),B.addEventListener("touchstart",d,{passive:!0}),B.addEventListener("mouseleave",()=>this.hideTooltip()),l.appendChild(B),this.buttonsContainer.appendChild(l)}this.config.hideDismiss||(this.dismissBtn=document.createElement("button"),this.dismissBtn.type="button",this.dismissBtn.className="qaid-dismiss-btn",this.dismissBtn.setAttribute("aria-label",this.config.text.dismissLabel),this.dismissBtn.title=this.config.text.dismissLabel,DA(this.dismissBtn,null,to),this.dismissBtn.addEventListener("click",l=>{l.stopPropagation(),this.handleDismiss()}),this.buttonsContainer.insertBefore(this.dismissBtn,this.buttonsContainer.firstChild),this._startDismissed&&this.buttonsContainer.classList.add("qaid-dismissed"))}ensureOverlayHost(){if(this.overlayShadowRoot)return this.overlayShadowRoot;this.overlayShadowHost=document.createElement("div"),this.overlayShadowHost.setAttribute("data-qaid-embed-overlay",""),this.overlayShadowHost.style.position="fixed",this.overlayShadowHost.style.inset="0",this.overlayShadowHost.style.pointerEvents="none",this.overlayShadowHost.style.zIndex=String(this.config.zIndex),document.body.appendChild(this.overlayShadowHost),this.overlayShadowRoot=this.overlayShadowHost.attachShadow({mode:"open"});const A=document.createElement("style");A.setAttribute("data-qaid-base",""),A.textContent=Nr(),this.overlayShadowRoot.appendChild(A);for(const t of this.featureStyles)zr(this.overlayShadowRoot,t);if(this.config.css){const t=document.createElement("style");t.textContent=this.config.css,this.overlayShadowRoot.appendChild(t)}return this.overlayShadowRoot}featureStyles=[];addFeatureStyles(A){if(!this.featureStyles.includes(A)){this.featureStyles.push(A);for(const t of[this.shadowRoot,this.overlayShadowRoot])t&&zr(t,A)}}tooltipElement=null;showTooltip(A){const t=this.tooltipElement;t.style.visibility="hidden",t.classList.add("qaid-tooltip-visible");const r=A.getBoundingClientRect(),n=t.getBoundingClientRect(),{top:i,left:s}=Ko(r,n,{width:window.innerWidth,height:window.innerHeight});t.style.top=`${i}px`,t.style.left=`${s}px`,t.style.visibility="visible"}hideTooltip(){this.tooltipElement.classList.remove("qaid-tooltip-visible")}handleDismiss(){this.buttonsContainer.classList.add("qaid-dismissed"),Yr(this.config.apiKey,!0)}handleThumbClick(A,t,r){if(this.buttonsContainer?.classList.contains("qaid-incognito")&&(this.buttonsContainer.classList.remove("qaid-incognito"),Yr(this.config.apiKey,!1)),this.prewarmClickPath(),this.skipsTargeting())this.submitDirectFeedback(A,t);else{this.activeThumbBtn=t,t.setAttribute("aria-pressed","true");const n=this.keyboardActivation;this.keyboardActivation=!1,this.ensureTargeting().then(i=>{this.destroyed||(n?i.startKeyboard(A):i.startPointer(A,r))})}}submitDirectFeedback(A,t){this.feedbackData.feedbackType=A,this.feedbackData.elementSelector=null,this.feedbackData.elementText=null;const r=t.getBoundingClientRect();this.selectedBounds={x:r.left,y:r.top,width:r.width,height:r.height,clickX:r.left+r.width/2,clickY:r.top+r.height/2,visible:!1},this.submitFeedback()}handleKeyDown(A){if(A.key==="Escape"){if(this.recording?.handleEscape())return;this.state==="TARGETING"?this.targeting?.cancel():this.state==="MODAL_OPEN"&&this.modal?.close()}}shouldCaptureViaDom(){return this.config.screenshotMethod==="dom"||qo()}async submitFeedback(){try{const[A]=await Promise.all([Promise.resolve().then(()=>Tt),this.loadDialogA11y()]);await A.submitFeedback(this.makeSendHost())}catch(A){console.error("Failed to send feedback:",A),this.announceMsg("Failed to send feedback",!0),this.resetFeedbackUi()}}async tryLaunchQuest(A,t){try{return await(await Promise.resolve().then(()=>Tt)).tryLaunchQuest(this.makeSendHost(),A,t)}catch(r){return console.error("Failed to launch quest:",r),!1}}makeSendHost(){const A=this;return{get config(){return A.config},get visitorId(){return A.visitorId},get feedbackData(){return A.feedbackData},get selectedBounds(){return A.selectedBounds},get destroyed(){return A.destroyed},get overlayShadowHost(){return A.overlayShadowHost},get activeQuest(){return A.activeQuest},set activeQuest(t){A.activeQuest=t},setState:t=>{A.state=t},setFeedbackId:t=>{A.feedbackIdPromise=t},shouldCaptureViaDom:()=>A.shouldCaptureViaDom(),ensureOverlayHost:()=>A.ensureOverlayHost(),ensureModal:()=>A.ensureModal(),addFeatureStyles:t=>A.addFeatureStyles(t),applyVars:t=>A.applyVars(t),announceMsg:(t,r)=>A.announceMsg(t,r),openDialogA11y:(t,r)=>A.openDialogA11y(t,r),closeDialogA11y:()=>A.closeDialogA11y(),resetFeedbackUi:()=>A.resetFeedbackUi()}}resetFeedbackUi(){this.targeting?.hideMarker(),this.overlayShadowHost&&(this.overlayShadowHost.style.pointerEvents="none"),this.state="IDLE",this.feedbackIdPromise=Promise.resolve(null),this.feedbackData.feedbackType=null,this.feedbackData.elementSelector=null,this.feedbackData.elementText=null,this.selectedBounds.visible=!1}async ensureModal(){if(!this.modal){const[{ModalController:A,styles:t}]=await Promise.all([Promise.resolve().then(()=>qn),this.loadDialogA11y()]);this.addFeatureStyles(t),this.modal=new A(this.makeModalHost())}return this.modal}makeModalHost(){const A=this;return{get config(){return A.config},get uid(){return A.uid},get isMobile(){return A.isMobile},get state(){return A.state},get boundKeyDown(){return A.boundKeyDown},get feedbackData(){return A.feedbackData},get selectedBounds(){return A.selectedBounds},whenFeedbackId:()=>A.feedbackIdPromise,ensureOverlayHost:()=>A.ensureOverlayHost(),applyVars:t=>A.applyVars(t),announceMsg:(t,r)=>A.announceMsg(t,r),openDialogA11y:(t,r)=>A.openDialogA11y(t,r),closeDialogA11y:()=>A.closeDialogA11y(),resetFeedbackUi:()=>A.resetFeedbackUi()}}async ensureTargeting(){if(!this.targeting){const{TargetingController:A,styles:t}=await Promise.resolve().then(()=>Gn);this.addFeatureStyles(t),this.targeting=new A(this.makeTargetingHost())}return this.targeting}makeTargetingHost(){const A=this;return{get config(){return A.config},get cssVars(){return A.cssVars},get state(){return A.state},get shadowHost(){return A.shadowHost},get overlayShadowHost(){return A.overlayShadowHost},get boundKeyDown(){return A.boundKeyDown},get feedbackData(){return A.feedbackData},get selectedBounds(){return A.selectedBounds},setState:t=>{A.state=t},ensureOverlayHost:()=>A.ensureOverlayHost(),applyVars:t=>A.applyVars(t),announceMsg:(t,r)=>A.announceMsg(t,r),clearActiveThumb:()=>A.clearActiveThumb(),submitFeedback:()=>A.submitFeedback()}}videoSupported(){return typeof navigator<"u"&&!!navigator.mediaDevices&&typeof navigator.mediaDevices.getDisplayMedia=="function"&&typeof MediaRecorder<"u"}async ensureRecording(){if(!this.recording){const[{RecordingController:A,styles:t}]=await Promise.all([Promise.resolve().then(()=>Pn),this.loadDialogA11y()]);this.addFeatureStyles(t),this.recording=new A(this.makeRecordingHost())}return this.recording}makeRecordingHost(){const A=this;return{get config(){return A.config},get visitorId(){return A.visitorId},get uid(){return A.uid},get overlayShadowHost(){return A.overlayShadowHost},get consoleCapture(){return A.consoleCapture},get boundKeyDown(){return A.boundKeyDown},get state(){return A.state},setState:t=>{A.state=t},ensureOverlayHost:()=>A.ensureOverlayHost(),applyVars:t=>A.applyVars(t),announceMsg:(t,r)=>A.announceMsg(t,r),openDialogA11y:(t,r)=>A.openDialogA11y(t,r),closeDialogA11y:()=>A.closeDialogA11y(),setButtonsDisabled:t=>A.setButtonsDisabled(t),tryLaunchQuest:(t,r)=>A.tryLaunchQuest(t,r)}}setButtonsDisabled(A){if(!this.buttonsContainer)return;this.buttonsContainer.querySelectorAll("button.qaid-btn, button.qaid-btn-structural").forEach(r=>{A?r.classList.contains("qaid-btn-record")||(r.disabled=!0,r.style.opacity="0.5"):(r.disabled=!1,r.style.opacity="")})}destroy(){if(this.destroyed=!0,this.domObserver&&(this.domObserver.disconnect(),this.domObserver=null),this.boundBeforeSwap&&(document.removeEventListener("astro:before-swap",this.boundBeforeSwap),this.boundBeforeSwap=null),this.targeting?.destroy(),this.targeting=null,this.clearActiveThumb(),this.closeDialogA11y(),this.prewarmHandle!==null){const A=window;this.prewarmIsTimeout?clearTimeout(this.prewarmHandle):A.cancelIdleCallback?.(this.prewarmHandle),this.prewarmHandle=null}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,Eo()}}var Go="__qaidThumbsOrigin";function $r(e){return document.querySelector(e)?.textContent?.trim()??""}const An=Go;function en(e){const A=e.split(/[?#]/)[0];return A.substring(A.lastIndexOf("/")+1)}function Po(e){const A=document.currentScript;if(A&&A.tagName==="SCRIPT")return A;if(!e)return null;const t=Array.from(document.getElementsByTagName("script")).filter(o=>o.src),r=t.find(o=>o.src===e);if(r)return r;const n=t.filter(o=>o[An]);if(n.length===1)return n[0];const i=en(e),s=t.filter(o=>en(o.src)===i);return s.length===1?s[0]:null}function tn(e){return!!e&&e.tagName==="SCRIPT"&&(e.getAttribute("type")||"").trim().toLowerCase()==="application/json"}function _o(e){const A=e[An],t=A&&A.tagName==="SCRIPT"?A:e,r=t.getAttribute("data-config-id")||e.getAttribute("data-config-id");if(r){const n=document.getElementById(r);return tn(n)?n:null}for(const n of[t.previousElementSibling,t.nextElementSibling])if(tn(n)&&n.hasAttribute("data-feedback-config"))return n;return null}function Xo(e){const A=_o(e);if(!A)return null;const t=A.textContent?.trim();if(!t)return null;try{const r=JSON.parse(t);return r.cssSelector&&!r.css&&(r.css=$r(r.cssSelector),delete r.cssSelector),r}catch{return null}}function rn(e,A,t){console.warn(`[thumbs-embed] Ignoring ${e}="${A}": expected ${t}.`)}function Jo(e){const A=[];let t=0,r="";for(const n of e)n==="("&&t++,n===")"&&(t=Math.max(0,t-1)),n===","&&t===0?(A.push(r.trim()),r=""):r+=n;return A.push(r.trim()),A}function Wo(e,A){if(A===null)return;const t=A.trim();let r=null;if(t.startsWith("[")||t.startsWith("{"))try{r=JSON.parse(t)}catch{r=null}else r=Jo(t);if(Array.isArray(r)&&r.length>0&&r.every(n=>typeof n=="string"&&n.trim()!==""))return r.map(n=>n.trim());rn(e,A,"a JSON array of colours or a comma-separated list")}function Ie(e,A){if(A!==null){if(A.trim()===""){rn(e,A,"a non-empty label");return}return A}}function Yo(e){const A=e.getAttribute("data-endpoint");if(!A)return null;const t=e.getAttribute("data-position"),r=e.getAttribute("data-zindex"),n=e.getAttribute("data-positive-color"),i=e.getAttribute("data-negative-color"),s=e.getAttribute("data-marker-color"),o=e.getAttribute("data-container"),a=e.getAttribute("data-button-class"),c=e.getAttribute("data-skip-targeting"),l=e.getAttribute("data-hide-confirmation"),B=e.getAttribute("data-single-button"),d=e.getAttribute("data-feedback-mode"),g=e.getAttribute("data-incognito"),u=e.getAttribute("data-button-size"),f=e.getAttribute("data-offset-x"),m=e.getAttribute("data-offset-y"),Q=e.getAttribute("data-modal-width"),h=e.getAttribute("data-backdrop-opacity"),v=e.getAttribute("data-font-family"),U=e.getAttribute("data-font-size"),F=e.getAttribute("data-tooltip"),w=e.getAttribute("data-modal-title"),E=e.getAttribute("data-confirmation-title"),y=e.getAttribute("data-confirmation-message"),b=e.getAttribute("data-confirmation-close"),D=e.getAttribute("data-error-title"),_=e.getAttribute("data-error-message"),W=e.getAttribute("data-modal-subtitle"),x=e.getAttribute("data-placeholder"),R=e.getAttribute("data-submit-button"),cA=e.getAttribute("data-skip-button"),Y=e.getAttribute("data-positive-icon"),Z=e.getAttribute("data-negative-icon"),UA=e.getAttribute("data-feedback-icon"),eA=e.getAttribute("data-feedback-label"),gA=e.getAttribute("data-api-key"),FA=e.getAttribute("data-capture-screenshot"),vA=e.getAttribute("data-annotate"),lA=e.getAttribute("data-annotation-color"),BA=e.getAttribute("data-screenshot-quality"),tA=e.getAttribute("data-screenshot-max-width"),fA=e.getAttribute("data-screenshot-max-height"),VA=e.getAttribute("data-capture-video"),Ws=e.getAttribute("data-video-redaction"),Lh=e.getAttribute("data-hide-thumbs"),Kh=e.getAttribute("data-hide-dismiss"),Sr=e.getAttribute("data-video-max-duration"),Sh=e.getAttribute("data-screenshot-method"),Th=e.getAttribute("data-direction"),Ys=e.getAttribute("data-css-selector"),Dh=e.getAttribute("data-css"),Zs=Ie("data-positive-label",e.getAttribute("data-positive-label")),zs=Ie("data-negative-label",e.getAttribute("data-negative-label")),js=Ie("data-record-label",e.getAttribute("data-record-label")),$s=Ie("data-dismiss-label",e.getAttribute("data-dismiss-label")),kh=Wo("data-annotation-palette",e.getAttribute("data-annotation-palette")),Mh=e.getAttribute("data-record-icon"),Ao=e.getAttribute("data-quest-base"),Oh=e.getAttribute("data-quest-up"),Rh=e.getAttribute("data-quest-down"),qh=e.getAttribute("data-quest-video"),Vh=e.getAttribute("data-quest-api-key"),Nh=e.getAttribute("data-quest-module-url");return{endpoint:A,css:Dh||(Ys?$r(Ys):void 0),apiKey:gA??void 0,captureScreenshot:FA==="true"?!0:void 0,annotate:vA==="false"?!1:void 0,annotationColor:lA??void 0,annotationPalette:kh,screenshotOptions:BA||tA||fA?{quality:BA?parseFloat(BA):void 0,maxWidth:tA?parseInt(tA,10):void 0,maxHeight:fA?parseInt(fA,10):void 0}:void 0,container:o??void 0,buttonClass:a??void 0,direction:Th??void 0,position:t??void 0,zIndex:r?parseInt(r,10):void 0,skipTargeting:c==="true"?!0:void 0,hideConfirmation:l==="true"?!0:void 0,singleButton:B==="true"?!0:void 0,feedbackMode:d??void 0,incognito:g==="true"?!0:void 0,buttonSize:u??void 0,offset:f||m?{x:f?parseInt(f,10):void 0,y:m?parseInt(m,10):void 0}:void 0,modalWidth:Q?parseInt(Q,10):void 0,backdropOpacity:h?parseFloat(h):void 0,fontFamily:v??void 0,fontSize:U?parseInt(U,10):void 0,colors:{positive:n??void 0,negative:i??void 0,marker:s??void 0},text:F||w||W||x||R||cA||eA||E||y||b||D||_||Zs||zs||js||$s?{tooltip:F??void 0,modalTitle:w??void 0,modalSubtitle:W??void 0,placeholder:x??void 0,submitButton:R??void 0,skipButton:cA??void 0,feedbackLabel:eA??void 0,confirmationTitle:E??void 0,confirmationMessage:y??void 0,confirmationClose:b??void 0,errorTitle:D??void 0,errorMessage:_??void 0,positiveLabel:Zs,negativeLabel:zs,recordLabel:js,dismissLabel:$s}:void 0,positiveIcon:Y??void 0,recordIcon:Mh??void 0,negativeIcon:Z??void 0,feedbackIcon:UA??void 0,screenshotMethod:Sh??void 0,captureVideo:VA==="true"?!0:void 0,hideThumbs:Lh==="true"?!0:void 0,hideDismiss:Kh==="true"?!0:void 0,videoOptions:Sr||Ws?{maxDuration:Sr?parseInt(Sr,10):void 0,redaction:Ws==="true"?!0:void 0}:void 0,quests:Ao?{base:Ao,up:Oh??void 0,down:Rh??void 0,video:qh??void 0,apiKey:Vh??void 0,moduleUrl:Nh??void 0}:void 0}}function Zo(e){if(typeof document>"u")return;const A=Po(e);if(!A)return;const t=()=>{const r=Xo(A)??Yo(A);r?.endpoint&&new jr(r)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t):t()}const zo=20,nn=4096;function xe(e){const A=typeof e=="string"?e:JSON.stringify(e);return A.length>nn?A.slice(0,nn)+"…[truncated]":A}function sn(e,A){e.length>=zo&&e.shift(),e.push(A)}async function jo(e){try{const A=await e.clone().text();return xe(A)}catch{return}}function on(){const e=[],A=window.fetch;window.fetch=async function(n,i){const s=typeof n=="string"?n:n instanceof URL?n.toString():n.url,o=i?.method??(typeof n=="object"&&"method"in n?n.method:"GET");let a;i?.body&&(a=xe(i.body));const c=await A.apply(window,[n,i]);if(c.status>=400){const l=await jo(c);sn(e,{url:s,method:o.toUpperCase(),status:c.status,statusText:c.statusText,requestBody:a,responseBody:l,timestamp:Date.now()})}return c};const t=XMLHttpRequest.prototype.open,r=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(n,i,...s){return this._qaid_method=n,this._qaid_url=typeof i=="string"?i:i.toString(),t.apply(this,[n,i,...s])},XMLHttpRequest.prototype.send=function(n){const i=this,s=n?xe(n):void 0;return i.addEventListener("load",function(){i.status>=400&&sn(e,{url:i._qaid_url,method:i._qaid_method.toUpperCase(),status:i.status,statusText:i.statusText,requestBody:s,responseBody:xe(i.responseText),timestamp:Date.now()})}),r.apply(this,[n])},{errors:e,restore:()=>{window.fetch=A,XMLHttpRequest.prototype.open=t,XMLHttpRequest.prototype.send=r}}}function $o(){const e=navigator.userAgent||"";return/iP(hone|ad|od)/.test(e)||navigator.platform==="MacIntel"&&(navigator.maxTouchPoints||0)>1}function Aa(e,A,t,r,n){const i=e>=A,s=t>=r;return i===s?{width:e,height:A,rotate:0}:{width:A,height:e,rotate:n===270?-90:90}}function ea(e,A,t){if(t.rotate===0){e.drawImage(A,0,0,t.width,t.height);return}e.save(),t.rotate===90?(e.translate(t.width,0),e.rotate(Math.PI/2)):(e.translate(0,t.height),e.rotate(-Math.PI/2)),e.drawImage(A,0,0,t.height,t.width),e.restore()}function ta(){const e=typeof screen<"u"?screen.orientation:void 0;return e&&typeof e.angle=="number"?e.angle:0}function an(e){return new Promise(A=>{if(e.videoWidth>0){A();return}e.addEventListener("loadedmetadata",()=>A(),{once:!0})})}async function cn(e){try{await e.play()}catch{}}async function ra(e,A=15){const t=document.createElement("canvas");if(typeof t.captureStream!="function")return null;const r=t.getContext("2d");if(!r)return null;const n=document.createElement("video");n.muted=!0,n.playsInline=!0,n.srcObject=e,await an(n);const i=Aa(n.videoWidth,n.videoHeight,window.innerWidth,window.innerHeight,ta());t.width=i.width,t.height=i.height,await cn(n);let s=0;const o=()=>{ea(r,n,i),s=requestAnimationFrame(o)};o();const a=t.captureStream(A);return{stream:a,stop:()=>{s&&cancelAnimationFrame(s),s=0,a.getTracks().forEach(c=>c.stop()),n.pause(),n.srcObject=null}}}function na(e,A,t,r,n){const i=Math.max(0,Math.min(r,e.left*A)),s=Math.max(0,Math.min(n,e.top*t)),o=Math.max(0,Math.min(r,(e.left+e.width)*A)),a=Math.max(0,Math.min(n,(e.top+e.height)*t)),c=o-i,l=a-s;return c<=0||l<=0?null:{x:i,y:s,w:c,h:l}}function ia(e,A,t,r,n,i,s){e.drawImage(A,0,0,r,n);const o=r/Math.max(1,window.innerWidth),a=n/Math.max(1,window.innerHeight);for(const c of t){const l=na(c.getBoundingClientRect(),o,a,r,n);l&&(e.save(),s?(e.filter=`blur(${i}px)`,e.drawImage(A,l.x,l.y,l.w,l.h,l.x,l.y,l.w,l.h)):(e.fillStyle="#0b0b0b",e.fillRect(l.x,l.y,l.w,l.h)),e.restore())}}async function sa(e,A,t={}){const r=t.frameRate??15,n=t.blurRadius??12,i=document.createElement("canvas");if(typeof i.captureStream!="function")return null;const s=i.getContext("2d");if(!s)return null;const o="filter"in s,a=document.createElement("video");a.muted=!0,a.playsInline=!0,a.srcObject=e,await an(a),i.width=a.videoWidth,i.height=a.videoHeight,await cn(a);let c=0;const l=()=>{ia(s,a,A,i.width,i.height,n,o),c=requestAnimationFrame(l)};l();const B=i.captureStream(r);return{stream:B,stop:()=>{c&&cancelAnimationFrame(c),c=0,B.getTracks().forEach(d=>d.stop()),a.pause(),a.srcObject=null}}}const ln="This browser cannot blur the areas you picked, so the recording was not started.";function Bn(){return typeof navigator<"u"&&!!navigator.mediaDevices&&typeof navigator.mediaDevices.getDisplayMedia=="function"&&typeof MediaRecorder<"u"}function xt(){if(typeof MediaRecorder>"u")return"";const e=["video/webm;codecs=vp9","video/webm;codecs=vp8","video/webm","video/mp4"];for(const A of e)if(MediaRecorder.isTypeSupported(A))return A;return""}function dn(e={}){const A=e.maxDuration??15,t=e.videoBitsPerSecond??8e5,r=e.redactionElements??[],n=e.redactionBlurRadius;let i=null,s=null,o=null,a=null,c=[],l=null,B=null,d=null,g=0,u=null,f=null,m=!1,Q=null;function h(){d!==null&&(clearInterval(d),d=null),Q!==null&&(clearTimeout(Q),Q=null),s&&(s.stop(),s=null),o&&(o.stop(),o=null),i&&(i.getTracks().forEach(U=>U.stop()),i=null),a=null,c=[],l=null,B=null,u=null,f=null}function v(){m||(m=!0,a&&a.state!=="inactive"&&a.stop())}return{async start(){m=!1,c=[];const U=xt();if(!U)throw new Error("No supported video MIME type found");i=await navigator.mediaDevices.getDisplayMedia({video:{frameRate:15,displaySurface:"browser"},audio:!1,preferCurrentTab:!0,selfBrowserSurface:"include",monitorTypeSurfaces:"exclude",surfaceSwitching:"exclude"});const F=i.getVideoTracks()[0],w=F?.getSettings?.()?.displaySurface;if(w==="monitor"||w==="window")throw i.getTracks().forEach(y=>y.stop()),i=null,new Error("qaid records only the current tab — please share this tab, not a window or your whole screen.");F&&F.addEventListener("ended",()=>{v()});let E=i;if($o()){const y=await ra(i);y&&(s=y,E=y.stream)}if(r.length>0){const y=await sa(E,r,{blurRadius:n});if(!y)throw s&&(s.stop(),s=null),i.getTracks().forEach(b=>b.stop()),i=null,new Error(ln);o=y,E=y.stream}a=new MediaRecorder(E,{mimeType:U,videoBitsPerSecond:t}),a.ondataavailable=y=>{y.data.size>0&&c.push(y.data)},a.onstop=()=>{const y=new Blob(c,{type:U});u&&u(y),B&&B(y),s&&(s.stop(),s=null),o&&(o.stop(),o=null),i&&i.getTracks().forEach(b=>b.stop())},a.onerror=()=>{f&&f(new Error("MediaRecorder error"))},a.start(1e3),g=Date.now(),d=setInterval(()=>{const y=Math.floor((Date.now()-g)/1e3);l&&l(y)},1e3),Q=setTimeout(()=>{v()},A*1e3)},stop(){return new Promise((U,F)=>{u=U,f=F,v()})},onTick(U){l=U},onStop(U){B=U},destroy(){v(),h()}}}const un=Object.freeze(Object.defineProperty({__proto__:null,REDACTION_UNAVAILABLE:ln,createVideoRecorder:dn,getSupportedMimeType:xt,isVideoRecordingSupported:Bn},Symbol.toStringTag,{value:"Module"}));let GA=null;const hn=()=>Promise.resolve().then(()=>xh);let gn=hn;function oa(e){gn=e??hn,GA=null}function fn(){if(typeof document>"u"||typeof window>"u")return!1;const e=document.createElement("canvas");return typeof e.getContext=="function"&&!!e.getContext("2d")}function aa(){return GA||(GA=gn().then(e=>e.default,()=>(GA=null,null)),GA)}async function wn(e={}){const{quality:A=.8,maxWidth:t=1280,maxHeight:r=800}=e;try{const n=await aa();if(!n)return console.warn("html2canvas failed to load"),null;const i=await n(document.body,{useCORS:!0,allowTaint:!1,logging:!1,windowWidth:document.documentElement.clientWidth,windowHeight:document.documentElement.clientHeight,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,x:window.scrollX,y:window.scrollY,ignoreElements:c=>c instanceof HTMLElement?c.classList.contains("qaid-buttons")||c.classList.contains("qaid-targeting-overlay")||c.classList.contains("qaid-modal-container")||c.classList.contains("qaid-bottom-sheet")||c.classList.contains("qaid-backdrop")||c.classList.contains("qaid-selected-marker")||c.classList.contains("qaid-tooltip-text")||c.classList.contains("qaid-recording-indicator")||c.classList.contains("qaid-video-preview")||c.className?.toString().startsWith?.("qaid-"):!1}),s=i.width,o=i.height,a=Math.min(t/s,r/o,1);if(a<1){const c=Math.round(s*a),l=Math.round(o*a),B=document.createElement("canvas");B.width=c,B.height=l;const d=B.getContext("2d");return d?(d.drawImage(i,0,0,c,l),B.toDataURL("image/webp",A)):null}return i.toDataURL("image/webp",A)}catch(n){return console.warn("DOM screenshot capture failed:",n),null}}const Qn=Object.freeze(Object.defineProperty({__proto__:null,_setHtml2CanvasImporter:oa,captureDomScreenshot:wn,isDomScreenshotSupported:fn},Symbol.toStringTag,{value:"Module"})),ca=".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}}@keyframes qaid-fadeIn{0%{opacity:0}to{opacity:1}}",PA=12,la="#ef4444",Ba=["#ef4444","#f59e0b","#22c55e","#3b82f6","#111827","#ffffff"],da={"#ef4444":"red","#f59e0b":"amber","#22c55e":"green","#3b82f6":"blue","#111827":"black","#ffffff":"white","#6365f1":"indigo","#6366f1":"indigo"};function Cn(e){return da[e.toLowerCase()]??e}const ua=4,ha=.8,ga={title:"Annotate screenshot",instructions:"Draw on the screenshot to highlight or hide details, then choose Done to attach it or Skip to send the original.",rectangle:"Rectangle",arrow:"Arrow",pen:"Pen",blur:"Blur or redact",undo:"Undo last",skip:"Skip annotation",done:"Done",colors:"Drawing colour"};function ie(e,A){return{x:Math.min(e.x,A.x),y:Math.min(e.y,A.y),w:Math.abs(e.x-A.x),h:Math.abs(e.y-A.y)}}function fa(e){if(e.type==="pen")return e.points.length<2;const A=ie(e.points[0],e.points[1]);return A.w<3&&A.h<3}function wa(e,A,t,r){e.beginPath(),e.moveTo(A.x,A.y),e.lineTo(t.x,t.y),e.stroke();const n=Math.atan2(t.y-A.y,t.x-A.x),i=Math.max(10,r*3);e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x-i*Math.cos(n-Math.PI/6),t.y-i*Math.sin(n-Math.PI/6)),e.moveTo(t.x,t.y),e.lineTo(t.x-i*Math.cos(n+Math.PI/6),t.y-i*Math.sin(n+Math.PI/6)),e.stroke()}function Qa(e,A){if(A.length!==0){e.beginPath(),e.moveTo(A[0].x,A[0].y);for(let t=1;t<A.length;t++)e.lineTo(A[t].x,A[t].y);e.stroke()}}function Ca(e,A,t,r,n){e.fillStyle="rgb(15, 23, 42)",e.fillRect(A,t,r,n),e.fillStyle="rgb(37, 47, 63)";for(let i=t;i<t+n;i+=PA)for(let s=A;s<A+r;s+=PA)(Math.floor((s-A)/PA)+Math.floor((i-t)/PA))%2===0&&e.fillRect(s,i,Math.min(PA,A+r-s),Math.min(PA,t+n-i))}function se(e,A){switch(e.save(),e.strokeStyle=A.color,e.fillStyle=A.color,e.lineWidth=A.strokeWidth,e.lineJoin="round",e.lineCap="round",A.type){case"rect":{const t=ie(A.points[0],A.points[1]);e.strokeRect(t.x,t.y,t.w,t.h);break}case"arrow":wa(e,A.points[0],A.points[1],A.strokeWidth);break;case"pen":Qa(e,A.points);break;case"blur":{const t=ie(A.points[0],A.points[1]);Ca(e,t.x,t.y,t.w,t.h);break}}e.restore()}function pn(e){return new Promise((A,t)=>{const r=new Image;r.onload=()=>A(r),r.onerror=()=>t(new Error("Failed to load screenshot")),r.src=e})}async function Lt(e,A,t={}){const r=t.quality??ha;let n;try{n=await pn(e)}catch{return e}const i=document.createElement("canvas");i.width=n.naturalWidth||n.width||1,i.height=n.naturalHeight||n.height||1;const s=i.getContext("2d");if(!s)return e;s.drawImage(n,0,0,i.width,i.height);for(const o of A)se(s,o);return i.toDataURL("image/webp",r)}let pa=0;class Kt{shapes=[];tool="rect";opts;labels;color;palette;strokeWidth;uid=`qaid-annotate-${++pa}`;container;canvas;ctx=null;toolbar;undoBtn;img=null;drawing=!1;current=null;settled=!1;resolveResult;constructor(A){this.opts=A,this.labels={...ga,...A.labels??{}},this.color=A.color??la,this.palette=(A.palette&&A.palette.length?A.palette:Ba).slice(),this.palette.some(t=>t.toLowerCase()===this.color.toLowerCase())||this.palette.unshift(this.color),this.strokeWidth=A.strokeWidth??ua}open(){const A=new Promise(t=>{this.resolveResult=t});return this.mount(),A}toolButton(A,t,r){const n=$("button",{type:"button",class:"qaid-annotate-tool","data-qaid-tool":A,"aria-pressed":A===this.tool?"true":"false","aria-label":`${r} tool`,title:r});return n.append(TA(null,t),$("span",{class:"qaid-annotate-btn-text"},[r])),n}swatchButton(A){const t=Cn(A),r=$("button",{type:"button",class:"qaid-annotate-swatch","data-qaid-color":A,"aria-pressed":A.toLowerCase()===this.color.toLowerCase()?"true":"false","aria-label":`Draw in ${t}`,title:t});return r.style.setProperty("--qaid-swatch",A),r}actionButton(A,t,r,n){const i=$("button",{type:"button",class:`qaid-annotate-action ${n}`,"data-qaid-action":A,"aria-label":r,title:r});return i.append(TA(null,t),$("span",{class:"qaid-annotate-btn-text"},[r])),i}mount(){const A=`${this.uid}-title`,t=`${this.uid}-desc`;this.container=$("div",{class:"qaid-annotate"}),this.opts.applyVars?.(this.container);const r=$("h2",{id:A,class:"qaid-annotate-title"});r.textContent=this.labels.title;const n=$("p",{id:t,class:"qaid-annotate-desc"});n.textContent=this.labels.instructions;const i=$("div",{class:"qaid-annotate-stage"});this.canvas=document.createElement("canvas"),this.canvas.className="qaid-annotate-canvas",this.canvas.width=1,this.canvas.height=1,this.canvas.setAttribute("role","img"),this.canvas.setAttribute("aria-label",this.labels.title),this.ctx=this.canvas.getContext("2d"),i.appendChild(this.canvas),this.toolbar=$("div",{class:"qaid-annotate-toolbar",role:"toolbar","aria-label":this.labels.title});const s=$("div",{class:"qaid-annotate-tools"});s.appendChild(this.toolButton("rect",ro,this.labels.rectangle)),s.appendChild(this.toolButton("arrow",no,this.labels.arrow)),s.appendChild(this.toolButton("pen",io,this.labels.pen)),s.appendChild(this.toolButton("blur",so,this.labels.blur));const o=$("div",{class:"qaid-annotate-colors",role:"group","aria-label":this.labels.colors});for(const B of this.palette)o.appendChild(this.swatchButton(B));this.undoBtn=this.actionButton("undo",oo,this.labels.undo,"qaid-annotate-undo"),this.undoBtn.disabled=!0;const a=this.actionButton("skip",co,this.labels.skip,"qaid-annotate-skip"),c=this.actionButton("done",Dr,this.labels.done,"qaid-annotate-done"),l=$("div",{class:"qaid-annotate-actions"});l.appendChild(this.undoBtn),l.appendChild(a),l.appendChild(c),this.toolbar.appendChild(s),this.toolbar.appendChild(o),this.toolbar.appendChild(l),this.container.appendChild(r),this.container.appendChild(n),this.container.appendChild(i),this.container.appendChild(this.toolbar),this.opts.root.appendChild(this.container),this.toolbar.addEventListener("click",this.onToolbarClick),this.canvas.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp),this.container.addEventListener("keydown",this.onKeyDown),this.opts.openDialog?.(this.container,{labelledbyId:A,describedbyId:t}),this.opts.announce?.(this.labels.instructions),pn(this.opts.dataUrl).then(B=>{this.img=B,this.canvas.width=B.naturalWidth||B.width||1,this.canvas.height=B.naturalHeight||B.height||1,this.redraw()}).catch(()=>{this.img=null,this.redraw()})}toImageCoords(A){const t=this.canvas.getBoundingClientRect(),r=this.canvas.width/(t.width||this.canvas.width),n=this.canvas.height/(t.height||this.canvas.height);return{x:(A.clientX-t.left)*r,y:(A.clientY-t.top)*n}}redraw(){const A=this.ctx;if(A){A.clearRect(0,0,this.canvas.width,this.canvas.height),this.img&&A.drawImage(this.img,0,0,this.canvas.width,this.canvas.height);for(const t of this.shapes)se(A,t);this.current&&se(A,this.current)}}selectTool(A){this.tool=A,this.toolbar.querySelectorAll("[data-qaid-tool]").forEach(n=>{n.setAttribute("aria-pressed",n.getAttribute("data-qaid-tool")===A?"true":"false")});const r=this.labels[Ua[A]];this.opts.announce?.(`${r} tool selected`)}selectColor(A){this.color=A,this.toolbar.querySelectorAll("[data-qaid-color]").forEach(r=>{r.setAttribute("aria-pressed",(r.getAttribute("data-qaid-color")??"").toLowerCase()===A.toLowerCase()?"true":"false")}),this.opts.announce?.(`${Cn(A)} colour selected`)}onToolbarClick=A=>{const r=A.target?.closest("[data-qaid-tool],[data-qaid-action],[data-qaid-color]");if(!r)return;const n=r.getAttribute("data-qaid-color");if(n){this.selectColor(n);return}const i=r.getAttribute("data-qaid-tool");if(i){this.selectTool(i);return}const s=r.getAttribute("data-qaid-action");s==="undo"?this.undo():s==="skip"?this.skip():s==="done"&&this.done()};onPointerDown=A=>{A.preventDefault?.(),this.drawing=!0;const t=this.toImageCoords(A);this.current={type:this.tool,color:this.color,strokeWidth:this.strokeWidth,points:this.tool==="pen"?[t]:[t,{...t}]},this.redraw()};onPointerMove=A=>{if(!this.drawing||!this.current)return;const t=this.toImageCoords(A);this.current.type==="pen"?this.current.points.push(t):this.current.points[1]=t,this.redraw()};onPointerUp=()=>{if(!this.drawing||!this.current)return;this.drawing=!1;const A=this.current;if(this.current=null,fa(A)){this.redraw();return}this.shapes.push(A),this.undoBtn.disabled=!1,this.opts.announce?.("Annotation added"),this.redraw()};onKeyDown=A=>{if(A.key==="Escape"){A.preventDefault(),this.skip();return}if(A.key==="Enter"){const t=A.target;if(t?.getAttribute("data-qaid-tool")||t?.getAttribute("data-qaid-action"))return;A.preventDefault(),this.done()}};undo(){if(this.shapes.length===0){this.opts.announce?.("Nothing to undo");return}this.shapes.pop(),this.undoBtn.disabled=this.shapes.length===0,this.opts.announce?.("Removed last annotation"),this.redraw()}async done(){if(this.settled)return;const A=await Lt(this.opts.dataUrl,this.shapes,{quality:this.opts.quality});this.opts.announce?.("Annotated screenshot attached"),this.settle(A)}skip(){this.settled||(this.opts.announce?.("Annotation skipped"),this.settle(null))}settle(A){this.settled=!0,this.teardown(),this.resolveResult(A)}teardown(){this.toolbar.removeEventListener("click",this.onToolbarClick),this.canvas.removeEventListener("pointerdown",this.onPointerDown),this.container.removeEventListener("pointermove",this.onPointerMove),this.container.removeEventListener("pointerup",this.onPointerUp),this.container.removeEventListener("keydown",this.onKeyDown),this.opts.closeDialog?.(),this.container.remove()}}const Ua={rect:"rectangle",arrow:"arrow",pen:"pen",blur:"blur"};function Un(e){return new Kt(e).open()}const Fn=Object.freeze(Object.defineProperty({__proto__:null,AnnotationEditor:Kt,compositeAnnotations:Lt,drawShape:se,openAnnotationEditor:Un,rectFromPoints:ie,styles:ca},Symbol.toStringTag,{value:"Module"}));Zo(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:SA&&SA.tagName.toUpperCase()==="SCRIPT"&&SA.src||new URL("qaid.umd.cjs",document.baseURI).href);const Fa=["a[href]","button","input","textarea","select","[tabindex]"].join(",");function va(e){return e.hasAttribute("disabled")?!0:e.disabled===!0}function ma(e){let A=e;for(;A;){if(A.hasAttribute("hidden"))return!0;const t=A.style;if(t&&(t.display==="none"||t.visibility==="hidden"||t.visibility==="collapse"))return!0;A=A.parentElement}return!1}function St(e){return Array.from(e.querySelectorAll(Fa)).filter(t=>!(t.getAttribute("tabindex")==="-1"||t instanceof HTMLInputElement&&t.type==="hidden"||t instanceof HTMLAnchorElement&&!t.getAttribute("href")||va(t)||ma(t)))}function vn(e){let A=e.activeElement;for(;A&&A.shadowRoot&&A.shadowRoot.activeElement;)A=A.shadowRoot.activeElement;return A instanceof HTMLElement?A:null}function mn(e){const A=e.ownerDocument||document;let t=!1;const r=i=>{if(i.key!=="Tab")return;const s=St(e);if(s.length===0){i.preventDefault(),e.focus();return}const o=s[0],a=s[s.length-1],c=vn(A),l=c?s.indexOf(c)!==-1:!1;i.shiftKey?(!l||c===o)&&(i.preventDefault(),a.focus()):(!l||c===a)&&(i.preventDefault(),o.focus())};e.addEventListener("keydown",r);const n=St(e);return n.length>0?n[0].focus():(e.hasAttribute("tabindex")||(e.setAttribute("tabindex","-1"),t=!0),e.focus()),{release(){e.removeEventListener("keydown",r),t&&(e.removeAttribute("tabindex"),t=!1)}}}function bn(){return vn(document)}function yn(e){if(!(!e||typeof e.focus!="function"))try{e.focus()}catch{}}function En(e,A={}){e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),A.labelledbyId&&e.setAttribute("aria-labelledby",A.labelledbyId),A.describedbyId&&e.setAttribute("aria-describedby",A.describedbyId),A.label&&e.setAttribute("aria-label",A.label)}function ba(e,A){let t=e;for(;t&&t!==A;){const r=t.parentNode;if(r===A)return t;if(r&&r.host){t=r.host;continue}if(!r)return null;t=r}return null}function Hn(e){const t=(e.ownerDocument||document).body;if(!t)return()=>{};const r=ba(e,t),n=[];return Array.from(t.children).forEach(i=>{if(!(i instanceof HTMLElement)||r&&i===r)return;const s=i.inert===!0,o=i.getAttribute("aria-hidden");s&&o==="true"||(i.inert=!0,i.setAttribute("aria-hidden","true"),n.push({el:i,prevInert:s,prevAriaHidden:o}))}),function(){for(;n.length;){const s=n.pop();s.el.inert=s.prevInert,s.prevAriaHidden===null?s.el.removeAttribute("aria-hidden"):s.el.setAttribute("aria-hidden",s.prevAriaHidden)}}}function ya(e,A){const t=bn();En(e,A);const r=mn(e),n=Hn(e);return()=>{r.release(),n(),yn(t)}}const In=Object.freeze(Object.defineProperty({__proto__:null,applyDialog:En,createFocusTrap:mn,getFocusable:St,openDialog:ya,restoreFocus:yn,saveFocus:bn,setBackgroundInert:Hn},Symbol.toStringTag,{value:"Module"}));var Ea="qaid-embed",xn="__qaidEmbedTrustedTypes";function Ha(){if(typeof window>"u")return null;var e=window,A=e.trustedTypes;if(!A||typeof A.createPolicy!="function")return null;var t=e[xn];if(t)return t;var r=Object.create(null),n=null;try{n=A.createPolicy(Ea,{createScriptURL:function(s){if(r[s]===!0)return s;throw new TypeError("qaid-embed: refused script URL "+s)}})}catch{n=null}var i={policy:n,allowed:r};try{Object.defineProperty(e,xn,{value:i,configurable:!0})}catch{}return i}function Ia(e){var A=Ha();return!A||!A.policy?e:(A.allowed[e]=!0,A.policy.createScriptURL(e))}function Ln(e,A){return new Promise((t,r)=>{const n=document.createElement("script");n.type="module",n.integrity=A,n.crossOrigin="anonymous";try{n.src=Ia(e)}catch{console.warn("[thumbs-embed] Trusted Types refused the quests module; add `trusted-types qaid-embed` to the page's CSP to check its hash."),t(!1);return}n.addEventListener("load",()=>{n.remove(),t(!0)}),n.addEventListener("error",()=>{n.remove(),r(new Error(`quests module failed to load or failed its integrity check: ${e}`))}),(document.head||document.documentElement).appendChild(n)})}const Kn=async e=>(e===NA&&await Ln(e,ko),import(e));let Sn=Kn,_A=null,Le=null;const Ke=new Map,Se=new Map;function xa(e){Sn=e??Kn,_A=null,Le=null,Ke.clear(),Se.clear()}function Tn(e,A){return`${e.replace(/\/+$/,"")}/${encodeURIComponent(A)}/definition`}function La(e){if(Ke.has(e))return Promise.resolve();const A=Se.get(e);if(A)return A;const t=fetch(e,{headers:{Accept:"application/json"}}).then(r=>r.ok?r.json():null).then(r=>{r&&Ke.set(e,r)}).catch(()=>{}).finally(()=>{Se.delete(e)});return Se.set(e,t),t}function Dn(e){return _A&&Le===e||(Le=e,_A=Promise.resolve(Sn(e)).then(A=>{const t=A;if(!t||typeof t.QaidQuests!="function")throw new Error("quests module has no QaidQuests export");return t}).catch(A=>{throw _A=null,Le=null,A})),_A}async function kn(e){const A=await Dn(e.moduleUrl),t=e.base.replace(/\/+$/,""),r=Tn(t,e.questId),n=o=>o!=null?{feedbackId:o}:void 0;let i;const s=e.feedbackId;return s instanceof Promise?i=A.QaidQuests.supports?.asyncMetadata?s.then(n,()=>{}):n(await s.catch(()=>null)):i=n(s??null),new A.QaidQuests({endpoint:`${t}/responses`,configUrl:r,questionnaire:Ke.get(r),apiKey:e.apiKey||void 0,metadata:i,onClose:e.onClose})}const Ka=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_QUESTS_MODULE_URL:NA,_setQuestsImporter:xa,launchQuest:kn,loadQuestsModule:Dn,prefetchQuestDefinition:La,preloadVerifiedModule:Ln,questDefinitionUrl:Tn},Symbol.toStringTag,{value:"Module"}));async function Mn(e,A){const t=e.ensureOverlayHost(),r=e.overlayShadowHost,n=r.style.pointerEvents;r.style.pointerEvents="auto";try{const{openAnnotationEditor:i,styles:s}=await Promise.resolve().then(()=>Fn);return e.addFeatureStyles(s),await i({dataUrl:A,root:t,quality:e.config.screenshotOptions.quality,color:e.config.annotationColor,palette:e.config.annotationPalette,applyVars:o=>e.applyVars(o),announce:(o,a)=>e.announceMsg(o,a),openDialog:(o,a)=>e.openDialogA11y(o,a),closeDialog:()=>e.closeDialogA11y()})}catch(i){return console.error("Annotation editor failed to open:",i),null}finally{r.style.pointerEvents=n}}async function Sa(e){const{config:A,feedbackData:t,selectedBounds:r}=e;let n=null;if(A.captureScreenshot||A.feedbackMode==="annotate")try{if(e.shouldCaptureViaDom()){const{captureDomScreenshot:l}=await Promise.resolve().then(()=>Qn);n=await l(A.screenshotOptions)}else{const{captureScreenshot:l}=await Promise.resolve().then(()=>_n);n=await l(A.screenshotOptions)}n&&e.announceMsg("Screenshot captured")}catch(l){console.error("Screenshot capture failed:",l),n=null}n&&A.annotate&&(n=await Mn(e,n)??n);const s=t.elementSelector?{x:r.x,y:r.y,width:r.width,height:r.height}:null,o={feedbackType:t.feedbackType,pageUrl:window.location.href,apiKey:A.apiKey||void 0,elementSelector:t.elementSelector,elementText:t.elementText,consoleErrors:[...t.consoleErrors],screenWidth:window.innerWidth,screenHeight:window.innerHeight,clickX:r.clickX,clickY:r.clickY,scrollX:window.scrollX,scrollY:window.scrollY,screenshot:n,visitorId:e.visitorId,elementBounds:s,userAgent:navigator.userAgent},a=Ta(e,o);e.setFeedbackId(a);const c=t.feedbackType;if(c&&c!=="neutral"&&await On(e,c,a)){e.resetFeedbackUi();return}e.setState("MODAL_OPEN");try{const l=await e.ensureModal();if(e.destroyed)return;l.open(),e.overlayShadowHost&&(e.overlayShadowHost.style.pointerEvents="auto")}catch(l){console.error("Failed to open the feedback modal:",l),e.announceMsg("Thank you for your feedback!",!0),e.resetFeedbackUi()}}async function Ta(e,A){try{const t=await fetch(e.config.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(A)});if(t.ok){const r=await t.json();return e.announceMsg("Feedback sent"),r.id}}catch(t){console.error("Failed to submit feedback:",t),e.announceMsg("Failed to send feedback",!0)}return null}async function On(e,A,t){const r=e.config.quests,n=r.base&&r[A]||"";if(!n)return!1;try{return e.activeQuest?.destroy(),e.activeQuest=await kn({questId:n,base:r.base,apiKey:r.apiKey||void 0,moduleUrl:r.moduleUrl,feedbackId:t,onClose:()=>{e.activeQuest=null}}),!0}catch(i){return console.error("Failed to launch quest:",i),e.activeQuest=null,!1}}const Tt=Object.freeze(Object.defineProperty({__proto__:null,openAnnotationEditor:Mn,submitFeedback:Sa,tryLaunchQuest:On},Symbol.toStringTag,{value:"Module"})),Rn={width:400,height:280,arrowHeight:12,gap:8,viewportPadding:16};function Da(e,A,t,r,n){const i=e.y,s=A-(e.y+e.height);if(s>=t+r)return{top:e.y+e.height+r,position:"below"};if(i>=t+r)return{top:e.y-t-r,position:"above"};const o=s>i?"below":"above";let a;return o==="below"?a=Math.min(e.y+e.height+r,A-t-n):a=Math.max(n,e.y-t-r),{top:a,position:o}}function ka(e,A,t,r){let i=e.x+e.width/2-t/2;return i=Math.max(r,Math.min(i,A-t-r)),i}function Ma(e,A,t,r=24,n=24){const s=e.clickX-A-n/2;return Math.max(r,Math.min(s,t-r-n/2))}function Oa(e,A,t,r=Rn){const n=r.height+r.arrowHeight,i=Da(e,t,n,r.gap,r.viewportPadding),s=ka(e,A,r.width,r.viewportPadding);return{top:i.top,left:s,position:i.position}}function Ra(e,A,t,r=Rn){const n=Oa(e,A,t,r),i=Ma(e,n.left,r.width);return{modal:n,arrow:{left:i}}}const qa=document;function H(e,A,...t){const r=qa.createElement(e);if(A){if(A.class&&(r.className=A.class),A.style&&(r.style.cssText=A.style),A.text!=null&&(r.textContent=A.text),A.attrs)for(const n in A.attrs)r.setAttribute(n,A.attrs[n]);if(A.on)for(const n in A.on)r.addEventListener(n,A.on[n])}for(const n of t)n!=null&&n!==!1&&r.append(n);return r}const Va=".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)}}.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}}.qaid-textarea:focus-visible,button.qaid-btn-submit:focus-visible{outline:2px solid var(--qaid-marker, #6365f1);outline-offset:2px}@media(forced-colors:active){.qaid-textarea:focus,button.qaid-btn-submit:focus{outline:2px solid CanvasText;outline-offset:2px}}";class Na{constructor(A){this.host=A}host;modalContainer=null;backdrop=null;finalized=!1;open(){this.finalized=!1;const A=this.host.ensureOverlayHost();this.backdrop=document.createElement("div"),this.backdrop.className="qaid-backdrop",this.backdrop.style.zIndex=String(this.host.config.zIndex+2),this.backdrop.style.background=`rgba(0, 0, 0, ${this.host.config.backdropOpacity})`,this.backdrop.addEventListener("click",()=>this.close()),this.host.applyVars(this.backdrop),this.host.isMobile?this.showBottomSheet():this.showPositionedModal(),A.appendChild(this.backdrop),document.addEventListener("keydown",this.host.boundKeyDown)}close(){this.host.state==="MODAL_OPEN"&&!this.finalized&&(this.finalized=!0,this.host.whenFeedbackId().then(A=>{A&&fetch(`${this.host.config.endpoint}/${A}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:null})}).catch(t=>console.error("Failed to finalize feedback:",t))})),this.teardown(),this.host.resetFeedbackUi()}destroy(){this.teardown()}teardown(){this.host.closeDialogA11y(),this.modalContainer&&(this.modalContainer.remove(),this.modalContainer=null),this.backdrop&&(this.backdrop.remove(),this.backdrop=null),document.removeEventListener("keydown",this.host.boundKeyDown)}showBottomSheet(){const A=this.host.ensureOverlayHost(),t=document.createElement("div");t.className="qaid-bottom-sheet",t.style.zIndex=String(this.host.config.zIndex+3),t.appendChild(H("div",{class:"qaid-bottom-sheet-content"},H("div",{class:"qaid-bottom-sheet-handle"}),this.buildModalContent())),this.host.applyVars(t),A.appendChild(t),this.modalContainer=t,this.setupModalInteractions()}showPositionedModal(){const A=this.host.ensureOverlayHost(),{modal:t,arrow:r}=Ra(this.host.selectedBounds,window.innerWidth,window.innerHeight,{width:this.host.config.modalWidth,height:280,arrowHeight:12,gap:8,viewportPadding:16});this.modalContainer=document.createElement("div"),this.modalContainer.className=`qaid-modal-container qaid-${t.position}`,this.modalContainer.style.top=`${t.top}px`,this.modalContainer.style.left=`${t.left}px`,this.modalContainer.style.zIndex=String(this.host.config.zIndex+3);const n=document.createElement("div");n.className="qaid-modal-arrow",n.style.left=`${r.left}px`;const i=document.createElement("div");i.className="qaid-modal-box",i.appendChild(this.buildModalContent()),this.modalContainer.appendChild(n),this.modalContainer.appendChild(i),this.host.applyVars(this.modalContainer),A.appendChild(this.modalContainer),this.setupModalInteractions()}buildModalContent(){const{config:A,uid:t}=this.host,r=A.text,n=this.host.feedbackData.feedbackType,i=n==="up",s=A.buttonClass?`qaid-type-toggle qaid-type-toggle-custom ${A.buttonClass} ${i?"qaid-btn-up":"qaid-btn-down"}`:`qaid-type-toggle ${i?"qaid-type-up":"qaid-type-down"}`,o=i?"Feedback type: positive":"Feedback type: negative",a=n==="neutral"?H("span",{class:"qaid-type-static",attrs:{"aria-hidden":"true"}},TA(A.feedbackIcon,Tr)):H("button",{class:s,attrs:{type:"button",title:"Click to switch","aria-pressed":String(i),"aria-label":o}},i?TA(A.positiveIcon,Et):TA(A.negativeIcon,Ht)),c=document.createDocumentFragment();return c.append(H("div",{class:"qaid-modal-header"},a,H("div",{class:"qaid-modal-header-text"},H("h3",{class:"qaid-modal-title",text:r.modalTitle,attrs:{id:`qaid-modal-title-${t}`}}),H("p",{class:"qaid-modal-subtitle",text:r.modalSubtitle,attrs:{id:`qaid-modal-subtitle-${t}`}}))),H("textarea",{class:"qaid-textarea",attrs:{"aria-label":r.modalSubtitle,placeholder:r.placeholder}}),H("div",{class:"qaid-btn-row"},H("button",{class:"qaid-btn-submit",text:r.skipButton,attrs:{type:"button"}}))),c}setupModalInteractions(){this.host.openDialogA11y(this.modalContainer,{labelledbyId:`qaid-modal-title-${this.host.uid}`,describedbyId:`qaid-modal-subtitle-${this.host.uid}`});const A=this.modalContainer.querySelector(".qaid-textarea"),t=this.modalContainer.querySelector(".qaid-btn-submit");A&&(setTimeout(()=>A.focus(),100),A.addEventListener("input",()=>{t&&(t.textContent=A.value.trim()?this.host.config.text.submitButton:this.host.config.text.skipButton)})),t&&t.addEventListener("click",()=>{const n=A?.value.trim()||null;this.submitMessage(n)});const r=this.modalContainer.querySelector(".qaid-type-toggle");r&&r.addEventListener("click",()=>{const n=this.host.feedbackData.feedbackType==="up"?"down":"up";this.host.feedbackData.feedbackType=n,this.host.config.buttonClass?(r.classList.toggle("qaid-btn-up",n==="up"),r.classList.toggle("qaid-btn-down",n==="down")):(r.classList.toggle("qaid-type-up",n==="up"),r.classList.toggle("qaid-type-down",n==="down")),n==="up"?DA(r,this.host.config.positiveIcon,Et):DA(r,this.host.config.negativeIcon,Ht);const i=n==="up"?"Feedback type: positive":"Feedback type: negative";r.setAttribute("aria-pressed",String(n==="up")),r.setAttribute("aria-label",i),this.host.announceMsg(i),this.host.whenFeedbackId().then(s=>{s&&fetch(`${this.host.config.endpoint}/${s}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({feedbackType:n})}).catch(o=>console.error("Failed to update feedback type:",o))})})}async submitMessage(A){let t=null;this.finalized=!0;const r=await this.host.whenFeedbackId();if(r)try{const n=await fetch(`${this.host.config.endpoint}/${r}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:A})});t=n.ok,n.ok||console.error("Failed to submit feedback message: HTTP",n.status)}catch(n){console.error("Failed to submit feedback message:",n),t=!1}if(t===!1){this.showResult(!1);return}if(t&&!this.host.config.hideConfirmation){this.showResult(!0);return}this.close()}showResult(A){const t=this.modalContainer?.querySelector(".qaid-modal-box")??this.modalContainer?.querySelector(".qaid-bottom-sheet-content")??this.modalContainer;if(!t){this.close();return}const r=this.host.config.text,n=A?r.confirmationTitle:r.errorTitle,i=A?r.confirmationMessage:r.errorMessage,s=H("h3",{class:"qaid-confirm-title",text:n,attrs:{id:`qaid-confirm-title-${this.host.uid}`,tabindex:"-1"}});t.textContent="",t.appendChild(H("div",{class:A?"qaid-confirm":"qaid-confirm qaid-confirm-error"},H("span",{class:"qaid-confirm-icon",attrs:{"aria-hidden":"true"}},TA(null,A?Dr:ao)),s,H("p",{class:"qaid-confirm-message",text:i}),H("button",{class:"qaid-btn-submit qaid-confirm-close",text:r.confirmationClose,attrs:{type:"button"},on:{click:()=>this.close()}}))),requestAnimationFrame(()=>s.focus()),this.host.announceMsg(`${n} ${i}`,!0)}}const qn=Object.freeze(Object.defineProperty({__proto__:null,ModalController:Na,styles:Va},Symbol.toStringTag,{value:"Module"})),Vn=["data-comp","data-qa","data-testid","data-id"];function Nn(e,A=document.body){let t=e;for(;t&&t!==A;){for(const r of Vn){const n=t.getAttribute(r);if(n)return`${r}="${n}"`}t=t.parentElement}return null}function Ga(e,A=100){const t=e.textContent?.trim().slice(0,A)||"";return t.length===A?t+"...":t}function Pa(e){let A=1,t=e.previousElementSibling;for(;t;)A++,t=t.previousElementSibling;return A}function _a(e){const A=[];let t=e;for(;t&&t!==document.body&&t!==document.documentElement;){const r=t.tagName.toLowerCase(),n=Pa(t);A.unshift(`${r}:nth-child(${n})`),t=t.parentElement}return A.length>0?`body > ${A.join(" > ")}`:"body"}function Xa(e){return e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")}function Ja(e){const A=Nn(e);return A?`[${A}]`:e.id?`#${Xa(e.id)}`:_a(e)}function Dt(e){const A=Ga(e),t=Nn(e);return{selector:Ja(e),text:A,dataAttr:t}}const Wa=["a[href]","button","input:not([type=hidden])","select","textarea","summary","[tabindex]","[role]","img","h1","h2","h3","h4","h5","h6","p","li","label",...Vn.map(e=>`[${e}]`)].join(","),Ya=/^(?:A|BUTTON|INPUT|SELECT|TEXTAREA|SUMMARY)$/;function Za(e){if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!1;const A=e.ownerDocument?.defaultView;if(A&&typeof A.getComputedStyle=="function"){const t=A.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return!1}return!0}function za(e={}){const A=e.root??document.body,t=e.selector??Wa,r=e.isExcluded??(()=>!1),n=e.isVisible??Za;return Array.from(A.querySelectorAll(t)).filter(i=>!r(i)&&n(i))}function ja(e){const A=e.candidates??za({root:e.root,selector:e.selector,isExcluded:e.isExcluded,isVisible:e.isVisible}),t=e.moveFocus??!0,r=e.eventTarget??document,n=new Set;let i=-1,s=!1;const o=e.initial!==void 0?e.initial:typeof document<"u"?document.activeElement:null;if(o){const h=A.indexOf(o);h>=0&&(i=h)}i<0&&A.length>0&&(i=0);function a(h){if(!t)return;const v=h;if(typeof v.focus=="function"){h.getAttribute("tabindex")===null&&!Ya.test(h.tagName)&&(h.setAttribute("tabindex","-1"),n.add(h));try{v.focus()}catch{}}}function c(){const h=A[i];h&&(a(h),e.onHighlight?.(h,i))}function l(h){if(s||A.length===0)return;const v=A.length;i=(h%v+v)%v,c()}function B(){l(i+1)}function d(){l(i-1)}function g(){return A[i]??null}function u(){s||(s=!0,r.removeEventListener("keydown",Q,!0),n.forEach(h=>h.removeAttribute("tabindex")),n.clear())}function f(){if(s)return;const h=g();u(),h&&e.onSelect(h)}function m(){s||(u(),e.onCancel?.())}function Q(h){if(!s)switch(h.key){case"Tab":h.preventDefault(),h.stopPropagation(),h.shiftKey?d():B();break;case"ArrowDown":case"ArrowRight":h.preventDefault(),h.stopPropagation(),B();break;case"ArrowUp":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),d();break;case"Enter":case" ":case"Spacebar":h.preventDefault(),h.stopPropagation(),f();break;case"Escape":case"Esc":h.preventDefault(),h.stopPropagation(),m();break}}return r.addEventListener("keydown",Q,!0),i>=0&&c(),{candidates:A,getIndex:()=>i,getCurrent:g,next:B,prev:d,moveTo:l,select:f,cancel:m,handleKey:Q,stop:u}}const $a=".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}.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)}}@media(forced-colors:active){.qaid-selected-marker,.qaid-highlight-box{border-color:Highlight}}",Ac=12;class ec{constructor(A){this.host=A}host;mousePos={x:0,y:0};touchStartPos=null;overlayContainer=null;captureLayer=null;crosshairH=null;crosshairV=null;scope=null;highlightBox=null;marker=null;keyboardController=null;boundMouseMove=A=>this.handleMouseMove(A);boundClick=A=>this.handleClick(A);boundTouchStart=A=>this.handleTouchStart(A);boundTouchEnd=A=>this.handleTouchEnd(A);startPointer(A,t){this.host.setState("TARGETING"),this.host.feedbackData.feedbackType=A,this.host.feedbackData.elementSelector=null,this.host.feedbackData.elementText=null,this.host.selectedBounds.visible=!1,this.mousePos.x=t.clientX,this.mousePos.y=t.clientY,document.body.classList.add("qaid-targeting"),A==="up"?document.body.classList.add("qaid-type-up"):document.body.classList.remove("qaid-type-up"),document.body.style.setProperty("--qaid-positive",this.host.cssVars["--qaid-positive"]),document.body.style.setProperty("--qaid-negative",this.host.cssVars["--qaid-negative"]),this.createTargetingOverlay(),document.addEventListener("keydown",this.host.boundKeyDown),document.addEventListener("mousemove",this.boundMouseMove),document.addEventListener("click",this.boundClick,!0),document.addEventListener("touchstart",this.boundTouchStart,{passive:!0}),document.addEventListener("touchend",this.boundTouchEnd,{passive:!1})}startKeyboard(A){this.host.setState("TARGETING"),this.host.feedbackData.feedbackType=A,this.host.feedbackData.elementSelector=null,this.host.feedbackData.elementText=null,this.host.selectedBounds.visible=!1,document.body.style.setProperty("--qaid-positive",this.host.cssVars["--qaid-positive"]),document.body.style.setProperty("--qaid-negative",this.host.cssVars["--qaid-negative"]),this.createTargetingOverlay(),this.crosshairH&&(this.crosshairH.style.display="none"),this.crosshairV&&(this.crosshairV.style.display="none"),this.scope&&(this.scope.style.display="none"),this.keyboardController=ja({isExcluded:t=>He(t),onHighlight:t=>{const r=t.getBoundingClientRect(),n=this.highlightBox;n&&(n.style.transform=`translate(${r.left}px, ${r.top}px)`,n.style.width=`${r.width}px`,n.style.height=`${r.height}px`,n.style.display="block");const{text:i}=Dt(t);this.host.announceMsg(`Targeting ${i||t.tagName.toLowerCase()}`)},onSelect:t=>this.selectKeyboardTarget(t),onCancel:()=>this.cancel()})}selectKeyboardTarget(A){const t=_r(A,8);Object.assign(this.host.selectedBounds,t,{clickX:t.x+t.width/2,clickY:t.y+t.height/2,visible:!0});const{selector:r,text:n}=Dt(A);this.host.feedbackData.elementSelector=r,this.host.feedbackData.elementText=n,this.removeTargetingOverlay(),document.body.classList.remove("qaid-targeting","qaid-type-up"),document.body.style.removeProperty("--qaid-positive"),document.body.style.removeProperty("--qaid-negative"),this.keyboardController=null,this.host.clearActiveThumb(),this.host.setState("SELECTED"),this.showSelectedMarker(),this.host.submitFeedback()}createTargetingOverlay(){const A=this.host.ensureOverlayHost();this.overlayContainer=document.createElement("div"),this.overlayContainer.className=`qaid-targeting-overlay qaid-type-${this.host.feedbackData.feedbackType}`,this.captureLayer=document.createElement("div"),this.captureLayer.className="qaid-capture-layer";const t=document.createElement("div");t.className="qaid-vignette",this.crosshairH=document.createElement("div"),this.crosshairH.className="qaid-crosshair-h",this.crosshairV=document.createElement("div"),this.crosshairV.className="qaid-crosshair-v",this.scope=document.createElement("div"),this.scope.className="qaid-scope";for(const r of["qaid-scope-ring","qaid-scope-ring-inner","qaid-scope-dot"]){const n=document.createElement("div");n.className=r,this.scope.appendChild(n)}this.highlightBox=document.createElement("div"),this.highlightBox.className="qaid-highlight-box",this.overlayContainer.appendChild(this.captureLayer),this.overlayContainer.appendChild(t),this.overlayContainer.appendChild(this.highlightBox),this.overlayContainer.appendChild(this.crosshairH),this.overlayContainer.appendChild(this.crosshairV),this.overlayContainer.appendChild(this.scope),this.crosshairH.style.top=`${this.mousePos.y}px`,this.crosshairV.style.left=`${this.mousePos.x}px`,this.scope.style.left=`${this.mousePos.x}px`,this.scope.style.top=`${this.mousePos.y}px`,this.host.applyVars(this.overlayContainer),A.appendChild(this.overlayContainer)}handleMouseMove(A){this.updateReticleAt(A.clientX,A.clientY)}updateReticleAt(A,t){if(this.mousePos.x=A,this.mousePos.y=t,this.crosshairH&&(this.crosshairH.style.top=`${t}px`),this.crosshairV&&(this.crosshairV.style.left=`${A}px`),this.scope&&(this.scope.style.left=`${A}px`,this.scope.style.top=`${t}px`),this.captureLayer&&this.host.shadowHost){const r=[this.host.shadowHost,this.host.overlayShadowHost].filter(Boolean),n=Pr(A,t,r);if(n&&!He(n)){if(this.highlightBox){const i=n.getBoundingClientRect();this.highlightBox.style.transform=`translate(${i.left}px, ${i.top}px)`,this.highlightBox.style.width=`${i.width}px`,this.highlightBox.style.height=`${i.height}px`,this.highlightBox.style.display="block"}}else this.highlightBox&&(this.highlightBox.style.display="none")}}handleClick(A){A.preventDefault(),A.stopPropagation(),this.selectAt(A.clientX,A.clientY)}handleTouchStart(A){const t=A.touches[0];t&&(this.touchStartPos={x:t.clientX,y:t.clientY},this.updateReticleAt(t.clientX,t.clientY))}handleTouchEnd(A){const t=A.changedTouches[0],r=this.touchStartPos;this.touchStartPos=null,!(!t||!r||Math.hypot(t.clientX-r.x,t.clientY-r.y)>Ac)&&(A.preventDefault(),this.selectAt(t.clientX,t.clientY))}selectAt(A,t){const r=[this.host.shadowHost,this.host.overlayShadowHost].filter(Boolean),n=Pr(A,t,r);if(!n||He(n))return;const i=_r(n,8);Object.assign(this.host.selectedBounds,i,{clickX:A,clickY:t,visible:!0});const{selector:s,text:o}=Dt(n);this.host.feedbackData.elementSelector=s,this.host.feedbackData.elementText=o,this.stopTargetingListeners(),document.body.classList.remove("qaid-targeting","qaid-type-up"),document.body.style.removeProperty("--qaid-positive"),document.body.style.removeProperty("--qaid-negative"),this.host.setState("SELECTED"),this.host.clearActiveThumb(),this.showSelectedMarker(),this.host.submitFeedback()}stopTargetingListeners(){this.removeTargetingOverlay(),this.touchStartPos=null,document.removeEventListener("mousemove",this.boundMouseMove),document.removeEventListener("click",this.boundClick,!0),document.removeEventListener("touchstart",this.boundTouchStart),document.removeEventListener("touchend",this.boundTouchEnd),document.removeEventListener("keydown",this.host.boundKeyDown)}cancel(){this.keyboardController?.stop(),this.keyboardController=null,this.stopTargetingListeners(),document.body.classList.remove("qaid-targeting","qaid-type-up"),document.body.style.removeProperty("--qaid-positive"),document.body.style.removeProperty("--qaid-negative"),this.host.clearActiveThumb(),this.host.setState("IDLE"),this.host.feedbackData.feedbackType=null,this.host.feedbackData.elementSelector=null,this.host.feedbackData.elementText=null,this.host.selectedBounds.visible=!1}removeTargetingOverlay(){this.overlayContainer&&(this.overlayContainer.remove(),this.overlayContainer=null),this.captureLayer=null,this.crosshairH=null,this.crosshairV=null,this.scope=null}showSelectedMarker(){const A=this.host.ensureOverlayHost();this.marker=document.createElement("div"),this.marker.className="qaid-selected-marker",this.marker.style.left=`${this.host.selectedBounds.x}px`,this.marker.style.top=`${this.host.selectedBounds.y}px`,this.marker.style.width=`${this.host.selectedBounds.width}px`,this.marker.style.height=`${this.host.selectedBounds.height}px`,this.marker.style.zIndex=String(this.host.config.zIndex+1),this.host.applyVars(this.marker),A.appendChild(this.marker)}hideMarker(){this.marker&&(this.marker.remove(),this.marker=null)}destroy(){this.keyboardController?.stop(),this.keyboardController=null,this.stopTargetingListeners(),this.hideMarker()}}const Gn=Object.freeze(Object.defineProperty({__proto__:null,TargetingController:ec,styles:$a},Symbol.toStringTag,{value:"Module"})),tc=".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)}@keyframes qaid-slideDown{0%{transform:translateY(-100%)}to{transform:translateY(0)}}button.qaid-recording-stop{min-height:24px}.qaid-video-preview-box textarea:focus-visible{outline:2px solid var(--qaid-marker, #6365f1);outline-offset:2px}@media(forced-colors:active){.qaid-video-preview-box textarea:focus{outline:2px solid CanvasText;outline-offset:2px}}";class rc{constructor(A){this.host=A}host;videoRecorder=null;networkCapture=null;recordedBlob=null;recordingIndicator=null;videoPreview=null;isRecording=!1;isSendingVideo=!1;redactPicks=[];redactPickerRoot=null;redactRafId=0;boundRedactClick=A=>this.handleRedactPickClick(A);handleEscape(){return this.isRecording?(this.stopRecording(),!0):this.videoPreview?(this.cancelRecordingPreview(),!0):this.redactPickerRoot?(this.finishRedactionPicking(!1),!0):!1}destroy(){this.redactRafId&&cancelAnimationFrame(this.redactRafId),this.redactRafId=0,document.removeEventListener("click",this.boundRedactClick,!0),this.redactPickerRoot&&(this.redactPickerRoot.remove(),this.redactPickerRoot=null),this.redactPicks=[],this.cleanupRecording(),this.removeVideoPreview()}async startRecording(A=[]){if(!(this.isRecording||this.host.state!=="IDLE"))try{this.networkCapture=on();const{createVideoRecorder:t}=await Promise.resolve().then(()=>un);this.videoRecorder=t({maxDuration:this.host.config.videoOptions.maxDuration,redactionElements:A}),this.videoRecorder.onTick(r=>{this.updateRecordingTimer(r)}),this.videoRecorder.onStop(r=>{this.isRecording&&(this.recordedBlob=r,this.isRecording=!1,this.host.announceMsg("Recording stopped"),this.removeRecordingIndicator(),document.removeEventListener("keydown",this.host.boundKeyDown),this.host.setButtonsDisabled(!1),r&&r.size>0?this.showRecordingPreview():this.cleanupRecording())}),await this.videoRecorder.start(),this.isRecording=!0,this.host.announceMsg("Recording started"),this.host.setButtonsDisabled(!0),this.showRecordingIndicator(),document.addEventListener("keydown",this.host.boundKeyDown)}catch(t){t instanceof Error&&/current tab|cannot blur/i.test(t.message)&&this.host.announceMsg(t.message),this.cleanupRecording()}}async stopRecording(){try{this.recordedBlob=await this.videoRecorder.stop()}catch{this.recordedBlob=null}this.isRecording=!1,this.host.announceMsg("Recording stopped"),this.removeRecordingIndicator(),document.removeEventListener("keydown",this.host.boundKeyDown),this.recordedBlob&&this.recordedBlob.size>0?this.showRecordingPreview():this.cleanupRecording()}startPicking(){if(this.isRecording||this.host.state!=="IDLE")return;this.host.setState("REDACT_PICKING"),this.redactPicks=[];const A=this.host.ensureOverlayHost(),t=H("div",{style:"position:absolute;inset:0;"}),r=H("div",{class:"qaid-redact-picker",style:"position:fixed;inset:0;pointer-events:none;"},t,H("div",{style:"position:fixed;left:50%;bottom:24px;transform:translateX(-50%);display:flex;gap:12px;align-items:center;pointer-events:auto;background:#0b1220;color:#fff;border:1px solid #ff6b6b;border-radius:9999px;padding:10px 16px;font:600 13px system-ui,sans-serif;box-shadow:0 8px 30px rgba(0,0,0,.5);"},H("span",{text:"Click sensitive areas to blur",attrs:{"data-qaid-redact-label":""}}),H("button",{text:"Start recording",attrs:{type:"button"},style:"cursor:pointer;border:0;border-radius:9999px;padding:8px 14px;background:#ff6b6b;color:#0b1220;font:inherit;",on:{click:()=>this.finishRedactionPicking(!0)}}),H("button",{text:"Cancel",attrs:{type:"button"},style:"cursor:pointer;border:0;background:transparent;color:#9fb3c8;font:inherit;",on:{click:()=>this.finishRedactionPicking(!1)}})));A.appendChild(r),this.redactPickerRoot=r;const n=()=>{this.renderRedactPicks(t),this.redactRafId=requestAnimationFrame(n)};n(),document.addEventListener("click",this.boundRedactClick,!0),document.addEventListener("keydown",this.host.boundKeyDown),this.host.announceMsg("Click sensitive areas to blur, then start recording")}handleRedactPickClick(A){const t=A.target instanceof Element?A.target:null;if(!t||He(t)||this.redactPickerRoot?.contains(t))return;A.preventDefault(),A.stopPropagation();const r=this.redactPicks.indexOf(t);r>=0?this.redactPicks.splice(r,1):this.redactPicks.push(t);const n=this.redactPickerRoot?.querySelector("[data-qaid-redact-label]");if(n){const i=this.redactPicks.length;n.textContent=i===0?"Click sensitive areas to blur":`${i} area${i===1?"":"s"} will be blurred`}}renderRedactPicks(A){A.textContent="";for(const t of this.redactPicks){const r=t.getBoundingClientRect();r.width<=0||r.height<=0||A.appendChild(H("div",{style:`position:fixed;left:${r.left}px;top:${r.top}px;width:${r.width}px;height:${r.height}px;border:2px solid #ff6b6b;border-radius:4px;background:rgba(255,107,107,.18);pointer-events:none;`}))}}finishRedactionPicking(A){this.redactRafId&&cancelAnimationFrame(this.redactRafId),this.redactRafId=0,document.removeEventListener("click",this.boundRedactClick,!0),document.removeEventListener("keydown",this.host.boundKeyDown),this.redactPickerRoot&&(this.redactPickerRoot.remove(),this.redactPickerRoot=null);const t=this.redactPicks;this.redactPicks=[],this.host.setState("IDLE"),A&&this.startRecording(t)}showRecordingIndicator(){const A=this.host.ensureOverlayHost();this.recordingIndicator=H("div",{class:"qaid-recording-indicator",style:`z-index:${this.host.config.zIndex+100}`},H("div",{class:"qaid-recording-dot"}),H("span",{class:"qaid-recording-time",text:this.formatTime(this.host.config.videoOptions.maxDuration)}),H("button",{class:"qaid-recording-stop",text:"Stop",attrs:{type:"button"},on:{click:()=>this.stopRecording()}})),this.host.applyVars(this.recordingIndicator),A.appendChild(this.recordingIndicator)}updateRecordingTimer(A){if(!this.recordingIndicator)return;const t=this.recordingIndicator.querySelector(".qaid-recording-time");if(t){const r=Math.max(0,this.host.config.videoOptions.maxDuration-A);t.textContent=this.formatTime(r),r>0&&r<=5&&this.host.announceMsg(`${r} second${r===1?"":"s"} remaining`)}}formatTime(A){const t=Math.floor(A/60),r=A%60;return`${t}:${r.toString().padStart(2,"0")}`}removeRecordingIndicator(){this.recordingIndicator&&(this.recordingIndicator.remove(),this.recordingIndicator=null)}showRecordingPreview(){const A=this.host.ensureOverlayHost(),t=URL.createObjectURL(this.recordedBlob),r=`qaid-video-title-${this.host.uid}`,n=H("h3",{text:"Review your recording",attrs:{id:r}}),i=H("video");i.src=t,i.controls=!0,i.autoplay=!0,i.muted=!0;const s=H("textarea",{attrs:{placeholder:"Optional: Describe the issue you recorded...","aria-label":"Describe the issue you recorded"}}),o=H("button",{class:"qaid-video-btn qaid-video-btn-send",text:"Send",attrs:{type:"button"},on:{click:()=>this.submitVideoFeedback(s.value.trim()||null,o)}}),a=H("div",{class:"qaid-video-preview-box"},n,i,s,H("div",{class:"qaid-video-preview-actions"},H("button",{class:"qaid-video-btn qaid-video-btn-cancel",text:"Cancel",attrs:{type:"button"},on:{click:()=>this.cancelRecordingPreview()}}),H("button",{class:"qaid-video-btn qaid-video-btn-rerecord",text:"Re-record",attrs:{type:"button"},on:{click:()=>{this.cancelRecordingPreview(),this.startRecording()}}}),o));this.videoPreview=H("div",{class:"qaid-video-preview",style:`z-index:${this.host.config.zIndex+100}`},a),this.host.applyVars(this.videoPreview),this.host.overlayShadowHost&&(this.host.overlayShadowHost.style.pointerEvents="auto"),A.appendChild(this.videoPreview),this.host.openDialogA11y(a,{labelledbyId:n.id}),document.addEventListener("keydown",this.host.boundKeyDown)}cancelRecordingPreview(){this.removeVideoPreview(),this.cleanupRecording()}removeVideoPreview(){if(this.host.closeDialogA11y(),this.videoPreview){const A=this.videoPreview.querySelector("video");A?.src&&URL.revokeObjectURL(A.src),this.videoPreview.remove(),this.videoPreview=null}document.removeEventListener("keydown",this.host.boundKeyDown)}async submitVideoFeedback(A,t){if(!this.recordedBlob||this.isSendingVideo)return;this.isSendingVideo=!0,t.disabled=!0,t.textContent="Sending...";const r=new FormData;r.append("video",this.recordedBlob,`recording.${this.recordedBlob.type.includes("mp4")?"mp4":"webm"}`),r.append("pageUrl",window.location.href),r.append("visitorId",this.host.visitorId),this.host.config.apiKey&&r.append("apiKey",this.host.config.apiKey),A&&r.append("message",A),this.host.consoleCapture&&r.append("consoleErrors",JSON.stringify(this.host.consoleCapture.errors)),this.networkCapture&&r.append("networkErrors",JSON.stringify(this.networkCapture.errors));let n=null,i=null;try{const s=await fetch(`${this.host.config.endpoint}/video`,{method:"POST",body:r});if(s.ok){this.host.announceMsg("Recording sent");try{n=(await s.json())?.id??null}catch{}}else console.error("Failed to submit video feedback:",await s.text()),i=s.status===413?"This recording is too large to send. Try a shorter one.":"Your recording could not be sent."}catch(s){console.error("Failed to submit video feedback:",s),i="Your recording could not be sent. Check your connection and try again."}if(this.isSendingVideo=!1,i){this.showSendError(i,t);return}this.removeVideoPreview(),this.cleanupRecording(),await this.host.tryLaunchQuest("video",n)}showSendError(A,t){this.host.announceMsg(`Failed to send recording. ${A}`,!0),t.disabled=!1,t.textContent="Send";const r=this.videoPreview?.querySelector(".qaid-video-preview-actions");if(r){let n=this.videoPreview.querySelector(".qaid-video-error");n||(n=H("p",{class:"qaid-video-error"}),r.before(n)),n.textContent=A}}cleanupRecording(){this.isRecording=!1,this.removeRecordingIndicator(),this.videoRecorder&&(this.videoRecorder.destroy(),this.videoRecorder=null),this.networkCapture&&(this.networkCapture.restore(),this.networkCapture=null),this.recordedBlob&&(this.recordedBlob=null),this.host.setButtonsDisabled(!1),this.host.overlayShadowHost&&this.host.state==="IDLE"&&(this.host.overlayShadowHost.style.pointerEvents="none")}}const Pn=Object.freeze(Object.defineProperty({__proto__:null,RecordingController:rc,styles:tc},Symbol.toStringTag,{value:"Module"}));async function nc(e={}){const{quality:A=.8,maxWidth:t=1280,maxHeight:r=800}=e;try{if(!navigator.mediaDevices?.getDisplayMedia)return console.warn("Screen Capture API not available"),null;const n=await navigator.mediaDevices.getDisplayMedia({preferCurrentTab:!0,video:{displaySurface:"browser"}}),i=n.getVideoTracks()[0],s=i.getSettings(),o=document.createElement("video");o.srcObject=n,o.muted=!0,await new Promise(f=>{o.onloadedmetadata=()=>{o.play(),f()}}),await new Promise(f=>{const m=()=>{o.readyState>=2?f():requestAnimationFrame(m)};m()}),await new Promise(f=>setTimeout(f,100));const a=s.width||o.videoWidth,c=s.height||o.videoHeight,l=Math.min(t/a,r/c,1),B=Math.round(a*l),d=Math.round(c*l),g=document.createElement("canvas");g.width=B,g.height=d;const u=g.getContext("2d");return u?(u.drawImage(o,0,0,B,d),i.stop(),g.toDataURL("image/webp",A)):(i.stop(),null)}catch(n){return console.warn("Screenshot capture failed:",n),null}}const _n=Object.freeze(Object.defineProperty({__proto__:null,captureScreenshot:nc},Symbol.toStringTag,{value:"Module"}));var kt=function(e,A){return kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},kt(e,A)};function oA(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");kt(e,A);function t(){this.constructor=e}e.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}var Mt=function(){return Mt=Object.assign||function(A){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Mt.apply(this,arguments)};function z(e,A,t,r){function n(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{c(r.next(l))}catch(B){s(B)}}function a(l){try{c(r.throw(l))}catch(B){s(B)}}function c(l){l.done?i(l.value):n(l.value).then(o,a)}c((r=r.apply(e,[])).next())})}function X(e,A){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(l){return a([c,l])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,n=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){t.label=c[1];break}if(c[0]===6&&t.label<i[1]){t.label=i[1],i=c;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(c);break}i[2]&&t.ops.pop(),t.trys.pop();continue}c=A.call(e,t)}catch(l){c=[6,l],n=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Te(e,A,t){if(arguments.length===2)for(var r=0,n=A.length,i;r<n;r++)(i||!(r in A))&&(i||(i=Array.prototype.slice.call(A,0,r)),i[r]=A[r]);return e.concat(i||A)}for(var wA=(function(){function e(A,t,r,n){this.left=A,this.top=t,this.width=r,this.height=n}return e.prototype.add=function(A,t,r,n){return new e(this.left+A,this.top+t,this.width+r,this.height+n)},e.fromClientRect=function(A,t){return new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},e.fromDOMRectList=function(A,t){var r=Array.from(t).find(function(n){return n.width!==0});return r?new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),De=function(e,A){return wA.fromClientRect(e,A.getBoundingClientRect())},ic=function(e){var A=e.body,t=e.documentElement;if(!A||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),n=Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight));return new wA(0,0,r,n)},ke=function(e){for(var A=[],t=0,r=e.length;t<r;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=e.charCodeAt(t++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},k=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var s=e[n];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},Xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sc=typeof Uint8Array>"u"?[]:new Uint8Array(256),Me=0;Me<Xn.length;Me++)sc[Xn.charCodeAt(Me)]=Me;for(var Jn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oe=typeof Uint8Array>"u"?[]:new Uint8Array(256),Oe=0;Oe<Jn.length;Oe++)oe[Jn.charCodeAt(Oe)]=Oe;for(var oc=function(e){var A=e.length*.75,t=e.length,r,n=0,i,s,o,a;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),l=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<t;r+=4)i=oe[e.charCodeAt(r)],s=oe[e.charCodeAt(r+1)],o=oe[e.charCodeAt(r+2)],a=oe[e.charCodeAt(r+3)],l[n++]=i<<2|s>>4,l[n++]=(s&15)<<4|o>>2,l[n++]=(o&3)<<6|a&63;return c},ac=function(e){for(var A=e.length,t=[],r=0;r<A;r+=2)t.push(e[r+1]<<8|e[r]);return t},cc=function(e){for(var A=e.length,t=[],r=0;r<A;r+=4)t.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return t},kA=5,Ot=11,Rt=2,lc=Ot-kA,Wn=65536>>kA,Bc=1<<kA,qt=Bc-1,dc=1024>>kA,uc=Wn+dc,hc=uc,gc=32,fc=hc+gc,wc=65536>>Ot,Qc=1<<lc,Cc=Qc-1,Yn=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},pc=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},Uc=function(e,A){var t=oc(e),r=Array.isArray(t)?cc(t):new Uint32Array(t),n=Array.isArray(t)?ac(t):new Uint16Array(t),i=24,s=Yn(n,i/2,r[4]/2),o=r[5]===2?Yn(n,(i+r[4])/2):pc(r,Math.ceil((i+r[4])/4));return new Fc(r[0],r[1],r[2],r[3],s,o)},Fc=(function(){function e(A,t,r,n,i,s){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=s}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>kA],t=(t<<Rt)+(A&qt),this.data[t];if(A<=65535)return t=this.index[Wn+(A-55296>>kA)],t=(t<<Rt)+(A&qt),this.data[t];if(A<this.highStart)return t=fc-wc+(A>>Ot),t=this.index[t],t+=A>>kA&Cc,t=this.index[t],t=(t<<Rt)+(A&qt),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),Zn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vc=typeof Uint8Array>"u"?[]:new Uint8Array(256),Re=0;Re<Zn.length;Re++)vc[Zn.charCodeAt(Re)]=Re;var mc="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD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ywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywH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MAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC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HLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABY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BLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHg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eAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcA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AAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB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FAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",zn=50,bc=1,jn=2,$n=3,yc=4,Ec=5,Ai=7,ei=8,ti=9,mA=10,Vt=11,ri=12,Nt=13,Hc=14,ae=15,Gt=16,qe=17,ce=18,Ic=19,ni=20,Pt=21,le=22,_t=23,XA=24,AA=25,Be=26,de=27,JA=28,xc=29,MA=30,Lc=31,Ve=32,Ne=33,Xt=34,Jt=35,Wt=36,ue=37,Yt=38,Ge=39,Pe=40,Zt=41,ii=42,Kc=43,Sc=[9001,65288],si="!",I="×",_e="÷",zt=Uc(mc),QA=[MA,Wt],jt=[bc,jn,$n,Ec],oi=[mA,ei],ai=[de,Be],Tc=jt.concat(oi),ci=[Yt,Ge,Pe,Xt,Jt],Dc=[ae,Nt],kc=function(e,A){A===void 0&&(A="strict");var t=[],r=[],n=[];return e.forEach(function(i,s){var o=zt.get(i);if(o>zn?(n.push(!0),o-=zn):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(s),t.push(Gt);if(o===yc||o===Vt){if(s===0)return r.push(s),t.push(MA);var a=t[s-1];return Tc.indexOf(a)===-1?(r.push(r[s-1]),t.push(a)):(r.push(s),t.push(MA))}if(r.push(s),o===Lc)return t.push(A==="strict"?Pt:ue);if(o===ii||o===xc)return t.push(MA);if(o===Kc)return i>=131072&&i<=196605||i>=196608&&i<=262141?t.push(ue):t.push(MA);t.push(o)}),[r,t,n]},$t=function(e,A,t,r){var n=r[t];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var i=t;i<=r.length;){i++;var s=r[i];if(s===A)return!0;if(s!==mA)break}if(n===mA)for(var i=t;i>0;){i--;var o=r[i];if(Array.isArray(e)?e.indexOf(o)!==-1:e===o)for(var a=t;a<=r.length;){a++;var s=r[a];if(s===A)return!0;if(s!==mA)break}if(o!==mA)break}return!1},li=function(e,A){for(var t=e;t>=0;){var r=A[t];if(r===mA)t--;else return r}return 0},Mc=function(e,A,t,r,n){if(t[r]===0)return I;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return I;var s=i-1,o=i+1,a=A[i],c=s>=0?A[s]:0,l=A[o];if(a===jn&&l===$n)return I;if(jt.indexOf(a)!==-1)return si;if(jt.indexOf(l)!==-1||oi.indexOf(l)!==-1)return I;if(li(i,A)===ei)return _e;if(zt.get(e[i])===Vt||(a===Ve||a===Ne)&&zt.get(e[o])===Vt||a===Ai||l===Ai||a===ti||[mA,Nt,ae].indexOf(a)===-1&&l===ti||[qe,ce,Ic,XA,JA].indexOf(l)!==-1||li(i,A)===le||$t(_t,le,i,A)||$t([qe,ce],Pt,i,A)||$t(ri,ri,i,A))return I;if(a===mA)return _e;if(a===_t||l===_t)return I;if(l===Gt||a===Gt)return _e;if([Nt,ae,Pt].indexOf(l)!==-1||a===Hc||c===Wt&&Dc.indexOf(a)!==-1||a===JA&&l===Wt||l===ni||QA.indexOf(l)!==-1&&a===AA||QA.indexOf(a)!==-1&&l===AA||a===de&&[ue,Ve,Ne].indexOf(l)!==-1||[ue,Ve,Ne].indexOf(a)!==-1&&l===Be||QA.indexOf(a)!==-1&&ai.indexOf(l)!==-1||ai.indexOf(a)!==-1&&QA.indexOf(l)!==-1||[de,Be].indexOf(a)!==-1&&(l===AA||[le,ae].indexOf(l)!==-1&&A[o+1]===AA)||[le,ae].indexOf(a)!==-1&&l===AA||a===AA&&[AA,JA,XA].indexOf(l)!==-1)return I;if([AA,JA,XA,qe,ce].indexOf(l)!==-1)for(var B=i;B>=0;){var d=A[B];if(d===AA)return I;if([JA,XA].indexOf(d)!==-1)B--;else break}if([de,Be].indexOf(l)!==-1)for(var B=[qe,ce].indexOf(a)!==-1?s:i;B>=0;){var d=A[B];if(d===AA)return I;if([JA,XA].indexOf(d)!==-1)B--;else break}if(Yt===a&&[Yt,Ge,Xt,Jt].indexOf(l)!==-1||[Ge,Xt].indexOf(a)!==-1&&[Ge,Pe].indexOf(l)!==-1||[Pe,Jt].indexOf(a)!==-1&&l===Pe||ci.indexOf(a)!==-1&&[ni,Be].indexOf(l)!==-1||ci.indexOf(l)!==-1&&a===de||QA.indexOf(a)!==-1&&QA.indexOf(l)!==-1||a===XA&&QA.indexOf(l)!==-1||QA.concat(AA).indexOf(a)!==-1&&l===le&&Sc.indexOf(e[o])===-1||QA.concat(AA).indexOf(l)!==-1&&a===ce)return I;if(a===Zt&&l===Zt){for(var g=t[i],u=1;g>0&&(g--,A[g]===Zt);)u++;if(u%2!==0)return I}return a===Ve&&l===Ne?I:_e},Oc=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var t=kc(e,A.lineBreak),r=t[0],n=t[1],i=t[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(o){return[AA,MA,ii].indexOf(o)!==-1?ue:o}));var s=A.wordBreak==="keep-all"?i.map(function(o,a){return o&&e[a]>=19968&&e[a]<=40959}):void 0;return[r,n,s]},Rc=(function(){function e(A,t,r,n){this.codePoints=A,this.required=t===si,this.start=r,this.end=n}return e.prototype.slice=function(){return k.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),qc=function(e,A){var t=ke(e),r=Oc(t,A),n=r[0],i=r[1],s=r[2],o=t.length,a=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var l=I;c<o&&(l=Mc(t,i,n,++c,s))===I;);if(l!==I||c===o){var B=new Rc(t,l,a,c);return a=c,{value:B,done:!1}}return{done:!0,value:null}}}},Vc=1,Nc=2,he=4,Bi=8,Xe=10,di=47,ge=92,Gc=9,Pc=32,Je=34,fe=61,_c=35,Xc=36,Jc=37,We=39,Ye=40,we=41,Wc=95,j=45,Yc=33,Zc=60,zc=62,jc=64,$c=91,Al=93,el=61,tl=123,Ze=63,rl=125,ui=124,nl=126,il=128,hi=65533,Ar=42,OA=43,sl=44,ol=58,al=59,Qe=46,cl=0,ll=8,Bl=11,dl=14,ul=31,hl=127,dA=-1,gi=48,fi=97,wi=101,gl=102,fl=117,wl=122,Qi=65,Ci=69,pi=70,Ql=85,Cl=90,J=function(e){return e>=gi&&e<=57},pl=function(e){return e>=55296&&e<=57343},WA=function(e){return J(e)||e>=Qi&&e<=pi||e>=fi&&e<=gl},Ul=function(e){return e>=fi&&e<=wl},Fl=function(e){return e>=Qi&&e<=Cl},vl=function(e){return Ul(e)||Fl(e)},ml=function(e){return e>=il},ze=function(e){return e===Xe||e===Gc||e===Pc},je=function(e){return vl(e)||ml(e)||e===Wc},Ui=function(e){return je(e)||J(e)||e===j},bl=function(e){return e>=cl&&e<=ll||e===Bl||e>=dl&&e<=ul||e===hl},bA=function(e,A){return e!==ge?!1:A!==Xe},$e=function(e,A,t){return e===j?je(A)||bA(A,t):je(e)?!0:!!(e===ge&&bA(e,A))},er=function(e,A,t){return e===OA||e===j?J(A)?!0:A===Qe&&J(t):J(e===Qe?A:e)},yl=function(e){var A=0,t=1;(e[A]===OA||e[A]===j)&&(e[A]===j&&(t=-1),A++);for(var r=[];J(e[A]);)r.push(e[A++]);var n=r.length?parseInt(k.apply(void 0,r),10):0;e[A]===Qe&&A++;for(var i=[];J(e[A]);)i.push(e[A++]);var s=i.length,o=s?parseInt(k.apply(void 0,i),10):0;(e[A]===Ci||e[A]===wi)&&A++;var a=1;(e[A]===OA||e[A]===j)&&(e[A]===j&&(a=-1),A++);for(var c=[];J(e[A]);)c.push(e[A++]);var l=c.length?parseInt(k.apply(void 0,c),10):0;return t*(n+o*Math.pow(10,-s))*Math.pow(10,a*l)},El={type:2},Hl={type:3},Il={type:4},xl={type:13},Ll={type:8},Kl={type:21},Sl={type:9},Tl={type:10},Dl={type:11},kl={type:12},Ml={type:14},At={type:23},Ol={type:1},Rl={type:25},ql={type:24},Vl={type:26},Nl={type:27},Gl={type:28},Pl={type:29},_l={type:31},tr={type:32},Fi=(function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(ke(A))},e.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==tr;)A.push(t),t=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Je:return this.consumeStringToken(Je);case _c:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Ui(t)||bA(r,n)){var i=$e(t,r,n)?Nc:Vc,s=this.consumeName();return{type:5,value:s,flags:i}}break;case Xc:if(this.peekCodePoint(0)===fe)return this.consumeCodePoint(),xl;break;case We:return this.consumeStringToken(We);case Ye:return El;case we:return Hl;case Ar:if(this.peekCodePoint(0)===fe)return this.consumeCodePoint(),Ml;break;case OA:if(er(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case sl:return Il;case j:var o=A,a=this.peekCodePoint(0),c=this.peekCodePoint(1);if(er(o,a,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if($e(o,a,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(a===j&&c===zc)return this.consumeCodePoint(),this.consumeCodePoint(),ql;break;case Qe:if(er(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case di:if(this.peekCodePoint(0)===Ar)for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(l===Ar&&(l=this.consumeCodePoint(),l===di))return this.consumeToken();if(l===dA)return this.consumeToken()}break;case ol:return Vl;case al:return Nl;case Zc:if(this.peekCodePoint(0)===Yc&&this.peekCodePoint(1)===j&&this.peekCodePoint(2)===j)return this.consumeCodePoint(),this.consumeCodePoint(),Rl;break;case jc:var B=this.peekCodePoint(0),d=this.peekCodePoint(1),g=this.peekCodePoint(2);if($e(B,d,g)){var s=this.consumeName();return{type:7,value:s}}break;case $c:return Gl;case ge:if(bA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Al:return Pl;case el:if(this.peekCodePoint(0)===fe)return this.consumeCodePoint(),Ll;break;case tl:return Dl;case rl:return kl;case fl:case Ql:var u=this.peekCodePoint(0),f=this.peekCodePoint(1);return u===OA&&(WA(f)||f===Ze)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case ui:if(this.peekCodePoint(0)===fe)return this.consumeCodePoint(),Sl;if(this.peekCodePoint(0)===ui)return this.consumeCodePoint(),Kl;break;case nl:if(this.peekCodePoint(0)===fe)return this.consumeCodePoint(),Tl;break;case dA:return tr}return ze(A)?(this.consumeWhiteSpace(),_l):J(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):je(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:k(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();WA(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var r=!1;t===Ze&&A.length<6;)A.push(t),t=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(k.apply(void 0,A.map(function(a){return a===Ze?gi:a})),16),i=parseInt(k.apply(void 0,A.map(function(a){return a===Ze?pi:a})),16);return{type:30,start:n,end:i}}var s=parseInt(k.apply(void 0,A),16);if(this.peekCodePoint(0)===j&&WA(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var o=[];WA(t)&&o.length<6;)o.push(t),t=this.consumeCodePoint();var i=parseInt(k.apply(void 0,o),16);return{type:30,start:s,end:i}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Ye?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ye?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===dA)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===We||t===Je){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===dA||this.peekCodePoint(0)===we)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),At)}for(;;){var n=this.consumeCodePoint();if(n===dA||n===we)return{type:22,value:k.apply(void 0,A)};if(ze(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===dA||this.peekCodePoint(0)===we?(this.consumeCodePoint(),{type:22,value:k.apply(void 0,A)}):(this.consumeBadUrlRemnants(),At);if(n===Je||n===We||n===Ye||bl(n))return this.consumeBadUrlRemnants(),At;if(n===ge)if(bA(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),At;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;ze(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===we||A===dA)return;bA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var t=5e4,r="";A>0;){var n=Math.min(t,A);r+=k.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),r},e.prototype.consumeStringToken=function(A){var t="",r=0;do{var n=this._value[r];if(n===dA||n===void 0||n===A)return t+=this.consumeStringSlice(r),{type:0,value:t};if(n===Xe)return this._value.splice(0,r),Ol;if(n===ge){var i=this._value[r+1];i!==dA&&i!==void 0&&(i===Xe?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):bA(n,i)&&(t+=this.consumeStringSlice(r),t+=k(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var A=[],t=he,r=this.peekCodePoint(0);for((r===OA||r===j)&&A.push(this.consumeCodePoint());J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Qe&&J(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Bi;J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===Ci||r===wi)&&((n===OA||n===j)&&J(i)||J(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Bi;J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[yl(A),t]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],r=A[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if($e(n,i,s)){var o=this.consumeName();return{type:15,number:t,flags:r,unit:o}}return n===Jc?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(WA(A)){for(var t=k(A);WA(this.peekCodePoint(0))&&t.length<6;)t+=k(this.consumeCodePoint());ze(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||pl(r)||r>1114111?hi:r}return A===dA?hi:A},e.prototype.consumeName=function(){for(var A="";;){var t=this.consumeCodePoint();if(Ui(t))A+=k(t);else if(bA(t,this.peekCodePoint(0)))A+=k(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),A}},e})(),vi=(function(){function e(A){this._tokens=A}return e.create=function(A){var t=new Fi;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(t.type===32)return A;A.push(t),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},r=this.consumeToken();;){if(r.type===32||Jl(r,A))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var t={name:A.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?tr:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e})(),Ce=function(e){return e.type===15},YA=function(e){return e.type===17},K=function(e){return e.type===20},Xl=function(e){return e.type===0},rr=function(e,A){return K(e)&&e.value===A},mi=function(e){return e.type!==31},ZA=function(e){return e.type!==31&&e.type!==4},uA=function(e){var A=[],t=[];return e.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&A.push(t),A},Jl=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},yA=function(e){return e.type===17||e.type===15},O=function(e){return e.type===16||yA(e)},bi=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},G={type:17,number:0,flags:he},nr={type:16,number:50,flags:he},EA={type:16,number:100,flags:he},pe=function(e,A,t){var r=e[0],n=e[1];return[S(r,A),S(typeof n<"u"?n:r,t)]},S=function(e,A){if(e.type===16)return e.number/100*A;if(Ce(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},yi="deg",Ei="grad",Hi="rad",Ii="turn",et={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case yi:return Math.PI*A.number/180;case Ei:return Math.PI/200*A.number;case Hi:return A.number;case Ii:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},xi=function(e){return e.type===15&&(e.unit===yi||e.unit===Ei||e.unit===Hi||e.unit===Ii)},Li=function(e){var A=e.filter(K).map(function(t){return t.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[G,G];case"to top":case"bottom":return rA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[G,EA];case"to right":case"left":return rA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[EA,EA];case"to bottom":case"top":return rA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[EA,G];case"to left":case"right":return rA(270)}return 0},rA=function(e){return Math.PI*e/180},HA={name:"color",parse:function(e,A){if(A.type===18){var t=Wl[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return t(e,A.values)}if(A.type===5){if(A.value.length===3){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3);return xA(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(A.value.length===4){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3),s=A.value.substring(3,4);return xA(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(A.value.length===6){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6);return xA(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(A.value.length===8){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6),s=A.value.substring(6,8);return xA(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(s,16)/255)}}if(A.type===20){var o=CA[A.value.toUpperCase()];if(typeof o<"u")return o}return CA.TRANSPARENT}},IA=function(e){return(255&e)===0},V=function(e){var A=255&e,t=255&e>>8,r=255&e>>16,n=255&e>>24;return A<255?"rgba("+n+","+r+","+t+","+A/255+")":"rgb("+n+","+r+","+t+")"},xA=function(e,A,t,r){return(e<<24|A<<16|t<<8|Math.round(r*255)<<0)>>>0},Ki=function(e,A){if(e.type===17)return e.number;if(e.type===16){var t=A===3?1:255;return A===3?e.number/100*t:Math.round(e.number/100*t)}return 0},Si=function(e,A){var t=A.filter(ZA);if(t.length===3){var r=t.map(Ki),n=r[0],i=r[1],s=r[2];return xA(n,i,s,1)}if(t.length===4){var o=t.map(Ki),n=o[0],i=o[1],s=o[2],a=o[3];return xA(n,i,s,a)}return 0};function ir(e,A,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(A-e)*t*6+e:t<1/2?A:t<2/3?(A-e)*6*(2/3-t)+e:e}var Ti=function(e,A){var t=A.filter(ZA),r=t[0],n=t[1],i=t[2],s=t[3],o=(r.type===17?rA(r.number):et.parse(e,r))/(Math.PI*2),a=O(n)?n.number/100:0,c=O(i)?i.number/100:0,l=typeof s<"u"&&O(s)?S(s,1):1;if(a===0)return xA(c*255,c*255,c*255,1);var B=c<=.5?c*(a+1):c+a-c*a,d=c*2-B,g=ir(d,B,o+1/3),u=ir(d,B,o),f=ir(d,B,o-1/3);return xA(g*255,u*255,f*255,l)},Wl={hsl:Ti,hsla:Ti,rgb:Si,rgba:Si},Ue=function(e,A){return HA.parse(e,vi.create(A).parseComponentValue())},CA={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Yl={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(K(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Zl={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},tt=function(e,A){var t=HA.parse(e,A[0]),r=A[1];return r&&O(r)?{color:t,stop:r}:{color:t,stop:null}},Di=function(e,A){var t=e[0],r=e[e.length-1];t.stop===null&&(t.stop=G),r.stop===null&&(r.stop=EA);for(var n=[],i=0,s=0;s<e.length;s++){var o=e[s].stop;if(o!==null){var a=S(o,A);a>i?n.push(a):n.push(i),i=a}else n.push(null)}for(var c=null,s=0;s<n.length;s++){var l=n[s];if(l===null)c===null&&(c=s);else if(c!==null){for(var B=s-c,d=n[c-1],g=(l-d)/(B+1),u=1;u<=B;u++)n[c+u-1]=g*u;c=null}}return e.map(function(f,m){var Q=f.color;return{color:Q,stop:Math.max(Math.min(1,n[m]/A),0)}})},zl=function(e,A,t){var r=A/2,n=t/2,i=S(e[0],A)-r,s=n-S(e[1],t);return(Math.atan2(s,i)+Math.PI*2)%(Math.PI*2)},jl=function(e,A,t){var r=typeof e=="number"?e:zl(e,A,t),n=Math.abs(A*Math.sin(r))+Math.abs(t*Math.cos(r)),i=A/2,s=t/2,o=n/2,a=Math.sin(r-Math.PI/2)*o,c=Math.cos(r-Math.PI/2)*o;return[n,i-c,i+c,s-a,s+a]},aA=function(e,A){return Math.sqrt(e*e+A*A)},ki=function(e,A,t,r,n){var i=[[0,0],[0,A],[e,0],[e,A]];return i.reduce(function(s,o){var a=o[0],c=o[1],l=aA(t-a,r-c);return(n?l<s.optimumDistance:l>s.optimumDistance)?{optimumCorner:o,optimumDistance:l}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},$l=function(e,A,t,r,n){var i=0,s=0;switch(e.size){case 0:e.shape===0?i=s=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-n)):e.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-r)),s=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(e.shape===0)i=s=Math.min(aA(A,t),aA(A,t-n),aA(A-r,t),aA(A-r,t-n));else if(e.shape===1){var o=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(A),Math.abs(A-r)),a=ki(r,n,A,t,!0),c=a[0],l=a[1];i=aA(c-A,(l-t)/o),s=o*i}break;case 1:e.shape===0?i=s=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-n)):e.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-r)),s=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(e.shape===0)i=s=Math.max(aA(A,t),aA(A,t-n),aA(A-r,t),aA(A-r,t-n));else if(e.shape===1){var o=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(A),Math.abs(A-r)),B=ki(r,n,A,t,!1),c=B[0],l=B[1];i=aA(c-A,(l-t)/o),s=o*i}break}return Array.isArray(e.size)&&(i=S(e.size[0],r),s=e.size.length===2?S(e.size[1],n):i),[i,s]},AB=function(e,A){var t=rA(180),r=[];return uA(A).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&s.value==="to"){t=Li(n);return}else if(xi(s)){t=et.parse(e,s);return}}var o=tt(e,n);r.push(o)}),{angle:t,stops:r,type:1}},rt=function(e,A){var t=rA(180),r=[];return uA(A).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){t=Li(n);return}else if(xi(s)){t=(et.parse(e,s)+rA(270))%rA(360);return}}var o=tt(e,n);r.push(o)}),{angle:t,stops:r,type:1}},eB=function(e,A){var t=rA(180),r=[],n=1,i=0,s=3,o=[];return uA(A).forEach(function(a,c){var l=a[0];if(c===0){if(K(l)&&l.value==="linear"){n=1;return}else if(K(l)&&l.value==="radial"){n=2;return}}if(l.type===18){if(l.name==="from"){var B=HA.parse(e,l.values[0]);r.push({stop:G,color:B})}else if(l.name==="to"){var B=HA.parse(e,l.values[0]);r.push({stop:EA,color:B})}else if(l.name==="color-stop"){var d=l.values.filter(ZA);if(d.length===2){var B=HA.parse(e,d[1]),g=d[0];YA(g)&&r.push({stop:{type:16,number:g.number*100,flags:g.flags},color:B})}}}}),n===1?{angle:(t+rA(180))%rA(360),stops:r,type:n}:{size:s,shape:i,stops:r,position:o,type:n}},Mi="closest-side",Oi="farthest-side",Ri="closest-corner",qi="farthest-corner",Vi="circle",Ni="ellipse",Gi="cover",Pi="contain",tB=function(e,A){var t=0,r=3,n=[],i=[];return uA(A).forEach(function(s,o){var a=!0;if(o===0){var c=!1;a=s.reduce(function(B,d){if(c)if(K(d))switch(d.value){case"center":return i.push(nr),B;case"top":case"left":return i.push(G),B;case"right":case"bottom":return i.push(EA),B}else(O(d)||yA(d))&&i.push(d);else if(K(d))switch(d.value){case Vi:return t=0,!1;case Ni:return t=1,!1;case"at":return c=!0,!1;case Mi:return r=0,!1;case Gi:case Oi:return r=1,!1;case Pi:case Ri:return r=2,!1;case qi:return r=3,!1}else if(yA(d)||O(d))return Array.isArray(r)||(r=[]),r.push(d),!1;return B},a)}if(a){var l=tt(e,s);n.push(l)}}),{size:r,shape:t,stops:n,position:i,type:2}},nt=function(e,A){var t=0,r=3,n=[],i=[];return uA(A).forEach(function(s,o){var a=!0;if(o===0?a=s.reduce(function(l,B){if(K(B))switch(B.value){case"center":return i.push(nr),!1;case"top":case"left":return i.push(G),!1;case"right":case"bottom":return i.push(EA),!1}else if(O(B)||yA(B))return i.push(B),!1;return l},a):o===1&&(a=s.reduce(function(l,B){if(K(B))switch(B.value){case Vi:return t=0,!1;case Ni:return t=1,!1;case Pi:case Mi:return r=0,!1;case Oi:return r=1,!1;case Ri:return r=2,!1;case Gi:case qi:return r=3,!1}else if(yA(B)||O(B))return Array.isArray(r)||(r=[]),r.push(B),!1;return l},a)),a){var c=tt(e,s);n.push(c)}}),{size:r,shape:t,stops:n,position:i,type:2}},rB=function(e){return e.type===1},nB=function(e){return e.type===2},sr={name:"image",parse:function(e,A){if(A.type===22){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(A.type===18){var r=_i[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return r(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function iB(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!_i[e.name])}var _i={"linear-gradient":AB,"-moz-linear-gradient":rt,"-ms-linear-gradient":rt,"-o-linear-gradient":rt,"-webkit-linear-gradient":rt,"radial-gradient":tB,"-moz-radial-gradient":nt,"-ms-radial-gradient":nt,"-o-radial-gradient":nt,"-webkit-radial-gradient":nt,"-webkit-gradient":eB},sB={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A.filter(function(r){return ZA(r)&&iB(r)}).map(function(r){return sr.parse(e,r)})}},oB={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(K(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},aB={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return uA(A).map(function(t){return t.filter(O)}).map(bi)}},cB={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return uA(A).map(function(t){return t.filter(K).map(function(r){return r.value}).join(" ")}).map(lB)}},lB=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},zA;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(zA||(zA={}));var BB={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return uA(A).map(function(t){return t.filter(dB)})}},dB=function(e){return K(e)||O(e)},it=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},uB=it("top"),hB=it("right"),gB=it("bottom"),fB=it("left"),st=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return bi(t.filter(O))}}},wB=st("top-left"),QB=st("top-right"),CB=st("bottom-right"),pB=st("bottom-left"),ot=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},UB=ot("top"),FB=ot("right"),vB=ot("bottom"),mB=ot("left"),at=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return Ce(t)?t.number:0}}},bB=at("top"),yB=at("right"),EB=at("bottom"),HB=at("left"),IB={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},xB={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return A==="rtl"?1:0}},LB={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(K).reduce(function(t,r){return t|KB(r.value)},0)}},KB=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},SB={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},TB={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},ct;(function(e){e.NORMAL="normal",e.STRICT="strict"})(ct||(ct={}));var DB={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="strict"?ct.STRICT:ct.NORMAL}},kB={name:"line-height",initialValue:"normal",prefix:!1,type:4},Xi=function(e,A){return K(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:O(e)?S(e,A):A},MB={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:sr.parse(e,A)}},OB={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){return A==="inside"?0:1}},or={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},lt=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},RB=lt("top"),qB=lt("right"),VB=lt("bottom"),NB=lt("left"),GB={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(K).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},PB={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="break-word"?"break-word":"normal"}},Bt=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},_B=Bt("top"),XB=Bt("right"),JB=Bt("bottom"),WB=Bt("left"),YB={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},ZB={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},zB={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&rr(A[0],"none")?[]:uA(A).map(function(t){for(var r={color:CA.TRANSPARENT,offsetX:G,offsetY:G,blur:G},n=0,i=0;i<t.length;i++){var s=t[i];yA(s)?(n===0?r.offsetX=s:n===1?r.offsetY=s:r.blur=s,n++):r.color=HA.parse(e,s)}return r})}},jB={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},$B={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var t=td[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return t(A.values)}return null}},Ad=function(e){var A=e.filter(function(t){return t.type===17}).map(function(t){return t.number});return A.length===6?A:null},ed=function(e){var A=e.filter(function(a){return a.type===17}).map(function(a){return a.number}),t=A[0],r=A[1];A[2],A[3];var n=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],o=A[13];return A[14],A[15],A.length===16?[t,r,n,i,s,o]:null},td={matrix:Ad,matrix3d:ed},Ji={type:16,number:50,flags:he},rd=[Ji,Ji],nd={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var t=A.filter(O);return t.length!==2?rd:[t[0],t[1]]}},id={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}},Fe;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Fe||(Fe={}));for(var sd={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return Fe.BREAK_ALL;case"keep-all":return Fe.KEEP_ALL;default:return Fe.NORMAL}}},od={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(YA(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Wi={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},ad={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return YA(A)?A.number:1}},cd={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ld={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(K).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},Bd={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var t=[],r=[];return A.forEach(function(n){switch(n.type){case 20:case 0:t.push(n.value);break;case 17:t.push(n.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},dd={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ud={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return YA(A)?A.number:K(A)&&A.value==="bold"?700:400}},hd={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(K).map(function(t){return t.value})}},gd={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},q=function(e,A){return(e&A)!==0},fd={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A}},wd={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;for(var r=[],n=A.filter(mi),i=0;i<n.length;i++){var s=n[i],o=n[i+1];if(s.type===20){var a=o&&YA(o)?o.number:1;r.push({counter:s.value,increment:a})}}return r}},Qd={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var t=[],r=A.filter(mi),n=0;n<r.length;n++){var i=r[n],s=r[n+1];if(K(i)&&i.value!=="none"){var o=s&&YA(s)?s.number:0;t.push({counter:i.value,reset:o})}}return t}},Cd={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Ce).map(function(t){return Wi.parse(e,t)})}},pd={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;var r=[],n=A.filter(Xl);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var s=n[i].value,o=n[i+1].value;r.push({open:s,close:o})}return r}},Yi=function(e,A,t){if(!e)return"";var r=e[Math.min(A,e.length-1)];return r?t?r.open:r.close:""},Ud={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&rr(A[0],"none")?[]:uA(A).map(function(t){for(var r={color:255,offsetX:G,offsetY:G,blur:G,spread:G,inset:!1},n=0,i=0;i<t.length;i++){var s=t[i];rr(s,"inset")?r.inset=!0:yA(s)?(n===0?r.offsetX=s:n===1?r.offsetY=s:n===2?r.blur=s:r.spread=s,n++):r.color=HA.parse(e,s)}return r})}},Fd={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var t=[0,1,2],r=[];return A.filter(K).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),t.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},vd={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},md={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Ce(A)?A.number:0}},bd=(function(){function e(A,t){var r,n;this.animationDuration=p(A,Cd,t.animationDuration),this.backgroundClip=p(A,Yl,t.backgroundClip),this.backgroundColor=p(A,Zl,t.backgroundColor),this.backgroundImage=p(A,sB,t.backgroundImage),this.backgroundOrigin=p(A,oB,t.backgroundOrigin),this.backgroundPosition=p(A,aB,t.backgroundPosition),this.backgroundRepeat=p(A,cB,t.backgroundRepeat),this.backgroundSize=p(A,BB,t.backgroundSize),this.borderTopColor=p(A,uB,t.borderTopColor),this.borderRightColor=p(A,hB,t.borderRightColor),this.borderBottomColor=p(A,gB,t.borderBottomColor),this.borderLeftColor=p(A,fB,t.borderLeftColor),this.borderTopLeftRadius=p(A,wB,t.borderTopLeftRadius),this.borderTopRightRadius=p(A,QB,t.borderTopRightRadius),this.borderBottomRightRadius=p(A,CB,t.borderBottomRightRadius),this.borderBottomLeftRadius=p(A,pB,t.borderBottomLeftRadius),this.borderTopStyle=p(A,UB,t.borderTopStyle),this.borderRightStyle=p(A,FB,t.borderRightStyle),this.borderBottomStyle=p(A,vB,t.borderBottomStyle),this.borderLeftStyle=p(A,mB,t.borderLeftStyle),this.borderTopWidth=p(A,bB,t.borderTopWidth),this.borderRightWidth=p(A,yB,t.borderRightWidth),this.borderBottomWidth=p(A,EB,t.borderBottomWidth),this.borderLeftWidth=p(A,HB,t.borderLeftWidth),this.boxShadow=p(A,Ud,t.boxShadow),this.color=p(A,IB,t.color),this.direction=p(A,xB,t.direction),this.display=p(A,LB,t.display),this.float=p(A,SB,t.cssFloat),this.fontFamily=p(A,Bd,t.fontFamily),this.fontSize=p(A,dd,t.fontSize),this.fontStyle=p(A,gd,t.fontStyle),this.fontVariant=p(A,hd,t.fontVariant),this.fontWeight=p(A,ud,t.fontWeight),this.letterSpacing=p(A,TB,t.letterSpacing),this.lineBreak=p(A,DB,t.lineBreak),this.lineHeight=p(A,kB,t.lineHeight),this.listStyleImage=p(A,MB,t.listStyleImage),this.listStylePosition=p(A,OB,t.listStylePosition),this.listStyleType=p(A,or,t.listStyleType),this.marginTop=p(A,RB,t.marginTop),this.marginRight=p(A,qB,t.marginRight),this.marginBottom=p(A,VB,t.marginBottom),this.marginLeft=p(A,NB,t.marginLeft),this.opacity=p(A,ad,t.opacity);var i=p(A,GB,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=p(A,PB,t.overflowWrap),this.paddingTop=p(A,_B,t.paddingTop),this.paddingRight=p(A,XB,t.paddingRight),this.paddingBottom=p(A,JB,t.paddingBottom),this.paddingLeft=p(A,WB,t.paddingLeft),this.paintOrder=p(A,Fd,t.paintOrder),this.position=p(A,ZB,t.position),this.textAlign=p(A,YB,t.textAlign),this.textDecorationColor=p(A,cd,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=p(A,ld,(n=t.textDecorationLine)!==null&&n!==void 0?n:t.textDecoration),this.textShadow=p(A,zB,t.textShadow),this.textTransform=p(A,jB,t.textTransform),this.transform=p(A,$B,t.transform),this.transformOrigin=p(A,nd,t.transformOrigin),this.visibility=p(A,id,t.visibility),this.webkitTextStrokeColor=p(A,vd,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=p(A,md,t.webkitTextStrokeWidth),this.wordBreak=p(A,sd,t.wordBreak),this.zIndex=p(A,od,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return IA(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return q(this.display,4)||q(this.display,33554432)||q(this.display,268435456)||q(this.display,536870912)||q(this.display,67108864)||q(this.display,134217728)},e})(),yd=(function(){function e(A,t){this.content=p(A,fd,t.content),this.quotes=p(A,pd,t.quotes)}return e})(),Zi=(function(){function e(A,t){this.counterIncrement=p(A,wd,t.counterIncrement),this.counterReset=p(A,Qd,t.counterReset)}return e})(),p=function(e,A,t){var r=new Fi,n=t!==null&&typeof t<"u"?t.toString():A.initialValue;r.write(n);var i=new vi(r.read());switch(A.type){case 2:var s=i.parseComponentValue();return A.parse(e,K(s)?s.value:A.initialValue);case 0:return A.parse(e,i.parseComponentValue());case 1:return A.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return et.parse(e,i.parseComponentValue());case"color":return HA.parse(e,i.parseComponentValue());case"image":return sr.parse(e,i.parseComponentValue());case"length":var o=i.parseComponentValue();return yA(o)?o:G;case"length-percentage":var a=i.parseComponentValue();return O(a)?a:G;case"time":return Wi.parse(e,i.parseComponentValue())}break}},Ed="data-html2canvas-debug",Hd=function(e){var A=e.getAttribute(Ed);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ar=function(e,A){var t=Hd(e);return t===1||A===t},hA=(function(){function e(A,t){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,ar(t,3))debugger;this.styles=new bd(A,window.getComputedStyle(t,null)),Fr(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=De(this.context,t),ar(t,4)&&(this.flags|=16)}return e})(),Id="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIA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BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAw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AZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAI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4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",zi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ve=typeof Uint8Array>"u"?[]:new Uint8Array(256),dt=0;dt<zi.length;dt++)ve[zi.charCodeAt(dt)]=dt;for(var xd=function(e){var A=e.length*.75,t=e.length,r,n=0,i,s,o,a;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),l=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<t;r+=4)i=ve[e.charCodeAt(r)],s=ve[e.charCodeAt(r+1)],o=ve[e.charCodeAt(r+2)],a=ve[e.charCodeAt(r+3)],l[n++]=i<<2|s>>4,l[n++]=(s&15)<<4|o>>2,l[n++]=(o&3)<<6|a&63;return c},Ld=function(e){for(var A=e.length,t=[],r=0;r<A;r+=2)t.push(e[r+1]<<8|e[r]);return t},Kd=function(e){for(var A=e.length,t=[],r=0;r<A;r+=4)t.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return t},RA=5,cr=11,lr=2,Sd=cr-RA,ji=65536>>RA,Td=1<<RA,Br=Td-1,Dd=1024>>RA,kd=ji+Dd,Md=kd,Od=32,Rd=Md+Od,qd=65536>>cr,Vd=1<<Sd,Nd=Vd-1,$i=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},Gd=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},Pd=function(e,A){var t=xd(e),r=Array.isArray(t)?Kd(t):new Uint32Array(t),n=Array.isArray(t)?Ld(t):new Uint16Array(t),i=24,s=$i(n,i/2,r[4]/2),o=r[5]===2?$i(n,(i+r[4])/2):Gd(r,Math.ceil((i+r[4])/4));return new _d(r[0],r[1],r[2],r[3],s,o)},_d=(function(){function e(A,t,r,n,i,s){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=s}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>RA],t=(t<<lr)+(A&Br),this.data[t];if(A<=65535)return t=this.index[ji+(A-55296>>RA)],t=(t<<lr)+(A&Br),this.data[t];if(A<this.highStart)return t=Rd-qd+(A>>cr),t=this.index[t],t+=A>>RA&Nd,t=this.index[t],t=(t<<lr)+(A&Br),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),As="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xd=typeof Uint8Array>"u"?[]:new Uint8Array(256),ut=0;ut<As.length;ut++)Xd[As.charCodeAt(ut)]=ut;var Jd=1,dr=2,ur=3,es=4,ts=5,Wd=7,rs=8,hr=9,gr=10,ns=11,is=12,ss=13,os=14,fr=15,Yd=function(e){for(var A=[],t=0,r=e.length;t<r;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=e.charCodeAt(t++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},Zd=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var s=e[n];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},zd=Pd(Id),nA="×",wr="÷",jd=function(e){return zd.get(e)},$d=function(e,A,t){var r=t-2,n=A[r],i=A[t-1],s=A[t];if(i===dr&&s===ur)return nA;if(i===dr||i===ur||i===es||s===dr||s===ur||s===es)return wr;if(i===rs&&[rs,hr,ns,is].indexOf(s)!==-1||(i===ns||i===hr)&&(s===hr||s===gr)||(i===is||i===gr)&&s===gr||s===ss||s===ts||s===Wd||i===Jd)return nA;if(i===ss&&s===os){for(;n===ts;)n=A[--r];if(n===os)return nA}if(i===fr&&s===fr){for(var o=0;n===fr;)o++,n=A[--r];if(o%2===0)return nA}return wr},Au=function(e){var A=Yd(e),t=A.length,r=0,n=0,i=A.map(jd);return{next:function(){if(r>=t)return{done:!0,value:null};for(var s=nA;r<t&&(s=$d(A,i,++r))===nA;);if(s!==nA||r===t){var o=Zd.apply(null,A.slice(n,r));return n=r,{value:o,done:!1}}return{done:!0,value:null}}}},eu=function(e){for(var A=Au(e),t=[],r;!(r=A.next()).done;)r.value&&t.push(r.value.slice());return t},tu=function(e){var A=123;if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var r=e.createElement("boundtest");r.style.height=A+"px",r.style.display="block",e.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),i=Math.round(n.height);if(e.body.removeChild(r),i===A)return!0}}return!1},ru=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var t=e.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=A.firstChild,n=ke(r.data).map(function(a){return k(a)}),i=0,s={},o=n.every(function(a,c){t.setStart(r,i),t.setEnd(r,i+a.length);var l=t.getBoundingClientRect();i+=a.length;var B=l.x>s.x||l.y>s.y;return s=l,c===0?!0:B});return e.body.removeChild(A),o},nu=function(){return typeof new Image().crossOrigin<"u"},iu=function(){return typeof new XMLHttpRequest().responseType=="string"},su=function(e){var A=new Image,t=e.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(A,0,0),t.toDataURL()}catch{return!1}return!0},as=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},ou=function(e){var A=e.createElement("canvas"),t=100;A.width=t,A.height=t;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,i=A.toDataURL();n.src=i;var s=Qr(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),cs(s).then(function(o){r.drawImage(o,0,0);var a=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var c=e.createElement("div");return c.style.backgroundImage="url("+i+")",c.style.height=t+"px",as(a)?cs(Qr(t,t,0,0,c)):Promise.reject(!1)}).then(function(o){return r.drawImage(o,0,0),as(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Qr=function(e,A,t,r,n){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",A.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},cs=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){return A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},P={get SUPPORT_RANGE_BOUNDS(){var e=tu(document);return Object.defineProperty(P,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=P.SUPPORT_RANGE_BOUNDS&&ru(document);return Object.defineProperty(P,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=su(document);return Object.defineProperty(P,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?ou(document):Promise.resolve(!1);return Object.defineProperty(P,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=nu();return Object.defineProperty(P,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=iu();return Object.defineProperty(P,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(P,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(P,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},me=(function(){function e(A,t){this.text=A,this.bounds=t}return e})(),au=function(e,A,t,r){var n=Bu(A,t),i=[],s=0;return n.forEach(function(o){if(t.textDecorationLine.length||o.trim().length>0)if(P.SUPPORT_RANGE_BOUNDS){var a=ls(r,s,o.length).getClientRects();if(a.length>1){var c=Cr(o),l=0;c.forEach(function(d){i.push(new me(d,wA.fromDOMRectList(e,ls(r,l+s,d.length).getClientRects()))),l+=d.length})}else i.push(new me(o,wA.fromDOMRectList(e,a)))}else{var B=r.splitText(o.length);i.push(new me(o,cu(e,r))),r=B}else P.SUPPORT_RANGE_BOUNDS||(r=r.splitText(o.length));s+=o.length}),i},cu=function(e,A){var t=A.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(r,A);var i=De(e,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return wA.EMPTY},ls=function(e,A,t){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(e,A),n.setEnd(e,A+t),n},Cr=function(e){if(P.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(t){return t.segment})}return eu(e)},lu=function(e,A){if(P.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return uu(e,A)},Bu=function(e,A){return A.letterSpacing!==0?Cr(e):lu(e,A)},du=[32,160,4961,65792,65793,4153,4241],uu=function(e,A){for(var t=qc(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[],n,i=function(){if(n.value){var s=n.value.slice(),o=ke(s),a="";o.forEach(function(c){du.indexOf(c)===-1?a+=k(c):(a.length&&r.push(a),r.push(k(c)),a="")}),a.length&&r.push(a)}};!(n=t.next()).done;)i();return r},hu=(function(){function e(A,t,r){this.text=gu(t.data,r.textTransform),this.textBounds=au(A,this.text,r,t)}return e})(),gu=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(fu,wu);case 2:return e.toUpperCase();default:return e}},fu=/(^|\s|:|-|\(|\))([a-z])/g,wu=function(e,A,t){return e.length>0?A+t.toUpperCase():e},Bs=(function(e){oA(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return A})(hA),ds=(function(e){oA(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return A})(hA),us=(function(e){oA(A,e);function A(t,r){var n=e.call(this,t,r)||this,i=new XMLSerializer,s=De(t,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A})(hA),hs=(function(e){oA(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.value=r.value,n}return A})(hA),pr=(function(e){oA(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return A})(hA),Qu=[{type:15,flags:0,unit:"px",number:3}],Cu=[{type:16,flags:0,number:50}],pu=function(e){return e.width>e.height?new wA(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new wA(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Uu=function(e){var A=e.type===Fu?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},ht="checkbox",gt="radio",Fu="password",gs=707406591,Ur=(function(e){oA(A,e);function A(t,r){var n=e.call(this,t,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=Uu(r),(n.type===ht||n.type===gt)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=pu(n.bounds)),n.type){case ht:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Qu;break;case gt:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Cu;break}return n}return A})(hA),fs=(function(e){oA(A,e);function A(t,r){var n=e.call(this,t,r)||this,i=r.options[r.selectedIndex||0];return n.value=i&&i.text||"",n}return A})(hA),ws=(function(e){oA(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.value=r.value,n}return A})(hA),Qs=(function(e){oA(A,e);function A(t,r){var n=e.call(this,t,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=ps(t,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?Ue(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):CA.TRANSPARENT,s=r.contentWindow.document.body?Ue(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):CA.TRANSPARENT;n.backgroundColor=IA(i)?IA(s)?n.styles.backgroundColor:s:i}}catch{}return n}return A})(hA),vu=["OL","UL","MENU"],ft=function(e,A,t,r){for(var n=A.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,Us(n)&&n.data.trim().length>0)t.textNodes.push(new hu(e,n,t.styles));else if(jA(n))if(Es(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return ft(e,o,t,r)});else{var s=Cs(e,n);s.styles.isVisible()&&(mu(n,s,r)?s.flags|=4:bu(s.styles)&&(s.flags|=2),vu.indexOf(n.tagName)!==-1&&(s.flags|=8),t.elements.push(s),n.slot,n.shadowRoot?ft(e,n.shadowRoot,s,r):!Qt(n)&&!Fs(n)&&!Ct(n)&&ft(e,n,s,r))}},Cs=function(e,A){return mr(A)?new Bs(e,A):vs(A)?new ds(e,A):Fs(A)?new us(e,A):yu(A)?new hs(e,A):Eu(A)?new pr(e,A):Hu(A)?new Ur(e,A):Ct(A)?new fs(e,A):Qt(A)?new ws(e,A):bs(A)?new Qs(e,A):new hA(e,A)},ps=function(e,A){var t=Cs(e,A);return t.flags|=4,ft(e,A,t,t),t},mu=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||vr(e)&&t.styles.isTransparent()},bu=function(e){return e.isPositioned()||e.isFloating()},Us=function(e){return e.nodeType===Node.TEXT_NODE},jA=function(e){return e.nodeType===Node.ELEMENT_NODE},Fr=function(e){return jA(e)&&typeof e.style<"u"&&!wt(e)},wt=function(e){return typeof e.className=="object"},yu=function(e){return e.tagName==="LI"},Eu=function(e){return e.tagName==="OL"},Hu=function(e){return e.tagName==="INPUT"},Iu=function(e){return e.tagName==="HTML"},Fs=function(e){return e.tagName==="svg"},vr=function(e){return e.tagName==="BODY"},vs=function(e){return e.tagName==="CANVAS"},ms=function(e){return e.tagName==="VIDEO"},mr=function(e){return e.tagName==="IMG"},bs=function(e){return e.tagName==="IFRAME"},ys=function(e){return e.tagName==="STYLE"},xu=function(e){return e.tagName==="SCRIPT"},Qt=function(e){return e.tagName==="TEXTAREA"},Ct=function(e){return e.tagName==="SELECT"},Es=function(e){return e.tagName==="SLOT"},Hs=function(e){return e.tagName.indexOf("-")>0},Lu=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(A){var t=this.counters[A];return t||[]},e.prototype.pop=function(A){var t=this;A.forEach(function(r){return t.counters[r].pop()})},e.prototype.parse=function(A){var t=this,r=A.counterIncrement,n=A.counterReset,i=!0;r!==null&&r.forEach(function(o){var a=t.counters[o.counter];a&&o.increment!==0&&(i=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=o.increment)});var s=[];return i&&n.forEach(function(o){var a=t.counters[o.counter];s.push(o.counter),a||(a=t.counters[o.counter]=[]),a.push(o.reset)}),s},e})(),Is={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},xs={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ku={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Su={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},$A=function(e,A,t,r,n,i){return e<A||e>t?ye(e,n,i.length>0):r.integers.reduce(function(s,o,a){for(;e>=o;)e-=o,s+=r.values[a];return s},"")+i},Ls=function(e,A,t,r){var n="";do t||e--,n=r(e)+n,e/=A;while(e*A>=A);return n},M=function(e,A,t,r,n){var i=t-A+1;return(e<0?"-":"")+(Ls(Math.abs(e),i,r,function(s){return k(Math.floor(s%i)+A)})+n)},qA=function(e,A,t){t===void 0&&(t=". ");var r=A.length;return Ls(Math.abs(e),r,!1,function(n){return A[Math.floor(n%r)]})+t},Ae=1,LA=2,KA=4,be=8,pA=function(e,A,t,r,n,i){if(e<-9999||e>9999)return ye(e,4,n.length>0);var s=Math.abs(e),o=n;if(s===0)return A[0]+o;for(var a=0;s>0&&a<=4;a++){var c=s%10;c===0&&q(i,Ae)&&o!==""?o=A[c]+o:c>1||c===1&&a===0||c===1&&a===1&&q(i,LA)||c===1&&a===1&&q(i,KA)&&e>100||c===1&&a>1&&q(i,be)?o=A[c]+(a>0?t[a-1]:"")+o:c===1&&a>0&&(o=t[a-1]+o),s=Math.floor(s/10)}return(e<0?r:"")+o},Ks="十百千萬",Ss="拾佰仟萬",Ts="マイナス",br="마이너스",ye=function(e,A,t){var r=t?". ":"",n=t?"、":"",i=t?", ":"",s=t?" ":"";switch(A){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=M(e,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return qA(e,"〇一二三四五六七八九",n);case 6:return $A(e,1,3999,Is,3,r).toLowerCase();case 7:return $A(e,1,3999,Is,3,r);case 8:return M(e,945,969,!1,r);case 9:return M(e,97,122,!1,r);case 10:return M(e,65,90,!1,r);case 11:return M(e,1632,1641,!0,r);case 12:case 49:return $A(e,1,9999,xs,3,r);case 35:return $A(e,1,9999,xs,3,r).toLowerCase();case 13:return M(e,2534,2543,!0,r);case 14:case 30:return M(e,6112,6121,!0,r);case 15:return qA(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return qA(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return pA(e,"零一二三四五六七八九",Ks,"負",n,LA|KA|be);case 47:return pA(e,"零壹貳參肆伍陸柒捌玖",Ss,"負",n,Ae|LA|KA|be);case 42:return pA(e,"零一二三四五六七八九",Ks,"负",n,LA|KA|be);case 41:return pA(e,"零壹贰叁肆伍陆柒捌玖",Ss,"负",n,Ae|LA|KA|be);case 26:return pA(e,"〇一二三四五六七八九","十百千万",Ts,n,0);case 25:return pA(e,"零壱弐参四伍六七八九","拾百千万",Ts,n,Ae|LA|KA);case 31:return pA(e,"영일이삼사오육칠팔구","십백천만",br,i,Ae|LA|KA);case 33:return pA(e,"零一二三四五六七八九","十百千萬",br,i,0);case 32:return pA(e,"零壹貳參四五六七八九","拾百千",br,i,Ae|LA|KA);case 18:return M(e,2406,2415,!0,r);case 20:return $A(e,1,19999,Su,3,r);case 21:return M(e,2790,2799,!0,r);case 22:return M(e,2662,2671,!0,r);case 22:return $A(e,1,10999,Ku,3,r);case 23:return qA(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return qA(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return M(e,3302,3311,!0,r);case 28:return qA(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return qA(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return M(e,3792,3801,!0,r);case 37:return M(e,6160,6169,!0,r);case 38:return M(e,4160,4169,!0,r);case 39:return M(e,2918,2927,!0,r);case 40:return M(e,1776,1785,!0,r);case 43:return M(e,3046,3055,!0,r);case 44:return M(e,3174,3183,!0,r);case 45:return M(e,3664,3673,!0,r);case 46:return M(e,3872,3881,!0,r);default:return M(e,48,57,!0,r)}},Ds="data-html2canvas-ignore",ks=(function(){function e(A,t,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new Lu,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,t){var r=this,n=Tu(A,t);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,o=n.contentWindow,a=o.document,c=Mu(n).then(function(){return z(r,void 0,void 0,function(){var l,B;return X(this,function(d){switch(d.label){case 0:return this.scrolledElements.forEach(Vu),o&&(o.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==t.top||o.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-t.left,o.scrollY-t.top,0,0))),l=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:d.sent(),d.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ku(a)]:[3,4];case 3:d.sent(),d.label=4;case 4:return typeof l=="function"?[2,Promise.resolve().then(function(){return l(a,B)}).then(function(){return n})]:[2,n]}})})});return a.open(),a.write(Ru(document.doctype)+"<html></html>"),qu(this.referenceElement.ownerDocument,i,s),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),c},e.prototype.createElementClone=function(A){if(ar(A,2))debugger;if(vs(A))return this.createCanvasClone(A);if(ms(A))return this.createVideoClone(A);if(ys(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return mr(t)&&(mr(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),Hs(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return yr(A.style,t),t},e.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),n=A.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var i=A.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var o=(t=A.getContext("webgl2"))!==null&&t!==void 0?t:A.getContext("webgl");if(o){var a=o.getContextAttributes();a?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},e.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},e.prototype.appendChildNode=function(A,t,r){(!jA(t)||!xu(t)&&!t.hasAttribute(Ds)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!jA(t)||!ys(t))&&A.appendChild(this.cloneNode(t,r))},e.prototype.cloneChildNodes=function(A,t,r){for(var n=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(jA(i)&&Es(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(o){return n.appendChildNode(t,o,r)})}else this.appendChildNode(t,i,r)},e.prototype.cloneNode=function(A,t){if(Us(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&jA(A)&&(Fr(A)||wt(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var i=r.getComputedStyle(A),s=r.getComputedStyle(A,":before"),o=r.getComputedStyle(A,":after");this.referenceElement===A&&Fr(n)&&(this.clonedReferenceElement=n),vr(n)&&Pu(n);var a=this.counters.parse(new Zi(this.context,i)),c=this.resolvePseudoContent(A,n,s,Ee.BEFORE);Hs(A)&&(t=!0),ms(A)||this.cloneChildNodes(A,n,t),c&&n.insertBefore(c,n.firstChild);var l=this.resolvePseudoContent(A,n,o,Ee.AFTER);return l&&n.appendChild(l),this.counters.pop(a),(i&&(this.options.copyStyles||wt(A))&&!bs(A)||t)&&yr(i,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(Qt(A)||Ct(A))&&(Qt(n)||Ct(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,t,r,n){var i=this;if(r){var s=r.content,o=t.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Zi(this.context,r));var a=new yd(this.context,r),c=o.createElement("html2canvaspseudoelement");yr(r,c),a.content.forEach(function(B){if(B.type===0)c.appendChild(o.createTextNode(B.value));else if(B.type===22){var d=o.createElement("img");d.src=B.value,d.style.opacity="1",c.appendChild(d)}else if(B.type===18){if(B.name==="attr"){var g=B.values.filter(K);g.length&&c.appendChild(o.createTextNode(A.getAttribute(g[0].value)||""))}else if(B.name==="counter"){var u=B.values.filter(ZA),f=u[0],m=u[1];if(f&&K(f)){var Q=i.counters.getCounterValue(f.value),h=m&&K(m)?or.parse(i.context,m.value):3;c.appendChild(o.createTextNode(ye(Q,h,!1)))}}else if(B.name==="counters"){var v=B.values.filter(ZA),f=v[0],U=v[1],m=v[2];if(f&&K(f)){var F=i.counters.getCounterValues(f.value),w=m&&K(m)?or.parse(i.context,m.value):3,E=U&&U.type===0?U.value:"",y=F.map(function(_){return ye(_,w,!1)}).join(E);c.appendChild(o.createTextNode(y))}}}else if(B.type===20)switch(B.value){case"open-quote":c.appendChild(o.createTextNode(Yi(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(Yi(a.quotes,--i.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(B.value))}}),c.className=Er+" "+Hr;var l=n===Ee.BEFORE?" "+Er:" "+Hr;return wt(t)?t.className.baseValue+=l:t.className+=l,c}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e})(),Ee;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(Ee||(Ee={}));var Tu=function(e,A){var t=e.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=A.width.toString(),t.height=A.height.toString(),t.scrolling="no",t.setAttribute(Ds,"true"),e.body.appendChild(t),t},Du=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},ku=function(e){return Promise.all([].slice.call(e.images,0).map(Du))},Mu=function(e){return new Promise(function(A,t){var r=e.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),A(e))},50)}})},Ou=["all","d","content"],yr=function(e,A){for(var t=e.length-1;t>=0;t--){var r=e.item(t);Ou.indexOf(r)===-1&&A.style.setProperty(r,e.getPropertyValue(r))}return A},Ru=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},qu=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},Vu=function(e){var A=e[0],t=e[1],r=e[2];A.scrollLeft=t,A.scrollTop=r},Nu=":before",Gu=":after",Er="___html2canvas___pseudoelement_before",Hr="___html2canvas___pseudoelement_after",Ms=`{
26
+ content: "" !important;
27
+ display: none !important;
28
+ }`,Pu=function(e){_u(e,"."+Er+Nu+Ms+`
29
+ .`+Hr+Gu+Ms)},_u=function(e,A){var t=e.ownerDocument;if(t){var r=t.createElement("style");r.textContent=A,e.appendChild(r)}},Os=(function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e})(),Xu=(function(){function e(A,t){this.context=A,this._options=t,this._cache={}}return e.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(xr(A)||Zu(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return z(this,void 0,void 0,function(){var t,r,n,i,s=this;return X(this,function(o){switch(o.label){case 0:return t=Os.isSameOrigin(A),r=!Ir(A)&&this._options.useCORS===!0&&P.SUPPORT_CORS_IMAGES&&!t,n=!Ir(A)&&!t&&!xr(A)&&typeof this._options.proxy=="string"&&P.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!Ir(A)&&!xr(A)&&!n&&!r?[2]:(i=A,n?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(a,c){var l=new Image;l.onload=function(){return a(l)},l.onerror=c,(zu(i)||r)&&(l.crossOrigin="anonymous"),l.src=i,l.complete===!0&&setTimeout(function(){return a(l)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(i,s){var o=P.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(o==="text")i(a.response);else{var B=new FileReader;B.addEventListener("load",function(){return i(B.result)},!1),B.addEventListener("error",function(d){return s(d)},!1),B.readAsDataURL(a.response)}else s("Failed to proxy resource "+n+" with status code "+a.status)},a.onerror=s;var c=r.indexOf("?")>-1?"&":"?";if(a.open("GET",""+r+c+"url="+encodeURIComponent(A)+"&responseType="+o),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),t._options.imageTimeout){var l=t._options.imageTimeout;a.timeout=l,a.ontimeout=function(){return s("Timed out ("+l+"ms) proxying "+n)}}a.send()})},e})(),Ju=/^data:image\/svg\+xml/i,Wu=/^data:image\/.*;base64,/i,Yu=/^data:image\/.*/i,Zu=function(e){return P.SUPPORT_SVG_DRAWING||!ju(e)},Ir=function(e){return Yu.test(e)},zu=function(e){return Wu.test(e)},xr=function(e){return e.substr(0,4)==="blob"},ju=function(e){return e.substr(-3).toLowerCase()==="svg"||Ju.test(e)},C=(function(){function e(A,t){this.type=0,this.x=A,this.y=t}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e})(),ee=function(e,A,t){return new C(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},pt=(function(){function e(A,t,r,n){this.type=1,this.start=A,this.startControl=t,this.endControl=r,this.end=n}return e.prototype.subdivide=function(A,t){var r=ee(this.start,this.startControl,A),n=ee(this.startControl,this.endControl,A),i=ee(this.endControl,this.end,A),s=ee(r,n,A),o=ee(n,i,A),a=ee(s,o,A);return t?new e(this.start,r,s,a):new e(a,o,i,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),iA=function(e){return e.type===1},$u=(function(){function e(A){var t=A.styles,r=A.bounds,n=pe(t.borderTopLeftRadius,r.width,r.height),i=n[0],s=n[1],o=pe(t.borderTopRightRadius,r.width,r.height),a=o[0],c=o[1],l=pe(t.borderBottomRightRadius,r.width,r.height),B=l[0],d=l[1],g=pe(t.borderBottomLeftRadius,r.width,r.height),u=g[0],f=g[1],m=[];m.push((i+a)/r.width),m.push((u+B)/r.width),m.push((s+f)/r.height),m.push((c+d)/r.height);var Q=Math.max.apply(Math,m);Q>1&&(i/=Q,s/=Q,a/=Q,c/=Q,B/=Q,d/=Q,u/=Q,f/=Q);var h=r.width-a,v=r.height-d,U=r.width-B,F=r.height-f,w=t.borderTopWidth,E=t.borderRightWidth,y=t.borderBottomWidth,b=t.borderLeftWidth,D=S(t.paddingTop,A.bounds.width),_=S(t.paddingRight,A.bounds.width),W=S(t.paddingBottom,A.bounds.width),x=S(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?T(r.left+b/3,r.top+w/3,i-b/3,s-w/3,L.TOP_LEFT):new C(r.left+b/3,r.top+w/3),this.topRightBorderDoubleOuterBox=i>0||s>0?T(r.left+h,r.top+w/3,a-E/3,c-w/3,L.TOP_RIGHT):new C(r.left+r.width-E/3,r.top+w/3),this.bottomRightBorderDoubleOuterBox=B>0||d>0?T(r.left+U,r.top+v,B-E/3,d-y/3,L.BOTTOM_RIGHT):new C(r.left+r.width-E/3,r.top+r.height-y/3),this.bottomLeftBorderDoubleOuterBox=u>0||f>0?T(r.left+b/3,r.top+F,u-b/3,f-y/3,L.BOTTOM_LEFT):new C(r.left+b/3,r.top+r.height-y/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?T(r.left+b*2/3,r.top+w*2/3,i-b*2/3,s-w*2/3,L.TOP_LEFT):new C(r.left+b*2/3,r.top+w*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?T(r.left+h,r.top+w*2/3,a-E*2/3,c-w*2/3,L.TOP_RIGHT):new C(r.left+r.width-E*2/3,r.top+w*2/3),this.bottomRightBorderDoubleInnerBox=B>0||d>0?T(r.left+U,r.top+v,B-E*2/3,d-y*2/3,L.BOTTOM_RIGHT):new C(r.left+r.width-E*2/3,r.top+r.height-y*2/3),this.bottomLeftBorderDoubleInnerBox=u>0||f>0?T(r.left+b*2/3,r.top+F,u-b*2/3,f-y*2/3,L.BOTTOM_LEFT):new C(r.left+b*2/3,r.top+r.height-y*2/3),this.topLeftBorderStroke=i>0||s>0?T(r.left+b/2,r.top+w/2,i-b/2,s-w/2,L.TOP_LEFT):new C(r.left+b/2,r.top+w/2),this.topRightBorderStroke=i>0||s>0?T(r.left+h,r.top+w/2,a-E/2,c-w/2,L.TOP_RIGHT):new C(r.left+r.width-E/2,r.top+w/2),this.bottomRightBorderStroke=B>0||d>0?T(r.left+U,r.top+v,B-E/2,d-y/2,L.BOTTOM_RIGHT):new C(r.left+r.width-E/2,r.top+r.height-y/2),this.bottomLeftBorderStroke=u>0||f>0?T(r.left+b/2,r.top+F,u-b/2,f-y/2,L.BOTTOM_LEFT):new C(r.left+b/2,r.top+r.height-y/2),this.topLeftBorderBox=i>0||s>0?T(r.left,r.top,i,s,L.TOP_LEFT):new C(r.left,r.top),this.topRightBorderBox=a>0||c>0?T(r.left+h,r.top,a,c,L.TOP_RIGHT):new C(r.left+r.width,r.top),this.bottomRightBorderBox=B>0||d>0?T(r.left+U,r.top+v,B,d,L.BOTTOM_RIGHT):new C(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=u>0||f>0?T(r.left,r.top+F,u,f,L.BOTTOM_LEFT):new C(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||s>0?T(r.left+b,r.top+w,Math.max(0,i-b),Math.max(0,s-w),L.TOP_LEFT):new C(r.left+b,r.top+w),this.topRightPaddingBox=a>0||c>0?T(r.left+Math.min(h,r.width-E),r.top+w,h>r.width+E?0:Math.max(0,a-E),Math.max(0,c-w),L.TOP_RIGHT):new C(r.left+r.width-E,r.top+w),this.bottomRightPaddingBox=B>0||d>0?T(r.left+Math.min(U,r.width-b),r.top+Math.min(v,r.height-y),Math.max(0,B-E),Math.max(0,d-y),L.BOTTOM_RIGHT):new C(r.left+r.width-E,r.top+r.height-y),this.bottomLeftPaddingBox=u>0||f>0?T(r.left+b,r.top+Math.min(F,r.height-y),Math.max(0,u-b),Math.max(0,f-y),L.BOTTOM_LEFT):new C(r.left+b,r.top+r.height-y),this.topLeftContentBox=i>0||s>0?T(r.left+b+x,r.top+w+D,Math.max(0,i-(b+x)),Math.max(0,s-(w+D)),L.TOP_LEFT):new C(r.left+b+x,r.top+w+D),this.topRightContentBox=a>0||c>0?T(r.left+Math.min(h,r.width+b+x),r.top+w+D,h>r.width+b+x?0:a-b+x,c-(w+D),L.TOP_RIGHT):new C(r.left+r.width-(E+_),r.top+w+D),this.bottomRightContentBox=B>0||d>0?T(r.left+Math.min(U,r.width-(b+x)),r.top+Math.min(v,r.height+w+D),Math.max(0,B-(E+_)),d-(y+W),L.BOTTOM_RIGHT):new C(r.left+r.width-(E+_),r.top+r.height-(y+W)),this.bottomLeftContentBox=u>0||f>0?T(r.left+b+x,r.top+F,Math.max(0,u-(b+x)),f-(y+W),L.BOTTOM_LEFT):new C(r.left+b+x,r.top+r.height-(y+W))}return e})(),L;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(L||(L={}));var T=function(e,A,t,r,n){var i=4*((Math.sqrt(2)-1)/3),s=t*i,o=r*i,a=e+t,c=A+r;switch(n){case L.TOP_LEFT:return new pt(new C(e,c),new C(e,c-o),new C(a-s,A),new C(a,A));case L.TOP_RIGHT:return new pt(new C(e,A),new C(e+s,A),new C(a,c-o),new C(a,c));case L.BOTTOM_RIGHT:return new pt(new C(a,A),new C(a,A+o),new C(e+s,c),new C(e,c));case L.BOTTOM_LEFT:default:return new pt(new C(a,c),new C(a-s,c),new C(e,A+o),new C(e,A))}},Ut=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Ah=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Ft=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},eh=(function(){function e(A,t,r){this.offsetX=A,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return e})(),vt=(function(){function e(A,t){this.path=A,this.target=t,this.type=1}return e})(),th=(function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e})(),rh=function(e){return e.type===0},Rs=function(e){return e.type===1},nh=function(e){return e.type===2},qs=function(e,A){return e.length===A.length?e.some(function(t,r){return t===A[r]}):!1},ih=function(e,A,t,r,n){return e.map(function(i,s){switch(s){case 0:return i.add(A,t);case 1:return i.add(A+r,t);case 2:return i.add(A+r,t+n);case 3:return i.add(A,t+n)}return i})},Vs=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),Ns=(function(){function e(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new $u(this.container),this.container.styles.opacity<1&&this.effects.push(new th(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new eh(r,n,i))}if(this.container.styles.overflowX!==0){var s=Ut(this.curves),o=Ft(this.curves);qs(s,o)?this.effects.push(new vt(s,6)):(this.effects.push(new vt(s,2)),this.effects.push(new vt(o,4)))}}return e.prototype.getEffects=function(A){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(a){return!Rs(a)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=Ut(r.curves),o=Ft(r.curves);qs(s,o)||n.unshift(new vt(o,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(a){return q(a.target,A)})},e})(),Lr=function(e,A,t,r){e.container.elements.forEach(function(n){var i=q(n.flags,4),s=q(n.flags,2),o=new Ns(n,e);q(n.styles.display,2048)&&r.push(o);var a=q(n.flags,8)?[]:r;if(i||s){var c=i||n.styles.isPositioned()?t:A,l=new Vs(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var B=n.styles.zIndex.order;if(B<0){var d=0;c.negativeZIndex.some(function(u,f){return B>u.element.container.styles.zIndex.order?(d=f,!1):d>0}),c.negativeZIndex.splice(d,0,l)}else if(B>0){var g=0;c.positiveZIndex.some(function(u,f){return B>=u.element.container.styles.zIndex.order?(g=f+1,!1):g>0}),c.positiveZIndex.splice(g,0,l)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else n.styles.isFloating()?c.nonPositionedFloats.push(l):c.nonPositionedInlineLevel.push(l);Lr(o,l,i?l:t,a)}else n.styles.isInlineLevel()?A.inlineLevel.push(o):A.nonInlineLevel.push(o),Lr(o,A,t,a);q(n.flags,8)&&Gs(n,a)})},Gs=function(e,A){for(var t=e instanceof pr?e.start:1,r=e instanceof pr?e.reversed:!1,n=0;n<A.length;n++){var i=A[n];i.container instanceof hs&&typeof i.container.value=="number"&&i.container.value!==0&&(t=i.container.value),i.listValue=ye(t,i.container.styles.listStyleType,!0),t+=r?-1:1}},sh=function(e){var A=new Ns(e,null),t=new Vs(A),r=[];return Lr(A,t,t,r),Gs(A.container,r),t},Ps=function(e,A){switch(A){case 0:return sA(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return sA(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return sA(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return sA(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},oh=function(e,A){switch(A){case 0:return sA(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return sA(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return sA(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return sA(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},ah=function(e,A){switch(A){case 0:return sA(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return sA(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return sA(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return sA(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},ch=function(e,A){switch(A){case 0:return mt(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return mt(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return mt(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return mt(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},mt=function(e,A){var t=[];return iA(e)?t.push(e.subdivide(.5,!1)):t.push(e),iA(A)?t.push(A.subdivide(.5,!0)):t.push(A),t},sA=function(e,A,t,r){var n=[];return iA(e)?n.push(e.subdivide(.5,!1)):n.push(e),iA(t)?n.push(t.subdivide(.5,!0)):n.push(t),iA(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),iA(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},_s=function(e){var A=e.bounds,t=e.styles;return A.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},bt=function(e){var A=e.styles,t=e.bounds,r=S(A.paddingLeft,t.width),n=S(A.paddingRight,t.width),i=S(A.paddingTop,t.width),s=S(A.paddingBottom,t.width);return t.add(r+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+r+n),-(A.borderTopWidth+A.borderBottomWidth+i+s))},lh=function(e,A){return e===0?A.bounds:e===2?bt(A):_s(A)},Bh=function(e,A){return e===0?A.bounds:e===2?bt(A):_s(A)},Kr=function(e,A,t){var r=lh(re(e.styles.backgroundOrigin,A),e),n=Bh(re(e.styles.backgroundClip,A),e),i=dh(re(e.styles.backgroundSize,A),t,r),s=i[0],o=i[1],a=pe(re(e.styles.backgroundPosition,A),r.width-s,r.height-o),c=uh(re(e.styles.backgroundRepeat,A),a,i,r,n),l=Math.round(r.left+a[0]),B=Math.round(r.top+a[1]);return[c,l,B,s,o]},te=function(e){return K(e)&&e.value===zA.AUTO},yt=function(e){return typeof e=="number"},dh=function(e,A,t){var r=A[0],n=A[1],i=A[2],s=e[0],o=e[1];if(!s)return[0,0];if(O(s)&&o&&O(o))return[S(s,t.width),S(o,t.height)];var a=yt(i);if(K(s)&&(s.value===zA.CONTAIN||s.value===zA.COVER)){if(yt(i)){var c=t.width/t.height;return c<i!=(s.value===zA.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var l=yt(r),B=yt(n),d=l||B;if(te(s)&&(!o||te(o))){if(l&&B)return[r,n];if(!a&&!d)return[t.width,t.height];if(d&&a){var g=l?r:n*i,u=B?n:r/i;return[g,u]}var f=l?r:t.width,m=B?n:t.height;return[f,m]}if(a){var Q=0,h=0;return O(s)?Q=S(s,t.width):O(o)&&(h=S(o,t.height)),te(s)?Q=h*i:(!o||te(o))&&(h=Q/i),[Q,h]}var v=null,U=null;if(O(s)?v=S(s,t.width):o&&O(o)&&(U=S(o,t.height)),v!==null&&(!o||te(o))&&(U=l&&B?v/r*n:t.height),U!==null&&te(s)&&(v=l&&B?U/n*r:t.width),v!==null&&U!==null)return[v,U];throw new Error("Unable to calculate background-size for element")},re=function(e,A){var t=e[A];return typeof t>"u"?e[0]:t},uh=function(e,A,t,r,n){var i=A[0],s=A[1],o=t[0],a=t[1];switch(e){case 2:return[new C(Math.round(r.left),Math.round(r.top+s)),new C(Math.round(r.left+r.width),Math.round(r.top+s)),new C(Math.round(r.left+r.width),Math.round(a+r.top+s)),new C(Math.round(r.left),Math.round(a+r.top+s))];case 3:return[new C(Math.round(r.left+i),Math.round(r.top)),new C(Math.round(r.left+i+o),Math.round(r.top)),new C(Math.round(r.left+i+o),Math.round(r.height+r.top)),new C(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new C(Math.round(r.left+i),Math.round(r.top+s)),new C(Math.round(r.left+i+o),Math.round(r.top+s)),new C(Math.round(r.left+i+o),Math.round(r.top+s+a)),new C(Math.round(r.left+i),Math.round(r.top+s+a))];default:return[new C(Math.round(n.left),Math.round(n.top)),new C(Math.round(n.left+n.width),Math.round(n.top)),new C(Math.round(n.left+n.width),Math.round(n.height+n.top)),new C(Math.round(n.left),Math.round(n.height+n.top))]}},hh="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Xs="Hidden Text",gh=(function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),n.src=hh,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(Xs)),r.appendChild(i),r.appendChild(n);var o=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(Xs)),r.style.lineHeight="normal",n.style.verticalAlign="super";var a=n.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:o,middle:a}},e.prototype.getMetrics=function(A,t){var r=A+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,t)),this._data[r]},e})(),Js=(function(){function e(A,t){this.context=A,this.options=t}return e})(),fh=1e4,wh=(function(e){oA(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new gh(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return A.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},A.prototype.applyEffect=function(t){this.ctx.save(),nh(t)&&(this.ctx.globalAlpha=t.opacity),rh(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Rs(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(t){return z(this,void 0,void 0,function(){var r;return X(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(t){return z(this,void 0,void 0,function(){return X(this,function(r){switch(r.label){case 0:if(q(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(t,r,n){var i=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var s=Cr(t.text);s.reduce(function(o,a){return i.ctx.fillText(a,o,t.bounds.top+n),o+i.ctx.measureText(a).width},t.bounds.left)}},A.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=Fh(t.fontFamily).join(", "),i=Ce(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,i,n].join(" "),n,i]},A.prototype.renderTextNode=function(t,r){return z(this,void 0,void 0,function(){var n,i,s,o,a,c,l,B,d=this;return X(this,function(g){return n=this.createFontStyle(r),i=n[0],s=n[1],o=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(s,o),c=a.baseline,l=a.middle,B=r.paintOrder,t.textBounds.forEach(function(u){B.forEach(function(f){switch(f){case 0:d.ctx.fillStyle=V(r.color),d.renderTextWithLetterSpacing(u,r.letterSpacing,c);var m=r.textShadow;m.length&&u.text.trim().length&&(m.slice(0).reverse().forEach(function(Q){d.ctx.shadowColor=V(Q.color),d.ctx.shadowOffsetX=Q.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=Q.offsetY.number*d.options.scale,d.ctx.shadowBlur=Q.blur.number,d.renderTextWithLetterSpacing(u,r.letterSpacing,c)}),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),r.textDecorationLine.length&&(d.ctx.fillStyle=V(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(Q){switch(Q){case 1:d.ctx.fillRect(u.bounds.left,Math.round(u.bounds.top+c),u.bounds.width,1);break;case 2:d.ctx.fillRect(u.bounds.left,Math.round(u.bounds.top),u.bounds.width,1);break;case 3:d.ctx.fillRect(u.bounds.left,Math.ceil(u.bounds.top+l),u.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&u.text.trim().length&&(d.ctx.strokeStyle=V(r.webkitTextStrokeColor),d.ctx.lineWidth=r.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(u.text,u.bounds.left,u.bounds.top+c)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=bt(t),s=Ft(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(t){return z(this,void 0,void 0,function(){var r,n,i,s,o,a,h,h,c,l,B,d,U,g,u,F,f,m,Q,h,v,U,F;return X(this,function(w){switch(w.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,i=r.styles,s=0,o=r.textNodes,w.label=1;case 1:return s<o.length?(a=o[s],[4,this.renderTextNode(a,i)]):[3,4];case 2:w.sent(),w.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof Bs))return[3,8];w.label=5;case 5:return w.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return h=w.sent(),this.renderReplacedElement(r,n,h),[3,8];case 7:return w.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof ds&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof us))return[3,12];w.label=9;case 9:return w.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return h=w.sent(),this.renderReplacedElement(r,n,h),[3,12];case 11:return w.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof Qs&&r.tree?(c=new A(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,c.render(r.tree)]):[3,14];case 13:l=w.sent(),r.width&&r.height&&this.ctx.drawImage(l,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),w.label=14;case 14:if(r instanceof Ur&&(B=Math.min(r.bounds.width,r.bounds.height),r.type===ht?r.checked&&(this.ctx.save(),this.path([new C(r.bounds.left+B*.39363,r.bounds.top+B*.79),new C(r.bounds.left+B*.16,r.bounds.top+B*.5549),new C(r.bounds.left+B*.27347,r.bounds.top+B*.44071),new C(r.bounds.left+B*.39694,r.bounds.top+B*.5649),new C(r.bounds.left+B*.72983,r.bounds.top+B*.23),new C(r.bounds.left+B*.84,r.bounds.top+B*.34085),new C(r.bounds.left+B*.39363,r.bounds.top+B*.79)]),this.ctx.fillStyle=V(gs),this.ctx.fill(),this.ctx.restore()):r.type===gt&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+B/2,r.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=V(gs),this.ctx.fill(),this.ctx.restore())),Qh(r)&&r.value.length){switch(d=this.createFontStyle(i),U=d[0],g=d[1],u=this.fontMetrics.getMetrics(U,g).baseline,this.ctx.font=U,this.ctx.fillStyle=V(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=ph(r.styles.textAlign),F=bt(r),f=0,r.styles.textAlign){case 1:f+=F.width/2;break;case 2:f+=F.width;break}m=F.add(f,0,0,-F.height/2+1),this.ctx.save(),this.path([new C(F.left,F.top),new C(F.left+F.width,F.top),new C(F.left+F.width,F.top+F.height),new C(F.left,F.top+F.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new me(r.value,m),i.letterSpacing,u),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!q(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(Q=r.styles.listStyleImage,Q.type!==0)return[3,18];h=void 0,v=Q.url,w.label=15;case 15:return w.trys.push([15,17,,18]),[4,this.context.cache.match(v)];case 16:return h=w.sent(),this.ctx.drawImage(h,r.bounds.left-(h.width+10),r.bounds.top),[3,18];case 17:return w.sent(),this.context.logger.error("Error loading list-style-image "+v),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(U=this.createFontStyle(i)[0],this.ctx.font=U,this.ctx.fillStyle=V(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",F=new wA(r.bounds.left,r.bounds.top+S(r.styles.paddingTop,r.bounds.width),r.bounds.width,Xi(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new me(t.listValue,F),i.letterSpacing,Xi(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),w.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(t){return z(this,void 0,void 0,function(){var r,n,Q,i,s,Q,o,a,Q,c,l,Q,B,d,Q,g,u,Q,f,m,Q;return X(this,function(h){switch(h.label){case 0:if(q(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:h.sent(),r=0,n=t.negativeZIndex,h.label=2;case 2:return r<n.length?(Q=n[r],[4,this.renderStack(Q)]):[3,5];case 3:h.sent(),h.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:h.sent(),i=0,s=t.nonInlineLevel,h.label=7;case 7:return i<s.length?(Q=s[i],[4,this.renderNode(Q)]):[3,10];case 8:h.sent(),h.label=9;case 9:return i++,[3,7];case 10:o=0,a=t.nonPositionedFloats,h.label=11;case 11:return o<a.length?(Q=a[o],[4,this.renderStack(Q)]):[3,14];case 12:h.sent(),h.label=13;case 13:return o++,[3,11];case 14:c=0,l=t.nonPositionedInlineLevel,h.label=15;case 15:return c<l.length?(Q=l[c],[4,this.renderStack(Q)]):[3,18];case 16:h.sent(),h.label=17;case 17:return c++,[3,15];case 18:B=0,d=t.inlineLevel,h.label=19;case 19:return B<d.length?(Q=d[B],[4,this.renderNode(Q)]):[3,22];case 20:h.sent(),h.label=21;case 21:return B++,[3,19];case 22:g=0,u=t.zeroOrAutoZIndexOrTransformedOrOpacity,h.label=23;case 23:return g<u.length?(Q=u[g],[4,this.renderStack(Q)]):[3,26];case 24:h.sent(),h.label=25;case 25:return g++,[3,23];case 26:f=0,m=t.positiveZIndex,h.label=27;case 27:return f<m.length?(Q=m[f],[4,this.renderStack(Q)]):[3,30];case 28:h.sent(),h.label=29;case 29:return f++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},A.prototype.formatPath=function(t){var r=this;t.forEach(function(n,i){var s=iA(n)?n.start:n;i===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),iA(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(t,r,n,i){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},A.prototype.resizeImage=function(t,r,n){var i;if(t.width===r&&t.height===n)return t;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,o=s.createElement("canvas");o.width=Math.max(1,r),o.height=Math.max(1,n);var a=o.getContext("2d");return a.drawImage(t,0,0,t.width,t.height,0,0,r,n),o},A.prototype.renderBackgroundImage=function(t){return z(this,void 0,void 0,function(){var r,n,i,s,o,a;return X(this,function(c){switch(c.label){case 0:r=t.styles.backgroundImage.length-1,n=function(l){var B,d,g,D,Y,Z,x,R,y,u,D,Y,Z,x,R,f,m,Q,h,v,U,F,w,E,y,b,D,_,W,x,R,cA,Y,Z,UA,eA,gA,FA,vA,lA,BA,tA;return X(this,function(fA){switch(fA.label){case 0:if(l.type!==0)return[3,5];B=void 0,d=l.url,fA.label=1;case 1:return fA.trys.push([1,3,,4]),[4,i.context.cache.match(d)];case 2:return B=fA.sent(),[3,4];case 3:return fA.sent(),i.context.logger.error("Error loading background-image "+d),[3,4];case 4:return B&&(g=Kr(t,r,[B.width,B.height,B.width/B.height]),D=g[0],Y=g[1],Z=g[2],x=g[3],R=g[4],y=i.ctx.createPattern(i.resizeImage(B,x,R),"repeat"),i.renderRepeat(D,y,Y,Z)),[3,6];case 5:rB(l)?(u=Kr(t,r,[null,null,null]),D=u[0],Y=u[1],Z=u[2],x=u[3],R=u[4],f=jl(l.angle,x,R),m=f[0],Q=f[1],h=f[2],v=f[3],U=f[4],F=document.createElement("canvas"),F.width=x,F.height=R,w=F.getContext("2d"),E=w.createLinearGradient(Q,v,h,U),Di(l.stops,m).forEach(function(VA){return E.addColorStop(VA.stop,V(VA.color))}),w.fillStyle=E,w.fillRect(0,0,x,R),x>0&&R>0&&(y=i.ctx.createPattern(F,"repeat"),i.renderRepeat(D,y,Y,Z))):nB(l)&&(b=Kr(t,r,[null,null,null]),D=b[0],_=b[1],W=b[2],x=b[3],R=b[4],cA=l.position.length===0?[nr]:l.position,Y=S(cA[0],x),Z=S(cA[cA.length-1],R),UA=$l(l,Y,Z,x,R),eA=UA[0],gA=UA[1],eA>0&&gA>0&&(FA=i.ctx.createRadialGradient(_+Y,W+Z,0,_+Y,W+Z,eA),Di(l.stops,eA*2).forEach(function(VA){return FA.addColorStop(VA.stop,V(VA.color))}),i.path(D),i.ctx.fillStyle=FA,eA!==gA?(vA=t.bounds.left+.5*t.bounds.width,lA=t.bounds.top+.5*t.bounds.height,BA=gA/eA,tA=1/BA,i.ctx.save(),i.ctx.translate(vA,lA),i.ctx.transform(1,0,0,BA,0,0),i.ctx.translate(-vA,-lA),i.ctx.fillRect(_,tA*(W-lA)+lA,x,R*tA),i.ctx.restore()):i.ctx.fill())),fA.label=6;case 6:return r--,[2]}})},i=this,s=0,o=t.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(a=o[s],[5,n(a)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(t,r,n){return z(this,void 0,void 0,function(){return X(this,function(i){return this.path(Ps(n,r)),this.ctx.fillStyle=V(t),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(t,r,n,i){return z(this,void 0,void 0,function(){var s,o;return X(this,function(a){switch(a.label){case 0:return r<3?[4,this.renderSolidBorder(t,n,i)]:[3,2];case 1:return a.sent(),[2];case 2:return s=oh(i,n),this.path(s),this.ctx.fillStyle=V(t),this.ctx.fill(),o=ah(i,n),this.path(o),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(t){return z(this,void 0,void 0,function(){var r,n,i,s,o,a,c,l,B=this;return X(this,function(d){switch(d.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,n=!IA(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=Ch(re(r.backgroundClip,0),t.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),IA(r.backgroundColor)||(this.ctx.fillStyle=V(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:d.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(g){B.ctx.save();var u=Ut(t.curves),f=g.inset?0:fh,m=ih(u,-f+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(B.path(u),B.ctx.clip(),B.mask(m)):(B.mask(u),B.ctx.clip(),B.path(m)),B.ctx.shadowOffsetX=g.offsetX.number+f,B.ctx.shadowOffsetY=g.offsetY.number,B.ctx.shadowColor=V(g.color),B.ctx.shadowBlur=g.blur.number,B.ctx.fillStyle=g.inset?V(g.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),d.label=2;case 2:o=0,a=0,c=i,d.label=3;case 3:return a<c.length?(l=c[a],l.style!==0&&!IA(l.color)&&l.width>0?l.style!==2?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,2)]:[3,11]):[3,13];case 4:return d.sent(),[3,11];case 5:return l.style!==3?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,3)];case 6:return d.sent(),[3,11];case 7:return l.style!==4?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,t.curves)];case 8:return d.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,t.curves)];case 10:d.sent(),d.label=11;case 11:o++,d.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(t,r,n,i,s){return z(this,void 0,void 0,function(){var o,a,c,l,B,d,g,u,f,m,Q,h,v,U,F,w,F,w;return X(this,function(E){return this.ctx.save(),o=ch(i,n),a=Ps(i,n),s===2&&(this.path(a),this.ctx.clip()),iA(a[0])?(c=a[0].start.x,l=a[0].start.y):(c=a[0].x,l=a[0].y),iA(a[1])?(B=a[1].end.x,d=a[1].end.y):(B=a[1].x,d=a[1].y),n===0||n===2?g=Math.abs(c-B):g=Math.abs(l-d),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(a.slice(0,2)),u=r<3?r*3:r*2,f=r<3?r*2:r,s===3&&(u=r,f=r),m=!0,g<=u*2?m=!1:g<=u*2+f?(Q=g/(2*u+f),u*=Q,f*=Q):(h=Math.floor((g+f)/(u+f)),v=(g-h*u)/(h-1),U=(g-(h+1)*u)/h,f=U<=0||Math.abs(f-v)<Math.abs(f-U)?v:U),m&&(s===3?this.ctx.setLineDash([0,u+f]):this.ctx.setLineDash([u,f])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=V(t),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(iA(a[0])&&(F=a[3],w=a[0],this.ctx.beginPath(),this.formatPath([new C(F.end.x,F.end.y),new C(w.start.x,w.start.y)]),this.ctx.stroke()),iA(a[1])&&(F=a[1],w=a[2],this.ctx.beginPath(),this.formatPath([new C(F.end.x,F.end.y),new C(w.start.x,w.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(t){return z(this,void 0,void 0,function(){var r;return X(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=V(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=sh(t),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(Js),Qh=function(e){return e instanceof ws||e instanceof fs?!0:e instanceof Ur&&e.type!==gt&&e.type!==ht},Ch=function(e,A){switch(e){case 0:return Ut(A);case 2:return Ah(A);default:return Ft(A)}},ph=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},Uh=["-apple-system","system-ui"],Fh=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return Uh.indexOf(A)===-1}):e},vh=(function(e){oA(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return A.prototype.render=function(t){return z(this,void 0,void 0,function(){var r,n;return X(this,function(i){switch(i.label){case 0:return r=Qr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,mh(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=V(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A})(Js),mh=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},bh=(function(){function e(A){var t=A.id,r=A.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Te([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Te([this.id,this.getTime()+"ms"],A))},e.prototype.warn=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Te([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.error=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Te([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e})(),yh=(function(){function e(A,t){var r;this.windowBounds=t,this.instanceName="#"+e.instanceCount++,this.logger=new bh({id:this.instanceName,enabled:A.logging}),this.cache=(r=A.cache)!==null&&r!==void 0?r:new Xu(this,A)}return e.instanceCount=1,e})(),Eh=function(e,A){return A===void 0&&(A={}),Hh(e,A)};typeof window<"u"&&Os.setContext(window);var Hh=function(e,A){return z(void 0,void 0,void 0,function(){var t,r,n,i,s,o,a,c,l,B,d,g,u,f,m,Q,h,v,U,F,E,w,E,y,b,D,_,W,x,R,cA,Y,Z,UA,eA,gA,FA,vA,lA,BA;return X(this,function(tA){switch(tA.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=e.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(y=A.allowTaint)!==null&&y!==void 0?y:!1,imageTimeout:(b=A.imageTimeout)!==null&&b!==void 0?b:15e3,proxy:A.proxy,useCORS:(D=A.useCORS)!==null&&D!==void 0?D:!1},i=Mt({logging:(_=A.logging)!==null&&_!==void 0?_:!0,cache:A.cache},n),s={windowWidth:(W=A.windowWidth)!==null&&W!==void 0?W:r.innerWidth,windowHeight:(x=A.windowHeight)!==null&&x!==void 0?x:r.innerHeight,scrollX:(R=A.scrollX)!==null&&R!==void 0?R:r.pageXOffset,scrollY:(cA=A.scrollY)!==null&&cA!==void 0?cA:r.pageYOffset},o=new wA(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),a=new yh(i,o),c=(Y=A.foreignObjectRendering)!==null&&Y!==void 0?Y:!1,l={allowTaint:(Z=A.allowTaint)!==null&&Z!==void 0?Z:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:c,copyStyles:c},a.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),B=new ks(a,e,l),d=B.clonedReferenceElement,d?[4,B.toIFrame(t,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=tA.sent(),u=vr(d)||Iu(d)?ic(d.ownerDocument):De(a,d),f=u.width,m=u.height,Q=u.left,h=u.top,v=Ih(a,d,A.backgroundColor),U={canvas:A.canvas,backgroundColor:v,scale:(eA=(UA=A.scale)!==null&&UA!==void 0?UA:r.devicePixelRatio)!==null&&eA!==void 0?eA:1,x:((gA=A.x)!==null&&gA!==void 0?gA:0)+Q,y:((FA=A.y)!==null&&FA!==void 0?FA:0)+h,width:(vA=A.width)!==null&&vA!==void 0?vA:Math.ceil(f),height:(lA=A.height)!==null&&lA!==void 0?lA:Math.ceil(m)},c?(a.logger.debug("Document cloned, using foreign object rendering"),E=new vh(a,U),[4,E.render(d)]):[3,3];case 2:return F=tA.sent(),[3,5];case 3:return a.logger.debug("Document cloned, element located at "+Q+","+h+" with size "+f+"x"+m+" using computed rendering"),a.logger.debug("Starting DOM parsing"),w=ps(a,d),v===w.styles.backgroundColor&&(w.styles.backgroundColor=CA.TRANSPARENT),a.logger.debug("Starting renderer for element at "+U.x+","+U.y+" with size "+U.width+"x"+U.height),E=new wh(a,U),[4,E.render(w)];case 4:F=tA.sent(),tA.label=5;case 5:return(!((BA=A.removeContainer)!==null&&BA!==void 0)||BA)&&(ks.destroy(g)||a.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),a.logger.debug("Finished rendering"),[2,F]}})})},Ih=function(e,A,t){var r=A.ownerDocument,n=r.documentElement?Ue(e,getComputedStyle(r.documentElement).backgroundColor):CA.TRANSPARENT,i=r.body?Ue(e,getComputedStyle(r.body).backgroundColor):CA.TRANSPARENT,s=typeof t=="string"?Ue(e,t):t===null?CA.TRANSPARENT:4294967295;return A===r.documentElement?IA(n)?IA(i)?s:i:n:s};const xh=Object.freeze(Object.defineProperty({__proto__:null,default:Eh},Symbol.toStringTag,{value:"Module"}));N.AnnotationEditor=Kt,N.QaidFeedback=jr,N.captureDomScreenshot=wn,N.captureNetworkErrors=on,N.compositeAnnotations=Lt,N.createVideoRecorder=dn,N.drawShape=se,N.getSupportedMimeType=xt,N.isDomScreenshotSupported=fn,N.isVideoRecordingSupported=Bn,N.openAnnotationEditor=Un,N.rectFromPoints=ie,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
30
30
  //# sourceMappingURL=qaid.umd.cjs.map