@siteping/widget 0.9.6 → 0.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,32 @@
1
- "use strict";var SitePing=(()=>{var ke=Object.defineProperty;var rs=Object.getOwnPropertyDescriptor;var as=Object.getOwnPropertyNames;var ls=Object.prototype.hasOwnProperty;var ps=(n,e)=>{for(var t in e)ke(n,t,{get:e[t],enumerable:!0})},ds=(n,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of as(e))!ls.call(n,o)&&o!==t&&ke(n,o,{get:()=>e[o],enumerable:!(s=rs(e,o))||s.enumerable});return n};var cs=n=>ds(ke({},"__esModule",{value:!0}),n);var kn={};ps(kn,{initSiteping:()=>xn});var F,Ce,Qe;function Je(n,e){if(Qe=new Date,n.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(n.tagName.toLowerCase()==="html")return"html";let t={root:document.body,idName:o=>!0,className:o=>!0,tagName:o=>!0,attr:(o,i)=>!1,seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};F={...t,...e},Ce=us(F.root,t);let s=Y(n,"all",()=>Y(n,"two",()=>Y(n,"one",()=>Y(n,"none"))));if(s){let o=tt(st(s,n));return o.length>0&&(s=o[0]),W(s)}else throw new Error("Selector was not found.")}function us(n,e){return n.nodeType===Node.DOCUMENT_NODE?n:n===e.root?n.ownerDocument:n}function Y(n,e,t){let s=null,o=[],i=n,r=0;for(;i;){let a=new Date().getTime()-Qe.getTime();if(F.timeoutMs!==void 0&&a>F.timeoutMs)throw new Error(`Timeout: Can't find a unique selector after ${a}ms`);let p=U(hs(i))||U(...bs(i))||U(...gs(i))||U(ms(i))||[Ge()],d=fs(i);if(e=="all")d&&(p=p.concat(p.filter(we).map(u=>q(u,d))));else if(e=="two")p=p.slice(0,1),d&&(p=p.concat(p.filter(we).map(u=>q(u,d))));else if(e=="one"){let[u]=p=p.slice(0,1);d&&we(u)&&(p=[q(u,d)])}else e=="none"&&(p=[Ge()],d&&(p=[q(p[0],d)]));for(let u of p)u.level=r;if(o.push(p),o.length>=F.seedMinLength&&(s=Xe(o,t),s))break;i=i.parentElement,r++}return s||(s=Xe(o,t)),!s&&t?t():s}function Xe(n,e){let t=tt(et(n));if(t.length>F.threshold)return e?e():null;for(let s of t)if(Ze(s))return s;return null}function W(n){let e=n[0],t=e.name;for(let s=1;s<n.length;s++){let o=n[s].level||0;e.level===o-1?t=`${n[s].name} > ${t}`:t=`${n[s].name} ${t}`,e=n[s]}return t}function Ve(n){return n.map(e=>e.penalty).reduce((e,t)=>e+t,0)}function Ze(n){let e=W(n);switch(Ce.querySelectorAll(e).length){case 0:throw new Error(`Can't select any node with this selector: ${e}`);case 1:return!0;default:return!1}}function hs(n){let e=n.getAttribute("id");return e&&F.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null}function bs(n){return Array.from(n.attributes).filter(t=>F.attr(t.name,t.value)).map(t=>({name:`[${CSS.escape(t.name)}="${CSS.escape(t.value)}"]`,penalty:.5}))}function gs(n){return Array.from(n.classList).filter(F.className).map(t=>({name:"."+CSS.escape(t),penalty:1}))}function ms(n){let e=n.tagName.toLowerCase();return F.tagName(e)?{name:e,penalty:2}:null}function Ge(){return{name:"*",penalty:3}}function fs(n){let e=n.parentNode;if(!e)return null;let t=e.firstChild;if(!t)return null;let s=0;for(;t&&(t.nodeType===Node.ELEMENT_NODE&&s++,t!==n);)t=t.nextSibling;return s}function q(n,e){return{name:n.name+`:nth-child(${e})`,penalty:n.penalty+1}}function we(n){return n.name!=="html"&&!n.name.startsWith("#")}function U(...n){let e=n.filter(vs);return e.length>0?e:null}function vs(n){return n!=null}function*et(n,e=[]){if(n.length>0)for(let t of n[0])yield*et(n.slice(1,n.length),e.concat(t));else yield e}function tt(n){return[...n].sort((e,t)=>Ve(e)-Ve(t))}function*st(n,e,t={counter:0,visited:new Map}){if(n.length>2&&n.length>F.optimizedMinLength)for(let s=1;s<n.length-1;s++){if(t.counter>F.maxNumberOfTries)return;t.counter+=1;let o=[...n];o.splice(s,1);let i=W(o);if(t.visited.has(i))return;Ze(o)&&ys(o,e)&&(yield o,t.visited.set(i,!0),yield*st(o,e,t))}}function ys(n,e){return Ce.querySelector(W(n))===e}var xs=["role","aria-label","type","name","href","src","data-testid","data-id"];function ks(n){let e=5381;for(let t=0;t<n.length;t++)e=(e<<5)+e+n.charCodeAt(t)|0;return(e>>>0).toString(36)}function Ee(n){let e=n.children.length,t=0,s=n.parentElement;if(s)for(let r of s.children){if(r===n)break;r.tagName===n.tagName&&t++}let o=[];for(let r of xs){let a=n.getAttribute(r);a&&o.push(`${r}=${a}`)}let i=o.length>0?ks(o.join(",")):"0";return`${e}:${t}:${i}`}function nt(n,e){let t=e.split(":");if(t.length!==3)return 0;let[s,o,i]=t,r=Number(s),a=Number(o);if(Number.isNaN(r)||Number.isNaN(a))return 0;let p=Ee(n),[d,u,h]=p.split(":"),b=0,f=Math.abs(Number(d)-r);f===0?b+=.2:f<=2?b+=.1:f<=5&&(b+=.03);let k=Math.abs(Number(u)-a);return k===0?b+=.4:k===1?b+=.2:k<=3&&(b+=.08),h===i&&(b+=.4),b}function D(n,e){let t=e==="before"?"previousElementSibling":"nextElementSibling",s=n[t],o=3;for(;s&&o>0;){let i=s.textContent?.trim();if(i)return e==="before"?i.slice(-32):i.slice(0,32);s=s[t],o--}return""}function X(n){let e=n.previousElementSibling?.textContent?.trim().slice(0,40)??"",t=n.nextElementSibling?.textContent?.trim().slice(0,40)??"";return[e,t].filter(Boolean).join(" | ")}function ot(n){if(n.id){let s=n.id.includes("'")?`concat('${n.id.replace(/'/g,`',"'",'`)}')`:`'${n.id}'`;return`//${n.localName}[@id=${s}]`}let e=[],t=n;for(;t&&t!==document.body&&e.length<6;){let s=t.localName,o=t.parentElement;if(t.id){let r=t.id.includes("'")?`concat('${t.id.replace(/'/g,`',"'",'`)}')`:`'${t.id}'`;return e.unshift(`/${s}[@id=${r}]`),"/"+e.join("")}let i=1;if(o)for(let r of o.children){if(r===t)break;r.localName===s&&i++}e.unshift(`/${s}[${i}]`),t=o}return"/html/body"+e.join("")}function Te(n){let e=Je(n,{className:d=>!/^(css|sc|emotion|styled)-/.test(d)&&!/^[a-z]{1,3}[A-Za-z0-9]{4,8}$/.test(d),attr:d=>["data-testid","data-id","role","aria-label"].includes(d),idName:d=>!d.startsWith("radix-")&&!/^:r[0-9]+:$/.test(d),seedMinLength:3,optimizedMinLength:2}),t=ot(n),o=(n.textContent?.trim()??"").slice(0,120),i=D(n,"before"),r=D(n,"after"),a=Ee(n),p=X(n);return{cssSelector:e,xpath:t,textSnippet:o,textPrefix:i,textSuffix:r,fingerprint:a,neighborText:p,elementTag:n.tagName,elementId:n.id||void 0}}function it(n,e=document.documentElement){let t=n.x+n.width/2,s=n.y+n.height/2,o=document.elementFromPoint(t,s);if(!o||o===e)return document.body;let i=o;for(;i&&i!==document.body;){let r=i.getBoundingClientRect();if(r.left<=n.x&&r.top<=n.y&&r.right>=n.x+n.width&&r.bottom>=n.y+n.height)return i;i=i.parentElement}return document.body}function rt(n,e){return e.width<=0||e.height<=0?{xPct:0,yPct:0,wPct:1,hPct:1}:{xPct:(n.x-e.x)/e.width,yPct:(n.y-e.y)/e.height,wPct:n.width/e.width,hPct:n.height/e.height}}function v(n){let s=document.createRange().createContextualFragment(n).firstElementChild;if(!s||s.nodeName.toLowerCase()!=="svg")throw new Error("[siteping] Invalid SVG string");for(let o of[...s.attributes])o.name.startsWith("on")&&s.removeAttribute(o.name);for(let o of s.querySelectorAll("*"))for(let i of[...o.attributes])i.name.startsWith("on")&&o.removeAttribute(i.name);return s}function l(n,e){let t=document.createElement(n);if(e)for(let[s,o]of Object.entries(e))s==="class"?t.className=o:s==="style"?t.style.cssText=o:t.setAttribute(s,o);return t}function c(n,e){n.textContent=e}function V(n,e="en"){let t=Date.now()-new Date(n).getTime(),s=Math.floor(t/1e3);if(s<60)return new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"second");let o=new Intl.RelativeTimeFormat(e,{numeric:"always",style:"narrow"}),i=Math.floor(s/60);if(i<60)return o.format(-i,"minute");let r=Math.floor(i/60);if(r<24)return o.format(-r,"hour");let a=Math.floor(r/24);return a<7?o.format(-a,"day"):new Date(n).toLocaleDateString(e)}var Se='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><circle cx="12" cy="10" r="1" fill="currentColor" stroke="none"/><circle cx="8" cy="10" r="1" fill="currentColor" stroke="none"/><circle cx="16" cy="10" r="1" fill="currentColor" stroke="none"/></svg>',at='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>',lt='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18"/><path d="M9 3v18"/></svg>',Ae='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',Le='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/><path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/><line x1="1" y1="1" x2="23" y2="23"/></svg>',G='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',pt='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>',Q='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>',J='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>',Z='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>',ee='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="8" y="6" width="8" height="14" rx="4"/><path d="M19 9h2"/><path d="M3 9h2"/><path d="M19 13h2"/><path d="M3 13h2"/><path d="M19 17h2"/><path d="M3 17h2"/><path d="M10 2h4"/></svg>',te='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',Me='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/></svg>',dt='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="3" fill="currentColor" stroke="none"/></svg>',ct='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>',ut='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>',Be='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/></svg>';var bt="#0066ff",ws=/^#[0-9a-fA-F]{6}$/,ht=/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,Cs=/^#[0-9a-fA-F]{8}$/;function Es(n){if(ws.test(n))return n;let e=ht.test(n)?n.match(ht):null;return e?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:Cs.test(n)?n.slice(0,7):(console.warn(`[siteping] Invalid accentColor "${n}" \u2014 only hex colors (#RGB, #RRGGBB, #RRGGBBAA) are supported. Using default.`),bt)}function Ts(n,e){let t=Math.max(0,Math.round(parseInt(n.slice(1,3),16)*(1-e))),s=Math.max(0,Math.round(parseInt(n.slice(3,5),16)*(1-e))),o=Math.max(0,Math.round(parseInt(n.slice(5,7),16)*(1-e)));return`#${t.toString(16).padStart(2,"0")}${s.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`}function Ss(){return typeof window>"u"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}function As(n){return n==="dark"||n==="auto"&&Ss()?"dark":"light"}function gt(n=bt,e){let t=Es(n),s=Ts(t,.15);return As(e)==="dark"?{accent:t,accentLight:t+"22",accentDark:s,accentGlow:t+"44",accentGradient:`linear-gradient(135deg, ${t}, ${s})`,bg:"#0f172a",bgHover:"#1e293b",text:"#f1f5f9",textSecondary:"#94a3b8",textTertiary:"#64748b",border:"#334155",shadow:"rgba(0, 0, 0, 0.3)",glassBg:"rgba(15, 23, 42, 0.78)",glassBgHeavy:"rgba(15, 23, 42, 0.88)",glassBorder:"rgba(51, 65, 85, 0.5)",glassBorderSubtle:"rgba(51, 65, 85, 0.3)",typeQuestion:"#60a5fa",typeChange:"#fbbf24",typeBug:"#f87171",typeOther:"#94a3b8",typeQuestionBg:"rgba(59, 130, 246, 0.15)",typeChangeBg:"rgba(245, 158, 11, 0.15)",typeBugBg:"rgba(239, 68, 68, 0.15)",typeOtherBg:"rgba(100, 116, 139, 0.15)",statusOpen:"#4ade80",statusOpenBg:"rgba(74, 222, 128, 0.15)",statusResolved:"#94a3b8",statusResolvedBg:"rgba(148, 163, 184, 0.15)"}:{accent:t,accentLight:t+"14",accentDark:s,accentGlow:t+"33",accentGradient:`linear-gradient(135deg, ${t}, ${s})`,bg:"#ffffff",bgHover:"#f8f9fb",text:"#0f172a",textSecondary:"#475569",textTertiary:"#64748b",border:"#e2e8f0",shadow:"rgba(0, 0, 0, 0.06)",glassBg:"rgba(255, 255, 255, 0.72)",glassBgHeavy:"rgba(255, 255, 255, 0.85)",glassBorder:"rgba(255, 255, 255, 0.35)",glassBorderSubtle:"rgba(255, 255, 255, 0.18)",typeQuestion:"#3b82f6",typeChange:"#b45309",typeBug:"#ef4444",typeOther:"#64748b",typeQuestionBg:"#eff6ff",typeChangeBg:"#fffbeb",typeBugBg:"#fef2f2",typeOtherBg:"#f8fafc",statusOpen:"#16a34a",statusOpenBg:"#f0fdf4",statusResolved:"#64748b",statusResolvedBg:"#f1f5f9"}}function M(n,e){switch(n){case"question":return e.typeQuestion;case"change":return e.typeChange;case"bug":return e.typeBug;default:return e.typeOther}}function P(n,e){switch(n){case"question":return e.typeQuestionBg;case"change":return e.typeChangeBg;case"bug":return e.typeBugBg;default:return e.typeOtherBg}}function mt(n){return`
2
- --sp-accent: ${n.accent};
3
- --sp-accent-light: ${n.accentLight};
4
- --sp-accent-dark: ${n.accentDark};
5
- --sp-accent-glow: ${n.accentGlow};
6
- --sp-accent-gradient: ${n.accentGradient};
7
- --sp-bg: ${n.bg};
8
- --sp-bg-hover: ${n.bgHover};
9
- --sp-text: ${n.text};
10
- --sp-text-secondary: ${n.textSecondary};
11
- --sp-text-tertiary: ${n.textTertiary};
12
- --sp-border: ${n.border};
13
- --sp-shadow: ${n.shadow};
14
- --sp-glass-bg: ${n.glassBg};
15
- --sp-glass-bg-heavy: ${n.glassBgHeavy};
16
- --sp-glass-border: ${n.glassBorder};
17
- --sp-glass-border-subtle: ${n.glassBorderSubtle};
18
- --sp-type-question: ${n.typeQuestion};
19
- --sp-type-change: ${n.typeChange};
20
- --sp-type-bug: ${n.typeBug};
21
- --sp-type-other: ${n.typeOther};
22
- --sp-type-question-bg: ${n.typeQuestionBg};
23
- --sp-type-change-bg: ${n.typeChangeBg};
24
- --sp-type-bug-bg: ${n.typeBugBg};
25
- --sp-type-other-bg: ${n.typeOtherBg};
1
+ "use strict";var SitePing=(()=>{var wu=Object.create;var Jt=Object.defineProperty;var Cu=Object.getOwnPropertyDescriptor;var mu=Object.getOwnPropertyNames;var bu=Object.getPrototypeOf,vu=Object.prototype.hasOwnProperty;var Qu=(l,s)=>()=>(s||l((s={exports:{}}).exports,s),s.exports),Fu=(l,s)=>{for(var i in s)Jt(l,i,{get:s[i],enumerable:!0})},Ji=(l,s,i,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let c of mu(s))!vu.call(l,c)&&c!==i&&Jt(l,c,{get:()=>s[c],enumerable:!(o=Cu(s,c))||o.enumerable});return l};var yu=(l,s,i)=>(i=l!=null?wu(bu(l)):{},Ji(s||!l||!l.__esModule?Jt(i,"default",{value:l,enumerable:!0}):i,l)),Uu=l=>Ji(Jt({},"__esModule",{value:!0}),l);var Co=Qu((Hs,Is)=>{"use strict";(function(l,s){typeof Hs=="object"&&typeof Is<"u"?Is.exports=s():typeof define=="function"&&define.amd?define(s):(l=typeof globalThis<"u"?globalThis:l||self,l.html2canvas=s())})(Hs,(function(){"use strict";var l=function(e,A){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},l(e,A)};function s(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");l(e,A);function r(){this.constructor=e}e.prototype=A===null?Object.create(A):(r.prototype=A.prototype,new r)}var i=function(){return i=Object.assign||function(A){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(A[a]=r[a])}return A},i.apply(this,arguments)};function o(e,A,r,t){function n(a){return a instanceof r?a:new r(function(p){p(a)})}return new(r||(r=Promise))(function(a,p){function B(w){try{g(t.next(w))}catch(m){p(m)}}function u(w){try{g(t.throw(w))}catch(m){p(m)}}function g(w){w.done?a(w.value):n(w.value).then(B,u)}g((t=t.apply(e,A||[])).next())})}function c(e,A){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,n,a,p;return p={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function B(g){return function(w){return u([g,w])}}function u(g){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,n&&(a=g[0]&2?n.return:g[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,g[1])).done)return a;switch(n=0,a&&(g=[g[0]&2,a.value]),g[0]){case 0:case 1:a=g;break;case 4:return r.label++,{value:g[1],done:!1};case 5:r.label++,n=g[1],g=[0];continue;case 7:g=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(g[0]===6||g[0]===2)){r=0;continue}if(g[0]===3&&(!a||g[1]>a[0]&&g[1]<a[3])){r.label=g[1];break}if(g[0]===6&&r.label<a[1]){r.label=a[1],a=g;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(g);break}a[2]&&r.ops.pop(),r.trys.pop();continue}g=A.call(e,r)}catch(w){g=[6,w],n=0}finally{t=a=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}}function d(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||A)}for(var h=(function(){function e(A,r,t,n){this.left=A,this.top=r,this.width=t,this.height=n}return e.prototype.add=function(A,r,t,n){return new e(this.left+A,this.top+r,this.width+t,this.height+n)},e.fromClientRect=function(A,r){return new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(A,r){var t=Array.from(r).find(function(n){return n.width!==0});return t?new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),f=function(e,A){return h.fromClientRect(e,A.getBoundingClientRect())},C=function(e){var A=e.body,r=e.documentElement;if(!A||!r)throw new Error("Unable to get document size");var t=Math.max(Math.max(A.scrollWidth,r.scrollWidth),Math.max(A.offsetWidth,r.offsetWidth),Math.max(A.clientWidth,r.clientWidth)),n=Math.max(Math.max(A.scrollHeight,r.scrollHeight),Math.max(A.offsetHeight,r.offsetHeight),Math.max(A.clientHeight,r.clientHeight));return new h(0,0,t,n)},Q=function(e){for(var A=[],r=0,t=e.length;r<t;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=e.charCodeAt(r++);(a&64512)===56320?A.push(((n&1023)<<10)+(a&1023)+65536):(A.push(n),r--)}else A.push(n)}return A},v=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var p=e[n];p<=65535?t.push(p):(p-=65536,t.push((p>>10)+55296,p%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T=typeof Uint8Array>"u"?[]:new Uint8Array(256),O=0;O<y.length;O++)T[y.charCodeAt(O)]=O;for(var G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",X=typeof Uint8Array>"u"?[]:new Uint8Array(256),j=0;j<G.length;j++)X[G.charCodeAt(j)]=j;for(var q=function(e){var A=e.length*.75,r=e.length,t,n=0,a,p,B,u;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),w=Array.isArray(g)?g:new Uint8Array(g);for(t=0;t<r;t+=4)a=X[e.charCodeAt(t)],p=X[e.charCodeAt(t+1)],B=X[e.charCodeAt(t+2)],u=X[e.charCodeAt(t+3)],w[n++]=a<<2|p>>4,w[n++]=(p&15)<<4|B>>2,w[n++]=(B&3)<<6|u&63;return g},CA=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},M=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},R=5,V=11,sA=2,aA=V-R,iA=65536>>R,D=1<<R,uA=D-1,BA=1024>>R,VA=iA+BA,Ee=VA,XA=32,Ur=Ee+XA,He=65536>>V,xr=1<<aA,MA=xr-1,Js=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},aa=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},la=function(e,A){var r=q(e),t=Array.isArray(r)?M(r):new Uint32Array(r),n=Array.isArray(r)?CA(r):new Uint16Array(r),a=24,p=Js(n,a/2,t[4]/2),B=t[5]===2?Js(n,(a+t[4])/2):aa(t,Math.ceil((a+t[4])/4));return new ca(t[0],t[1],t[2],t[3],p,B)},ca=(function(){function e(A,r,t,n,a,p){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=p}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>R],r=(r<<sA)+(A&uA),this.data[r];if(A<=65535)return r=this.index[iA+(A-55296>>R)],r=(r<<sA)+(A&uA),this.data[r];if(A<this.highStart)return r=Ur-He+(A>>V),r=this.index[r],r+=A>>R&MA,r=this.index[r],r=(r<<sA)+(A&uA),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),Ws="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pa=typeof Uint8Array>"u"?[]:new Uint8Array(256),nt=0;nt<Ws.length;nt++)pa[Ws.charCodeAt(nt)]=nt;var da="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1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csBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHf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UIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AH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AwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMA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4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgA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HgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQA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eAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4A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AlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",js=50,ua=1,$s=2,Zs=3,Ba=4,ha=5,zs=7,qs=8,An=9,YA=10,Er=11,en=12,Hr=13,ga=14,Ie=15,Ir=16,it=17,ke=18,fa=19,tn=20,kr=21,Le=22,Lr=23,ue=24,FA=25,Se=26,Te=27,Be=28,wa=29,se=30,Ca=31,ot=32,at=33,Sr=34,Tr=35,Kr=36,Ke=37,Dr=38,lt=39,ct=40,Mr=41,rn=42,ma=43,ba=[9001,65288],sn="!",W="\xD7",pt="\xF7",Rr=la(da),RA=[se,Kr],Or=[ua,$s,Zs,ha],nn=[YA,qs],on=[Te,Se],va=Or.concat(nn),an=[Dr,lt,ct,Sr,Tr],Qa=[Ie,Hr],Fa=function(e,A){A===void 0&&(A="strict");var r=[],t=[],n=[];return e.forEach(function(a,p){var B=Rr.get(a);if(B>js?(n.push(!0),B-=js):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(p),r.push(Ir);if(B===Ba||B===Er){if(p===0)return t.push(p),r.push(se);var u=r[p-1];return va.indexOf(u)===-1?(t.push(t[p-1]),r.push(u)):(t.push(p),r.push(se))}if(t.push(p),B===Ca)return r.push(A==="strict"?kr:Ke);if(B===rn||B===wa)return r.push(se);if(B===ma)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(Ke):r.push(se);r.push(B)}),[t,r,n]},Nr=function(e,A,r,t){var n=t[r];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var a=r;a<=t.length;){a++;var p=t[a];if(p===A)return!0;if(p!==YA)break}if(n===YA)for(var a=r;a>0;){a--;var B=t[a];if(Array.isArray(e)?e.indexOf(B)!==-1:e===B)for(var u=r;u<=t.length;){u++;var p=t[u];if(p===A)return!0;if(p!==YA)break}if(B!==YA)break}return!1},ln=function(e,A){for(var r=e;r>=0;){var t=A[r];if(t===YA)r--;else return t}return 0},ya=function(e,A,r,t,n){if(r[t]===0)return W;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return W;var p=a-1,B=a+1,u=A[a],g=p>=0?A[p]:0,w=A[B];if(u===$s&&w===Zs)return W;if(Or.indexOf(u)!==-1)return sn;if(Or.indexOf(w)!==-1||nn.indexOf(w)!==-1)return W;if(ln(a,A)===qs)return pt;if(Rr.get(e[a])===Er||(u===ot||u===at)&&Rr.get(e[B])===Er||u===zs||w===zs||u===An||[YA,Hr,Ie].indexOf(u)===-1&&w===An||[it,ke,fa,ue,Be].indexOf(w)!==-1||ln(a,A)===Le||Nr(Lr,Le,a,A)||Nr([it,ke],kr,a,A)||Nr(en,en,a,A))return W;if(u===YA)return pt;if(u===Lr||w===Lr)return W;if(w===Ir||u===Ir)return pt;if([Hr,Ie,kr].indexOf(w)!==-1||u===ga||g===Kr&&Qa.indexOf(u)!==-1||u===Be&&w===Kr||w===tn||RA.indexOf(w)!==-1&&u===FA||RA.indexOf(u)!==-1&&w===FA||u===Te&&[Ke,ot,at].indexOf(w)!==-1||[Ke,ot,at].indexOf(u)!==-1&&w===Se||RA.indexOf(u)!==-1&&on.indexOf(w)!==-1||on.indexOf(u)!==-1&&RA.indexOf(w)!==-1||[Te,Se].indexOf(u)!==-1&&(w===FA||[Le,Ie].indexOf(w)!==-1&&A[B+1]===FA)||[Le,Ie].indexOf(u)!==-1&&w===FA||u===FA&&[FA,Be,ue].indexOf(w)!==-1)return W;if([FA,Be,ue,it,ke].indexOf(w)!==-1)for(var m=a;m>=0;){var F=A[m];if(F===FA)return W;if([Be,ue].indexOf(F)!==-1)m--;else break}if([Te,Se].indexOf(w)!==-1)for(var m=[it,ke].indexOf(u)!==-1?p:a;m>=0;){var F=A[m];if(F===FA)return W;if([Be,ue].indexOf(F)!==-1)m--;else break}if(Dr===u&&[Dr,lt,Sr,Tr].indexOf(w)!==-1||[lt,Sr].indexOf(u)!==-1&&[lt,ct].indexOf(w)!==-1||[ct,Tr].indexOf(u)!==-1&&w===ct||an.indexOf(u)!==-1&&[tn,Se].indexOf(w)!==-1||an.indexOf(w)!==-1&&u===Te||RA.indexOf(u)!==-1&&RA.indexOf(w)!==-1||u===ue&&RA.indexOf(w)!==-1||RA.concat(FA).indexOf(u)!==-1&&w===Le&&ba.indexOf(e[B])===-1||RA.concat(FA).indexOf(w)!==-1&&u===ke)return W;if(u===Mr&&w===Mr){for(var k=r[a],x=1;k>0&&(k--,A[k]===Mr);)x++;if(x%2!==0)return W}return u===ot&&w===at?W:pt},Ua=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var r=Fa(e,A.lineBreak),t=r[0],n=r[1],a=r[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(B){return[FA,se,rn].indexOf(B)!==-1?Ke:B}));var p=A.wordBreak==="keep-all"?a.map(function(B,u){return B&&e[u]>=19968&&e[u]<=40959}):void 0;return[t,n,p]},xa=(function(){function e(A,r,t,n){this.codePoints=A,this.required=r===sn,this.start=t,this.end=n}return e.prototype.slice=function(){return v.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),Ea=function(e,A){var r=Q(e),t=Ua(r,A),n=t[0],a=t[1],p=t[2],B=r.length,u=0,g=0;return{next:function(){if(g>=B)return{done:!0,value:null};for(var w=W;g<B&&(w=ya(r,a,n,++g,p))===W;);if(w!==W||g===B){var m=new xa(r,w,u,g);return u=g,{value:m,done:!1}}return{done:!0,value:null}}}},Ha=1,Ia=2,De=4,cn=8,dt=10,pn=47,Me=92,ka=9,La=32,ut=34,Re=61,Sa=35,Ta=36,Ka=37,Bt=39,ht=40,Oe=41,Da=95,mA=45,Ma=33,Ra=60,Oa=62,Na=64,Pa=91,_a=93,Ga=61,Va=123,gt=63,Xa=125,dn=124,Ya=126,Ja=128,un=65533,Pr=42,ne=43,Wa=44,ja=58,$a=59,Ne=46,Za=0,za=8,qa=11,Al=14,el=31,tl=127,SA=-1,Bn=48,hn=97,gn=101,rl=102,sl=117,nl=122,fn=65,wn=69,Cn=70,il=85,ol=90,wA=function(e){return e>=Bn&&e<=57},al=function(e){return e>=55296&&e<=57343},he=function(e){return wA(e)||e>=fn&&e<=Cn||e>=hn&&e<=rl},ll=function(e){return e>=hn&&e<=nl},cl=function(e){return e>=fn&&e<=ol},pl=function(e){return ll(e)||cl(e)},dl=function(e){return e>=Ja},ft=function(e){return e===dt||e===ka||e===La},wt=function(e){return pl(e)||dl(e)||e===Da},mn=function(e){return wt(e)||wA(e)||e===mA},ul=function(e){return e>=Za&&e<=za||e===qa||e>=Al&&e<=el||e===tl},JA=function(e,A){return e!==Me?!1:A!==dt},Ct=function(e,A,r){return e===mA?wt(A)||JA(A,r):wt(e)?!0:!!(e===Me&&JA(e,A))},_r=function(e,A,r){return e===ne||e===mA?wA(A)?!0:A===Ne&&wA(r):wA(e===Ne?A:e)},Bl=function(e){var A=0,r=1;(e[A]===ne||e[A]===mA)&&(e[A]===mA&&(r=-1),A++);for(var t=[];wA(e[A]);)t.push(e[A++]);var n=t.length?parseInt(v.apply(void 0,t),10):0;e[A]===Ne&&A++;for(var a=[];wA(e[A]);)a.push(e[A++]);var p=a.length,B=p?parseInt(v.apply(void 0,a),10):0;(e[A]===wn||e[A]===gn)&&A++;var u=1;(e[A]===ne||e[A]===mA)&&(e[A]===mA&&(u=-1),A++);for(var g=[];wA(e[A]);)g.push(e[A++]);var w=g.length?parseInt(v.apply(void 0,g),10):0;return r*(n+B*Math.pow(10,-p))*Math.pow(10,u*w)},hl={type:2},gl={type:3},fl={type:4},wl={type:13},Cl={type:8},ml={type:21},bl={type:9},vl={type:10},Ql={type:11},Fl={type:12},yl={type:14},mt={type:23},Ul={type:1},xl={type:25},El={type:24},Hl={type:26},Il={type:27},kl={type:28},Ll={type:29},Sl={type:31},Gr={type:32},bn=(function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(Q(A))},e.prototype.read=function(){for(var A=[],r=this.consumeToken();r!==Gr;)A.push(r),r=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case ut:return this.consumeStringToken(ut);case Sa:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(mn(r)||JA(t,n)){var a=Ct(r,t,n)?Ia:Ha,p=this.consumeName();return{type:5,value:p,flags:a}}break;case Ta:if(this.peekCodePoint(0)===Re)return this.consumeCodePoint(),wl;break;case Bt:return this.consumeStringToken(Bt);case ht:return hl;case Oe:return gl;case Pr:if(this.peekCodePoint(0)===Re)return this.consumeCodePoint(),yl;break;case ne:if(_r(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Wa:return fl;case mA:var B=A,u=this.peekCodePoint(0),g=this.peekCodePoint(1);if(_r(B,u,g))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Ct(B,u,g))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(u===mA&&g===Oa)return this.consumeCodePoint(),this.consumeCodePoint(),El;break;case Ne:if(_r(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case pn:if(this.peekCodePoint(0)===Pr)for(this.consumeCodePoint();;){var w=this.consumeCodePoint();if(w===Pr&&(w=this.consumeCodePoint(),w===pn))return this.consumeToken();if(w===SA)return this.consumeToken()}break;case ja:return Hl;case $a:return Il;case Ra:if(this.peekCodePoint(0)===Ma&&this.peekCodePoint(1)===mA&&this.peekCodePoint(2)===mA)return this.consumeCodePoint(),this.consumeCodePoint(),xl;break;case Na:var m=this.peekCodePoint(0),F=this.peekCodePoint(1),k=this.peekCodePoint(2);if(Ct(m,F,k)){var p=this.consumeName();return{type:7,value:p}}break;case Pa:return kl;case Me:if(JA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case _a:return Ll;case Ga:if(this.peekCodePoint(0)===Re)return this.consumeCodePoint(),Cl;break;case Va:return Ql;case Xa:return Fl;case sl:case il:var x=this.peekCodePoint(0),E=this.peekCodePoint(1);return x===ne&&(he(E)||E===gt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case dn:if(this.peekCodePoint(0)===Re)return this.consumeCodePoint(),bl;if(this.peekCodePoint(0)===dn)return this.consumeCodePoint(),ml;break;case Ya:if(this.peekCodePoint(0)===Re)return this.consumeCodePoint(),vl;break;case SA:return Gr}return ft(A)?(this.consumeWhiteSpace(),Sl):wA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):wt(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:v(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=[],r=this.consumeCodePoint();he(r)&&A.length<6;)A.push(r),r=this.consumeCodePoint();for(var t=!1;r===gt&&A.length<6;)A.push(r),r=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(v.apply(void 0,A.map(function(u){return u===gt?Bn:u})),16),a=parseInt(v.apply(void 0,A.map(function(u){return u===gt?Cn:u})),16);return{type:30,start:n,end:a}}var p=parseInt(v.apply(void 0,A),16);if(this.peekCodePoint(0)===mA&&he(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var B=[];he(r)&&B.length<6;)B.push(r),r=this.consumeCodePoint();var a=parseInt(v.apply(void 0,B),16);return{type:30,start:p,end:a}}else return{type:30,start:p,end:p}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===ht?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ht?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===SA)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Bt||r===ut){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===SA||this.peekCodePoint(0)===Oe)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),mt)}for(;;){var n=this.consumeCodePoint();if(n===SA||n===Oe)return{type:22,value:v.apply(void 0,A)};if(ft(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===SA||this.peekCodePoint(0)===Oe?(this.consumeCodePoint(),{type:22,value:v.apply(void 0,A)}):(this.consumeBadUrlRemnants(),mt);if(n===ut||n===Bt||n===ht||ul(n))return this.consumeBadUrlRemnants(),mt;if(n===Me)if(JA(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),mt;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;ft(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Oe||A===SA)return;JA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var r=5e4,t="";A>0;){var n=Math.min(r,A);t+=v.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(A){var r="",t=0;do{var n=this._value[t];if(n===SA||n===void 0||n===A)return r+=this.consumeStringSlice(t),{type:0,value:r};if(n===dt)return this._value.splice(0,t),Ul;if(n===Me){var a=this._value[t+1];a!==SA&&a!==void 0&&(a===dt?(r+=this.consumeStringSlice(t),t=-1,this._value.shift()):JA(n,a)&&(r+=this.consumeStringSlice(t),r+=v(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},e.prototype.consumeNumber=function(){var A=[],r=De,t=this.peekCodePoint(0);for((t===ne||t===mA)&&A.push(this.consumeCodePoint());wA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===Ne&&wA(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=cn;wA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===wn||t===gn)&&((n===ne||n===mA)&&wA(a)||wA(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=cn;wA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[Bl(A),r]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),r=A[0],t=A[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),p=this.peekCodePoint(2);if(Ct(n,a,p)){var B=this.consumeName();return{type:15,number:r,flags:t,unit:B}}return n===Ka?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(he(A)){for(var r=v(A);he(this.peekCodePoint(0))&&r.length<6;)r+=v(this.consumeCodePoint());ft(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||al(t)||t>1114111?un:t}return A===SA?un:A},e.prototype.consumeName=function(){for(var A="";;){var r=this.consumeCodePoint();if(mn(r))A+=v(r);else if(JA(r,this.peekCodePoint(0)))A+=v(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),A}},e})(),vn=(function(){function e(A){this._tokens=A}return e.create=function(A){var r=new bn;return r.write(A),new e(r.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 r=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var r=this.consumeComponentValue();if(r.type===32)return A;A.push(r),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 r={type:A,values:[]},t=this.consumeToken();;){if(t.type===32||Kl(t,A))return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue()),t=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var r={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?Gr:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e})(),Pe=function(e){return e.type===15},ge=function(e){return e.type===17},eA=function(e){return e.type===20},Tl=function(e){return e.type===0},Vr=function(e,A){return eA(e)&&e.value===A},Qn=function(e){return e.type!==31},fe=function(e){return e.type!==31&&e.type!==4},TA=function(e){var A=[],r=[];return e.forEach(function(t){if(t.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(r),r=[];return}t.type!==31&&r.push(t)}),r.length&&A.push(r),A},Kl=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},WA=function(e){return e.type===17||e.type===15},lA=function(e){return e.type===16||WA(e)},Fn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},hA={type:17,number:0,flags:De},Xr={type:16,number:50,flags:De},jA={type:16,number:100,flags:De},_e=function(e,A,r){var t=e[0],n=e[1];return[rA(t,A),rA(typeof n<"u"?n:t,r)]},rA=function(e,A){if(e.type===16)return e.number/100*A;if(Pe(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},yn="deg",Un="grad",xn="rad",En="turn",bt={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case yn:return Math.PI*A.number/180;case Un:return Math.PI/200*A.number;case xn:return A.number;case En:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Hn=function(e){return e.type===15&&(e.unit===yn||e.unit===Un||e.unit===xn||e.unit===En)},In=function(e){var A=e.filter(eA).map(function(r){return r.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[hA,hA];case"to top":case"bottom":return xA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[hA,jA];case"to right":case"left":return xA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[jA,jA];case"to bottom":case"top":return xA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[jA,hA];case"to left":case"right":return xA(270)}return 0},xA=function(e){return Math.PI*e/180},$A={name:"color",parse:function(e,A){if(A.type===18){var r=Dl[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return r(e,A.values)}if(A.type===5){if(A.value.length===3){var t=A.value.substring(0,1),n=A.value.substring(1,2),a=A.value.substring(2,3);return zA(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),1)}if(A.value.length===4){var t=A.value.substring(0,1),n=A.value.substring(1,2),a=A.value.substring(2,3),p=A.value.substring(3,4);return zA(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(p+p,16)/255)}if(A.value.length===6){var t=A.value.substring(0,2),n=A.value.substring(2,4),a=A.value.substring(4,6);return zA(parseInt(t,16),parseInt(n,16),parseInt(a,16),1)}if(A.value.length===8){var t=A.value.substring(0,2),n=A.value.substring(2,4),a=A.value.substring(4,6),p=A.value.substring(6,8);return zA(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(p,16)/255)}}if(A.type===20){var B=OA[A.value.toUpperCase()];if(typeof B<"u")return B}return OA.TRANSPARENT}},ZA=function(e){return(255&e)===0},dA=function(e){var A=255&e,r=255&e>>8,t=255&e>>16,n=255&e>>24;return A<255?"rgba("+n+","+t+","+r+","+A/255+")":"rgb("+n+","+t+","+r+")"},zA=function(e,A,r,t){return(e<<24|A<<16|r<<8|Math.round(t*255)<<0)>>>0},kn=function(e,A){if(e.type===17)return e.number;if(e.type===16){var r=A===3?1:255;return A===3?e.number/100*r:Math.round(e.number/100*r)}return 0},Ln=function(e,A){var r=A.filter(fe);if(r.length===3){var t=r.map(kn),n=t[0],a=t[1],p=t[2];return zA(n,a,p,1)}if(r.length===4){var B=r.map(kn),n=B[0],a=B[1],p=B[2],u=B[3];return zA(n,a,p,u)}return 0};function Yr(e,A,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(A-e)*r*6+e:r<1/2?A:r<2/3?(A-e)*6*(2/3-r)+e:e}var Sn=function(e,A){var r=A.filter(fe),t=r[0],n=r[1],a=r[2],p=r[3],B=(t.type===17?xA(t.number):bt.parse(e,t))/(Math.PI*2),u=lA(n)?n.number/100:0,g=lA(a)?a.number/100:0,w=typeof p<"u"&&lA(p)?rA(p,1):1;if(u===0)return zA(g*255,g*255,g*255,1);var m=g<=.5?g*(u+1):g+u-g*u,F=g*2-m,k=Yr(F,m,B+1/3),x=Yr(F,m,B),E=Yr(F,m,B-1/3);return zA(k*255,x*255,E*255,w)},Dl={hsl:Sn,hsla:Sn,rgb:Ln,rgba:Ln},Ge=function(e,A){return $A.parse(e,vn.create(A).parseComponentValue())},OA={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},Ml={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(eA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Rl={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},vt=function(e,A){var r=$A.parse(e,A[0]),t=A[1];return t&&lA(t)?{color:r,stop:t}:{color:r,stop:null}},Tn=function(e,A){var r=e[0],t=e[e.length-1];r.stop===null&&(r.stop=hA),t.stop===null&&(t.stop=jA);for(var n=[],a=0,p=0;p<e.length;p++){var B=e[p].stop;if(B!==null){var u=rA(B,A);u>a?n.push(u):n.push(a),a=u}else n.push(null)}for(var g=null,p=0;p<n.length;p++){var w=n[p];if(w===null)g===null&&(g=p);else if(g!==null){for(var m=p-g,F=n[g-1],k=(w-F)/(m+1),x=1;x<=m;x++)n[g+x-1]=k*x;g=null}}return e.map(function(E,Y){var K=E.color;return{color:K,stop:Math.max(Math.min(1,n[Y]/A),0)}})},Ol=function(e,A,r){var t=A/2,n=r/2,a=rA(e[0],A)-t,p=n-rA(e[1],r);return(Math.atan2(p,a)+Math.PI*2)%(Math.PI*2)},Nl=function(e,A,r){var t=typeof e=="number"?e:Ol(e,A,r),n=Math.abs(A*Math.sin(t))+Math.abs(r*Math.cos(t)),a=A/2,p=r/2,B=n/2,u=Math.sin(t-Math.PI/2)*B,g=Math.cos(t-Math.PI/2)*B;return[n,a-g,a+g,p-u,p+u]},LA=function(e,A){return Math.sqrt(e*e+A*A)},Kn=function(e,A,r,t,n){var a=[[0,0],[0,A],[e,0],[e,A]];return a.reduce(function(p,B){var u=B[0],g=B[1],w=LA(r-u,t-g);return(n?w<p.optimumDistance:w>p.optimumDistance)?{optimumCorner:B,optimumDistance:w}:p},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Pl=function(e,A,r,t,n){var a=0,p=0;switch(e.size){case 0:e.shape===0?a=p=Math.min(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-n)):e.shape===1&&(a=Math.min(Math.abs(A),Math.abs(A-t)),p=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(e.shape===0)a=p=Math.min(LA(A,r),LA(A,r-n),LA(A-t,r),LA(A-t,r-n));else if(e.shape===1){var B=Math.min(Math.abs(r),Math.abs(r-n))/Math.min(Math.abs(A),Math.abs(A-t)),u=Kn(t,n,A,r,!0),g=u[0],w=u[1];a=LA(g-A,(w-r)/B),p=B*a}break;case 1:e.shape===0?a=p=Math.max(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-n)):e.shape===1&&(a=Math.max(Math.abs(A),Math.abs(A-t)),p=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(e.shape===0)a=p=Math.max(LA(A,r),LA(A,r-n),LA(A-t,r),LA(A-t,r-n));else if(e.shape===1){var B=Math.max(Math.abs(r),Math.abs(r-n))/Math.max(Math.abs(A),Math.abs(A-t)),m=Kn(t,n,A,r,!1),g=m[0],w=m[1];a=LA(g-A,(w-r)/B),p=B*a}break}return Array.isArray(e.size)&&(a=rA(e.size[0],t),p=e.size.length===2?rA(e.size[1],n):a),[a,p]},_l=function(e,A){var r=xA(180),t=[];return TA(A).forEach(function(n,a){if(a===0){var p=n[0];if(p.type===20&&p.value==="to"){r=In(n);return}else if(Hn(p)){r=bt.parse(e,p);return}}var B=vt(e,n);t.push(B)}),{angle:r,stops:t,type:1}},Qt=function(e,A){var r=xA(180),t=[];return TA(A).forEach(function(n,a){if(a===0){var p=n[0];if(p.type===20&&["top","left","right","bottom"].indexOf(p.value)!==-1){r=In(n);return}else if(Hn(p)){r=(bt.parse(e,p)+xA(270))%xA(360);return}}var B=vt(e,n);t.push(B)}),{angle:r,stops:t,type:1}},Gl=function(e,A){var r=xA(180),t=[],n=1,a=0,p=3,B=[];return TA(A).forEach(function(u,g){var w=u[0];if(g===0){if(eA(w)&&w.value==="linear"){n=1;return}else if(eA(w)&&w.value==="radial"){n=2;return}}if(w.type===18){if(w.name==="from"){var m=$A.parse(e,w.values[0]);t.push({stop:hA,color:m})}else if(w.name==="to"){var m=$A.parse(e,w.values[0]);t.push({stop:jA,color:m})}else if(w.name==="color-stop"){var F=w.values.filter(fe);if(F.length===2){var m=$A.parse(e,F[1]),k=F[0];ge(k)&&t.push({stop:{type:16,number:k.number*100,flags:k.flags},color:m})}}}}),n===1?{angle:(r+xA(180))%xA(360),stops:t,type:n}:{size:p,shape:a,stops:t,position:B,type:n}},Dn="closest-side",Mn="farthest-side",Rn="closest-corner",On="farthest-corner",Nn="circle",Pn="ellipse",_n="cover",Gn="contain",Vl=function(e,A){var r=0,t=3,n=[],a=[];return TA(A).forEach(function(p,B){var u=!0;if(B===0){var g=!1;u=p.reduce(function(m,F){if(g)if(eA(F))switch(F.value){case"center":return a.push(Xr),m;case"top":case"left":return a.push(hA),m;case"right":case"bottom":return a.push(jA),m}else(lA(F)||WA(F))&&a.push(F);else if(eA(F))switch(F.value){case Nn:return r=0,!1;case Pn:return r=1,!1;case"at":return g=!0,!1;case Dn:return t=0,!1;case _n:case Mn:return t=1,!1;case Gn:case Rn:return t=2,!1;case On:return t=3,!1}else if(WA(F)||lA(F))return Array.isArray(t)||(t=[]),t.push(F),!1;return m},u)}if(u){var w=vt(e,p);n.push(w)}}),{size:t,shape:r,stops:n,position:a,type:2}},Ft=function(e,A){var r=0,t=3,n=[],a=[];return TA(A).forEach(function(p,B){var u=!0;if(B===0?u=p.reduce(function(w,m){if(eA(m))switch(m.value){case"center":return a.push(Xr),!1;case"top":case"left":return a.push(hA),!1;case"right":case"bottom":return a.push(jA),!1}else if(lA(m)||WA(m))return a.push(m),!1;return w},u):B===1&&(u=p.reduce(function(w,m){if(eA(m))switch(m.value){case Nn:return r=0,!1;case Pn:return r=1,!1;case Gn:case Dn:return t=0,!1;case Mn:return t=1,!1;case Rn:return t=2,!1;case _n:case On:return t=3,!1}else if(WA(m)||lA(m))return Array.isArray(t)||(t=[]),t.push(m),!1;return w},u)),u){var g=vt(e,p);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},Xl=function(e){return e.type===1},Yl=function(e){return e.type===2},Jr={name:"image",parse:function(e,A){if(A.type===22){var r={url:A.value,type:0};return e.cache.addImage(A.value),r}if(A.type===18){var t=Vn[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function Jl(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!Vn[e.name])}var Vn={"linear-gradient":_l,"-moz-linear-gradient":Qt,"-ms-linear-gradient":Qt,"-o-linear-gradient":Qt,"-webkit-linear-gradient":Qt,"radial-gradient":Vl,"-moz-radial-gradient":Ft,"-ms-radial-gradient":Ft,"-o-radial-gradient":Ft,"-webkit-radial-gradient":Ft,"-webkit-gradient":Gl},Wl={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var r=A[0];return r.type===20&&r.value==="none"?[]:A.filter(function(t){return fe(t)&&Jl(t)}).map(function(t){return Jr.parse(e,t)})}},jl={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(eA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$l={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return TA(A).map(function(r){return r.filter(lA)}).map(Fn)}},Zl={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return TA(A).map(function(r){return r.filter(eA).map(function(t){return t.value}).join(" ")}).map(zl)}},zl=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}},we;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(we||(we={}));var ql={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return TA(A).map(function(r){return r.filter(Ac)})}},Ac=function(e){return eA(e)||lA(e)},yt=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ec=yt("top"),tc=yt("right"),rc=yt("bottom"),sc=yt("left"),Ut=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,r){return Fn(r.filter(lA))}}},nc=Ut("top-left"),ic=Ut("top-right"),oc=Ut("bottom-right"),ac=Ut("bottom-left"),xt=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},lc=xt("top"),cc=xt("right"),pc=xt("bottom"),dc=xt("left"),Et=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,r){return Pe(r)?r.number:0}}},uc=Et("top"),Bc=Et("right"),hc=Et("bottom"),gc=Et("left"),fc={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wc={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return A==="rtl"?1:0}},Cc={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(eA).reduce(function(r,t){return r|mc(t.value)},0)}},mc=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},bc={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}},vc={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}},Ht;(function(e){e.NORMAL="normal",e.STRICT="strict"})(Ht||(Ht={}));var Qc={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="strict"?Ht.STRICT:Ht.NORMAL}},Fc={name:"line-height",initialValue:"normal",prefix:!1,type:4},Xn=function(e,A){return eA(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:lA(e)?rA(e,A):A},yc={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:Jr.parse(e,A)}},Uc={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){return A==="inside"?0:1}},Wr={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}}},It=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},xc=It("top"),Ec=It("right"),Hc=It("bottom"),Ic=It("left"),kc={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(eA).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Lc={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="break-word"?"break-word":"normal"}},kt=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Sc=kt("top"),Tc=kt("right"),Kc=kt("bottom"),Dc=kt("left"),Mc={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}}},Rc={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}},Oc={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&Vr(A[0],"none")?[]:TA(A).map(function(r){for(var t={color:OA.TRANSPARENT,offsetX:hA,offsetY:hA,blur:hA},n=0,a=0;a<r.length;a++){var p=r[a];WA(p)?(n===0?t.offsetX=p:n===1?t.offsetY=p:t.blur=p,n++):t.color=$A.parse(e,p)}return t})}},Nc={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}},Pc={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 r=Vc[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return r(A.values)}return null}},_c=function(e){var A=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return A.length===6?A:null},Gc=function(e){var A=e.filter(function(u){return u.type===17}).map(function(u){return u.number}),r=A[0],t=A[1];A[2],A[3];var n=A[4],a=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var p=A[12],B=A[13];return A[14],A[15],A.length===16?[r,t,n,a,p,B]:null},Vc={matrix:_c,matrix3d:Gc},Yn={type:16,number:50,flags:De},Xc=[Yn,Yn],Yc={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var r=A.filter(lA);return r.length!==2?Xc:[r[0],r[1]]}},Jc={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}}},Ve;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Ve||(Ve={}));for(var Wc={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return Ve.BREAK_ALL;case"keep-all":return Ve.KEEP_ALL;default:return Ve.NORMAL}}},jc={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(ge(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Jn={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")}},$c={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return ge(A)?A.number:1}},Zc={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},zc={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(eA).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},qc={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var r=[],t=[];return A.forEach(function(n){switch(n.type){case 20:case 0:r.push(n.value);break;case 17:r.push(n.number.toString());break;case 4:t.push(r.join(" ")),r.length=0;break}}),r.length&&t.push(r.join(" ")),t.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},Ap={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ep={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return ge(A)?A.number:eA(A)&&A.value==="bold"?700:400}},tp={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(eA).map(function(r){return r.value})}},rp={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"}}},pA=function(e,A){return(e&A)!==0},sp={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var r=A[0];return r.type===20&&r.value==="none"?[]:A}},np={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;for(var t=[],n=A.filter(Qn),a=0;a<n.length;a++){var p=n[a],B=n[a+1];if(p.type===20){var u=B&&ge(B)?B.number:1;t.push({counter:p.value,increment:u})}}return t}},ip={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var r=[],t=A.filter(Qn),n=0;n<t.length;n++){var a=t[n],p=t[n+1];if(eA(a)&&a.value!=="none"){var B=p&&ge(p)?p.number:0;r.push({counter:a.value,reset:B})}}return r}},op={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Pe).map(function(r){return Jn.parse(e,r)})}},ap={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;var t=[],n=A.filter(Tl);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var p=n[a].value,B=n[a+1].value;t.push({open:p,close:B})}return t}},Wn=function(e,A,r){if(!e)return"";var t=e[Math.min(A,e.length-1)];return t?r?t.open:t.close:""},lp={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&Vr(A[0],"none")?[]:TA(A).map(function(r){for(var t={color:255,offsetX:hA,offsetY:hA,blur:hA,spread:hA,inset:!1},n=0,a=0;a<r.length;a++){var p=r[a];Vr(p,"inset")?t.inset=!0:WA(p)?(n===0?t.offsetX=p:n===1?t.offsetY=p:n===2?t.blur=p:t.spread=p,n++):t.color=$A.parse(e,p)}return t})}},cp={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var r=[0,1,2],t=[];return A.filter(eA).forEach(function(n){switch(n.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),r.forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),t}},pp={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},dp={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Pe(A)?A.number:0}},up=(function(){function e(A,r){var t,n;this.animationDuration=L(A,op,r.animationDuration),this.backgroundClip=L(A,Ml,r.backgroundClip),this.backgroundColor=L(A,Rl,r.backgroundColor),this.backgroundImage=L(A,Wl,r.backgroundImage),this.backgroundOrigin=L(A,jl,r.backgroundOrigin),this.backgroundPosition=L(A,$l,r.backgroundPosition),this.backgroundRepeat=L(A,Zl,r.backgroundRepeat),this.backgroundSize=L(A,ql,r.backgroundSize),this.borderTopColor=L(A,ec,r.borderTopColor),this.borderRightColor=L(A,tc,r.borderRightColor),this.borderBottomColor=L(A,rc,r.borderBottomColor),this.borderLeftColor=L(A,sc,r.borderLeftColor),this.borderTopLeftRadius=L(A,nc,r.borderTopLeftRadius),this.borderTopRightRadius=L(A,ic,r.borderTopRightRadius),this.borderBottomRightRadius=L(A,oc,r.borderBottomRightRadius),this.borderBottomLeftRadius=L(A,ac,r.borderBottomLeftRadius),this.borderTopStyle=L(A,lc,r.borderTopStyle),this.borderRightStyle=L(A,cc,r.borderRightStyle),this.borderBottomStyle=L(A,pc,r.borderBottomStyle),this.borderLeftStyle=L(A,dc,r.borderLeftStyle),this.borderTopWidth=L(A,uc,r.borderTopWidth),this.borderRightWidth=L(A,Bc,r.borderRightWidth),this.borderBottomWidth=L(A,hc,r.borderBottomWidth),this.borderLeftWidth=L(A,gc,r.borderLeftWidth),this.boxShadow=L(A,lp,r.boxShadow),this.color=L(A,fc,r.color),this.direction=L(A,wc,r.direction),this.display=L(A,Cc,r.display),this.float=L(A,bc,r.cssFloat),this.fontFamily=L(A,qc,r.fontFamily),this.fontSize=L(A,Ap,r.fontSize),this.fontStyle=L(A,rp,r.fontStyle),this.fontVariant=L(A,tp,r.fontVariant),this.fontWeight=L(A,ep,r.fontWeight),this.letterSpacing=L(A,vc,r.letterSpacing),this.lineBreak=L(A,Qc,r.lineBreak),this.lineHeight=L(A,Fc,r.lineHeight),this.listStyleImage=L(A,yc,r.listStyleImage),this.listStylePosition=L(A,Uc,r.listStylePosition),this.listStyleType=L(A,Wr,r.listStyleType),this.marginTop=L(A,xc,r.marginTop),this.marginRight=L(A,Ec,r.marginRight),this.marginBottom=L(A,Hc,r.marginBottom),this.marginLeft=L(A,Ic,r.marginLeft),this.opacity=L(A,$c,r.opacity);var a=L(A,kc,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=L(A,Lc,r.overflowWrap),this.paddingTop=L(A,Sc,r.paddingTop),this.paddingRight=L(A,Tc,r.paddingRight),this.paddingBottom=L(A,Kc,r.paddingBottom),this.paddingLeft=L(A,Dc,r.paddingLeft),this.paintOrder=L(A,cp,r.paintOrder),this.position=L(A,Rc,r.position),this.textAlign=L(A,Mc,r.textAlign),this.textDecorationColor=L(A,Zc,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=L(A,zc,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=L(A,Oc,r.textShadow),this.textTransform=L(A,Nc,r.textTransform),this.transform=L(A,Pc,r.transform),this.transformOrigin=L(A,Yc,r.transformOrigin),this.visibility=L(A,Jc,r.visibility),this.webkitTextStrokeColor=L(A,pp,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=L(A,dp,r.webkitTextStrokeWidth),this.wordBreak=L(A,Wc,r.wordBreak),this.zIndex=L(A,jc,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return ZA(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 pA(this.display,4)||pA(this.display,33554432)||pA(this.display,268435456)||pA(this.display,536870912)||pA(this.display,67108864)||pA(this.display,134217728)},e})(),Bp=(function(){function e(A,r){this.content=L(A,sp,r.content),this.quotes=L(A,ap,r.quotes)}return e})(),jn=(function(){function e(A,r){this.counterIncrement=L(A,np,r.counterIncrement),this.counterReset=L(A,ip,r.counterReset)}return e})(),L=function(e,A,r){var t=new bn,n=r!==null&&typeof r<"u"?r.toString():A.initialValue;t.write(n);var a=new vn(t.read());switch(A.type){case 2:var p=a.parseComponentValue();return A.parse(e,eA(p)?p.value:A.initialValue);case 0:return A.parse(e,a.parseComponentValue());case 1:return A.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(A.format){case"angle":return bt.parse(e,a.parseComponentValue());case"color":return $A.parse(e,a.parseComponentValue());case"image":return Jr.parse(e,a.parseComponentValue());case"length":var B=a.parseComponentValue();return WA(B)?B:hA;case"length-percentage":var u=a.parseComponentValue();return lA(u)?u:hA;case"time":return Jn.parse(e,a.parseComponentValue())}break}},hp="data-html2canvas-debug",gp=function(e){var A=e.getAttribute(hp);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},jr=function(e,A){var r=gp(e);return r===1||A===r},KA=(function(){function e(A,r){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,jr(r,3))debugger;this.styles=new up(A,window.getComputedStyle(r,null)),ls(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=f(this.context,r),jr(r,4)&&(this.flags|=16)}return e})(),fp="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNw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AAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC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gAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",$n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xe=typeof Uint8Array>"u"?[]:new Uint8Array(256),Lt=0;Lt<$n.length;Lt++)Xe[$n.charCodeAt(Lt)]=Lt;for(var wp=function(e){var A=e.length*.75,r=e.length,t,n=0,a,p,B,u;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),w=Array.isArray(g)?g:new Uint8Array(g);for(t=0;t<r;t+=4)a=Xe[e.charCodeAt(t)],p=Xe[e.charCodeAt(t+1)],B=Xe[e.charCodeAt(t+2)],u=Xe[e.charCodeAt(t+3)],w[n++]=a<<2|p>>4,w[n++]=(p&15)<<4|B>>2,w[n++]=(B&3)<<6|u&63;return g},Cp=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},mp=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},ie=5,$r=11,Zr=2,bp=$r-ie,Zn=65536>>ie,vp=1<<ie,zr=vp-1,Qp=1024>>ie,Fp=Zn+Qp,yp=Fp,Up=32,xp=yp+Up,Ep=65536>>$r,Hp=1<<bp,Ip=Hp-1,zn=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},kp=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},Lp=function(e,A){var r=wp(e),t=Array.isArray(r)?mp(r):new Uint32Array(r),n=Array.isArray(r)?Cp(r):new Uint16Array(r),a=24,p=zn(n,a/2,t[4]/2),B=t[5]===2?zn(n,(a+t[4])/2):kp(t,Math.ceil((a+t[4])/4));return new Sp(t[0],t[1],t[2],t[3],p,B)},Sp=(function(){function e(A,r,t,n,a,p){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=p}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>ie],r=(r<<Zr)+(A&zr),this.data[r];if(A<=65535)return r=this.index[Zn+(A-55296>>ie)],r=(r<<Zr)+(A&zr),this.data[r];if(A<this.highStart)return r=xp-Ep+(A>>$r),r=this.index[r],r+=A>>ie&Ip,r=this.index[r],r=(r<<Zr)+(A&zr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),qn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tp=typeof Uint8Array>"u"?[]:new Uint8Array(256),St=0;St<qn.length;St++)Tp[qn.charCodeAt(St)]=St;var Kp=1,qr=2,As=3,Ai=4,ei=5,Dp=7,ti=8,es=9,ts=10,ri=11,si=12,ni=13,ii=14,rs=15,Mp=function(e){for(var A=[],r=0,t=e.length;r<t;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=e.charCodeAt(r++);(a&64512)===56320?A.push(((n&1023)<<10)+(a&1023)+65536):(A.push(n),r--)}else A.push(n)}return A},Rp=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var p=e[n];p<=65535?t.push(p):(p-=65536,t.push((p>>10)+55296,p%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},Op=Lp(fp),EA="\xD7",ss="\xF7",Np=function(e){return Op.get(e)},Pp=function(e,A,r){var t=r-2,n=A[t],a=A[r-1],p=A[r];if(a===qr&&p===As)return EA;if(a===qr||a===As||a===Ai||p===qr||p===As||p===Ai)return ss;if(a===ti&&[ti,es,ri,si].indexOf(p)!==-1||(a===ri||a===es)&&(p===es||p===ts)||(a===si||a===ts)&&p===ts||p===ni||p===ei||p===Dp||a===Kp)return EA;if(a===ni&&p===ii){for(;n===ei;)n=A[--t];if(n===ii)return EA}if(a===rs&&p===rs){for(var B=0;n===rs;)B++,n=A[--t];if(B%2===0)return EA}return ss},_p=function(e){var A=Mp(e),r=A.length,t=0,n=0,a=A.map(Np);return{next:function(){if(t>=r)return{done:!0,value:null};for(var p=EA;t<r&&(p=Pp(A,a,++t))===EA;);if(p!==EA||t===r){var B=Rp.apply(null,A.slice(n,t));return n=t,{value:B,done:!1}}return{done:!0,value:null}}}},Gp=function(e){for(var A=_p(e),r=[],t;!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r},Vp=function(e){var A=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var t=e.createElement("boundtest");t.style.height=A+"px",t.style.display="block",e.body.appendChild(t),r.selectNode(t);var n=r.getBoundingClientRect(),a=Math.round(n.height);if(e.body.removeChild(t),a===A)return!0}}return!1},Xp=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 r=e.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var t=A.firstChild,n=Q(t.data).map(function(u){return v(u)}),a=0,p={},B=n.every(function(u,g){r.setStart(t,a),r.setEnd(t,a+u.length);var w=r.getBoundingClientRect();a+=u.length;var m=w.x>p.x||w.y>p.y;return p=w,g===0?!0:m});return e.body.removeChild(A),B},Yp=function(){return typeof new Image().crossOrigin<"u"},Jp=function(){return typeof new XMLHttpRequest().responseType=="string"},Wp=function(e){var A=new Image,r=e.createElement("canvas"),t=r.getContext("2d");if(!t)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(A,0,0),r.toDataURL()}catch{return!1}return!0},oi=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},jp=function(e){var A=e.createElement("canvas"),r=100;A.width=r,A.height=r;var t=A.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,r,r);var n=new Image,a=A.toDataURL();n.src=a;var p=ns(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),ai(p).then(function(B){t.drawImage(B,0,0);var u=t.getImageData(0,0,r,r).data;t.fillStyle="red",t.fillRect(0,0,r,r);var g=e.createElement("div");return g.style.backgroundImage="url("+a+")",g.style.height=r+"px",oi(u)?ai(ns(r,r,0,0,g)):Promise.reject(!1)}).then(function(B){return t.drawImage(B,0,0),oi(t.getImageData(0,0,r,r).data)}).catch(function(){return!1})},ns=function(e,A,r,t,n){var a="http://www.w3.org/2000/svg",p=document.createElementNS(a,"svg"),B=document.createElementNS(a,"foreignObject");return p.setAttributeNS(null,"width",e.toString()),p.setAttributeNS(null,"height",A.toString()),B.setAttributeNS(null,"width","100%"),B.setAttributeNS(null,"height","100%"),B.setAttributeNS(null,"x",r.toString()),B.setAttributeNS(null,"y",t.toString()),B.setAttributeNS(null,"externalResourcesRequired","true"),p.appendChild(B),B.appendChild(n),p},ai=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){return A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},gA={get SUPPORT_RANGE_BOUNDS(){var e=Vp(document);return Object.defineProperty(gA,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=gA.SUPPORT_RANGE_BOUNDS&&Xp(document);return Object.defineProperty(gA,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Wp(document);return Object.defineProperty(gA,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?jp(document):Promise.resolve(!1);return Object.defineProperty(gA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=Yp();return Object.defineProperty(gA,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Jp();return Object.defineProperty(gA,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(gA,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(gA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Ye=(function(){function e(A,r){this.text=A,this.bounds=r}return e})(),$p=function(e,A,r,t){var n=qp(A,r),a=[],p=0;return n.forEach(function(B){if(r.textDecorationLine.length||B.trim().length>0)if(gA.SUPPORT_RANGE_BOUNDS){var u=li(t,p,B.length).getClientRects();if(u.length>1){var g=is(B),w=0;g.forEach(function(F){a.push(new Ye(F,h.fromDOMRectList(e,li(t,w+p,F.length).getClientRects()))),w+=F.length})}else a.push(new Ye(B,h.fromDOMRectList(e,u)))}else{var m=t.splitText(B.length);a.push(new Ye(B,Zp(e,t))),t=m}else gA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(B.length));p+=B.length}),a},Zp=function(e,A){var r=A.ownerDocument;if(r){var t=r.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(t,A);var a=f(e,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return h.EMPTY},li=function(e,A,r){var t=e.ownerDocument;if(!t)throw new Error("Node has no owner document");var n=t.createRange();return n.setStart(e,A),n.setEnd(e,A+r),n},is=function(e){if(gA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(r){return r.segment})}return Gp(e)},zp=function(e,A){if(gA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(t){return t.segment})}return ed(e,A)},qp=function(e,A){return A.letterSpacing!==0?is(e):zp(e,A)},Ad=[32,160,4961,65792,65793,4153,4241],ed=function(e,A){for(var r=Ea(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],n,a=function(){if(n.value){var p=n.value.slice(),B=Q(p),u="";B.forEach(function(g){Ad.indexOf(g)===-1?u+=v(g):(u.length&&t.push(u),t.push(v(g)),u="")}),u.length&&t.push(u)}};!(n=r.next()).done;)a();return t},td=(function(){function e(A,r,t){this.text=rd(r.data,t.textTransform),this.textBounds=$p(A,this.text,t,r)}return e})(),rd=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(sd,nd);case 2:return e.toUpperCase();default:return e}},sd=/(^|\s|:|-|\(|\))([a-z])/g,nd=function(e,A,r){return e.length>0?A+r.toUpperCase():e},ci=(function(e){s(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return A})(KA),pi=(function(e){s(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return A})(KA),di=(function(e){s(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=new XMLSerializer,p=f(r,t);return t.setAttribute("width",p.width+"px"),t.setAttribute("height",p.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A})(KA),ui=(function(e){s(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A})(KA),os=(function(e){s(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.start=t.start,n.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,n}return A})(KA),id=[{type:15,flags:0,unit:"px",number:3}],od=[{type:16,flags:0,number:50}],ad=function(e){return e.width>e.height?new h(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new h(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},ld=function(e){var A=e.type===cd?new Array(e.value.length+1).join("\u2022"):e.value;return A.length===0?e.placeholder||"":A},Tt="checkbox",Kt="radio",cd="password",Bi=707406591,as=(function(e){s(A,e);function A(r,t){var n=e.call(this,r,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=ld(t),(n.type===Tt||n.type===Kt)&&(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=ad(n.bounds)),n.type){case Tt:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=id;break;case Kt:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=od;break}return n}return A})(KA),hi=(function(e){s(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=t.options[t.selectedIndex||0];return n.value=a&&a.text||"",n}return A})(KA),gi=(function(e){s(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A})(KA),fi=(function(e){s(A,e);function A(r,t){var n=e.call(this,r,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=Ci(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?Ge(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):OA.TRANSPARENT,p=t.contentWindow.document.body?Ge(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):OA.TRANSPARENT;n.backgroundColor=ZA(a)?ZA(p)?n.styles.backgroundColor:p:a}}catch{}return n}return A})(KA),pd=["OL","UL","MENU"],Dt=function(e,A,r,t){for(var n=A.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,mi(n)&&n.data.trim().length>0)r.textNodes.push(new td(e,n,r.styles));else if(Ce(n))if(Ui(n)&&n.assignedNodes)n.assignedNodes().forEach(function(B){return Dt(e,B,r,t)});else{var p=wi(e,n);p.styles.isVisible()&&(dd(n,p,t)?p.flags|=4:ud(p.styles)&&(p.flags|=2),pd.indexOf(n.tagName)!==-1&&(p.flags|=8),r.elements.push(p),n.slot,n.shadowRoot?Dt(e,n.shadowRoot,p,t):!Rt(n)&&!bi(n)&&!Ot(n)&&Dt(e,n,p,t))}},wi=function(e,A){return ps(A)?new ci(e,A):vi(A)?new pi(e,A):bi(A)?new di(e,A):Bd(A)?new ui(e,A):hd(A)?new os(e,A):gd(A)?new as(e,A):Ot(A)?new hi(e,A):Rt(A)?new gi(e,A):Fi(A)?new fi(e,A):new KA(e,A)},Ci=function(e,A){var r=wi(e,A);return r.flags|=4,Dt(e,A,r,r),r},dd=function(e,A,r){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||cs(e)&&r.styles.isTransparent()},ud=function(e){return e.isPositioned()||e.isFloating()},mi=function(e){return e.nodeType===Node.TEXT_NODE},Ce=function(e){return e.nodeType===Node.ELEMENT_NODE},ls=function(e){return Ce(e)&&typeof e.style<"u"&&!Mt(e)},Mt=function(e){return typeof e.className=="object"},Bd=function(e){return e.tagName==="LI"},hd=function(e){return e.tagName==="OL"},gd=function(e){return e.tagName==="INPUT"},fd=function(e){return e.tagName==="HTML"},bi=function(e){return e.tagName==="svg"},cs=function(e){return e.tagName==="BODY"},vi=function(e){return e.tagName==="CANVAS"},Qi=function(e){return e.tagName==="VIDEO"},ps=function(e){return e.tagName==="IMG"},Fi=function(e){return e.tagName==="IFRAME"},yi=function(e){return e.tagName==="STYLE"},wd=function(e){return e.tagName==="SCRIPT"},Rt=function(e){return e.tagName==="TEXTAREA"},Ot=function(e){return e.tagName==="SELECT"},Ui=function(e){return e.tagName==="SLOT"},xi=function(e){return e.tagName.indexOf("-")>0},Cd=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var r=this.counters[A];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(A){var r=this.counters[A];return r||[]},e.prototype.pop=function(A){var r=this;A.forEach(function(t){return r.counters[t].pop()})},e.prototype.parse=function(A){var r=this,t=A.counterIncrement,n=A.counterReset,a=!0;t!==null&&t.forEach(function(B){var u=r.counters[B.counter];u&&B.increment!==0&&(a=!1,u.length||u.push(1),u[Math.max(0,u.length-1)]+=B.increment)});var p=[];return a&&n.forEach(function(B){var u=r.counters[B.counter];p.push(B.counter),u||(u=r.counters[B.counter]=[]),u.push(B.reset)}),p},e})(),Ei={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"]},Hi={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:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},md={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:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},bd={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:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},me=function(e,A,r,t,n,a){return e<A||e>r?We(e,n,a.length>0):t.integers.reduce(function(p,B,u){for(;e>=B;)e-=B,p+=t.values[u];return p},"")+a},Ii=function(e,A,r,t){var n="";do r||e--,n=t(e)+n,e/=A;while(e*A>=A);return n},oA=function(e,A,r,t,n){var a=r-A+1;return(e<0?"-":"")+(Ii(Math.abs(e),a,t,function(p){return v(Math.floor(p%a)+A)})+n)},oe=function(e,A,r){r===void 0&&(r=". ");var t=A.length;return Ii(Math.abs(e),t,!1,function(n){return A[Math.floor(n%t)]})+r},be=1,qA=2,Ae=4,Je=8,NA=function(e,A,r,t,n,a){if(e<-9999||e>9999)return We(e,4,n.length>0);var p=Math.abs(e),B=n;if(p===0)return A[0]+B;for(var u=0;p>0&&u<=4;u++){var g=p%10;g===0&&pA(a,be)&&B!==""?B=A[g]+B:g>1||g===1&&u===0||g===1&&u===1&&pA(a,qA)||g===1&&u===1&&pA(a,Ae)&&e>100||g===1&&u>1&&pA(a,Je)?B=A[g]+(u>0?r[u-1]:"")+B:g===1&&u>0&&(B=r[u-1]+B),p=Math.floor(p/10)}return(e<0?t:"")+B},ki="\u5341\u767E\u5343\u842C",Li="\u62FE\u4F70\u4EDF\u842C",Si="\u30DE\u30A4\u30CA\u30B9",ds="\uB9C8\uC774\uB108\uC2A4",We=function(e,A,r){var t=r?". ":"",n=r?"\u3001":"",a=r?", ":"",p=r?" ":"";switch(A){case 0:return"\u2022"+p;case 1:return"\u25E6"+p;case 2:return"\u25FE"+p;case 5:var B=oA(e,48,57,!0,t);return B.length<4?"0"+B:B;case 4:return oe(e,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",n);case 6:return me(e,1,3999,Ei,3,t).toLowerCase();case 7:return me(e,1,3999,Ei,3,t);case 8:return oA(e,945,969,!1,t);case 9:return oA(e,97,122,!1,t);case 10:return oA(e,65,90,!1,t);case 11:return oA(e,1632,1641,!0,t);case 12:case 49:return me(e,1,9999,Hi,3,t);case 35:return me(e,1,9999,Hi,3,t).toLowerCase();case 13:return oA(e,2534,2543,!0,t);case 14:case 30:return oA(e,6112,6121,!0,t);case 15:return oe(e,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",n);case 16:return oe(e,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",n);case 17:case 48:return NA(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ki,"\u8CA0",n,qA|Ae|Je);case 47:return NA(e,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Li,"\u8CA0",n,be|qA|Ae|Je);case 42:return NA(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ki,"\u8D1F",n,qA|Ae|Je);case 41:return NA(e,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Li,"\u8D1F",n,be|qA|Ae|Je);case 26:return NA(e,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Si,n,0);case 25:return NA(e,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Si,n,be|qA|Ae);case 31:return NA(e,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",ds,a,be|qA|Ae);case 33:return NA(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",ds,a,0);case 32:return NA(e,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",ds,a,be|qA|Ae);case 18:return oA(e,2406,2415,!0,t);case 20:return me(e,1,19999,bd,3,t);case 21:return oA(e,2790,2799,!0,t);case 22:return oA(e,2662,2671,!0,t);case 22:return me(e,1,10999,md,3,t);case 23:return oe(e,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return oe(e,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return oA(e,3302,3311,!0,t);case 28:return oe(e,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",n);case 29:return oe(e,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",n);case 34:return oA(e,3792,3801,!0,t);case 37:return oA(e,6160,6169,!0,t);case 38:return oA(e,4160,4169,!0,t);case 39:return oA(e,2918,2927,!0,t);case 40:return oA(e,1776,1785,!0,t);case 43:return oA(e,3046,3055,!0,t);case 44:return oA(e,3174,3183,!0,t);case 45:return oA(e,3664,3673,!0,t);case 46:return oA(e,3872,3881,!0,t);default:return oA(e,48,57,!0,t)}},Ti="data-html2canvas-ignore",Ki=(function(){function e(A,r,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new Cd,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,r){var t=this,n=vd(A,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=A.defaultView.pageXOffset,p=A.defaultView.pageYOffset,B=n.contentWindow,u=B.document,g=yd(n).then(function(){return o(t,void 0,void 0,function(){var w,m;return c(this,function(F){switch(F.label){case 0:return this.scrolledElements.forEach(Hd),B&&(B.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(B.scrollY!==r.top||B.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(B.scrollX-r.left,B.scrollY-r.top,0,0))),w=this.options.onclone,m=this.clonedReferenceElement,typeof m>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:u.fonts&&u.fonts.ready?[4,u.fonts.ready]:[3,2];case 1:F.sent(),F.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Fd(u)]:[3,4];case 3:F.sent(),F.label=4;case 4:return typeof w=="function"?[2,Promise.resolve().then(function(){return w(u,m)}).then(function(){return n})]:[2,n]}})})});return u.open(),u.write(xd(document.doctype)+"<html></html>"),Ed(this.referenceElement.ownerDocument,a,p),u.replaceChild(u.adoptNode(this.documentElement),u.documentElement),u.close(),g},e.prototype.createElementClone=function(A){if(jr(A,2))debugger;if(vi(A))return this.createCanvasClone(A);if(Qi(A))return this.createVideoClone(A);if(yi(A))return this.createStyleClone(A);var r=A.cloneNode(!1);return ps(r)&&(ps(A)&&A.currentSrc&&A.currentSrc!==A.src&&(r.src=A.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),xi(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(A){var r=document.createElement("html2canvascustomelement");return us(A.style,r),r},e.prototype.createStyleClone=function(A){try{var r=A.sheet;if(r&&r.cssRules){var t=[].slice.call(r.cssRules,0).reduce(function(a,p){return p&&typeof p.cssText=="string"?a+p.cssText:a},""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var r;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}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 a=A.getContext("2d"),p=n.getContext("2d");if(p)if(!this.options.allowTaint&&a)p.putImageData(a.getImageData(0,0,A.width,A.height),0,0);else{var B=(r=A.getContext("webgl2"))!==null&&r!==void 0?r:A.getContext("webgl");if(B){var u=B.getContextAttributes();u?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}p.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 r=A.ownerDocument.createElement("canvas");r.width=A.offsetWidth,r.height=A.offsetHeight;var t=r.getContext("2d");try{return t&&(t.drawImage(A,0,0,r.width,r.height),this.options.allowTaint||t.getImageData(0,0,r.width,r.height)),r}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,r,t){(!Ce(r)||!wd(r)&&!r.hasAttribute(Ti)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Ce(r)||!yi(r))&&A.appendChild(this.cloneNode(r,t))},e.prototype.cloneChildNodes=function(A,r,t){for(var n=this,a=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;a;a=a.nextSibling)if(Ce(a)&&Ui(a)&&typeof a.assignedNodes=="function"){var p=a.assignedNodes();p.length&&p.forEach(function(B){return n.appendChildNode(r,B,t)})}else this.appendChildNode(r,a,t)},e.prototype.cloneNode=function(A,r){if(mi(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Ce(A)&&(ls(A)||Mt(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var a=t.getComputedStyle(A),p=t.getComputedStyle(A,":before"),B=t.getComputedStyle(A,":after");this.referenceElement===A&&ls(n)&&(this.clonedReferenceElement=n),cs(n)&&Ld(n);var u=this.counters.parse(new jn(this.context,a)),g=this.resolvePseudoContent(A,n,p,je.BEFORE);xi(A)&&(r=!0),Qi(A)||this.cloneChildNodes(A,n,r),g&&n.insertBefore(g,n.firstChild);var w=this.resolvePseudoContent(A,n,B,je.AFTER);return w&&n.appendChild(w),this.counters.pop(u),(a&&(this.options.copyStyles||Mt(A))&&!Fi(A)||r)&&us(a,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(Rt(A)||Ot(A))&&(Rt(n)||Ot(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,r,t,n){var a=this;if(t){var p=t.content,B=r.ownerDocument;if(!(!B||!p||p==="none"||p==="-moz-alt-content"||t.display==="none")){this.counters.parse(new jn(this.context,t));var u=new Bp(this.context,t),g=B.createElement("html2canvaspseudoelement");us(t,g),u.content.forEach(function(m){if(m.type===0)g.appendChild(B.createTextNode(m.value));else if(m.type===22){var F=B.createElement("img");F.src=m.value,F.style.opacity="1",g.appendChild(F)}else if(m.type===18){if(m.name==="attr"){var k=m.values.filter(eA);k.length&&g.appendChild(B.createTextNode(A.getAttribute(k[0].value)||""))}else if(m.name==="counter"){var x=m.values.filter(fe),E=x[0],Y=x[1];if(E&&eA(E)){var K=a.counters.getCounterValue(E.value),S=Y&&eA(Y)?Wr.parse(a.context,Y.value):3;g.appendChild(B.createTextNode(We(K,S,!1)))}}else if(m.name==="counters"){var z=m.values.filter(fe),E=z[0],J=z[1],Y=z[2];if(E&&eA(E)){var N=a.counters.getCounterValues(E.value),I=Y&&eA(Y)?Wr.parse(a.context,Y.value):3,$=J&&J.type===0?J.value:"",Z=N.map(function(bA){return We(bA,I,!1)}).join($);g.appendChild(B.createTextNode(Z))}}}else if(m.type===20)switch(m.value){case"open-quote":g.appendChild(B.createTextNode(Wn(u.quotes,a.quoteDepth++,!0)));break;case"close-quote":g.appendChild(B.createTextNode(Wn(u.quotes,--a.quoteDepth,!1)));break;default:g.appendChild(B.createTextNode(m.value))}}),g.className=Bs+" "+hs;var w=n===je.BEFORE?" "+Bs:" "+hs;return Mt(r)?r.className.baseValue+=w:r.className+=w,g}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e})(),je;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(je||(je={}));var vd=function(e,A){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=A.width.toString(),r.height=A.height.toString(),r.scrolling="no",r.setAttribute(Ti,"true"),e.body.appendChild(r),r},Qd=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},Fd=function(e){return Promise.all([].slice.call(e.images,0).map(Qd))},yd=function(e){return new Promise(function(A,r){var t=e.contentWindow;if(!t)return r("No window assigned for iframe");var n=t.document;t.onload=e.onload=function(){t.onload=e.onload=null;var a=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(a),A(e))},50)}})},Ud=["all","d","content"],us=function(e,A){for(var r=e.length-1;r>=0;r--){var t=e.item(r);Ud.indexOf(t)===-1&&A.style.setProperty(t,e.getPropertyValue(t))}return A},xd=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},Ed=function(e,A,r){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,r)},Hd=function(e){var A=e[0],r=e[1],t=e[2];A.scrollLeft=r,A.scrollTop=t},Id=":before",kd=":after",Bs="___html2canvas___pseudoelement_before",hs="___html2canvas___pseudoelement_after",Di=`{
2
+ content: "" !important;
3
+ display: none !important;
4
+ }`,Ld=function(e){Sd(e,"."+Bs+Id+Di+`
5
+ .`+hs+kd+Di)},Sd=function(e,A){var r=e.ownerDocument;if(r){var t=r.createElement("style");t.textContent=A,e.appendChild(t)}},Mi=(function(){function e(){}return e.getOrigin=function(A){var r=e._link;return r?(r.href=A,r.href=r.href,r.protocol+r.hostname+r.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})(),Td=(function(){function e(A,r){this.context=A,this._options=r,this._cache={}}return e.prototype.addImage=function(A){var r=Promise.resolve();return this.has(A)||(fs(A)||Rd(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),r},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return o(this,void 0,void 0,function(){var r,t,n,a,p=this;return c(this,function(B){switch(B.label){case 0:return r=Mi.isSameOrigin(A),t=!gs(A)&&this._options.useCORS===!0&&gA.SUPPORT_CORS_IMAGES&&!r,n=!gs(A)&&!r&&!fs(A)&&typeof this._options.proxy=="string"&&gA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!gs(A)&&!fs(A)&&!n&&!t?[2]:(a=A,n?[4,this.proxy(a)]:[3,2]);case 1:a=B.sent(),B.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(u,g){var w=new Image;w.onload=function(){return u(w)},w.onerror=g,(Od(a)||t)&&(w.crossOrigin="anonymous"),w.src=a,w.complete===!0&&setTimeout(function(){return u(w)},500),p._options.imageTimeout>0&&setTimeout(function(){return g("Timed out ("+p._options.imageTimeout+"ms) loading image")},p._options.imageTimeout)})];case 3:return[2,B.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 r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(a,p){var B=gA.SUPPORT_RESPONSE_TYPE?"blob":"text",u=new XMLHttpRequest;u.onload=function(){if(u.status===200)if(B==="text")a(u.response);else{var m=new FileReader;m.addEventListener("load",function(){return a(m.result)},!1),m.addEventListener("error",function(F){return p(F)},!1),m.readAsDataURL(u.response)}else p("Failed to proxy resource "+n+" with status code "+u.status)},u.onerror=p;var g=t.indexOf("?")>-1?"&":"?";if(u.open("GET",""+t+g+"url="+encodeURIComponent(A)+"&responseType="+B),B!=="text"&&u instanceof XMLHttpRequest&&(u.responseType=B),r._options.imageTimeout){var w=r._options.imageTimeout;u.timeout=w,u.ontimeout=function(){return p("Timed out ("+w+"ms) proxying "+n)}}u.send()})},e})(),Kd=/^data:image\/svg\+xml/i,Dd=/^data:image\/.*;base64,/i,Md=/^data:image\/.*/i,Rd=function(e){return gA.SUPPORT_SVG_DRAWING||!Nd(e)},gs=function(e){return Md.test(e)},Od=function(e){return Dd.test(e)},fs=function(e){return e.substr(0,4)==="blob"},Nd=function(e){return e.substr(-3).toLowerCase()==="svg"||Kd.test(e)},H=(function(){function e(A,r){this.type=0,this.x=A,this.y=r}return e.prototype.add=function(A,r){return new e(this.x+A,this.y+r)},e})(),ve=function(e,A,r){return new H(e.x+(A.x-e.x)*r,e.y+(A.y-e.y)*r)},Nt=(function(){function e(A,r,t,n){this.type=1,this.start=A,this.startControl=r,this.endControl=t,this.end=n}return e.prototype.subdivide=function(A,r){var t=ve(this.start,this.startControl,A),n=ve(this.startControl,this.endControl,A),a=ve(this.endControl,this.end,A),p=ve(t,n,A),B=ve(n,a,A),u=ve(p,B,A);return r?new e(this.start,t,p,u):new e(u,B,a,this.end)},e.prototype.add=function(A,r){return new e(this.start.add(A,r),this.startControl.add(A,r),this.endControl.add(A,r),this.end.add(A,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),HA=function(e){return e.type===1},Pd=(function(){function e(A){var r=A.styles,t=A.bounds,n=_e(r.borderTopLeftRadius,t.width,t.height),a=n[0],p=n[1],B=_e(r.borderTopRightRadius,t.width,t.height),u=B[0],g=B[1],w=_e(r.borderBottomRightRadius,t.width,t.height),m=w[0],F=w[1],k=_e(r.borderBottomLeftRadius,t.width,t.height),x=k[0],E=k[1],Y=[];Y.push((a+u)/t.width),Y.push((x+m)/t.width),Y.push((p+E)/t.height),Y.push((g+F)/t.height);var K=Math.max.apply(Math,Y);K>1&&(a/=K,p/=K,u/=K,g/=K,m/=K,F/=K,x/=K,E/=K);var S=t.width-u,z=t.height-F,J=t.width-m,N=t.height-E,I=r.borderTopWidth,$=r.borderRightWidth,Z=r.borderBottomWidth,_=r.borderLeftWidth,cA=rA(r.paddingTop,A.bounds.width),bA=rA(r.paddingRight,A.bounds.width),yA=rA(r.paddingBottom,A.bounds.width),tA=rA(r.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||p>0?nA(t.left+_/3,t.top+I/3,a-_/3,p-I/3,AA.TOP_LEFT):new H(t.left+_/3,t.top+I/3),this.topRightBorderDoubleOuterBox=a>0||p>0?nA(t.left+S,t.top+I/3,u-$/3,g-I/3,AA.TOP_RIGHT):new H(t.left+t.width-$/3,t.top+I/3),this.bottomRightBorderDoubleOuterBox=m>0||F>0?nA(t.left+J,t.top+z,m-$/3,F-Z/3,AA.BOTTOM_RIGHT):new H(t.left+t.width-$/3,t.top+t.height-Z/3),this.bottomLeftBorderDoubleOuterBox=x>0||E>0?nA(t.left+_/3,t.top+N,x-_/3,E-Z/3,AA.BOTTOM_LEFT):new H(t.left+_/3,t.top+t.height-Z/3),this.topLeftBorderDoubleInnerBox=a>0||p>0?nA(t.left+_*2/3,t.top+I*2/3,a-_*2/3,p-I*2/3,AA.TOP_LEFT):new H(t.left+_*2/3,t.top+I*2/3),this.topRightBorderDoubleInnerBox=a>0||p>0?nA(t.left+S,t.top+I*2/3,u-$*2/3,g-I*2/3,AA.TOP_RIGHT):new H(t.left+t.width-$*2/3,t.top+I*2/3),this.bottomRightBorderDoubleInnerBox=m>0||F>0?nA(t.left+J,t.top+z,m-$*2/3,F-Z*2/3,AA.BOTTOM_RIGHT):new H(t.left+t.width-$*2/3,t.top+t.height-Z*2/3),this.bottomLeftBorderDoubleInnerBox=x>0||E>0?nA(t.left+_*2/3,t.top+N,x-_*2/3,E-Z*2/3,AA.BOTTOM_LEFT):new H(t.left+_*2/3,t.top+t.height-Z*2/3),this.topLeftBorderStroke=a>0||p>0?nA(t.left+_/2,t.top+I/2,a-_/2,p-I/2,AA.TOP_LEFT):new H(t.left+_/2,t.top+I/2),this.topRightBorderStroke=a>0||p>0?nA(t.left+S,t.top+I/2,u-$/2,g-I/2,AA.TOP_RIGHT):new H(t.left+t.width-$/2,t.top+I/2),this.bottomRightBorderStroke=m>0||F>0?nA(t.left+J,t.top+z,m-$/2,F-Z/2,AA.BOTTOM_RIGHT):new H(t.left+t.width-$/2,t.top+t.height-Z/2),this.bottomLeftBorderStroke=x>0||E>0?nA(t.left+_/2,t.top+N,x-_/2,E-Z/2,AA.BOTTOM_LEFT):new H(t.left+_/2,t.top+t.height-Z/2),this.topLeftBorderBox=a>0||p>0?nA(t.left,t.top,a,p,AA.TOP_LEFT):new H(t.left,t.top),this.topRightBorderBox=u>0||g>0?nA(t.left+S,t.top,u,g,AA.TOP_RIGHT):new H(t.left+t.width,t.top),this.bottomRightBorderBox=m>0||F>0?nA(t.left+J,t.top+z,m,F,AA.BOTTOM_RIGHT):new H(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=x>0||E>0?nA(t.left,t.top+N,x,E,AA.BOTTOM_LEFT):new H(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||p>0?nA(t.left+_,t.top+I,Math.max(0,a-_),Math.max(0,p-I),AA.TOP_LEFT):new H(t.left+_,t.top+I),this.topRightPaddingBox=u>0||g>0?nA(t.left+Math.min(S,t.width-$),t.top+I,S>t.width+$?0:Math.max(0,u-$),Math.max(0,g-I),AA.TOP_RIGHT):new H(t.left+t.width-$,t.top+I),this.bottomRightPaddingBox=m>0||F>0?nA(t.left+Math.min(J,t.width-_),t.top+Math.min(z,t.height-Z),Math.max(0,m-$),Math.max(0,F-Z),AA.BOTTOM_RIGHT):new H(t.left+t.width-$,t.top+t.height-Z),this.bottomLeftPaddingBox=x>0||E>0?nA(t.left+_,t.top+Math.min(N,t.height-Z),Math.max(0,x-_),Math.max(0,E-Z),AA.BOTTOM_LEFT):new H(t.left+_,t.top+t.height-Z),this.topLeftContentBox=a>0||p>0?nA(t.left+_+tA,t.top+I+cA,Math.max(0,a-(_+tA)),Math.max(0,p-(I+cA)),AA.TOP_LEFT):new H(t.left+_+tA,t.top+I+cA),this.topRightContentBox=u>0||g>0?nA(t.left+Math.min(S,t.width+_+tA),t.top+I+cA,S>t.width+_+tA?0:u-_+tA,g-(I+cA),AA.TOP_RIGHT):new H(t.left+t.width-($+bA),t.top+I+cA),this.bottomRightContentBox=m>0||F>0?nA(t.left+Math.min(J,t.width-(_+tA)),t.top+Math.min(z,t.height+I+cA),Math.max(0,m-($+bA)),F-(Z+yA),AA.BOTTOM_RIGHT):new H(t.left+t.width-($+bA),t.top+t.height-(Z+yA)),this.bottomLeftContentBox=x>0||E>0?nA(t.left+_+tA,t.top+N,Math.max(0,x-(_+tA)),E-(Z+yA),AA.BOTTOM_LEFT):new H(t.left+_+tA,t.top+t.height-(Z+yA))}return e})(),AA;(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"})(AA||(AA={}));var nA=function(e,A,r,t,n){var a=4*((Math.sqrt(2)-1)/3),p=r*a,B=t*a,u=e+r,g=A+t;switch(n){case AA.TOP_LEFT:return new Nt(new H(e,g),new H(e,g-B),new H(u-p,A),new H(u,A));case AA.TOP_RIGHT:return new Nt(new H(e,A),new H(e+p,A),new H(u,g-B),new H(u,g));case AA.BOTTOM_RIGHT:return new Nt(new H(u,A),new H(u,A+B),new H(e+p,g),new H(e,g));case AA.BOTTOM_LEFT:default:return new Nt(new H(u,g),new H(u-p,g),new H(e,A+B),new H(e,A))}},Pt=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},_d=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},_t=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Gd=(function(){function e(A,r,t){this.offsetX=A,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return e})(),Gt=(function(){function e(A,r){this.path=A,this.target=r,this.type=1}return e})(),Vd=(function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e})(),Xd=function(e){return e.type===0},Ri=function(e){return e.type===1},Yd=function(e){return e.type===2},Oi=function(e,A){return e.length===A.length?e.some(function(r,t){return r===A[t]}):!1},Jd=function(e,A,r,t,n){return e.map(function(a,p){switch(p){case 0:return a.add(A,r);case 1:return a.add(A+t,r);case 2:return a.add(A+t,r+n);case 3:return a.add(A,r+n)}return a})},Ni=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),Pi=(function(){function e(A,r){if(this.container=A,this.parent=r,this.effects=[],this.curves=new Pd(this.container),this.container.styles.opacity<1&&this.effects.push(new Vd(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new Gd(t,n,a))}if(this.container.styles.overflowX!==0){var p=Pt(this.curves),B=_t(this.curves);Oi(p,B)?this.effects.push(new Gt(p,6)):(this.effects.push(new Gt(p,2)),this.effects.push(new Gt(B,4)))}}return e.prototype.getEffects=function(A){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,n=this.effects.slice(0);t;){var a=t.effects.filter(function(u){return!Ri(u)});if(r||t.container.styles.position!==0||!t.parent){if(n.unshift.apply(n,a),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var p=Pt(t.curves),B=_t(t.curves);Oi(p,B)||n.unshift(new Gt(B,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(u){return pA(u.target,A)})},e})(),ws=function(e,A,r,t){e.container.elements.forEach(function(n){var a=pA(n.flags,4),p=pA(n.flags,2),B=new Pi(n,e);pA(n.styles.display,2048)&&t.push(B);var u=pA(n.flags,8)?[]:t;if(a||p){var g=a||n.styles.isPositioned()?r:A,w=new Ni(B);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var m=n.styles.zIndex.order;if(m<0){var F=0;g.negativeZIndex.some(function(x,E){return m>x.element.container.styles.zIndex.order?(F=E,!1):F>0}),g.negativeZIndex.splice(F,0,w)}else if(m>0){var k=0;g.positiveZIndex.some(function(x,E){return m>=x.element.container.styles.zIndex.order?(k=E+1,!1):k>0}),g.positiveZIndex.splice(k,0,w)}else g.zeroOrAutoZIndexOrTransformedOrOpacity.push(w)}else n.styles.isFloating()?g.nonPositionedFloats.push(w):g.nonPositionedInlineLevel.push(w);ws(B,w,a?w:r,u)}else n.styles.isInlineLevel()?A.inlineLevel.push(B):A.nonInlineLevel.push(B),ws(B,A,r,u);pA(n.flags,8)&&_i(n,u)})},_i=function(e,A){for(var r=e instanceof os?e.start:1,t=e instanceof os?e.reversed:!1,n=0;n<A.length;n++){var a=A[n];a.container instanceof ui&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=We(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},Wd=function(e){var A=new Pi(e,null),r=new Ni(A),t=[];return ws(A,r,r,t),_i(A.container,t),r},Gi=function(e,A){switch(A){case 0:return IA(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return IA(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return IA(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return IA(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},jd=function(e,A){switch(A){case 0:return IA(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return IA(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return IA(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return IA(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},$d=function(e,A){switch(A){case 0:return IA(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return IA(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return IA(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return IA(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},Zd=function(e,A){switch(A){case 0:return Vt(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Vt(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Vt(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Vt(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Vt=function(e,A){var r=[];return HA(e)?r.push(e.subdivide(.5,!1)):r.push(e),HA(A)?r.push(A.subdivide(.5,!0)):r.push(A),r},IA=function(e,A,r,t){var n=[];return HA(e)?n.push(e.subdivide(.5,!1)):n.push(e),HA(r)?n.push(r.subdivide(.5,!0)):n.push(r),HA(t)?n.push(t.subdivide(.5,!0).reverse()):n.push(t),HA(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},Vi=function(e){var A=e.bounds,r=e.styles;return A.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Xt=function(e){var A=e.styles,r=e.bounds,t=rA(A.paddingLeft,r.width),n=rA(A.paddingRight,r.width),a=rA(A.paddingTop,r.width),p=rA(A.paddingBottom,r.width);return r.add(t+A.borderLeftWidth,a+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+t+n),-(A.borderTopWidth+A.borderBottomWidth+a+p))},zd=function(e,A){return e===0?A.bounds:e===2?Xt(A):Vi(A)},qd=function(e,A){return e===0?A.bounds:e===2?Xt(A):Vi(A)},Cs=function(e,A,r){var t=zd(Fe(e.styles.backgroundOrigin,A),e),n=qd(Fe(e.styles.backgroundClip,A),e),a=Au(Fe(e.styles.backgroundSize,A),r,t),p=a[0],B=a[1],u=_e(Fe(e.styles.backgroundPosition,A),t.width-p,t.height-B),g=eu(Fe(e.styles.backgroundRepeat,A),u,a,t,n),w=Math.round(t.left+u[0]),m=Math.round(t.top+u[1]);return[g,w,m,p,B]},Qe=function(e){return eA(e)&&e.value===we.AUTO},Yt=function(e){return typeof e=="number"},Au=function(e,A,r){var t=A[0],n=A[1],a=A[2],p=e[0],B=e[1];if(!p)return[0,0];if(lA(p)&&B&&lA(B))return[rA(p,r.width),rA(B,r.height)];var u=Yt(a);if(eA(p)&&(p.value===we.CONTAIN||p.value===we.COVER)){if(Yt(a)){var g=r.width/r.height;return g<a!=(p.value===we.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var w=Yt(t),m=Yt(n),F=w||m;if(Qe(p)&&(!B||Qe(B))){if(w&&m)return[t,n];if(!u&&!F)return[r.width,r.height];if(F&&u){var k=w?t:n*a,x=m?n:t/a;return[k,x]}var E=w?t:r.width,Y=m?n:r.height;return[E,Y]}if(u){var K=0,S=0;return lA(p)?K=rA(p,r.width):lA(B)&&(S=rA(B,r.height)),Qe(p)?K=S*a:(!B||Qe(B))&&(S=K/a),[K,S]}var z=null,J=null;if(lA(p)?z=rA(p,r.width):B&&lA(B)&&(J=rA(B,r.height)),z!==null&&(!B||Qe(B))&&(J=w&&m?z/t*n:r.height),J!==null&&Qe(p)&&(z=w&&m?J/n*t:r.width),z!==null&&J!==null)return[z,J];throw new Error("Unable to calculate background-size for element")},Fe=function(e,A){var r=e[A];return typeof r>"u"?e[0]:r},eu=function(e,A,r,t,n){var a=A[0],p=A[1],B=r[0],u=r[1];switch(e){case 2:return[new H(Math.round(t.left),Math.round(t.top+p)),new H(Math.round(t.left+t.width),Math.round(t.top+p)),new H(Math.round(t.left+t.width),Math.round(u+t.top+p)),new H(Math.round(t.left),Math.round(u+t.top+p))];case 3:return[new H(Math.round(t.left+a),Math.round(t.top)),new H(Math.round(t.left+a+B),Math.round(t.top)),new H(Math.round(t.left+a+B),Math.round(t.height+t.top)),new H(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new H(Math.round(t.left+a),Math.round(t.top+p)),new H(Math.round(t.left+a+B),Math.round(t.top+p)),new H(Math.round(t.left+a+B),Math.round(t.top+p+u)),new H(Math.round(t.left+a),Math.round(t.top+p+u))];default:return[new H(Math.round(n.left),Math.round(n.top)),new H(Math.round(n.left+n.width),Math.round(n.top)),new H(Math.round(n.left+n.width),Math.round(n.height+n.top)),new H(Math.round(n.left),Math.round(n.height+n.top))]}},tu="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Xi="Hidden Text",ru=(function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,r){var t=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),p=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",p.appendChild(t),n.src=tu,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=A,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(Xi)),t.appendChild(a),t.appendChild(n);var B=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode(Xi)),t.style.lineHeight="normal",n.style.verticalAlign="super";var u=n.offsetTop-t.offsetTop+2;return p.removeChild(t),{baseline:B,middle:u}},e.prototype.getMetrics=function(A,r){var t=A+" "+r;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(A,r)),this._data[t]},e})(),Yi=(function(){function e(A,r){this.context=A,this.options=r}return e})(),su=1e4,nu=(function(e){s(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new ru(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return A.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(n){return t.applyEffect(n)})},A.prototype.applyEffect=function(r){this.ctx.save(),Yd(r)&&(this.ctx.globalAlpha=r.opacity),Xd(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),Ri(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(r){return o(this,void 0,void 0,function(){var t;return c(this,function(n){switch(n.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(r){return o(this,void 0,void 0,function(){return c(this,function(t){switch(t.label){case 0:if(pA(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(r,t,n){var a=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+n);else{var p=is(r.text);p.reduce(function(B,u){return a.ctx.fillText(u,B,r.bounds.top+n),B+a.ctx.measureText(u).width},r.bounds.left)}},A.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(p){return p==="normal"||p==="small-caps"}).join(""),n=cu(r.fontFamily).join(", "),a=Pe(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,t,r.fontWeight,a,n].join(" "),n,a]},A.prototype.renderTextNode=function(r,t){return o(this,void 0,void 0,function(){var n,a,p,B,u,g,w,m,F=this;return c(this,function(k){return n=this.createFontStyle(t),a=n[0],p=n[1],B=n[2],this.ctx.font=a,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",u=this.fontMetrics.getMetrics(p,B),g=u.baseline,w=u.middle,m=t.paintOrder,r.textBounds.forEach(function(x){m.forEach(function(E){switch(E){case 0:F.ctx.fillStyle=dA(t.color),F.renderTextWithLetterSpacing(x,t.letterSpacing,g);var Y=t.textShadow;Y.length&&x.text.trim().length&&(Y.slice(0).reverse().forEach(function(K){F.ctx.shadowColor=dA(K.color),F.ctx.shadowOffsetX=K.offsetX.number*F.options.scale,F.ctx.shadowOffsetY=K.offsetY.number*F.options.scale,F.ctx.shadowBlur=K.blur.number,F.renderTextWithLetterSpacing(x,t.letterSpacing,g)}),F.ctx.shadowColor="",F.ctx.shadowOffsetX=0,F.ctx.shadowOffsetY=0,F.ctx.shadowBlur=0),t.textDecorationLine.length&&(F.ctx.fillStyle=dA(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(K){switch(K){case 1:F.ctx.fillRect(x.bounds.left,Math.round(x.bounds.top+g),x.bounds.width,1);break;case 2:F.ctx.fillRect(x.bounds.left,Math.round(x.bounds.top),x.bounds.width,1);break;case 3:F.ctx.fillRect(x.bounds.left,Math.ceil(x.bounds.top+w),x.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&x.text.trim().length&&(F.ctx.strokeStyle=dA(t.webkitTextStrokeColor),F.ctx.lineWidth=t.webkitTextStrokeWidth,F.ctx.lineJoin=window.chrome?"miter":"round",F.ctx.strokeText(x.text,x.bounds.left,x.bounds.top+g)),F.ctx.strokeStyle="",F.ctx.lineWidth=0,F.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(r,t,n){if(n&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=Xt(r),p=_t(t);this.path(p),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(r){return o(this,void 0,void 0,function(){var t,n,a,p,B,u,S,S,g,w,m,F,J,k,x,N,E,Y,K,S,z,J,N;return c(this,function(I){switch(I.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,p=0,B=t.textNodes,I.label=1;case 1:return p<B.length?(u=B[p],[4,this.renderTextNode(u,a)]):[3,4];case 2:I.sent(),I.label=3;case 3:return p++,[3,1];case 4:if(!(t instanceof ci))return[3,8];I.label=5;case 5:return I.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return S=I.sent(),this.renderReplacedElement(t,n,S),[3,8];case 7:return I.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof pi&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof di))return[3,12];I.label=9;case 9:return I.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return S=I.sent(),this.renderReplacedElement(t,n,S),[3,12];case 11:return I.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof fi&&t.tree?(g=new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,g.render(t.tree)]):[3,14];case 13:w=I.sent(),t.width&&t.height&&this.ctx.drawImage(w,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),I.label=14;case 14:if(t instanceof as&&(m=Math.min(t.bounds.width,t.bounds.height),t.type===Tt?t.checked&&(this.ctx.save(),this.path([new H(t.bounds.left+m*.39363,t.bounds.top+m*.79),new H(t.bounds.left+m*.16,t.bounds.top+m*.5549),new H(t.bounds.left+m*.27347,t.bounds.top+m*.44071),new H(t.bounds.left+m*.39694,t.bounds.top+m*.5649),new H(t.bounds.left+m*.72983,t.bounds.top+m*.23),new H(t.bounds.left+m*.84,t.bounds.top+m*.34085),new H(t.bounds.left+m*.39363,t.bounds.top+m*.79)]),this.ctx.fillStyle=dA(Bi),this.ctx.fill(),this.ctx.restore()):t.type===Kt&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+m/2,t.bounds.top+m/2,m/4,0,Math.PI*2,!0),this.ctx.fillStyle=dA(Bi),this.ctx.fill(),this.ctx.restore())),iu(t)&&t.value.length){switch(F=this.createFontStyle(a),J=F[0],k=F[1],x=this.fontMetrics.getMetrics(J,k).baseline,this.ctx.font=J,this.ctx.fillStyle=dA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=au(t.styles.textAlign),N=Xt(t),E=0,t.styles.textAlign){case 1:E+=N.width/2;break;case 2:E+=N.width;break}Y=N.add(E,0,0,-N.height/2+1),this.ctx.save(),this.path([new H(N.left,N.top),new H(N.left+N.width,N.top),new H(N.left+N.width,N.top+N.height),new H(N.left,N.top+N.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ye(t.value,Y),a.letterSpacing,x),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!pA(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(K=t.styles.listStyleImage,K.type!==0)return[3,18];S=void 0,z=K.url,I.label=15;case 15:return I.trys.push([15,17,,18]),[4,this.context.cache.match(z)];case 16:return S=I.sent(),this.ctx.drawImage(S,t.bounds.left-(S.width+10),t.bounds.top),[3,18];case 17:return I.sent(),this.context.logger.error("Error loading list-style-image "+z),[3,18];case 18:return[3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(J=this.createFontStyle(a)[0],this.ctx.font=J,this.ctx.fillStyle=dA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",N=new h(t.bounds.left,t.bounds.top+rA(t.styles.paddingTop,t.bounds.width),t.bounds.width,Xn(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ye(r.listValue,N),a.letterSpacing,Xn(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),I.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(r){return o(this,void 0,void 0,function(){var t,n,K,a,p,K,B,u,K,g,w,K,m,F,K,k,x,K,E,Y,K;return c(this,function(S){switch(S.label){case 0:if(pA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:S.sent(),t=0,n=r.negativeZIndex,S.label=2;case 2:return t<n.length?(K=n[t],[4,this.renderStack(K)]):[3,5];case 3:S.sent(),S.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:S.sent(),a=0,p=r.nonInlineLevel,S.label=7;case 7:return a<p.length?(K=p[a],[4,this.renderNode(K)]):[3,10];case 8:S.sent(),S.label=9;case 9:return a++,[3,7];case 10:B=0,u=r.nonPositionedFloats,S.label=11;case 11:return B<u.length?(K=u[B],[4,this.renderStack(K)]):[3,14];case 12:S.sent(),S.label=13;case 13:return B++,[3,11];case 14:g=0,w=r.nonPositionedInlineLevel,S.label=15;case 15:return g<w.length?(K=w[g],[4,this.renderStack(K)]):[3,18];case 16:S.sent(),S.label=17;case 17:return g++,[3,15];case 18:m=0,F=r.inlineLevel,S.label=19;case 19:return m<F.length?(K=F[m],[4,this.renderNode(K)]):[3,22];case 20:S.sent(),S.label=21;case 21:return m++,[3,19];case 22:k=0,x=r.zeroOrAutoZIndexOrTransformedOrOpacity,S.label=23;case 23:return k<x.length?(K=x[k],[4,this.renderStack(K)]):[3,26];case 24:S.sent(),S.label=25;case 25:return k++,[3,23];case 26:E=0,Y=r.positiveZIndex,S.label=27;case 27:return E<Y.length?(K=Y[E],[4,this.renderStack(K)]):[3,30];case 28:S.sent(),S.label=29;case 29:return E++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(r){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(r.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},A.prototype.formatPath=function(r){var t=this;r.forEach(function(n,a){var p=HA(n)?n.start:n;a===0?t.ctx.moveTo(p.x,p.y):t.ctx.lineTo(p.x,p.y),HA(n)&&t.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(r,t,n,a){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},A.prototype.resizeImage=function(r,t,n){var a;if(r.width===t&&r.height===n)return r;var p=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,B=p.createElement("canvas");B.width=Math.max(1,t),B.height=Math.max(1,n);var u=B.getContext("2d");return u.drawImage(r,0,0,r.width,r.height,0,0,t,n),B},A.prototype.renderBackgroundImage=function(r){return o(this,void 0,void 0,function(){var t,n,a,p,B,u;return c(this,function(g){switch(g.label){case 0:t=r.styles.backgroundImage.length-1,n=function(w){var m,F,k,cA,vA,QA,tA,fA,Z,x,cA,vA,QA,tA,fA,E,Y,K,S,z,J,N,I,$,Z,_,cA,bA,yA,tA,fA,ee,vA,QA,ae,DA,te,le,ce,PA,pe,_A;return c(this,function(ye){switch(ye.label){case 0:if(w.type!==0)return[3,5];m=void 0,F=w.url,ye.label=1;case 1:return ye.trys.push([1,3,,4]),[4,a.context.cache.match(F)];case 2:return m=ye.sent(),[3,4];case 3:return ye.sent(),a.context.logger.error("Error loading background-image "+F),[3,4];case 4:return m&&(k=Cs(r,t,[m.width,m.height,m.width/m.height]),cA=k[0],vA=k[1],QA=k[2],tA=k[3],fA=k[4],Z=a.ctx.createPattern(a.resizeImage(m,tA,fA),"repeat"),a.renderRepeat(cA,Z,vA,QA)),[3,6];case 5:Xl(w)?(x=Cs(r,t,[null,null,null]),cA=x[0],vA=x[1],QA=x[2],tA=x[3],fA=x[4],E=Nl(w.angle,tA,fA),Y=E[0],K=E[1],S=E[2],z=E[3],J=E[4],N=document.createElement("canvas"),N.width=tA,N.height=fA,I=N.getContext("2d"),$=I.createLinearGradient(K,z,S,J),Tn(w.stops,Y).forEach(function($e){return $.addColorStop($e.stop,dA($e.color))}),I.fillStyle=$,I.fillRect(0,0,tA,fA),tA>0&&fA>0&&(Z=a.ctx.createPattern(N,"repeat"),a.renderRepeat(cA,Z,vA,QA))):Yl(w)&&(_=Cs(r,t,[null,null,null]),cA=_[0],bA=_[1],yA=_[2],tA=_[3],fA=_[4],ee=w.position.length===0?[Xr]:w.position,vA=rA(ee[0],tA),QA=rA(ee[ee.length-1],fA),ae=Pl(w,vA,QA,tA,fA),DA=ae[0],te=ae[1],DA>0&&te>0&&(le=a.ctx.createRadialGradient(bA+vA,yA+QA,0,bA+vA,yA+QA,DA),Tn(w.stops,DA*2).forEach(function($e){return le.addColorStop($e.stop,dA($e.color))}),a.path(cA),a.ctx.fillStyle=le,DA!==te?(ce=r.bounds.left+.5*r.bounds.width,PA=r.bounds.top+.5*r.bounds.height,pe=te/DA,_A=1/pe,a.ctx.save(),a.ctx.translate(ce,PA),a.ctx.transform(1,0,0,pe,0,0),a.ctx.translate(-ce,-PA),a.ctx.fillRect(bA,_A*(yA-PA)+PA,tA,fA*_A),a.ctx.restore()):a.ctx.fill())),ye.label=6;case 6:return t--,[2]}})},a=this,p=0,B=r.styles.backgroundImage.slice(0).reverse(),g.label=1;case 1:return p<B.length?(u=B[p],[5,n(u)]):[3,4];case 2:g.sent(),g.label=3;case 3:return p++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(r,t,n){return o(this,void 0,void 0,function(){return c(this,function(a){return this.path(Gi(n,t)),this.ctx.fillStyle=dA(r),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(r,t,n,a){return o(this,void 0,void 0,function(){var p,B;return c(this,function(u){switch(u.label){case 0:return t<3?[4,this.renderSolidBorder(r,n,a)]:[3,2];case 1:return u.sent(),[2];case 2:return p=jd(a,n),this.path(p),this.ctx.fillStyle=dA(r),this.ctx.fill(),B=$d(a,n),this.path(B),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(r){return o(this,void 0,void 0,function(){var t,n,a,p,B,u,g,w,m=this;return c(this,function(F){switch(F.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,n=!ZA(t.backgroundColor)||t.backgroundImage.length,a=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],p=ou(Fe(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(p),this.ctx.clip(),ZA(t.backgroundColor)||(this.ctx.fillStyle=dA(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:F.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(k){m.ctx.save();var x=Pt(r.curves),E=k.inset?0:su,Y=Jd(x,-E+(k.inset?1:-1)*k.spread.number,(k.inset?1:-1)*k.spread.number,k.spread.number*(k.inset?-2:2),k.spread.number*(k.inset?-2:2));k.inset?(m.path(x),m.ctx.clip(),m.mask(Y)):(m.mask(x),m.ctx.clip(),m.path(Y)),m.ctx.shadowOffsetX=k.offsetX.number+E,m.ctx.shadowOffsetY=k.offsetY.number,m.ctx.shadowColor=dA(k.color),m.ctx.shadowBlur=k.blur.number,m.ctx.fillStyle=k.inset?dA(k.color):"rgba(0,0,0,1)",m.ctx.fill(),m.ctx.restore()}),F.label=2;case 2:B=0,u=0,g=a,F.label=3;case 3:return u<g.length?(w=g[u],w.style!==0&&!ZA(w.color)&&w.width>0?w.style!==2?[3,5]:[4,this.renderDashedDottedBorder(w.color,w.width,B,r.curves,2)]:[3,11]):[3,13];case 4:return F.sent(),[3,11];case 5:return w.style!==3?[3,7]:[4,this.renderDashedDottedBorder(w.color,w.width,B,r.curves,3)];case 6:return F.sent(),[3,11];case 7:return w.style!==4?[3,9]:[4,this.renderDoubleBorder(w.color,w.width,B,r.curves)];case 8:return F.sent(),[3,11];case 9:return[4,this.renderSolidBorder(w.color,B,r.curves)];case 10:F.sent(),F.label=11;case 11:B++,F.label=12;case 12:return u++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(r,t,n,a,p){return o(this,void 0,void 0,function(){var B,u,g,w,m,F,k,x,E,Y,K,S,z,J,N,I,N,I;return c(this,function($){return this.ctx.save(),B=Zd(a,n),u=Gi(a,n),p===2&&(this.path(u),this.ctx.clip()),HA(u[0])?(g=u[0].start.x,w=u[0].start.y):(g=u[0].x,w=u[0].y),HA(u[1])?(m=u[1].end.x,F=u[1].end.y):(m=u[1].x,F=u[1].y),n===0||n===2?k=Math.abs(g-m):k=Math.abs(w-F),this.ctx.beginPath(),p===3?this.formatPath(B):this.formatPath(u.slice(0,2)),x=t<3?t*3:t*2,E=t<3?t*2:t,p===3&&(x=t,E=t),Y=!0,k<=x*2?Y=!1:k<=x*2+E?(K=k/(2*x+E),x*=K,E*=K):(S=Math.floor((k+E)/(x+E)),z=(k-S*x)/(S-1),J=(k-(S+1)*x)/S,E=J<=0||Math.abs(E-z)<Math.abs(E-J)?z:J),Y&&(p===3?this.ctx.setLineDash([0,x+E]):this.ctx.setLineDash([x,E])),p===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=dA(r),this.ctx.stroke(),this.ctx.setLineDash([]),p===2&&(HA(u[0])&&(N=u[3],I=u[0],this.ctx.beginPath(),this.formatPath([new H(N.end.x,N.end.y),new H(I.start.x,I.start.y)]),this.ctx.stroke()),HA(u[1])&&(N=u[1],I=u[2],this.ctx.beginPath(),this.formatPath([new H(N.end.x,N.end.y),new H(I.start.x,I.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(r){return o(this,void 0,void 0,function(){var t;return c(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=dA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Wd(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(Yi),iu=function(e){return e instanceof gi||e instanceof hi?!0:e instanceof as&&e.type!==Kt&&e.type!==Tt},ou=function(e,A){switch(e){case 0:return Pt(A);case 2:return _d(A);default:return _t(A)}},au=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},lu=["-apple-system","system-ui"],cu=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return lu.indexOf(A)===-1}):e},pu=(function(e){s(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),n}return A.prototype.render=function(r){return o(this,void 0,void 0,function(){var t,n;return c(this,function(a){switch(a.label){case 0:return t=ns(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,du(t)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=dA(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})(Yi),du=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},uu=(function(){function e(A){var r=A.id,t=A.enabled;this.id=r,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,d([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=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,d([this.id,this.getTime()+"ms"],A))},e.prototype.warn=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,d([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.error=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,d([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e})(),Bu=(function(){function e(A,r){var t;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new uu({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new Td(this,A)}return e.instanceCount=1,e})(),hu=function(e,A){return A===void 0&&(A={}),gu(e,A)};typeof window<"u"&&Mi.setContext(window);var gu=function(e,A){return o(void 0,void 0,void 0,function(){var r,t,n,a,p,B,u,g,w,m,F,k,x,E,Y,K,S,z,J,N,$,I,$,Z,_,cA,bA,yA,tA,fA,ee,vA,QA,ae,DA,te,le,ce,PA,pe;return c(this,function(_A){switch(_A.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return n={allowTaint:(Z=A.allowTaint)!==null&&Z!==void 0?Z:!1,imageTimeout:(_=A.imageTimeout)!==null&&_!==void 0?_:15e3,proxy:A.proxy,useCORS:(cA=A.useCORS)!==null&&cA!==void 0?cA:!1},a=i({logging:(bA=A.logging)!==null&&bA!==void 0?bA:!0,cache:A.cache},n),p={windowWidth:(yA=A.windowWidth)!==null&&yA!==void 0?yA:t.innerWidth,windowHeight:(tA=A.windowHeight)!==null&&tA!==void 0?tA:t.innerHeight,scrollX:(fA=A.scrollX)!==null&&fA!==void 0?fA:t.pageXOffset,scrollY:(ee=A.scrollY)!==null&&ee!==void 0?ee:t.pageYOffset},B=new h(p.scrollX,p.scrollY,p.windowWidth,p.windowHeight),u=new Bu(a,B),g=(vA=A.foreignObjectRendering)!==null&&vA!==void 0?vA:!1,w={allowTaint:(QA=A.allowTaint)!==null&&QA!==void 0?QA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:g,copyStyles:g},u.logger.debug("Starting document clone with size "+B.width+"x"+B.height+" scrolled to "+-B.left+","+-B.top),m=new Ki(u,e,w),F=m.clonedReferenceElement,F?[4,m.toIFrame(r,B)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return k=_A.sent(),x=cs(F)||fd(F)?C(F.ownerDocument):f(u,F),E=x.width,Y=x.height,K=x.left,S=x.top,z=fu(u,F,A.backgroundColor),J={canvas:A.canvas,backgroundColor:z,scale:(DA=(ae=A.scale)!==null&&ae!==void 0?ae:t.devicePixelRatio)!==null&&DA!==void 0?DA:1,x:((te=A.x)!==null&&te!==void 0?te:0)+K,y:((le=A.y)!==null&&le!==void 0?le:0)+S,width:(ce=A.width)!==null&&ce!==void 0?ce:Math.ceil(E),height:(PA=A.height)!==null&&PA!==void 0?PA:Math.ceil(Y)},g?(u.logger.debug("Document cloned, using foreign object rendering"),$=new pu(u,J),[4,$.render(F)]):[3,3];case 2:return N=_A.sent(),[3,5];case 3:return u.logger.debug("Document cloned, element located at "+K+","+S+" with size "+E+"x"+Y+" using computed rendering"),u.logger.debug("Starting DOM parsing"),I=Ci(u,F),z===I.styles.backgroundColor&&(I.styles.backgroundColor=OA.TRANSPARENT),u.logger.debug("Starting renderer for element at "+J.x+","+J.y+" with size "+J.width+"x"+J.height),$=new nu(u,J),[4,$.render(I)];case 4:N=_A.sent(),_A.label=5;case 5:return(!((pe=A.removeContainer)!==null&&pe!==void 0)||pe)&&(Ki.destroy(k)||u.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.logger.debug("Finished rendering"),[2,N]}})})},fu=function(e,A,r){var t=A.ownerDocument,n=t.documentElement?Ge(e,getComputedStyle(t.documentElement).backgroundColor):OA.TRANSPARENT,a=t.body?Ge(e,getComputedStyle(t.body).backgroundColor):OA.TRANSPARENT,p=typeof r=="string"?Ge(e,r):r===null?OA.TRANSPARENT:4294967295;return A===t.documentElement?ZA(n)?ZA(a)?p:a:n:p};return hu}))});var MB={};Fu(MB,{initSiteping:()=>DB});var kA,bs,Zi;function zi(l,s){if(Zi=new Date,l.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(l.tagName.toLowerCase()==="html")return"html";let i={root:document.body,idName:c=>!0,className:c=>!0,tagName:c=>!0,attr:(c,d)=>!1,seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};kA={...i,...s},bs=xu(kA.root,i);let o=Wt(l,"all",()=>Wt(l,"two",()=>Wt(l,"one",()=>Wt(l,"none"))));if(o){let c=eo(to(o,l));return c.length>0&&(o=c[0]),Zt(o)}else throw new Error("Selector was not found.")}function xu(l,s){return l.nodeType===Node.DOCUMENT_NODE?l:l===s.root?l.ownerDocument:l}function Wt(l,s,i){let o=null,c=[],d=l,h=0;for(;d;){let f=new Date().getTime()-Zi.getTime();if(kA.timeoutMs!==void 0&&f>kA.timeoutMs)throw new Error(`Timeout: Can't find a unique selector after ${f}ms`);let C=$t(Eu(d))||$t(...Hu(d))||$t(...Iu(d))||$t(ku(d))||[$i()],Q=Lu(d);if(s=="all")Q&&(C=C.concat(C.filter(ms).map(v=>jt(v,Q))));else if(s=="two")C=C.slice(0,1),Q&&(C=C.concat(C.filter(ms).map(v=>jt(v,Q))));else if(s=="one"){let[v]=C=C.slice(0,1);Q&&ms(v)&&(C=[jt(v,Q)])}else s=="none"&&(C=[$i()],Q&&(C=[jt(C[0],Q)]));for(let v of C)v.level=h;if(c.push(C),c.length>=kA.seedMinLength&&(o=Wi(c,i),o))break;d=d.parentElement,h++}return o||(o=Wi(c,i)),!o&&i?i():o}function Wi(l,s){let i=eo(Ao(l));if(i.length>kA.threshold)return s?s():null;for(let o of i)if(qi(o))return o;return null}function Zt(l){let s=l[0],i=s.name;for(let o=1;o<l.length;o++){let c=l[o].level||0;s.level===c-1?i=`${l[o].name} > ${i}`:i=`${l[o].name} ${i}`,s=l[o]}return i}function ji(l){return l.map(s=>s.penalty).reduce((s,i)=>s+i,0)}function qi(l){let s=Zt(l);switch(bs.querySelectorAll(s).length){case 0:throw new Error(`Can't select any node with this selector: ${s}`);case 1:return!0;default:return!1}}function Eu(l){let s=l.getAttribute("id");return s&&kA.idName(s)?{name:"#"+CSS.escape(s),penalty:0}:null}function Hu(l){return Array.from(l.attributes).filter(i=>kA.attr(i.name,i.value)).map(i=>({name:`[${CSS.escape(i.name)}="${CSS.escape(i.value)}"]`,penalty:.5}))}function Iu(l){return Array.from(l.classList).filter(kA.className).map(i=>({name:"."+CSS.escape(i),penalty:1}))}function ku(l){let s=l.tagName.toLowerCase();return kA.tagName(s)?{name:s,penalty:2}:null}function $i(){return{name:"*",penalty:3}}function Lu(l){let s=l.parentNode;if(!s)return null;let i=s.firstChild;if(!i)return null;let o=0;for(;i&&(i.nodeType===Node.ELEMENT_NODE&&o++,i!==l);)i=i.nextSibling;return o}function jt(l,s){return{name:l.name+`:nth-child(${s})`,penalty:l.penalty+1}}function ms(l){return l.name!=="html"&&!l.name.startsWith("#")}function $t(...l){let s=l.filter(Su);return s.length>0?s:null}function Su(l){return l!=null}function*Ao(l,s=[]){if(l.length>0)for(let i of l[0])yield*Ao(l.slice(1,l.length),s.concat(i));else yield s}function eo(l){return[...l].sort((s,i)=>ji(s)-ji(i))}function*to(l,s,i={counter:0,visited:new Map}){if(l.length>2&&l.length>kA.optimizedMinLength)for(let o=1;o<l.length-1;o++){if(i.counter>kA.maxNumberOfTries)return;i.counter+=1;let c=[...l];c.splice(o,1);let d=Zt(c);if(i.visited.has(d))return;qi(c)&&Tu(c,s)&&(yield c,i.visited.set(d,!0),yield*to(c,s,i))}}function Tu(l,s){return bs.querySelector(Zt(l))===s}var Ku=["role","aria-label","type","name","href","src","data-testid","data-id"];function Du(l){let s=5381;for(let i=0;i<l.length;i++)s=(s<<5)+s+l.charCodeAt(i)|0;return(s>>>0).toString(36)}function vs(l){let s=l.children.length,i=0,o=l.parentElement;if(o)for(let h of o.children){if(h===l)break;h.tagName===l.tagName&&i++}let c=[];for(let h of Ku){let f=l.getAttribute(h);f&&c.push(`${h}=${f}`)}let d=c.length>0?Du(c.join(",")):"0";return`${s}:${i}:${d}`}function ro(l,s){let i=s.split(":");if(i.length!==3)return 0;let[o,c,d]=i,h=Number(o),f=Number(c);if(Number.isNaN(h)||Number.isNaN(f))return 0;let C=vs(l),[Q,v,y]=C.split(":"),T=0,O=Math.abs(Number(Q)-h);O===0?T+=.2:O<=2?T+=.1:O<=5&&(T+=.03);let G=Math.abs(Number(v)-f);return G===0?T+=.4:G===1?T+=.2:G<=3&&(T+=.08),y===d&&(T+=.4),T}function Ue(l,s){let i=s==="before"?"previousElementSibling":"nextElementSibling",o=l[i],c=3;for(;o&&c>0;){let d=o.textContent?.trim();if(d)return s==="before"?d.slice(-32):d.slice(0,32);o=o[i],c--}return""}function zt(l){let s=l.previousElementSibling?.textContent?.trim().slice(0,40)??"",i=l.nextElementSibling?.textContent?.trim().slice(0,40)??"";return[s,i].filter(Boolean).join(" | ")}function so(l){if(l.id){let o=l.id.includes("'")?`concat('${l.id.replace(/'/g,`',"'",'`)}')`:`'${l.id}'`;return`//${l.localName}[@id=${o}]`}let s=[],i=l;for(;i&&i!==document.body&&s.length<6;){let o=i.localName,c=i.parentElement;if(i.id){let h=i.id.includes("'")?`concat('${i.id.replace(/'/g,`',"'",'`)}')`:`'${i.id}'`;return s.unshift(`/${o}[@id=${h}]`),"/"+s.join("")}let d=1;if(c)for(let h of c.children){if(h===i)break;h.localName===o&&d++}s.unshift(`/${o}[${d}]`),i=c}return"/html/body"+s.join("")}var Ze="data-feedback-anchor";function Qs(l){let s=zi(l,{className:y=>!/^(css|sc|emotion|styled)-/.test(y)&&!/^[a-z]{1,3}[A-Za-z0-9]{4,8}$/.test(y),attr:y=>["data-testid","data-id","role","aria-label"].includes(y),idName:y=>!y.startsWith("radix-")&&!/^:r[0-9]+:$/.test(y),seedMinLength:3,optimizedMinLength:2}),i=so(l),c=(l.textContent?.trim()??"").slice(0,120),d=Ue(l,"before"),h=Ue(l,"after"),f=vs(l),C=zt(l),v=l.closest(`[${Ze}]`)?.getAttribute(Ze)??null;return{cssSelector:s,xpath:i,textSnippet:c,textPrefix:d,textSuffix:h,fingerprint:f,neighborText:C,elementTag:l.tagName,elementId:l.id||void 0,anchorKey:v}}function no(l,s){let i=l.getBoundingClientRect();return i.left<=s.x&&i.top<=s.y&&i.right>=s.x+s.width&&i.bottom>=s.y+s.height}function io(l,s=document.documentElement){let i=l.x+l.width/2,o=l.y+l.height/2,c=document.elementFromPoint(i,o);if(!c||c===s)return document.body;let d=c;for(;d&&d!==document.body;){if(d.hasAttribute(Ze)&&no(d,l))return d;d=d.parentElement}for(d=c;d&&d!==document.body;){if(no(d,l))return d;d=d.parentElement}return document.body}function oo(l,s){return s.width<=0||s.height<=0?{xPct:0,yPct:0,wPct:1,hPct:1}:{xPct:(l.x-s.x)/s.width,yPct:(l.y-s.y)/s.height,wPct:l.width/s.width,hPct:l.height/s.height}}function P(l){let o=document.createRange().createContextualFragment(l).firstElementChild;if(!o||o.nodeName.toLowerCase()!=="svg")throw new Error("[siteping] Invalid SVG string");for(let c of[...o.attributes])c.name.startsWith("on")&&o.removeAttribute(c.name);for(let c of o.querySelectorAll("*"))for(let d of[...c.attributes])d.name.startsWith("on")&&c.removeAttribute(d.name);return o}function b(l,s){let i=document.createElement(l);if(s)for(let[o,c]of Object.entries(s))o==="class"?i.className=c:o==="style"?i.style.cssText=c:i.setAttribute(o,c);return i}function U(l,s){l.textContent=s}function qt(l,s="en"){let i=Date.now()-new Date(l).getTime(),o=Math.floor(i/1e3);if(o<60)return new Intl.RelativeTimeFormat(s,{numeric:"auto"}).format(0,"second");let c=new Intl.RelativeTimeFormat(s,{numeric:"always",style:"narrow"}),d=Math.floor(o/60);if(d<60)return c.format(-d,"minute");let h=Math.floor(d/60);if(h<24)return c.format(-h,"hour");let f=Math.floor(h/24);return f<7?c.format(-f,"day"):new Date(l).toLocaleDateString(s)}var Fs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><circle cx="12" cy="10" r="1" fill="currentColor" stroke="none"/><circle cx="8" cy="10" r="1" fill="currentColor" stroke="none"/><circle cx="16" cy="10" r="1" fill="currentColor" stroke="none"/></svg>',ao='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>',lo='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18"/><path d="M9 3v18"/></svg>',ys='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',Us='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/><path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/><line x1="1" y1="1" x2="23" y2="23"/></svg>',Ar='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',co='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>',er='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>',tr='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>',rr='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>',sr='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="8" y="6" width="8" height="14" rx="4"/><path d="M19 9h2"/><path d="M3 9h2"/><path d="M19 13h2"/><path d="M3 13h2"/><path d="M19 17h2"/><path d="M3 17h2"/><path d="M10 2h4"/></svg>',nr='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',xs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/></svg>',po='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="3" fill="currentColor" stroke="none"/></svg>',uo='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>',Bo='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>',Es='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/></svg>';var go="#0066ff",Mu=/^#[0-9a-fA-F]{6}$/,ho=/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,Ru=/^#[0-9a-fA-F]{8}$/;function Ou(l){if(Mu.test(l))return l;let s=ho.test(l)?l.match(ho):null;return s?`#${s[1]}${s[1]}${s[2]}${s[2]}${s[3]}${s[3]}`:Ru.test(l)?l.slice(0,7):(console.warn(`[siteping] Invalid accentColor "${l}" \u2014 only hex colors (#RGB, #RRGGBB, #RRGGBBAA) are supported. Using default.`),go)}function Nu(l,s){let i=Math.max(0,Math.round(parseInt(l.slice(1,3),16)*(1-s))),o=Math.max(0,Math.round(parseInt(l.slice(3,5),16)*(1-s))),c=Math.max(0,Math.round(parseInt(l.slice(5,7),16)*(1-s)));return`#${i.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`}function Pu(){return typeof window>"u"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}function _u(l){return l==="dark"||l==="auto"&&Pu()?"dark":"light"}function fo(l=go,s){let i=Ou(l),o=Nu(i,.15);return _u(s)==="dark"?{accent:i,accentLight:i+"22",accentDark:o,accentGlow:i+"44",accentGradient:`linear-gradient(135deg, ${i}, ${o})`,bg:"#0f172a",bgHover:"#1e293b",text:"#f1f5f9",textSecondary:"#94a3b8",textTertiary:"#64748b",border:"#334155",shadow:"rgba(0, 0, 0, 0.3)",glassBg:"rgba(15, 23, 42, 0.78)",glassBgHeavy:"rgba(15, 23, 42, 0.88)",glassBorder:"rgba(51, 65, 85, 0.5)",glassBorderSubtle:"rgba(51, 65, 85, 0.3)",typeQuestion:"#60a5fa",typeChange:"#fbbf24",typeBug:"#f87171",typeOther:"#94a3b8",typeQuestionBg:"rgba(59, 130, 246, 0.15)",typeChangeBg:"rgba(245, 158, 11, 0.15)",typeBugBg:"rgba(239, 68, 68, 0.15)",typeOtherBg:"rgba(100, 116, 139, 0.15)",statusOpen:"#4ade80",statusOpenBg:"rgba(74, 222, 128, 0.15)",statusResolved:"#94a3b8",statusResolvedBg:"rgba(148, 163, 184, 0.15)"}:{accent:i,accentLight:i+"14",accentDark:o,accentGlow:i+"33",accentGradient:`linear-gradient(135deg, ${i}, ${o})`,bg:"#ffffff",bgHover:"#f8f9fb",text:"#0f172a",textSecondary:"#475569",textTertiary:"#64748b",border:"#e2e8f0",shadow:"rgba(0, 0, 0, 0.06)",glassBg:"rgba(255, 255, 255, 0.72)",glassBgHeavy:"rgba(255, 255, 255, 0.85)",glassBorder:"rgba(255, 255, 255, 0.35)",glassBorderSubtle:"rgba(255, 255, 255, 0.18)",typeQuestion:"#3b82f6",typeChange:"#b45309",typeBug:"#ef4444",typeOther:"#64748b",typeQuestionBg:"#eff6ff",typeChangeBg:"#fffbeb",typeBugBg:"#fef2f2",typeOtherBg:"#f8fafc",statusOpen:"#16a34a",statusOpenBg:"#f0fdf4",statusResolved:"#64748b",statusResolvedBg:"#f1f5f9"}}function UA(l,s){switch(l){case"question":return s.typeQuestion;case"change":return s.typeChange;case"bug":return s.typeBug;default:return s.typeOther}}function GA(l,s){switch(l){case"question":return s.typeQuestionBg;case"change":return s.typeChangeBg;case"bug":return s.typeBugBg;default:return s.typeOtherBg}}function wo(l){return`
6
+ --sp-accent: ${l.accent};
7
+ --sp-accent-light: ${l.accentLight};
8
+ --sp-accent-dark: ${l.accentDark};
9
+ --sp-accent-glow: ${l.accentGlow};
10
+ --sp-accent-gradient: ${l.accentGradient};
11
+ --sp-bg: ${l.bg};
12
+ --sp-bg-hover: ${l.bgHover};
13
+ --sp-text: ${l.text};
14
+ --sp-text-secondary: ${l.textSecondary};
15
+ --sp-text-tertiary: ${l.textTertiary};
16
+ --sp-border: ${l.border};
17
+ --sp-shadow: ${l.shadow};
18
+ --sp-glass-bg: ${l.glassBg};
19
+ --sp-glass-bg-heavy: ${l.glassBgHeavy};
20
+ --sp-glass-border: ${l.glassBorder};
21
+ --sp-glass-border-subtle: ${l.glassBorderSubtle};
22
+ --sp-type-question: ${l.typeQuestion};
23
+ --sp-type-change: ${l.typeChange};
24
+ --sp-type-bug: ${l.typeBug};
25
+ --sp-type-other: ${l.typeOther};
26
+ --sp-type-question-bg: ${l.typeQuestionBg};
27
+ --sp-type-change-bg: ${l.typeChangeBg};
28
+ --sp-type-bug-bg: ${l.typeBugBg};
29
+ --sp-type-other-bg: ${l.typeOtherBg};
26
30
  --sp-radius: 12px;
27
31
  --sp-radius-lg: 16px;
28
32
  --sp-radius-xl: 20px;
@@ -35,7 +39,7 @@
35
39
  --sp-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.04);
36
40
  --sp-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
37
41
  --sp-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
38
- `}var se=class{constructor(e,t){this.colors=e;this.t=t;this.root=l("div",{style:`
42
+ `}var ir=class{constructor(s,i){this.colors=s;this.t=i;this.root=b("div",{style:`
39
43
  position:fixed;
40
44
  z-index:${2147483647};
41
45
  width:300px;
@@ -52,7 +56,7 @@
52
56
  transition:opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
53
57
  display:none;
54
58
  -webkit-font-smoothing:antialiased;
55
- `}),this.root.setAttribute("role","dialog"),this.root.setAttribute("aria-modal","true"),this.root.setAttribute("aria-label",this.t("popup.ariaLabel"));let s=[{type:"question",label:this.t("type.question"),icon:J},{type:"change",label:this.t("type.change"),icon:Z},{type:"bug",label:this.t("type.bug"),icon:ee},{type:"other",label:this.t("type.other"),icon:te}],o=l("div",{style:"display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px;"});for(let u of s){let h=document.createElement("button");h.style.cssText=`
59
+ `}),this.root.setAttribute("role","dialog"),this.root.setAttribute("aria-modal","true"),this.root.setAttribute("aria-label",this.t("popup.ariaLabel"));let o=[{type:"question",label:this.t("type.question"),icon:tr},{type:"change",label:this.t("type.change"),icon:rr},{type:"bug",label:this.t("type.bug"),icon:sr},{type:"other",label:this.t("type.other"),icon:nr}],c=b("div",{style:"display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px;"});for(let v of o){let y=document.createElement("button");y.style.cssText=`
56
60
  height:44px;
57
61
  border-radius:9999px;border:1px solid ${this.colors.border};
58
62
  background:${this.colors.glassBg};cursor:pointer;
@@ -61,7 +65,7 @@
61
65
  font-size:13px;font-weight:500;color:${this.colors.textTertiary};
62
66
  transition:all 0.2s ease;
63
67
  padding:0 12px;
64
- `;let b=v(u.icon);b.setAttribute("style","width:13px;height:13px;flex-shrink:0;"),h.appendChild(b);let f=document.createElement("span");c(f,u.label),h.appendChild(f),h.dataset.type=u.type,h.setAttribute("aria-pressed","false"),h.addEventListener("click",()=>{this.selectType(u.type,o)}),h.addEventListener("mouseenter",()=>{if(h.dataset.type!==this.selectedType){let k=P(h.dataset.type??"",this.colors);h.style.background=k,h.style.borderColor=M(h.dataset.type??"",this.colors)+"40"}}),h.addEventListener("mouseleave",()=>{h.dataset.type!==this.selectedType&&(h.style.background=this.colors.glassBg,h.style.borderColor=this.colors.border)}),o.appendChild(h)}this.textarea=document.createElement("textarea"),this.textarea.style.cssText=`
68
+ `;let T=P(v.icon);T.setAttribute("style","width:13px;height:13px;flex-shrink:0;"),y.appendChild(T);let O=document.createElement("span");U(O,v.label),y.appendChild(O),y.dataset.type=v.type,y.setAttribute("aria-pressed","false"),y.addEventListener("click",()=>{this.selectType(v.type,c)}),y.addEventListener("mouseenter",()=>{if(y.dataset.type!==this.selectedType){let G=GA(y.dataset.type??"",this.colors);y.style.background=G,y.style.borderColor=UA(y.dataset.type??"",this.colors)+"40"}}),y.addEventListener("mouseleave",()=>{y.dataset.type!==this.selectedType&&(y.style.background=this.colors.glassBg,y.style.borderColor=this.colors.border)}),c.appendChild(y)}this.textarea=document.createElement("textarea"),this.textarea.style.cssText=`
65
69
  width:100%;min-height:72px;max-height:152px;
66
70
  padding:10px 12px;border-radius:12px;
67
71
  border:1px solid ${this.colors.border};
@@ -70,19 +74,19 @@
70
74
  font-size:13px;line-height:1.5;resize:vertical;
71
75
  outline:none;transition:all 0.2s ease;
72
76
  box-sizing:border-box;
73
- `,this.textarea.placeholder=this.t("popup.placeholder"),this.textarea.maxLength=5e3,this.textarea.setAttribute("aria-label",this.t("popup.textareaAria"));let i=l("div",{style:`
77
+ `,this.textarea.placeholder=this.t("popup.placeholder"),this.textarea.maxLength=5e3,this.textarea.setAttribute("aria-label",this.t("popup.textareaAria"));let d=b("div",{style:`
74
78
  font-size:11px;color:${this.colors.textTertiary};
75
79
  text-align:right;margin-top:4px;
76
80
  font-family:"Inter",system-ui,-apple-system,sans-serif;
77
81
  letter-spacing:0.01em;
78
- `}),r=navigator.userAgentData,a=r?r.platform==="macOS":navigator.platform?.includes("Mac")??/Macintosh|Mac OS X/i.test(navigator.userAgent);c(i,a?this.t("popup.submitHintMac"):this.t("popup.submitHintOther")),this.textarea.addEventListener("focus",()=>{this.textarea.style.borderColor=this.colors.accent,this.textarea.style.boxShadow=`0 0 0 3px ${this.colors.accent}14`,this.textarea.style.background=this.colors.bg}),this.textarea.addEventListener("blur",()=>{this.textarea.style.borderColor=this.colors.border,this.textarea.style.boxShadow="none",this.textarea.style.background=this.colors.glassBgHeavy}),this.textarea.addEventListener("input",()=>{this.updateSubmitState()}),this.textarea.addEventListener("keydown",u=>{u.key==="Enter"&&(u.ctrlKey||u.metaKey)&&(u.preventDefault(),this.submit()),u.key==="Escape"&&this.cancel()});let p=l("div",{style:"display:flex;justify-content:flex-end;gap:8px;margin-top:12px;"}),d=document.createElement("button");d.style.cssText=`
82
+ `}),h=navigator.userAgentData,f=h?h.platform==="macOS":navigator.platform?.includes("Mac")??/Macintosh|Mac OS X/i.test(navigator.userAgent);U(d,f?this.t("popup.submitHintMac"):this.t("popup.submitHintOther")),this.textarea.addEventListener("focus",()=>{this.textarea.style.borderColor=this.colors.accent,this.textarea.style.boxShadow=`0 0 0 3px ${this.colors.accent}14`,this.textarea.style.background=this.colors.bg}),this.textarea.addEventListener("blur",()=>{this.textarea.style.borderColor=this.colors.border,this.textarea.style.boxShadow="none",this.textarea.style.background=this.colors.glassBgHeavy}),this.textarea.addEventListener("input",()=>{this.updateSubmitState()}),this.textarea.addEventListener("keydown",v=>{v.key==="Enter"&&(v.ctrlKey||v.metaKey)&&(v.preventDefault(),this.submit()),v.key==="Escape"&&this.cancel()});let C=b("div",{style:"display:flex;justify-content:flex-end;gap:8px;margin-top:12px;"}),Q=document.createElement("button");Q.style.cssText=`
79
83
  height:34px;padding:0 16px;border-radius:9999px;
80
84
  border:1px solid ${this.colors.border};
81
85
  background:${this.colors.glassBg};
82
86
  color:${this.colors.textTertiary};font-family:"Inter",system-ui,-apple-system,sans-serif;
83
87
  font-size:13px;font-weight:500;cursor:pointer;
84
88
  transition:all 0.2s ease;
85
- `,c(d,this.t("popup.cancel")),d.addEventListener("click",()=>this.cancel()),d.addEventListener("mouseenter",()=>{d.style.borderColor=this.colors.accent,d.style.color=this.colors.accent}),d.addEventListener("mouseleave",()=>{d.style.borderColor=this.colors.border,d.style.color=this.colors.textTertiary}),this.submitBtn=document.createElement("button"),this.submitBtn.style.cssText=`
89
+ `,U(Q,this.t("popup.cancel")),Q.addEventListener("click",()=>this.cancel()),Q.addEventListener("mouseenter",()=>{Q.style.borderColor=this.colors.accent,Q.style.color=this.colors.accent}),Q.addEventListener("mouseleave",()=>{Q.style.borderColor=this.colors.border,Q.style.color=this.colors.textTertiary}),this.submitBtn=document.createElement("button"),this.submitBtn.style.cssText=`
86
90
  height:34px;padding:0 18px;border-radius:9999px;
87
91
  border:none;background:${this.colors.accentGradient};
88
92
  color:#fff;font-family:"Inter",system-ui,-apple-system,sans-serif;
@@ -90,12 +94,12 @@
90
94
  opacity:0.35;pointer-events:none;
91
95
  transition:all 0.2s ease;
92
96
  box-shadow:0 2px 8px ${this.colors.accentGlow};
93
- `,c(this.submitBtn,this.t("popup.submit")),this.submitBtn.addEventListener("click",()=>this.submit()),p.appendChild(d),p.appendChild(this.submitBtn),this.root.appendChild(o),this.root.appendChild(this.textarea),this.root.appendChild(i),this.root.appendChild(p),document.body.appendChild(this.root)}colors;t;root;selectedType=null;textarea;submitBtn;resolve=null;previouslyFocused=null;onKeydownTrap=null;show(e){return new Promise(t=>{this.resolve=t,this.selectedType=null,this.textarea.value="",this.updateSubmitState(),this.resetTypeButtons(),this.previouslyFocused=document.activeElement;let s=e.bottom+8,o=e.left;s+220>window.innerHeight&&(s=e.top-220-8),o+300>window.innerWidth&&(o=e.right-300),o=Math.max(8,o),s=Math.max(8,s),this.root.style.top=`${s}px`,this.root.style.left=`${o}px`,this.root.style.display="block",this.onKeydownTrap=r=>{if(r.key==="Tab"){let a=Array.from(this.root.querySelectorAll('button:not([disabled]), textarea, input, [tabindex]:not([tabindex="-1"])'));if(a.length===0)return;let p=a[0],d=a[a.length-1];if(!p||!d)return;r.shiftKey?(document.activeElement===p||!this.root.contains(document.activeElement))&&(r.preventDefault(),d.focus()):(document.activeElement===d||!this.root.contains(document.activeElement))&&(r.preventDefault(),p.focus())}},this.root.addEventListener("keydown",this.onKeydownTrap);let i=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;this.root.style.transition=i?"none":"",requestAnimationFrame(()=>{this.root.style.opacity="1",this.root.style.transform="translateY(0) scale(1)",this.textarea.focus()})})}selectType(e,t){this.selectedType=e;let s=t.querySelectorAll("button");for(let o of s){let i=o.dataset.type===e,r=M(o.dataset.type??"",this.colors),a=P(o.dataset.type??"",this.colors);o.style.background=i?a:this.colors.glassBg,o.style.borderColor=i?r+"60":this.colors.border,o.style.color=i?r:this.colors.textTertiary,o.style.fontWeight=i?"600":"500",o.setAttribute("aria-pressed",String(i))}this.updateSubmitState()}resetTypeButtons(){let e=this.root.querySelectorAll("button[data-type]");for(let t of e)t.setAttribute("aria-pressed","false"),t.style.background=this.colors.glassBg,t.style.borderColor=this.colors.border,t.style.color=this.colors.textTertiary,t.style.fontWeight="500"}updateSubmitState(){let e=this.selectedType!==null&&this.textarea.value.trim().length>0;this.submitBtn.disabled=!e,this.submitBtn.style.opacity=e?"1":"0.35",this.submitBtn.style.pointerEvents=e?"auto":"none"}submit(){!this.selectedType||!this.textarea.value.trim()||(this.resolve?.({type:this.selectedType,message:this.textarea.value.trim()}),this.resolve=null,this.hideElement())}cancel(){this.resolve?.(null),this.resolve=null,this.hideElement()}hideElement(){this.onKeydownTrap&&(this.root.removeEventListener("keydown",this.onKeydownTrap),this.onKeydownTrap=null),this.root.style.opacity="0",this.root.style.transform="translateY(8px) scale(0.98)",this.previouslyFocused?.focus(),this.previouslyFocused=null,setTimeout(()=>{this.root.style.display="none"},250)}destroy(){this.root.remove()}};var ne=class{constructor(e,t,s){this.colors=e;this.bus=t;this.t=s;this.popup=new se(e,s),this.bus.on("annotation:start",()=>this.activate())}colors;bus;t;overlay=null;toolbar=null;drawingRect=null;startX=0;startY=0;isDrawing=!1;isActive=!1;popup;savedOverflow="";preActiveFocusElement=null;rafId=null;pendingMoveEvent=null;activate(){if(this.isActive)return;this.isActive=!0,this.preActiveFocusElement=document.activeElement,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.overlay=l("div",{style:`
97
+ `,U(this.submitBtn,this.t("popup.submit")),this.submitBtn.addEventListener("click",()=>this.submit()),C.appendChild(Q),C.appendChild(this.submitBtn),this.root.appendChild(c),this.root.appendChild(this.textarea),this.root.appendChild(d),this.root.appendChild(C),document.body.appendChild(this.root)}colors;t;root;selectedType=null;textarea;submitBtn;resolve=null;previouslyFocused=null;onKeydownTrap=null;show(s){return new Promise(i=>{this.resolve=i,this.selectedType=null,this.textarea.value="",this.updateSubmitState(),this.resetTypeButtons(),this.previouslyFocused=document.activeElement;let o=220,c=300,d=s.bottom+8,h=s.left;if(d+o>window.innerHeight){let C=s.top-o-8;C>=8?d=C:d=window.innerHeight-o-8}h+c>window.innerWidth&&(h=s.right-c),h=Math.max(8,h),d=Math.max(8,d),this.root.style.top=`${d}px`,this.root.style.left=`${h}px`,this.root.style.display="block",this.onKeydownTrap=C=>{if(C.key==="Tab"){let Q=Array.from(this.root.querySelectorAll('button:not([disabled]), textarea, input, [tabindex]:not([tabindex="-1"])'));if(Q.length===0)return;let v=Q[0],y=Q[Q.length-1];if(!v||!y)return;C.shiftKey?(document.activeElement===v||!this.root.contains(document.activeElement))&&(C.preventDefault(),y.focus()):(document.activeElement===y||!this.root.contains(document.activeElement))&&(C.preventDefault(),v.focus())}},this.root.addEventListener("keydown",this.onKeydownTrap);let f=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;this.root.style.transition=f?"none":"",requestAnimationFrame(()=>{this.root.style.opacity="1",this.root.style.transform="translateY(0) scale(1)",this.textarea.focus()})})}selectType(s,i){this.selectedType=s;let o=i.querySelectorAll("button");for(let c of o){let d=c.dataset.type===s,h=UA(c.dataset.type??"",this.colors),f=GA(c.dataset.type??"",this.colors);c.style.background=d?f:this.colors.glassBg,c.style.borderColor=d?h+"60":this.colors.border,c.style.color=d?h:this.colors.textTertiary,c.style.fontWeight=d?"600":"500",c.setAttribute("aria-pressed",String(d))}this.updateSubmitState()}resetTypeButtons(){let s=this.root.querySelectorAll("button[data-type]");for(let i of s)i.setAttribute("aria-pressed","false"),i.style.background=this.colors.glassBg,i.style.borderColor=this.colors.border,i.style.color=this.colors.textTertiary,i.style.fontWeight="500"}updateSubmitState(){let s=this.selectedType!==null&&this.textarea.value.trim().length>0;this.submitBtn.disabled=!s,this.submitBtn.style.opacity=s?"1":"0.35",this.submitBtn.style.pointerEvents=s?"auto":"none"}submit(){!this.selectedType||!this.textarea.value.trim()||(this.resolve?.({type:this.selectedType,message:this.textarea.value.trim()}),this.resolve=null,this.hideElement())}cancel(){this.resolve?.(null),this.resolve=null,this.hideElement()}hideElement(){this.onKeydownTrap&&(this.root.removeEventListener("keydown",this.onKeydownTrap),this.onKeydownTrap=null),this.root.style.opacity="0",this.root.style.transform="translateY(8px) scale(0.98)",this.previouslyFocused?.focus(),this.previouslyFocused=null,setTimeout(()=>{this.root.style.display="none"},250)}destroy(){this.root.remove()}};var ze,mo=!1;async function Gu(){if(ze!==void 0)return ze;try{let l=await Promise.resolve().then(()=>yu(Co(),1));return ze=l.default??l,ze}catch(l){return ze=null,mo||(mo=!0,console.warn("[siteping] html2canvas import failed unexpectedly. Capture is disabled for this session \u2014 feedbacks are still submitted, just without screenshots. Underlying error:",l)),null}}async function bo(l,s){let i=await Gu();if(!i)return null;let o=s?.quality??.85,c=s?.maxWidth??1200;try{let d=await i(document.body,{x:window.scrollX+l.x,y:window.scrollY+l.y,width:l.width,height:l.height,scale:window.devicePixelRatio,useCORS:!0,allowTaint:!0,logging:!1,ignoreElements:y=>y.tagName==="SITEPING-WIDGET"||y.closest?.("siteping-widget")!==null||y.getAttribute?.("data-siteping-ignore")==="true"});if(d.width<=c)return d.toDataURL("image/jpeg",o);let h=c/d.width,f=c,C=Math.round(d.height*h),Q=document.createElement("canvas");Q.width=f,Q.height=C;let v=Q.getContext("2d");return v?(v.drawImage(d,0,0,f,C),Q.toDataURL("image/jpeg",o)):null}catch(d){return console.warn("[siteping] Screenshot capture failed:",d),null}}var or=class{constructor(s,i,o,c=!1){this.colors=s;this.bus=i;this.t=o;this.enableScreenshot=c;this.popup=new ir(s,o),this.bus.on("annotation:start",()=>this.activate())}colors;bus;t;enableScreenshot;overlay=null;toolbar=null;drawingRect=null;startX=0;startY=0;isDrawing=!1;isActive=!1;popup;savedOverflow="";preActiveFocusElement=null;rafId=null;pendingMoveEvent=null;async maybeCapture(s){return this.enableScreenshot?bo(s):null}activate(){if(this.isActive)return;this.isActive=!0,this.preActiveFocusElement=document.activeElement,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.overlay=b("div",{style:`
94
98
  position:fixed;inset:0;
95
99
  z-index:${2147483646};
96
100
  background:rgba(15, 23, 42, 0.04);
97
101
  cursor:crosshair;
98
- `}),this.overlay.setAttribute("aria-hidden","true"),this.toolbar=l("div",{style:`
102
+ `}),this.overlay.setAttribute("aria-hidden","true"),this.toolbar=b("div",{style:`
99
103
  position:fixed;top:0;left:0;right:0;
100
104
  z-index:${2147483647};
101
105
  height:52px;
@@ -108,19 +112,19 @@
108
112
  font-size:14px;color:${this.colors.text};
109
113
  box-shadow:0 4px 16px ${this.colors.shadow};
110
114
  -webkit-font-smoothing:antialiased;
111
- `});let e=l("span",{style:`
115
+ `});let s=b("span",{style:`
112
116
  width:8px;height:8px;border-radius:50%;
113
117
  background:${this.colors.accent};
114
118
  box-shadow:0 0 8px ${this.colors.accentGlow};
115
119
  animation:pulse 1.5s ease-in-out infinite;
116
- `}),t=document.createElement("style");t.textContent=["@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.4}}","@media(prefers-reduced-motion:reduce){@keyframes pulse{from,to{opacity:1}}}"].join(""),this.toolbar.appendChild(t);let s=l("span",{style:"font-weight:500;letter-spacing:-0.01em;"});c(s,this.t("annotator.instruction"));let o=document.createElement("button");o.style.cssText=`
120
+ `}),i=document.createElement("style");i.textContent=["@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.4}}","@media(prefers-reduced-motion:reduce){@keyframes pulse{from,to{opacity:1}}}"].join(""),this.toolbar.appendChild(i);let o=b("span",{style:"font-weight:500;letter-spacing:-0.01em;"});U(o,this.t("annotator.instruction"));let c=document.createElement("button");c.style.cssText=`
117
121
  height:34px;padding:0 18px;border-radius:9999px;
118
122
  border:1px solid ${this.colors.border};
119
123
  background:${this.colors.glassBg};
120
124
  color:${this.colors.textTertiary};font-family:"Inter",system-ui,-apple-system,sans-serif;
121
125
  font-size:13px;font-weight:500;cursor:pointer;
122
126
  transition:all 0.2s ease;
123
- `,c(o,this.t("annotator.cancel")),o.addEventListener("click",()=>this.deactivate()),o.addEventListener("mouseenter",()=>{o.style.borderColor=this.colors.typeBug,o.style.color=this.colors.typeBug,o.style.background=this.colors.typeBugBg}),o.addEventListener("mouseleave",()=>{o.style.borderColor=this.colors.border,o.style.color=this.colors.textTertiary,o.style.background=this.colors.glassBg}),this.toolbar.appendChild(e),this.toolbar.appendChild(s),this.toolbar.appendChild(o),this.overlay.addEventListener("mousedown",this.onMouseDown),this.overlay.addEventListener("mousemove",this.onMouseMove),this.overlay.addEventListener("mouseup",this.onMouseUp),this.overlay.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.overlay.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.overlay.addEventListener("touchend",this.onTouchEnd),this.overlay.addEventListener("keydown",this.onOverlayKeyDown),this.overlay.setAttribute("tabindex","0"),document.addEventListener("keydown",this.onKeyDown),document.body.appendChild(this.overlay),document.body.appendChild(this.toolbar)}deactivate(){this.isActive&&(this.isActive=!1,this.isDrawing=!1,this.preActiveFocusElement=null,this.rafId!==null&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.pendingMoveEvent=null,document.body.style.overflow=this.savedOverflow,document.removeEventListener("keydown",this.onKeyDown),this.overlay?.remove(),this.toolbar?.remove(),this.drawingRect?.remove(),this.overlay=null,this.toolbar=null,this.drawingRect=null,this.bus.emit("annotation:end"))}onKeyDown=e=>{e.key==="Escape"&&this.deactivate()};onOverlayKeyDown=async e=>{if(e.key!=="Enter")return;e.preventDefault();let t=this.preActiveFocusElement;if(!t||!(t instanceof HTMLElement))return;let s=t.getBoundingClientRect();if(s.width<=0||s.height<=0)return;let o=new DOMRect(s.x,s.y,s.width,s.height),i=await this.popup.show(o);if(!i)return;let a={anchor:Te(t),rect:{xPct:0,yPct:0,wPct:1,hPct:1},scrollX:window.scrollX,scrollY:window.scrollY,viewportW:window.innerWidth,viewportH:window.innerHeight,devicePixelRatio:window.devicePixelRatio};this.deactivate(),this.bus.emit("annotation:complete",{annotation:a,type:i.type,message:i.message})};onMouseDown=e=>{this.startDrawing(e.clientX,e.clientY)};onTouchStart=e=>{e.preventDefault();let t=e.touches[0];t&&this.startDrawing(t.clientX,t.clientY)};startDrawing(e,t){this.isDrawing=!0,this.startX=e,this.startY=t,this.drawingRect?.remove(),this.drawingRect=l("div",{style:`
127
+ `,U(c,this.t("annotator.cancel")),c.addEventListener("click",()=>this.deactivate()),c.addEventListener("mouseenter",()=>{c.style.borderColor=this.colors.typeBug,c.style.color=this.colors.typeBug,c.style.background=this.colors.typeBugBg}),c.addEventListener("mouseleave",()=>{c.style.borderColor=this.colors.border,c.style.color=this.colors.textTertiary,c.style.background=this.colors.glassBg}),this.toolbar.appendChild(s),this.toolbar.appendChild(o),this.toolbar.appendChild(c),this.overlay.addEventListener("mousedown",this.onMouseDown),this.overlay.addEventListener("mousemove",this.onMouseMove),this.overlay.addEventListener("mouseup",this.onMouseUp),this.overlay.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.overlay.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.overlay.addEventListener("touchend",this.onTouchEnd),this.overlay.addEventListener("keydown",this.onOverlayKeyDown),this.overlay.setAttribute("tabindex","0"),document.addEventListener("keydown",this.onKeyDown),document.body.appendChild(this.overlay),document.body.appendChild(this.toolbar)}deactivate(){this.isActive&&(this.isActive=!1,this.isDrawing=!1,this.preActiveFocusElement=null,this.rafId!==null&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.pendingMoveEvent=null,document.body.style.overflow=this.savedOverflow,document.removeEventListener("keydown",this.onKeyDown),this.overlay?.remove(),this.toolbar?.remove(),this.drawingRect?.remove(),this.overlay=null,this.toolbar=null,this.drawingRect=null,this.bus.emit("annotation:end"))}onKeyDown=s=>{s.key==="Escape"&&this.deactivate()};onOverlayKeyDown=async s=>{if(s.key!=="Enter")return;s.preventDefault();let i=this.preActiveFocusElement;if(!i||!(i instanceof HTMLElement))return;let o=i.getBoundingClientRect();if(o.width<=0||o.height<=0)return;let c=new DOMRect(o.x,o.y,o.width,o.height),d=await this.popup.show(c);if(!d)return;let f={anchor:Qs(i),rect:{xPct:0,yPct:0,wPct:1,hPct:1},scrollX:window.scrollX,scrollY:window.scrollY,viewportW:window.innerWidth,viewportH:window.innerHeight,devicePixelRatio:window.devicePixelRatio},C=await this.maybeCapture(c);this.deactivate(),this.bus.emit("annotation:complete",{annotation:f,type:d.type,message:d.message,screenshotDataUrl:C})};onMouseDown=s=>{this.startDrawing(s.clientX,s.clientY)};onTouchStart=s=>{s.preventDefault();let i=s.touches[0];i&&this.startDrawing(i.clientX,i.clientY)};startDrawing(s,i){this.isDrawing=!0,this.startX=s,this.startY=i,this.drawingRect?.remove(),this.drawingRect=b("div",{style:`
124
128
  position:fixed;
125
129
  border:2px solid ${this.colors.accent};
126
130
  background:${this.colors.accent}12;
@@ -128,7 +132,7 @@
128
132
  border-radius:8px;
129
133
  box-shadow:0 0 16px ${this.colors.accentGlow};
130
134
  transition:box-shadow 0.15s ease;
131
- `}),this.overlay?.appendChild(this.drawingRect)}onMouseMove=e=>{this.scheduleRectUpdate(e)};onTouchMove=e=>{e.preventDefault(),e.touches[0]&&this.scheduleRectUpdate(e.touches[0])};scheduleRectUpdate(e){!this.isDrawing||!this.drawingRect||(this.pendingMoveEvent=e,this.rafId===null&&(this.rafId=requestAnimationFrame(()=>{this.rafId=null;let t=this.pendingMoveEvent;if(!t||!this.drawingRect)return;let s=Math.min(t.clientX,this.startX),o=Math.min(t.clientY,this.startY),i=Math.abs(t.clientX-this.startX),r=Math.abs(t.clientY-this.startY);this.drawingRect.style.left=`${s}px`,this.drawingRect.style.top=`${o}px`,this.drawingRect.style.width=`${i}px`,this.drawingRect.style.height=`${r}px`})))}onTouchEnd=async e=>{let t=e.changedTouches[0];t&&await this.finishDrawing(t.clientX,t.clientY)};onMouseUp=async e=>{await this.finishDrawing(e.clientX,e.clientY)};finishDrawing=async(e,t)=>{if(!this.isDrawing||!this.drawingRect)return;this.isDrawing=!1;let s=Math.min(e,this.startX),o=Math.min(t,this.startY),i=Math.abs(e-this.startX),r=Math.abs(t-this.startY);if(i<10||r<10){this.drawingRect.remove(),this.drawingRect=null;return}let a=new DOMRect(s,o,i,r),p=await this.popup.show(a);if(!p){this.drawingRect?.remove(),this.drawingRect=null;return}let d=this.buildAnnotation(a);this.drawingRect?.remove(),this.drawingRect=null,this.deactivate(),this.bus.emit("annotation:complete",{annotation:d,type:p.type,message:p.message})};buildAnnotation(e){this.overlay&&(this.overlay.style.pointerEvents="none");let t=it(e);this.overlay&&(this.overlay.style.pointerEvents="auto");let s=Te(t),o=t.getBoundingClientRect(),i=rt(e,o);return{anchor:s,rect:i,scrollX:window.scrollX,scrollY:window.scrollY,viewportW:window.innerWidth,viewportH:window.innerHeight,devicePixelRatio:window.devicePixelRatio}}destroy(){this.deactivate(),this.popup.destroy()}};var H="siteping_retry_queue";async function O(n,e,t=3){for(let s=0;s<=t;s++){let o=new AbortController,i=setTimeout(()=>o.abort(),1e4);try{let p=await fetch(n,{...e,signal:o.signal});if(clearTimeout(i),p.ok||p.status>=400&&p.status<500||s===t)return p}catch(p){if(clearTimeout(i),s===t)throw p}let r=1e3*2**s,a=Math.random()*1e3-500;await new Promise(p=>setTimeout(p,r+a))}throw new Error("Max retries exceeded")}var Ls="siteping_retry_queue";async function ft(n){return typeof navigator<"u"&&navigator.locks?navigator.locks.request(Ls,()=>n()):n()}function Ms(n,e){ft(()=>{try{let t=localStorage.getItem(H),s=t?JSON.parse(t):[],o=Array.isArray(s)?s:[];o.length>=20&&o.shift(),o.push({endpoint:n,payload:e}),localStorage.setItem(H,JSON.stringify(o))}catch{}})}async function vt(n){await ft(async()=>{try{let e=localStorage.getItem(H);if(!e)return;let t=JSON.parse(e),s=Array.isArray(t)?t:[],o=s.filter(a=>a.endpoint===n);if(o.length===0)return;let i=[];for(let a of o)try{(await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a.payload)})).ok||i.push(a)}catch{i.push(a)}let r=s.filter(a=>a.endpoint!==n).concat(i);r.length>0?localStorage.setItem(H,JSON.stringify(r)):localStorage.removeItem(H)}catch{}})}var oe=class{constructor(e,t){this.endpoint=e;this.projectName=t}endpoint;projectName;async sendFeedback(e){try{let t=await O(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){let s=await t.text().catch(()=>"Unknown error");throw new Error(`Failed to send feedback: ${t.status} ${s}`)}return await t.json()}catch(t){throw Ms(this.endpoint,e),t}}async getFeedbacks(e,t){let s=new URLSearchParams({projectName:e});t?.page&&s.set("page",String(t.page)),t?.limit&&s.set("limit",String(t.limit)),t?.type&&s.set("type",t.type),t?.status&&s.set("status",t.status),t?.search&&s.set("search",t.search);let o=await O(`${this.endpoint}?${s.toString()}`,{method:"GET",cache:"no-store"});if(!o.ok)throw new Error(`Failed to fetch feedbacks: ${o.status}`);return await o.json()}async resolveFeedback(e,t){let s=await O(this.endpoint,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,projectName:this.projectName,status:t?"resolved":"open"})});if(!s.ok)throw new Error(`Failed to update feedback: ${s.status}`);return await s.json()}async deleteFeedback(e){let t=await O(this.endpoint,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,projectName:this.projectName})});if(!t.ok)throw new Error(`Failed to delete feedback: ${t.status}`)}async deleteAllFeedbacks(e){let t=await O(this.endpoint,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectName:e,deleteAll:!0})});if(!t.ok)throw new Error(`Failed to delete all feedbacks: ${t.status}`)}};var $=class{listeners=new Map;on(e,t){this.listeners.has(e)||this.listeners.set(e,new Set);let s=this.listeners.get(e);return s.add(t),()=>{s.delete(t)}}off(e,t){let s=this.listeners.get(e);s&&s.delete(t)}emit(e,...t){let s=this.listeners.get(e);if(s)for(let o of s)try{o(...t)}catch(i){console.error(`[siteping] Error in event listener for "${String(e)}":`,i)}}removeAll(){this.listeners.clear()}};var Bs=54,ie=class{constructor(e,t,s,o){this.bus=s;this.t=o;let i=t.position??"bottom-right",r=i==="bottom-right";this.items=[{id:"chat",icon:at,label:o("fab.messages")},{id:"annotate",icon:lt,label:o("fab.annotate")},{id:"toggle-annotations",icon:Ae,iconAlt:Le,label:o("fab.annotations")}],this.fab=document.createElement("button"),this.fab.className=`sp-fab sp-fab--${i} sp-anim-fab-in`,this.fab.style.position="fixed",this.fab.appendChild(v(Se)),this.fab.setAttribute("aria-label",o("fab.aria")),this.fab.setAttribute("aria-expanded","false"),this.fab.addEventListener("click",()=>this.toggle()),this.radialContainer=document.createElement("div"),this.radialContainer.className=`sp-radial sp-radial--${i}`,this.radialContainer.setAttribute("role","menu");for(let d=0;d<this.items.length;d++){let u=this.items[d];if(!u)continue;let h=document.createElement("button");h.className="sp-radial-item",h.style.setProperty("--sp-i",String(d)),h.appendChild(v(u.icon)),h.setAttribute("role","menuitem"),h.setAttribute("aria-label",u.label),h.dataset.itemId=u.id,h.addEventListener("click",f=>{f.stopPropagation(),this.handleItemClick(u.id)});let b=document.createElement("span");b.className="sp-radial-label",b.textContent=u.label,b.style.cssText=r?"position:absolute; right:54px; top:50%; transform:translateY(-50%); white-space:nowrap;":"position:absolute; left:54px; top:50%; transform:translateY(-50%); white-space:nowrap;",h.appendChild(b),this.radialContainer.appendChild(h)}this.root=document.createElement("div"),this.root.appendChild(this.radialContainer),this.root.appendChild(this.fab),e.appendChild(this.root);let a=e.host;this.onDocumentClick=d=>{this.isOpen&&!d.composedPath().includes(a)&&this.close()},document.addEventListener("click",this.onDocumentClick);let p=d=>{d.key==="Escape"&&this.isOpen&&(d.stopPropagation(),this.close())};this.fab.addEventListener("keydown",p),this.radialContainer.addEventListener("keydown",p),this.radialContainer.addEventListener("keydown",d=>{let u=Array.from(this.radialContainer.querySelectorAll(".sp-radial-item"));if(u.length===0||!this.isOpen)return;let h=e.activeElement??document.activeElement,b=u.indexOf(h);switch(d.key){case"ArrowUp":{d.preventDefault();let f=b<=0?u.length-1:b-1;u[f]?.focus();break}case"ArrowDown":{d.preventDefault();let f=b>=u.length-1?0:b+1;u[f]?.focus();break}case"Home":{d.preventDefault(),u[0]?.focus();break}case"End":{d.preventDefault(),u[u.length-1]?.focus();break}}})}bus;t;root;fab;radialContainer;badgeEl=null;isOpen=!1;annotationsVisible=!0;items;onDocumentClick;updateBadge(e){if(e<=0){this.badgeEl?.remove(),this.badgeEl=null;return}this.badgeEl||(this.badgeEl=document.createElement("span"),this.badgeEl.className="sp-fab-badge",this.badgeEl.setAttribute("role","status"),this.badgeEl.setAttribute("aria-live","polite"),this.fab.appendChild(this.badgeEl));let t=e>99?"99+":String(e);c(this.badgeEl,t),this.badgeEl.setAttribute("aria-label",this.t("fab.badge").replace("{count}",String(e)))}toggle(){this.isOpen?this.close():this.open()}open(){this.isOpen=!0,this.setFabIcon(G),this.fab.setAttribute("aria-expanded","true"),this.radialContainer.querySelectorAll(".sp-radial-item").forEach((t,s)=>{let o=-(16+Bs*(s+1));t.style.transform=`translate(0px, ${o}px) scale(1)`,t.classList.add("sp-radial-item--open")}),requestAnimationFrame(()=>{this.radialContainer.querySelector(".sp-radial-item")?.focus()})}close(){this.isOpen=!1,this.setFabIcon(Se),this.fab.setAttribute("aria-expanded","false"),this.radialContainer.querySelectorAll(".sp-radial-item").forEach(t=>{t.style.transform="translate(0, 0) scale(0.8)",t.classList.remove("sp-radial-item--open")}),this.fab.focus()}setFabIcon(e){let t=this.badgeEl;this.fab.replaceChildren(v(e)),t&&this.fab.appendChild(t)}handleItemClick(e){switch(this.close(),e){case"chat":this.bus.emit("panel:toggle",!0);break;case"annotate":this.bus.emit("annotation:start");break;case"toggle-annotations":{this.annotationsVisible=!this.annotationsVisible,this.bus.emit("annotations:toggle",this.annotationsVisible);let t=this.radialContainer.querySelector('[data-item-id="toggle-annotations"]');t&&t.replaceChildren(v(this.annotationsVisible?Ae:Le));break}}}destroy(){document.removeEventListener("click",this.onDocumentClick),this.root.remove()}};var yt={"panel.title":"Feedbacks","panel.ariaLabel":"Siteping-Feedback-Panel","panel.feedbackList":"Feedbackliste","panel.loading":"Feedbacks werden geladen","panel.close":"Panel schlie\xDFen","panel.deleteAll":"Alle l\xF6schen","panel.deleteAllConfirmTitle":"Alle l\xF6schen","panel.deleteAllConfirmMessage":"Alle Feedbacks f\xFCr dieses Projekt l\xF6schen? Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden.","panel.search":"Suchen...","panel.searchAria":"Feedbacks suchen","panel.filterAll":"Alle","panel.loadError":"Laden fehlgeschlagen","panel.retry":"Erneut versuchen","panel.empty":"Noch kein Feedback","panel.showMore":"Mehr anzeigen","panel.showLess":"Weniger anzeigen","panel.resolve":"Erledigen","panel.reopen":"Wieder \xF6ffnen","panel.delete":"L\xF6schen","panel.cancel":"Abbrechen","panel.confirmDelete":"L\xF6schen","panel.loadMore":"Mehr laden ({remaining} verbleibend)","panel.statusAll":"Alle","panel.statusOpen":"Offen","panel.statusResolved":"Erledigt","type.label":"Typ","type.question":"Frage","type.change":"\xC4nderung","type.bug":"Fehler","type.other":"Sonstiges","status.label":"Status","fab.aria":"Siteping \u2014 Feedback-Men\xFC","fab.messages":"Nachrichten","fab.annotate":"Kommentieren","fab.annotations":"Anmerkungen","annotator.instruction":"Zeichne ein Rechteck um den Bereich, den du kommentieren m\xF6chtest","annotator.cancel":"Abbrechen","popup.ariaLabel":"Feedbackformular","popup.placeholder":"Beschreibe dein Feedback...","popup.textareaAria":"Feedbacknachricht","popup.submitHintMac":"\u2318+Enter zum Senden","popup.submitHintOther":"Strg+Enter zum Senden","popup.cancel":"Abbrechen","popup.submit":"Senden","identity.title":"Identifiziere dich","identity.nameLabel":"Name","identity.namePlaceholder":"Dein Name","identity.emailLabel":"E-Mail","identity.emailPlaceholder":"deine@email.de","identity.cancel":"Abbrechen","identity.submit":"Fortfahren","marker.approximate":"Ungef\xE4hre Position (Konfidenz: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","fab.badge":"{count} unerledigte Feedbacks","feedback.sent.confirmation":"Feedback erfolgreich gesendet","feedback.error.message":"Feedback konnte nicht gesendet werden","feedback.deleted.confirmation":"Feedback gel\xF6scht","badge.count":"{count} unerledigte Feedbacks"};var xt={"panel.title":"Feedbacks","panel.ariaLabel":"Siteping feedback panel","panel.feedbackList":"Feedback list","panel.loading":"Loading feedbacks","panel.close":"Close panel","panel.deleteAll":"Delete all","panel.deleteAllConfirmTitle":"Delete all","panel.deleteAllConfirmMessage":"Delete all feedbacks for this project? This action cannot be undone.","panel.search":"Search...","panel.searchAria":"Search feedbacks","panel.filterAll":"All","panel.loadError":"Failed to load","panel.retry":"Retry","panel.empty":"No feedback yet","panel.showMore":"Show more","panel.showLess":"Show less","panel.resolve":"Resolve","panel.reopen":"Reopen","panel.delete":"Delete","panel.cancel":"Cancel","panel.confirmDelete":"Delete","panel.loadMore":"Load more ({remaining} remaining)","panel.statusAll":"All","panel.statusOpen":"Open","panel.statusResolved":"Resolved","type.label":"Type","type.question":"Question","type.change":"Change","type.bug":"Bug","type.other":"Other","status.label":"Status","fab.aria":"Siteping \u2014 Feedback menu","fab.messages":"Messages","fab.annotate":"Annotate","fab.annotations":"Annotations","annotator.instruction":"Draw a rectangle on the area to comment","annotator.cancel":"Cancel","popup.ariaLabel":"Feedback form","popup.placeholder":"Describe your feedback...","popup.textareaAria":"Feedback message","popup.submitHintMac":"\u2318+Enter to send","popup.submitHintOther":"Ctrl+Enter to send","popup.cancel":"Cancel","popup.submit":"Send","identity.title":"Identify yourself","identity.nameLabel":"Name","identity.namePlaceholder":"Your name","identity.emailLabel":"Email","identity.emailPlaceholder":"your@email.com","identity.cancel":"Cancel","identity.submit":"Continue","marker.approximate":"Approximate position (confidence: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","fab.badge":"{count} unresolved feedbacks","feedback.sent.confirmation":"Feedback sent successfully","feedback.error.message":"Failed to send feedback","feedback.deleted.confirmation":"Feedback deleted","badge.count":"{count} unresolved feedbacks"};var kt={"panel.title":"Comentarios","panel.ariaLabel":"Panel de comentarios de Siteping","panel.feedbackList":"Lista de comentarios","panel.loading":"Cargando comentarios","panel.close":"Cerrar panel","panel.deleteAll":"Eliminar todo","panel.deleteAllConfirmTitle":"Eliminar todo","panel.deleteAllConfirmMessage":"\xBFEliminar todos los comentarios de este proyecto? Esta acci\xF3n no se puede deshacer.","panel.search":"Buscar...","panel.searchAria":"Buscar comentarios","panel.filterAll":"Todos","panel.loadError":"No se pudo cargar","panel.retry":"Reintentar","panel.empty":"A\xFAn no hay comentarios","panel.showMore":"Mostrar m\xE1s","panel.showLess":"Mostrar menos","panel.resolve":"Resolver","panel.reopen":"Reabrir","panel.delete":"Eliminar","panel.cancel":"Cancelar","panel.confirmDelete":"Eliminar","panel.loadMore":"Cargar m\xE1s ({remaining} restantes)","panel.statusAll":"Todos","panel.statusOpen":"Abiertos","panel.statusResolved":"Resueltos","type.label":"Tipo","type.question":"Pregunta","type.change":"Cambio","type.bug":"Error","type.other":"Otro","status.label":"Estado","fab.aria":"Siteping \u2014 Men\xFA de comentarios","fab.messages":"Mensajes","fab.annotate":"Anotar","fab.annotations":"Anotaciones","annotator.instruction":"Dibuja un rect\xE1ngulo sobre el \xE1rea que quieres comentar","annotator.cancel":"Cancelar","popup.ariaLabel":"Formulario de comentarios","popup.placeholder":"Describe tu comentario...","popup.textareaAria":"Mensaje de comentario","popup.submitHintMac":"\u2318+Enter para enviar","popup.submitHintOther":"Ctrl+Enter para enviar","popup.cancel":"Cancelar","popup.submit":"Enviar","identity.title":"Identif\xEDcate","identity.nameLabel":"Nombre","identity.namePlaceholder":"Tu nombre","identity.emailLabel":"Correo electr\xF3nico","identity.emailPlaceholder":"tu@email.com","identity.cancel":"Cancelar","identity.submit":"Continuar","marker.approximate":"Posici\xF3n aproximada (confianza: {confidence}%)","marker.aria":"Comentario #{number}: {type} \u2014 {message}","fab.badge":"{count} comentarios sin resolver","feedback.sent.confirmation":"Comentario enviado correctamente","feedback.error.message":"No se pudo enviar el comentario","feedback.deleted.confirmation":"Comentario eliminado","badge.count":"{count} comentarios sin resolver"};var wt={"panel.title":"Feedbacks","panel.ariaLabel":"Panneau de feedback Siteping","panel.feedbackList":"Liste des feedbacks","panel.loading":"Chargement des feedbacks","panel.close":"Fermer le panneau","panel.deleteAll":"Tout supprimer","panel.deleteAllConfirmTitle":"Tout supprimer","panel.deleteAllConfirmMessage":"Supprimer tous les feedbacks de ce projet ? Cette action est irr\xE9versible.","panel.search":"Rechercher...","panel.searchAria":"Rechercher dans les feedbacks","panel.filterAll":"Tous","panel.loadError":"Erreur de chargement","panel.retry":"R\xE9essayer","panel.empty":"Aucun feedback pour le moment","panel.showMore":"Voir plus","panel.showLess":"Voir moins","panel.resolve":"R\xE9soudre","panel.reopen":"Rouvrir","panel.delete":"Supprimer","panel.cancel":"Annuler","panel.confirmDelete":"Supprimer","panel.loadMore":"Voir plus ({remaining} restants)","panel.statusAll":"Tous","panel.statusOpen":"Ouvert","panel.statusResolved":"R\xE9solu","type.label":"Type","type.question":"Question","type.change":"Changement","type.bug":"Bug","type.other":"Autre","status.label":"Statut","fab.aria":"Siteping \u2014 Menu feedback","fab.messages":"Messages","fab.annotate":"Annoter","fab.annotations":"Annotations","annotator.instruction":"Tracez un rectangle sur la zone \xE0 commenter","annotator.cancel":"Annuler","popup.ariaLabel":"Formulaire de feedback","popup.placeholder":"D\xE9crivez votre retour...","popup.textareaAria":"Message de feedback","popup.submitHintMac":"\u2318+Entr\xE9e pour envoyer","popup.submitHintOther":"Ctrl+Entr\xE9e pour envoyer","popup.cancel":"Annuler","popup.submit":"Envoyer","identity.title":"Identifiez-vous","identity.nameLabel":"Nom","identity.namePlaceholder":"Votre nom","identity.emailLabel":"Email","identity.emailPlaceholder":"votre@email.com","identity.cancel":"Annuler","identity.submit":"Continuer","marker.approximate":"Position approximative (confiance : {confidence}%)","marker.aria":"Feedback n\xB0{number} : {type} \u2014 {message}","fab.badge":"{count} feedbacks non r\xE9solus","feedback.sent.confirmation":"Feedback envoy\xE9 avec succ\xE8s","feedback.error.message":"\xC9chec de l'envoi du feedback","feedback.deleted.confirmation":"Feedback supprim\xE9","badge.count":"{count} feedbacks non r\xE9solus"};var Ct={"panel.title":"Feedback","panel.ariaLabel":"Pannello feedback di Siteping","panel.feedbackList":"Elenco feedback","panel.loading":"Caricamento feedback","panel.close":"Chiudi pannello","panel.deleteAll":"Elimina tutto","panel.deleteAllConfirmTitle":"Elimina tutto","panel.deleteAllConfirmMessage":"Eliminare tutti i feedback per questo progetto? Questa azione non pu\xF2 essere annullata.","panel.search":"Cerca...","panel.searchAria":"Cerca feedback","panel.filterAll":"Tutti","panel.loadError":"Caricamento non riuscito","panel.retry":"Riprova","panel.empty":"Nessun feedback ancora","panel.showMore":"Mostra di pi\xF9","panel.showLess":"Mostra meno","panel.resolve":"Risolvi","panel.reopen":"Riapri","panel.delete":"Elimina","panel.cancel":"Annulla","panel.confirmDelete":"Elimina","panel.loadMore":"Carica altro ({remaining} rimanenti)","panel.statusAll":"Tutti","panel.statusOpen":"Aperti","panel.statusResolved":"Risolti","type.label":"Tipo","type.question":"Domanda","type.change":"Modifica","type.bug":"Bug","type.other":"Altro","status.label":"Stato","fab.aria":"Siteping \u2014 Menu feedback","fab.messages":"Messaggi","fab.annotate":"Annota","fab.annotations":"Annotazioni","annotator.instruction":"Disegna un rettangolo sull'area da commentare","annotator.cancel":"Annulla","popup.ariaLabel":"Modulo feedback","popup.placeholder":"Descrivi il tuo feedback...","popup.textareaAria":"Messaggio di feedback","popup.submitHintMac":"\u2318+Invio per inviare","popup.submitHintOther":"Ctrl+Invio per inviare","popup.cancel":"Annulla","popup.submit":"Invia","identity.title":"Identificati","identity.nameLabel":"Nome","identity.namePlaceholder":"Il tuo nome","identity.emailLabel":"Email","identity.emailPlaceholder":"tua@email.com","identity.cancel":"Annulla","identity.submit":"Continua","marker.approximate":"Posizione approssimativa (confidenza: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","fab.badge":"{count} feedback non risolti","feedback.sent.confirmation":"Feedback inviato con successo","feedback.error.message":"Invio del feedback non riuscito","feedback.deleted.confirmation":"Feedback eliminato","badge.count":"{count} feedback non risolti"};var Et={"panel.title":"Feedbacks","panel.ariaLabel":"Painel de feedback do Siteping","panel.feedbackList":"Lista de feedbacks","panel.loading":"Carregando feedbacks","panel.close":"Fechar painel","panel.deleteAll":"Excluir tudo","panel.deleteAllConfirmTitle":"Excluir tudo","panel.deleteAllConfirmMessage":"Excluir todos os feedbacks deste projeto? Esta a\xE7\xE3o n\xE3o pode ser desfeita.","panel.search":"Pesquisar...","panel.searchAria":"Pesquisar feedbacks","panel.filterAll":"Todos","panel.loadError":"Falha ao carregar","panel.retry":"Tentar novamente","panel.empty":"Nenhum feedback ainda","panel.showMore":"Mostrar mais","panel.showLess":"Mostrar menos","panel.resolve":"Resolver","panel.reopen":"Reabrir","panel.delete":"Excluir","panel.cancel":"Cancelar","panel.confirmDelete":"Excluir","panel.loadMore":"Carregar mais ({remaining} restantes)","panel.statusAll":"Todos","panel.statusOpen":"Abertos","panel.statusResolved":"Resolvidos","type.label":"Tipo","type.question":"Pergunta","type.change":"Altera\xE7\xE3o","type.bug":"Bug","type.other":"Outro","status.label":"Status","fab.aria":"Siteping \u2014 Menu de feedback","fab.messages":"Mensagens","fab.annotate":"Anotar","fab.annotations":"Anota\xE7\xF5es","annotator.instruction":"Desenhe um ret\xE2ngulo na \xE1rea que deseja comentar","annotator.cancel":"Cancelar","popup.ariaLabel":"Formul\xE1rio de feedback","popup.placeholder":"Descreva seu feedback...","popup.textareaAria":"Mensagem de feedback","popup.submitHintMac":"\u2318+Enter para enviar","popup.submitHintOther":"Ctrl+Enter para enviar","popup.cancel":"Cancelar","popup.submit":"Enviar","identity.title":"Identifique-se","identity.nameLabel":"Nome","identity.namePlaceholder":"Seu nome","identity.emailLabel":"E-mail","identity.emailPlaceholder":"seu@email.com","identity.cancel":"Cancelar","identity.submit":"Continuar","marker.approximate":"Posi\xE7\xE3o aproximada (confian\xE7a: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","fab.badge":"{count} feedbacks n\xE3o resolvidos","feedback.sent.confirmation":"Feedback enviado com sucesso","feedback.error.message":"Falha ao enviar feedback","feedback.deleted.confirmation":"Feedback exclu\xEDdo","badge.count":"{count} feedbacks n\xE3o resolvidos"};var Tt={"panel.title":"\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C","panel.ariaLabel":"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438 Siteping","panel.feedbackList":"\u0421\u043F\u0438\u0441\u043E\u043A \u043E\u0442\u0437\u044B\u0432\u043E\u0432","panel.loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043E\u0442\u0437\u044B\u0432\u043E\u0432","panel.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C","panel.deleteAll":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451","panel.deleteAllConfirmTitle":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451","panel.deleteAllConfirmMessage":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u043E\u0442\u0437\u044B\u0432\u044B \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430? \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","panel.search":"\u041F\u043E\u0438\u0441\u043A...","panel.searchAria":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u043E\u0442\u0437\u044B\u0432\u0430\u043C","panel.filterAll":"\u0412\u0441\u0435","panel.loadError":"\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438","panel.retry":"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C","panel.empty":"\u041F\u043E\u043A\u0430 \u043D\u0435\u0442 \u043E\u0442\u0437\u044B\u0432\u043E\u0432","panel.showMore":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435","panel.showLess":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0435\u043D\u044C\u0448\u0435","panel.resolve":"\u0420\u0435\u0448\u0435\u043D\u043E","panel.reopen":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E","panel.delete":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","panel.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","panel.confirmDelete":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","panel.loadMore":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451 ({remaining} \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C)","panel.statusAll":"\u0412\u0441\u0435","panel.statusOpen":"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0435","panel.statusResolved":"\u0420\u0435\u0448\u0451\u043D\u043D\u044B\u0435","type.label":"\u0422\u0438\u043F","type.question":"\u0412\u043E\u043F\u0440\u043E\u0441","type.change":"\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435","type.bug":"\u0411\u0430\u0433","type.other":"\u0414\u0440\u0443\u0433\u043E\u0435","status.label":"\u0421\u0442\u0430\u0442\u0443\u0441","fab.aria":"Siteping \u2014 \u041C\u0435\u043D\u044E \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438","fab.messages":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","fab.annotate":"\u0410\u043D\u043D\u043E\u0442\u0430\u0446\u0438\u044F","fab.annotations":"\u0410\u043D\u043D\u043E\u0442\u0430\u0446\u0438\u0438","annotator.instruction":"\u0412\u044B\u0434\u0435\u043B\u0438\u0442\u0435 \u043E\u0431\u043B\u0430\u0441\u0442\u044C \u0434\u043B\u044F \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F","annotator.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","popup.ariaLabel":"\u0424\u043E\u0440\u043C\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438","popup.placeholder":"\u041E\u043F\u0438\u0448\u0438\u0442\u0435 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0443 \u0438\u043B\u0438 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435...","popup.textareaAria":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","popup.submitHintMac":"\u2318+Enter \u2014 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","popup.submitHintOther":"Ctrl+Enter \u2014 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","popup.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","popup.submit":"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","identity.title":"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044C\u0442\u0435\u0441\u044C","identity.nameLabel":"\u0418\u043C\u044F","identity.namePlaceholder":"\u0412\u0430\u0448\u0435 \u0438\u043C\u044F","identity.emailLabel":"Email","identity.emailPlaceholder":"\u0432\u0430\u0448@email.com","identity.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","identity.submit":"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C","marker.approximate":"\u041F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u043F\u043E\u0437\u0438\u0446\u0438\u044F (\u0442\u043E\u0447\u043D\u043E\u0441\u0442\u044C: {confidence}%)","marker.aria":"\u041E\u0442\u0437\u044B\u0432 #{number}: {type} \u2014 {message}","fab.badge":"\u041D\u0435\u0440\u0435\u0448\u0451\u043D\u043D\u044B\u0445 \u043E\u0442\u0437\u044B\u0432\u043E\u0432: {count}","feedback.sent.confirmation":"\u041E\u0442\u0437\u044B\u0432 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D","feedback.error.message":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u0437\u044B\u0432","feedback.deleted.confirmation":"\u041E\u0442\u0437\u044B\u0432 \u0443\u0434\u0430\u043B\u0451\u043D","badge.count":"\u041D\u0435\u0440\u0435\u0448\u0451\u043D\u043D\u044B\u0445 \u043E\u0442\u0437\u044B\u0432\u043E\u0432: {count}"};var Fe={de:yt,en:xt,es:kt,fr:wt,it:Ct,pt:Et,ru:Tt};function re(n){let e=(n.split("-")[0]??n).toLowerCase();Fe[e]||console.warn(`[siteping] Unknown locale "${n}", falling back to "en"`);let t=Fe[e]??Fe.en??{};return s=>t[s]??s}function N(n,e){switch(n){case"question":return e("type.question");case"change":return e("type.change");case"bug":return e("type.bug");case"other":return e("type.other");default:return n}}var St="siteping_identity";function At(){try{let n=localStorage.getItem(St);if(!n)return null;let e=JSON.parse(n);if(typeof e=="object"&&e!==null&&"name"in e&&typeof e.name=="string"&&"email"in e&&typeof e.email=="string"){let t=e;if(t.name&&t.email)return t}return null}catch{return null}}function Lt(n){try{localStorage.setItem(St,JSON.stringify(n))}catch{}}function Fs(n,e){if(n===e)return 0;if(n.length===0)return e.length;if(e.length===0)return n.length;if(n.length>e.length){let r=n;n=e,e=r}let t=n.length,s=e.length,o=new Array(t+1);for(let r=0;r<=t;r++)o[r]=r;let i=new Array(t+1);for(let r=1;r<=s;r++){i[0]=r;for(let p=1;p<=t;p++){let d=o[p-1]??0;i[p]=n[p-1]===e[r-1]?d:1+Math.min(d,o[p]??0,i[p-1]??0)}let a=o;o=i,i=a}return o[t]??0}function _(n,e){if(n===e)return 1;let t=Math.max(n.length,e.length);return t===0?1:1-Fs(n,e)/t}function Re(n,e,t=.6){if(!e||!n)return 0;if(n.includes(e))return 1;let s=e.length;if(s>n.length){let a=_(n,e);return a>=t?a:0}let o=0,i=n.length>500?n.slice(0,500):n,r=i.length-s;for(let a=0;a<=r;a++){let p=i.slice(a,a+s),d=_(p,e);if(d>o&&(o=d),o>=.95)break}return o>=t?o:0}var Rs=300,Ps=.3;function Pe(n,e){if(!e.textSnippet)return!0;let t=(n.textContent?.trim()??"").slice(0,500);return Re(t,e.textSnippet,.5)>Ps}function Is(n){if(n.elementId){let e=document.getElementById(n.elementId);if(e&&e.tagName===n.elementTag&&Pe(e,n))return{element:e,confidence:1,strategy:"id"}}try{let e=document.querySelector(n.cssSelector);if(e&&e.tagName===n.elementTag&&Pe(e,n))return{element:e,confidence:.95,strategy:"css"}}catch{}try{let t=document.evaluate(n.xpath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(t instanceof Element&&t.tagName===n.elementTag&&Pe(t,n))return{element:t,confidence:.9,strategy:"xpath"}}catch{}return Ns(n)}function Ns(n){let e=n.elementTag.toLowerCase(),t=document.querySelectorAll(e);if(t.length===0)return null;let s=null,o=0,i=Math.min(t.length,Rs);for(let r=0;r<i;r++){let a=t[r];if(!a)continue;let p=Ds(a,n);if(p>o&&(o=p,s=a,o>=.85))break}return!s||o<.4?null:{element:s,confidence:Math.min(o,.85),strategy:"scan"}}function Ds(n,e){let t=0,s=0,o=(n.textContent?.trim()??"").slice(0,500);if(e.textSnippet&&(s+=40,t+=Re(o,e.textSnippet,.5)*40),e.fingerprint&&(s+=20,t+=nt(n,e.fingerprint)*20),e.textPrefix||e.textSuffix){s+=20;let i=0,r=0;if(e.textPrefix){let a=D(n,"before");i+=a?_(a,e.textPrefix):0,r++}if(e.textSuffix){let a=D(n,"after");i+=a?_(a,e.textSuffix):0,r++}r>0&&(t+=i/r*20)}if(e.neighborText){s+=20;let i=X(n);t+=i?_(i,e.neighborText)*20:0}return s>0?t/s:0}function ae(n,e){let t=Is(n);if(!t)return null;let s=t.element.getBoundingClientRect(),o=new DOMRect(s.x+e.xPct*s.width,s.y+e.yPct*s.height,e.wPct*s.width,e.hPct*s.height);return{element:t.element,rect:o,confidence:t.confidence,strategy:t.strategy}}function Ie(n){return{cssSelector:n.cssSelector,xpath:n.xpath,textSnippet:n.textSnippet,elementTag:n.elementTag,elementId:n.elementId??void 0,textPrefix:n.textPrefix,textSuffix:n.textSuffix,fingerprint:n.fingerprint,neighborText:n.neighborText}}function le(n){return{xPct:n.xPct,yPct:n.yPct,wPct:n.wPct,hPct:n.hPct}}var Mt=13;function Bt(n){return{top:n.top+window.scrollY-Mt,left:n.right+window.scrollX-Mt}}function j(n,e){let t=n.entries[e],s=n.elementIndices[e];if(!(!t||s===void 0))return t.elements[s]}var Ft=300,Rt=200,_s=.7,Os=28,Pt=32,pe=class{constructor(e,t,s,o){this.colors=e;this.tooltip=t;this.bus=s;this.t=o;this.container=l("div",{style:`position:absolute;top:0;left:0;pointer-events:none;z-index:${2147483646};`}),this.container.id="siteping-markers",document.body.appendChild(this.container),this.bus.on("annotations:toggle",i=>{this.container.style.display=i?"block":"none"}),this.resizeHandler=()=>this.scheduleReposition(),window.addEventListener("resize",this.resizeHandler,{passive:!0}),this.scrollHandler=()=>this.scheduleReposition(),window.addEventListener("scroll",this.scrollHandler,{passive:!0,capture:!0}),this.mutationObserver=new MutationObserver(i=>{if(i.length>20){this.scheduleReposition();return}let r=!1;for(let a of i)if(!(this.container.contains(a.target)||this.tooltip.contains(a.target))){r=!0;break}r&&this.scheduleReposition()}),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!1,characterData:!1}),this.onDocumentClickForClusters=i=>{this.container.contains(i.target)||this.collapseAllClusters()},document.addEventListener("click",this.onDocumentClickForClusters)}colors;tooltip;bus;t;container;entries=[];highlightElements=[];pinnedFeedback=null;onDocumentClick=null;repositionTimer=null;mutationObserver=null;scrollHandler=null;resizeHandler=null;anchorCache=new Map;clusters=[];onDocumentClickForClusters=null;get count(){return this.entries.length}scheduleReposition(){this.repositionTimer||("requestIdleCallback"in window?this.repositionTimer=window.requestIdleCallback(()=>{this.repositionTimer=null,this.repositionAll()},{timeout:Rt+100}):this.repositionTimer=+setTimeout(()=>{this.repositionTimer=null,this.repositionAll()},Rt))}repositionAll(){let e=new Set;for(let t of this.entries)for(let s=0;s<t.feedback.annotations.length;s++){let o=t.elements[s];if(!o)continue;let i=t.feedback.annotations[s];if(!i)continue;let r=`${t.feedback.id}:${s}`;e.add(r);let p=this.anchorCache.get(r)?.deref(),d;if(p?.isConnected){let h=p.getBoundingClientRect(),b=le(i);d={element:p,rect:new DOMRect(h.left+b.xPct*h.width,h.top+b.yPct*h.height,b.wPct*h.width,b.hPct*h.height),confidence:1,strategy:"css"}}else d=ae(Ie(i),le(i)),d?.element&&this.anchorCache.set(r,new WeakRef(d.element));if(!d){o.style.display="none";continue}let u=Bt(d.rect);t.baseTop=u.top,t.baseLeft=u.left,o.style.display="flex",this.applyConfidenceStyle(o,d.confidence,t.feedback)}for(let t of this.anchorCache.keys())e.has(t)||this.anchorCache.delete(t);this.applyClusterPositions()}applyClusterPositions(){for(let e of this.clusters)e.expanded?this.applyFanPositions(e):this.applyStackPositions(e)}render(e){this.clear(),e.forEach((t,s)=>{let o=this.buildEntry(t,s+1);this.entries.push(o)}),this.buildClusters()}addFeedback(e,t){let s=this.buildEntry(e,t);for(let o of s.elements)o.style.animation="sp-marker-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both";this.entries.push(s),this.buildClusters()}buildEntry(e,t){let s={feedback:e,elements:[],baseTop:0,baseLeft:0};for(let o of e.annotations){let i=ae(Ie(o),le(o));if(!i)continue;let r=Bt(i.rect);s.baseTop=r.top,s.baseLeft=r.left;let a=this.createMarker(t,e,r);this.applyConfidenceStyle(a,i.confidence,e),this.container.appendChild(a),s.elements.push(a)}return s}buildClusters(){for(let s of this.container.querySelectorAll(".sp-cluster-badge"))s.remove();let e=[];for(let s of this.entries)for(let o=0;o<s.elements.length;o++)e.push({entry:s,elIdx:o});let t=new Set;this.clusters=[];for(let s=0;s<e.length;s++){if(t.has(s))continue;let o=e[s];if(!o)continue;let i={entries:[o.entry],elementIndices:[o.elIdx],expanded:!1};t.add(s);for(let r=s+1;r<e.length;r++){if(t.has(r))continue;let a=o.entry,p=e[r];if(!p)continue;let d=p.entry;Math.sqrt((a.baseLeft-d.baseLeft)**2+(a.baseTop-d.baseTop)**2)<Os&&(i.entries.push(d),i.elementIndices.push(p.elIdx),t.add(r))}this.clusters.push(i)}for(let s of this.clusters)s.entries.length<=1||(this.applyStackPositions(s),this.addClusterBadge(s))}applyStackPositions(e){let t=e.entries[0];if(!t)return;let{baseTop:s,baseLeft:o}=t,i=e.entries.length<=1;for(let r=0;r<e.entries.length;r++){let a=j(e,r);a&&(a.style.top=`${s+(i?0:r*3)}px`,a.style.left=`${o+(i?0:r*3)}px`,a.style.zIndex=String(r+1))}}applyFanPositions(e){let t=e.entries[0];if(!t)return;let{baseTop:s,baseLeft:o}=t,i=e.entries.length,r=(i-1)*Pt,a=o-r/2;for(let p=0;p<i;p++){let d=j(e,p);d&&(d.style.top=`${s}px`,d.style.left=`${a+p*Pt}px`,d.style.zIndex=String(10+p))}}addClusterBadge(e){let t=j(e,e.entries.length-1);if(!t)return;let s=l("div",{class:"sp-cluster-badge",style:`
135
+ `}),this.overlay?.appendChild(this.drawingRect)}onMouseMove=s=>{this.scheduleRectUpdate(s)};onTouchMove=s=>{s.preventDefault(),s.touches[0]&&this.scheduleRectUpdate(s.touches[0])};scheduleRectUpdate(s){!this.isDrawing||!this.drawingRect||(this.pendingMoveEvent=s,this.rafId===null&&(this.rafId=requestAnimationFrame(()=>{this.rafId=null;let i=this.pendingMoveEvent;if(!i||!this.drawingRect)return;let o=Math.min(i.clientX,this.startX),c=Math.min(i.clientY,this.startY),d=Math.abs(i.clientX-this.startX),h=Math.abs(i.clientY-this.startY);this.drawingRect.style.left=`${o}px`,this.drawingRect.style.top=`${c}px`,this.drawingRect.style.width=`${d}px`,this.drawingRect.style.height=`${h}px`})))}onTouchEnd=async s=>{let i=s.changedTouches[0];i&&await this.finishDrawing(i.clientX,i.clientY)};onMouseUp=async s=>{await this.finishDrawing(s.clientX,s.clientY)};finishDrawing=async(s,i)=>{if(!this.isDrawing||!this.drawingRect)return;this.isDrawing=!1;let o=Math.min(s,this.startX),c=Math.min(i,this.startY),d=Math.abs(s-this.startX),h=Math.abs(i-this.startY);if(d<10||h<10){this.drawingRect.remove(),this.drawingRect=null;return}let f=new DOMRect(o,c,d,h),C=await this.popup.show(f);if(!C){this.drawingRect?.remove(),this.drawingRect=null;return}let Q=this.buildAnnotation(f);this.drawingRect?.remove(),this.drawingRect=null;let v=await this.maybeCapture(f);this.deactivate(),this.bus.emit("annotation:complete",{annotation:Q,type:C.type,message:C.message,screenshotDataUrl:v})};buildAnnotation(s){this.overlay&&(this.overlay.style.pointerEvents="none");let i=io(s);this.overlay&&(this.overlay.style.pointerEvents="auto");let o=Qs(i),c=i.getBoundingClientRect(),d=oo(s,c);return{anchor:o,rect:d,scrollX:window.scrollX,scrollY:window.scrollY,viewportW:window.innerWidth,viewportH:window.innerHeight,devicePixelRatio:window.devicePixelRatio}}destroy(){this.deactivate(),this.popup.destroy()}};var At="siteping_retry_queue";async function qe(l,s,i=3){for(let o=0;o<=i;o++){let c=new AbortController,d=setTimeout(()=>c.abort(),1e4);try{let C=await fetch(l,{...s,signal:c.signal});if(clearTimeout(d),C.ok||C.status>=400&&C.status<500||o===i)return C}catch(C){if(clearTimeout(d),o===i)throw C}let h=1e3*2**o,f=Math.random()*1e3-500;await new Promise(C=>setTimeout(C,h+f))}throw new Error("Max retries exceeded")}var Vu="siteping_retry_queue";async function vo(l){return typeof navigator<"u"&&navigator.locks?navigator.locks.request(Vu,()=>l()):l()}function Xu(l,s){vo(()=>{try{let i=localStorage.getItem(At),o=i?JSON.parse(i):[],c=Array.isArray(o)?o:[];c.length>=20&&c.shift(),c.push({endpoint:l,payload:s}),localStorage.setItem(At,JSON.stringify(c))}catch{}})}async function Qo(l){await vo(async()=>{try{let s=localStorage.getItem(At);if(!s)return;let i=JSON.parse(s),o=Array.isArray(i)?i:[],c=o.filter(f=>f.endpoint===l);if(c.length===0)return;let d=[];for(let f of c)try{(await fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f.payload)})).ok||d.push(f)}catch{d.push(f)}let h=o.filter(f=>f.endpoint!==l).concat(d);h.length>0?localStorage.setItem(At,JSON.stringify(h)):localStorage.removeItem(At)}catch{}})}var ar=class{constructor(s,i){this.endpoint=s;this.projectName=i}endpoint;projectName;async sendFeedback(s){try{let i=await qe(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!i.ok){let o=await i.text().catch(()=>"Unknown error");throw new Error(`Failed to send feedback: ${i.status} ${o}`)}return await i.json()}catch(i){throw Xu(this.endpoint,s),i}}async getFeedbacks(s,i){let o=new URLSearchParams({projectName:s});i?.page&&o.set("page",String(i.page)),i?.limit&&o.set("limit",String(i.limit)),i?.type&&o.set("type",i.type),i?.status&&o.set("status",i.status),i?.search&&o.set("search",i.search),i?.url&&o.set("url",i.url),i?.urlPattern&&o.set("urlPattern",i.urlPattern);let c=await qe(`${this.endpoint}?${o.toString()}`,{method:"GET",cache:"no-store"});if(!c.ok)throw new Error(`Failed to fetch feedbacks: ${c.status}`);return await c.json()}async resolveFeedback(s,i){let o=await qe(this.endpoint,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s,projectName:this.projectName,status:i?"resolved":"open"})});if(!o.ok)throw new Error(`Failed to update feedback: ${o.status}`);return await o.json()}async deleteFeedback(s){let i=await qe(this.endpoint,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s,projectName:this.projectName})});if(!i.ok)throw new Error(`Failed to delete feedback: ${i.status}`)}async deleteAllFeedbacks(s){let i=await qe(this.endpoint,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectName:s,deleteAll:!0})});if(!i.ok)throw new Error(`Failed to delete all feedbacks: ${i.status}`)}};var et=class{listeners=new Map;on(s,i){this.listeners.has(s)||this.listeners.set(s,new Set);let o=this.listeners.get(s);return o.add(i),()=>{o.delete(i)}}off(s,i){let o=this.listeners.get(s);o&&o.delete(i)}emit(s,...i){let o=this.listeners.get(s);if(o)for(let c of o)try{c(...i)}catch(d){console.error(`[siteping] Error in event listener for "${String(s)}":`,d)}}removeAll(){this.listeners.clear()}};var Yu=54,lr=class{constructor(s,i,o,c){this.bus=o;this.t=c;let d=i.position??"bottom-right",h=d==="bottom-right";this.items=[{id:"chat",icon:ao,label:c("fab.messages")},{id:"annotate",icon:lo,label:c("fab.annotate")},{id:"toggle-annotations",icon:ys,iconAlt:Us,label:c("fab.annotations")}],this.fab=document.createElement("button"),this.fab.className=`sp-fab sp-fab--${d} sp-anim-fab-in`,this.fab.style.position="fixed",this.fab.appendChild(P(Fs)),this.fab.setAttribute("aria-label",c("fab.aria")),this.fab.setAttribute("aria-expanded","false"),this.fab.addEventListener("click",()=>this.toggle()),this.radialContainer=document.createElement("div"),this.radialContainer.className=`sp-radial sp-radial--${d}`,this.radialContainer.setAttribute("role","menu");for(let Q=0;Q<this.items.length;Q++){let v=this.items[Q];if(!v)continue;let y=document.createElement("button");y.className="sp-radial-item",y.style.setProperty("--sp-i",String(Q)),y.appendChild(P(v.icon)),y.setAttribute("role","menuitem"),y.setAttribute("aria-label",v.label),y.dataset.itemId=v.id,y.addEventListener("click",O=>{O.stopPropagation(),this.handleItemClick(v.id)});let T=document.createElement("span");T.className="sp-radial-label",T.textContent=v.label,T.style.cssText=h?"position:absolute; right:54px; top:50%; transform:translateY(-50%); white-space:nowrap;":"position:absolute; left:54px; top:50%; transform:translateY(-50%); white-space:nowrap;",y.appendChild(T),this.radialContainer.appendChild(y)}this.root=document.createElement("div"),this.root.appendChild(this.radialContainer),this.root.appendChild(this.fab),s.appendChild(this.root);let f=s.host;this.onDocumentClick=Q=>{this.isOpen&&!Q.composedPath().includes(f)&&this.close()},document.addEventListener("click",this.onDocumentClick);let C=Q=>{Q.key==="Escape"&&this.isOpen&&(Q.stopPropagation(),this.close())};this.fab.addEventListener("keydown",C),this.radialContainer.addEventListener("keydown",C),this.radialContainer.addEventListener("keydown",Q=>{let v=Array.from(this.radialContainer.querySelectorAll(".sp-radial-item"));if(v.length===0||!this.isOpen)return;let y=s.activeElement??document.activeElement,T=v.indexOf(y);switch(Q.key){case"ArrowUp":{Q.preventDefault();let O=T<=0?v.length-1:T-1;v[O]?.focus();break}case"ArrowDown":{Q.preventDefault();let O=T>=v.length-1?0:T+1;v[O]?.focus();break}case"Home":{Q.preventDefault(),v[0]?.focus();break}case"End":{Q.preventDefault(),v[v.length-1]?.focus();break}}})}bus;t;root;fab;radialContainer;badgeEl=null;isOpen=!1;annotationsVisible=!0;items;onDocumentClick;updateBadge(s){if(s<=0){this.badgeEl?.remove(),this.badgeEl=null;return}this.badgeEl||(this.badgeEl=document.createElement("span"),this.badgeEl.className="sp-fab-badge",this.badgeEl.setAttribute("role","status"),this.badgeEl.setAttribute("aria-live","polite"),this.fab.appendChild(this.badgeEl));let i=s>99?"99+":String(s);U(this.badgeEl,i),this.badgeEl.setAttribute("aria-label",this.t("fab.badge").replace("{count}",String(s)))}toggle(){this.isOpen?this.close():this.open()}open(){this.isOpen=!0,this.setFabIcon(Ar),this.fab.setAttribute("aria-expanded","true"),this.radialContainer.querySelectorAll(".sp-radial-item").forEach((i,o)=>{let c=-(16+Yu*(o+1));i.style.transform=`translate(0px, ${c}px) scale(1)`,i.classList.add("sp-radial-item--open")}),requestAnimationFrame(()=>{this.radialContainer.querySelector(".sp-radial-item")?.focus()})}close(){this.isOpen=!1,this.setFabIcon(Fs),this.fab.setAttribute("aria-expanded","false"),this.radialContainer.querySelectorAll(".sp-radial-item").forEach(i=>{i.style.transform="translate(0, 0) scale(0.8)",i.classList.remove("sp-radial-item--open")}),this.fab.focus()}setFabIcon(s){let i=this.badgeEl;this.fab.replaceChildren(P(s)),i&&this.fab.appendChild(i)}handleItemClick(s){switch(this.close(),s){case"chat":this.bus.emit("panel:toggle",!0);break;case"annotate":this.bus.emit("annotation:start");break;case"toggle-annotations":{this.annotationsVisible=!this.annotationsVisible,this.bus.emit("annotations:toggle",this.annotationsVisible);let i=this.radialContainer.querySelector('[data-item-id="toggle-annotations"]');i&&i.replaceChildren(P(this.annotationsVisible?ys:Us));break}}}destroy(){document.removeEventListener("click",this.onDocumentClick),this.root.remove()}};var Fo={"panel.title":"Feedbacks","panel.ariaLabel":"Siteping-Feedback-Panel","panel.feedbackList":"Feedbackliste","panel.loading":"Feedbacks werden geladen","panel.close":"Panel schlie\xDFen","panel.deleteAll":"Alle l\xF6schen","panel.deleteAllConfirmTitle":"Alle l\xF6schen","panel.deleteAllConfirmMessage":"Alle Feedbacks f\xFCr dieses Projekt l\xF6schen? Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden.","panel.search":"Suchen...","panel.searchAria":"Feedbacks suchen","panel.filterAll":"Alle","panel.loadError":"Laden fehlgeschlagen","panel.retry":"Erneut versuchen","panel.empty":"Noch kein Feedback","panel.showMore":"Mehr anzeigen","panel.showLess":"Weniger anzeigen","panel.resolve":"Erledigen","panel.reopen":"Wieder \xF6ffnen","panel.delete":"L\xF6schen","panel.cancel":"Abbrechen","panel.confirmDelete":"L\xF6schen","panel.loadMore":"Mehr laden ({remaining} verbleibend)","panel.statusAll":"Alle","panel.statusOpen":"Offen","panel.statusResolved":"Erledigt","type.label":"Typ","type.question":"Frage","type.change":"\xC4nderung","type.bug":"Fehler","type.other":"Sonstiges","status.label":"Status","scope.label":"Bereich","scope.thisPage":"Diese Seite","scope.thisType":"Dieser Typ","scope.all":"Alle Seiten","fab.aria":"Siteping \u2014 Feedback-Men\xFC","fab.messages":"Nachrichten","fab.annotate":"Kommentieren","fab.annotations":"Anmerkungen","annotator.instruction":"Zeichne ein Rechteck um den Bereich, den du kommentieren m\xF6chtest","annotator.cancel":"Abbrechen","popup.ariaLabel":"Feedbackformular","popup.placeholder":"Beschreibe dein Feedback...","popup.textareaAria":"Feedbacknachricht","popup.submitHintMac":"\u2318+Enter zum Senden","popup.submitHintOther":"Strg+Enter zum Senden","popup.cancel":"Abbrechen","popup.submit":"Senden","identity.title":"Identifiziere dich","identity.nameLabel":"Name","identity.namePlaceholder":"Dein Name","identity.emailLabel":"E-Mail","identity.emailPlaceholder":"deine@email.de","identity.cancel":"Abbrechen","identity.submit":"Fortfahren","marker.approximate":"Ungef\xE4hre Position (Konfidenz: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","fab.badge":"{count} unerledigte Feedbacks","feedback.sent.confirmation":"Feedback erfolgreich gesendet","feedback.error.message":"Feedback konnte nicht gesendet werden","feedback.deleted.confirmation":"Feedback gel\xF6scht","badge.count":"{count} unerledigte Feedbacks"};var yo={"panel.title":"Feedbacks","panel.ariaLabel":"Siteping feedback panel","panel.feedbackList":"Feedback list","panel.loading":"Loading feedbacks","panel.close":"Close panel","panel.deleteAll":"Delete all","panel.deleteAllConfirmTitle":"Delete all","panel.deleteAllConfirmMessage":"Delete all feedbacks for this project? This action cannot be undone.","panel.search":"Search...","panel.searchAria":"Search feedbacks","panel.filterAll":"All","panel.loadError":"Failed to load","panel.retry":"Retry","panel.empty":"No feedback yet","panel.showMore":"Show more","panel.showLess":"Show less","panel.resolve":"Resolve","panel.reopen":"Reopen","panel.delete":"Delete","panel.cancel":"Cancel","panel.confirmDelete":"Delete","panel.loadMore":"Load more ({remaining} remaining)","panel.statusAll":"All","panel.statusOpen":"Open","panel.statusResolved":"Resolved","type.label":"Type","type.question":"Question","type.change":"Change","type.bug":"Bug","type.other":"Other","status.label":"Status","scope.label":"Scope","scope.thisPage":"This page","scope.thisType":"This type","scope.all":"All pages","fab.aria":"Siteping \u2014 Feedback menu","fab.messages":"Messages","fab.annotate":"Annotate","fab.annotations":"Annotations","annotator.instruction":"Draw a rectangle on the area to comment","annotator.cancel":"Cancel","popup.ariaLabel":"Feedback form","popup.placeholder":"Describe your feedback...","popup.textareaAria":"Feedback message","popup.submitHintMac":"\u2318+Enter to send","popup.submitHintOther":"Ctrl+Enter to send","popup.cancel":"Cancel","popup.submit":"Send","identity.title":"Identify yourself","identity.nameLabel":"Name","identity.namePlaceholder":"Your name","identity.emailLabel":"Email","identity.emailPlaceholder":"your@email.com","identity.cancel":"Cancel","identity.submit":"Continue","marker.approximate":"Approximate position (confidence: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","fab.badge":"{count} unresolved feedbacks","feedback.sent.confirmation":"Feedback sent successfully","feedback.error.message":"Failed to send feedback","feedback.deleted.confirmation":"Feedback deleted","badge.count":"{count} unresolved feedbacks"};var Uo={"panel.title":"Comentarios","panel.ariaLabel":"Panel de comentarios de Siteping","panel.feedbackList":"Lista de comentarios","panel.loading":"Cargando comentarios","panel.close":"Cerrar panel","panel.deleteAll":"Eliminar todo","panel.deleteAllConfirmTitle":"Eliminar todo","panel.deleteAllConfirmMessage":"\xBFEliminar todos los comentarios de este proyecto? Esta acci\xF3n no se puede deshacer.","panel.search":"Buscar...","panel.searchAria":"Buscar comentarios","panel.filterAll":"Todos","panel.loadError":"No se pudo cargar","panel.retry":"Reintentar","panel.empty":"A\xFAn no hay comentarios","panel.showMore":"Mostrar m\xE1s","panel.showLess":"Mostrar menos","panel.resolve":"Resolver","panel.reopen":"Reabrir","panel.delete":"Eliminar","panel.cancel":"Cancelar","panel.confirmDelete":"Eliminar","panel.loadMore":"Cargar m\xE1s ({remaining} restantes)","panel.statusAll":"Todos","panel.statusOpen":"Abiertos","panel.statusResolved":"Resueltos","type.label":"Tipo","type.question":"Pregunta","type.change":"Cambio","type.bug":"Error","type.other":"Otro","status.label":"Estado","scope.label":"\xC1mbito","scope.thisPage":"Esta p\xE1gina","scope.thisType":"Este tipo","scope.all":"Todas las p\xE1ginas","fab.aria":"Siteping \u2014 Men\xFA de comentarios","fab.messages":"Mensajes","fab.annotate":"Anotar","fab.annotations":"Anotaciones","annotator.instruction":"Dibuja un rect\xE1ngulo sobre el \xE1rea que quieres comentar","annotator.cancel":"Cancelar","popup.ariaLabel":"Formulario de comentarios","popup.placeholder":"Describe tu comentario...","popup.textareaAria":"Mensaje de comentario","popup.submitHintMac":"\u2318+Enter para enviar","popup.submitHintOther":"Ctrl+Enter para enviar","popup.cancel":"Cancelar","popup.submit":"Enviar","identity.title":"Identif\xEDcate","identity.nameLabel":"Nombre","identity.namePlaceholder":"Tu nombre","identity.emailLabel":"Correo electr\xF3nico","identity.emailPlaceholder":"tu@email.com","identity.cancel":"Cancelar","identity.submit":"Continuar","marker.approximate":"Posici\xF3n aproximada (confianza: {confidence}%)","marker.aria":"Comentario #{number}: {type} \u2014 {message}","fab.badge":"{count} comentarios sin resolver","feedback.sent.confirmation":"Comentario enviado correctamente","feedback.error.message":"No se pudo enviar el comentario","feedback.deleted.confirmation":"Comentario eliminado","badge.count":"{count} comentarios sin resolver"};var xo={"panel.title":"Feedbacks","panel.ariaLabel":"Panneau de feedback Siteping","panel.feedbackList":"Liste des feedbacks","panel.loading":"Chargement des feedbacks","panel.close":"Fermer le panneau","panel.deleteAll":"Tout supprimer","panel.deleteAllConfirmTitle":"Tout supprimer","panel.deleteAllConfirmMessage":"Supprimer tous les feedbacks de ce projet ? Cette action est irr\xE9versible.","panel.search":"Rechercher...","panel.searchAria":"Rechercher dans les feedbacks","panel.filterAll":"Tous","panel.loadError":"Erreur de chargement","panel.retry":"R\xE9essayer","panel.empty":"Aucun feedback pour le moment","panel.showMore":"Voir plus","panel.showLess":"Voir moins","panel.resolve":"R\xE9soudre","panel.reopen":"Rouvrir","panel.delete":"Supprimer","panel.cancel":"Annuler","panel.confirmDelete":"Supprimer","panel.loadMore":"Voir plus ({remaining} restants)","panel.statusAll":"Tous","panel.statusOpen":"Ouvert","panel.statusResolved":"R\xE9solu","type.label":"Type","type.question":"Question","type.change":"Changement","type.bug":"Bug","type.other":"Autre","status.label":"Statut","scope.label":"Port\xE9e","scope.thisPage":"Cette page","scope.thisType":"Ce type","scope.all":"Toutes les pages","fab.aria":"Siteping \u2014 Menu feedback","fab.messages":"Messages","fab.annotate":"Annoter","fab.annotations":"Annotations","annotator.instruction":"Tracez un rectangle sur la zone \xE0 commenter","annotator.cancel":"Annuler","popup.ariaLabel":"Formulaire de feedback","popup.placeholder":"D\xE9crivez votre retour...","popup.textareaAria":"Message de feedback","popup.submitHintMac":"\u2318+Entr\xE9e pour envoyer","popup.submitHintOther":"Ctrl+Entr\xE9e pour envoyer","popup.cancel":"Annuler","popup.submit":"Envoyer","identity.title":"Identifiez-vous","identity.nameLabel":"Nom","identity.namePlaceholder":"Votre nom","identity.emailLabel":"Email","identity.emailPlaceholder":"votre@email.com","identity.cancel":"Annuler","identity.submit":"Continuer","marker.approximate":"Position approximative (confiance : {confidence}%)","marker.aria":"Feedback n\xB0{number} : {type} \u2014 {message}","fab.badge":"{count} feedbacks non r\xE9solus","feedback.sent.confirmation":"Feedback envoy\xE9 avec succ\xE8s","feedback.error.message":"\xC9chec de l'envoi du feedback","feedback.deleted.confirmation":"Feedback supprim\xE9","badge.count":"{count} feedbacks non r\xE9solus"};var Eo={"panel.title":"Feedback","panel.ariaLabel":"Pannello feedback di Siteping","panel.feedbackList":"Elenco feedback","panel.loading":"Caricamento feedback","panel.close":"Chiudi pannello","panel.deleteAll":"Elimina tutto","panel.deleteAllConfirmTitle":"Elimina tutto","panel.deleteAllConfirmMessage":"Eliminare tutti i feedback per questo progetto? Questa azione non pu\xF2 essere annullata.","panel.search":"Cerca...","panel.searchAria":"Cerca feedback","panel.filterAll":"Tutti","panel.loadError":"Caricamento non riuscito","panel.retry":"Riprova","panel.empty":"Nessun feedback ancora","panel.showMore":"Mostra di pi\xF9","panel.showLess":"Mostra meno","panel.resolve":"Risolvi","panel.reopen":"Riapri","panel.delete":"Elimina","panel.cancel":"Annulla","panel.confirmDelete":"Elimina","panel.loadMore":"Carica altro ({remaining} rimanenti)","panel.statusAll":"Tutti","panel.statusOpen":"Aperti","panel.statusResolved":"Risolti","type.label":"Tipo","type.question":"Domanda","type.change":"Modifica","type.bug":"Bug","type.other":"Altro","status.label":"Stato","scope.label":"Ambito","scope.thisPage":"Questa pagina","scope.thisType":"Questo tipo","scope.all":"Tutte le pagine","fab.aria":"Siteping \u2014 Menu feedback","fab.messages":"Messaggi","fab.annotate":"Annota","fab.annotations":"Annotazioni","annotator.instruction":"Disegna un rettangolo sull'area da commentare","annotator.cancel":"Annulla","popup.ariaLabel":"Modulo feedback","popup.placeholder":"Descrivi il tuo feedback...","popup.textareaAria":"Messaggio di feedback","popup.submitHintMac":"\u2318+Invio per inviare","popup.submitHintOther":"Ctrl+Invio per inviare","popup.cancel":"Annulla","popup.submit":"Invia","identity.title":"Identificati","identity.nameLabel":"Nome","identity.namePlaceholder":"Il tuo nome","identity.emailLabel":"Email","identity.emailPlaceholder":"tua@email.com","identity.cancel":"Annulla","identity.submit":"Continua","marker.approximate":"Posizione approssimativa (confidenza: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","fab.badge":"{count} feedback non risolti","feedback.sent.confirmation":"Feedback inviato con successo","feedback.error.message":"Invio del feedback non riuscito","feedback.deleted.confirmation":"Feedback eliminato","badge.count":"{count} feedback non risolti"};var Ho={"panel.title":"Feedbacks","panel.ariaLabel":"Painel de feedback do Siteping","panel.feedbackList":"Lista de feedbacks","panel.loading":"Carregando feedbacks","panel.close":"Fechar painel","panel.deleteAll":"Excluir tudo","panel.deleteAllConfirmTitle":"Excluir tudo","panel.deleteAllConfirmMessage":"Excluir todos os feedbacks deste projeto? Esta a\xE7\xE3o n\xE3o pode ser desfeita.","panel.search":"Pesquisar...","panel.searchAria":"Pesquisar feedbacks","panel.filterAll":"Todos","panel.loadError":"Falha ao carregar","panel.retry":"Tentar novamente","panel.empty":"Nenhum feedback ainda","panel.showMore":"Mostrar mais","panel.showLess":"Mostrar menos","panel.resolve":"Resolver","panel.reopen":"Reabrir","panel.delete":"Excluir","panel.cancel":"Cancelar","panel.confirmDelete":"Excluir","panel.loadMore":"Carregar mais ({remaining} restantes)","panel.statusAll":"Todos","panel.statusOpen":"Abertos","panel.statusResolved":"Resolvidos","type.label":"Tipo","type.question":"Pergunta","type.change":"Altera\xE7\xE3o","type.bug":"Bug","type.other":"Outro","status.label":"Status","scope.label":"Escopo","scope.thisPage":"Esta p\xE1gina","scope.thisType":"Este tipo","scope.all":"Todas as p\xE1ginas","fab.aria":"Siteping \u2014 Menu de feedback","fab.messages":"Mensagens","fab.annotate":"Anotar","fab.annotations":"Anota\xE7\xF5es","annotator.instruction":"Desenhe um ret\xE2ngulo na \xE1rea que deseja comentar","annotator.cancel":"Cancelar","popup.ariaLabel":"Formul\xE1rio de feedback","popup.placeholder":"Descreva seu feedback...","popup.textareaAria":"Mensagem de feedback","popup.submitHintMac":"\u2318+Enter para enviar","popup.submitHintOther":"Ctrl+Enter para enviar","popup.cancel":"Cancelar","popup.submit":"Enviar","identity.title":"Identifique-se","identity.nameLabel":"Nome","identity.namePlaceholder":"Seu nome","identity.emailLabel":"E-mail","identity.emailPlaceholder":"seu@email.com","identity.cancel":"Cancelar","identity.submit":"Continuar","marker.approximate":"Posi\xE7\xE3o aproximada (confian\xE7a: {confidence}%)","marker.aria":"Feedback #{number}: {type} \u2014 {message}","fab.badge":"{count} feedbacks n\xE3o resolvidos","feedback.sent.confirmation":"Feedback enviado com sucesso","feedback.error.message":"Falha ao enviar feedback","feedback.deleted.confirmation":"Feedback exclu\xEDdo","badge.count":"{count} feedbacks n\xE3o resolvidos"};var Io={"panel.title":"\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C","panel.ariaLabel":"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438 Siteping","panel.feedbackList":"\u0421\u043F\u0438\u0441\u043E\u043A \u043E\u0442\u0437\u044B\u0432\u043E\u0432","panel.loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043E\u0442\u0437\u044B\u0432\u043E\u0432","panel.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C","panel.deleteAll":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451","panel.deleteAllConfirmTitle":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0451","panel.deleteAllConfirmMessage":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u043E\u0442\u0437\u044B\u0432\u044B \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430? \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","panel.search":"\u041F\u043E\u0438\u0441\u043A...","panel.searchAria":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u043E\u0442\u0437\u044B\u0432\u0430\u043C","panel.filterAll":"\u0412\u0441\u0435","panel.loadError":"\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438","panel.retry":"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C","panel.empty":"\u041F\u043E\u043A\u0430 \u043D\u0435\u0442 \u043E\u0442\u0437\u044B\u0432\u043E\u0432","panel.showMore":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435","panel.showLess":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0435\u043D\u044C\u0448\u0435","panel.resolve":"\u0420\u0435\u0448\u0435\u043D\u043E","panel.reopen":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E","panel.delete":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","panel.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","panel.confirmDelete":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","panel.loadMore":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451 ({remaining} \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C)","panel.statusAll":"\u0412\u0441\u0435","panel.statusOpen":"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0435","panel.statusResolved":"\u0420\u0435\u0448\u0451\u043D\u043D\u044B\u0435","type.label":"\u0422\u0438\u043F","type.question":"\u0412\u043E\u043F\u0440\u043E\u0441","type.change":"\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435","type.bug":"\u0411\u0430\u0433","type.other":"\u0414\u0440\u0443\u0433\u043E\u0435","status.label":"\u0421\u0442\u0430\u0442\u0443\u0441","scope.label":"\u041E\u0431\u043B\u0430\u0441\u0442\u044C","scope.thisPage":"\u042D\u0442\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430","scope.thisType":"\u042D\u0442\u043E\u0442 \u0442\u0438\u043F","scope.all":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B","fab.aria":"Siteping \u2014 \u041C\u0435\u043D\u044E \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438","fab.messages":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F","fab.annotate":"\u0410\u043D\u043D\u043E\u0442\u0430\u0446\u0438\u044F","fab.annotations":"\u0410\u043D\u043D\u043E\u0442\u0430\u0446\u0438\u0438","annotator.instruction":"\u0412\u044B\u0434\u0435\u043B\u0438\u0442\u0435 \u043E\u0431\u043B\u0430\u0441\u0442\u044C \u0434\u043B\u044F \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u044F","annotator.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","popup.ariaLabel":"\u0424\u043E\u0440\u043C\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0439 \u0441\u0432\u044F\u0437\u0438","popup.placeholder":"\u041E\u043F\u0438\u0448\u0438\u0442\u0435 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0443 \u0438\u043B\u0438 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435...","popup.textareaAria":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","popup.submitHintMac":"\u2318+Enter \u2014 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","popup.submitHintOther":"Ctrl+Enter \u2014 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","popup.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","popup.submit":"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","identity.title":"\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044C\u0442\u0435\u0441\u044C","identity.nameLabel":"\u0418\u043C\u044F","identity.namePlaceholder":"\u0412\u0430\u0448\u0435 \u0438\u043C\u044F","identity.emailLabel":"Email","identity.emailPlaceholder":"\u0432\u0430\u0448@email.com","identity.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","identity.submit":"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C","marker.approximate":"\u041F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u0430\u044F \u043F\u043E\u0437\u0438\u0446\u0438\u044F (\u0442\u043E\u0447\u043D\u043E\u0441\u0442\u044C: {confidence}%)","marker.aria":"\u041E\u0442\u0437\u044B\u0432 #{number}: {type} \u2014 {message}","fab.badge":"\u041D\u0435\u0440\u0435\u0448\u0451\u043D\u043D\u044B\u0445 \u043E\u0442\u0437\u044B\u0432\u043E\u0432: {count}","feedback.sent.confirmation":"\u041E\u0442\u0437\u044B\u0432 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D","feedback.error.message":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u0437\u044B\u0432","feedback.deleted.confirmation":"\u041E\u0442\u0437\u044B\u0432 \u0443\u0434\u0430\u043B\u0451\u043D","badge.count":"\u041D\u0435\u0440\u0435\u0448\u0451\u043D\u043D\u044B\u0445 \u043E\u0442\u0437\u044B\u0432\u043E\u0432: {count}"};var ks={de:Fo,en:yo,es:Uo,fr:xo,it:Eo,pt:Ho,ru:Io};function cr(l){let s=(l.split("-")[0]??l).toLowerCase();ks[s]||console.warn(`[siteping] Unknown locale "${l}", falling back to "en"`);let i=ks[s]??ks.en??{};return o=>i[o]??o}function de(l,s){switch(l){case"question":return s("type.question");case"change":return s("type.change");case"bug":return s("type.bug");case"other":return s("type.other");default:return l}}var ko="siteping_identity";function Lo(){try{let l=localStorage.getItem(ko);if(!l)return null;let s=JSON.parse(l);if(typeof s=="object"&&s!==null&&"name"in s&&typeof s.name=="string"&&"email"in s&&typeof s.email=="string"){let i=s;if(i.name&&i.email)return i}return null}catch{return null}}function So(l){try{localStorage.setItem(ko,JSON.stringify(l))}catch{}}function Ju(l,s){if(l===s)return 0;if(l.length===0)return s.length;if(s.length===0)return l.length;if(l.length>s.length){let h=l;l=s,s=h}let i=l.length,o=s.length,c=new Array(i+1);for(let h=0;h<=i;h++)c[h]=h;let d=new Array(i+1);for(let h=1;h<=o;h++){d[0]=h;for(let C=1;C<=i;C++){let Q=c[C-1]??0;d[C]=l[C-1]===s[h-1]?Q:1+Math.min(Q,c[C]??0,d[C-1]??0)}let f=c;c=d,d=f}return c[i]??0}function xe(l,s){if(l===s)return 1;let i=Math.max(l.length,s.length);return i===0?1:1-Ju(l,s)/i}function Ls(l,s,i=.6){if(!s||!l)return 0;if(l.includes(s))return 1;let o=s.length;if(o>l.length){let f=xe(l,s);return f>=i?f:0}let c=0,d=l.length>500?l.slice(0,500):l,h=d.length-o;for(let f=0;f<=h;f++){let C=d.slice(f,f+o),Q=xe(C,s);if(Q>c&&(c=Q),c>=.95)break}return c>=i?c:0}var Wu=300,ju=.3;function pr(l,s){if(!s.textSnippet)return!0;let i=(l.textContent?.trim()??"").slice(0,500);return Ls(i,s.textSnippet,.5)>ju}function $u(l){if(l.anchorKey){let s=l.anchorKey.replace(/\\/g,"\\\\").replace(/"/g,'\\"');try{let i=document.querySelector(`[${Ze}="${s}"]`);if(i&&pr(i,l))return{element:i,confidence:1,strategy:"anchorKey"}}catch{}}if(l.elementId){let s=document.getElementById(l.elementId);if(s&&s.tagName===l.elementTag&&pr(s,l))return{element:s,confidence:1,strategy:"id"}}try{let s=document.querySelector(l.cssSelector);if(s&&s.tagName===l.elementTag&&pr(s,l))return{element:s,confidence:.95,strategy:"css"}}catch{}try{let i=document.evaluate(l.xpath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(i instanceof Element&&i.tagName===l.elementTag&&pr(i,l))return{element:i,confidence:.9,strategy:"xpath"}}catch{}return Zu(l)}function Zu(l){let s=l.elementTag.toLowerCase(),i=document.querySelectorAll(s);if(i.length===0)return null;let o=null,c=0,d=Math.min(i.length,Wu);for(let h=0;h<d;h++){let f=i[h];if(!f)continue;let C=zu(f,l);if(C>c&&(c=C,o=f,c>=.85))break}return!o||c<.4?null:{element:o,confidence:Math.min(c,.85),strategy:"scan"}}function zu(l,s){let i=0,o=0,c=(l.textContent?.trim()??"").slice(0,500);if(s.textSnippet&&(o+=40,i+=Ls(c,s.textSnippet,.5)*40),s.fingerprint&&(o+=20,i+=ro(l,s.fingerprint)*20),s.textPrefix||s.textSuffix){o+=20;let d=0,h=0;if(s.textPrefix){let f=Ue(l,"before");d+=f?xe(f,s.textPrefix):0,h++}if(s.textSuffix){let f=Ue(l,"after");d+=f?xe(f,s.textSuffix):0,h++}h>0&&(i+=d/h*20)}if(s.neighborText){o+=20;let d=zt(l);i+=d?xe(d,s.neighborText)*20:0}return o>0?i/o:0}function dr(l,s){let i=$u(l);if(!i)return null;let o=i.element.getBoundingClientRect(),c=new DOMRect(o.x+s.xPct*o.width,o.y+s.yPct*o.height,s.wPct*o.width,s.hPct*o.height);return{element:i.element,rect:c,confidence:i.confidence,strategy:i.strategy}}function Ss(l){return{cssSelector:l.cssSelector,xpath:l.xpath,textSnippet:l.textSnippet,elementTag:l.elementTag,elementId:l.elementId??void 0,textPrefix:l.textPrefix,textSuffix:l.textSuffix,fingerprint:l.fingerprint,neighborText:l.neighborText,anchorKey:l.anchorKey??null}}function ur(l){return{xPct:l.xPct,yPct:l.yPct,wPct:l.wPct,hPct:l.hPct}}var To=13;function Ko(l){return{top:l.top+window.scrollY-To,left:l.right+window.scrollX-To}}function tt(l,s){let i=l.entries[s],o=l.elementIndices[s];if(!(!i||o===void 0))return i.elements[o]}var Do=300,Mo=200,qu=.7,AB=28,Ro=32,Br=class{constructor(s,i,o,c){this.colors=s;this.tooltip=i;this.bus=o;this.t=c;this.container=b("div",{style:`position:absolute;top:0;left:0;pointer-events:none;z-index:${2147483646};`}),this.container.id="siteping-markers",document.body.appendChild(this.container),this.bus.on("annotations:toggle",d=>{this.container.style.display=d?"block":"none"}),this.resizeHandler=()=>this.scheduleReposition(),window.addEventListener("resize",this.resizeHandler,{passive:!0}),this.scrollHandler=()=>this.scheduleReposition(),window.addEventListener("scroll",this.scrollHandler,{passive:!0,capture:!0}),this.mutationObserver=new MutationObserver(d=>{let h=!1;for(let f of d)if(!(this.container.contains(f.target)||this.tooltip.contains(f.target))){h=!0;break}h&&this.scheduleReposition()}),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!1,characterData:!1}),this.onDocumentClickForClusters=d=>{this.container.contains(d.target)||this.collapseAllClusters()},document.addEventListener("click",this.onDocumentClickForClusters)}colors;tooltip;bus;t;container;entries=[];highlightElements=[];pinnedFeedback=null;onDocumentClick=null;repositionTimer=null;mutationObserver=null;scrollHandler=null;resizeHandler=null;anchorCache=new Map;clusters=[];onDocumentClickForClusters=null;get count(){return this.entries.length}scheduleReposition(){this.repositionTimer||("requestIdleCallback"in window?this.repositionTimer=window.requestIdleCallback(()=>{this.repositionTimer=null,this.repositionAll()},{timeout:Mo+100}):this.repositionTimer=+setTimeout(()=>{this.repositionTimer=null,this.repositionAll()},Mo))}repositionAll(){let s=new Set;for(let i of this.entries)for(let o=0;o<i.feedback.annotations.length;o++){let c=i.elements[o];if(!c)continue;let d=i.feedback.annotations[o];if(!d)continue;let h=`${i.feedback.id}:${o}`;s.add(h);let C=this.anchorCache.get(h)?.deref(),Q;if(C?.isConnected){let y=C.getBoundingClientRect(),T=ur(d);Q={element:C,rect:new DOMRect(y.left+T.xPct*y.width,y.top+T.yPct*y.height,T.wPct*y.width,T.hPct*y.height),confidence:1,strategy:"css"}}else Q=dr(Ss(d),ur(d)),Q?.element&&this.anchorCache.set(h,new WeakRef(Q.element));if(!Q){c.style.display="none";continue}let v=Ko(Q.rect);i.baseTop=v.top,i.baseLeft=v.left,c.style.display="flex",this.applyConfidenceStyle(c,Q.confidence,i.feedback)}for(let i of this.anchorCache.keys())s.has(i)||this.anchorCache.delete(i);this.applyClusterPositions(),this.pinnedFeedback&&this.showHighlight(this.pinnedFeedback)}applyClusterPositions(){for(let s of this.clusters)s.expanded?this.applyFanPositions(s):this.applyStackPositions(s)}render(s){this.clear(),s.forEach((i,o)=>{let c=this.buildEntry(i,o+1);this.entries.push(c)}),this.buildClusters()}addFeedback(s,i){let o=this.buildEntry(s,i);for(let c of o.elements)c.style.animation="sp-marker-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both";this.entries.push(o),this.buildClusters()}buildEntry(s,i){let o={feedback:s,elements:[],baseTop:0,baseLeft:0};for(let c of s.annotations){let d=dr(Ss(c),ur(c));if(!d)continue;let h=Ko(d.rect);o.baseTop=h.top,o.baseLeft=h.left;let f=this.createMarker(i,s,h);this.applyConfidenceStyle(f,d.confidence,s),this.container.appendChild(f),o.elements.push(f)}return o}buildClusters(){for(let o of this.container.querySelectorAll(".sp-cluster-badge"))o.remove();let s=[];for(let o of this.entries)for(let c=0;c<o.elements.length;c++)s.push({entry:o,elIdx:c});let i=new Set;this.clusters=[];for(let o=0;o<s.length;o++){if(i.has(o))continue;let c=s[o];if(!c)continue;let d={entries:[c.entry],elementIndices:[c.elIdx],expanded:!1};i.add(o);for(let h=o+1;h<s.length;h++){if(i.has(h))continue;let f=c.entry,C=s[h];if(!C)continue;let Q=C.entry;Math.sqrt((f.baseLeft-Q.baseLeft)**2+(f.baseTop-Q.baseTop)**2)<AB&&(d.entries.push(Q),d.elementIndices.push(C.elIdx),i.add(h))}this.clusters.push(d)}for(let o of this.clusters)o.entries.length<=1||(this.applyStackPositions(o),this.addClusterBadge(o))}applyStackPositions(s){let i=s.entries[0];if(!i)return;let{baseTop:o,baseLeft:c}=i,d=s.entries.length<=1;for(let h=0;h<s.entries.length;h++){let f=tt(s,h);f&&(f.style.top=`${o+(d?0:h*3)}px`,f.style.left=`${c+(d?0:h*3)}px`,f.style.zIndex=String(h+1))}}applyFanPositions(s){let i=s.entries[0];if(!i)return;let{baseTop:o,baseLeft:c}=i,d=s.entries.length,h=(d-1)*Ro,f=c-h/2;for(let C=0;C<d;C++){let Q=tt(s,C);Q&&(Q.style.top=`${o}px`,Q.style.left=`${f+C*Ro}px`,Q.style.zIndex=String(10+C))}}addClusterBadge(s){let i=tt(s,s.entries.length-1);if(!i)return;let o=b("div",{class:"sp-cluster-badge",style:`
132
136
  position:absolute;top:-6px;right:-6px;
133
137
  min-width:16px;height:16px;padding:0 4px;
134
138
  border-radius:9999px;
@@ -139,36 +143,36 @@
139
143
  pointer-events:none;
140
144
  font-family:"Inter",system-ui,-apple-system,sans-serif;
141
145
  line-height:1;
142
- `});c(s,String(e.entries.length)),t.appendChild(s)}setBadgesVisible(e,t){for(let s=0;s<e.entries.length;s++){let o=j(e,s)?.querySelector(".sp-cluster-badge");o&&(o.style.display=t?"flex":"none")}}findCluster(e){for(let t of this.clusters)if(!(t.entries.length<=1)){for(let s=0;s<t.entries.length;s++)if(j(t,s)===e)return t}return null}handleClusterClick(e,t){let s=this.findCluster(e);return s?s.expanded?!1:(t.stopPropagation(),this.collapseAllClusters(),s.expanded=!0,this.applyFanPositions(s),this.setBadgesVisible(s,!1),!0):!1}collapseCluster(e){e.expanded&&(e.expanded=!1,this.applyStackPositions(e),this.setBadgesVisible(e,!0))}collapseAllClusters(){for(let e of this.clusters)this.collapseCluster(e)}applyConfidenceStyle(e,t,s){let o=s.status==="resolved";t<_s&&!o?(e.style.borderStyle="dashed",e.style.opacity="0.7",e.title=this.t("marker.approximate").replace("{confidence}",String(Math.round(t*100)))):(e.style.borderStyle="solid",e.style.opacity="1",e.title="")}createMarker(e,t,s){let o=M(t.type,this.colors),i=t.status==="resolved",r=l("div",{style:`
146
+ `});U(o,String(s.entries.length)),i.appendChild(o)}setBadgesVisible(s,i){for(let o=0;o<s.entries.length;o++){let c=tt(s,o)?.querySelector(".sp-cluster-badge");c&&(c.style.display=i?"flex":"none")}}findCluster(s){for(let i of this.clusters)if(!(i.entries.length<=1)){for(let o=0;o<i.entries.length;o++)if(tt(i,o)===s)return i}return null}handleClusterClick(s,i){let o=this.findCluster(s);return o?o.expanded?!1:(i.stopPropagation(),this.collapseAllClusters(),o.expanded=!0,this.applyFanPositions(o),this.setBadgesVisible(o,!1),!0):!1}collapseCluster(s){s.expanded&&(s.expanded=!1,this.applyStackPositions(s),this.setBadgesVisible(s,!0))}collapseAllClusters(){for(let s of this.clusters)this.collapseCluster(s)}applyConfidenceStyle(s,i,o){let c=o.status==="resolved";i<qu&&!c?(s.style.borderStyle="dashed",s.style.opacity="0.7",s.title=this.t("marker.approximate").replace("{confidence}",String(Math.round(i*100)))):(s.style.borderStyle="solid",s.style.opacity="1",s.title="")}createMarker(s,i,o){let c=UA(i.type,this.colors),d=i.status==="resolved",h=b("div",{style:`
143
147
  position:absolute;
144
- top:${s.top}px;
145
- left:${s.left}px;
148
+ top:${o.top}px;
149
+ left:${o.left}px;
146
150
  width:26px;height:26px;
147
151
  border-radius:50%;
148
- background:${i?"rgba(241,245,249,0.9)":"rgba(255,255,255,0.92)"};
149
- border:2px solid ${i?"#cbd5e1":o};
152
+ background:${d?"rgba(241,245,249,0.9)":"rgba(255,255,255,0.92)"};
153
+ border:2px solid ${d?"#cbd5e1":c};
150
154
  display:flex;align-items:center;justify-content:center;
151
155
  font-family:"Inter",system-ui,-apple-system,sans-serif;
152
156
  font-size:11px;font-weight:700;
153
- color:${i?"#94a3b8":o};
157
+ color:${d?"#94a3b8":c};
154
158
  cursor:pointer;pointer-events:auto;
155
- box-shadow:${i?"0 2px 8px rgba(0,0,0,0.06)":`0 2px 12px ${o}25, 0 2px 6px rgba(0,0,0,0.06)`};
159
+ box-shadow:${d?"0 2px 8px rgba(0,0,0,0.06)":`0 2px 12px ${c}25, 0 2px 6px rgba(0,0,0,0.06)`};
156
160
  transition:top 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.15s ease, box-shadow 0.15s ease;
157
161
  user-select:none;
158
162
  -webkit-font-smoothing:antialiased;
159
- `});r.dataset.feedbackId=t.id,r.setAttribute("tabindex","0"),r.setAttribute("role","button");let a=t.message.length>60?`${t.message.slice(0,60)}...`:t.message,p=this.t("marker.aria").replace("{number}",String(e)).replace("{type}",N(t.type,this.t)).replace("{message}",a);r.setAttribute("aria-label",p),r.setAttribute("aria-describedby",this.tooltip.tooltipId),c(r,i?"\u2713":String(e)),r.addEventListener("mouseenter",()=>{r.style.transform="scale(1.2)",r.style.boxShadow=i?"0 4px 16px rgba(0,0,0,0.1)":`0 4px 20px ${o}35, 0 4px 12px rgba(0,0,0,0.08)`,this.tooltip.show(t,r.getBoundingClientRect()),this.pinnedFeedback||this.showHighlight(t)}),r.addEventListener("mouseleave",()=>{r.style.transform="scale(1)",r.style.boxShadow=i?"0 2px 8px rgba(0,0,0,0.06)":`0 2px 12px ${o}25, 0 2px 6px rgba(0,0,0,0.06)`,this.tooltip.scheduleHide(),this.pinnedFeedback||this.clearHighlight()});let d=u=>{u instanceof MouseEvent&&this.handleClusterClick(r,u)||(this.pinHighlight(t),this.bus.emit("panel:toggle",!0),r.dispatchEvent(new CustomEvent("sp-marker-click",{detail:{feedbackId:t.id},bubbles:!0})))};return r.addEventListener("click",u=>d(u)),r.addEventListener("keydown",u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d(u))}),r}highlight(e){for(let t of this.entries)if(t.feedback.id===e)for(let s of t.elements)s.style.animation="sp-pulse-ring 0.7s ease-out",s.addEventListener("animationend",()=>{s.style.animation=""},{once:!0})}showHighlight(e){this.removeHighlightElements();for(let t of e.annotations){let s=ae(Ie(t),le(t));if(!s)continue;let o=M(e.type,this.colors),i=s.rect,r=l("div",{style:`
163
+ `});h.dataset.feedbackId=i.id,h.setAttribute("tabindex","0"),h.setAttribute("role","button");let f=i.message.length>60?`${i.message.slice(0,60)}...`:i.message,C=this.t("marker.aria").replace("{number}",String(s)).replace("{type}",de(i.type,this.t)).replace("{message}",f);h.setAttribute("aria-label",C),h.setAttribute("aria-describedby",this.tooltip.tooltipId),U(h,d?"\u2713":String(s)),h.addEventListener("mouseenter",()=>{h.style.transform="scale(1.2)",h.style.boxShadow=d?"0 4px 16px rgba(0,0,0,0.1)":`0 4px 20px ${c}35, 0 4px 12px rgba(0,0,0,0.08)`,this.tooltip.show(i,h.getBoundingClientRect()),this.pinnedFeedback||this.showHighlight(i)}),h.addEventListener("mouseleave",()=>{h.style.transform="scale(1)",h.style.boxShadow=d?"0 2px 8px rgba(0,0,0,0.06)":`0 2px 12px ${c}25, 0 2px 6px rgba(0,0,0,0.06)`,this.tooltip.scheduleHide(),this.pinnedFeedback||this.clearHighlight()});let Q=v=>{v instanceof MouseEvent&&this.handleClusterClick(h,v)||(this.pinHighlight(i),this.bus.emit("panel:toggle",!0),h.dispatchEvent(new CustomEvent("sp-marker-click",{detail:{feedbackId:i.id},bubbles:!0})))};return h.addEventListener("click",v=>Q(v)),h.addEventListener("keydown",v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),Q(v))}),h}highlight(s){for(let i of this.entries)if(i.feedback.id===s)for(let o of i.elements)o.style.animation="sp-pulse-ring 0.7s ease-out",o.addEventListener("animationend",()=>{o.style.animation=""},{once:!0})}showHighlight(s){this.removeHighlightElements();for(let i of s.annotations){let o=dr(Ss(i),ur(i));if(!o)continue;let c=UA(s.type,this.colors),d=o.rect,h=b("div",{style:`
160
164
  position:absolute;
161
- top:${i.top+window.scrollY}px;
162
- left:${i.left+window.scrollX}px;
163
- width:${i.width}px;height:${i.height}px;
164
- border:2px solid ${o};
165
- background:${o}0c;
165
+ top:${d.top+window.scrollY}px;
166
+ left:${d.left+window.scrollX}px;
167
+ width:${d.width}px;height:${d.height}px;
168
+ border:2px solid ${c};
169
+ background:${c}0c;
166
170
  border-radius:8px;
167
171
  pointer-events:none;z-index:-1;
168
172
  opacity:0;
169
- box-shadow:0 0 16px ${o}20;
170
- transition:opacity ${Ft}ms ease;
171
- `});this.container.appendChild(r),this.highlightElements.push(r),r.offsetHeight,r.style.opacity="1"}}pinHighlight(e){this.unpinHighlight(),this.showHighlight(e),this.pinnedFeedback=e,this.onDocumentClick=t=>{this.container.contains(t.target)||this.unpinHighlight()},document.addEventListener("click",this.onDocumentClick,{capture:!0})}unpinHighlight(){this.onDocumentClick&&(document.removeEventListener("click",this.onDocumentClick,{capture:!0}),this.onDocumentClick=null),this.pinnedFeedback=null,this.clearHighlight()}clearHighlight(){for(let e of this.highlightElements)e.style.opacity="0",setTimeout(()=>e.remove(),Ft);this.highlightElements=[]}removeHighlightElements(){for(let e of this.highlightElements)e.remove();this.highlightElements=[]}clear(){this.unpinHighlight(),this.container.replaceChildren(),this.entries=[],this.clusters=[],this.anchorCache.clear()}destroy(){this.unpinHighlight(),this.repositionTimer&&("cancelIdleCallback"in window&&window.cancelIdleCallback(this.repositionTimer),clearTimeout(this.repositionTimer)),this.resizeHandler&&window.removeEventListener("resize",this.resizeHandler),this.scrollHandler&&window.removeEventListener("scroll",this.scrollHandler,{capture:!0}),this.onDocumentClickForClusters&&document.removeEventListener("click",this.onDocumentClickForClusters),this.mutationObserver?.disconnect(),this.container.remove()}};var Hs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>',$s='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="3" y1="15" x2="21" y2="15"/><line x1="9" y1="3" x2="9" y2="21"/><line x1="15" y1="3" x2="15" y2="21"/></svg>',js='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 3H6a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2 2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h2"/><path d="M16 3h2a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2 2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-2"/></svg>',Ne={"export.label":"Export","export.csv":"Export CSV","export.json":"Export JSON"},Dt={"export.label":"Exporter","export.csv":"Exporter CSV","export.json":"Exporter JSON"},_t=`
173
+ box-shadow:0 0 16px ${c}20;
174
+ transition:opacity ${Do}ms ease;
175
+ `});this.container.appendChild(h),this.highlightElements.push(h),h.offsetHeight,h.style.opacity="1"}}pinHighlight(s){this.unpinHighlight(),this.showHighlight(s),this.pinnedFeedback=s,this.onDocumentClick=i=>{this.container.contains(i.target)||this.unpinHighlight()},document.addEventListener("click",this.onDocumentClick,{capture:!0})}unpinHighlight(){this.onDocumentClick&&(document.removeEventListener("click",this.onDocumentClick,{capture:!0}),this.onDocumentClick=null),this.pinnedFeedback=null,this.clearHighlight()}clearHighlight(){for(let s of this.highlightElements)s.style.opacity="0",setTimeout(()=>s.remove(),Do);this.highlightElements=[]}removeHighlightElements(){for(let s of this.highlightElements)s.remove();this.highlightElements=[]}clear(){this.unpinHighlight(),this.container.replaceChildren(),this.entries=[],this.clusters=[],this.anchorCache.clear()}destroy(){this.unpinHighlight(),this.repositionTimer&&("cancelIdleCallback"in window&&window.cancelIdleCallback(this.repositionTimer),clearTimeout(this.repositionTimer)),this.resizeHandler&&window.removeEventListener("resize",this.resizeHandler),this.scrollHandler&&window.removeEventListener("scroll",this.scrollHandler,{capture:!0}),this.onDocumentClickForClusters&&document.removeEventListener("click",this.onDocumentClickForClusters),this.mutationObserver?.disconnect(),this.container.remove()}};var eB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>',tB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="3" y1="15" x2="21" y2="15"/><line x1="9" y1="3" x2="9" y2="21"/><line x1="15" y1="3" x2="15" y2="21"/></svg>',rB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 3H6a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2 2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h2"/><path d="M16 3h2a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2 2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-2"/></svg>',Ts={"export.label":"Export","export.csv":"Export CSV","export.json":"Export JSON"},Po={"export.label":"Exporter","export.csv":"Exporter CSV","export.json":"Exporter JSON"},_o=`
172
176
  /* ============================
173
177
  Export Button & Menu
174
178
  ============================ */
@@ -286,9 +290,9 @@
286
290
  outline: 3px solid Highlight !important;
287
291
  }
288
292
  }
289
- `,It=["id","type","status","message","url","authorName","authorEmail","createdAt","resolvedAt","viewport"];function zs(n){return n.includes('"')||n.includes(",")||n.includes(`
290
- `)||n.includes("\r")?`"${n.replace(/"/g,'""')}"`:n}function Ks(n){let e=It.join(","),t=n.map(s=>It.map(o=>{let i=s[o];return zs(i==null?"":String(i))}).join(","));return[e,...t].join(`
291
- `)}function Ys(n){return JSON.stringify(n,null,2)}function Nt(n,e,t){let s=new Blob([n],{type:t}),o=URL.createObjectURL(s),i=document.createElement("a");i.href=o,i.download=e,i.style.display="none",document.body.appendChild(i),i.click(),requestAnimationFrame(()=>{URL.revokeObjectURL(o),i.remove()})}var de=class{constructor(e,t){this.getFeedbacks=t;this.element=l("div",{style:"position: relative; display: inline-flex;"});let s=document.createElement("button");s.className="sp-export-btn",s.setAttribute("aria-haspopup","true"),s.setAttribute("aria-expanded","false"),s.appendChild(v(Hs));let o=document.createElement("span");c(o,Ne["export.label"]),s.appendChild(o),s.addEventListener("click",a=>{a.stopPropagation(),this.toggle()}),this.menu=l("div",{class:"sp-export-menu"}),this.menu.setAttribute("role","menu");let i=this.createOption($s,Ne["export.csv"],()=>{this.exportAs("csv")}),r=this.createOption(js,Ne["export.json"],()=>{this.exportAs("json")});this.menu.appendChild(i),this.menu.appendChild(r),this.element.appendChild(s),this.element.appendChild(this.menu),this.onDocumentClick=a=>{this.isOpen&&!this.element.contains(a.target)&&this.close()},document.addEventListener("click",this.onDocumentClick,!0)}getFeedbacks;element;menu;isOpen=!1;onDocumentClick;setLabels(e){let t=this.element.querySelector(".sp-export-btn");if(t){let o=t.querySelector("span");o&&c(o,e["export.label"])}let s=this.menu.querySelectorAll(".sp-export-option-label");s[0]&&c(s[0],e["export.csv"]),s[1]&&c(s[1],e["export.json"])}createOption(e,t,s){let o=document.createElement("button");o.className="sp-export-option",o.setAttribute("role","menuitem");let i=l("span",{class:"sp-export-option-icon"});i.appendChild(v(e));let r=l("span",{class:"sp-export-option-label"});return c(r,t),o.appendChild(i),o.appendChild(r),o.addEventListener("click",a=>{a.stopPropagation(),s(),this.close()}),o}toggle(){this.isOpen?this.close():this.open()}open(){this.isOpen=!0,this.menu.classList.add("sp-export-menu--open"),this.element.querySelector(".sp-export-btn")?.setAttribute("aria-expanded","true")}close(){this.isOpen=!1,this.menu.classList.remove("sp-export-menu--open"),this.element.querySelector(".sp-export-btn")?.setAttribute("aria-expanded","false")}exportAs(e){let t=this.getFeedbacks();if(t.length===0)return;let s=t[0]?.projectName??"feedbacks",o=new Date().toISOString().slice(0,10),i=s.replace(/[^a-zA-Z0-9_-]/g,"_");if(e==="csv"){let r=Ks(t);Nt(r,`feedbacks-${i}-${o}.csv`,"text/csv;charset=utf-8")}else{let r=Ys(t);Nt(r,`feedbacks-${i}-${o}.json`,"application/json;charset=utf-8")}}destroy(){document.removeEventListener("click",this.onDocumentClick,!0),this.element.remove()}};var ce='<svg viewBox="0 0 18 18" fill="none" aria-hidden="true"><rect x="1" y="1" width="16" height="16" rx="4" stroke="currentColor" stroke-width="2"/></svg>',Ot='<svg viewBox="0 0 18 18" fill="none" aria-hidden="true"><rect x="1" y="1" width="16" height="16" rx="4" fill="url(#sp-cb-grad)" stroke="none"/><polyline points="5 9 8 12 13 6" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><defs><linearGradient id="sp-cb-grad" x1="0" y1="0" x2="18" y2="18" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-color="var(--sp-accent)"/><stop offset="100%" stop-color="var(--sp-accent-dark)"/></linearGradient></defs></svg>',De={"bulk.selectAll":"Select all","bulk.selected":"{count} selected","bulk.resolve":"Resolve","bulk.delete":"Delete","bulk.deselect":"Deselect"},_e={"bulk.selectAll":"Tout s\xE9lectionner","bulk.selected":"{count} s\xE9lectionn\xE9(s)","bulk.resolve":"R\xE9soudre","bulk.delete":"Supprimer","bulk.deselect":"D\xE9s\xE9lectionner"},Ht=`
293
+ `,Oo=["id","type","status","message","url","authorName","authorEmail","createdAt","resolvedAt","viewport"];function sB(l){return l.includes('"')||l.includes(",")||l.includes(`
294
+ `)||l.includes("\r")?`"${l.replace(/"/g,'""')}"`:l}function nB(l){let s=Oo.join(","),i=l.map(o=>Oo.map(c=>{let d=o[c];return sB(d==null?"":String(d))}).join(","));return[s,...i].join(`
295
+ `)}function iB(l){return JSON.stringify(l,null,2)}function No(l,s,i){let o=new Blob([l],{type:i}),c=URL.createObjectURL(o),d=document.createElement("a");d.href=c,d.download=s,d.style.display="none",document.body.appendChild(d),d.click(),requestAnimationFrame(()=>{URL.revokeObjectURL(c),d.remove()})}var hr=class{constructor(s,i){this.getFeedbacks=i;this.element=b("div",{style:"position: relative; display: inline-flex;"});let o=document.createElement("button");o.className="sp-export-btn",o.setAttribute("aria-haspopup","true"),o.setAttribute("aria-expanded","false"),o.appendChild(P(eB));let c=document.createElement("span");U(c,Ts["export.label"]),o.appendChild(c),o.addEventListener("click",f=>{f.stopPropagation(),this.toggle()}),this.menu=b("div",{class:"sp-export-menu"}),this.menu.setAttribute("role","menu");let d=this.createOption(tB,Ts["export.csv"],()=>{this.exportAs("csv")}),h=this.createOption(rB,Ts["export.json"],()=>{this.exportAs("json")});this.menu.appendChild(d),this.menu.appendChild(h),this.element.appendChild(o),this.element.appendChild(this.menu),this.onDocumentClick=f=>{this.isOpen&&!this.element.contains(f.target)&&this.close()},document.addEventListener("click",this.onDocumentClick,!0)}getFeedbacks;element;menu;isOpen=!1;onDocumentClick;setLabels(s){let i=this.element.querySelector(".sp-export-btn");if(i){let c=i.querySelector("span");c&&U(c,s["export.label"])}let o=this.menu.querySelectorAll(".sp-export-option-label");o[0]&&U(o[0],s["export.csv"]),o[1]&&U(o[1],s["export.json"])}createOption(s,i,o){let c=document.createElement("button");c.className="sp-export-option",c.setAttribute("role","menuitem");let d=b("span",{class:"sp-export-option-icon"});d.appendChild(P(s));let h=b("span",{class:"sp-export-option-label"});return U(h,i),c.appendChild(d),c.appendChild(h),c.addEventListener("click",f=>{f.stopPropagation(),o(),this.close()}),c}toggle(){this.isOpen?this.close():this.open()}open(){this.isOpen=!0,this.menu.classList.add("sp-export-menu--open"),this.element.querySelector(".sp-export-btn")?.setAttribute("aria-expanded","true")}close(){this.isOpen=!1,this.menu.classList.remove("sp-export-menu--open"),this.element.querySelector(".sp-export-btn")?.setAttribute("aria-expanded","false")}exportAs(s){let i=this.getFeedbacks();if(i.length===0)return;let o=i[0]?.projectName??"feedbacks",c=new Date().toISOString().slice(0,10),d=o.replace(/[^a-zA-Z0-9_-]/g,"_");if(s==="csv"){let h=nB(i);No(h,`feedbacks-${d}-${c}.csv`,"text/csv;charset=utf-8")}else{let h=iB(i);No(h,`feedbacks-${d}-${c}.json`,"application/json;charset=utf-8")}}destroy(){document.removeEventListener("click",this.onDocumentClick,!0),this.element.remove()}};var gr='<svg viewBox="0 0 18 18" fill="none" aria-hidden="true"><rect x="1" y="1" width="16" height="16" rx="4" stroke="currentColor" stroke-width="2"/></svg>',Go='<svg viewBox="0 0 18 18" fill="none" aria-hidden="true"><rect x="1" y="1" width="16" height="16" rx="4" fill="url(#sp-cb-grad)" stroke="none"/><polyline points="5 9 8 12 13 6" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><defs><linearGradient id="sp-cb-grad" x1="0" y1="0" x2="18" y2="18" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-color="var(--sp-accent)"/><stop offset="100%" stop-color="var(--sp-accent-dark)"/></linearGradient></defs></svg>',Ks={"bulk.selectAll":"Select all","bulk.selected":"{count} selected","bulk.resolve":"Resolve","bulk.delete":"Delete","bulk.deselect":"Deselect"},Ds={"bulk.selectAll":"Tout s\xE9lectionner","bulk.selected":"{count} s\xE9lectionn\xE9(s)","bulk.resolve":"R\xE9soudre","bulk.delete":"Supprimer","bulk.deselect":"D\xE9s\xE9lectionner"},Vo=`
292
296
  /* ============================
293
297
  Bulk Checkbox
294
298
  ============================ */
@@ -586,7 +590,7 @@
586
590
  transition-duration: 0.01ms !important;
587
591
  }
588
592
  }
589
- `,ue=class{constructor(e,t,s){this.callbacks=t;this.i18n=s==="fr"?_e:De,this.barElement=l("div",{class:"sp-bulk-bar"}),this.barElement.setAttribute("role","toolbar"),this.barElement.setAttribute("aria-label","Bulk actions"),this.countLabel=l("span",{class:"sp-bulk-bar-count"}),c(this.countLabel,this.i18n["bulk.selected"].replace("{count}","0"));let o=l("div",{class:"sp-bulk-bar-actions"});this.resolveBtn=document.createElement("button"),this.resolveBtn.className="sp-bulk-btn-resolve",this.resolveBtn.type="button",this.resolveBtn.addEventListener("click",()=>this.handleResolve()),this.deleteBtn=document.createElement("button"),this.deleteBtn.className="sp-bulk-btn-delete",this.deleteBtn.type="button",this.deleteBtn.addEventListener("click",()=>this.handleDelete());let i=document.createElement("button");i.className="sp-bulk-btn-deselect",i.type="button",i.setAttribute("aria-label",this.i18n["bulk.deselect"]),i.appendChild(v('<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>')),i.addEventListener("click",()=>this.deselectAll()),o.appendChild(this.resolveBtn),o.appendChild(this.deleteBtn),o.appendChild(i),this.barElement.appendChild(this.countLabel),this.barElement.appendChild(o),this.updateButtonLabels()}callbacks;barElement;selected=new Set;checkboxMap=new Map;countLabel;resolveBtn;deleteBtn;selectAllCheckbox=null;listContainer=null;isProcessing=!1;i18n;createCheckbox(e){let t=l("div",{class:"sp-bulk-checkbox"});return t.setAttribute("role","checkbox"),t.setAttribute("aria-checked","false"),t.setAttribute("tabindex","0"),t.setAttribute("aria-label",`Select feedback ${e}`),t.appendChild(v(ce)),t.addEventListener("click",s=>{s.stopPropagation(),this.toggle(e)}),t.addEventListener("keydown",s=>{(s.key===" "||s.key==="Enter")&&(s.preventDefault(),s.stopPropagation(),this.toggle(e))}),this.checkboxMap.set(e,t),t}createSelectAllBar(e,t){let s=l("div",{class:"sp-bulk-select-all"}),o=l("div",{class:"sp-bulk-checkbox"});o.appendChild(v(ce)),this.selectAllCheckbox=o;let i=l("span");return c(i,t),s.appendChild(o),s.appendChild(i),s.addEventListener("click",()=>{this.selected.size===e.length&&e.length>0?this.deselectAll():this.selectAll(e)}),s}setListContainer(e){this.listContainer=e}toggle(e){this.isProcessing||(this.selected.has(e)?this.selected.delete(e):this.selected.add(e),this.updateCheckbox(e),this.updateBar(),this.updateSelectAllCheckbox(),this.updateListSelectionClass(),this.updateCardSelectedState(e))}selectAll(e){if(!this.isProcessing){for(let t of e)this.selected.add(t),this.updateCheckbox(t),this.updateCardSelectedState(t);this.updateBar(),this.updateSelectAllCheckbox(),this.updateListSelectionClass()}}deselectAll(){let e=[...this.selected];this.selected.clear();for(let t of e)this.updateCheckbox(t),this.updateCardSelectedState(t);this.updateBar(),this.updateSelectAllCheckbox(),this.updateListSelectionClass()}get selectedIds(){return[...this.selected]}get count(){return this.selected.size}get hasSelection(){return this.selected.size>0}reset(){this.selected.clear(),this.checkboxMap.clear(),this.selectAllCheckbox=null,this.isProcessing=!1,this.updateBar(),this.updateListSelectionClass()}destroy(){this.selected.clear(),this.checkboxMap.clear(),this.selectAllCheckbox=null,this.listContainer=null,this.barElement.remove()}updateBar(){let e=this.selected.size,t=e>0;this.barElement.classList.toggle("sp-bulk-bar--visible",t),c(this.countLabel,this.i18n["bulk.selected"].replace("{count}",String(e))),this.updateButtonLabels()}updateButtonLabels(){let e=this.selected.size;this.resolveBtn.replaceChildren();let t=document.createElement("span");c(t,e>0?`${this.i18n["bulk.resolve"]} ${e}`:this.i18n["bulk.resolve"]),this.resolveBtn.appendChild(t),this.deleteBtn.replaceChildren();let s=document.createElement("span");c(s,e>0?`${this.i18n["bulk.delete"]} ${e}`:this.i18n["bulk.delete"]),this.deleteBtn.appendChild(s)}updateCheckbox(e){let t=this.checkboxMap.get(e);if(!t)return;let s=this.selected.has(e);t.classList.toggle("sp-bulk-checkbox--checked",s),t.setAttribute("aria-checked",String(s)),t.replaceChildren(),t.appendChild(v(s?Ot:ce))}updateSelectAllCheckbox(){if(!this.selectAllCheckbox)return;let e=this.selected.size>0&&this.selected.size===this.checkboxMap.size;this.selectAllCheckbox.classList.toggle("sp-bulk-checkbox--checked",e),this.selectAllCheckbox.setAttribute("aria-checked",String(e)),this.selectAllCheckbox.replaceChildren(),this.selectAllCheckbox.appendChild(v(e?Ot:ce))}updateListSelectionClass(){this.listContainer&&this.listContainer.classList.toggle("sp-list--has-selection",this.selected.size>0)}updateCardSelectedState(e){if(!this.listContainer)return;let t=CSS.escape(e),s=this.listContainer.querySelector(`[data-feedback-id="${t}"]`);s&&s.classList.toggle("sp-card--selected",this.selected.has(e))}setButtonLoading(e){let t=Array.from(e.childNodes).map(s=>s.cloneNode(!0));return e.disabled=!0,e.replaceChildren(l("div",{class:"sp-spinner sp-spinner--sm"})),()=>{e.replaceChildren(...t),e.disabled=!1}}async handleResolve(){if(this.isProcessing||this.selected.size===0)return;this.isProcessing=!0;let e=[...this.selected],t=this.setButtonLoading(this.resolveBtn);this.deleteBtn.disabled=!0;try{await this.callbacks.onResolve(e),this.reset()}catch{t(),this.deleteBtn.disabled=!1}finally{this.isProcessing=!1}}async handleDelete(){if(this.isProcessing||this.selected.size===0)return;this.isProcessing=!0;let e=[...this.selected],t=this.setButtonLoading(this.deleteBtn);this.resolveBtn.disabled=!0;try{await this.callbacks.onDelete(e),this.reset()}catch{t(),this.resolveBtn.disabled=!1}finally{this.isProcessing=!1}}};var qs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>',Oe='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>',Us='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>',Ws='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>',Xs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>',Vs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>',He='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>',$t='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>',jt='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/></svg>',Gs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>',Qs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="22" y1="12" x2="18" y2="12"/><line x1="6" y1="12" x2="2" y2="12"/><line x1="12" y1="6" x2="12" y2="2"/><line x1="12" y1="22" x2="12" y2="18"/></svg>',Js={"detail.back":"Back","detail.title":"Feedback #{number}","detail.status":"Status","detail.message":"Message","detail.metadata":"Details","detail.annotation":"Annotation","detail.page":"Page","detail.author":"Author","detail.date":"Created","detail.viewport":"Viewport","detail.browser":"Browser","detail.resolvedAt":"Resolved at","detail.goToAnnotation":"Go to annotation","detail.element":"Element","detail.selector":"Selector","detail.position":"Position","detail.resolve":"Resolve","detail.reopen":"Reopen","detail.delete":"Delete"},$e={"detail.back":"Retour","detail.title":"Feedback n\xB0{number}","detail.status":"Statut","detail.message":"Message","detail.metadata":"D\xE9tails","detail.annotation":"Annotation","detail.page":"Page","detail.author":"Auteur","detail.date":"Cr\xE9\xE9 le","detail.viewport":"Viewport","detail.browser":"Navigateur","detail.resolvedAt":"R\xE9solu le","detail.goToAnnotation":"Aller \xE0 l'annotation","detail.element":"\xC9l\xE9ment","detail.selector":"S\xE9lecteur","detail.position":"Position","detail.resolve":"R\xE9soudre","detail.reopen":"Rouvrir","detail.delete":"Supprimer"},Yt=`
593
+ `,fr=class{constructor(s,i,o){this.callbacks=i;this.i18n=o==="fr"?Ds:Ks,this.barElement=b("div",{class:"sp-bulk-bar"}),this.barElement.setAttribute("role","toolbar"),this.barElement.setAttribute("aria-label","Bulk actions"),this.countLabel=b("span",{class:"sp-bulk-bar-count"}),U(this.countLabel,this.i18n["bulk.selected"].replace("{count}","0"));let c=b("div",{class:"sp-bulk-bar-actions"});this.resolveBtn=document.createElement("button"),this.resolveBtn.className="sp-bulk-btn-resolve",this.resolveBtn.type="button",this.resolveBtn.addEventListener("click",()=>this.handleResolve()),this.deleteBtn=document.createElement("button"),this.deleteBtn.className="sp-bulk-btn-delete",this.deleteBtn.type="button",this.deleteBtn.addEventListener("click",()=>this.handleDelete());let d=document.createElement("button");d.className="sp-bulk-btn-deselect",d.type="button",d.setAttribute("aria-label",this.i18n["bulk.deselect"]),d.appendChild(P('<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>')),d.addEventListener("click",()=>this.deselectAll()),c.appendChild(this.resolveBtn),c.appendChild(this.deleteBtn),c.appendChild(d),this.barElement.appendChild(this.countLabel),this.barElement.appendChild(c),this.updateButtonLabels()}callbacks;barElement;selected=new Set;checkboxMap=new Map;countLabel;resolveBtn;deleteBtn;selectAllCheckbox=null;listContainer=null;isProcessing=!1;i18n;createCheckbox(s){let i=b("div",{class:"sp-bulk-checkbox"});return i.setAttribute("role","checkbox"),i.setAttribute("aria-checked","false"),i.setAttribute("tabindex","0"),i.setAttribute("aria-label",`Select feedback ${s}`),i.appendChild(P(gr)),i.addEventListener("click",o=>{o.stopPropagation(),this.toggle(s)}),i.addEventListener("keydown",o=>{(o.key===" "||o.key==="Enter")&&(o.preventDefault(),o.stopPropagation(),this.toggle(s))}),this.checkboxMap.set(s,i),i}createSelectAllBar(s,i){let o=b("div",{class:"sp-bulk-select-all"}),c=b("div",{class:"sp-bulk-checkbox"});c.appendChild(P(gr)),this.selectAllCheckbox=c;let d=b("span");return U(d,i),o.appendChild(c),o.appendChild(d),o.addEventListener("click",()=>{this.selected.size===s.length&&s.length>0?this.deselectAll():this.selectAll(s)}),o}setListContainer(s){this.listContainer=s}toggle(s){this.isProcessing||(this.selected.has(s)?this.selected.delete(s):this.selected.add(s),this.updateCheckbox(s),this.updateBar(),this.updateSelectAllCheckbox(),this.updateListSelectionClass(),this.updateCardSelectedState(s))}selectAll(s){if(!this.isProcessing){for(let i of s)this.selected.add(i),this.updateCheckbox(i),this.updateCardSelectedState(i);this.updateBar(),this.updateSelectAllCheckbox(),this.updateListSelectionClass()}}deselectAll(){let s=[...this.selected];this.selected.clear();for(let i of s)this.updateCheckbox(i),this.updateCardSelectedState(i);this.updateBar(),this.updateSelectAllCheckbox(),this.updateListSelectionClass()}get selectedIds(){return[...this.selected]}get count(){return this.selected.size}get hasSelection(){return this.selected.size>0}reset(){this.selected.clear(),this.checkboxMap.clear(),this.selectAllCheckbox=null,this.isProcessing=!1,this.updateBar(),this.updateListSelectionClass()}destroy(){this.selected.clear(),this.checkboxMap.clear(),this.selectAllCheckbox=null,this.listContainer=null,this.barElement.remove()}updateBar(){let s=this.selected.size,i=s>0;this.barElement.classList.toggle("sp-bulk-bar--visible",i),U(this.countLabel,this.i18n["bulk.selected"].replace("{count}",String(s))),this.updateButtonLabels()}updateButtonLabels(){let s=this.selected.size;this.resolveBtn.replaceChildren();let i=document.createElement("span");U(i,s>0?`${this.i18n["bulk.resolve"]} ${s}`:this.i18n["bulk.resolve"]),this.resolveBtn.appendChild(i),this.deleteBtn.replaceChildren();let o=document.createElement("span");U(o,s>0?`${this.i18n["bulk.delete"]} ${s}`:this.i18n["bulk.delete"]),this.deleteBtn.appendChild(o)}updateCheckbox(s){let i=this.checkboxMap.get(s);if(!i)return;let o=this.selected.has(s);i.classList.toggle("sp-bulk-checkbox--checked",o),i.setAttribute("aria-checked",String(o)),i.replaceChildren(),i.appendChild(P(o?Go:gr))}updateSelectAllCheckbox(){if(!this.selectAllCheckbox)return;let s=this.selected.size>0&&this.selected.size===this.checkboxMap.size;this.selectAllCheckbox.classList.toggle("sp-bulk-checkbox--checked",s),this.selectAllCheckbox.setAttribute("aria-checked",String(s)),this.selectAllCheckbox.replaceChildren(),this.selectAllCheckbox.appendChild(P(s?Go:gr))}updateListSelectionClass(){this.listContainer&&this.listContainer.classList.toggle("sp-list--has-selection",this.selected.size>0)}updateCardSelectedState(s){if(!this.listContainer)return;let i=CSS.escape(s),o=this.listContainer.querySelector(`[data-feedback-id="${i}"]`);o&&o.classList.toggle("sp-card--selected",this.selected.has(s))}setButtonLoading(s){let i=Array.from(s.childNodes).map(o=>o.cloneNode(!0));return s.disabled=!0,s.replaceChildren(b("div",{class:"sp-spinner sp-spinner--sm"})),()=>{s.replaceChildren(...i),s.disabled=!1}}async handleResolve(){if(this.isProcessing||this.selected.size===0)return;this.isProcessing=!0;let s=[...this.selected],i=this.setButtonLoading(this.resolveBtn);this.deleteBtn.disabled=!0;try{await this.callbacks.onResolve(s),this.reset()}catch{i(),this.deleteBtn.disabled=!1}finally{this.isProcessing=!1}}async handleDelete(){if(this.isProcessing||this.selected.size===0)return;this.isProcessing=!0;let s=[...this.selected],i=this.setButtonLoading(this.deleteBtn);this.resolveBtn.disabled=!0;try{await this.callbacks.onDelete(s),this.reset()}catch{i(),this.resolveBtn.disabled=!1}finally{this.isProcessing=!1}}};var oB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>',Ms='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>',aB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>',lB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>',cB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>',pB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>',Rs='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg>',Xo='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"/></svg>',Yo='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/></svg>',dB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>',uB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="22" y1="12" x2="18" y2="12"/><line x1="6" y1="12" x2="2" y2="12"/><line x1="12" y1="6" x2="12" y2="2"/><line x1="12" y1="22" x2="12" y2="18"/></svg>',BB={"detail.back":"Back","detail.title":"Feedback #{number}","detail.status":"Status","detail.message":"Message","detail.screenshot":"Screenshot","detail.screenshotAlt":"Screenshot of the annotated area","detail.metadata":"Details","detail.annotation":"Annotation","detail.page":"Page","detail.author":"Author","detail.date":"Created","detail.viewport":"Viewport","detail.browser":"Browser","detail.resolvedAt":"Resolved at","detail.goToAnnotation":"Go to annotation","detail.element":"Element","detail.selector":"Selector","detail.position":"Position","detail.resolve":"Resolve","detail.reopen":"Reopen","detail.delete":"Delete"},Os={"detail.back":"Retour","detail.title":"Feedback n\xB0{number}","detail.status":"Statut","detail.message":"Message","detail.screenshot":"Capture d'\xE9cran","detail.screenshotAlt":"Capture d'\xE9cran de la zone annot\xE9e","detail.metadata":"D\xE9tails","detail.annotation":"Annotation","detail.page":"Page","detail.author":"Auteur","detail.date":"Cr\xE9\xE9 le","detail.viewport":"Viewport","detail.browser":"Navigateur","detail.resolvedAt":"R\xE9solu le","detail.goToAnnotation":"Aller \xE0 l'annotation","detail.element":"\xC9l\xE9ment","detail.selector":"S\xE9lecteur","detail.position":"Position","detail.resolve":"R\xE9soudre","detail.reopen":"Rouvrir","detail.delete":"Supprimer"},jo=`
590
594
  /* ============================
591
595
  Detail View \u2014 Panel-in-Panel
592
596
  ============================ */
@@ -875,6 +879,19 @@
875
879
  word-break: break-word;
876
880
  }
877
881
 
882
+ /* ---- Screenshot Section ---- */
883
+
884
+ .sp-detail-screenshot {
885
+ display: block;
886
+ width: 100%;
887
+ height: auto;
888
+ max-height: 400px;
889
+ object-fit: contain;
890
+ border-radius: var(--sp-radius);
891
+ border: 1px solid var(--sp-glass-border);
892
+ background: var(--sp-glass-bg-heavy);
893
+ }
894
+
878
895
  /* ---- Metadata Section ---- */
879
896
 
880
897
  .sp-detail-meta {
@@ -1078,7 +1095,7 @@
1078
1095
  animation-duration: 0.01ms !important;
1079
1096
  }
1080
1097
  }
1081
- `;function Zs(n){if(/Edg\//i.test(n)){let e=n.match(/Edg\/([\d.]+)/);return e?`Edge ${e[1]}`:"Edge"}if(/OPR\//i.test(n)||/Opera/i.test(n)){let e=n.match(/OPR\/([\d.]+)/);return e?`Opera ${e[1]}`:"Opera"}if(/Firefox\//i.test(n)){let e=n.match(/Firefox\/([\d.]+)/);return e?`Firefox ${e[1]}`:"Firefox"}if(/Chrome\//i.test(n)&&!/Chromium/i.test(n)){let e=n.match(/Chrome\/([\d.]+)/);return e?`Chrome ${e[1]}`:"Chrome"}if(/Safari\//i.test(n)&&!/Chrome/i.test(n)){let e=n.match(/Version\/([\d.]+)/);return e?`Safari ${e[1]}`:"Safari"}return"Unknown"}function zt(n,e){try{return new Date(n).toLocaleString(e,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return n}}function en(n){try{return new URL(n).pathname}catch{return n}}function Kt(n,e){return n.length<=e?n:n.slice(0,e-1)+"\u2026"}var he=class{constructor(e,t,s){this.colors=e;this.callbacks=t;this.i18n=s.startsWith("fr")?$e:Js,this.element=l("div",{class:"sp-detail"}),this.element.setAttribute("role","dialog"),this.element.setAttribute("aria-label","Feedback detail"),this.element.setAttribute("aria-hidden","true");let o=l("div",{class:"sp-detail-header"}),i=document.createElement("button");i.type="button",i.className="sp-detail-back",i.setAttribute("aria-label",this.i18n["detail.back"]),i.appendChild(v(qs)),i.addEventListener("click",()=>{this.hide(),this.callbacks.onBack()}),this.element.appendChild(o),o.appendChild(i),this.content=l("div",{class:"sp-detail-content"}),this.element.appendChild(this.content)}colors;callbacks;element;_isVisible=!1;currentFeedback=null;content;i18n;resolveBtn=null;deleteBtn=null;isProcessing=!1;show(e,t){this.currentFeedback=e,this.isProcessing=!1;let s=this.element.querySelector(".sp-detail-header");if(!s)return;let o=s.querySelector(".sp-detail-back");if(!o)return;s.replaceChildren(o);let i=l("span",{class:"sp-detail-title"});c(i,this.i18n["detail.title"].replace("{number}",String(t))),s.appendChild(i);let r=l("span",{class:"sp-badge"});r.style.background=P(e.type,this.colors),r.style.color=M(e.type,this.colors),c(r,e.type),s.appendChild(r),this.content.replaceChildren();let a=0,p=this.buildSection(a++);this.buildStatusActions(p,e),this.content.appendChild(p);let d=this.buildSection(a++),u=l("div",{class:"sp-detail-section-title"});c(u,this.i18n["detail.message"]),d.appendChild(u);let h=l("div",{class:"sp-detail-message"});h.style.borderLeftColor=M(e.type,this.colors),c(h,e.message),d.appendChild(h),this.content.appendChild(d);let b=this.buildSection(a++),f=l("div",{class:"sp-detail-section-title"});if(c(f,this.i18n["detail.metadata"]),b.appendChild(f),this.buildMetadata(b,e),this.content.appendChild(b),e.annotations.length>0){let k=this.buildSection(a++),w=l("div",{class:"sp-detail-section-title"});w.appendChild(v(Oe));let E=l("span");c(E,this.i18n["detail.annotation"]),w.appendChild(E),k.appendChild(w),this.buildAnnotation(k,e),this.content.appendChild(k)}this._isVisible=!0,this.element.setAttribute("aria-hidden","false"),this.element.offsetHeight,this.element.classList.add("sp-detail--visible"),requestAnimationFrame(()=>{o.focus()})}hide(){this._isVisible&&(this._isVisible=!1,this.element.classList.remove("sp-detail--visible"),this.element.setAttribute("aria-hidden","true"),this.currentFeedback=null,this.resolveBtn=null,this.deleteBtn=null)}get isVisible(){return this._isVisible}destroy(){this.hide(),this.element.remove()}buildSection(e){let t=l("div",{class:"sp-detail-section"});return t.style.animationDelay=`${e*40}ms`,t}buildStatusActions(e,t){let s=t.status==="resolved",o=l("div",{class:"sp-detail-section-title"});c(o,this.i18n["detail.status"]),e.appendChild(o);let i=l("div",{class:"sp-detail-status"}),r=l("span",{class:`sp-detail-status-pill ${s?"sp-detail-status-pill--resolved":"sp-detail-status-pill--open"}`}),a=l("span",{class:"sp-detail-status-dot"});a.style.background=s?"#9ca3af":"#22c55e",r.appendChild(a);let p=l("span");c(p,s?this.i18n["detail.reopen"]:this.i18n["detail.resolve"]),c(p,s?"Resolved":"Open"),r.appendChild(p),i.appendChild(r),e.appendChild(i);let d=l("div",{class:"sp-detail-actions"});if(this.resolveBtn=document.createElement("button"),this.resolveBtn.type="button",s){this.resolveBtn.className="sp-detail-btn-reopen",this.resolveBtn.appendChild(v($t));let h=document.createElement("span");c(h,this.i18n["detail.reopen"]),this.resolveBtn.appendChild(h)}else{this.resolveBtn.className="sp-detail-btn-resolve",this.resolveBtn.appendChild(v(He));let h=document.createElement("span");c(h,this.i18n["detail.resolve"]),this.resolveBtn.appendChild(h)}this.resolveBtn.addEventListener("click",()=>this.handleResolve()),this.deleteBtn=document.createElement("button"),this.deleteBtn.type="button",this.deleteBtn.className="sp-detail-btn-delete",this.deleteBtn.appendChild(v(jt));let u=document.createElement("span");c(u,this.i18n["detail.delete"]),this.deleteBtn.appendChild(u),this.deleteBtn.addEventListener("click",()=>this.handleDelete()),d.appendChild(this.resolveBtn),d.appendChild(this.deleteBtn),e.appendChild(d)}buildMetadata(e,t){let s=l("div",{class:"sp-detail-meta"});if(this.addMetaRow(s,Us,this.i18n["detail.page"],()=>{let o=l("div",{class:"sp-detail-meta-value"}),i=en(t.url);return c(o,Kt(i,60)),o.title=t.url,o}),this.addMetaRow(s,Ws,this.i18n["detail.author"],()=>{let o=l("div",{class:"sp-detail-meta-value"}),i=t.authorName||"Anonymous",r=t.authorEmail;return c(o,r?`${i} (${r})`:i),o}),this.addMetaRow(s,Xs,this.i18n["detail.date"],()=>{let o=l("div",{class:"sp-detail-meta-value"});return c(o,zt(t.createdAt,this.i18n===$e?"fr":"en")),o}),this.addMetaRow(s,Vs,this.i18n["detail.viewport"],()=>{let o=l("div",{class:"sp-detail-meta-value sp-detail-meta-value--mono"});return c(o,t.viewport||"Unknown"),o}),this.addMetaRow(s,'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>',this.i18n["detail.browser"],()=>{let o=l("div",{class:"sp-detail-meta-value"});return c(o,Zs(t.userAgent)),o}),t.resolvedAt){let o=t.resolvedAt;this.addMetaRow(s,He,this.i18n["detail.resolvedAt"],()=>{let i=l("div",{class:"sp-detail-meta-value sp-detail-meta-value--secondary"});return c(i,zt(o,this.i18n===$e?"fr":"en")),i})}e.appendChild(s)}addMetaRow(e,t,s,o){let i=l("div",{class:"sp-detail-meta-row"});i.appendChild(v(t));let r=l("div",{class:"sp-detail-meta-content"}),a=l("div",{class:"sp-detail-meta-label"});c(a,s),r.appendChild(a),r.appendChild(o()),i.appendChild(r),e.appendChild(i)}buildAnnotation(e,t){let s=t.annotations[0];if(!s)return;let o=l("div",{class:"sp-detail-annotation"}),i=l("div",{class:"sp-detail-annotation-info"});this.addAnnotationRow(i,Gs,this.i18n["detail.element"],()=>{let p=l("span",{class:"sp-detail-annotation-value sp-detail-annotation-value--mono"}),d=s.elementId?`<${s.elementTag}#${s.elementId}>`:`<${s.elementTag}>`;return c(p,d),p}),this.addAnnotationRow(i,Qs,this.i18n["detail.selector"],()=>{let p=l("span",{class:"sp-detail-annotation-value sp-detail-annotation-value--mono"});return c(p,Kt(s.cssSelector,60)),p.title=s.cssSelector,p}),this.addAnnotationRow(i,Oe,this.i18n["detail.position"],()=>{let p=l("span",{class:"sp-detail-annotation-value"});return c(p,`${s.xPct.toFixed(1)}%, ${s.yPct.toFixed(1)}%`+(s.wPct>0||s.hPct>0?` (${s.wPct.toFixed(1)}% \xD7 ${s.hPct.toFixed(1)}%)`:"")),p}),o.appendChild(i);let r=document.createElement("button");r.type="button",r.className="sp-detail-btn-goto",r.appendChild(v(Oe));let a=document.createElement("span");c(a,this.i18n["detail.goToAnnotation"]),r.appendChild(a),r.addEventListener("click",()=>{this.currentFeedback&&this.callbacks.onGoToAnnotation(this.currentFeedback)}),o.appendChild(r),e.appendChild(o)}addAnnotationRow(e,t,s,o){let i=l("div",{class:"sp-detail-annotation-row"});i.appendChild(v(t));let r=l("div",{class:"sp-detail-meta-content"}),a=l("div",{class:"sp-detail-annotation-label"});c(a,s),r.appendChild(a),r.appendChild(o()),i.appendChild(r),e.appendChild(i)}async handleResolve(){if(!(this.isProcessing||!this.currentFeedback)){this.isProcessing=!0,this.resolveBtn&&this.setButtonLoading(this.resolveBtn),this.deleteBtn&&(this.deleteBtn.disabled=!0);try{await this.callbacks.onResolve(this.currentFeedback)}catch{this.isProcessing=!1,this.resolveBtn&&this.restoreResolveBtn(this.currentFeedback),this.deleteBtn&&(this.deleteBtn.disabled=!1)}}}async handleDelete(){if(!(this.isProcessing||!this.currentFeedback)){this.isProcessing=!0,this.deleteBtn&&this.setButtonLoading(this.deleteBtn),this.resolveBtn&&(this.resolveBtn.disabled=!0);try{await this.callbacks.onDelete(this.currentFeedback)}catch{this.isProcessing=!1,this.deleteBtn&&this.restoreDeleteBtn(),this.resolveBtn&&(this.resolveBtn.disabled=!1)}}}setButtonLoading(e){e.disabled=!0,e.replaceChildren(l("div",{class:"sp-spinner sp-spinner--sm"}))}restoreResolveBtn(e){if(!this.resolveBtn)return;this.resolveBtn.disabled=!1,this.resolveBtn.replaceChildren();let t=e.status==="resolved";this.resolveBtn.appendChild(v(t?$t:He));let s=document.createElement("span");c(s,t?this.i18n["detail.reopen"]:this.i18n["detail.resolve"]),this.resolveBtn.appendChild(s)}restoreDeleteBtn(){if(!this.deleteBtn)return;this.deleteBtn.disabled=!1,this.deleteBtn.replaceChildren(),this.deleteBtn.appendChild(v(jt));let e=document.createElement("span");c(e,this.i18n["detail.delete"]),this.deleteBtn.appendChild(e)}};var tn='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M11 5h10"/><path d="M11 9h7"/><path d="M11 13h4"/><path d="M3 17l3 3 3-3"/><path d="M6 18V4"/></svg>',Ut='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/><polyline points="10 9 9 9 8 9"/></svg>',sn='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg>',nn={"sort.newest":"Newest first","sort.oldest":"Oldest first","sort.byType":"By type","sort.openFirst":"Open first","sort.label":"Sort","group.byPage":"By page","group.feedbacks":"{count} feedbacks"},on={"sort.newest":"Plus r\xE9cents","sort.oldest":"Plus anciens","sort.byType":"Par type","sort.openFirst":"Ouverts d'abord","sort.label":"Trier","group.byPage":"Par page","group.feedbacks":"{count} feedbacks"},qt={question:0,change:1,bug:2,other:3};function Wt(n,e){let t=[...n];switch(e){case"newest":t.sort((s,o)=>new Date(o.createdAt).getTime()-new Date(s.createdAt).getTime());break;case"oldest":t.sort((s,o)=>new Date(s.createdAt).getTime()-new Date(o.createdAt).getTime());break;case"by-type":t.sort((s,o)=>{let i=qt[s.type]??99,r=qt[o.type]??99;return i!==r?i-r:new Date(o.createdAt).getTime()-new Date(s.createdAt).getTime()});break;case"open-first":t.sort((s,o)=>{let i=s.status==="open"?0:1,r=o.status==="open"?0:1;return i!==r?i-r:new Date(o.createdAt).getTime()-new Date(s.createdAt).getTime()});break}return t}function rn(n){try{return new URL(n).pathname}catch{return n}}function an(n,e){if(n.length<=e)return n;let t="\u2026",s=Math.floor((e-1)/2);return n.slice(0,s)+t+n.slice(-s)}function Xt(n){let e=new Map;for(let s of n){let o=rn(s.url),i=e.get(o);i?i.push(s):e.set(o,[s])}return new Map([...e.entries()].sort((s,o)=>o[1].length-s[1].length))}function Vt(n,e,t){let s=l("div",{class:"sp-group-header"});s.setAttribute("role","button"),s.setAttribute("tabindex","0"),s.setAttribute("aria-expanded","true"),s.style.borderBottomColor=t.border;let o=l("span",{class:"sp-group-header-chevron"});o.appendChild(v(sn)),s.appendChild(o);let i=l("span",{class:"sp-group-header-icon"});i.appendChild(v(Ut)),s.appendChild(i);let r=l("span",{class:"sp-group-header-path"}),a=an(n,40);c(r,a),n.length>40&&(r.title=n),s.appendChild(r);let p=l("span",{class:"sp-group-header-count"});p.style.background=t.accentLight,p.style.color=t.accent,c(p,String(e)),s.appendChild(p);let d=()=>{let u=s.getAttribute("aria-expanded")==="true";s.setAttribute("aria-expanded",String(!u)),s.classList.toggle("sp-group-header--collapsed",u);let h=s.nextElementSibling;h?.classList.contains("sp-group-content")&&h.classList.toggle("sp-group-content--collapsed",u)};return s.addEventListener("click",d),s.addEventListener("keydown",u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d())}),s}var be=class{element;_sortMode="newest";_groupByPage=!1;menuEl=null;sortBtn;groupToggle;i18n;colors;onChange;outsideClickHandler=null;constructor(e,t,s){this.colors=e,this.onChange=t,this.i18n=s==="fr"?on:nn,this.element=l("div",{class:"sp-sort-controls"}),this.sortBtn=document.createElement("button"),this.sortBtn.className="sp-sort-btn",this.sortBtn.setAttribute("aria-haspopup","listbox"),this.sortBtn.setAttribute("aria-expanded","false"),this.sortBtn.setAttribute("aria-label",this.i18n["sort.label"]);let o=v(tn);this.sortBtn.appendChild(o);let i=l("span",{class:"sp-sort-btn-label"});c(i,this.i18n["sort.newest"]),this.sortBtn.appendChild(i),this.sortBtn.addEventListener("click",p=>{p.stopPropagation(),this.toggleMenu()}),this.groupToggle=document.createElement("button"),this.groupToggle.className="sp-group-toggle",this.groupToggle.setAttribute("aria-pressed","false");let r=v(Ut);this.groupToggle.appendChild(r);let a=l("span",{class:"sp-group-toggle-label"});c(a,this.i18n["group.byPage"]),this.groupToggle.appendChild(a),this.groupToggle.addEventListener("click",()=>{this._groupByPage=!this._groupByPage,this.groupToggle.classList.toggle("sp-group-toggle--active",this._groupByPage),this.groupToggle.setAttribute("aria-pressed",String(this._groupByPage)),this.onChange()}),this.element.appendChild(this.sortBtn),this.element.appendChild(this.groupToggle)}get sortMode(){return this._sortMode}get groupByPage(){return this._groupByPage}toggleMenu(){if(this.menuEl){this.closeMenu();return}this.openMenu()}openMenu(){this.menuEl=l("div",{class:"sp-sort-menu"}),this.menuEl.setAttribute("role","listbox"),this.menuEl.setAttribute("aria-label",this.i18n["sort.label"]),this.sortBtn.setAttribute("aria-expanded","true");let e=[{mode:"newest",label:this.i18n["sort.newest"]},{mode:"oldest",label:this.i18n["sort.oldest"]},{mode:"by-type",label:this.i18n["sort.byType"]},{mode:"open-first",label:this.i18n["sort.openFirst"]}];for(let t of e){let s=document.createElement("button");s.className=`sp-sort-option${t.mode===this._sortMode?" sp-sort-option--active":""}`,s.setAttribute("role","option"),s.setAttribute("aria-selected",String(t.mode===this._sortMode)),t.mode===this._sortMode&&(s.style.background=this.colors.accentLight,s.style.color=this.colors.accent),c(s,t.label),s.addEventListener("click",o=>{o.stopPropagation(),this._sortMode=t.mode,this.updateSortLabel(),this.closeMenu(),this.onChange()}),this.menuEl.appendChild(s)}this.element.appendChild(this.menuEl),requestAnimationFrame(()=>{this.outsideClickHandler=t=>{this.menuEl&&!this.element.contains(t.target)&&this.closeMenu()},document.addEventListener("click",this.outsideClickHandler,!0)}),this.menuEl.addEventListener("keydown",t=>{t.key==="Escape"&&(this.closeMenu(),this.sortBtn.focus())})}closeMenu(){this.menuEl&&(this.menuEl.remove(),this.menuEl=null),this.sortBtn.setAttribute("aria-expanded","false"),this.outsideClickHandler&&(document.removeEventListener("click",this.outsideClickHandler,!0),this.outsideClickHandler=null)}updateSortLabel(){let e={newest:this.i18n["sort.newest"],oldest:this.i18n["sort.oldest"],"by-type":this.i18n["sort.byType"],"open-first":this.i18n["sort.openFirst"]},t=this.sortBtn.querySelector(".sp-sort-btn-label");t&&c(t,e[this._sortMode])}destroy(){this.closeMenu()}},Gt=`
1098
+ `;function hB(l){if(/Edg\//i.test(l)){let s=l.match(/Edg\/([\d.]+)/);return s?`Edge ${s[1]}`:"Edge"}if(/OPR\//i.test(l)||/Opera/i.test(l)){let s=l.match(/OPR\/([\d.]+)/);return s?`Opera ${s[1]}`:"Opera"}if(/Firefox\//i.test(l)){let s=l.match(/Firefox\/([\d.]+)/);return s?`Firefox ${s[1]}`:"Firefox"}if(/Chrome\//i.test(l)&&!/Chromium/i.test(l)){let s=l.match(/Chrome\/([\d.]+)/);return s?`Chrome ${s[1]}`:"Chrome"}if(/Safari\//i.test(l)&&!/Chrome/i.test(l)){let s=l.match(/Version\/([\d.]+)/);return s?`Safari ${s[1]}`:"Safari"}return"Unknown"}function Jo(l,s){try{return new Date(l).toLocaleString(s,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return l}}function gB(l){try{return new URL(l).pathname}catch{return l}}function fB(l){return!!(/^data:image\/(jpeg|png|webp);/i.test(l)||/^https:\/\//i.test(l))}function Wo(l,s){return l.length<=s?l:l.slice(0,s-1)+"\u2026"}var wr=class{constructor(s,i,o){this.colors=s;this.callbacks=i;this.i18n=o.startsWith("fr")?Os:BB,this.element=b("div",{class:"sp-detail"}),this.element.setAttribute("role","dialog"),this.element.setAttribute("aria-label","Feedback detail"),this.element.setAttribute("aria-hidden","true");let c=b("div",{class:"sp-detail-header"}),d=document.createElement("button");d.type="button",d.className="sp-detail-back",d.setAttribute("aria-label",this.i18n["detail.back"]),d.appendChild(P(oB)),d.addEventListener("click",()=>{this.hide(),this.callbacks.onBack()}),this.element.appendChild(c),c.appendChild(d),this.content=b("div",{class:"sp-detail-content"}),this.element.appendChild(this.content)}colors;callbacks;element;_isVisible=!1;currentFeedback=null;content;i18n;resolveBtn=null;deleteBtn=null;isProcessing=!1;show(s,i){this.currentFeedback=s,this.isProcessing=!1;let o=this.element.querySelector(".sp-detail-header");if(!o)return;let c=o.querySelector(".sp-detail-back");if(!c)return;o.replaceChildren(c);let d=b("span",{class:"sp-detail-title"});U(d,this.i18n["detail.title"].replace("{number}",String(i))),o.appendChild(d);let h=b("span",{class:"sp-badge"});h.style.background=GA(s.type,this.colors),h.style.color=UA(s.type,this.colors),U(h,s.type),o.appendChild(h),this.content.replaceChildren();let f=0,C=this.buildSection(f++);this.buildStatusActions(C,s),this.content.appendChild(C);let Q=this.buildSection(f++),v=b("div",{class:"sp-detail-section-title"});U(v,this.i18n["detail.message"]),Q.appendChild(v);let y=b("div",{class:"sp-detail-message"});if(y.style.borderLeftColor=UA(s.type,this.colors),U(y,s.message),Q.appendChild(y),this.content.appendChild(Q),s.screenshotUrl&&fB(s.screenshotUrl)){let G=this.buildSection(f++),X=b("div",{class:"sp-detail-section-title"});U(X,this.i18n["detail.screenshot"]),G.appendChild(X);let j=document.createElement("img");j.className="sp-detail-screenshot",j.src=s.screenshotUrl,j.alt=this.i18n["detail.screenshotAlt"],j.loading="lazy",j.referrerPolicy="no-referrer",G.appendChild(j),this.content.appendChild(G)}let T=this.buildSection(f++),O=b("div",{class:"sp-detail-section-title"});if(U(O,this.i18n["detail.metadata"]),T.appendChild(O),this.buildMetadata(T,s),this.content.appendChild(T),s.annotations.length>0){let G=this.buildSection(f++),X=b("div",{class:"sp-detail-section-title"});X.appendChild(P(Ms));let j=b("span");U(j,this.i18n["detail.annotation"]),X.appendChild(j),G.appendChild(X),this.buildAnnotation(G,s),this.content.appendChild(G)}this._isVisible=!0,this.element.setAttribute("aria-hidden","false"),this.element.offsetHeight,this.element.classList.add("sp-detail--visible"),requestAnimationFrame(()=>{c.focus()})}hide(){this._isVisible&&(this._isVisible=!1,this.element.classList.remove("sp-detail--visible"),this.element.setAttribute("aria-hidden","true"),this.currentFeedback=null,this.resolveBtn=null,this.deleteBtn=null)}get isVisible(){return this._isVisible}destroy(){this.hide(),this.element.remove()}buildSection(s){let i=b("div",{class:"sp-detail-section"});return i.style.animationDelay=`${s*40}ms`,i}buildStatusActions(s,i){let o=i.status==="resolved",c=b("div",{class:"sp-detail-section-title"});U(c,this.i18n["detail.status"]),s.appendChild(c);let d=b("div",{class:"sp-detail-status"}),h=b("span",{class:`sp-detail-status-pill ${o?"sp-detail-status-pill--resolved":"sp-detail-status-pill--open"}`}),f=b("span",{class:"sp-detail-status-dot"});f.style.background=o?"#9ca3af":"#22c55e",h.appendChild(f);let C=b("span");U(C,o?this.i18n["detail.reopen"]:this.i18n["detail.resolve"]),U(C,o?"Resolved":"Open"),h.appendChild(C),d.appendChild(h),s.appendChild(d);let Q=b("div",{class:"sp-detail-actions"});if(this.resolveBtn=document.createElement("button"),this.resolveBtn.type="button",o){this.resolveBtn.className="sp-detail-btn-reopen",this.resolveBtn.appendChild(P(Xo));let y=document.createElement("span");U(y,this.i18n["detail.reopen"]),this.resolveBtn.appendChild(y)}else{this.resolveBtn.className="sp-detail-btn-resolve",this.resolveBtn.appendChild(P(Rs));let y=document.createElement("span");U(y,this.i18n["detail.resolve"]),this.resolveBtn.appendChild(y)}this.resolveBtn.addEventListener("click",()=>this.handleResolve()),this.deleteBtn=document.createElement("button"),this.deleteBtn.type="button",this.deleteBtn.className="sp-detail-btn-delete",this.deleteBtn.appendChild(P(Yo));let v=document.createElement("span");U(v,this.i18n["detail.delete"]),this.deleteBtn.appendChild(v),this.deleteBtn.addEventListener("click",()=>this.handleDelete()),Q.appendChild(this.resolveBtn),Q.appendChild(this.deleteBtn),s.appendChild(Q)}buildMetadata(s,i){let o=b("div",{class:"sp-detail-meta"});if(this.addMetaRow(o,aB,this.i18n["detail.page"],()=>{let c=b("div",{class:"sp-detail-meta-value"}),d=gB(i.url);return U(c,Wo(d,60)),c.title=i.url,c}),this.addMetaRow(o,lB,this.i18n["detail.author"],()=>{let c=b("div",{class:"sp-detail-meta-value"}),d=i.authorName||"Anonymous",h=i.authorEmail;return U(c,h?`${d} (${h})`:d),c}),this.addMetaRow(o,cB,this.i18n["detail.date"],()=>{let c=b("div",{class:"sp-detail-meta-value"});return U(c,Jo(i.createdAt,this.i18n===Os?"fr":"en")),c}),this.addMetaRow(o,pB,this.i18n["detail.viewport"],()=>{let c=b("div",{class:"sp-detail-meta-value sp-detail-meta-value--mono"});return U(c,i.viewport||"Unknown"),c}),this.addMetaRow(o,'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>',this.i18n["detail.browser"],()=>{let c=b("div",{class:"sp-detail-meta-value"});return U(c,hB(i.userAgent)),c}),i.resolvedAt){let c=i.resolvedAt;this.addMetaRow(o,Rs,this.i18n["detail.resolvedAt"],()=>{let d=b("div",{class:"sp-detail-meta-value sp-detail-meta-value--secondary"});return U(d,Jo(c,this.i18n===Os?"fr":"en")),d})}s.appendChild(o)}addMetaRow(s,i,o,c){let d=b("div",{class:"sp-detail-meta-row"});d.appendChild(P(i));let h=b("div",{class:"sp-detail-meta-content"}),f=b("div",{class:"sp-detail-meta-label"});U(f,o),h.appendChild(f),h.appendChild(c()),d.appendChild(h),s.appendChild(d)}buildAnnotation(s,i){let o=i.annotations[0];if(!o)return;let c=b("div",{class:"sp-detail-annotation"}),d=b("div",{class:"sp-detail-annotation-info"});this.addAnnotationRow(d,dB,this.i18n["detail.element"],()=>{let C=b("span",{class:"sp-detail-annotation-value sp-detail-annotation-value--mono"}),Q=o.elementId?`<${o.elementTag}#${o.elementId}>`:`<${o.elementTag}>`;return U(C,Q),C}),this.addAnnotationRow(d,uB,this.i18n["detail.selector"],()=>{let C=b("span",{class:"sp-detail-annotation-value sp-detail-annotation-value--mono"});return U(C,Wo(o.cssSelector,60)),C.title=o.cssSelector,C}),this.addAnnotationRow(d,Ms,this.i18n["detail.position"],()=>{let C=b("span",{class:"sp-detail-annotation-value"});return U(C,`${o.xPct.toFixed(1)}%, ${o.yPct.toFixed(1)}%`+(o.wPct>0||o.hPct>0?` (${o.wPct.toFixed(1)}% \xD7 ${o.hPct.toFixed(1)}%)`:"")),C}),c.appendChild(d);let h=document.createElement("button");h.type="button",h.className="sp-detail-btn-goto",h.appendChild(P(Ms));let f=document.createElement("span");U(f,this.i18n["detail.goToAnnotation"]),h.appendChild(f),h.addEventListener("click",()=>{this.currentFeedback&&this.callbacks.onGoToAnnotation(this.currentFeedback)}),c.appendChild(h),s.appendChild(c)}addAnnotationRow(s,i,o,c){let d=b("div",{class:"sp-detail-annotation-row"});d.appendChild(P(i));let h=b("div",{class:"sp-detail-meta-content"}),f=b("div",{class:"sp-detail-annotation-label"});U(f,o),h.appendChild(f),h.appendChild(c()),d.appendChild(h),s.appendChild(d)}async handleResolve(){if(!(this.isProcessing||!this.currentFeedback)){this.isProcessing=!0,this.resolveBtn&&this.setButtonLoading(this.resolveBtn),this.deleteBtn&&(this.deleteBtn.disabled=!0);try{await this.callbacks.onResolve(this.currentFeedback)}catch{this.isProcessing=!1,this.resolveBtn&&this.restoreResolveBtn(this.currentFeedback),this.deleteBtn&&(this.deleteBtn.disabled=!1)}}}async handleDelete(){if(!(this.isProcessing||!this.currentFeedback)){this.isProcessing=!0,this.deleteBtn&&this.setButtonLoading(this.deleteBtn),this.resolveBtn&&(this.resolveBtn.disabled=!0);try{await this.callbacks.onDelete(this.currentFeedback)}catch{this.isProcessing=!1,this.deleteBtn&&this.restoreDeleteBtn(),this.resolveBtn&&(this.resolveBtn.disabled=!1)}}}setButtonLoading(s){s.disabled=!0,s.replaceChildren(b("div",{class:"sp-spinner sp-spinner--sm"}))}restoreResolveBtn(s){if(!this.resolveBtn)return;this.resolveBtn.disabled=!1,this.resolveBtn.replaceChildren();let i=s.status==="resolved";this.resolveBtn.appendChild(P(i?Xo:Rs));let o=document.createElement("span");U(o,i?this.i18n["detail.reopen"]:this.i18n["detail.resolve"]),this.resolveBtn.appendChild(o)}restoreDeleteBtn(){if(!this.deleteBtn)return;this.deleteBtn.disabled=!1,this.deleteBtn.replaceChildren(),this.deleteBtn.appendChild(P(Yo));let s=document.createElement("span");U(s,this.i18n["detail.delete"]),this.deleteBtn.appendChild(s)}};var wB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M11 5h10"/><path d="M11 9h7"/><path d="M11 13h4"/><path d="M3 17l3 3 3-3"/><path d="M6 18V4"/></svg>',Zo='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/><polyline points="10 9 9 9 8 9"/></svg>',CB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg>',mB={"sort.newest":"Newest first","sort.oldest":"Oldest first","sort.byType":"By type","sort.openFirst":"Open first","sort.label":"Sort","group.byPage":"By page","group.feedbacks":"{count} feedbacks"},bB={"sort.newest":"Plus r\xE9cents","sort.oldest":"Plus anciens","sort.byType":"Par type","sort.openFirst":"Ouverts d'abord","sort.label":"Trier","group.byPage":"Par page","group.feedbacks":"{count} feedbacks"},$o={question:0,change:1,bug:2,other:3};function zo(l,s){let i=[...l];switch(s){case"newest":i.sort((o,c)=>new Date(c.createdAt).getTime()-new Date(o.createdAt).getTime());break;case"oldest":i.sort((o,c)=>new Date(o.createdAt).getTime()-new Date(c.createdAt).getTime());break;case"by-type":i.sort((o,c)=>{let d=$o[o.type]??99,h=$o[c.type]??99;return d!==h?d-h:new Date(c.createdAt).getTime()-new Date(o.createdAt).getTime()});break;case"open-first":i.sort((o,c)=>{let d=o.status==="open"?0:1,h=c.status==="open"?0:1;return d!==h?d-h:new Date(c.createdAt).getTime()-new Date(o.createdAt).getTime()});break}return i}function vB(l){try{return new URL(l).pathname}catch{return l}}function QB(l,s){if(l.length<=s)return l;let i="\u2026",o=Math.floor((s-1)/2);return l.slice(0,o)+i+l.slice(-o)}function qo(l){let s=new Map;for(let o of l){let c=vB(o.url),d=s.get(c);d?d.push(o):s.set(c,[o])}return new Map([...s.entries()].sort((o,c)=>c[1].length-o[1].length))}function Aa(l,s,i){let o=b("div",{class:"sp-group-header"});o.setAttribute("role","button"),o.setAttribute("tabindex","0"),o.setAttribute("aria-expanded","true"),o.style.borderBottomColor=i.border;let c=b("span",{class:"sp-group-header-chevron"});c.appendChild(P(CB)),o.appendChild(c);let d=b("span",{class:"sp-group-header-icon"});d.appendChild(P(Zo)),o.appendChild(d);let h=b("span",{class:"sp-group-header-path"}),f=QB(l,40);U(h,f),l.length>40&&(h.title=l),o.appendChild(h);let C=b("span",{class:"sp-group-header-count"});C.style.background=i.accentLight,C.style.color=i.accent,U(C,String(s)),o.appendChild(C);let Q=()=>{let v=o.getAttribute("aria-expanded")==="true";o.setAttribute("aria-expanded",String(!v)),o.classList.toggle("sp-group-header--collapsed",v);let y=o.nextElementSibling;y?.classList.contains("sp-group-content")&&y.classList.toggle("sp-group-content--collapsed",v)};return o.addEventListener("click",Q),o.addEventListener("keydown",v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),Q())}),o}var Cr=class{element;_sortMode="newest";_groupByPage=!1;menuEl=null;sortBtn;groupToggle;i18n;colors;onChange;outsideClickHandler=null;constructor(s,i,o){this.colors=s,this.onChange=i,this.i18n=o==="fr"?bB:mB,this.element=b("div",{class:"sp-sort-controls"}),this.sortBtn=document.createElement("button"),this.sortBtn.className="sp-sort-btn",this.sortBtn.setAttribute("aria-haspopup","listbox"),this.sortBtn.setAttribute("aria-expanded","false"),this.sortBtn.setAttribute("aria-label",this.i18n["sort.label"]);let c=P(wB);this.sortBtn.appendChild(c);let d=b("span",{class:"sp-sort-btn-label"});U(d,this.i18n["sort.newest"]),this.sortBtn.appendChild(d),this.sortBtn.addEventListener("click",C=>{C.stopPropagation(),this.toggleMenu()}),this.groupToggle=document.createElement("button"),this.groupToggle.className="sp-group-toggle",this.groupToggle.setAttribute("aria-pressed","false");let h=P(Zo);this.groupToggle.appendChild(h);let f=b("span",{class:"sp-group-toggle-label"});U(f,this.i18n["group.byPage"]),this.groupToggle.appendChild(f),this.groupToggle.addEventListener("click",()=>{this._groupByPage=!this._groupByPage,this.groupToggle.classList.toggle("sp-group-toggle--active",this._groupByPage),this.groupToggle.setAttribute("aria-pressed",String(this._groupByPage)),this.onChange()}),this.element.appendChild(this.sortBtn),this.element.appendChild(this.groupToggle)}get sortMode(){return this._sortMode}get groupByPage(){return this._groupByPage}toggleMenu(){if(this.menuEl){this.closeMenu();return}this.openMenu()}openMenu(){this.menuEl=b("div",{class:"sp-sort-menu"}),this.menuEl.setAttribute("role","listbox"),this.menuEl.setAttribute("aria-label",this.i18n["sort.label"]),this.sortBtn.setAttribute("aria-expanded","true");let s=[{mode:"newest",label:this.i18n["sort.newest"]},{mode:"oldest",label:this.i18n["sort.oldest"]},{mode:"by-type",label:this.i18n["sort.byType"]},{mode:"open-first",label:this.i18n["sort.openFirst"]}];for(let i of s){let o=document.createElement("button");o.className=`sp-sort-option${i.mode===this._sortMode?" sp-sort-option--active":""}`,o.setAttribute("role","option"),o.setAttribute("aria-selected",String(i.mode===this._sortMode)),i.mode===this._sortMode&&(o.style.background=this.colors.accentLight,o.style.color=this.colors.accent),U(o,i.label),o.addEventListener("click",c=>{c.stopPropagation(),this._sortMode=i.mode,this.updateSortLabel(),this.closeMenu(),this.onChange()}),this.menuEl.appendChild(o)}this.element.appendChild(this.menuEl),requestAnimationFrame(()=>{this.outsideClickHandler=i=>{this.menuEl&&!this.element.contains(i.target)&&this.closeMenu()},document.addEventListener("click",this.outsideClickHandler,!0)}),this.menuEl.addEventListener("keydown",i=>{i.key==="Escape"&&(this.closeMenu(),this.sortBtn.focus())})}closeMenu(){this.menuEl&&(this.menuEl.remove(),this.menuEl=null),this.sortBtn.setAttribute("aria-expanded","false"),this.outsideClickHandler&&(document.removeEventListener("click",this.outsideClickHandler,!0),this.outsideClickHandler=null)}updateSortLabel(){let s={newest:this.i18n["sort.newest"],oldest:this.i18n["sort.oldest"],"by-type":this.i18n["sort.byType"],"open-first":this.i18n["sort.openFirst"]},i=this.sortBtn.querySelector(".sp-sort-btn-label");i&&U(i,s[this._sortMode])}destroy(){this.closeMenu()}},ea=`
1082
1099
  /* ============================
1083
1100
  Sort Controls Container
1084
1101
  ============================ */
@@ -1383,7 +1400,7 @@
1383
1400
  transition: none;
1384
1401
  }
1385
1402
  }
1386
- `;var ln={"stats.open":"Open","stats.resolved":"Resolved","stats.bugs":"Bugs","stats.progress":"{percent}% resolved"},pn={"stats.open":"Ouverts","stats.resolved":"R\xE9solus","stats.bugs":"Bugs","stats.progress":"{percent}% r\xE9solus"},Qt=`
1403
+ `;var FB={"stats.open":"Open","stats.resolved":"Resolved","stats.bugs":"Bugs","stats.progress":"{percent}% resolved"},yB={"stats.open":"Ouverts","stats.resolved":"R\xE9solus","stats.bugs":"Bugs","stats.progress":"{percent}% r\xE9solus"},ta=`
1387
1404
  .sp-stats-bar {
1388
1405
  display: flex;
1389
1406
  flex-direction: column;
@@ -1466,7 +1483,7 @@
1466
1483
  min-width: 64px;
1467
1484
  text-align: right;
1468
1485
  }
1469
- `,ge=class{constructor(e,t){this.colors=e;this.i18n=t==="fr"?pn:ln,this.element=l("div",{class:"sp-stats-bar"}),this.element.setAttribute("aria-label","Feedback statistics"),this.element.hidden=!0;let s=l("div",{class:"sp-stats-row"}),o=l("div",{class:"sp-stats-item"}),i=l("span",{class:"sp-stats-dot"});i.style.background="#22c55e",this.valueOpen=l("span",{class:"sp-stats-value"}),c(this.valueOpen,"0");let r=l("span",{class:"sp-stats-label"});c(r,this.i18n["stats.open"]),o.appendChild(i),o.appendChild(this.valueOpen),o.appendChild(r);let a=l("div",{class:"sp-stats-item"}),p=l("span",{class:"sp-stats-dot"});p.style.background="#9ca3af",this.valueResolved=l("span",{class:"sp-stats-value"}),c(this.valueResolved,"0");let d=l("span",{class:"sp-stats-label"});c(d,this.i18n["stats.resolved"]),a.appendChild(p),a.appendChild(this.valueResolved),a.appendChild(d);let u=l("div",{class:"sp-stats-item"}),h=l("span",{class:"sp-stats-dot"});h.style.background=this.colors.typeBug,this.valueBugs=l("span",{class:"sp-stats-value"}),c(this.valueBugs,"0");let b=l("span",{class:"sp-stats-label"});c(b,this.i18n["stats.bugs"]),u.appendChild(h),u.appendChild(this.valueBugs),u.appendChild(b),s.appendChild(o),s.appendChild(a),s.appendChild(u);let f=l("div",{class:"sp-stats-progress"}),k=l("div",{class:"sp-stats-progress-track"});this.progressFill=l("div",{class:"sp-stats-progress-fill"}),k.appendChild(this.progressFill),this.progressLabel=l("span",{class:"sp-stats-progress-label"}),c(this.progressLabel,""),f.appendChild(k),f.appendChild(this.progressLabel),this.element.appendChild(s),this.element.appendChild(f)}colors;element;valueOpen;valueResolved;valueBugs;progressFill;progressLabel;i18n;update(e,t){if(t===0){this.element.hidden=!0;return}this.element.hidden=!1;let s=0,o=0,i=0;for(let d of e)d.status==="open"&&s++,d.status==="resolved"&&o++,d.type==="bug"&&i++;c(this.valueOpen,String(s)),c(this.valueResolved,String(o)),c(this.valueBugs,String(i));let r=e.length,a=r>0?Math.round(o/r*100):0;requestAnimationFrame(()=>{this.progressFill.style.width=`${a}%`});let p=this.i18n["stats.progress"].replace("{percent}",String(a));c(this.progressLabel,p)}};var dn='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="M6 8h.01"/><path d="M10 8h.01"/><path d="M14 8h.01"/><path d="M18 8h.01"/><path d="M6 12h.01"/><path d="M18 12h.01"/><path d="M8 16h8"/></svg>',je={"shortcuts.title":"Keyboard shortcuts","shortcuts.navigate":"Navigate feedbacks","shortcuts.resolve":"Resolve / Reopen","shortcuts.delete":"Delete","shortcuts.search":"Focus search","shortcuts.select":"Toggle selection","shortcuts.help":"Show shortcuts","shortcuts.close":"Close","shortcuts.hint":"Keyboard shortcuts"},Jt={"shortcuts.title":"Raccourcis clavier","shortcuts.navigate":"Naviguer les feedbacks","shortcuts.resolve":"R\xE9soudre / Rouvrir","shortcuts.delete":"Supprimer","shortcuts.search":"Rechercher","shortcuts.select":"S\xE9lectionner","shortcuts.help":"Raccourcis","shortcuts.close":"Fermer","shortcuts.hint":"Raccourcis clavier"};function ze(n){let e=n.querySelectorAll(".sp-card");for(let t=0;t<e.length;t++)if(e[t]?.classList.contains("sp-card--focused"))return t;return-1}function Zt(n,e){let t=n.querySelectorAll(".sp-card");if(t.length===0)return;for(let i of t)i.classList.remove("sp-card--focused");let s=Math.max(0,Math.min(e,t.length-1)),o=t[s];o&&(o.classList.add("sp-card--focused"),o.scrollIntoView({block:"nearest",behavior:"smooth"}),o.focus({preventScroll:!0}))}var cn=[{keys:["J","K"],label:"shortcuts.navigate"},{keys:["R"],label:"shortcuts.resolve"},{keys:["D"],label:"shortcuts.delete"},{keys:["F","/"],label:"shortcuts.search"},{keys:["X"],label:"shortcuts.select"},{keys:["?"],label:"shortcuts.help"},{keys:["Esc"],label:"shortcuts.close"}],es=`
1486
+ `,mr=class{constructor(s,i){this.colors=s;this.i18n=i==="fr"?yB:FB,this.element=b("div",{class:"sp-stats-bar"}),this.element.setAttribute("aria-label","Feedback statistics"),this.element.hidden=!0;let o=b("div",{class:"sp-stats-row"}),c=b("div",{class:"sp-stats-item"}),d=b("span",{class:"sp-stats-dot"});d.style.background="#22c55e",this.valueOpen=b("span",{class:"sp-stats-value"}),U(this.valueOpen,"0");let h=b("span",{class:"sp-stats-label"});U(h,this.i18n["stats.open"]),c.appendChild(d),c.appendChild(this.valueOpen),c.appendChild(h);let f=b("div",{class:"sp-stats-item"}),C=b("span",{class:"sp-stats-dot"});C.style.background="#9ca3af",this.valueResolved=b("span",{class:"sp-stats-value"}),U(this.valueResolved,"0");let Q=b("span",{class:"sp-stats-label"});U(Q,this.i18n["stats.resolved"]),f.appendChild(C),f.appendChild(this.valueResolved),f.appendChild(Q);let v=b("div",{class:"sp-stats-item"}),y=b("span",{class:"sp-stats-dot"});y.style.background=this.colors.typeBug,this.valueBugs=b("span",{class:"sp-stats-value"}),U(this.valueBugs,"0");let T=b("span",{class:"sp-stats-label"});U(T,this.i18n["stats.bugs"]),v.appendChild(y),v.appendChild(this.valueBugs),v.appendChild(T),o.appendChild(c),o.appendChild(f),o.appendChild(v);let O=b("div",{class:"sp-stats-progress"}),G=b("div",{class:"sp-stats-progress-track"});this.progressFill=b("div",{class:"sp-stats-progress-fill"}),G.appendChild(this.progressFill),this.progressLabel=b("span",{class:"sp-stats-progress-label"}),U(this.progressLabel,""),O.appendChild(G),O.appendChild(this.progressLabel),this.element.appendChild(o),this.element.appendChild(O)}colors;element;valueOpen;valueResolved;valueBugs;progressFill;progressLabel;i18n;update(s,i){if(i===0){this.element.hidden=!0;return}this.element.hidden=!1;let o=0,c=0,d=0;for(let Q of s)Q.status==="open"&&o++,Q.status==="resolved"&&c++,Q.type==="bug"&&d++;U(this.valueOpen,String(o)),U(this.valueResolved,String(c)),U(this.valueBugs,String(d));let h=s.length,f=h>0?Math.round(c/h*100):0;requestAnimationFrame(()=>{this.progressFill.style.width=`${f}%`});let C=this.i18n["stats.progress"].replace("{percent}",String(f));U(this.progressLabel,C)}};var UB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="M6 8h.01"/><path d="M10 8h.01"/><path d="M14 8h.01"/><path d="M18 8h.01"/><path d="M6 12h.01"/><path d="M18 12h.01"/><path d="M8 16h8"/></svg>',Ns={"shortcuts.title":"Keyboard shortcuts","shortcuts.navigate":"Navigate feedbacks","shortcuts.resolve":"Resolve / Reopen","shortcuts.delete":"Delete","shortcuts.search":"Focus search","shortcuts.select":"Toggle selection","shortcuts.help":"Show shortcuts","shortcuts.close":"Close","shortcuts.hint":"Keyboard shortcuts"},ra={"shortcuts.title":"Raccourcis clavier","shortcuts.navigate":"Naviguer les feedbacks","shortcuts.resolve":"R\xE9soudre / Rouvrir","shortcuts.delete":"Supprimer","shortcuts.search":"Rechercher","shortcuts.select":"S\xE9lectionner","shortcuts.help":"Raccourcis","shortcuts.close":"Fermer","shortcuts.hint":"Raccourcis clavier"};function Ps(l){let s=l.querySelectorAll(".sp-card");for(let i=0;i<s.length;i++)if(s[i]?.classList.contains("sp-card--focused"))return i;return-1}function sa(l,s){let i=l.querySelectorAll(".sp-card");if(i.length===0)return;for(let d of i)d.classList.remove("sp-card--focused");let o=Math.max(0,Math.min(s,i.length-1)),c=i[o];c&&(c.classList.add("sp-card--focused"),c.scrollIntoView({block:"nearest",behavior:"smooth"}),c.focus({preventScroll:!0}))}var xB=[{keys:["J","K"],label:"shortcuts.navigate"},{keys:["R"],label:"shortcuts.resolve"},{keys:["D"],label:"shortcuts.delete"},{keys:["F","/"],label:"shortcuts.search"},{keys:["X"],label:"shortcuts.select"},{keys:["?"],label:"shortcuts.help"},{keys:["Esc"],label:"shortcuts.close"}],na=`
1470
1487
  /* ---- Help overlay backdrop ---- */
1471
1488
 
1472
1489
  .sp-shortcuts-overlay {
@@ -1693,7 +1710,7 @@
1693
1710
  transition-duration: 0.01ms !important;
1694
1711
  }
1695
1712
  }
1696
- `,un='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',me=class{constructor(e,t,s=je){this.i18n=s;this.keyMap=new Map([["j",()=>t.onNavigate("down")],["k",()=>t.onNavigate("up")],["r",()=>t.onResolve()],["d",()=>t.onDelete()],["f",()=>t.onFocusSearch()],["/",()=>t.onFocusSearch()],["x",()=>t.onToggleSelect()],["?",()=>this.toggleHelp()]]),this.helpOverlay=this.buildOverlay(),this.hintButton=this.buildHintButton(),this.boundHandler=o=>this.handleKeydown(o)}i18n;helpOverlay;hintButton;keyMap;boundHandler;shadowRoot=null;enabled=!1;helpVisible=!1;destroyed=!1;enable(e){if(this.destroyed||this.enabled)return;e&&(this.shadowRoot=e),(this.shadowRoot??document).addEventListener("keydown",this.boundHandler),this.enabled=!0}disable(){if(!this.enabled)return;(this.shadowRoot??document).removeEventListener("keydown",this.boundHandler),this.enabled=!1,this.helpVisible&&this.hideHelp()}toggleHelp(){this.helpVisible?this.hideHelp():this.showHelp()}destroy(){this.destroyed||(this.disable(),this.helpOverlay.remove(),this.hintButton.remove(),this.destroyed=!0)}handleKeydown(e){if(e.key==="Escape"){this.helpVisible&&(e.preventDefault(),e.stopPropagation(),this.hideHelp());return}if(this.helpVisible)return;let t=e.composedPath()[0];if(t){let o=t.tagName?.toLowerCase();if(o==="input"||o==="textarea"||o==="select"||t.isContentEditable)return}if(e.ctrlKey||e.altKey||e.metaKey)return;let s=this.keyMap.get(e.key);s&&(e.preventDefault(),e.stopPropagation(),s())}showHelp(){this.helpVisible=!0,this.helpOverlay.classList.add("sp-shortcuts-overlay--visible"),this.helpOverlay.querySelector(".sp-shortcuts-close")?.focus()}hideHelp(){this.helpVisible=!1,this.helpOverlay.classList.remove("sp-shortcuts-overlay--visible")}buildOverlay(){let e=l("div",{class:"sp-shortcuts-overlay"});e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-label",this.i18n["shortcuts.title"]),e.addEventListener("click",a=>{a.target===e&&this.hideHelp()});let t=l("div",{class:"sp-shortcuts-card"}),s=l("div",{class:"sp-shortcuts-title"});s.appendChild(v(dn));let o=l("span");c(o,this.i18n["shortcuts.title"]),s.appendChild(o),t.appendChild(s);let i=document.createElement("button");i.className="sp-shortcuts-close",i.setAttribute("aria-label",this.i18n["shortcuts.close"]),i.appendChild(v(un)),i.addEventListener("click",()=>this.hideHelp()),t.appendChild(i);let r=l("div",{class:"sp-shortcuts-grid"});for(let a of cn){let p=l("div",{class:"sp-shortcuts-row"}),d=l("div",{class:"sp-shortcuts-keys"});a.keys.forEach((h,b)=>{if(b>0){let k=l("span",{class:"sp-shortcuts-separator"});c(k,"/"),d.appendChild(k)}let f=l("span",{class:"sp-kbd"});c(f,h),d.appendChild(f)});let u=l("span",{class:"sp-shortcuts-desc"});c(u,this.i18n[a.label]),p.appendChild(d),p.appendChild(u),r.appendChild(p)}return t.appendChild(r),e.appendChild(t),e}buildHintButton(){let e=document.createElement("button");return e.className="sp-shortcuts-hint",e.setAttribute("aria-label",this.i18n["shortcuts.hint"]),c(e,"?"),e.addEventListener("click",t=>{t.stopPropagation(),this.toggleHelp()}),e}};var fe=class{constructor(e,t,s,o,i,r,a,p){this.colors=t;this.bus=s;this.client=o;this.projectName=i;this.markers=r;this.t=a;this.locale=p;this.shadowRoot=e,this.bulkI18n=p==="fr"?_e:De,this.root=l("div",{class:"sp-panel"}),this.root.setAttribute("role","complementary"),this.root.setAttribute("aria-label",this.t("panel.ariaLabel")),this.root.setAttribute("aria-hidden","true");let d=l("div",{class:"sp-panel-header"}),u=l("span",{class:"sp-panel-title"});c(u,this.t("panel.title")),this.closeBtn=document.createElement("button"),this.closeBtn.className="sp-panel-close",this.closeBtn.setAttribute("aria-label",this.t("panel.close")),this.closeBtn.appendChild(v(G)),this.closeBtn.addEventListener("click",()=>this.close()),this.deleteAllBtn=document.createElement("button"),this.deleteAllBtn.className="sp-btn-delete-all",this.deleteAllBtn.setAttribute("aria-label",this.t("panel.deleteAll")),this.deleteAllBtn.appendChild(v(Be));let h=document.createElement("span");c(h,` ${this.t("panel.deleteAll")}`),this.deleteAllBtn.appendChild(h),this.deleteAllBtn.addEventListener("click",()=>this.confirmDeleteAll()),this.exportBtn=new de(t,()=>this.feedbacks),p==="fr"&&this.exportBtn.setLabels(Dt);let b=l("div",{class:"sp-panel-header-right"});b.appendChild(this.exportBtn.element),b.appendChild(this.deleteAllBtn),b.appendChild(this.closeBtn),d.appendChild(u),d.appendChild(b),this.stats=new ge(t,p);let f=l("div",{class:"sp-filters"}),k=l("div",{class:"sp-search-wrap"}),w=v(pt);w.setAttribute("class","sp-search-icon"),this.searchInput=document.createElement("input"),this.searchInput.type="text",this.searchInput.className="sp-search",this.searchInput.placeholder=this.t("panel.search"),this.searchInput.setAttribute("aria-label",this.t("panel.searchAria")),this.searchInput.addEventListener("input",()=>{this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>this.loadFeedbacks().catch(()=>{}),200)}),k.appendChild(w),k.appendChild(this.searchInput);let E=l("div",{class:"sp-filter-bar"});E.appendChild(this.buildTypeDropdown()),E.appendChild(this.buildStatusSegmented()),this.sortControls=new be(t,()=>this.renderList(),p),f.appendChild(k),f.appendChild(E),f.appendChild(this.sortControls.element),this.listContainer=l("div",{class:"sp-list"}),this.listContainer.setAttribute("role","list"),this.listContainer.setAttribute("aria-label",this.t("panel.feedbackList")),this.bulk=new ue(t,{onResolve:g=>this.bulkResolve(g),onDelete:g=>this.bulkDelete(g)},p),this.bulk.setListContainer(this.listContainer),this.detail=new he(t,{onBack:()=>this.detail.hide(),onResolve:async g=>{let x=g.status!=="resolved";await this.client.resolveFeedback(g.id,x),await this.loadFeedbacks(),this.detail.hide()},onDelete:async g=>{await this.client.deleteFeedback(g.id),this.bus.emit("feedback:deleted",g.id),await this.loadFeedbacks(),this.detail.hide()},onGoToAnnotation:g=>{if(g.annotations.length>0){let x=g.annotations[0];if(!x)return;window.scrollTo({left:x.scrollX,top:x.scrollY,behavior:"smooth"}),this.markers.pinHighlight(g)}}},p);let C=p==="fr"?Jt:je;this.shortcuts=new me(t,{onNavigate:g=>{let x=ze(this.listContainer);Zt(this.listContainer,g==="down"?x+1:x-1)},onResolve:()=>{let g=this.getFocusedFeedback();if(g&&!this.pendingMutations.has(g.id)){let y=this.listContainer.querySelector(`[data-feedback-id="${CSS.escape(g.id)}"]`)?.querySelector('[data-action="resolve"]');y&&this.toggleResolve(g,y).catch(()=>{})}},onDelete:()=>{let g=this.getFocusedFeedback();if(g&&!this.pendingMutations.has(g.id)){let y=this.listContainer.querySelector(`[data-feedback-id="${CSS.escape(g.id)}"]`)?.querySelector('[data-action="delete"]');y&&this.deleteFeedback(g,y).catch(()=>{})}},onFocusSearch:()=>this.searchInput.focus(),onToggleSelect:()=>{let g=this.getFocusedFeedback();g&&this.bulk.toggle(g.id)}},C),this.root.appendChild(d),this.root.appendChild(this.stats.element),this.root.appendChild(f),this.root.appendChild(this.listContainer),this.root.appendChild(this.bulk.barElement),this.root.appendChild(this.detail.element),this.root.appendChild(this.shortcuts.helpOverlay),this.root.appendChild(this.shortcuts.hintButton),e.appendChild(this.root),this.onListClick=g=>{let x=g.target;if(x.closest(".sp-bulk-checkbox"))return;let y=x.closest("[data-action]");if(y){g.stopPropagation();let T=y.closest(".sp-card");if(!T)return;let A=T.dataset.feedbackId,S=this.feedbacks.find(B=>B.id===A);if(!S)return;let L=y.dataset.action;if(L==="expand"){let B=T.querySelector(".sp-card-message");if(!B)return;let K=B.classList.toggle("sp-card-message--expanded");c(y,K?this.t("panel.showLess"):this.t("panel.showMore")),y.setAttribute("aria-expanded",String(K))}else if(L==="resolve"){if(this.pendingMutations.has(S.id))return;let B=y;this.toggleResolve(S,B).catch(()=>{})}else if(L==="delete"){if(this.pendingMutations.has(S.id))return;let B=y;this.deleteFeedback(S,B).catch(()=>{})}return}let m=x.closest(".sp-card");if(m){let T=m.dataset.feedbackId,A=this.feedbacks.find(S=>S.id===T);if(A){let S=this.feedbacks.indexOf(A)+1;this.detail.show(A,S)}}},this.listContainer.addEventListener("click",this.onListClick),this.onListKeydown=g=>{let x=g;if(x.key!=="Enter"&&x.key!==" ")return;let y=x.target,m=y.closest(".sp-card");if(!m||y!==m)return;x.preventDefault();let T=m.dataset.feedbackId,A=this.feedbacks.find(S=>S.id===T);if(A){let S=this.feedbacks.indexOf(A)+1;this.detail.show(A,S)}},this.listContainer.addEventListener("keydown",this.onListKeydown),this.onListMouseover=g=>{let y=g.target.closest(".sp-card");if(!y)return;let m=y.dataset.feedbackId;m&&this.markers.highlight(m)},this.listContainer.addEventListener("mouseover",this.onListMouseover),this.onListMouseout=g=>{let x=g.relatedTarget;x&&this.listContainer.contains(x)||this.markers.highlight("")},this.listContainer.addEventListener("mouseout",this.onListMouseout),this.bus.on("panel:toggle",g=>{g?this.open():this.close()}),e.addEventListener("keydown",g=>{let x=g;if(x.key==="Escape"&&this.isOpen){if(this.detail.isVisible){this.detail.hide();return}this.close();return}if(x.key==="Tab"&&this.isOpen){let y=this.root.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(y.length===0)return;let m=y[0],T=y[y.length-1];if(!m||!T)return;let A=e.activeElement;x.shiftKey&&A===m?(x.preventDefault(),T.focus()):!x.shiftKey&&A===T&&(x.preventDefault(),m.focus())}}),this.onMarkerClick=(g=>{this.scrollToFeedback(g.detail.feedbackId)}),document.addEventListener("sp-marker-click",this.onMarkerClick)}colors;bus;client;projectName;markers;t;locale;root;listContainer;searchInput;closeBtn;deleteAllBtn;activeFilters=new Set(["all"]);activeStatusFilter="all";typeDropdownBtn;typeDropdownContainer;typeDropdownMenu=null;typeDropdownOutsideHandler=null;statusSegmented;typeOptions;statusOptions;feedbacks=[];currentPage=1;totalFeedbacks=0;isLoadingMore=!1;isOpen=!1;searchTimeout=null;loadController=null;pendingMutations=new Set;stats;sortControls;bulk;exportBtn;shortcuts;detail;shadowRoot;bulkI18n;onMarkerClick;onListClick;onListKeydown;onListMouseover;onListMouseout;async open(){this.isOpen||(this.isOpen=!0,this.root.classList.add("sp-panel--open"),this.root.setAttribute("aria-hidden","false"),this.bus.emit("open"),this.shortcuts.enable(this.shadowRoot),await this.loadFeedbacks(),requestAnimationFrame(()=>{this.searchInput?this.searchInput.focus():this.closeBtn.focus()}))}close(){if(!this.isOpen)return;this.isOpen=!1,this.root.classList.remove("sp-panel--open"),this.root.setAttribute("aria-hidden","true"),this.bus.emit("close"),this.shortcuts.disable(),this.detail.hide(),this.root.getRootNode().querySelector(".sp-fab")?.focus()}showLoading(){this.listContainer.replaceChildren();let e=l("div",{class:"sp-loading"});e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-label",this.t("panel.loading"));let t=l("div",{class:"sp-spinner"});e.appendChild(t),this.listContainer.appendChild(e)}showError(){this.listContainer.replaceChildren();let e=l("div",{class:"sp-empty"});e.setAttribute("role","status"),e.setAttribute("aria-live","polite");let t=l("div",{class:"sp-empty-text"});c(t,this.t("panel.loadError"));let s=document.createElement("button");s.className="sp-btn-ghost",s.style.marginTop="8px",c(s,this.t("panel.retry")),s.addEventListener("click",()=>this.loadFeedbacks().catch(()=>{})),e.appendChild(t),e.appendChild(s),this.listContainer.appendChild(e)}async loadFeedbacks(){this.loadController?.abort(),this.loadController=new AbortController;let{signal:e}=this.loadController;this.currentPage=1;let t=this.searchInput.value.trim()||void 0,s=this.activeFilters.has("all")?void 0:Array.from(this.activeFilters)[0],o=this.activeStatusFilter==="all"?void 0:this.activeStatusFilter,i={page:1,limit:20};s&&(i.type=s),o&&(i.status=o),t&&(i.search=t);let r=this.feedbacks.length>0;r||this.showLoading();try{let{feedbacks:a,total:p}=await this.client.getFeedbacks(this.projectName,i);if(e.aborted)return;this.feedbacks=a,this.totalFeedbacks=p,this.stats.update(a,p),this.bulk.reset(),this.renderList(),this.markers.render(a)}catch(a){if(e.aborted)return;r||this.showError(),this.bus.emit("feedback:error",a instanceof Error?a:new Error(String(a)))}}async loadMoreFeedbacks(){if(this.isLoadingMore)return;this.isLoadingMore=!0;let e=this.loadController,t=this.currentPage+1,s=this.searchInput.value.trim()||void 0,o=this.activeFilters.has("all")?void 0:Array.from(this.activeFilters)[0],i=this.activeStatusFilter==="all"?void 0:this.activeStatusFilter,r={page:t,limit:20};o&&(r.type=o),i&&(r.status=i),s&&(r.search=s);let a=this.listContainer.querySelector(".sp-btn-load-more"),p;a&&(p=this.setButtonLoading(a));try{let{feedbacks:d,total:u}=await this.client.getFeedbacks(this.projectName,r);if(e!==this.loadController)return;this.currentPage=t,this.totalFeedbacks=u,this.feedbacks=[...this.feedbacks,...d],this.stats.update(this.feedbacks,u),this.renderList(),this.markers.render(this.feedbacks)}catch(d){p&&p(),this.bus.emit("feedback:error",d instanceof Error?d:new Error(String(d)))}finally{this.isLoadingMore=!1}}renderList(){if(this.listContainer.replaceChildren(),this.feedbacks.length===0){let i=l("div",{class:"sp-empty"});i.setAttribute("role","status"),i.setAttribute("aria-live","polite");let r=l("div",{class:"sp-empty-text"});c(r,this.t("panel.empty")),i.appendChild(r),this.listContainer.appendChild(i);return}let e=Wt(this.feedbacks,this.sortControls.sortMode),t=e.map(i=>i.id),s=this.bulk.createSelectAllBar(t,this.bulkI18n["bulk.selectAll"]);if(this.listContainer.appendChild(s),this.sortControls.groupByPage){let i=Xt(e),r=0;for(let[a,p]of i){let d=Vt(a,p.length,this.colors);this.listContainer.appendChild(d);let u=l("div",{class:"sp-group-content"});for(let h of p){let b=this.createCard(h,r+1);b.style.setProperty("--sp-card-i",String(r)),u.appendChild(b),r++}this.listContainer.appendChild(u)}}else e.forEach((i,r)=>{let a=this.createCard(i,r+1);a.style.setProperty("--sp-card-i",String(r)),this.listContainer.appendChild(a)});let o=this.totalFeedbacks-this.feedbacks.length;if(o>0){let i=l("div",{class:"sp-load-more-wrap"}),r=document.createElement("button");r.className="sp-btn-ghost sp-btn-load-more",c(r,this.t("panel.loadMore").replace("{remaining}",String(o))),r.addEventListener("click",()=>this.loadMoreFeedbacks().catch(()=>{})),i.appendChild(r),this.listContainer.appendChild(i)}}createCard(e,t){let s=e.status==="resolved",o=M(e.type,this.colors),i=l("div",{class:`sp-card ${s?"sp-card--resolved":""}`});i.setAttribute("role","listitem"),i.setAttribute("tabindex","0"),i.setAttribute("aria-label",`Feedback #${t}: ${N(e.type,this.t)} \u2014 ${e.message.slice(0,80)}`),i.dataset.feedbackId=e.id;let r=l("div",{class:"sp-card-bar"});r.style.background=s?"#9ca3af":o;let a=l("div",{class:"sp-card-body"}),p=l("div",{class:"sp-card-header"}),d=this.bulk.createCheckbox(e.id);p.appendChild(d);let u=l("span",{class:"sp-card-number"});c(u,`#${t}`);let h=l("span",{class:"sp-badge"}),b=P(e.type,this.colors);h.style.background=b,h.style.color=o,c(h,N(e.type,this.t));let f=l("span",{class:"sp-card-date"});c(f,V(e.createdAt,this.locale)),p.appendChild(u),p.appendChild(h),p.appendChild(f);let k=l("div",{class:"sp-card-message"});c(k,e.message);let w=document.createElement("button");w.className="sp-card-expand",w.dataset.action="expand",c(w,this.t("panel.showMore")),w.style.display="none",w.setAttribute("aria-expanded","false"),requestAnimationFrame(()=>{k.scrollHeight>k.clientHeight&&(w.style.display="block")});let E=l("div",{class:"sp-card-footer"}),C=document.createElement("button");if(C.className="sp-btn-resolve",C.dataset.action="resolve",s){C.appendChild(v(ut));let y=document.createElement("span");c(y,` ${this.t("panel.reopen")}`),C.appendChild(y)}else{C.appendChild(v(Q));let y=document.createElement("span");c(y,` ${this.t("panel.resolve")}`),C.appendChild(y)}let g=document.createElement("button");g.className="sp-btn-delete",g.dataset.action="delete",g.appendChild(v(Be));let x=document.createElement("span");return c(x,` ${this.t("panel.delete")}`),g.appendChild(x),E.appendChild(C),E.appendChild(g),a.appendChild(p),a.appendChild(k),a.appendChild(w),a.appendChild(E),i.appendChild(r),i.appendChild(a),i}async bulkResolve(e){try{await Promise.all(e.map(t=>this.client.resolveFeedback(t,!0))),await this.loadFeedbacks()}catch(t){throw this.bus.emit("feedback:error",t instanceof Error?t:new Error(String(t))),t}}async bulkDelete(e){try{await Promise.all(e.map(t=>this.client.deleteFeedback(t)));for(let t of e)this.bus.emit("feedback:deleted",t);await this.loadFeedbacks()}catch(t){throw this.bus.emit("feedback:error",t instanceof Error?t:new Error(String(t))),t}}async confirmDeleteAll(){if(await this.showConfirmDialog(this.t("panel.deleteAllConfirmTitle"),this.t("panel.deleteAllConfirmMessage"))){this.deleteAllBtn.disabled=!0;try{await this.client.deleteAllFeedbacks(this.projectName),this.bus.emit("feedback:all-deleted"),await this.loadFeedbacks()}catch(t){this.bus.emit("feedback:error",t instanceof Error?t:new Error(String(t)))}finally{this.deleteAllBtn.disabled=!1}}}showConfirmDialog(e,t){return new Promise(s=>{let o=l("div",{class:"sp-confirm-backdrop"}),i=`sp-confirm-title-${Date.now()}`,r=`sp-confirm-msg-${Date.now()}`,a=l("div",{class:"sp-confirm-dialog"});a.setAttribute("role","alertdialog"),a.setAttribute("aria-modal","true"),a.setAttribute("aria-labelledby",i),a.setAttribute("aria-describedby",r);let p=l("div",{class:"sp-confirm-title"});p.id=i,c(p,e);let d=l("div",{class:"sp-confirm-message"});d.id=r,c(d,t);let u=l("div",{class:"sp-confirm-actions"}),h=document.createElement("button");h.type="button",h.className="sp-btn-ghost",c(h,this.t("panel.cancel"));let b=document.createElement("button");b.type="button",b.className="sp-btn-danger",c(b,this.t("panel.confirmDelete"));let f=!1,k=E=>{f||(f=!0,o.removeEventListener("keydown",w),o.style.opacity="0",a.style.transform="translateY(8px) scale(0.97)",setTimeout(()=>{o.remove(),s(E)},200))},w=E=>{let C=E;if(C.key==="Escape"){k(!1);return}C.key==="Tab"&&(C.preventDefault(),o.getRootNode().activeElement===h?b.focus():h.focus())};o.addEventListener("keydown",w),h.addEventListener("click",()=>k(!1)),b.addEventListener("click",()=>k(!0)),o.addEventListener("click",E=>{E.target===o&&k(!1)}),u.appendChild(h),u.appendChild(b),a.appendChild(p),a.appendChild(d),a.appendChild(u),o.appendChild(a),this.root.getRootNode()instanceof ShadowRoot?this.root.getRootNode().appendChild(o):this.root.appendChild(o),requestAnimationFrame(()=>{o.style.opacity="1",a.style.transform="translateY(0) scale(1)",h.focus()})})}setButtonLoading(e){let t=Array.from(e.childNodes).map(s=>s.cloneNode(!0));return e.disabled=!0,e.replaceChildren(l("div",{class:"sp-spinner sp-spinner--sm"})),()=>{e.replaceChildren(...t),e.disabled=!1}}async deleteFeedback(e,t){this.pendingMutations.add(e.id);let s=this.setButtonLoading(t);try{await this.client.deleteFeedback(e.id),this.bus.emit("feedback:deleted",e.id),await this.loadFeedbacks()}catch(o){s(),this.bus.emit("feedback:error",o instanceof Error?o:new Error(String(o)))}finally{this.pendingMutations.delete(e.id)}}async toggleResolve(e,t){this.pendingMutations.add(e.id);let s=this.setButtonLoading(t);try{let o=e.status!=="resolved";await this.client.resolveFeedback(e.id,o),await this.loadFeedbacks()}catch(o){s(),this.bus.emit("feedback:error",o instanceof Error?o:new Error(String(o)))}finally{this.pendingMutations.delete(e.id)}}buildTypeDropdown(){return this.typeOptions=[{value:"all",label:this.t("panel.filterAll"),icon:Me,color:this.colors.accent,bg:this.colors.accentLight},{value:"question",label:this.t("type.question"),icon:J,color:this.colors.typeQuestion,bg:this.colors.typeQuestionBg},{value:"change",label:this.t("type.change"),icon:Z,color:this.colors.typeChange,bg:this.colors.typeChangeBg},{value:"bug",label:this.t("type.bug"),icon:ee,color:this.colors.typeBug,bg:this.colors.typeBugBg},{value:"other",label:this.t("type.other"),icon:te,color:this.colors.typeOther,bg:this.colors.typeOtherBg}],this.typeDropdownContainer=l("div",{class:"sp-filter-dropdown"}),this.typeDropdownBtn=document.createElement("button"),this.typeDropdownBtn.type="button",this.typeDropdownBtn.className="sp-filter-dropdown-btn",this.typeDropdownBtn.setAttribute("aria-haspopup","listbox"),this.typeDropdownBtn.setAttribute("aria-expanded","false"),this.renderTypeDropdownTrigger(),this.typeDropdownBtn.addEventListener("click",e=>{e.stopPropagation(),this.typeDropdownMenu?this.closeTypeDropdown():this.openTypeDropdown()}),this.typeDropdownContainer.appendChild(this.typeDropdownBtn),this.typeDropdownContainer}renderTypeDropdownTrigger(){let e=this.typeOptions.find(a=>this.activeFilters.has(a.value))??this.typeOptions[0];if(!e)return;this.typeDropdownBtn.replaceChildren(),this.typeDropdownBtn.style.setProperty("--sp-chip-color",e.color),this.typeDropdownBtn.style.setProperty("--sp-chip-bg",e.bg),this.typeDropdownBtn.dataset.filter=e.value,this.typeDropdownBtn.classList.toggle("sp-filter-dropdown-btn--filtered",e.value!=="all"),this.typeDropdownBtn.setAttribute("aria-label",`${this.t("type.label")}: ${e.label}`);let t=l("span",{class:"sp-filter-dropdown-btn__icon"});t.appendChild(v(e.icon)),this.typeDropdownBtn.appendChild(t);let s=l("span",{class:"sp-filter-dropdown-btn__label"}),o=l("span",{class:"sp-filter-dropdown-btn__prefix"});c(o,this.t("type.label"));let i=l("span",{class:"sp-filter-dropdown-btn__value"});c(i,e.label),s.appendChild(o),s.appendChild(i),this.typeDropdownBtn.appendChild(s);let r=l("span",{class:"sp-filter-dropdown-btn__chevron"});r.appendChild(v(ct)),this.typeDropdownBtn.appendChild(r)}openTypeDropdown(){this.typeDropdownMenu=l("div",{class:"sp-filter-dropdown-menu"}),this.typeDropdownMenu.setAttribute("role","listbox"),this.typeDropdownMenu.setAttribute("aria-label",this.t("type.label")),this.typeDropdownBtn.setAttribute("aria-expanded","true");for(let e of this.typeOptions){let t=document.createElement("button");t.type="button";let s=this.activeFilters.has(e.value);t.className=`sp-filter-dropdown-option${s?" sp-filter-dropdown-option--active":""}`,t.style.setProperty("--sp-chip-color",e.color),t.style.setProperty("--sp-chip-bg",e.bg),t.dataset.filter=e.value,t.setAttribute("role","option"),t.setAttribute("aria-selected",String(s));let o=l("span",{class:"sp-filter-dropdown-option__icon"});o.appendChild(v(e.icon)),t.appendChild(o);let i=l("span",{class:"sp-filter-dropdown-option__label"});if(c(i,e.label),t.appendChild(i),s){let r=l("span",{class:"sp-filter-dropdown-option__check"});r.appendChild(v(Q)),t.appendChild(r)}t.addEventListener("click",r=>{r.stopPropagation(),this.selectTypeFilter(e.value)}),this.typeDropdownMenu.appendChild(t)}this.typeDropdownContainer.appendChild(this.typeDropdownMenu),requestAnimationFrame(()=>{this.typeDropdownOutsideHandler=e=>{this.typeDropdownMenu&&!this.typeDropdownContainer.contains(e.target)&&this.closeTypeDropdown()},document.addEventListener("click",this.typeDropdownOutsideHandler,!0)}),this.typeDropdownMenu.addEventListener("keydown",e=>{e.key==="Escape"&&(this.closeTypeDropdown(),this.typeDropdownBtn.focus())})}closeTypeDropdown(){this.typeDropdownMenu&&(this.typeDropdownMenu.remove(),this.typeDropdownMenu=null),this.typeDropdownBtn.setAttribute("aria-expanded","false"),this.typeDropdownOutsideHandler&&(document.removeEventListener("click",this.typeDropdownOutsideHandler,!0),this.typeDropdownOutsideHandler=null)}selectTypeFilter(e){this.activeFilters.clear(),this.activeFilters.add(e),this.renderTypeDropdownTrigger(),this.closeTypeDropdown(),this.loadFeedbacks().catch(()=>{})}buildStatusSegmented(){this.statusOptions=[{value:"all",label:this.t("panel.statusAll"),icon:Me,color:this.colors.accent,bg:this.colors.accentLight},{value:"open",label:this.t("panel.statusOpen"),icon:dt,color:this.colors.statusOpen,bg:this.colors.statusOpenBg},{value:"resolved",label:this.t("panel.statusResolved"),icon:Q,color:this.colors.statusResolved,bg:this.colors.statusResolvedBg}],this.statusSegmented=l("div",{class:"sp-segmented",role:"radiogroup"}),this.statusSegmented.setAttribute("aria-label",this.t("status.label"));for(let e of this.statusOptions){let t=document.createElement("button");t.type="button",t.className=`sp-segmented__btn sp-segmented__btn--${e.value}`,t.dataset.statusFilter=e.value,t.setAttribute("role","radio");let s=this.activeStatusFilter===e.value;t.setAttribute("aria-checked",String(s)),t.tabIndex=s?0:-1,s&&t.classList.add("sp-segmented__btn--active"),t.style.setProperty("--sp-chip-color",e.color),t.style.setProperty("--sp-chip-bg",e.bg);let o=l("span",{class:"sp-segmented__icon"});o.appendChild(v(e.icon)),t.appendChild(o);let i=l("span",{class:"sp-segmented__label"});c(i,e.label),t.appendChild(i),t.addEventListener("click",()=>this.selectStatusFilter(e.value)),t.addEventListener("keydown",r=>this.handleSegmentedKey(r,e.value)),this.statusSegmented.appendChild(t)}return this.statusSegmented}handleSegmentedKey(e,t){let s=this.statusOptions.map(p=>p.value),o=s.indexOf(t),i;switch(e.key){case"ArrowLeft":i=(o-1+s.length)%s.length;break;case"ArrowRight":i=(o+1)%s.length;break;case"Home":i=0;break;case"End":i=s.length-1;break;default:return}e.preventDefault();let r=s[i];if(!r)return;this.selectStatusFilter(r),this.statusSegmented.querySelector(`[data-status-filter="${r}"]`)?.focus()}selectStatusFilter(e){this.activeStatusFilter=e;let t=this.statusSegmented.querySelectorAll(".sp-segmented__btn");for(let s of t){let o=s.dataset.statusFilter===e;s.classList.toggle("sp-segmented__btn--active",o),s.setAttribute("aria-checked",String(o)),s.tabIndex=o?0:-1}this.loadFeedbacks().catch(()=>{})}getFocusedFeedback(){let e=ze(this.listContainer);if(e<0)return;let t=this.listContainer.querySelectorAll(".sp-card")[e];if(t)return this.feedbacks.find(s=>s.id===t.dataset.feedbackId)}scrollToFeedback(e){let t=CSS.escape(e),s=this.listContainer.querySelector(`[data-feedback-id="${t}"]`);s&&(s.scrollIntoView({behavior:"smooth",block:"center"}),s.classList.add("sp-anim-flash"),s.addEventListener("animationend",()=>{s.classList.remove("sp-anim-flash")},{once:!0}))}async refresh(){this.isOpen&&await this.loadFeedbacks()}destroy(){this.loadController?.abort(),this.searchTimeout&&clearTimeout(this.searchTimeout),this.listContainer.removeEventListener("click",this.onListClick),this.listContainer.removeEventListener("keydown",this.onListKeydown),this.listContainer.removeEventListener("mouseover",this.onListMouseover),this.listContainer.removeEventListener("mouseout",this.onListMouseout),document.removeEventListener("sp-marker-click",this.onMarkerClick),this.closeTypeDropdown(),this.sortControls.destroy(),this.bulk.destroy(),this.exportBtn.destroy(),this.shortcuts.destroy(),this.detail.destroy(),this.root.remove()}};function Ke(n){return{cssSelector:n.anchor.cssSelector,xpath:n.anchor.xpath,textSnippet:n.anchor.textSnippet,elementTag:n.anchor.elementTag,elementId:n.anchor.elementId,textPrefix:n.anchor.textPrefix,textSuffix:n.anchor.textSuffix,fingerprint:n.anchor.fingerprint,neighborText:n.anchor.neighborText,xPct:n.rect.xPct,yPct:n.rect.yPct,wPct:n.rect.wPct,hPct:n.rect.hPct,scrollX:n.scrollX,scrollY:n.scrollY,viewportW:n.viewportW,viewportH:n.viewportH,devicePixelRatio:n.devicePixelRatio}}var ve=class{constructor(e,t){this.store=e;this.projectName=t}store;projectName;async sendFeedback(e){let t=await this.store.createFeedback({projectName:e.projectName,type:e.type,message:e.message,status:"open",url:e.url,viewport:e.viewport,userAgent:e.userAgent,authorName:e.authorName,authorEmail:e.authorEmail,clientId:e.clientId,annotations:e.annotations.map(Ke)});return Ye(t)}async getFeedbacks(e,t){let{feedbacks:s,total:o}=await this.store.getFeedbacks({projectName:e,page:t?.page,limit:t?.limit,type:t?.type,status:t?.status,search:t?.search});return{feedbacks:s.map(Ye),total:o}}async resolveFeedback(e,t){let s=await this.store.updateFeedback(e,{status:t?"resolved":"open",resolvedAt:t?new Date:null});return Ye(s)}async deleteFeedback(e){await this.store.deleteFeedback(e)}async deleteAllFeedbacks(e){await this.store.deleteAllFeedbacks(e)}};function Ye(n){return{id:n.id,projectName:n.projectName,type:n.type,message:n.message,status:n.status,url:n.url,viewport:n.viewport,userAgent:n.userAgent,authorName:n.authorName,authorEmail:n.authorEmail,resolvedAt:n.resolvedAt?.toISOString()??null,createdAt:n.createdAt.toISOString(),updatedAt:n.updatedAt.toISOString(),annotations:n.annotations.map(hn)}}function hn(n){return{id:n.id,feedbackId:n.feedbackId,cssSelector:n.cssSelector,xpath:n.xpath,textSnippet:n.textSnippet,elementTag:n.elementTag,elementId:n.elementId,textPrefix:n.textPrefix,textSuffix:n.textSuffix,fingerprint:n.fingerprint,neighborText:n.neighborText,xPct:n.xPct,yPct:n.yPct,wPct:n.wPct,hPct:n.hPct,scrollX:n.scrollX,scrollY:n.scrollY,viewportW:n.viewportW,viewportH:n.viewportH,devicePixelRatio:n.devicePixelRatio,createdAt:n.createdAt.toISOString()}}var bn="linear(0, 0.006, 0.025, 0.06, 0.11, 0.17, 0.25, 0.34, 0.45, 0.56, 0.67, 0.78, 0.88, 0.95, 1.01, 1.04, 1.05, 1.04, 1.02, 1, 0.99, 1)",qe="cubic-bezier(0.16, 1, 0.3, 1)",Ue="cubic-bezier(0.34, 1.56, 0.64, 1)",gn="cubic-bezier(0.25, 1, 0.5, 1)",ss=`
1713
+ `,EB='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',br=class{constructor(s,i,o=Ns){this.i18n=o;this.keyMap=new Map([["j",()=>i.onNavigate("down")],["k",()=>i.onNavigate("up")],["r",()=>i.onResolve()],["d",()=>i.onDelete()],["f",()=>i.onFocusSearch()],["/",()=>i.onFocusSearch()],["x",()=>i.onToggleSelect()],["?",()=>this.toggleHelp()]]),this.helpOverlay=this.buildOverlay(),this.hintButton=this.buildHintButton(),this.boundHandler=c=>this.handleKeydown(c)}i18n;helpOverlay;hintButton;keyMap;boundHandler;shadowRoot=null;enabled=!1;helpVisible=!1;destroyed=!1;enable(s){if(this.destroyed||this.enabled)return;s&&(this.shadowRoot=s),(this.shadowRoot??document).addEventListener("keydown",this.boundHandler),this.enabled=!0}disable(){if(!this.enabled)return;(this.shadowRoot??document).removeEventListener("keydown",this.boundHandler),this.enabled=!1,this.helpVisible&&this.hideHelp()}toggleHelp(){this.helpVisible?this.hideHelp():this.showHelp()}destroy(){this.destroyed||(this.disable(),this.helpOverlay.remove(),this.hintButton.remove(),this.destroyed=!0)}handleKeydown(s){if(s.key==="Escape"){this.helpVisible&&(s.preventDefault(),s.stopPropagation(),this.hideHelp());return}if(this.helpVisible)return;let i=s.composedPath()[0];if(i){let c=i.tagName?.toLowerCase();if(c==="input"||c==="textarea"||c==="select"||i.isContentEditable)return}if(s.ctrlKey||s.altKey||s.metaKey)return;let o=this.keyMap.get(s.key);o&&(s.preventDefault(),s.stopPropagation(),o())}showHelp(){this.helpVisible=!0,this.helpOverlay.classList.add("sp-shortcuts-overlay--visible"),this.helpOverlay.querySelector(".sp-shortcuts-close")?.focus()}hideHelp(){this.helpVisible=!1,this.helpOverlay.classList.remove("sp-shortcuts-overlay--visible")}buildOverlay(){let s=b("div",{class:"sp-shortcuts-overlay"});s.setAttribute("role","dialog"),s.setAttribute("aria-modal","true"),s.setAttribute("aria-label",this.i18n["shortcuts.title"]),s.addEventListener("click",f=>{f.target===s&&this.hideHelp()});let i=b("div",{class:"sp-shortcuts-card"}),o=b("div",{class:"sp-shortcuts-title"});o.appendChild(P(UB));let c=b("span");U(c,this.i18n["shortcuts.title"]),o.appendChild(c),i.appendChild(o);let d=document.createElement("button");d.className="sp-shortcuts-close",d.setAttribute("aria-label",this.i18n["shortcuts.close"]),d.appendChild(P(EB)),d.addEventListener("click",()=>this.hideHelp()),i.appendChild(d);let h=b("div",{class:"sp-shortcuts-grid"});for(let f of xB){let C=b("div",{class:"sp-shortcuts-row"}),Q=b("div",{class:"sp-shortcuts-keys"});f.keys.forEach((y,T)=>{if(T>0){let G=b("span",{class:"sp-shortcuts-separator"});U(G,"/"),Q.appendChild(G)}let O=b("span",{class:"sp-kbd"});U(O,y),Q.appendChild(O)});let v=b("span",{class:"sp-shortcuts-desc"});U(v,this.i18n[f.label]),C.appendChild(Q),C.appendChild(v),h.appendChild(C)}return i.appendChild(h),s.appendChild(i),s}buildHintButton(){let s=document.createElement("button");return s.className="sp-shortcuts-hint",s.setAttribute("aria-label",this.i18n["shortcuts.hint"]),U(s,"?"),s.addEventListener("click",i=>{i.stopPropagation(),this.toggleHelp()}),s}};var vr=class{constructor(s,i,o,c,d,h,f,C,Q){this.colors=i;this.bus=o;this.client=c;this.projectName=d;this.markers=h;this.t=f;this.locale=C;this.shadowRoot=s,this.bulkI18n=C==="fr"?Ds:Ks,this.getScope=Q?.getScope??(()=>({url:window.location.pathname,urlPattern:null})),this.scopeAnnotationsByUrl=Q?.scopeAnnotationsByUrl??!0,this.root=b("div",{class:"sp-panel"}),this.root.setAttribute("role","complementary"),this.root.setAttribute("aria-label",this.t("panel.ariaLabel")),this.root.setAttribute("aria-hidden","true");let v=b("div",{class:"sp-panel-header"}),y=b("span",{class:"sp-panel-title"});U(y,this.t("panel.title")),this.closeBtn=document.createElement("button"),this.closeBtn.className="sp-panel-close",this.closeBtn.setAttribute("aria-label",this.t("panel.close")),this.closeBtn.appendChild(P(Ar)),this.closeBtn.addEventListener("click",()=>this.close()),this.deleteAllBtn=document.createElement("button"),this.deleteAllBtn.className="sp-btn-delete-all",this.deleteAllBtn.setAttribute("aria-label",this.t("panel.deleteAll")),this.deleteAllBtn.appendChild(P(Es));let T=document.createElement("span");U(T,` ${this.t("panel.deleteAll")}`),this.deleteAllBtn.appendChild(T),this.deleteAllBtn.addEventListener("click",()=>this.confirmDeleteAll()),this.exportBtn=new hr(i,()=>this.feedbacks),C==="fr"&&this.exportBtn.setLabels(Po);let O=b("div",{class:"sp-panel-header-right"});O.appendChild(this.exportBtn.element),O.appendChild(this.deleteAllBtn),O.appendChild(this.closeBtn),v.appendChild(y),v.appendChild(O),this.stats=new mr(i,C);let G=b("div",{class:"sp-filters"}),X=b("div",{class:"sp-search-wrap"}),j=P(co);j.setAttribute("class","sp-search-icon"),this.searchInput=document.createElement("input"),this.searchInput.type="text",this.searchInput.className="sp-search",this.searchInput.placeholder=this.t("panel.search"),this.searchInput.setAttribute("aria-label",this.t("panel.searchAria")),this.searchInput.addEventListener("input",()=>{this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>this.loadFeedbacks().catch(()=>{}),200)}),X.appendChild(j),X.appendChild(this.searchInput);let q=b("div",{class:"sp-filter-bar"});q.appendChild(this.buildTypeDropdown()),q.appendChild(this.buildStatusSegmented()),q.appendChild(this.buildScopeSegmented()),this.sortControls=new Cr(i,()=>this.renderList(),C),G.appendChild(X),G.appendChild(q),G.appendChild(this.sortControls.element),this.listContainer=b("div",{class:"sp-list"}),this.listContainer.setAttribute("role","list"),this.listContainer.setAttribute("aria-label",this.t("panel.feedbackList")),this.bulk=new fr(i,{onResolve:M=>this.bulkResolve(M),onDelete:M=>this.bulkDelete(M)},C),this.bulk.setListContainer(this.listContainer),this.detail=new wr(i,{onBack:()=>this.detail.hide(),onResolve:async M=>{let R=M.status!=="resolved";await this.client.resolveFeedback(M.id,R),await this.loadFeedbacks(),this.detail.hide()},onDelete:async M=>{await this.client.deleteFeedback(M.id),this.bus.emit("feedback:deleted",M.id),await this.loadFeedbacks(),this.detail.hide()},onGoToAnnotation:M=>{if(M.annotations.length>0){let R=M.annotations[0];if(!R)return;window.scrollTo({left:R.scrollX,top:R.scrollY,behavior:"smooth"}),this.markers.pinHighlight(M)}}},C);let CA=C==="fr"?ra:Ns;this.shortcuts=new br(i,{onNavigate:M=>{let R=Ps(this.listContainer);sa(this.listContainer,M==="down"?R+1:R-1)},onResolve:()=>{let M=this.getFocusedFeedback();if(M&&!this.pendingMutations.has(M.id)){let V=this.listContainer.querySelector(`[data-feedback-id="${CSS.escape(M.id)}"]`)?.querySelector('[data-action="resolve"]');V&&this.toggleResolve(M,V).catch(()=>{})}},onDelete:()=>{let M=this.getFocusedFeedback();if(M&&!this.pendingMutations.has(M.id)){let V=this.listContainer.querySelector(`[data-feedback-id="${CSS.escape(M.id)}"]`)?.querySelector('[data-action="delete"]');V&&this.deleteFeedback(M,V).catch(()=>{})}},onFocusSearch:()=>this.searchInput.focus(),onToggleSelect:()=>{let M=this.getFocusedFeedback();M&&this.bulk.toggle(M.id)}},CA),this.root.appendChild(v),this.root.appendChild(this.stats.element),this.root.appendChild(G),this.root.appendChild(this.listContainer),this.root.appendChild(this.bulk.barElement),this.root.appendChild(this.detail.element),this.root.appendChild(this.shortcuts.helpOverlay),this.root.appendChild(this.shortcuts.hintButton),s.appendChild(this.root),this.onListClick=M=>{let R=M.target;if(R.closest(".sp-bulk-checkbox"))return;let V=R.closest("[data-action]");if(V){M.stopPropagation();let aA=V.closest(".sp-card");if(!aA)return;let iA=aA.dataset.feedbackId,D=this.feedbacks.find(BA=>BA.id===iA);if(!D)return;let uA=V.dataset.action;if(uA==="expand"){let BA=aA.querySelector(".sp-card-message");if(!BA)return;let VA=BA.classList.toggle("sp-card-message--expanded");U(V,VA?this.t("panel.showLess"):this.t("panel.showMore")),V.setAttribute("aria-expanded",String(VA))}else if(uA==="resolve"){if(this.pendingMutations.has(D.id))return;let BA=V;this.toggleResolve(D,BA).catch(()=>{})}else if(uA==="delete"){if(this.pendingMutations.has(D.id))return;let BA=V;this.deleteFeedback(D,BA).catch(()=>{})}return}let sA=R.closest(".sp-card");if(sA){let aA=sA.dataset.feedbackId,iA=this.feedbacks.find(D=>D.id===aA);if(iA){let D=this.feedbacks.indexOf(iA)+1;this.detail.show(iA,D)}}},this.listContainer.addEventListener("click",this.onListClick),this.onListKeydown=M=>{let R=M;if(R.key!=="Enter"&&R.key!==" ")return;let V=R.target,sA=V.closest(".sp-card");if(!sA||V!==sA)return;R.preventDefault();let aA=sA.dataset.feedbackId,iA=this.feedbacks.find(D=>D.id===aA);if(iA){let D=this.feedbacks.indexOf(iA)+1;this.detail.show(iA,D)}},this.listContainer.addEventListener("keydown",this.onListKeydown),this.onListMouseover=M=>{let V=M.target.closest(".sp-card");if(!V)return;let sA=V.dataset.feedbackId;sA&&this.markers.highlight(sA)},this.listContainer.addEventListener("mouseover",this.onListMouseover),this.onListMouseout=M=>{let R=M.relatedTarget;R&&this.listContainer.contains(R)||this.markers.highlight("")},this.listContainer.addEventListener("mouseout",this.onListMouseout),this.bus.on("panel:toggle",M=>{M?this.open():this.close()}),s.addEventListener("keydown",M=>{let R=M;if(R.key==="Escape"&&this.isOpen){if(this.detail.isVisible){this.detail.hide();return}this.close();return}if(R.key==="Tab"&&this.isOpen){let V=this.root.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(V.length===0)return;let sA=V[0],aA=V[V.length-1];if(!sA||!aA)return;let iA=s.activeElement;R.shiftKey&&iA===sA?(R.preventDefault(),aA.focus()):!R.shiftKey&&iA===aA&&(R.preventDefault(),sA.focus())}}),this.onMarkerClick=(M=>{this.scrollToFeedback(M.detail.feedbackId)}),document.addEventListener("sp-marker-click",this.onMarkerClick)}colors;bus;client;projectName;markers;t;locale;root;listContainer;searchInput;closeBtn;deleteAllBtn;activeFilters=new Set(["all"]);activeStatusFilter="all";typeDropdownBtn;typeDropdownContainer;typeDropdownMenu=null;typeDropdownOutsideHandler=null;statusSegmented;typeOptions;statusOptions;feedbacks=[];currentPage=1;totalFeedbacks=0;isLoadingMore=!1;isOpen=!1;searchTimeout=null;loadController=null;pendingMutations=new Set;stats;sortControls;bulk;exportBtn;shortcuts;detail;shadowRoot;bulkI18n;getScope;scopeAnnotationsByUrl;activeScopeFilter="this";scopeSegmented;scopeOptions;onMarkerClick;onListClick;onListKeydown;onListMouseover;onListMouseout;async open(){this.isOpen||(this.isOpen=!0,this.root.classList.add("sp-panel--open"),this.root.setAttribute("aria-hidden","false"),this.bus.emit("open"),this.shortcuts.enable(this.shadowRoot),await this.loadFeedbacks(),requestAnimationFrame(()=>{this.searchInput?this.searchInput.focus():this.closeBtn.focus()}))}close(){if(!this.isOpen)return;this.isOpen=!1,this.root.classList.remove("sp-panel--open"),this.root.setAttribute("aria-hidden","true"),this.bus.emit("close"),this.shortcuts.disable(),this.detail.hide(),this.root.getRootNode().querySelector(".sp-fab")?.focus()}showLoading(){this.listContainer.replaceChildren();let s=b("div",{class:"sp-loading"});s.setAttribute("role","status"),s.setAttribute("aria-live","polite"),s.setAttribute("aria-label",this.t("panel.loading"));let i=b("div",{class:"sp-spinner"});s.appendChild(i),this.listContainer.appendChild(s)}showError(){this.listContainer.replaceChildren();let s=b("div",{class:"sp-empty"});s.setAttribute("role","status"),s.setAttribute("aria-live","polite");let i=b("div",{class:"sp-empty-text"});U(i,this.t("panel.loadError"));let o=document.createElement("button");o.className="sp-btn-ghost",o.style.marginTop="8px",U(o,this.t("panel.retry")),o.addEventListener("click",()=>this.loadFeedbacks().catch(()=>{})),s.appendChild(i),s.appendChild(o),this.listContainer.appendChild(s)}async loadFeedbacks(){this.loadController?.abort(),this.loadController=new AbortController;let{signal:s}=this.loadController;this.currentPage=1;let i=this.searchInput.value.trim()||void 0,o=this.activeFilters.has("all")?void 0:Array.from(this.activeFilters)[0],c=this.activeStatusFilter==="all"?void 0:this.activeStatusFilter,d=this.getScope();this.syncScopeAvailability();let h={page:1,limit:20};o&&(h.type=o),c&&(h.status=c),i&&(h.search=i),this.activeScopeFilter==="this"?h.url=d.url:this.activeScopeFilter==="template"&&d.urlPattern&&(h.urlPattern=d.urlPattern);let f=this.feedbacks.length>0;f||this.showLoading();try{let{feedbacks:C,total:Q}=await this.client.getFeedbacks(this.projectName,h);if(s.aborted)return;this.feedbacks=C,this.totalFeedbacks=Q,this.stats.update(C,Q),this.bulk.reset(),this.renderList();let v=this.scopeAnnotationsByUrl?C.filter(y=>y.url===d.url):C;this.markers.render(v)}catch(C){if(s.aborted)return;f||this.showError(),this.bus.emit("feedback:error",C instanceof Error?C:new Error(String(C)))}}async loadMoreFeedbacks(){if(this.isLoadingMore)return;this.isLoadingMore=!0;let s=this.loadController,i=this.currentPage+1,o=this.searchInput.value.trim()||void 0,c=this.activeFilters.has("all")?void 0:Array.from(this.activeFilters)[0],d=this.activeStatusFilter==="all"?void 0:this.activeStatusFilter,h=this.getScope(),f={page:i,limit:20};c&&(f.type=c),d&&(f.status=d),o&&(f.search=o),this.activeScopeFilter==="this"?f.url=h.url:this.activeScopeFilter==="template"&&h.urlPattern&&(f.urlPattern=h.urlPattern);let C=this.listContainer.querySelector(".sp-btn-load-more"),Q;C&&(Q=this.setButtonLoading(C));try{let{feedbacks:v,total:y}=await this.client.getFeedbacks(this.projectName,f);if(s!==this.loadController)return;this.currentPage=i,this.totalFeedbacks=y,this.feedbacks=[...this.feedbacks,...v],this.stats.update(this.feedbacks,y),this.renderList();let T=this.scopeAnnotationsByUrl?this.feedbacks.filter(O=>O.url===h.url):this.feedbacks;this.markers.render(T)}catch(v){Q&&Q(),this.bus.emit("feedback:error",v instanceof Error?v:new Error(String(v)))}finally{this.isLoadingMore=!1}}renderList(){if(this.listContainer.replaceChildren(),this.feedbacks.length===0){let d=b("div",{class:"sp-empty"});d.setAttribute("role","status"),d.setAttribute("aria-live","polite");let h=b("div",{class:"sp-empty-text"});U(h,this.t("panel.empty")),d.appendChild(h),this.listContainer.appendChild(d);return}let s=zo(this.feedbacks,this.sortControls.sortMode),i=s.map(d=>d.id),o=this.bulk.createSelectAllBar(i,this.bulkI18n["bulk.selectAll"]);if(this.listContainer.appendChild(o),this.sortControls.groupByPage){let d=qo(s),h=0;for(let[f,C]of d){let Q=Aa(f,C.length,this.colors);this.listContainer.appendChild(Q);let v=b("div",{class:"sp-group-content"});for(let y of C){let T=this.createCard(y,h+1);T.style.setProperty("--sp-card-i",String(h)),v.appendChild(T),h++}this.listContainer.appendChild(v)}}else s.forEach((d,h)=>{let f=this.createCard(d,h+1);f.style.setProperty("--sp-card-i",String(h)),this.listContainer.appendChild(f)});let c=this.totalFeedbacks-this.feedbacks.length;if(c>0){let d=b("div",{class:"sp-load-more-wrap"}),h=document.createElement("button");h.className="sp-btn-ghost sp-btn-load-more",U(h,this.t("panel.loadMore").replace("{remaining}",String(c))),h.addEventListener("click",()=>this.loadMoreFeedbacks().catch(()=>{})),d.appendChild(h),this.listContainer.appendChild(d)}}createCard(s,i){let o=s.status==="resolved",c=UA(s.type,this.colors),d=b("div",{class:`sp-card ${o?"sp-card--resolved":""}`});d.setAttribute("role","listitem"),d.setAttribute("tabindex","0"),d.setAttribute("aria-label",`Feedback #${i}: ${de(s.type,this.t)} \u2014 ${s.message.slice(0,80)}`),d.dataset.feedbackId=s.id;let h=b("div",{class:"sp-card-bar"});h.style.background=o?"#9ca3af":c;let f=b("div",{class:"sp-card-body"}),C=b("div",{class:"sp-card-header"}),Q=this.bulk.createCheckbox(s.id);C.appendChild(Q);let v=b("span",{class:"sp-card-number"});U(v,`#${i}`);let y=b("span",{class:"sp-badge"}),T=GA(s.type,this.colors);y.style.background=T,y.style.color=c,U(y,de(s.type,this.t));let O=b("span",{class:"sp-card-date"});U(O,qt(s.createdAt,this.locale)),C.appendChild(v),C.appendChild(y),C.appendChild(O);let G=b("div",{class:"sp-card-message"});U(G,s.message);let X=document.createElement("button");X.className="sp-card-expand",X.dataset.action="expand",U(X,this.t("panel.showMore")),X.style.display="none",X.setAttribute("aria-expanded","false"),requestAnimationFrame(()=>{G.scrollHeight>G.clientHeight&&(X.style.display="block")});let j=b("div",{class:"sp-card-footer"}),q=document.createElement("button");if(q.className="sp-btn-resolve",q.dataset.action="resolve",o){q.appendChild(P(Bo));let R=document.createElement("span");U(R,` ${this.t("panel.reopen")}`),q.appendChild(R)}else{q.appendChild(P(er));let R=document.createElement("span");U(R,` ${this.t("panel.resolve")}`),q.appendChild(R)}let CA=document.createElement("button");CA.className="sp-btn-delete",CA.dataset.action="delete",CA.appendChild(P(Es));let M=document.createElement("span");return U(M,` ${this.t("panel.delete")}`),CA.appendChild(M),j.appendChild(q),j.appendChild(CA),f.appendChild(C),f.appendChild(G),f.appendChild(X),f.appendChild(j),d.appendChild(h),d.appendChild(f),d}async bulkResolve(s){try{await Promise.all(s.map(i=>this.client.resolveFeedback(i,!0))),await this.loadFeedbacks()}catch(i){throw this.bus.emit("feedback:error",i instanceof Error?i:new Error(String(i))),i}}async bulkDelete(s){try{await Promise.all(s.map(i=>this.client.deleteFeedback(i)));for(let i of s)this.bus.emit("feedback:deleted",i);await this.loadFeedbacks()}catch(i){throw this.bus.emit("feedback:error",i instanceof Error?i:new Error(String(i))),i}}async confirmDeleteAll(){if(await this.showConfirmDialog(this.t("panel.deleteAllConfirmTitle"),this.t("panel.deleteAllConfirmMessage"))){this.deleteAllBtn.disabled=!0;try{await this.client.deleteAllFeedbacks(this.projectName),this.bus.emit("feedback:all-deleted"),await this.loadFeedbacks()}catch(i){this.bus.emit("feedback:error",i instanceof Error?i:new Error(String(i)))}finally{this.deleteAllBtn.disabled=!1}}}showConfirmDialog(s,i){return new Promise(o=>{let c=b("div",{class:"sp-confirm-backdrop"}),d=`sp-confirm-title-${Date.now()}`,h=`sp-confirm-msg-${Date.now()}`,f=b("div",{class:"sp-confirm-dialog"});f.setAttribute("role","alertdialog"),f.setAttribute("aria-modal","true"),f.setAttribute("aria-labelledby",d),f.setAttribute("aria-describedby",h);let C=b("div",{class:"sp-confirm-title"});C.id=d,U(C,s);let Q=b("div",{class:"sp-confirm-message"});Q.id=h,U(Q,i);let v=b("div",{class:"sp-confirm-actions"}),y=document.createElement("button");y.type="button",y.className="sp-btn-ghost",U(y,this.t("panel.cancel"));let T=document.createElement("button");T.type="button",T.className="sp-btn-danger",U(T,this.t("panel.confirmDelete"));let O=!1,G=j=>{O||(O=!0,c.removeEventListener("keydown",X),c.style.opacity="0",f.style.transform="translateY(8px) scale(0.97)",setTimeout(()=>{c.remove(),o(j)},200))},X=j=>{let q=j;if(q.key==="Escape"){G(!1);return}q.key==="Tab"&&(q.preventDefault(),c.getRootNode().activeElement===y?T.focus():y.focus())};c.addEventListener("keydown",X),y.addEventListener("click",()=>G(!1)),T.addEventListener("click",()=>G(!0)),c.addEventListener("click",j=>{j.target===c&&G(!1)}),v.appendChild(y),v.appendChild(T),f.appendChild(C),f.appendChild(Q),f.appendChild(v),c.appendChild(f),this.root.getRootNode()instanceof ShadowRoot?this.root.getRootNode().appendChild(c):this.root.appendChild(c),requestAnimationFrame(()=>{c.style.opacity="1",f.style.transform="translateY(0) scale(1)",y.focus()})})}setButtonLoading(s){let i=Array.from(s.childNodes).map(o=>o.cloneNode(!0));return s.disabled=!0,s.replaceChildren(b("div",{class:"sp-spinner sp-spinner--sm"})),()=>{s.replaceChildren(...i),s.disabled=!1}}async deleteFeedback(s,i){this.pendingMutations.add(s.id);let o=this.setButtonLoading(i);try{await this.client.deleteFeedback(s.id),this.bus.emit("feedback:deleted",s.id),await this.loadFeedbacks()}catch(c){o(),this.bus.emit("feedback:error",c instanceof Error?c:new Error(String(c)))}finally{this.pendingMutations.delete(s.id)}}async toggleResolve(s,i){this.pendingMutations.add(s.id);let o=this.setButtonLoading(i);try{let c=s.status!=="resolved";await this.client.resolveFeedback(s.id,c),await this.loadFeedbacks()}catch(c){o(),this.bus.emit("feedback:error",c instanceof Error?c:new Error(String(c)))}finally{this.pendingMutations.delete(s.id)}}buildTypeDropdown(){return this.typeOptions=[{value:"all",label:this.t("panel.filterAll"),icon:xs,color:this.colors.accent,bg:this.colors.accentLight},{value:"question",label:this.t("type.question"),icon:tr,color:this.colors.typeQuestion,bg:this.colors.typeQuestionBg},{value:"change",label:this.t("type.change"),icon:rr,color:this.colors.typeChange,bg:this.colors.typeChangeBg},{value:"bug",label:this.t("type.bug"),icon:sr,color:this.colors.typeBug,bg:this.colors.typeBugBg},{value:"other",label:this.t("type.other"),icon:nr,color:this.colors.typeOther,bg:this.colors.typeOtherBg}],this.typeDropdownContainer=b("div",{class:"sp-filter-dropdown"}),this.typeDropdownBtn=document.createElement("button"),this.typeDropdownBtn.type="button",this.typeDropdownBtn.className="sp-filter-dropdown-btn",this.typeDropdownBtn.setAttribute("aria-haspopup","listbox"),this.typeDropdownBtn.setAttribute("aria-expanded","false"),this.renderTypeDropdownTrigger(),this.typeDropdownBtn.addEventListener("click",s=>{s.stopPropagation(),this.typeDropdownMenu?this.closeTypeDropdown():this.openTypeDropdown()}),this.typeDropdownContainer.appendChild(this.typeDropdownBtn),this.typeDropdownContainer}renderTypeDropdownTrigger(){let s=this.typeOptions.find(f=>this.activeFilters.has(f.value))??this.typeOptions[0];if(!s)return;this.typeDropdownBtn.replaceChildren(),this.typeDropdownBtn.style.setProperty("--sp-chip-color",s.color),this.typeDropdownBtn.style.setProperty("--sp-chip-bg",s.bg),this.typeDropdownBtn.dataset.filter=s.value,this.typeDropdownBtn.classList.toggle("sp-filter-dropdown-btn--filtered",s.value!=="all"),this.typeDropdownBtn.setAttribute("aria-label",`${this.t("type.label")}: ${s.label}`);let i=b("span",{class:"sp-filter-dropdown-btn__icon"});i.appendChild(P(s.icon)),this.typeDropdownBtn.appendChild(i);let o=b("span",{class:"sp-filter-dropdown-btn__label"}),c=b("span",{class:"sp-filter-dropdown-btn__prefix"});U(c,this.t("type.label"));let d=b("span",{class:"sp-filter-dropdown-btn__value"});U(d,s.label),o.appendChild(c),o.appendChild(d),this.typeDropdownBtn.appendChild(o);let h=b("span",{class:"sp-filter-dropdown-btn__chevron"});h.appendChild(P(uo)),this.typeDropdownBtn.appendChild(h)}openTypeDropdown(){this.typeDropdownMenu=b("div",{class:"sp-filter-dropdown-menu"}),this.typeDropdownMenu.setAttribute("role","listbox"),this.typeDropdownMenu.setAttribute("aria-label",this.t("type.label")),this.typeDropdownBtn.setAttribute("aria-expanded","true");for(let s of this.typeOptions){let i=document.createElement("button");i.type="button";let o=this.activeFilters.has(s.value);i.className=`sp-filter-dropdown-option${o?" sp-filter-dropdown-option--active":""}`,i.style.setProperty("--sp-chip-color",s.color),i.style.setProperty("--sp-chip-bg",s.bg),i.dataset.filter=s.value,i.setAttribute("role","option"),i.setAttribute("aria-selected",String(o));let c=b("span",{class:"sp-filter-dropdown-option__icon"});c.appendChild(P(s.icon)),i.appendChild(c);let d=b("span",{class:"sp-filter-dropdown-option__label"});if(U(d,s.label),i.appendChild(d),o){let h=b("span",{class:"sp-filter-dropdown-option__check"});h.appendChild(P(er)),i.appendChild(h)}i.addEventListener("click",h=>{h.stopPropagation(),this.selectTypeFilter(s.value)}),this.typeDropdownMenu.appendChild(i)}this.typeDropdownContainer.appendChild(this.typeDropdownMenu),requestAnimationFrame(()=>{this.typeDropdownOutsideHandler=s=>{this.typeDropdownMenu&&!this.typeDropdownContainer.contains(s.target)&&this.closeTypeDropdown()},document.addEventListener("click",this.typeDropdownOutsideHandler,!0)}),this.typeDropdownMenu.addEventListener("keydown",s=>{s.key==="Escape"&&(this.closeTypeDropdown(),this.typeDropdownBtn.focus())})}closeTypeDropdown(){this.typeDropdownMenu&&(this.typeDropdownMenu.remove(),this.typeDropdownMenu=null),this.typeDropdownBtn.setAttribute("aria-expanded","false"),this.typeDropdownOutsideHandler&&(document.removeEventListener("click",this.typeDropdownOutsideHandler,!0),this.typeDropdownOutsideHandler=null)}selectTypeFilter(s){this.activeFilters.clear(),this.activeFilters.add(s),this.renderTypeDropdownTrigger(),this.closeTypeDropdown(),this.loadFeedbacks().catch(()=>{})}buildStatusSegmented(){this.statusOptions=[{value:"all",label:this.t("panel.statusAll"),icon:xs,color:this.colors.accent,bg:this.colors.accentLight},{value:"open",label:this.t("panel.statusOpen"),icon:po,color:this.colors.statusOpen,bg:this.colors.statusOpenBg},{value:"resolved",label:this.t("panel.statusResolved"),icon:er,color:this.colors.statusResolved,bg:this.colors.statusResolvedBg}],this.statusSegmented=b("div",{class:"sp-segmented",role:"radiogroup"}),this.statusSegmented.setAttribute("aria-label",this.t("status.label"));for(let s of this.statusOptions){let i=document.createElement("button");i.type="button",i.className=`sp-segmented__btn sp-segmented__btn--${s.value}`,i.dataset.statusFilter=s.value,i.setAttribute("role","radio");let o=this.activeStatusFilter===s.value;i.setAttribute("aria-checked",String(o)),i.tabIndex=o?0:-1,o&&i.classList.add("sp-segmented__btn--active"),i.style.setProperty("--sp-chip-color",s.color),i.style.setProperty("--sp-chip-bg",s.bg);let c=b("span",{class:"sp-segmented__icon"});c.appendChild(P(s.icon)),i.appendChild(c);let d=b("span",{class:"sp-segmented__label"});U(d,s.label),i.appendChild(d),i.addEventListener("click",()=>this.selectStatusFilter(s.value)),i.addEventListener("keydown",h=>this.handleSegmentedKey(h,s.value)),this.statusSegmented.appendChild(i)}return this.statusSegmented}handleSegmentedKey(s,i){let o=this.statusOptions.map(C=>C.value),c=o.indexOf(i),d;switch(s.key){case"ArrowLeft":d=(c-1+o.length)%o.length;break;case"ArrowRight":d=(c+1)%o.length;break;case"Home":d=0;break;case"End":d=o.length-1;break;default:return}s.preventDefault();let h=o[d];if(!h)return;this.selectStatusFilter(h),this.statusSegmented.querySelector(`[data-status-filter="${h}"]`)?.focus()}selectStatusFilter(s){this.activeStatusFilter=s;let i=this.statusSegmented.querySelectorAll(".sp-segmented__btn");for(let o of i){let c=o.dataset.statusFilter===s;o.classList.toggle("sp-segmented__btn--active",c),o.setAttribute("aria-checked",String(c)),o.tabIndex=c?0:-1}this.loadFeedbacks().catch(()=>{})}buildScopeSegmented(){this.scopeOptions=[{value:"this",label:this.t("scope.thisPage")},{value:"template",label:this.t("scope.thisType")},{value:"all",label:this.t("scope.all")}],this.scopeSegmented=b("div",{class:"sp-segmented sp-segmented--scope",role:"radiogroup"}),this.scopeSegmented.setAttribute("aria-label",this.t("scope.label"));for(let s of this.scopeOptions){let i=document.createElement("button");i.type="button",i.className=`sp-segmented__btn sp-segmented__btn--scope-${s.value}`,i.dataset.scopeFilter=s.value,i.setAttribute("role","radio");let o=this.activeScopeFilter===s.value;i.setAttribute("aria-checked",String(o)),i.tabIndex=o?0:-1,o&&i.classList.add("sp-segmented__btn--active");let c=b("span",{class:"sp-segmented__label"});U(c,s.label),i.appendChild(c),i.addEventListener("click",()=>this.selectScopeFilter(s.value)),i.addEventListener("keydown",d=>this.handleScopeKey(d,s.value)),this.scopeSegmented.appendChild(i)}return this.syncScopeAvailability(),this.scopeSegmented}handleScopeKey(s,i){let o=this.scopeOptions.map(C=>C.value).filter(C=>{let Q=this.scopeSegmented.querySelector(`[data-scope-filter="${C}"]`);return Q&&Q.style.display!=="none"}),c=o.indexOf(i);if(c<0)return;let d;switch(s.key){case"ArrowLeft":d=(c-1+o.length)%o.length;break;case"ArrowRight":d=(c+1)%o.length;break;case"Home":d=0;break;case"End":d=o.length-1;break;default:return}s.preventDefault();let h=o[d];if(!h)return;this.selectScopeFilter(h),this.scopeSegmented.querySelector(`[data-scope-filter="${h}"]`)?.focus()}selectScopeFilter(s){this.activeScopeFilter=s;let i=this.scopeSegmented.querySelectorAll(".sp-segmented__btn");for(let o of i){let c=o.dataset.scopeFilter===s;o.classList.toggle("sp-segmented__btn--active",c),o.setAttribute("aria-checked",String(c)),o.tabIndex=c?0:-1}this.loadFeedbacks().catch(()=>{})}syncScopeAvailability(){if(!this.scopeSegmented)return;let s=this.getScope(),i=this.scopeSegmented.querySelector('[data-scope-filter="template"]');if(!i)return;let o=!!s.urlPattern;i.style.display=o?"":"none",!o&&this.activeScopeFilter==="template"&&(this.activeScopeFilter="this",this.selectScopeFilter("this"))}getFocusedFeedback(){let s=Ps(this.listContainer);if(s<0)return;let i=this.listContainer.querySelectorAll(".sp-card")[s];if(i)return this.feedbacks.find(o=>o.id===i.dataset.feedbackId)}scrollToFeedback(s){let i=CSS.escape(s),o=this.listContainer.querySelector(`[data-feedback-id="${i}"]`);o&&(o.scrollIntoView({behavior:"smooth",block:"center"}),o.classList.add("sp-anim-flash"),o.addEventListener("animationend",()=>{o.classList.remove("sp-anim-flash")},{once:!0}))}async refresh(){this.isOpen&&await this.loadFeedbacks()}get isCurrentlyOpen(){return this.isOpen}destroy(){this.loadController?.abort(),this.searchTimeout&&clearTimeout(this.searchTimeout),this.listContainer.removeEventListener("click",this.onListClick),this.listContainer.removeEventListener("keydown",this.onListKeydown),this.listContainer.removeEventListener("mouseover",this.onListMouseover),this.listContainer.removeEventListener("mouseout",this.onListMouseout),document.removeEventListener("sp-marker-click",this.onMarkerClick),this.closeTypeDropdown(),this.sortControls.destroy(),this.bulk.destroy(),this.exportBtn.destroy(),this.shortcuts.destroy(),this.detail.destroy(),this.root.remove()}};function _s(l){return{cssSelector:l.anchor.cssSelector,xpath:l.anchor.xpath,textSnippet:l.anchor.textSnippet,elementTag:l.anchor.elementTag,elementId:l.anchor.elementId,textPrefix:l.anchor.textPrefix,textSuffix:l.anchor.textSuffix,fingerprint:l.anchor.fingerprint,neighborText:l.anchor.neighborText,anchorKey:l.anchor.anchorKey??null,xPct:l.rect.xPct,yPct:l.rect.yPct,wPct:l.rect.wPct,hPct:l.rect.hPct,scrollX:l.scrollX,scrollY:l.scrollY,viewportW:l.viewportW,viewportH:l.viewportH,devicePixelRatio:l.devicePixelRatio}}var Qr=class{constructor(s,i){this.store=s;this.projectName=i}store;projectName;async sendFeedback(s){let i=await this.store.createFeedback({projectName:s.projectName,type:s.type,message:s.message,status:"open",url:s.url,urlPattern:s.urlPattern??null,viewport:s.viewport,userAgent:s.userAgent,authorName:s.authorName,authorEmail:s.authorEmail,clientId:s.clientId,annotations:s.annotations.map(_s),screenshotDataUrl:s.screenshotDataUrl??null});return Gs(i)}async getFeedbacks(s,i){let{feedbacks:o,total:c}=await this.store.getFeedbacks({projectName:s,page:i?.page,limit:i?.limit,type:i?.type,status:i?.status,search:i?.search,url:i?.url,urlPattern:i?.urlPattern});return{feedbacks:o.map(Gs),total:c}}async resolveFeedback(s,i){let o=await this.store.updateFeedback(s,{status:i?"resolved":"open",resolvedAt:i?new Date:null});return Gs(o)}async deleteFeedback(s){await this.store.deleteFeedback(s)}async deleteAllFeedbacks(s){await this.store.deleteAllFeedbacks(s)}};function Gs(l){return{id:l.id,projectName:l.projectName,type:l.type,message:l.message,status:l.status,url:l.url,urlPattern:l.urlPattern??null,viewport:l.viewport,userAgent:l.userAgent,authorName:l.authorName,authorEmail:l.authorEmail,resolvedAt:l.resolvedAt?.toISOString()??null,createdAt:l.createdAt.toISOString(),updatedAt:l.updatedAt.toISOString(),annotations:l.annotations.map(HB),screenshotUrl:l.screenshotUrl??null}}function HB(l){return{id:l.id,feedbackId:l.feedbackId,cssSelector:l.cssSelector,xpath:l.xpath,textSnippet:l.textSnippet,elementTag:l.elementTag,elementId:l.elementId,textPrefix:l.textPrefix,textSuffix:l.textSuffix,fingerprint:l.fingerprint,neighborText:l.neighborText,anchorKey:l.anchorKey??null,xPct:l.xPct,yPct:l.yPct,wPct:l.wPct,hPct:l.hPct,scrollX:l.scrollX,scrollY:l.scrollY,viewportW:l.viewportW,viewportH:l.viewportH,devicePixelRatio:l.devicePixelRatio,createdAt:l.createdAt.toISOString()}}var IB="linear(0, 0.006, 0.025, 0.06, 0.11, 0.17, 0.25, 0.34, 0.45, 0.56, 0.67, 0.78, 0.88, 0.95, 1.01, 1.04, 1.05, 1.04, 1.02, 1, 0.99, 1)",Vs="cubic-bezier(0.16, 1, 0.3, 1)",Xs="cubic-bezier(0.34, 1.56, 0.64, 1)",kB="cubic-bezier(0.25, 1, 0.5, 1)",ia=`
1697
1714
  /* ---- Keyframes ---- */
1698
1715
 
1699
1716
  @keyframes sp-fab-in {
@@ -1767,11 +1784,11 @@
1767
1784
  /* ---- Animation classes ---- */
1768
1785
 
1769
1786
  .sp-anim-fab-in {
1770
- animation: sp-fab-in 0.5s ${bn} both;
1787
+ animation: sp-fab-in 0.5s ${IB} both;
1771
1788
  }
1772
1789
 
1773
1790
  .sp-anim-marker-in {
1774
- animation: sp-marker-in 0.35s ${Ue} both;
1791
+ animation: sp-marker-in 0.35s ${Xs} both;
1775
1792
  }
1776
1793
 
1777
1794
  .sp-anim-pulse {
@@ -1779,11 +1796,11 @@
1779
1796
  }
1780
1797
 
1781
1798
  .sp-anim-flash {
1782
- animation: sp-flash-bg 0.5s ${gn};
1799
+ animation: sp-flash-bg 0.5s ${kB};
1783
1800
  }
1784
1801
 
1785
1802
  .sp-anim-slide-up {
1786
- animation: sp-slide-up 0.3s ${qe} both;
1803
+ animation: sp-slide-up 0.3s ${Vs} both;
1787
1804
  }
1788
1805
 
1789
1806
  .sp-anim-fade-in {
@@ -1794,7 +1811,7 @@
1794
1811
 
1795
1812
  .sp-panel {
1796
1813
  transform: translateX(110%);
1797
- transition: transform 0.4s ${qe};
1814
+ transition: transform 0.4s ${Vs};
1798
1815
  }
1799
1816
 
1800
1817
  .sp-panel.sp-panel--open {
@@ -1806,7 +1823,7 @@
1806
1823
  pointer-events: none;
1807
1824
  transform: translate(0, 0) scale(0.8);
1808
1825
  transition:
1809
- transform 0.35s ${Ue},
1826
+ transform 0.35s ${Xs},
1810
1827
  opacity 0.2s ease,
1811
1828
  background 0.2s ease,
1812
1829
  border-color 0.2s ease,
@@ -1837,7 +1854,7 @@
1837
1854
  }
1838
1855
 
1839
1856
  .sp-card {
1840
- animation: sp-card-in 0.35s ${qe} both;
1857
+ animation: sp-card-in 0.35s ${Vs} both;
1841
1858
  animation-delay: calc(var(--sp-card-i, 0) * 40ms);
1842
1859
  }
1843
1860
 
@@ -1865,7 +1882,7 @@
1865
1882
  }
1866
1883
 
1867
1884
  .sp-fab-badge {
1868
- animation: sp-badge-in 0.4s ${Ue} both;
1885
+ animation: sp-badge-in 0.4s ${Xs} both;
1869
1886
  }
1870
1887
 
1871
1888
  /* ---- Reduced motion ---- */
@@ -1878,7 +1895,7 @@
1878
1895
  }
1879
1896
  }
1880
1897
 
1881
- `;function We(n){return`
1898
+ `;function Ys(l){return`
1882
1899
  :host {
1883
1900
  all: initial;
1884
1901
  position: fixed;
@@ -1889,11 +1906,11 @@
1889
1906
  color: var(--sp-text);
1890
1907
  -webkit-font-smoothing: antialiased;
1891
1908
  -moz-osx-font-smoothing: grayscale;
1892
- ${mt(n)}
1909
+ ${wo(l)}
1893
1910
 
1894
1911
  /* Identity modal \u2014 theme-aware backdrop + panel */
1895
- --sp-identity-bg: ${n.glassBgHeavy};
1896
- --sp-identity-overlay: ${n.bg==="#ffffff"?"rgba(15, 23, 42, 0.2)":"rgba(0, 0, 0, 0.4)"};
1912
+ --sp-identity-bg: ${l.glassBgHeavy};
1913
+ --sp-identity-overlay: ${l.bg==="#ffffff"?"rgba(15, 23, 42, 0.2)":"rgba(0, 0, 0, 0.4)"};
1897
1914
  }
1898
1915
 
1899
1916
  *, *::before, *::after {
@@ -3044,14 +3061,14 @@
3044
3061
  }
3045
3062
  }
3046
3063
 
3047
- ${ss}
3048
- ${Qt}
3049
- ${Gt}
3050
- ${Ht}
3051
- ${_t}
3052
- ${es}
3053
- ${Yt}
3054
- `}var mn=120,fn=80,ye=class{constructor(e,t="en"){this.colors=e;this.locale=t;this.root=l("div",{style:`
3064
+ ${ia}
3065
+ ${ta}
3066
+ ${ea}
3067
+ ${Vo}
3068
+ ${_o}
3069
+ ${na}
3070
+ ${jo}
3071
+ `}var LB=120,SB=80,Fr=class{constructor(s,i="en"){this.colors=s;this.locale=i;this.root=b("div",{style:`
3055
3072
  position: fixed;
3056
3073
  z-index: ${2147483647};
3057
3074
  max-width: 280px;
@@ -3069,7 +3086,7 @@
3069
3086
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
3070
3087
  visibility: hidden;
3071
3088
  -webkit-font-smoothing: antialiased;
3072
- `}),this.root.setAttribute("role","tooltip"),this.root.id=this.tooltipId,this.arrow=l("div",{style:`
3089
+ `}),this.root.setAttribute("role","tooltip"),this.root.id=this.tooltipId,this.arrow=b("div",{style:`
3073
3090
  position: absolute;
3074
3091
  width: 12px;
3075
3092
  height: 12px;
@@ -3077,12 +3094,12 @@
3077
3094
  border: 1px solid ${this.colors.glassBorder};
3078
3095
  transform: rotate(45deg);
3079
3096
  pointer-events: none;
3080
- `}),this.root.appendChild(this.arrow),this.root.addEventListener("mouseenter",()=>this.cancelHide()),this.root.addEventListener("mouseleave",()=>this.scheduleHide()),document.body.appendChild(this.root)}colors;locale;root;arrow;showTimer=null;hideTimer=null;currentFeedbackId=null;tooltipId="sp-tooltip";show(e,t){this.currentFeedbackId!==e.id&&(this.cancelHide(),this.cancelShow(),this.showTimer=setTimeout(()=>{this.currentFeedbackId=e.id,this.render(e),this.position(t);let s=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;this.root.style.transition=s?"none":"",this.root.style.visibility="visible",this.root.style.opacity="1",this.root.style.transform="translateY(0) scale(1)"},mn))}scheduleHide(){this.cancelHide(),this.hideTimer=setTimeout(()=>this.hide(),fn)}hide(){this.cancelShow(),this.currentFeedbackId=null,this.root.style.opacity="0",this.root.style.transform="translateY(6px) scale(0.97)",setTimeout(()=>{this.currentFeedbackId||(this.root.style.visibility="hidden")},200)}cancelShow(){this.showTimer&&(clearTimeout(this.showTimer),this.showTimer=null)}cancelHide(){this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null)}render(e){let t=Array.from(this.root.children);for(let h of t)h!==this.arrow&&h.remove();let s=M(e.type,this.colors),o=P(e.type,this.colors),i=re(this.locale),r=N(e.type,i),a=l("div",{style:"display:flex;align-items:center;gap:8px;margin-bottom:8px;"}),p=l("span",{style:`
3097
+ `}),this.root.appendChild(this.arrow),this.root.addEventListener("mouseenter",()=>this.cancelHide()),this.root.addEventListener("mouseleave",()=>this.scheduleHide()),document.body.appendChild(this.root)}colors;locale;root;arrow;showTimer=null;hideTimer=null;currentFeedbackId=null;tooltipId="sp-tooltip";show(s,i){this.currentFeedbackId!==s.id&&(this.cancelHide(),this.cancelShow(),this.showTimer=setTimeout(()=>{this.currentFeedbackId=s.id,this.render(s),this.position(i);let o=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;this.root.style.transition=o?"none":"",this.root.style.visibility="visible",this.root.style.opacity="1",this.root.style.transform="translateY(0) scale(1)"},LB))}scheduleHide(){this.cancelHide(),this.hideTimer=setTimeout(()=>this.hide(),SB)}hide(){this.cancelShow(),this.currentFeedbackId=null,this.root.style.opacity="0",this.root.style.transform="translateY(6px) scale(0.97)",setTimeout(()=>{this.currentFeedbackId||(this.root.style.visibility="hidden")},200)}cancelShow(){this.showTimer&&(clearTimeout(this.showTimer),this.showTimer=null)}cancelHide(){this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null)}render(s){let i=Array.from(this.root.children);for(let y of i)y!==this.arrow&&y.remove();let o=UA(s.type,this.colors),c=GA(s.type,this.colors),d=cr(this.locale),h=de(s.type,d),f=b("div",{style:"display:flex;align-items:center;gap:8px;margin-bottom:8px;"}),C=b("span",{style:`
3081
3098
  padding:3px 10px;border-radius:9999px;
3082
3099
  font-size:11px;font-weight:600;
3083
- color:${s};background:${o};
3100
+ color:${o};background:${c};
3084
3101
  letter-spacing:0.02em;
3085
- `});c(p,r);let d=l("span",{style:`font-size:11px;color:${this.colors.textSecondary};margin-left:auto;`});c(d,V(e.createdAt,this.locale)),a.appendChild(p),a.appendChild(d);let u=l("div",{style:`font-size:13px;line-height:1.55;color:${this.colors.text};display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;`});c(u,e.message),this.root.insertBefore(a,this.arrow),this.root.insertBefore(u,this.arrow)}position(e){let t=this.root.getBoundingClientRect(),s=10,o=e.top-t.height-s,i=e.left+e.width/2-t.width/2,r=!0;o<8&&(o=e.bottom+s,r=!1),i=Math.max(8,Math.min(i,window.innerWidth-t.width-8)),this.root.style.top=`${o}px`,this.root.style.left=`${i}px`;let a=Math.max(16,Math.min(e.left+e.width/2-i-6,t.width-22));r?this.arrow.style.cssText=`
3102
+ `});U(C,h);let Q=b("span",{style:`font-size:11px;color:${this.colors.textSecondary};margin-left:auto;`});U(Q,qt(s.createdAt,this.locale)),f.appendChild(C),f.appendChild(Q);let v=b("div",{style:`font-size:13px;line-height:1.55;color:${this.colors.text};display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;`});U(v,s.message),this.root.insertBefore(f,this.arrow),this.root.insertBefore(v,this.arrow)}position(s){let i=this.root.getBoundingClientRect(),o=10,c=s.top-i.height-o,d=s.left+s.width/2-i.width/2,h=!0;c<8&&(c=s.bottom+o,h=!1),d=Math.max(8,Math.min(d,window.innerWidth-i.width-8)),this.root.style.top=`${c}px`,this.root.style.left=`${d}px`;let f=Math.max(16,Math.min(s.left+s.width/2-d-6,i.width-22));h?this.arrow.style.cssText=`
3086
3103
  position:absolute;
3087
3104
  width:12px;height:12px;
3088
3105
  background:${this.colors.glassBgHeavy};
@@ -3091,7 +3108,7 @@
3091
3108
  transform:rotate(45deg);
3092
3109
  pointer-events:none;
3093
3110
  bottom:-6px;
3094
- left:${a}px;
3111
+ left:${f}px;
3095
3112
  `:this.arrow.style.cssText=`
3096
3113
  position:absolute;
3097
3114
  width:12px;height:12px;
@@ -3101,8 +3118,8 @@
3101
3118
  transform:rotate(45deg);
3102
3119
  pointer-events:none;
3103
3120
  top:-6px;
3104
- left:${a}px;
3105
- `}contains(e){return this.root.contains(e)}destroy(){this.cancelShow(),this.cancelHide(),this.root.remove()}};var z=null;function xe(){let n=()=>{};return{destroy:n,open:n,close:n,refresh:n,on:()=>n,off:n}}function ns(n){let e=n.debug?(...m)=>console.debug("[siteping]",...m):()=>{};if(z)return e("initSiteping() called more than once \u2014 returning existing instance"),z;if(!n.forceShow)try{if(typeof process<"u"){let m="production";return console.info("[siteping] Widget not loaded: production mode detected. Use forceShow: true to override."),n.onSkip?.(m),xe()}}catch{}if(window.innerWidth<768){let m="mobile";return console.info(`[siteping] Widget not loaded: viewport width < ${768}px (mobile not supported).`),n.onSkip?.(m),xe()}if(!n.store&&(!n.endpoint||typeof n.endpoint!="string"))return console.error("[siteping] Missing 'endpoint' or 'store' in config. Provide an endpoint like '/api/siteping' or a SitepingStore instance."),xe();if(!n.projectName||typeof n.projectName!="string")return console.error("[siteping] Missing or invalid 'projectName' in config. Expected a non-empty string."),xe();let t=n.locale??"en",s=re(t);e("Initializing widget",{projectName:n.projectName,theme:n.theme??"light",locale:t});let o=gt(n.accentColor,n.theme),i=new $,r=new $,a=n.store?new ve(n.store,n.projectName):new oe(n.endpoint,n.projectName);n.onOpen&&i.on("open",n.onOpen),n.onClose&&i.on("close",n.onClose),n.onFeedbackSent&&i.on("feedback:sent",n.onFeedbackSent),n.onError&&i.on("feedback:error",n.onError),n.onAnnotationStart&&i.on("annotation:start",n.onAnnotationStart),n.onAnnotationEnd&&i.on("annotation:end",n.onAnnotationEnd),i.on("feedback:sent",m=>r.emit("feedback:sent",m)),i.on("feedback:deleted",m=>r.emit("feedback:deleted",m)),i.on("open",()=>r.emit("panel:open")),i.on("close",()=>r.emit("panel:close")),i.on("open",()=>e("Panel opened")),i.on("close",()=>e("Panel closed")),i.on("feedback:sent",m=>e("Feedback sent",m.id)),i.on("feedback:error",m=>e("Feedback failed",m.message)),i.on("annotation:start",()=>e("Annotation started")),i.on("annotation:end",()=>e("Annotation ended"));let p=document.createElement("siteping-widget");p.style.cssText=`position:fixed;z-index:${2147483647};`;let d=!1;try{typeof process<"u"&&process.env?.["NODE_ENV"]==="test"&&(d=!0)}catch{}let u=d?"open":"closed",h=p.attachShadow({mode:u});if("adoptedStyleSheets"in ShadowRoot.prototype){let m=new CSSStyleSheet;m.replaceSync(We(o)),h.adoptedStyleSheets=[m]}else{let m=document.createElement("style");m.textContent=We(o),h.appendChild(m)}document.body.appendChild(p);let f=document.createElement("div");f.setAttribute("role","status"),f.setAttribute("aria-live","polite"),f.setAttribute("aria-atomic","true"),f.style.cssText="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;",document.body.appendChild(f);let k=new ye(o,t),w=new pe(o,k,i,s),E=new ie(h,n,i,s),C=new fe(h,o,i,a,n.projectName,w,s,t),g=new ne(o,i,s),x=!1,y=i.on("annotation:complete",async m=>{if(!x){x=!0;try{let{annotation:T,type:A,message:S}=m,L=At();if(!L){if(L=await yn(h,s),!L)return;Lt(L)}let B=new URL(window.location.href);for(let R of[...B.searchParams.keys()])/token|key|secret|auth|session|password|code/i.test(R)&&B.searchParams.delete(R);let K=B.toString(),os=(()=>{try{return crypto.randomUUID()}catch{return`${Date.now()}-${Math.random().toString(36).slice(2)}`}})(),is={projectName:n.projectName,type:A,message:S,url:K,viewport:`${window.innerWidth}x${window.innerHeight}`,userAgent:navigator.userAgent,authorName:L.name,authorEmail:L.email,annotations:[T],clientId:os};try{let R=await a.sendFeedback(is);i.emit("feedback:sent",R),w.addFeedback(R,w.count+1),f.textContent=s("feedback.sent.confirmation"),await C.refresh()}catch(R){i.emit("feedback:error",R instanceof Error?R:new Error(String(R))),f.textContent=s("feedback.error.message")}}finally{x=!1}}});return a.getFeedbacks(n.projectName,{limit:20}).then(({feedbacks:m})=>{w.render(m)}).catch(m=>{e("Failed to load initial markers:",m)}),n.endpoint&&vt(n.endpoint).then(()=>e("Retry queue flushed")).catch(()=>{}),z={destroy:()=>{e("Destroying widget"),y(),E.destroy(),C.destroy(),g.destroy(),w.destroy(),k.destroy(),i.removeAll(),r.removeAll(),f.remove(),p.remove(),z=null},open:()=>{C.open()},close:()=>{C.close()},refresh:()=>{C.refresh()},on:(m,T)=>r.on(m,T),off:(m,T)=>{r.off(m,T)}},z}function yn(n,e){return new Promise(t=>{let s=n.activeElement??document.activeElement,o=document.createElement("div");o.style.cssText=`
3121
+ left:${f}px;
3122
+ `}contains(s){return this.root.contains(s)}destroy(){this.cancelShow(),this.cancelHide(),this.root.remove()}};var st=null;function yr(){let l=()=>{};return{destroy:l,open:l,close:l,refresh:l,on:()=>l,off:l}}function oa(l){let s=l.debug?(...D)=>console.debug("[siteping]",...D):()=>{};if(st)return s("initSiteping() called more than once \u2014 returning existing instance"),st;if(!l.forceShow)try{if(typeof process<"u"){let D="production";return console.info("[siteping] Widget not loaded: production mode detected. Use forceShow: true to override."),l.onSkip?.(D),yr()}}catch{}if(window.innerWidth<768){let D="mobile";return console.info(`[siteping] Widget not loaded: viewport width < ${768}px (mobile not supported).`),l.onSkip?.(D),yr()}if(!l.store&&(!l.endpoint||typeof l.endpoint!="string"))return console.error("[siteping] Missing 'endpoint' or 'store' in config. Provide an endpoint like '/api/siteping' or a SitepingStore instance."),yr();if(!l.projectName||typeof l.projectName!="string")return console.error("[siteping] Missing or invalid 'projectName' in config. Expected a non-empty string."),yr();let i=l.locale??"en",o=cr(i),c=l.scopeAnnotationsByUrl??!0,d=()=>{try{let D=l.getPageScope?.();if(D)return D}catch(D){s("getPageScope() threw, falling back to pathname:",D)}return{url:window.location.pathname,urlPattern:null}};s("Initializing widget",{projectName:l.projectName,theme:l.theme??"light",locale:i,scopeAnnotationsByUrl:c});let h=fo(l.accentColor,l.theme),f=new et,C=new et,Q=l.store?new Qr(l.store,l.projectName):new ar(l.endpoint,l.projectName);l.onOpen&&f.on("open",l.onOpen),l.onClose&&f.on("close",l.onClose),l.onFeedbackSent&&f.on("feedback:sent",l.onFeedbackSent),l.onError&&f.on("feedback:error",l.onError),l.onAnnotationStart&&f.on("annotation:start",l.onAnnotationStart),l.onAnnotationEnd&&f.on("annotation:end",l.onAnnotationEnd),f.on("feedback:sent",D=>C.emit("feedback:sent",D)),f.on("feedback:deleted",D=>C.emit("feedback:deleted",D)),f.on("open",()=>C.emit("panel:open")),f.on("close",()=>C.emit("panel:close")),f.on("open",()=>s("Panel opened")),f.on("close",()=>s("Panel closed")),f.on("feedback:sent",D=>s("Feedback sent",D.id)),f.on("feedback:error",D=>s("Feedback failed",D.message)),f.on("annotation:start",()=>s("Annotation started")),f.on("annotation:end",()=>s("Annotation ended"));let v=document.createElement("siteping-widget");v.style.cssText=`position:fixed;z-index:${2147483647};`;let y=!1;try{typeof process<"u"&&process.env?.["NODE_ENV"]==="test"&&(y=!0)}catch{}let T=y?"open":"closed",O=v.attachShadow({mode:T});if("adoptedStyleSheets"in ShadowRoot.prototype){let D=new CSSStyleSheet;D.replaceSync(Ys(h)),O.adoptedStyleSheets=[D]}else{let D=document.createElement("style");D.textContent=Ys(h),O.appendChild(D)}document.body.appendChild(v);let X=document.createElement("div");X.setAttribute("role","status"),X.setAttribute("aria-live","polite"),X.setAttribute("aria-atomic","true"),X.style.cssText="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;",document.body.appendChild(X);let j=new Fr(h,i),q=new Br(h,j,f,o),CA=new lr(O,l,f,o),M=new vr(O,h,f,Q,l.projectName,q,o,i,{getScope:d,scopeAnnotationsByUrl:c}),R=new or(h,f,o,l.enableScreenshot??!1),V=!1,sA=f.on("annotation:complete",async D=>{if(!V){V=!0;try{let{annotation:uA,type:BA,message:VA,screenshotDataUrl:Ee}=D,XA=Lo();if(!XA){if(XA=await KB(O,o),!XA)return;So(XA)}let Ur=(()=>{try{return crypto.randomUUID()}catch{return`${Date.now()}-${Math.random().toString(36).slice(2)}`}})(),He=d(),xr={projectName:l.projectName,type:BA,message:VA,url:He.url,urlPattern:He.urlPattern,viewport:`${window.innerWidth}x${window.innerHeight}`,userAgent:navigator.userAgent,authorName:XA.name,authorEmail:XA.email,annotations:[uA],clientId:Ur,screenshotDataUrl:Ee??null};try{let MA=await Q.sendFeedback(xr);f.emit("feedback:sent",MA),(!c||MA.url===He.url)&&q.addFeedback(MA,q.count+1),X.textContent=o("feedback.sent.confirmation"),await M.refresh()}catch(MA){f.emit("feedback:error",MA instanceof Error?MA:new Error(String(MA))),X.textContent=o("feedback.error.message")}}finally{V=!1}}}),aA=d(),iA=c?{limit:20,url:aA.url}:{limit:20};return Q.getFeedbacks(l.projectName,iA).then(({feedbacks:D})=>{let uA=c?D.filter(BA=>BA.url===aA.url):D;q.render(uA)}).catch(D=>{s("Failed to load initial markers:",D)}),l.endpoint&&Qo(l.endpoint).then(()=>s("Retry queue flushed")).catch(()=>{}),st={destroy:()=>{s("Destroying widget"),sA(),CA.destroy(),M.destroy(),R.destroy(),q.destroy(),j.destroy(),f.removeAll(),C.removeAll(),X.remove(),v.remove(),st=null},open:()=>{M.open()},close:()=>{M.close()},refresh:()=>{if(M.isCurrentlyOpen){M.refresh();return}let D=d(),uA=c?{limit:20,url:D.url}:{limit:20};Q.getFeedbacks(l.projectName,uA).then(({feedbacks:BA})=>{let VA=c?BA.filter(Ee=>Ee.url===D.url):BA;q.render(VA)}).catch(()=>{})},on:(D,uA)=>C.on(D,uA),off:(D,uA)=>{C.off(D,uA)}},st}function KB(l,s){return new Promise(i=>{let o=l.activeElement??document.activeElement,c=document.createElement("div");c.style.cssText=`
3106
3123
  position:fixed;inset:0;
3107
3124
  background:var(--sp-identity-overlay);
3108
3125
  backdrop-filter:blur(8px);
@@ -3110,7 +3127,7 @@
3110
3127
  display:flex;align-items:center;justify-content:center;
3111
3128
  z-index:${2147483647};
3112
3129
  opacity:0;transition:opacity 0.25s ease;
3113
- `;let i=document.createElement("div");i.style.cssText=`
3130
+ `;let d=document.createElement("div");d.style.cssText=`
3114
3131
  width:340px;padding:28px;border-radius:var(--sp-radius-xl);
3115
3132
  background:var(--sp-identity-bg);
3116
3133
  backdrop-filter:blur(var(--sp-blur-heavy));
@@ -3122,5 +3139,28 @@
3122
3139
  transform:translateY(12px) scale(0.97);
3123
3140
  transition:transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
3124
3141
  -webkit-font-smoothing:antialiased;
3125
- `;let r=`sp-identity-title-${Date.now()}`;i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.setAttribute("aria-labelledby",r);let a=document.createElement("div");a.className="sp-identity-title",a.id=r,a.textContent=e("identity.title"),a.style.marginBottom="20px";let p=`sp-identity-name-${Date.now()}`,d=`sp-identity-email-${Date.now()}`,u=document.createElement("label");u.className="sp-input-label",u.textContent=e("identity.nameLabel"),u.setAttribute("for",p);let h=document.createElement("input");h.className="sp-input",h.id=p,h.type="text",h.placeholder=e("identity.namePlaceholder"),h.style.marginBottom="14px";let b=document.createElement("label");b.className="sp-input-label",b.textContent=e("identity.emailLabel"),b.setAttribute("for",d);let f=document.createElement("input");f.className="sp-input",f.id=d,f.type="email",f.placeholder=e("identity.emailPlaceholder");let k=document.createElement("div");k.style.cssText="display:flex;gap:8px;justify-content:flex-end;margin-top:20px;";let w=y=>{o.removeEventListener("keydown",x),o.style.opacity="0",i.style.transform="translateY(12px) scale(0.97)",setTimeout(()=>{o.remove(),s?.focus(),t(y)},250)},E=document.createElement("button");E.className="sp-btn-ghost",E.textContent=e("identity.cancel"),E.addEventListener("click",()=>w(null));let C=document.createElement("button");C.className="sp-btn-primary",C.textContent=e("identity.submit"),C.addEventListener("click",()=>{let y=h.value.trim(),m=f.value.trim();if(!y||!m)return;if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(m)){f.style.borderColor="var(--sp-type-bug, #ef4444)";return}w({name:y,email:m})});let g='input, button, [tabindex]:not([tabindex="-1"])',x=y=>{let m=y;if(m.key==="Escape"){w(null);return}if(m.key==="Tab"){let T=Array.from(i.querySelectorAll(g));if(T.length===0)return;let A=T[0],S=T[T.length-1];if(!A||!S)return;let L=n.activeElement;m.shiftKey?(L===A||!i.contains(L))&&(m.preventDefault(),S.focus()):(L===S||!i.contains(L))&&(m.preventDefault(),A.focus())}};o.addEventListener("keydown",x),o.addEventListener("click",y=>{y.target===o&&w(null)}),k.appendChild(E),k.appendChild(C),i.appendChild(a),i.appendChild(u),i.appendChild(h),i.appendChild(b),i.appendChild(f),i.appendChild(k),o.appendChild(i),n.appendChild(o),requestAnimationFrame(()=>{o.style.opacity="1",i.style.transform="translateY(0) scale(1)",h.focus()})})}function xn(n){return ns(n)}return cs(kn);})();
3142
+ `;let h=`sp-identity-title-${Date.now()}`;d.setAttribute("role","dialog"),d.setAttribute("aria-modal","true"),d.setAttribute("aria-labelledby",h);let f=document.createElement("div");f.className="sp-identity-title",f.id=h,f.textContent=s("identity.title"),f.style.marginBottom="20px";let C=`sp-identity-name-${Date.now()}`,Q=`sp-identity-email-${Date.now()}`,v=document.createElement("label");v.className="sp-input-label",v.textContent=s("identity.nameLabel"),v.setAttribute("for",C);let y=document.createElement("input");y.className="sp-input",y.id=C,y.type="text",y.placeholder=s("identity.namePlaceholder"),y.style.marginBottom="14px";let T=document.createElement("label");T.className="sp-input-label",T.textContent=s("identity.emailLabel"),T.setAttribute("for",Q);let O=document.createElement("input");O.className="sp-input",O.id=Q,O.type="email",O.placeholder=s("identity.emailPlaceholder");let G=document.createElement("div");G.style.cssText="display:flex;gap:8px;justify-content:flex-end;margin-top:20px;";let X=R=>{c.removeEventListener("keydown",M),c.style.opacity="0",d.style.transform="translateY(12px) scale(0.97)",setTimeout(()=>{c.remove(),o?.focus(),i(R)},250)},j=document.createElement("button");j.className="sp-btn-ghost",j.textContent=s("identity.cancel"),j.addEventListener("click",()=>X(null));let q=document.createElement("button");q.className="sp-btn-primary",q.textContent=s("identity.submit"),q.addEventListener("click",()=>{let R=y.value.trim(),V=O.value.trim();if(!R||!V)return;if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(V)){O.style.borderColor="var(--sp-type-bug, #ef4444)";return}X({name:R,email:V})});let CA='input, button, [tabindex]:not([tabindex="-1"])',M=R=>{let V=R;if(V.key==="Escape"){X(null);return}if(V.key==="Tab"){let sA=Array.from(d.querySelectorAll(CA));if(sA.length===0)return;let aA=sA[0],iA=sA[sA.length-1];if(!aA||!iA)return;let D=l.activeElement;V.shiftKey?(D===aA||!d.contains(D))&&(V.preventDefault(),iA.focus()):(D===iA||!d.contains(D))&&(V.preventDefault(),aA.focus())}};c.addEventListener("keydown",M),c.addEventListener("click",R=>{R.target===c&&X(null)}),G.appendChild(j),G.appendChild(q),d.appendChild(f),d.appendChild(v),d.appendChild(y),d.appendChild(T),d.appendChild(O),d.appendChild(G),c.appendChild(d),l.appendChild(c),requestAnimationFrame(()=>{c.style.opacity="1",d.style.transform="translateY(0) scale(1)",y.focus()})})}function DB(l){return oa(l)}return Uu(MB);})();
3143
+ /*! Bundled license information:
3144
+
3145
+ html2canvas/dist/html2canvas.js:
3146
+ (*!
3147
+ * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
3148
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
3149
+ * Released under MIT License
3150
+ *)
3151
+ (*! *****************************************************************************
3152
+ Copyright (c) Microsoft Corporation.
3153
+
3154
+ Permission to use, copy, modify, and/or distribute this software for any
3155
+ purpose with or without fee is hereby granted.
3156
+
3157
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3158
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3159
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3160
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3161
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3162
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3163
+ PERFORMANCE OF THIS SOFTWARE.
3164
+ ***************************************************************************** *)
3165
+ */
3126
3166
  //# sourceMappingURL=index.global.js.map