@siteping/widget 0.9.5 → 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 le=Object.defineProperty;var ht=Object.getOwnPropertyDescriptor;var ft=Object.getOwnPropertyNames;var mt=Object.prototype.hasOwnProperty;var gt=(t,e)=>{for(var n in e)le(t,n,{get:e[n],enumerable:!0})},bt=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ft(e))!mt.call(t,s)&&s!==n&&le(t,s,{get:()=>e[s],enumerable:!(i=ht(e,s))||i.enumerable});return t};var yt=t=>bt(le({},"__esModule",{value:!0}),t);var Jt={};gt(Jt,{initSiteping:()=>Qt});var M,de,Le;function Me(t,e){if(Le=new Date,t.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(t.tagName.toLowerCase()==="html")return"html";let n={root:document.body,idName:s=>!0,className:s=>!0,tagName:s=>!0,attr:(s,o)=>!1,seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};M={...n,...e},de=vt(M.root,n);let i=K(t,"all",()=>K(t,"two",()=>K(t,"one",()=>K(t,"none"))));if(i){let s=Pe(Be(i,t));return s.length>0&&(i=s[0]),q(i)}else throw new Error("Selector was not found.")}function vt(t,e){return t.nodeType===Node.DOCUMENT_NODE?t:t===e.root?t.ownerDocument:t}function K(t,e,n){let i=null,s=[],o=t,r=0;for(;o;){let a=new Date().getTime()-Le.getTime();if(M.timeoutMs!==void 0&&a>M.timeoutMs)throw new Error(`Timeout: Can't find a unique selector after ${a}ms`);let l=W(xt(o))||W(...kt(o))||W(...wt(o))||W(Et(o))||[Fe()],c=Ct(o);if(e=="all")c&&(l=l.concat(l.filter(ce).map(d=>Y(d,c))));else if(e=="two")l=l.slice(0,1),c&&(l=l.concat(l.filter(ce).map(d=>Y(d,c))));else if(e=="one"){let[d]=l=l.slice(0,1);c&&ce(d)&&(l=[Y(d,c)])}else e=="none"&&(l=[Fe()],c&&(l=[Y(l[0],c)]));for(let d of l)d.level=r;if(s.push(l),s.length>=M.seedMinLength&&(i=Se(s,n),i))break;o=o.parentElement,r++}return i||(i=Se(s,n)),!i&&n?n():i}function Se(t,e){let n=Pe(Re(t));if(n.length>M.threshold)return e?e():null;for(let i of n)if(Ie(i))return i;return null}function q(t){let e=t[0],n=e.name;for(let i=1;i<t.length;i++){let s=t[i].level||0;e.level===s-1?n=`${t[i].name} > ${n}`:n=`${t[i].name} ${n}`,e=t[i]}return n}function Ae(t){return t.map(e=>e.penalty).reduce((e,n)=>e+n,0)}function Ie(t){let e=q(t);switch(de.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 xt(t){let e=t.getAttribute("id");return e&&M.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null}function kt(t){return Array.from(t.attributes).filter(n=>M.attr(n.name,n.value)).map(n=>({name:`[${CSS.escape(n.name)}="${CSS.escape(n.value)}"]`,penalty:.5}))}function wt(t){return Array.from(t.classList).filter(M.className).map(n=>({name:"."+CSS.escape(n),penalty:1}))}function Et(t){let e=t.tagName.toLowerCase();return M.tagName(e)?{name:e,penalty:2}:null}function Fe(){return{name:"*",penalty:3}}function Ct(t){let e=t.parentNode;if(!e)return null;let n=e.firstChild;if(!n)return null;let i=0;for(;n&&(n.nodeType===Node.ELEMENT_NODE&&i++,n!==t);)n=n.nextSibling;return i}function Y(t,e){return{name:t.name+`:nth-child(${e})`,penalty:t.penalty+1}}function ce(t){return t.name!=="html"&&!t.name.startsWith("#")}function W(...t){let e=t.filter(Tt);return e.length>0?e:null}function Tt(t){return t!=null}function*Re(t,e=[]){if(t.length>0)for(let n of t[0])yield*Re(t.slice(1,t.length),e.concat(n));else yield e}function Pe(t){return[...t].sort((e,n)=>Ae(e)-Ae(n))}function*Be(t,e,n={counter:0,visited:new Map}){if(t.length>2&&t.length>M.optimizedMinLength)for(let i=1;i<t.length-1;i++){if(n.counter>M.maxNumberOfTries)return;n.counter+=1;let s=[...t];s.splice(i,1);let o=q(s);if(n.visited.has(o))return;Ie(s)&&St(s,e)&&(yield s,n.visited.set(o,!0),yield*Be(s,e,n))}}function St(t,e){return de.querySelector(q(t))===e}var At=["role","aria-label","type","name","href","src","data-testid","data-id"];function Ft(t){let e=5381;for(let n=0;n<t.length;n++)e=(e<<5)+e+t.charCodeAt(n)|0;return(e>>>0).toString(36)}function pe(t){let e=t.children.length,n=0,i=t.parentElement;if(i)for(let r of i.children){if(r===t)break;r.tagName===t.tagName&&n++}let s=[];for(let r of At){let a=t.getAttribute(r);a&&s.push(`${r}=${a}`)}let o=s.length>0?Ft(s.join(",")):"0";return`${e}:${n}:${o}`}function Ne(t,e){let n=e.split(":");if(n.length!==3)return 0;let[i,s,o]=n,r=Number(i),a=Number(s);if(Number.isNaN(r)||Number.isNaN(a))return 0;let l=pe(t),[c,d,p]=l.split(":"),f=0,m=Math.abs(Number(c)-r);m===0?f+=.2:m<=2?f+=.1:m<=5&&(f+=.03);let y=Math.abs(Number(d)-a);return y===0?f+=.4:y===1?f+=.2:y<=3&&(f+=.08),p===o&&(f+=.4),f}function N(t,e){let n=e==="before"?"previousElementSibling":"nextElementSibling",i=t[n],s=3;for(;i&&s>0;){let o=i.textContent?.trim();if(o)return e==="before"?o.slice(-32):o.slice(0,32);i=i[n],s--}return""}function U(t){let e=t.previousElementSibling?.textContent?.trim().slice(0,40)??"",n=t.nextElementSibling?.textContent?.trim().slice(0,40)??"";return[e,n].filter(Boolean).join(" | ")}function $e(t){if(t.id){let i=t.id.includes("'")?`concat('${t.id.replace(/'/g,`',"'",'`)}')`:`'${t.id}'`;return`//${t.localName}[@id=${i}]`}let e=[],n=t;for(;n&&n!==document.body&&e.length<6;){let i=n.localName,s=n.parentElement;if(n.id){let r=n.id.includes("'")?`concat('${n.id.replace(/'/g,`',"'",'`)}')`:`'${n.id}'`;return e.unshift(`/${i}[@id=${r}]`),"/"+e.join("")}let o=1;if(s)for(let r of s.children){if(r===n)break;r.localName===i&&o++}e.unshift(`/${i}[${o}]`),n=s}return"/html/body"+e.join("")}function ue(t){let e=Me(t,{className:c=>!/^(css|sc|emotion|styled)-/.test(c)&&!/^[a-z]{1,3}[A-Za-z0-9]{4,8}$/.test(c),attr:c=>["data-testid","data-id","role","aria-label"].includes(c),idName:c=>!c.startsWith("radix-")&&!/^:r[0-9]+:$/.test(c),seedMinLength:3,optimizedMinLength:2}),n=$e(t),s=(t.textContent?.trim()??"").slice(0,120),o=N(t,"before"),r=N(t,"after"),a=pe(t),l=U(t);return{cssSelector:e,xpath:n,textSnippet:s,textPrefix:o,textSuffix:r,fingerprint:a,neighborText:l,elementTag:t.tagName,elementId:t.id||void 0}}function De(t,e=document.documentElement){let n=t.x+t.width/2,i=t.y+t.height/2,s=document.elementFromPoint(n,i);if(!s||s===e)return document.body;let o=s,r=s;for(;r&&r!==document.body;){let a=r.getBoundingClientRect();if(a.left<=t.x&&a.top<=t.y&&a.right>=t.x+t.width&&a.bottom>=t.y+t.height){o=r;break}r=r.parentElement}return o}function He(t,e){return e.width<=0||e.height<=0?{xPct:0,yPct:0,wPct:1,hPct:1}:{xPct:(t.x-e.x)/e.width,yPct:(t.y-e.y)/e.height,wPct:t.width/e.width,hPct:t.height/e.height}}function F(t){let i=document.createRange().createContextualFragment(t).firstElementChild;if(!i||i.nodeName.toLowerCase()!=="svg")throw new Error("[siteping] Invalid SVG string");for(let s of[...i.attributes])s.name.startsWith("on")&&i.removeAttribute(s.name);for(let s of i.querySelectorAll("*"))for(let o of[...s.attributes])o.name.startsWith("on")&&s.removeAttribute(o.name);return i}function h(t,e){let n=document.createElement(t);if(e)for(let[i,s]of Object.entries(e))i==="class"?n.className=s:i==="style"?n.style.cssText=s:n.setAttribute(i,s);return n}function b(t,e){t.textContent=e}function X(t,e="fr"){let n=Date.now()-new Date(t).getTime(),i=Math.floor(n/1e3);if(i<60)return new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"second");let s=new Intl.RelativeTimeFormat(e,{numeric:"always",style:"narrow"}),o=Math.floor(i/60);if(o<60)return s.format(-o,"minute");let r=Math.floor(o/60);if(r<24)return s.format(-r,"hour");let a=Math.floor(r/24);return a<7?s.format(-a,"day"):new Date(t).toLocaleDateString(e)}var he='<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>',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 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>',je='<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>',fe='<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>',me='<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>',ze='<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>',_e='<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>',Ke='<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>',Ye='<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>',We='<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>',qe='<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>',Ue='<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>',ge='<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 Ge="#0066ff",Lt=/^#[0-9a-fA-F]{6}$/,Xe=/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/,Mt=/^#[0-9a-fA-F]{8}$/;function It(t){if(Lt.test(t))return t;let e=Xe.test(t)?t.match(Xe):null;return e?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:Mt.test(t)?t.slice(0,7):(console.warn(`[siteping] Invalid accentColor "${t}" \u2014 only hex colors (#RGB, #RRGGBB, #RRGGBBAA) are supported. Using default.`),Ge)}function Rt(t,e){let n=Math.max(0,Math.round(parseInt(t.slice(1,3),16)*(1-e))),i=Math.max(0,Math.round(parseInt(t.slice(3,5),16)*(1-e))),s=Math.max(0,Math.round(parseInt(t.slice(5,7),16)*(1-e)));return`#${n.toString(16).padStart(2,"0")}${i.toString(16).padStart(2,"0")}${s.toString(16).padStart(2,"0")}`}function Pt(){return typeof window>"u"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}function Bt(t){return t==="dark"||t==="auto"&&Pt()?"dark":"light"}function Ve(t=Ge,e){let n=It(t),i=Rt(n,.15);return Bt(e)==="dark"?{accent:n,accentLight:n+"22",accentDark:i,accentGlow:n+"44",accentGradient:`linear-gradient(135deg, ${n}, ${i})`,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)"}:{accent:n,accentLight:n+"14",accentDark:i,accentGlow:n+"33",accentGradient:`linear-gradient(135deg, ${n}, ${i})`,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"}}function I(t,e){switch(t){case"question":return e.typeQuestion;case"change":return e.typeChange;case"bug":return e.typeBug;default:return e.typeOther}}function P(t,e){switch(t){case"question":return e.typeQuestionBg;case"change":return e.typeChangeBg;case"bug":return e.typeBugBg;default:return e.typeOtherBg}}function Qe(t){return`
2
- --sp-accent: ${t.accent};
3
- --sp-accent-light: ${t.accentLight};
4
- --sp-accent-dark: ${t.accentDark};
5
- --sp-accent-glow: ${t.accentGlow};
6
- --sp-accent-gradient: ${t.accentGradient};
7
- --sp-bg: ${t.bg};
8
- --sp-bg-hover: ${t.bgHover};
9
- --sp-text: ${t.text};
10
- --sp-text-secondary: ${t.textSecondary};
11
- --sp-text-tertiary: ${t.textTertiary};
12
- --sp-border: ${t.border};
13
- --sp-shadow: ${t.shadow};
14
- --sp-glass-bg: ${t.glassBg};
15
- --sp-glass-bg-heavy: ${t.glassBgHeavy};
16
- --sp-glass-border: ${t.glassBorder};
17
- --sp-glass-border-subtle: ${t.glassBorderSubtle};
18
- --sp-type-question: ${t.typeQuestion};
19
- --sp-type-change: ${t.typeChange};
20
- --sp-type-bug: ${t.typeBug};
21
- --sp-type-other: ${t.typeOther};
22
- --sp-type-question-bg: ${t.typeQuestionBg};
23
- --sp-type-change-bg: ${t.typeChangeBg};
24
- --sp-type-bug-bg: ${t.typeBugBg};
25
- --sp-type-other-bg: ${t.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="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcs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ADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAA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tIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQ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AQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA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AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBX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BXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsA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AUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAe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AUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACU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VwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",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+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC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ToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAI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UBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4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AAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",$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,9 +39,9 @@
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 V=class{constructor(e,n){this.colors=e;this.t=n;this.root=h("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
- z-index:2147483647;
44
+ z-index:${2147483647};
41
45
  width:300px;
42
46
  padding:16px;
43
47
  border-radius:16px;
@@ -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 i=[{type:"question",label:this.t("type.question"),icon:Ke},{type:"change",label:this.t("type.change"),icon:Ye},{type:"bug",label:this.t("type.bug"),icon:We},{type:"other",label:this.t("type.other"),icon:qe}],s=h("div",{style:"display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px;"});for(let d of i){let p=document.createElement("button");p.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 f=F(d.icon);f.setAttribute("style","width:13px;height:13px;flex-shrink:0;"),p.appendChild(f);let m=document.createElement("span");b(m,d.label),p.appendChild(m),p.dataset.type=d.type,p.setAttribute("aria-pressed","false"),p.addEventListener("click",()=>{this.selectType(d.type,s)}),p.addEventListener("mouseenter",()=>{if(p.dataset.type!==this.selectedType){let y=P(p.dataset.type??"",this.colors);p.style.background=y,p.style.borderColor=I(p.dataset.type??"",this.colors)+"40"}}),p.addEventListener("mouseleave",()=>{p.dataset.type!==this.selectedType&&(p.style.background=this.colors.glassBg,p.style.borderColor=this.colors.border)}),s.appendChild(p)}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 o=h("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);b(o,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",d=>{d.key==="Enter"&&(d.ctrlKey||d.metaKey)&&(d.preventDefault(),this.submit()),d.key==="Escape"&&this.cancel()});let l=h("div",{style:"display:flex;justify-content:flex-end;gap:8px;margin-top:12px;"}),c=document.createElement("button");c.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
- `,b(c,this.t("popup.cancel")),c.addEventListener("click",()=>this.cancel()),c.addEventListener("mouseenter",()=>{c.style.borderColor=this.colors.accent,c.style.color=this.colors.accent}),c.addEventListener("mouseleave",()=>{c.style.borderColor=this.colors.border,c.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,14 +94,14 @@
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
- `,b(this.submitBtn,this.t("popup.submit")),this.submitBtn.addEventListener("click",()=>this.submit()),l.appendChild(c),l.appendChild(this.submitBtn),this.root.appendChild(s),this.root.appendChild(this.textarea),this.root.appendChild(o),this.root.appendChild(l),document.body.appendChild(this.root)}colors;t;root;selectedType=null;textarea;submitBtn;resolve=null;previouslyFocused=null;onKeydownTrap=null;show(e){return new Promise(n=>{this.resolve=n,this.selectedType=null,this.textarea.value="",this.updateSubmitState(),this.resetTypeButtons(),this.previouslyFocused=document.activeElement;let i=e.bottom+8,s=e.left;i+220>window.innerHeight&&(i=e.top-220-8),s+300>window.innerWidth&&(s=e.right-300),s=Math.max(8,s),i=Math.max(8,i),this.root.style.top=`${i}px`,this.root.style.left=`${s}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 l=a[0],c=a[a.length-1];if(!l||!c)return;r.shiftKey?(document.activeElement===l||!this.root.contains(document.activeElement))&&(r.preventDefault(),c.focus()):(document.activeElement===c||!this.root.contains(document.activeElement))&&(r.preventDefault(),l.focus())}},this.root.addEventListener("keydown",this.onKeydownTrap);let o=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;this.root.style.transition=o?"none":"",requestAnimationFrame(()=>{this.root.style.opacity="1",this.root.style.transform="translateY(0) scale(1)",this.textarea.focus()})})}selectType(e,n){this.selectedType=e;let i=n.querySelectorAll("button");for(let s of i){let o=s.dataset.type===e,r=I(s.dataset.type??"",this.colors),a=P(s.dataset.type??"",this.colors);s.style.background=o?a:this.colors.glassBg,s.style.borderColor=o?r+"60":this.colors.border,s.style.color=o?r:this.colors.textTertiary,s.style.fontWeight=o?"600":"500",s.setAttribute("aria-pressed",String(o))}this.updateSubmitState()}resetTypeButtons(){let e=this.root.querySelectorAll("button[data-type]");for(let n of e)n.setAttribute("aria-pressed","false"),n.style.background=this.colors.glassBg,n.style.borderColor=this.colors.border,n.style.color=this.colors.textTertiary,n.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 Q=class{constructor(e,n,i){this.colors=e;this.bus=n;this.t=i;this.popup=new V(e,i),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=h("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
- z-index:2147483646;
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=h("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
- z-index:2147483647;
104
+ z-index:${2147483647};
101
105
  height:52px;
102
106
  background:${this.colors.glassBg};
103
107
  backdrop-filter:blur(24px);
@@ -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=h("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
- `}),n=document.createElement("style");n.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(n);let i=h("span",{style:"font-weight:500;letter-spacing:-0.01em;"});b(i,this.t("annotator.instruction"));let s=document.createElement("button");s.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
- `,b(s,this.t("annotator.cancel")),s.addEventListener("click",()=>this.deactivate()),s.addEventListener("mouseenter",()=>{s.style.borderColor=this.colors.typeBug,s.style.color=this.colors.typeBug,s.style.background=this.colors.typeBugBg}),s.addEventListener("mouseleave",()=>{s.style.borderColor=this.colors.border,s.style.color=this.colors.textTertiary,s.style.background=this.colors.glassBg}),this.toolbar.appendChild(e),this.toolbar.appendChild(i),this.toolbar.appendChild(s),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 n=this.preActiveFocusElement;if(!n||!(n instanceof HTMLElement))return;let i=n.getBoundingClientRect();if(i.width<=0||i.height<=0)return;let s=new DOMRect(i.x,i.y,i.width,i.height),o=await this.popup.show(s);if(!o)return;let a={anchor:ue(n),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:o.type,message:o.message})};onMouseDown=e=>{this.startDrawing(e.clientX,e.clientY)};onTouchStart=e=>{e.preventDefault();let n=e.touches[0];n&&this.startDrawing(n.clientX,n.clientY)};startDrawing(e,n){this.isDrawing=!0,this.startX=e,this.startY=n,this.drawingRect?.remove(),this.drawingRect=h("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 n=this.pendingMoveEvent;if(!n||!this.drawingRect)return;let i=Math.min(n.clientX,this.startX),s=Math.min(n.clientY,this.startY),o=Math.abs(n.clientX-this.startX),r=Math.abs(n.clientY-this.startY);this.drawingRect.style.left=`${i}px`,this.drawingRect.style.top=`${s}px`,this.drawingRect.style.width=`${o}px`,this.drawingRect.style.height=`${r}px`})))}onTouchEnd=async e=>{let n=e.changedTouches[0];n&&await this.finishDrawing(n.clientX,n.clientY)};onMouseUp=async e=>{await this.finishDrawing(e.clientX,e.clientY)};finishDrawing=async(e,n)=>{if(!this.isDrawing||!this.drawingRect)return;this.isDrawing=!1;let i=Math.min(e,this.startX),s=Math.min(n,this.startY),o=Math.abs(e-this.startX),r=Math.abs(n-this.startY);if(o<10||r<10){this.drawingRect.remove(),this.drawingRect=null;return}let a=new DOMRect(i,s,o,r),l=await this.popup.show(a);if(!l){this.drawingRect?.remove(),this.drawingRect=null;return}let c=this.buildAnnotation(a);this.drawingRect?.remove(),this.drawingRect=null,this.deactivate(),this.bus.emit("annotation:complete",{annotation:c,type:l.type,message:l.message})};buildAnnotation(e){this.overlay&&(this.overlay.style.pointerEvents="none");let n=De(e);this.overlay&&(this.overlay.style.pointerEvents="auto");let i=ue(n),s=n.getBoundingClientRect(),o=He(e,s);return{anchor:i,rect:o,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 D(t,e,n=3){for(let i=0;i<=n;i++){let s=new AbortController,o=setTimeout(()=>s.abort(),1e4);try{let l=await fetch(t,{...e,signal:s.signal});if(clearTimeout(o),l.ok||l.status>=400&&l.status<500||i===n)return l}catch(l){if(clearTimeout(o),i===n)throw l}let r=1e3*2**i,a=Math.random()*1e3-500;await new Promise(l=>setTimeout(l,r+a))}throw new Error("Max retries exceeded")}function Nt(t,e){try{let n=localStorage.getItem(H),i=n?JSON.parse(n):[],s=Array.isArray(i)?i:[];s.length>=20&&s.shift(),s.push({endpoint:t,payload:e}),localStorage.setItem(H,JSON.stringify(s))}catch{}}async function Je(t){try{let e=localStorage.getItem(H);if(!e)return;let n=JSON.parse(e),i=Array.isArray(n)?n:[],s=i.filter(a=>a.endpoint===t);if(s.length===0)return;let o=[];for(let a of s)try{(await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a.payload)})).ok||o.push(a)}catch{o.push(a)}let r=i.filter(a=>a.endpoint!==t).concat(o);r.length>0?localStorage.setItem(H,JSON.stringify(r)):localStorage.removeItem(H)}catch{}}var J=class{constructor(e,n){this.endpoint=e;this.projectName=n}endpoint;projectName;async sendFeedback(e){try{let n=await D(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!n.ok){let i=await n.text().catch(()=>"Unknown error");throw new Error(`Failed to send feedback: ${n.status} ${i}`)}return await n.json()}catch(n){throw Nt(this.endpoint,e),n}}async getFeedbacks(e,n){let i=new URLSearchParams({projectName:e});n?.page&&i.set("page",String(n.page)),n?.limit&&i.set("limit",String(n.limit)),n?.type&&i.set("type",n.type),n?.status&&i.set("status",n.status),n?.search&&i.set("search",n.search);let s=await D(`${this.endpoint}?${i.toString()}`,{method:"GET",cache:"no-store"});if(!s.ok)throw new Error(`Failed to fetch feedbacks: ${s.status}`);return await s.json()}async resolveFeedback(e,n){let i=await D(this.endpoint,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,projectName:this.projectName,status:n?"resolved":"open"})});if(!i.ok)throw new Error(`Failed to update feedback: ${i.status}`);return await i.json()}async deleteFeedback(e){let n=await D(this.endpoint,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,projectName:this.projectName})});if(!n.ok)throw new Error(`Failed to delete feedback: ${n.status}`)}async deleteAllFeedbacks(e){let n=await D(this.endpoint,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectName:e,deleteAll:!0})});if(!n.ok)throw new Error(`Failed to delete all feedbacks: ${n.status}`)}};var O=class{listeners=new Map;on(e,n){this.listeners.has(e)||this.listeners.set(e,new Set);let i=this.listeners.get(e);return i.add(n),()=>{i.delete(n)}}off(e,n){let i=this.listeners.get(e);i&&i.delete(n)}emit(e,...n){let i=this.listeners.get(e);if(i)for(let s of i)try{s(...n)}catch(o){console.error(`[siteping] Error in event listener for "${String(e)}":`,o)}}removeAll(){this.listeners.clear()}};var $t=54,Z=class{constructor(e,n,i,s){this.bus=i;this.t=s;let o=n.position??"bottom-right",r=o==="bottom-right";this.items=[{id:"chat",icon:Oe,label:s("fab.messages")},{id:"annotate",icon:je,label:s("fab.annotate")},{id:"toggle-annotations",icon:fe,iconAlt:me,label:s("fab.annotations")}],this.fab=document.createElement("button"),this.fab.className=`sp-fab sp-fab--${o} sp-anim-fab-in`,this.fab.style.position="fixed",this.fab.appendChild(F(he)),this.fab.setAttribute("aria-label",s("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--${o}`,this.radialContainer.setAttribute("role","menu");for(let c=0;c<this.items.length;c++){let d=this.items[c];if(!d)continue;let p=document.createElement("button");p.className="sp-radial-item",p.style.setProperty("--sp-i",String(c)),p.appendChild(F(d.icon)),p.setAttribute("role","menuitem"),p.setAttribute("aria-label",d.label),p.dataset.itemId=d.id,p.addEventListener("click",m=>{m.stopPropagation(),this.handleItemClick(d.id)});let f=document.createElement("span");f.className="sp-radial-label",f.textContent=d.label,f.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;",p.appendChild(f),this.radialContainer.appendChild(p)}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=c=>{this.isOpen&&!c.composedPath().includes(a)&&this.close()},document.addEventListener("click",this.onDocumentClick);let l=c=>{c.key==="Escape"&&this.isOpen&&(c.stopPropagation(),this.close())};this.fab.addEventListener("keydown",l),this.radialContainer.addEventListener("keydown",l),this.radialContainer.addEventListener("keydown",c=>{let d=Array.from(this.radialContainer.querySelectorAll(".sp-radial-item"));if(d.length===0||!this.isOpen)return;let p=e.activeElement??document.activeElement,f=d.indexOf(p);switch(c.key){case"ArrowUp":{c.preventDefault();let m=f<=0?d.length-1:f-1;d[m]?.focus();break}case"ArrowDown":{c.preventDefault();let m=f>=d.length-1?0:f+1;d[m]?.focus();break}case"Home":{c.preventDefault(),d[0]?.focus();break}case"End":{c.preventDefault(),d[d.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 n=e>99?"99+":String(e);b(this.badgeEl,n),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((n,i)=>{let s=-(16+$t*(i+1));n.style.transform=`translate(0px, ${s}px) scale(1)`,n.classList.add("sp-radial-item--open")}),requestAnimationFrame(()=>{this.radialContainer.querySelector(".sp-radial-item")?.focus()})}close(){this.isOpen=!1,this.setFabIcon(he),this.fab.setAttribute("aria-expanded","false"),this.radialContainer.querySelectorAll(".sp-radial-item").forEach(n=>{n.style.transform="translate(0, 0) scale(0.8)",n.classList.remove("sp-radial-item--open")}),this.fab.focus()}setFabIcon(e){let n=this.badgeEl;this.fab.replaceChildren(F(e)),n&&this.fab.appendChild(n)}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 n=this.radialContainer.querySelector('[data-item-id="toggle-annotations"]');n&&n.replaceChildren(F(this.annotationsVisible?fe:me));break}}}destroy(){document.removeEventListener("click",this.onDocumentClick),this.root.remove()}};var Ze={"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","type.question":"Question","type.change":"Change","type.bug":"Bug","type.other":"Other","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 et={"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","type.question":"Question","type.change":"Changement","type.bug":"Bug","type.other":"Autre","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 be={fr:et,en:Ze};function ee(t){let e=(t.split("-")[0]??t).toLowerCase();be[e]||console.warn(`[siteping] Unknown locale "${t}", falling back to "en"`);let n=be[e]??be.en??{};return i=>n[i]??i}function B(t,e){switch(t){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 t}}var tt="siteping_identity";function nt(){try{let t=localStorage.getItem(tt);if(!t)return null;let e=JSON.parse(t);if(typeof e=="object"&&e!==null&&"name"in e&&typeof e.name=="string"&&"email"in e&&typeof e.email=="string"){let n=e;if(n.name&&n.email)return n}return null}catch{return null}}function it(t){try{localStorage.setItem(tt,JSON.stringify(t))}catch{}}function Dt(t,e){if(t===e)return 0;if(t.length===0)return e.length;if(e.length===0)return t.length;if(t.length>e.length){let r=t;t=e,e=r}let n=t.length,i=e.length,s=new Array(n+1);for(let r=0;r<=n;r++)s[r]=r;let o=new Array(n+1);for(let r=1;r<=i;r++){o[0]=r;for(let l=1;l<=n;l++){let c=s[l-1]??0;o[l]=t[l-1]===e[r-1]?c:1+Math.min(c,s[l]??0,o[l-1]??0)}let a=s;s=o,o=a}return s[n]??0}function $(t,e){if(t===e)return 1;let n=Math.max(t.length,e.length);return n===0?1:1-Dt(t,e)/n}function ye(t,e,n=.6){if(!e||!t)return 0;if(t.includes(e))return 1;let i=e.length;if(i>t.length){let a=$(t,e);return a>=n?a:0}let s=0,o=t.length>500?t.slice(0,500):t,r=o.length-i;for(let a=0;a<=r;a++){let l=o.slice(a,a+i),c=$(l,e);if(c>s&&(s=c),s>=.95)break}return s>=n?s:0}var Ht=300,Ot=.3;function ve(t,e){if(!e.textSnippet)return!0;let n=(t.textContent?.trim()??"").slice(0,500);return ye(n,e.textSnippet,.5)>Ot}function jt(t){if(t.elementId){let e=document.getElementById(t.elementId);if(e&&e.tagName===t.elementTag&&ve(e,t))return{element:e,confidence:1,strategy:"id"}}try{let e=document.querySelector(t.cssSelector);if(e&&e.tagName===t.elementTag&&ve(e,t))return{element:e,confidence:.95,strategy:"css"}}catch{}try{let n=document.evaluate(t.xpath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(n instanceof Element&&n.tagName===t.elementTag&&ve(n,t))return{element:n,confidence:.9,strategy:"xpath"}}catch{}return zt(t)}function zt(t){let e=t.elementTag.toLowerCase(),n=document.querySelectorAll(e);if(n.length===0)return null;let i=null,s=0,o=Math.min(n.length,Ht);for(let r=0;r<o;r++){let a=n[r];if(!a)continue;let l=_t(a,t);if(l>s&&(s=l,i=a,s>=.85))break}return!i||s<.4?null:{element:i,confidence:Math.min(s,.85),strategy:"scan"}}function _t(t,e){let n=0,i=0,s=(t.textContent?.trim()??"").slice(0,500);if(e.textSnippet&&(i+=40,n+=ye(s,e.textSnippet,.5)*40),e.fingerprint&&(i+=20,n+=Ne(t,e.fingerprint)*20),e.textPrefix||e.textSuffix){i+=20;let o=0,r=0;if(e.textPrefix){let a=N(t,"before");o+=a?$(a,e.textPrefix):0,r++}if(e.textSuffix){let a=N(t,"after");o+=a?$(a,e.textSuffix):0,r++}r>0&&(n+=o/r*20)}if(e.neighborText){i+=20;let o=U(t);n+=o?$(o,e.neighborText)*20:0}return i>0?n/i:0}function te(t,e){let n=jt(t);if(!n)return null;let i=n.element.getBoundingClientRect(),s=new DOMRect(i.x+e.xPct*i.width,i.y+e.yPct*i.height,e.wPct*i.width,e.hPct*i.height);return{element:n.element,rect:s,confidence:n.confidence,strategy:n.strategy}}function xe(t){return{cssSelector:t.cssSelector,xpath:t.xpath,textSnippet:t.textSnippet,elementTag:t.elementTag,elementId:t.elementId??void 0,textPrefix:t.textPrefix,textSuffix:t.textSuffix,fingerprint:t.fingerprint,neighborText:t.neighborText}}function ne(t){return{xPct:t.xPct,yPct:t.yPct,wPct:t.wPct,hPct:t.hPct}}var st=13;function ot(t){return{top:t.top+window.scrollY-st,left:t.right+window.scrollX-st}}function j(t,e){let n=t.entries[e],i=t.elementIndices[e];if(!(!n||i===void 0))return n.elements[i]}var rt=300,at=200,Kt=.7,Yt=28,lt=32,ie=class{constructor(e,n,i,s){this.colors=e;this.tooltip=n;this.bus=i;this.t=s;this.container=h("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",o=>{this.container.style.display=o?"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(o=>{if(o.length>20){this.scheduleReposition();return}let r=!1;for(let a of o)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=o=>{this.container.contains(o.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:at+100}):this.repositionTimer=+setTimeout(()=>{this.repositionTimer=null,this.repositionAll()},at))}repositionAll(){for(let e of this.entries)for(let n=0;n<e.feedback.annotations.length;n++){let i=e.elements[n];if(!i)continue;let s=e.feedback.annotations[n];if(!s)continue;let o=`${e.feedback.id}:${n}`,a=this.anchorCache.get(o)?.deref(),l;if(a?.isConnected){let d=a.getBoundingClientRect(),p=ne(s);l={element:a,rect:new DOMRect(d.left+p.xPct*d.width,d.top+p.yPct*d.height,p.wPct*d.width,p.hPct*d.height),confidence:1,strategy:"css"}}else l=te(xe(s),ne(s)),l?.element&&this.anchorCache.set(o,new WeakRef(l.element));if(!l){i.style.display="none";continue}let c=ot(l.rect);e.baseTop=c.top,e.baseLeft=c.left,i.style.display="flex",this.applyConfidenceStyle(i,l.confidence,e.feedback)}this.applyClusterPositions()}applyClusterPositions(){for(let e of this.clusters)e.expanded?this.applyFanPositions(e):this.applyStackPositions(e)}render(e){this.clear(),e.forEach((n,i)=>{let s=this.buildEntry(n,i+1);this.entries.push(s)}),this.buildClusters()}addFeedback(e,n){let i=this.buildEntry(e,n);for(let s of i.elements)s.style.animation="sp-marker-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both";this.entries.push(i),this.buildClusters()}buildEntry(e,n){let i={feedback:e,elements:[],baseTop:0,baseLeft:0};for(let s of e.annotations){let o=te(xe(s),ne(s));if(!o)continue;let r=ot(o.rect);i.baseTop=r.top,i.baseLeft=r.left;let a=this.createMarker(n,e,r);this.applyConfidenceStyle(a,o.confidence,e),this.container.appendChild(a),i.elements.push(a)}return i}buildClusters(){for(let i of this.container.querySelectorAll(".sp-cluster-badge"))i.remove();let e=[];for(let i of this.entries)for(let s=0;s<i.elements.length;s++)e.push({entry:i,elIdx:s});let n=new Set;this.clusters=[];for(let i=0;i<e.length;i++){if(n.has(i))continue;let s=e[i];if(!s)continue;let o={entries:[s.entry],elementIndices:[s.elIdx],expanded:!1};n.add(i);for(let r=i+1;r<e.length;r++){if(n.has(r))continue;let a=s.entry,l=e[r];if(!l)continue;let c=l.entry;Math.sqrt((a.baseLeft-c.baseLeft)**2+(a.baseTop-c.baseTop)**2)<Yt&&(o.entries.push(c),o.elementIndices.push(l.elIdx),n.add(r))}this.clusters.push(o)}for(let i of this.clusters)i.entries.length<=1||(this.applyStackPositions(i),this.addClusterBadge(i))}applyStackPositions(e){let n=e.entries[0];if(!n)return;let{baseTop:i,baseLeft:s}=n,o=e.entries.length<=1;for(let r=0;r<e.entries.length;r++){let a=j(e,r);a&&(a.style.top=`${i+(o?0:r*3)}px`,a.style.left=`${s+(o?0:r*3)}px`,a.style.zIndex=String(r+1))}}applyFanPositions(e){let n=e.entries[0];if(!n)return;let{baseTop:i,baseLeft:s}=n,o=e.entries.length,r=(o-1)*lt,a=s-r/2;for(let l=0;l<o;l++){let c=j(e,l);c&&(c.style.top=`${i}px`,c.style.left=`${a+l*lt}px`,c.style.zIndex=String(10+l))}}addClusterBadge(e){let n=j(e,e.entries.length-1);if(!n)return;let i=h("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,1574 @@
139
143
  pointer-events:none;
140
144
  font-family:"Inter",system-ui,-apple-system,sans-serif;
141
145
  line-height:1;
142
- `});b(i,String(e.entries.length)),n.appendChild(i)}setBadgesVisible(e,n){for(let i=0;i<e.entries.length;i++){let s=j(e,i)?.querySelector(".sp-cluster-badge");s&&(s.style.display=n?"flex":"none")}}findCluster(e){for(let n of this.clusters)if(!(n.entries.length<=1)){for(let i=0;i<n.entries.length;i++)if(j(n,i)===e)return n}return null}handleClusterClick(e,n){let i=this.findCluster(e);return i?i.expanded?!1:(n.stopPropagation(),this.collapseAllClusters(),i.expanded=!0,this.applyFanPositions(i),this.setBadgesVisible(i,!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,n,i){let s=i.status==="resolved";n<Kt&&!s?(e.style.borderStyle="dashed",e.style.opacity="0.7",e.title=this.t("marker.approximate").replace("{confidence}",String(Math.round(n*100)))):(e.style.borderStyle="solid",e.style.opacity="1",e.title="")}createMarker(e,n,i){let s=I(n.type,this.colors),o=n.status==="resolved",r=h("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:${i.top}px;
145
- left:${i.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:${o?"rgba(241,245,249,0.9)":"rgba(255,255,255,0.92)"};
149
- border:2px solid ${o?"#cbd5e1":s};
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:${o?"#94a3b8":s};
157
+ color:${d?"#94a3b8":c};
154
158
  cursor:pointer;pointer-events:auto;
155
- box-shadow:${o?"0 2px 8px rgba(0,0,0,0.06)":`0 2px 12px ${s}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=n.id,r.setAttribute("tabindex","0"),r.setAttribute("role","button");let a=n.message.length>60?`${n.message.slice(0,60)}...`:n.message,l=this.t("marker.aria").replace("{number}",String(e)).replace("{type}",B(n.type,this.t)).replace("{message}",a);r.setAttribute("aria-label",l),r.setAttribute("aria-describedby",this.tooltip.tooltipId),b(r,o?"\u2713":String(e)),r.addEventListener("mouseenter",()=>{r.style.transform="scale(1.2)",r.style.boxShadow=o?"0 4px 16px rgba(0,0,0,0.1)":`0 4px 20px ${s}35, 0 4px 12px rgba(0,0,0,0.08)`,this.tooltip.show(n,r.getBoundingClientRect()),this.pinnedFeedback||this.showHighlight(n)}),r.addEventListener("mouseleave",()=>{r.style.transform="scale(1)",r.style.boxShadow=o?"0 2px 8px rgba(0,0,0,0.06)":`0 2px 12px ${s}25, 0 2px 6px rgba(0,0,0,0.06)`,this.tooltip.scheduleHide(),this.pinnedFeedback||this.clearHighlight()});let c=d=>{d instanceof MouseEvent&&this.handleClusterClick(r,d)||(this.pinHighlight(n),this.bus.emit("panel:toggle",!0),r.dispatchEvent(new CustomEvent("sp-marker-click",{detail:{feedbackId:n.id},bubbles:!0})))};return r.addEventListener("click",d=>c(d)),r.addEventListener("keydown",d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),c(d))}),r}highlight(e){for(let n of this.entries)if(n.feedback.id===e)for(let i of n.elements)i.style.animation="sp-pulse-ring 0.7s ease-out",i.addEventListener("animationend",()=>{i.style.animation=""},{once:!0})}showHighlight(e){this.removeHighlightElements();for(let n of e.annotations){let i=te(xe(n),ne(n));if(!i)continue;let s=I(e.type,this.colors),o=i.rect,r=h("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:${o.top+window.scrollY}px;
162
- left:${o.left+window.scrollX}px;
163
- width:${o.width}px;height:${o.height}px;
164
- border:2px solid ${s};
165
- background:${s}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 ${s}20;
170
- transition:opacity ${rt}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=n=>{this.container.contains(n.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(),rt);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 se=class{constructor(e,n,i,s,o,r,a,l){this.colors=n;this.bus=i;this.client=s;this.projectName=o;this.markers=r;this.t=a;this.locale=l;this.root=h("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 c=h("div",{class:"sp-panel-header"}),d=h("span",{class:"sp-panel-title"});b(d,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(F(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(F(ge));let p=document.createElement("span");b(p,` ${this.t("panel.deleteAll")}`),this.deleteAllBtn.appendChild(p),this.deleteAllBtn.addEventListener("click",()=>this.confirmDeleteAll());let f=h("div",{class:"sp-panel-header-right"});f.appendChild(this.deleteAllBtn),f.appendChild(this.closeBtn),c.appendChild(d),c.appendChild(f);let m=h("div",{class:"sp-filters"}),y=h("div",{class:"sp-search-wrap"}),T=F(ze);T.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)}),y.appendChild(T),y.appendChild(this.searchInput);let k=h("div",{class:"sp-chips"}),C=[{value:"all",label:this.t("panel.filterAll")},{value:"question",label:this.t("type.question")},{value:"change",label:this.t("type.change")},{value:"bug",label:this.t("type.bug")},{value:"other",label:this.t("type.other")}];for(let v of C){let g=document.createElement("button");g.className=`sp-chip ${v.value==="all"?"sp-chip--active":""}`,v.value!=="all"&&(g.style.borderColor=I(v.value,this.colors)),b(g,v.label),g.dataset.filter=v.value,g.setAttribute("aria-pressed",v.value==="all"?"true":"false"),g.addEventListener("click",()=>this.toggleFilter(v.value,k)),k.appendChild(g)}m.appendChild(y),m.appendChild(k),this.listContainer=h("div",{class:"sp-list"}),this.listContainer.setAttribute("role","list"),this.listContainer.setAttribute("aria-label",this.t("panel.feedbackList")),this.root.appendChild(c),this.root.appendChild(m),this.root.appendChild(this.listContainer),e.appendChild(this.root),this.onListClick=v=>{let g=v.target,x=g.closest("[data-action]");if(x){v.stopPropagation();let w=x.closest(".sp-card");if(!w)return;let S=w.dataset.feedbackId,E=this.feedbacks.find(L=>L.id===S);if(!E)return;let A=x.dataset.action;if(A==="expand"){let L=w.querySelector(".sp-card-message");if(!L)return;let _=L.classList.toggle("sp-card-message--expanded");b(x,_?this.t("panel.showLess"):this.t("panel.showMore")),x.setAttribute("aria-expanded",String(_))}else if(A==="resolve"){if(this.pendingMutations.has(E.id))return;let L=x;this.toggleResolve(E,L).catch(()=>{})}else if(A==="delete"){if(this.pendingMutations.has(E.id))return;let L=x;this.deleteFeedback(E,L).catch(()=>{})}return}let u=g.closest(".sp-card");if(u){let w=u.dataset.feedbackId,S=this.feedbacks.find(E=>E.id===w);if(S&&S.annotations.length>0){let E=S.annotations[0];if(!E)return;window.scrollTo({left:E.scrollX,top:E.scrollY,behavior:"smooth"}),this.markers.pinHighlight(S)}}},this.listContainer.addEventListener("click",this.onListClick),this.onListKeydown=v=>{let g=v;if(g.key!=="Enter"&&g.key!==" ")return;let x=g.target,u=x.closest(".sp-card");if(!u||x!==u)return;g.preventDefault();let w=u.dataset.feedbackId,S=this.feedbacks.find(E=>E.id===w);if(S&&S.annotations.length>0){let E=S.annotations[0];if(!E)return;window.scrollTo({left:E.scrollX,top:E.scrollY,behavior:"smooth"}),this.markers.pinHighlight(S)}},this.listContainer.addEventListener("keydown",this.onListKeydown),this.onListMouseover=v=>{let x=v.target.closest(".sp-card");if(!x)return;let u=x.dataset.feedbackId;u&&this.markers.highlight(u)},this.listContainer.addEventListener("mouseover",this.onListMouseover),this.onListMouseout=v=>{let g=v.relatedTarget;g&&this.listContainer.contains(g)||this.markers.highlight("")},this.listContainer.addEventListener("mouseout",this.onListMouseout),this.bus.on("panel:toggle",v=>{v?this.open():this.close()}),e.addEventListener("keydown",v=>{let g=v;if(g.key==="Escape"&&this.isOpen){this.close();return}if(g.key==="Tab"&&this.isOpen){let x=this.root.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(x.length===0)return;let u=x[0],w=x[x.length-1];if(!u||!w)return;let S=e.activeElement;g.shiftKey&&S===u?(g.preventDefault(),w.focus()):!g.shiftKey&&S===w&&(g.preventDefault(),u.focus())}}),this.onMarkerClick=(v=>{this.scrollToFeedback(v.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"]);feedbacks=[];isOpen=!1;searchTimeout=null;loadController=null;pendingMutations=new Set;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"),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.root.getRootNode().querySelector(".sp-fab")?.focus()}showLoading(){this.listContainer.replaceChildren();let e=h("div",{class:"sp-loading"});e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-label",this.t("panel.loading"));let n=h("div",{class:"sp-spinner"});e.appendChild(n),this.listContainer.appendChild(e)}showError(){this.listContainer.replaceChildren();let e=h("div",{class:"sp-empty"});e.setAttribute("role","status"),e.setAttribute("aria-live","polite");let n=h("div",{class:"sp-empty-text"});b(n,this.t("panel.loadError"));let i=document.createElement("button");i.className="sp-btn-ghost",i.style.marginTop="8px",b(i,this.t("panel.retry")),i.addEventListener("click",()=>this.loadFeedbacks().catch(()=>{})),e.appendChild(n),e.appendChild(i),this.listContainer.appendChild(e)}async loadFeedbacks(){this.loadController?.abort(),this.loadController=new AbortController;let{signal:e}=this.loadController,n=this.searchInput.value.trim()||void 0,i=this.activeFilters.has("all")?void 0:Array.from(this.activeFilters)[0],s={limit:50};i&&(s.type=i),n&&(s.search=n);let o=this.feedbacks.length>0;o||this.showLoading();try{let{feedbacks:r}=await this.client.getFeedbacks(this.projectName,s);if(e.aborted)return;this.feedbacks=r,this.renderList(),this.markers.render(r)}catch(r){if(e.aborted)return;o||this.showError(),this.bus.emit("feedback:error",r instanceof Error?r:new Error(String(r)))}}renderList(){if(this.listContainer.replaceChildren(),this.feedbacks.length===0){let e=h("div",{class:"sp-empty"});e.setAttribute("role","status"),e.setAttribute("aria-live","polite");let n=h("div",{class:"sp-empty-text"});b(n,this.t("panel.empty")),e.appendChild(n),this.listContainer.appendChild(e);return}this.feedbacks.forEach((e,n)=>{let i=this.createCard(e,n+1);i.style.setProperty("--sp-card-i",String(n)),this.listContainer.appendChild(i)})}createCard(e,n){let i=e.status==="resolved",s=I(e.type,this.colors),o=h("div",{class:`sp-card ${i?"sp-card--resolved":""}`});o.setAttribute("role","listitem"),o.setAttribute("tabindex","0"),o.setAttribute("aria-label",`Feedback #${n}: ${B(e.type,this.t)} \u2014 ${e.message.slice(0,80)}`),o.dataset.feedbackId=e.id;let r=h("div",{class:"sp-card-bar"});r.style.background=i?"#9ca3af":s;let a=h("div",{class:"sp-card-body"}),l=h("div",{class:"sp-card-header"}),c=h("span",{class:"sp-card-number"});b(c,`#${n}`);let d=h("span",{class:"sp-badge"}),p=P(e.type,this.colors);d.style.background=p,d.style.color=s,b(d,B(e.type,this.t));let f=h("span",{class:"sp-card-date"});b(f,X(e.createdAt,this.locale)),l.appendChild(c),l.appendChild(d),l.appendChild(f);let m=h("div",{class:"sp-card-message"});b(m,e.message);let y=document.createElement("button");y.className="sp-card-expand",y.dataset.action="expand",b(y,this.t("panel.showMore")),y.style.display="none",y.setAttribute("aria-expanded","false"),requestAnimationFrame(()=>{m.scrollHeight>m.clientHeight&&(y.style.display="block")});let T=h("div",{class:"sp-card-footer"}),k=document.createElement("button");if(k.className="sp-btn-resolve",k.dataset.action="resolve",i){k.appendChild(F(Ue));let g=document.createElement("span");b(g,` ${this.t("panel.reopen")}`),k.appendChild(g)}else{k.appendChild(F(_e));let g=document.createElement("span");b(g,` ${this.t("panel.resolve")}`),k.appendChild(g)}let C=document.createElement("button");C.className="sp-btn-delete",C.dataset.action="delete",C.appendChild(F(ge));let v=document.createElement("span");return b(v,` ${this.t("panel.delete")}`),C.appendChild(v),T.appendChild(k),T.appendChild(C),a.appendChild(l),a.appendChild(m),a.appendChild(y),a.appendChild(T),o.appendChild(r),o.appendChild(a),o}async deleteFeedback(e,n){this.pendingMutations.add(e.id);let i=this.setButtonLoading(n);try{await this.client.deleteFeedback(e.id),this.bus.emit("feedback:deleted",e.id),await this.loadFeedbacks()}catch(s){i(),this.bus.emit("feedback:error",s instanceof Error?s:new Error(String(s)))}finally{this.pendingMutations.delete(e.id)}}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(n){this.bus.emit("feedback:error",n instanceof Error?n:new Error(String(n)))}finally{this.deleteAllBtn.disabled=!1}}}showConfirmDialog(e,n){return new Promise(i=>{let s=h("div",{class:"sp-confirm-backdrop"}),o=`sp-confirm-title-${Date.now()}`,r=`sp-confirm-msg-${Date.now()}`,a=h("div",{class:"sp-confirm-dialog"});a.setAttribute("role","alertdialog"),a.setAttribute("aria-modal","true"),a.setAttribute("aria-labelledby",o),a.setAttribute("aria-describedby",r);let l=h("div",{class:"sp-confirm-title"});l.id=o,b(l,e);let c=h("div",{class:"sp-confirm-message"});c.id=r,b(c,n);let d=h("div",{class:"sp-confirm-actions"}),p=document.createElement("button");p.type="button",p.className="sp-btn-ghost",b(p,this.t("panel.cancel"));let f=document.createElement("button");f.type="button",f.className="sp-btn-danger",b(f,this.t("panel.confirmDelete"));let m=!1,y=k=>{m||(m=!0,s.removeEventListener("keydown",T),s.style.opacity="0",a.style.transform="translateY(8px) scale(0.97)",setTimeout(()=>{s.remove(),i(k)},200))},T=k=>{let C=k;if(C.key==="Escape"){y(!1);return}C.key==="Tab"&&(C.preventDefault(),s.getRootNode().activeElement===p?f.focus():p.focus())};s.addEventListener("keydown",T),p.addEventListener("click",()=>y(!1)),f.addEventListener("click",()=>y(!0)),s.addEventListener("click",k=>{k.target===s&&y(!1)}),d.appendChild(p),d.appendChild(f),a.appendChild(l),a.appendChild(c),a.appendChild(d),s.appendChild(a),this.root.getRootNode()instanceof ShadowRoot?this.root.getRootNode().appendChild(s):this.root.appendChild(s),requestAnimationFrame(()=>{s.style.opacity="1",a.style.transform="translateY(0) scale(1)",p.focus()})})}setButtonLoading(e){let n=Array.from(e.childNodes).map(i=>i.cloneNode(!0));return e.disabled=!0,e.replaceChildren(h("div",{class:"sp-spinner sp-spinner--sm"})),()=>{e.replaceChildren(...n),e.disabled=!1}}async toggleResolve(e,n){this.pendingMutations.add(e.id);let i=this.setButtonLoading(n);try{let s=e.status!=="resolved";await this.client.resolveFeedback(e.id,s),await this.loadFeedbacks()}catch(s){i(),this.bus.emit("feedback:error",s instanceof Error?s:new Error(String(s)))}finally{this.pendingMutations.delete(e.id)}}toggleFilter(e,n){this.activeFilters.clear(),this.activeFilters.add(e);let i=n.querySelectorAll(".sp-chip");for(let s of i){let o=this.activeFilters.has(s.dataset.filter??"");s.classList.toggle("sp-chip--active",o),s.setAttribute("aria-pressed",String(o))}this.loadFeedbacks().catch(()=>{})}scrollToFeedback(e){let n=CSS.escape(e),i=this.listContainer.querySelector(`[data-feedback-id="${n}"]`);i&&(i.scrollIntoView({behavior:"smooth",block:"center"}),i.classList.add("sp-anim-flash"),i.addEventListener("animationend",()=>{i.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.root.remove()}};function ke(t){return{cssSelector:t.anchor.cssSelector,xpath:t.anchor.xpath,textSnippet:t.anchor.textSnippet,elementTag:t.anchor.elementTag,elementId:t.anchor.elementId,textPrefix:t.anchor.textPrefix,textSuffix:t.anchor.textSuffix,fingerprint:t.anchor.fingerprint,neighborText:t.anchor.neighborText,xPct:t.rect.xPct,yPct:t.rect.yPct,wPct:t.rect.wPct,hPct:t.rect.hPct,scrollX:t.scrollX,scrollY:t.scrollY,viewportW:t.viewportW,viewportH:t.viewportH,devicePixelRatio:t.devicePixelRatio}}var oe=class{constructor(e,n){this.store=e;this.projectName=n}store;projectName;async sendFeedback(e){let n=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 we(n)}async getFeedbacks(e,n){let{feedbacks:i,total:s}=await this.store.getFeedbacks({projectName:e,page:n?.page,limit:n?.limit,type:n?.type,status:n?.status,search:n?.search});return{feedbacks:i.map(we),total:s}}async resolveFeedback(e,n){let i=await this.store.updateFeedback(e,{status:n?"resolved":"open",resolvedAt:n?new Date:null});return we(i)}async deleteFeedback(e){await this.store.deleteFeedback(e)}async deleteAllFeedbacks(e){await this.store.deleteAllFeedbacks(e)}};function we(t){return{id:t.id,projectName:t.projectName,type:t.type,message:t.message,status:t.status,url:t.url,viewport:t.viewport,userAgent:t.userAgent,authorName:t.authorName,authorEmail:t.authorEmail,resolvedAt:t.resolvedAt?.toISOString()??null,createdAt:t.createdAt.toISOString(),updatedAt:t.updatedAt.toISOString(),annotations:t.annotations.map(Wt)}}function Wt(t){return{id:t.id,feedbackId:t.feedbackId,cssSelector:t.cssSelector,xpath:t.xpath,textSnippet:t.textSnippet,elementTag:t.elementTag,elementId:t.elementId,textPrefix:t.textPrefix,textSuffix:t.textSuffix,fingerprint:t.fingerprint,neighborText:t.neighborText,xPct:t.xPct,yPct:t.yPct,wPct:t.wPct,hPct:t.hPct,scrollX:t.scrollX,scrollY:t.scrollY,viewportW:t.viewportW,viewportH:t.viewportH,devicePixelRatio:t.devicePixelRatio,createdAt:t.createdAt.toISOString()}}var qt="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)",Ee="cubic-bezier(0.16, 1, 0.3, 1)",Ce="cubic-bezier(0.34, 1.56, 0.64, 1)",Ut="cubic-bezier(0.25, 1, 0.5, 1)",ct=`
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=`
176
+ /* ============================
177
+ Export Button & Menu
178
+ ============================ */
179
+
180
+ .sp-export-btn {
181
+ padding: 5px 12px;
182
+ border-radius: var(--sp-radius-full);
183
+ border: 1px solid var(--sp-border);
184
+ background: transparent;
185
+ color: var(--sp-text-tertiary);
186
+ font-family: var(--sp-font);
187
+ font-size: 11px;
188
+ font-weight: 500;
189
+ cursor: pointer;
190
+ display: flex;
191
+ align-items: center;
192
+ gap: 4px;
193
+ transition: all 0.2s ease;
194
+ position: relative;
195
+ }
196
+
197
+ .sp-export-btn svg {
198
+ width: 13px;
199
+ height: 13px;
200
+ }
201
+
202
+ .sp-export-btn:hover {
203
+ border-color: var(--sp-accent);
204
+ color: var(--sp-accent);
205
+ background: var(--sp-accent-light);
206
+ }
207
+
208
+ .sp-export-btn:disabled {
209
+ opacity: 0.5;
210
+ cursor: not-allowed;
211
+ pointer-events: none;
212
+ }
213
+
214
+ .sp-export-menu {
215
+ position: absolute;
216
+ top: calc(100% + 6px);
217
+ right: 0;
218
+ min-width: 180px;
219
+ padding: 4px;
220
+ border-radius: var(--sp-radius);
221
+ background: var(--sp-glass-bg-heavy);
222
+ backdrop-filter: blur(var(--sp-blur));
223
+ -webkit-backdrop-filter: blur(var(--sp-blur));
224
+ border: 1px solid var(--sp-glass-border);
225
+ box-shadow: var(--sp-shadow-lg);
226
+ z-index: 10;
227
+ opacity: 0;
228
+ transform: translateY(-4px) scale(0.97);
229
+ transition: opacity 0.15s ease, transform 0.15s ease;
230
+ pointer-events: none;
231
+ }
232
+
233
+ .sp-export-menu--open {
234
+ opacity: 1;
235
+ transform: translateY(0) scale(1);
236
+ pointer-events: auto;
237
+ }
238
+
239
+ .sp-export-option {
240
+ display: flex;
241
+ align-items: center;
242
+ gap: 10px;
243
+ width: 100%;
244
+ padding: 8px 16px;
245
+ border: none;
246
+ border-radius: 8px;
247
+ background: transparent;
248
+ color: var(--sp-text-secondary);
249
+ font-family: var(--sp-font);
250
+ font-size: 13px;
251
+ font-weight: 500;
252
+ cursor: pointer;
253
+ transition: all 0.15s ease;
254
+ text-align: left;
255
+ }
256
+
257
+ .sp-export-option:hover,
258
+ .sp-export-option:focus-visible {
259
+ background: var(--sp-accent-light);
260
+ color: var(--sp-accent);
261
+ }
262
+
263
+ .sp-export-option-icon {
264
+ display: flex;
265
+ align-items: center;
266
+ justify-content: center;
267
+ flex-shrink: 0;
268
+ }
269
+
270
+ .sp-export-option-icon svg {
271
+ width: 16px;
272
+ height: 16px;
273
+ }
274
+
275
+ .sp-export-option-label {
276
+ flex: 1;
277
+ }
278
+
279
+ @media (forced-colors: active) {
280
+ .sp-export-btn,
281
+ .sp-export-option,
282
+ .sp-export-menu {
283
+ border: 2px solid ButtonText !important;
284
+ background: Canvas !important;
285
+ color: ButtonText !important;
286
+ }
287
+
288
+ .sp-export-btn:focus-visible,
289
+ .sp-export-option:focus-visible {
290
+ outline: 3px solid Highlight !important;
291
+ }
292
+ }
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=`
296
+ /* ============================
297
+ Bulk Checkbox
298
+ ============================ */
299
+
300
+ .sp-bulk-checkbox {
301
+ position: relative;
302
+ width: 16px;
303
+ height: 16px;
304
+ flex-shrink: 0;
305
+ cursor: pointer;
306
+ border-radius: 4px;
307
+ color: var(--sp-border);
308
+ opacity: 0;
309
+ transition: opacity 0.15s ease, color 0.15s ease, transform 0.15s ease;
310
+ display: inline-flex;
311
+ align-items: center;
312
+ justify-content: center;
313
+ }
314
+
315
+ .sp-bulk-checkbox svg {
316
+ width: 16px;
317
+ height: 16px;
318
+ display: block;
319
+ }
320
+
321
+ .sp-bulk-checkbox:hover {
322
+ color: var(--sp-accent);
323
+ transform: scale(1.1);
324
+ }
325
+
326
+ .sp-bulk-checkbox--checked {
327
+ color: var(--sp-accent);
328
+ opacity: 1 !important;
329
+ filter: drop-shadow(0 0 4px var(--sp-accent-glow));
330
+ }
331
+
332
+ /* Show checkboxes when hovering a card */
333
+ .sp-card:hover .sp-bulk-checkbox {
334
+ opacity: 1;
335
+ }
336
+
337
+ /* When any card has selection, show ALL checkboxes */
338
+ .sp-list--has-selection .sp-bulk-checkbox {
339
+ opacity: 1;
340
+ }
341
+
342
+ /* ============================
343
+ Card Selected State
344
+ ============================ */
345
+
346
+ .sp-card--selected {
347
+ border-left: 3px solid var(--sp-accent) !important;
348
+ background: var(--sp-accent-light) !important;
349
+ }
350
+
351
+ .sp-card--selected:hover {
352
+ background: var(--sp-accent-light) !important;
353
+ }
354
+
355
+ /* ============================
356
+ Select All Bar
357
+ ============================ */
358
+
359
+ .sp-bulk-select-all {
360
+ display: flex;
361
+ align-items: center;
362
+ gap: 8px;
363
+ padding: 8px 12px;
364
+ margin-bottom: 4px;
365
+ border-radius: var(--sp-radius);
366
+ background: transparent;
367
+ cursor: pointer;
368
+ opacity: 0;
369
+ transition: opacity 0.2s ease, background 0.2s ease;
370
+ user-select: none;
371
+ font-family: var(--sp-font);
372
+ font-size: 12px;
373
+ font-weight: 500;
374
+ color: var(--sp-text-secondary);
375
+ }
376
+
377
+ .sp-bulk-select-all:hover {
378
+ background: var(--sp-bg-hover);
379
+ }
380
+
381
+ /* Show select-all on list hover or when selections exist */
382
+ .sp-list:hover .sp-bulk-select-all,
383
+ .sp-list--has-selection .sp-bulk-select-all {
384
+ opacity: 1;
385
+ }
386
+
387
+ .sp-bulk-select-all .sp-bulk-checkbox {
388
+ opacity: 1;
389
+ }
390
+
391
+ /* ============================
392
+ Floating Action Bar
393
+ ============================ */
394
+
395
+ @keyframes sp-bulk-bar-in {
396
+ from {
397
+ transform: translateY(100%) scale(0.95);
398
+ opacity: 0;
399
+ }
400
+ to {
401
+ transform: translateY(0) scale(1);
402
+ opacity: 1;
403
+ }
404
+ }
405
+
406
+ @keyframes sp-bulk-bar-out {
407
+ from {
408
+ transform: translateY(0) scale(1);
409
+ opacity: 1;
410
+ }
411
+ to {
412
+ transform: translateY(100%) scale(0.95);
413
+ opacity: 0;
414
+ }
415
+ }
416
+
417
+ .sp-bulk-bar {
418
+ position: absolute;
419
+ bottom: 16px;
420
+ left: 16px;
421
+ right: 16px;
422
+ display: flex;
423
+ align-items: center;
424
+ justify-content: space-between;
425
+ gap: 12px;
426
+ padding: 12px 16px;
427
+ border-radius: 16px;
428
+ background: var(--sp-glass-bg-heavy);
429
+ backdrop-filter: blur(var(--sp-blur-heavy));
430
+ -webkit-backdrop-filter: blur(var(--sp-blur-heavy));
431
+ border: 1px solid var(--sp-glass-border);
432
+ box-shadow: var(--sp-shadow-xl);
433
+ z-index: 10;
434
+ pointer-events: none;
435
+ opacity: 0;
436
+ transform: translateY(100%) scale(0.95);
437
+ transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
438
+ opacity 0.25s ease;
439
+ font-family: var(--sp-font);
440
+ }
441
+
442
+ .sp-bulk-bar--visible {
443
+ pointer-events: auto;
444
+ opacity: 1;
445
+ transform: translateY(0) scale(1);
446
+ }
447
+
448
+ .sp-bulk-bar-count {
449
+ font-size: 13px;
450
+ font-weight: 600;
451
+ color: var(--sp-text);
452
+ white-space: nowrap;
453
+ letter-spacing: -0.01em;
454
+ }
455
+
456
+ .sp-bulk-bar-actions {
457
+ display: flex;
458
+ align-items: center;
459
+ gap: 6px;
460
+ }
461
+
462
+ .sp-bulk-btn-resolve,
463
+ .sp-bulk-btn-delete {
464
+ padding: 7px 14px;
465
+ border-radius: var(--sp-radius-full);
466
+ border: 1.5px solid transparent;
467
+ background: transparent;
468
+ font-family: var(--sp-font);
469
+ font-size: 12px;
470
+ font-weight: 600;
471
+ cursor: pointer;
472
+ display: flex;
473
+ align-items: center;
474
+ gap: 5px;
475
+ transition: all 0.2s ease;
476
+ white-space: nowrap;
477
+ }
478
+
479
+ .sp-bulk-btn-resolve {
480
+ color: #22c55e;
481
+ border-color: #22c55e;
482
+ }
483
+
484
+ .sp-bulk-btn-resolve:hover {
485
+ background: rgba(34, 197, 94, 0.1);
486
+ box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
487
+ }
488
+
489
+ .sp-bulk-btn-resolve:active {
490
+ transform: scale(0.96);
491
+ transition-duration: 0.1s;
492
+ }
493
+
494
+ .sp-bulk-btn-delete {
495
+ color: #ef4444;
496
+ border-color: #ef4444;
497
+ }
498
+
499
+ .sp-bulk-btn-delete:hover {
500
+ background: rgba(239, 68, 68, 0.1);
501
+ box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
502
+ }
503
+
504
+ .sp-bulk-btn-delete:active {
505
+ transform: scale(0.96);
506
+ transition-duration: 0.1s;
507
+ }
508
+
509
+ .sp-bulk-btn-resolve:disabled,
510
+ .sp-bulk-btn-delete:disabled {
511
+ opacity: 0.5;
512
+ cursor: not-allowed;
513
+ pointer-events: none;
514
+ }
515
+
516
+ .sp-bulk-btn-deselect {
517
+ width: 28px;
518
+ height: 28px;
519
+ border-radius: var(--sp-radius-full);
520
+ border: 1px solid var(--sp-border);
521
+ background: transparent;
522
+ color: var(--sp-text-tertiary);
523
+ cursor: pointer;
524
+ display: flex;
525
+ align-items: center;
526
+ justify-content: center;
527
+ transition: all 0.2s ease;
528
+ flex-shrink: 0;
529
+ padding: 0;
530
+ }
531
+
532
+ .sp-bulk-btn-deselect:hover {
533
+ background: var(--sp-bg-hover);
534
+ color: var(--sp-text);
535
+ border-color: var(--sp-text-tertiary);
536
+ }
537
+
538
+ .sp-bulk-btn-deselect:active {
539
+ transform: scale(0.92);
540
+ transition-duration: 0.1s;
541
+ }
542
+
543
+ .sp-bulk-btn-deselect svg {
544
+ width: 12px;
545
+ height: 12px;
546
+ }
547
+
548
+ /* Spinner inside bulk bar buttons */
549
+ .sp-bulk-btn-resolve .sp-spinner,
550
+ .sp-bulk-btn-delete .sp-spinner {
551
+ width: 14px;
552
+ height: 14px;
553
+ }
554
+
555
+ /* ============================
556
+ Forced Colors / High Contrast
557
+ ============================ */
558
+
559
+ @media (forced-colors: active) {
560
+ .sp-bulk-checkbox,
561
+ .sp-bulk-btn-resolve,
562
+ .sp-bulk-btn-delete,
563
+ .sp-bulk-btn-deselect,
564
+ .sp-bulk-bar {
565
+ border: 2px solid ButtonText !important;
566
+ background: Canvas !important;
567
+ color: ButtonText !important;
568
+ }
569
+
570
+ .sp-bulk-checkbox--checked {
571
+ background: Highlight !important;
572
+ color: HighlightText !important;
573
+ }
574
+
575
+ .sp-card--selected {
576
+ border-left: 4px solid Highlight !important;
577
+ }
578
+ }
579
+
580
+ /* ============================
581
+ Reduced Motion
582
+ ============================ */
583
+
584
+ @media (prefers-reduced-motion: reduce) {
585
+ .sp-bulk-bar {
586
+ transition-duration: 0.01ms !important;
587
+ }
588
+
589
+ .sp-bulk-checkbox {
590
+ transition-duration: 0.01ms !important;
591
+ }
592
+ }
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=`
594
+ /* ============================
595
+ Detail View \u2014 Panel-in-Panel
596
+ ============================ */
597
+
598
+ .sp-detail {
599
+ position: absolute;
600
+ inset: 0;
601
+ display: flex;
602
+ flex-direction: column;
603
+ background: var(--sp-glass-bg);
604
+ backdrop-filter: blur(var(--sp-blur-heavy));
605
+ -webkit-backdrop-filter: blur(var(--sp-blur-heavy));
606
+ z-index: 20;
607
+ transform: translateX(100%);
608
+ transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
609
+ will-change: transform;
610
+ overflow: hidden;
611
+ }
612
+
613
+ .sp-detail--visible {
614
+ transform: translateX(0);
615
+ }
616
+
617
+ /* ---- Header ---- */
618
+
619
+ .sp-detail-header {
620
+ display: flex;
621
+ align-items: center;
622
+ gap: 12px;
623
+ padding: 16px 20px;
624
+ border-bottom: 1px solid var(--sp-border);
625
+ background: var(--sp-glass-bg-heavy);
626
+ backdrop-filter: blur(var(--sp-blur));
627
+ -webkit-backdrop-filter: blur(var(--sp-blur));
628
+ flex-shrink: 0;
629
+ min-height: 64px;
630
+ }
631
+
632
+ .sp-detail-back {
633
+ width: 40px;
634
+ height: 40px;
635
+ border-radius: var(--sp-radius);
636
+ border: none;
637
+ background: transparent;
638
+ cursor: pointer;
639
+ display: flex;
640
+ align-items: center;
641
+ justify-content: center;
642
+ color: var(--sp-text-tertiary);
643
+ transition: all 0.2s ease;
644
+ flex-shrink: 0;
645
+ padding: 0;
646
+ }
647
+
648
+ .sp-detail-back:hover {
649
+ background: var(--sp-bg-hover);
650
+ color: var(--sp-text);
651
+ }
652
+
653
+ .sp-detail-back:active {
654
+ transform: scale(0.92);
655
+ transition-duration: 0.1s;
656
+ }
657
+
658
+ .sp-detail-back svg {
659
+ width: 18px;
660
+ height: 18px;
661
+ }
662
+
663
+ .sp-detail-title {
664
+ font-size: 16px;
665
+ font-weight: 700;
666
+ color: var(--sp-text);
667
+ letter-spacing: -0.02em;
668
+ flex: 1;
669
+ min-width: 0;
670
+ overflow: hidden;
671
+ text-overflow: ellipsis;
672
+ white-space: nowrap;
673
+ }
674
+
675
+ .sp-detail-header .sp-badge {
676
+ flex-shrink: 0;
677
+ }
678
+
679
+ /* ---- Content ---- */
680
+
681
+ .sp-detail-content {
682
+ flex: 1;
683
+ overflow-y: auto;
684
+ overflow-x: hidden;
685
+ padding: 0;
686
+ }
687
+
688
+ .sp-detail-content::-webkit-scrollbar {
689
+ width: 6px;
690
+ }
691
+
692
+ .sp-detail-content::-webkit-scrollbar-track {
693
+ background: transparent;
694
+ }
695
+
696
+ .sp-detail-content::-webkit-scrollbar-thumb {
697
+ background: var(--sp-border);
698
+ border-radius: var(--sp-radius-full);
699
+ }
700
+
701
+ .sp-detail-content::-webkit-scrollbar-thumb:hover {
702
+ background: var(--sp-text-tertiary);
703
+ }
704
+
705
+ /* ---- Section ---- */
706
+
707
+ .sp-detail-section {
708
+ padding: 20px 24px;
709
+ border-bottom: 1px solid var(--sp-border);
710
+ opacity: 0;
711
+ transform: translateY(8px);
712
+ animation: sp-detail-section-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
713
+ }
714
+
715
+ @keyframes sp-detail-section-in {
716
+ to {
717
+ opacity: 1;
718
+ transform: translateY(0);
719
+ }
720
+ }
721
+
722
+ .sp-detail-section:last-child {
723
+ border-bottom: none;
724
+ }
725
+
726
+ .sp-detail-section-title {
727
+ font-size: 11px;
728
+ font-weight: 600;
729
+ color: var(--sp-text-tertiary);
730
+ text-transform: uppercase;
731
+ letter-spacing: 0.06em;
732
+ margin-bottom: 14px;
733
+ display: flex;
734
+ align-items: center;
735
+ gap: 6px;
736
+ }
737
+
738
+ .sp-detail-section-title svg {
739
+ width: 14px;
740
+ height: 14px;
741
+ opacity: 0.6;
742
+ }
743
+
744
+ /* ---- Status + Actions Section ---- */
745
+
746
+ .sp-detail-status {
747
+ display: flex;
748
+ align-items: center;
749
+ gap: 10px;
750
+ margin-bottom: 16px;
751
+ }
752
+
753
+ .sp-detail-status-pill {
754
+ display: inline-flex;
755
+ align-items: center;
756
+ gap: 6px;
757
+ padding: 5px 14px;
758
+ border-radius: var(--sp-radius-full);
759
+ font-size: 12px;
760
+ font-weight: 600;
761
+ letter-spacing: 0.02em;
762
+ }
763
+
764
+ .sp-detail-status-pill--open {
765
+ background: rgba(34, 197, 94, 0.1);
766
+ color: #22c55e;
767
+ border: 1px solid rgba(34, 197, 94, 0.2);
768
+ }
769
+
770
+ .sp-detail-status-pill--resolved {
771
+ background: rgba(156, 163, 175, 0.1);
772
+ color: #9ca3af;
773
+ border: 1px solid rgba(156, 163, 175, 0.2);
774
+ }
775
+
776
+ .sp-detail-status-dot {
777
+ width: 6px;
778
+ height: 6px;
779
+ border-radius: 50%;
780
+ flex-shrink: 0;
781
+ }
782
+
783
+ .sp-detail-actions {
784
+ display: flex;
785
+ gap: 8px;
786
+ }
787
+
788
+ .sp-detail-actions button {
789
+ flex: 1;
790
+ height: 40px;
791
+ padding: 0 16px;
792
+ border-radius: var(--sp-radius);
793
+ font-family: var(--sp-font);
794
+ font-size: 13px;
795
+ font-weight: 600;
796
+ cursor: pointer;
797
+ display: flex;
798
+ align-items: center;
799
+ justify-content: center;
800
+ gap: 6px;
801
+ transition: all 0.2s ease;
802
+ }
803
+
804
+ .sp-detail-actions button svg {
805
+ width: 15px;
806
+ height: 15px;
807
+ }
808
+
809
+ .sp-detail-btn-resolve {
810
+ border: 1.5px solid #22c55e;
811
+ background: rgba(34, 197, 94, 0.06);
812
+ color: #22c55e;
813
+ }
814
+
815
+ .sp-detail-btn-resolve:hover {
816
+ background: rgba(34, 197, 94, 0.14);
817
+ box-shadow: 0 0 16px rgba(34, 197, 94, 0.12);
818
+ transform: translateY(-1px);
819
+ }
820
+
821
+ .sp-detail-btn-resolve:active {
822
+ transform: translateY(0) scale(0.98);
823
+ transition-duration: 0.1s;
824
+ }
825
+
826
+ .sp-detail-btn-reopen {
827
+ border: 1.5px solid var(--sp-accent);
828
+ background: var(--sp-accent-light);
829
+ color: var(--sp-accent);
830
+ }
831
+
832
+ .sp-detail-btn-reopen:hover {
833
+ background: rgba(var(--sp-accent), 0.14);
834
+ box-shadow: 0 0 16px var(--sp-accent-glow);
835
+ transform: translateY(-1px);
836
+ }
837
+
838
+ .sp-detail-btn-reopen:active {
839
+ transform: translateY(0) scale(0.98);
840
+ transition-duration: 0.1s;
841
+ }
842
+
843
+ .sp-detail-btn-delete {
844
+ border: 1.5px solid #ef4444;
845
+ background: rgba(239, 68, 68, 0.06);
846
+ color: #ef4444;
847
+ }
848
+
849
+ .sp-detail-btn-delete:hover {
850
+ background: rgba(239, 68, 68, 0.14);
851
+ box-shadow: 0 0 16px rgba(239, 68, 68, 0.12);
852
+ transform: translateY(-1px);
853
+ }
854
+
855
+ .sp-detail-btn-delete:active {
856
+ transform: translateY(0) scale(0.98);
857
+ transition-duration: 0.1s;
858
+ }
859
+
860
+ .sp-detail-actions button:disabled {
861
+ opacity: 0.5;
862
+ cursor: not-allowed;
863
+ pointer-events: none;
864
+ transform: none;
865
+ box-shadow: none;
866
+ }
867
+
868
+ /* ---- Message Section ---- */
869
+
870
+ .sp-detail-message {
871
+ font-size: 14px;
872
+ line-height: 1.65;
873
+ color: var(--sp-text);
874
+ padding: 14px 16px;
875
+ border-left: 3px solid var(--sp-accent);
876
+ border-radius: 0 var(--sp-radius) var(--sp-radius) 0;
877
+ background: var(--sp-glass-bg-heavy);
878
+ white-space: pre-wrap;
879
+ word-break: break-word;
880
+ }
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
+
895
+ /* ---- Metadata Section ---- */
896
+
897
+ .sp-detail-meta {
898
+ display: flex;
899
+ flex-direction: column;
900
+ gap: 14px;
901
+ }
902
+
903
+ .sp-detail-meta-row {
904
+ display: flex;
905
+ align-items: flex-start;
906
+ gap: 12px;
907
+ }
908
+
909
+ .sp-detail-meta-row svg {
910
+ width: 14px;
911
+ height: 14px;
912
+ color: var(--sp-text-tertiary);
913
+ flex-shrink: 0;
914
+ margin-top: 1px;
915
+ }
916
+
917
+ .sp-detail-meta-content {
918
+ flex: 1;
919
+ min-width: 0;
920
+ }
921
+
922
+ .sp-detail-meta-label {
923
+ font-size: 10px;
924
+ font-weight: 600;
925
+ color: var(--sp-text-tertiary);
926
+ text-transform: uppercase;
927
+ letter-spacing: 0.06em;
928
+ line-height: 1;
929
+ margin-bottom: 4px;
930
+ }
931
+
932
+ .sp-detail-meta-value {
933
+ font-size: 13px;
934
+ line-height: 1.4;
935
+ color: var(--sp-text);
936
+ word-break: break-all;
937
+ }
938
+
939
+ .sp-detail-meta-value--mono {
940
+ font-family: "SF Mono", "Cascadia Code", "Fira Code", "Consolas", monospace;
941
+ font-size: 12px;
942
+ background: var(--sp-glass-bg-heavy);
943
+ padding: 2px 6px;
944
+ border-radius: 4px;
945
+ border: 1px solid var(--sp-glass-border-subtle);
946
+ }
947
+
948
+ .sp-detail-meta-value--secondary {
949
+ color: var(--sp-text-secondary);
950
+ font-size: 12px;
951
+ }
952
+
953
+ /* ---- Annotation Section ---- */
954
+
955
+ .sp-detail-annotation {
956
+ display: flex;
957
+ flex-direction: column;
958
+ gap: 12px;
959
+ }
960
+
961
+ .sp-detail-annotation-info {
962
+ display: flex;
963
+ flex-direction: column;
964
+ gap: 10px;
965
+ padding: 14px;
966
+ border-radius: var(--sp-radius);
967
+ background: var(--sp-glass-bg-heavy);
968
+ border: 1px solid var(--sp-glass-border-subtle);
969
+ }
970
+
971
+ .sp-detail-annotation-row {
972
+ display: flex;
973
+ align-items: flex-start;
974
+ gap: 10px;
975
+ }
976
+
977
+ .sp-detail-annotation-row svg {
978
+ width: 13px;
979
+ height: 13px;
980
+ color: var(--sp-text-tertiary);
981
+ flex-shrink: 0;
982
+ margin-top: 2px;
983
+ }
984
+
985
+ .sp-detail-annotation-label {
986
+ font-size: 10px;
987
+ font-weight: 600;
988
+ color: var(--sp-text-tertiary);
989
+ text-transform: uppercase;
990
+ letter-spacing: 0.06em;
991
+ line-height: 1;
992
+ margin-bottom: 3px;
993
+ }
994
+
995
+ .sp-detail-annotation-value {
996
+ font-size: 12px;
997
+ line-height: 1.4;
998
+ color: var(--sp-text);
999
+ word-break: break-all;
1000
+ }
1001
+
1002
+ .sp-detail-annotation-value--mono {
1003
+ font-family: "SF Mono", "Cascadia Code", "Fira Code", "Consolas", monospace;
1004
+ font-size: 11px;
1005
+ background: var(--sp-bg-hover);
1006
+ padding: 2px 6px;
1007
+ border-radius: 4px;
1008
+ display: inline-block;
1009
+ max-width: 100%;
1010
+ overflow: hidden;
1011
+ text-overflow: ellipsis;
1012
+ white-space: nowrap;
1013
+ }
1014
+
1015
+ .sp-detail-btn-goto {
1016
+ width: 100%;
1017
+ height: 44px;
1018
+ padding: 0 20px;
1019
+ border-radius: var(--sp-radius);
1020
+ border: none;
1021
+ background: var(--sp-accent-gradient);
1022
+ color: #fff;
1023
+ font-family: var(--sp-font);
1024
+ font-size: 14px;
1025
+ font-weight: 600;
1026
+ cursor: pointer;
1027
+ display: flex;
1028
+ align-items: center;
1029
+ justify-content: center;
1030
+ gap: 8px;
1031
+ transition: all 0.25s ease;
1032
+ box-shadow: 0 2px 12px var(--sp-accent-glow);
1033
+ }
1034
+
1035
+ .sp-detail-btn-goto svg {
1036
+ width: 16px;
1037
+ height: 16px;
1038
+ }
1039
+
1040
+ .sp-detail-btn-goto:hover {
1041
+ box-shadow: 0 4px 20px var(--sp-accent-glow);
1042
+ transform: translateY(-2px);
1043
+ }
1044
+
1045
+ .sp-detail-btn-goto:active {
1046
+ transform: translateY(0) scale(0.98);
1047
+ transition-duration: 0.1s;
1048
+ }
1049
+
1050
+ /* ---- Forced Colors / High Contrast ---- */
1051
+
1052
+ @media (forced-colors: active) {
1053
+ .sp-detail {
1054
+ border: 2px solid ButtonText !important;
1055
+ background: Canvas !important;
1056
+ }
1057
+
1058
+ .sp-detail-back,
1059
+ .sp-detail-btn-goto,
1060
+ .sp-detail-btn-resolve,
1061
+ .sp-detail-btn-reopen,
1062
+ .sp-detail-btn-delete {
1063
+ border: 2px solid ButtonText !important;
1064
+ background: Canvas !important;
1065
+ color: ButtonText !important;
1066
+ }
1067
+
1068
+ .sp-detail-back:focus-visible,
1069
+ .sp-detail-btn-goto:focus-visible,
1070
+ .sp-detail-btn-resolve:focus-visible,
1071
+ .sp-detail-btn-reopen:focus-visible,
1072
+ .sp-detail-btn-delete:focus-visible {
1073
+ outline: 3px solid Highlight !important;
1074
+ }
1075
+
1076
+ .sp-detail-status-pill {
1077
+ border: 2px solid ButtonText !important;
1078
+ background: Canvas !important;
1079
+ color: ButtonText !important;
1080
+ }
1081
+
1082
+ .sp-detail-message {
1083
+ border-left: 3px solid ButtonText !important;
1084
+ }
1085
+ }
1086
+
1087
+ /* ---- Reduced Motion ---- */
1088
+
1089
+ @media (prefers-reduced-motion: reduce) {
1090
+ .sp-detail {
1091
+ transition-duration: 0.01ms !important;
1092
+ }
1093
+
1094
+ .sp-detail-section {
1095
+ animation-duration: 0.01ms !important;
1096
+ }
1097
+ }
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=`
1099
+ /* ============================
1100
+ Sort Controls Container
1101
+ ============================ */
1102
+
1103
+ .sp-sort-controls {
1104
+ display: flex;
1105
+ align-items: center;
1106
+ gap: 6px;
1107
+ margin-top: 4px;
1108
+ padding-top: 8px;
1109
+ border-top: 1px solid var(--sp-border);
1110
+ }
1111
+
1112
+ /* ============================
1113
+ Sort Dropdown Button
1114
+ ============================ */
1115
+
1116
+ .sp-sort-btn {
1117
+ display: inline-flex;
1118
+ align-items: center;
1119
+ gap: 5px;
1120
+ padding: 5px 12px;
1121
+ border-radius: var(--sp-radius-full);
1122
+ border: 1px solid var(--sp-border);
1123
+ background: var(--sp-glass-bg-heavy);
1124
+ color: var(--sp-text-secondary);
1125
+ font-family: var(--sp-font);
1126
+ font-size: 12px;
1127
+ font-weight: 500;
1128
+ cursor: pointer;
1129
+ white-space: nowrap;
1130
+ transition: all 0.2s ease;
1131
+ position: relative;
1132
+ }
1133
+
1134
+ .sp-sort-btn svg {
1135
+ width: 14px;
1136
+ height: 14px;
1137
+ flex-shrink: 0;
1138
+ }
1139
+
1140
+ .sp-sort-btn:hover {
1141
+ border-color: var(--sp-accent);
1142
+ color: var(--sp-accent);
1143
+ background: var(--sp-accent-light);
1144
+ }
1145
+
1146
+ .sp-sort-btn[aria-expanded="true"] {
1147
+ border-color: var(--sp-accent);
1148
+ color: var(--sp-accent);
1149
+ background: var(--sp-accent-light);
1150
+ }
1151
+
1152
+ /* ============================
1153
+ Sort Floating Menu
1154
+ ============================ */
1155
+
1156
+ .sp-sort-menu {
1157
+ position: absolute;
1158
+ top: calc(100% + 6px);
1159
+ left: 0;
1160
+ min-width: 170px;
1161
+ padding: 4px;
1162
+ border-radius: var(--sp-radius);
1163
+ background: var(--sp-glass-bg-heavy);
1164
+ backdrop-filter: blur(var(--sp-blur-heavy));
1165
+ -webkit-backdrop-filter: blur(var(--sp-blur-heavy));
1166
+ border: 1px solid var(--sp-glass-border);
1167
+ box-shadow: var(--sp-shadow-md);
1168
+ z-index: 10;
1169
+ animation: sp-sort-menu-in 0.15s ease-out both;
1170
+ }
1171
+
1172
+ @keyframes sp-sort-menu-in {
1173
+ from {
1174
+ opacity: 0;
1175
+ transform: translateY(-4px) scale(0.97);
1176
+ }
1177
+ to {
1178
+ opacity: 1;
1179
+ transform: translateY(0) scale(1);
1180
+ }
1181
+ }
1182
+
1183
+ /* ============================
1184
+ Sort Menu Option
1185
+ ============================ */
1186
+
1187
+ .sp-sort-option {
1188
+ display: block;
1189
+ width: 100%;
1190
+ padding: 8px 12px;
1191
+ border: none;
1192
+ border-radius: 8px;
1193
+ background: transparent;
1194
+ color: var(--sp-text-secondary);
1195
+ font-family: var(--sp-font);
1196
+ font-size: 12px;
1197
+ font-weight: 500;
1198
+ cursor: pointer;
1199
+ text-align: left;
1200
+ transition: all 0.15s ease;
1201
+ }
1202
+
1203
+ .sp-sort-option:hover {
1204
+ background: var(--sp-bg-hover);
1205
+ color: var(--sp-text);
1206
+ }
1207
+
1208
+ .sp-sort-option--active {
1209
+ font-weight: 600;
1210
+ }
1211
+
1212
+ .sp-sort-option--active:hover {
1213
+ background: var(--sp-accent-light);
1214
+ color: var(--sp-accent);
1215
+ }
1216
+
1217
+ /* ============================
1218
+ Group by Page Toggle
1219
+ ============================ */
1220
+
1221
+ .sp-group-toggle {
1222
+ display: inline-flex;
1223
+ align-items: center;
1224
+ gap: 5px;
1225
+ padding: 5px 12px;
1226
+ border-radius: var(--sp-radius-full);
1227
+ border: 1px solid var(--sp-border);
1228
+ background: var(--sp-glass-bg-heavy);
1229
+ color: var(--sp-text-secondary);
1230
+ font-family: var(--sp-font);
1231
+ font-size: 12px;
1232
+ font-weight: 500;
1233
+ cursor: pointer;
1234
+ white-space: nowrap;
1235
+ transition: all 0.2s ease;
1236
+ }
1237
+
1238
+ .sp-group-toggle svg {
1239
+ width: 13px;
1240
+ height: 13px;
1241
+ flex-shrink: 0;
1242
+ }
1243
+
1244
+ .sp-group-toggle:hover {
1245
+ border-color: var(--sp-accent);
1246
+ color: var(--sp-accent);
1247
+ background: var(--sp-accent-light);
1248
+ }
1249
+
1250
+ .sp-group-toggle--active {
1251
+ background: var(--sp-accent-gradient);
1252
+ border-color: transparent;
1253
+ color: #fff;
1254
+ box-shadow: 0 2px 8px var(--sp-accent-glow);
1255
+ }
1256
+
1257
+ .sp-group-toggle--active:hover {
1258
+ background: var(--sp-accent-gradient);
1259
+ border-color: transparent;
1260
+ color: #fff;
1261
+ }
1262
+
1263
+ /* ============================
1264
+ Page Group Header
1265
+ ============================ */
1266
+
1267
+ .sp-group-header {
1268
+ display: flex;
1269
+ align-items: center;
1270
+ gap: 8px;
1271
+ padding: 8px 12px;
1272
+ background: var(--sp-accent-light);
1273
+ border-bottom: 1px solid var(--sp-border);
1274
+ cursor: pointer;
1275
+ user-select: none;
1276
+ position: sticky;
1277
+ top: 0;
1278
+ z-index: 2;
1279
+ transition: background 0.2s ease;
1280
+ }
1281
+
1282
+ .sp-group-header:hover {
1283
+ background: var(--sp-bg-hover);
1284
+ }
1285
+
1286
+ .sp-group-header:focus-visible {
1287
+ outline: 2px solid var(--sp-accent);
1288
+ outline-offset: -2px;
1289
+ }
1290
+
1291
+ .sp-group-header-chevron {
1292
+ display: flex;
1293
+ align-items: center;
1294
+ justify-content: center;
1295
+ width: 16px;
1296
+ height: 16px;
1297
+ flex-shrink: 0;
1298
+ transition: transform 0.2s ease;
1299
+ transform: rotate(90deg);
1300
+ }
1301
+
1302
+ .sp-group-header-chevron svg {
1303
+ width: 12px;
1304
+ height: 12px;
1305
+ color: var(--sp-text-tertiary);
1306
+ }
1307
+
1308
+ .sp-group-header--collapsed .sp-group-header-chevron {
1309
+ transform: rotate(0deg);
1310
+ }
1311
+
1312
+ .sp-group-header-icon {
1313
+ display: flex;
1314
+ align-items: center;
1315
+ flex-shrink: 0;
1316
+ }
1317
+
1318
+ .sp-group-header-icon svg {
1319
+ width: 14px;
1320
+ height: 14px;
1321
+ color: var(--sp-text-tertiary);
1322
+ }
1323
+
1324
+ .sp-group-header-path {
1325
+ font-size: 12px;
1326
+ font-weight: 600;
1327
+ color: var(--sp-text-secondary);
1328
+ flex: 1;
1329
+ min-width: 0;
1330
+ overflow: hidden;
1331
+ text-overflow: ellipsis;
1332
+ white-space: nowrap;
1333
+ }
1334
+
1335
+ .sp-group-header-count {
1336
+ font-size: 11px;
1337
+ font-weight: 700;
1338
+ padding: 1px 8px;
1339
+ border-radius: var(--sp-radius-full);
1340
+ flex-shrink: 0;
1341
+ font-variant-numeric: tabular-nums;
1342
+ }
1343
+
1344
+ /* ============================
1345
+ Page Group Content
1346
+ ============================ */
1347
+
1348
+ .sp-group-content {
1349
+ overflow: hidden;
1350
+ transition: max-height 0.25s ease, opacity 0.2s ease;
1351
+ max-height: 5000px;
1352
+ opacity: 1;
1353
+ }
1354
+
1355
+ .sp-group-content--collapsed {
1356
+ max-height: 0;
1357
+ opacity: 0;
1358
+ pointer-events: none;
1359
+ }
1360
+
1361
+ /* ============================
1362
+ Forced Colors / High Contrast
1363
+ ============================ */
1364
+
1365
+ @media (forced-colors: active) {
1366
+ .sp-sort-btn,
1367
+ .sp-group-toggle,
1368
+ .sp-sort-option,
1369
+ .sp-group-header {
1370
+ border: 2px solid ButtonText !important;
1371
+ background: Canvas !important;
1372
+ color: ButtonText !important;
1373
+ }
1374
+
1375
+ .sp-sort-btn:focus-visible,
1376
+ .sp-group-toggle:focus-visible,
1377
+ .sp-sort-option:focus-visible,
1378
+ .sp-group-header:focus-visible {
1379
+ outline: 3px solid Highlight !important;
1380
+ }
1381
+
1382
+ .sp-sort-menu {
1383
+ border: 2px solid ButtonText !important;
1384
+ background: Canvas !important;
1385
+ }
1386
+ }
1387
+
1388
+ /* ============================
1389
+ Reduced Motion
1390
+ ============================ */
1391
+
1392
+ @media (prefers-reduced-motion: reduce) {
1393
+ .sp-sort-menu {
1394
+ animation: none;
1395
+ }
1396
+ .sp-group-header-chevron {
1397
+ transition: none;
1398
+ }
1399
+ .sp-group-content {
1400
+ transition: none;
1401
+ }
1402
+ }
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=`
1404
+ .sp-stats-bar {
1405
+ display: flex;
1406
+ flex-direction: column;
1407
+ gap: 8px;
1408
+ padding: 12px 24px;
1409
+ border-bottom: 1px solid var(--sp-border);
1410
+ user-select: none;
1411
+ }
1412
+
1413
+ .sp-stats-bar[hidden] {
1414
+ display: none;
1415
+ }
1416
+
1417
+ .sp-stats-row {
1418
+ display: flex;
1419
+ align-items: center;
1420
+ gap: 16px;
1421
+ }
1422
+
1423
+ .sp-stats-item {
1424
+ display: flex;
1425
+ align-items: center;
1426
+ gap: 6px;
1427
+ }
1428
+
1429
+ .sp-stats-dot {
1430
+ width: 6px;
1431
+ height: 6px;
1432
+ border-radius: 50%;
1433
+ flex-shrink: 0;
1434
+ }
1435
+
1436
+ .sp-stats-value {
1437
+ font-size: 16px;
1438
+ font-weight: 600;
1439
+ line-height: 1;
1440
+ color: var(--sp-text);
1441
+ font-variant-numeric: tabular-nums;
1442
+ font-feature-settings: "tnum";
1443
+ transition: opacity 0.3s ease;
1444
+ }
1445
+
1446
+ .sp-stats-label {
1447
+ font-size: 11px;
1448
+ line-height: 1;
1449
+ color: var(--sp-text-tertiary);
1450
+ text-transform: uppercase;
1451
+ letter-spacing: 0.04em;
1452
+ }
1453
+
1454
+ .sp-stats-progress {
1455
+ display: flex;
1456
+ align-items: center;
1457
+ gap: 8px;
1458
+ }
1459
+
1460
+ .sp-stats-progress-track {
1461
+ flex: 1;
1462
+ height: 4px;
1463
+ border-radius: 2px;
1464
+ background: var(--sp-border);
1465
+ overflow: hidden;
1466
+ }
1467
+
1468
+ .sp-stats-progress-fill {
1469
+ height: 100%;
1470
+ border-radius: 2px;
1471
+ background: linear-gradient(90deg, var(--sp-accent), #22c55e);
1472
+ width: 0%;
1473
+ transition: width 0.5s ease;
1474
+ }
1475
+
1476
+ .sp-stats-progress-label {
1477
+ font-size: 10px;
1478
+ line-height: 1;
1479
+ color: var(--sp-text-tertiary);
1480
+ white-space: nowrap;
1481
+ font-variant-numeric: tabular-nums;
1482
+ font-feature-settings: "tnum";
1483
+ min-width: 64px;
1484
+ text-align: right;
1485
+ }
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=`
1487
+ /* ---- Help overlay backdrop ---- */
1488
+
1489
+ .sp-shortcuts-overlay {
1490
+ position: fixed;
1491
+ inset: 0;
1492
+ background: var(--sp-backdrop, rgba(15, 23, 42, 0.2));
1493
+ backdrop-filter: blur(var(--sp-blur));
1494
+ -webkit-backdrop-filter: blur(var(--sp-blur));
1495
+ display: flex;
1496
+ align-items: center;
1497
+ justify-content: center;
1498
+ z-index: 10;
1499
+ opacity: 0;
1500
+ pointer-events: none;
1501
+ transition: opacity 0.2s ease;
1502
+ }
1503
+
1504
+ .sp-shortcuts-overlay--visible {
1505
+ opacity: 1;
1506
+ pointer-events: auto;
1507
+ }
1508
+
1509
+ /* ---- Glassmorphism card ---- */
1510
+
1511
+ .sp-shortcuts-card {
1512
+ width: 380px;
1513
+ max-width: calc(100vw - 32px);
1514
+ padding: 24px 28px 20px;
1515
+ border-radius: 20px;
1516
+ background: var(--sp-glass-bg-heavy);
1517
+ backdrop-filter: blur(var(--sp-blur-heavy));
1518
+ -webkit-backdrop-filter: blur(var(--sp-blur-heavy));
1519
+ border: 1px solid var(--sp-glass-border);
1520
+ box-shadow: var(--sp-shadow-xl);
1521
+ font-family: var(--sp-font);
1522
+ position: relative;
1523
+ transform: scale(0.92) translateY(8px);
1524
+ transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
1525
+ }
1526
+
1527
+ .sp-shortcuts-overlay--visible .sp-shortcuts-card {
1528
+ transform: scale(1) translateY(0);
1529
+ }
1530
+
1531
+ /* ---- Title row ---- */
1532
+
1533
+ .sp-shortcuts-title {
1534
+ display: flex;
1535
+ align-items: center;
1536
+ gap: 8px;
1537
+ font-size: 16px;
1538
+ font-weight: 700;
1539
+ color: var(--sp-text);
1540
+ margin-bottom: 18px;
1541
+ }
1542
+
1543
+ .sp-shortcuts-title svg {
1544
+ width: 18px;
1545
+ height: 18px;
1546
+ color: var(--sp-text-secondary);
1547
+ flex-shrink: 0;
1548
+ }
1549
+
1550
+ /* ---- Close button ---- */
1551
+
1552
+ .sp-shortcuts-close {
1553
+ position: absolute;
1554
+ top: 16px;
1555
+ right: 16px;
1556
+ width: 28px;
1557
+ height: 28px;
1558
+ border-radius: 8px;
1559
+ border: none;
1560
+ background: transparent;
1561
+ color: var(--sp-text-tertiary);
1562
+ cursor: pointer;
1563
+ display: flex;
1564
+ align-items: center;
1565
+ justify-content: center;
1566
+ transition: background 0.15s ease, color 0.15s ease;
1567
+ }
1568
+
1569
+ .sp-shortcuts-close:hover {
1570
+ background: var(--sp-bg-hover);
1571
+ color: var(--sp-text);
1572
+ }
1573
+
1574
+ .sp-shortcuts-close svg {
1575
+ width: 14px;
1576
+ height: 14px;
1577
+ }
1578
+
1579
+ /* ---- Two-column grid ---- */
1580
+
1581
+ .sp-shortcuts-grid {
1582
+ display: flex;
1583
+ flex-direction: column;
1584
+ gap: 10px;
1585
+ }
1586
+
1587
+ .sp-shortcuts-row {
1588
+ display: flex;
1589
+ align-items: center;
1590
+ gap: 12px;
1591
+ }
1592
+
1593
+ .sp-shortcuts-keys {
1594
+ display: flex;
1595
+ align-items: center;
1596
+ gap: 4px;
1597
+ min-width: 80px;
1598
+ justify-content: flex-end;
1599
+ }
1600
+
1601
+ .sp-shortcuts-separator {
1602
+ font-size: 11px;
1603
+ color: var(--sp-text-tertiary);
1604
+ user-select: none;
1605
+ }
1606
+
1607
+ /* ---- Key badge (<kbd> styling) ---- */
1608
+
1609
+ .sp-kbd {
1610
+ display: inline-flex;
1611
+ align-items: center;
1612
+ justify-content: center;
1613
+ min-width: 28px;
1614
+ height: 26px;
1615
+ padding: 0 7px;
1616
+ border-radius: 6px;
1617
+ background: var(--sp-bg-hover);
1618
+ border: 1px solid var(--sp-border);
1619
+ box-shadow:
1620
+ inset 0 -1px 0 rgba(0, 0, 0, 0.08),
1621
+ 0 1px 2px rgba(0, 0, 0, 0.04);
1622
+ font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Menlo, monospace;
1623
+ font-size: 12px;
1624
+ font-weight: 600;
1625
+ color: var(--sp-text);
1626
+ text-align: center;
1627
+ line-height: 1;
1628
+ user-select: none;
1629
+ }
1630
+
1631
+ /* ---- Description text ---- */
1632
+
1633
+ .sp-shortcuts-desc {
1634
+ font-size: 13px;
1635
+ color: var(--sp-text-secondary);
1636
+ line-height: 1.3;
1637
+ }
1638
+
1639
+ /* ---- Hint button (bottom-right of panel) ---- */
1640
+
1641
+ .sp-shortcuts-hint {
1642
+ width: 24px;
1643
+ height: 24px;
1644
+ border-radius: var(--sp-radius-full);
1645
+ border: 1px solid var(--sp-border);
1646
+ background: var(--sp-bg-hover);
1647
+ color: var(--sp-text-tertiary);
1648
+ font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Menlo, monospace;
1649
+ font-size: 12px;
1650
+ font-weight: 700;
1651
+ line-height: 1;
1652
+ cursor: pointer;
1653
+ display: flex;
1654
+ align-items: center;
1655
+ justify-content: center;
1656
+ transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
1657
+ position: absolute;
1658
+ bottom: 12px;
1659
+ right: 12px;
1660
+ }
1661
+
1662
+ .sp-shortcuts-hint:hover {
1663
+ background: var(--sp-accent-light);
1664
+ color: var(--sp-accent);
1665
+ border-color: var(--sp-accent);
1666
+ }
1667
+
1668
+ .sp-shortcuts-hint::after {
1669
+ content: attr(aria-label);
1670
+ position: absolute;
1671
+ bottom: calc(100% + 6px);
1672
+ right: 0;
1673
+ padding: 4px 8px;
1674
+ border-radius: 6px;
1675
+ background: var(--sp-glass-bg-heavy);
1676
+ border: 1px solid var(--sp-glass-border);
1677
+ box-shadow: var(--sp-shadow-sm);
1678
+ font-family: var(--sp-font);
1679
+ font-size: 11px;
1680
+ font-weight: 500;
1681
+ color: var(--sp-text-secondary);
1682
+ white-space: nowrap;
1683
+ opacity: 0;
1684
+ pointer-events: none;
1685
+ transform: translateY(4px);
1686
+ transition: opacity 0.15s ease, transform 0.15s ease;
1687
+ }
1688
+
1689
+ .sp-shortcuts-hint:hover::after {
1690
+ opacity: 1;
1691
+ transform: translateY(0);
1692
+ }
1693
+
1694
+ /* ---- Card focus highlight (navigation) ---- */
1695
+
1696
+ .sp-card--focused {
1697
+ outline: 2px solid var(--sp-accent);
1698
+ outline-offset: -2px;
1699
+ border-radius: inherit;
1700
+ }
1701
+
1702
+ /* ---- Reduced motion ---- */
1703
+
1704
+ @media (prefers-reduced-motion: reduce) {
1705
+ .sp-shortcuts-overlay,
1706
+ .sp-shortcuts-card,
1707
+ .sp-shortcuts-close,
1708
+ .sp-shortcuts-hint,
1709
+ .sp-shortcuts-hint::after {
1710
+ transition-duration: 0.01ms !important;
1711
+ }
1712
+ }
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=`
172
1714
  /* ---- Keyframes ---- */
173
1715
 
174
1716
  @keyframes sp-fab-in {
@@ -242,11 +1784,11 @@
242
1784
  /* ---- Animation classes ---- */
243
1785
 
244
1786
  .sp-anim-fab-in {
245
- animation: sp-fab-in 0.5s ${qt} both;
1787
+ animation: sp-fab-in 0.5s ${IB} both;
246
1788
  }
247
1789
 
248
1790
  .sp-anim-marker-in {
249
- animation: sp-marker-in 0.35s ${Ce} both;
1791
+ animation: sp-marker-in 0.35s ${Xs} both;
250
1792
  }
251
1793
 
252
1794
  .sp-anim-pulse {
@@ -254,11 +1796,11 @@
254
1796
  }
255
1797
 
256
1798
  .sp-anim-flash {
257
- animation: sp-flash-bg 0.5s ${Ut};
1799
+ animation: sp-flash-bg 0.5s ${kB};
258
1800
  }
259
1801
 
260
1802
  .sp-anim-slide-up {
261
- animation: sp-slide-up 0.3s ${Ee} both;
1803
+ animation: sp-slide-up 0.3s ${Vs} both;
262
1804
  }
263
1805
 
264
1806
  .sp-anim-fade-in {
@@ -269,7 +1811,7 @@
269
1811
 
270
1812
  .sp-panel {
271
1813
  transform: translateX(110%);
272
- transition: transform 0.4s ${Ee};
1814
+ transition: transform 0.4s ${Vs};
273
1815
  }
274
1816
 
275
1817
  .sp-panel.sp-panel--open {
@@ -281,7 +1823,7 @@
281
1823
  pointer-events: none;
282
1824
  transform: translate(0, 0) scale(0.8);
283
1825
  transition:
284
- transform 0.35s ${Ce},
1826
+ transform 0.35s ${Xs},
285
1827
  opacity 0.2s ease,
286
1828
  background 0.2s ease,
287
1829
  border-color 0.2s ease,
@@ -312,7 +1854,7 @@
312
1854
  }
313
1855
 
314
1856
  .sp-card {
315
- animation: sp-card-in 0.35s ${Ee} both;
1857
+ animation: sp-card-in 0.35s ${Vs} both;
316
1858
  animation-delay: calc(var(--sp-card-i, 0) * 40ms);
317
1859
  }
318
1860
 
@@ -340,7 +1882,7 @@
340
1882
  }
341
1883
 
342
1884
  .sp-fab-badge {
343
- animation: sp-badge-in 0.4s ${Ce} both;
1885
+ animation: sp-badge-in 0.4s ${Xs} both;
344
1886
  }
345
1887
 
346
1888
  /* ---- Reduced motion ---- */
@@ -353,22 +1895,22 @@
353
1895
  }
354
1896
  }
355
1897
 
356
- `;function Te(t){return`
1898
+ `;function Ys(l){return`
357
1899
  :host {
358
1900
  all: initial;
359
1901
  position: fixed;
360
- z-index: 2147483647;
1902
+ z-index: ${2147483647};
361
1903
  font-family: var(--sp-font);
362
1904
  font-size: 14px;
363
1905
  line-height: 1.5;
364
1906
  color: var(--sp-text);
365
1907
  -webkit-font-smoothing: antialiased;
366
1908
  -moz-osx-font-smoothing: grayscale;
367
- ${Qe(t)}
1909
+ ${wo(l)}
368
1910
 
369
1911
  /* Identity modal \u2014 theme-aware backdrop + panel */
370
- --sp-identity-bg: ${t.glassBgHeavy};
371
- --sp-identity-overlay: ${t.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)"};
372
1914
  }
373
1915
 
374
1916
  *, *::before, *::after {
@@ -591,6 +2133,8 @@
591
2133
  background: var(--sp-glass-bg-heavy);
592
2134
  backdrop-filter: blur(var(--sp-blur));
593
2135
  -webkit-backdrop-filter: blur(var(--sp-blur));
2136
+ position: relative;
2137
+ z-index: 2;
594
2138
  }
595
2139
 
596
2140
  .sp-panel-title {
@@ -684,44 +2228,314 @@
684
2228
  color: var(--sp-accent);
685
2229
  }
686
2230
 
687
- .sp-chips {
2231
+ /* ============================
2232
+ Filter bar (type dropdown + status segmented)
2233
+ ============================ */
2234
+
2235
+ .sp-filter-bar {
688
2236
  display: flex;
689
- gap: 6px;
2237
+ align-items: center;
2238
+ gap: 8px;
2239
+ margin-bottom: 8px;
690
2240
  flex-wrap: wrap;
691
2241
  }
692
2242
 
693
- .sp-chip {
694
- padding: 5px 14px;
2243
+ /* ============================
2244
+ Type filter dropdown
2245
+ ============================ */
2246
+
2247
+ .sp-filter-dropdown {
2248
+ position: relative;
2249
+ flex: 1 1 auto;
2250
+ min-width: 0;
2251
+ }
2252
+
2253
+ .sp-filter-dropdown-btn {
2254
+ --sp-chip-color: var(--sp-text-secondary);
2255
+ --sp-chip-bg: var(--sp-glass-bg-heavy);
2256
+
2257
+ display: inline-flex;
2258
+ align-items: center;
2259
+ gap: 8px;
2260
+ width: 100%;
2261
+ height: 32px;
2262
+ padding: 0 8px 0 10px;
2263
+ border-radius: var(--sp-radius-full);
2264
+ border: 1px solid var(--sp-border);
2265
+ background: var(--sp-glass-bg-heavy);
2266
+ color: var(--sp-text);
2267
+ font-family: var(--sp-font);
2268
+ font-size: 12px;
2269
+ font-weight: 500;
2270
+ cursor: pointer;
2271
+ white-space: nowrap;
2272
+ transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
2273
+ }
2274
+
2275
+ .sp-filter-dropdown-btn:hover {
2276
+ border-color: var(--sp-chip-color);
2277
+ background: var(--sp-chip-bg);
2278
+ }
2279
+
2280
+ .sp-filter-dropdown-btn[aria-expanded="true"] {
2281
+ border-color: var(--sp-chip-color);
2282
+ background: var(--sp-chip-bg);
2283
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-chip-color) 14%, transparent);
2284
+ }
2285
+
2286
+ .sp-filter-dropdown-btn--filtered {
2287
+ border-color: var(--sp-chip-color);
2288
+ background: var(--sp-chip-bg);
2289
+ }
2290
+
2291
+ .sp-filter-dropdown-btn__icon {
2292
+ display: inline-flex;
2293
+ align-items: center;
2294
+ justify-content: center;
2295
+ width: 18px;
2296
+ height: 18px;
2297
+ flex-shrink: 0;
2298
+ color: var(--sp-chip-color);
2299
+ }
2300
+
2301
+ .sp-filter-dropdown-btn__icon svg {
2302
+ width: 14px;
2303
+ height: 14px;
2304
+ }
2305
+
2306
+ .sp-filter-dropdown-btn__label {
2307
+ display: inline-flex;
2308
+ align-items: baseline;
2309
+ gap: 6px;
2310
+ flex: 1;
2311
+ min-width: 0;
2312
+ overflow: hidden;
2313
+ }
2314
+
2315
+ .sp-filter-dropdown-btn__prefix {
2316
+ color: var(--sp-text-tertiary);
2317
+ font-weight: 500;
2318
+ font-size: 11px;
2319
+ text-transform: uppercase;
2320
+ letter-spacing: 0.06em;
2321
+ }
2322
+
2323
+ .sp-filter-dropdown-btn__value {
2324
+ color: var(--sp-chip-color);
2325
+ font-weight: 600;
2326
+ overflow: hidden;
2327
+ text-overflow: ellipsis;
2328
+ }
2329
+
2330
+ .sp-filter-dropdown-btn__chevron {
2331
+ display: inline-flex;
2332
+ align-items: center;
2333
+ justify-content: center;
2334
+ width: 14px;
2335
+ height: 14px;
2336
+ flex-shrink: 0;
2337
+ color: var(--sp-text-tertiary);
2338
+ transition: transform 0.18s ease, color 0.18s ease;
2339
+ }
2340
+
2341
+ .sp-filter-dropdown-btn__chevron svg {
2342
+ width: 12px;
2343
+ height: 12px;
2344
+ }
2345
+
2346
+ .sp-filter-dropdown-btn[aria-expanded="true"] .sp-filter-dropdown-btn__chevron {
2347
+ transform: rotate(180deg);
2348
+ color: var(--sp-chip-color);
2349
+ }
2350
+
2351
+ .sp-filter-dropdown-menu {
2352
+ position: absolute;
2353
+ top: calc(100% + 6px);
2354
+ left: 0;
2355
+ right: 0;
2356
+ min-width: 180px;
2357
+ padding: 4px;
2358
+ border-radius: var(--sp-radius);
2359
+ background: var(--sp-glass-bg-heavy);
2360
+ backdrop-filter: blur(var(--sp-blur-heavy));
2361
+ -webkit-backdrop-filter: blur(var(--sp-blur-heavy));
2362
+ border: 1px solid var(--sp-glass-border);
2363
+ box-shadow: var(--sp-shadow-md);
2364
+ z-index: 10;
2365
+ animation: sp-filter-menu-in 0.15s ease-out both;
2366
+ }
2367
+
2368
+ @keyframes sp-filter-menu-in {
2369
+ from { opacity: 0; transform: translateY(-4px) scale(0.98); }
2370
+ to { opacity: 1; transform: translateY(0) scale(1); }
2371
+ }
2372
+
2373
+ .sp-filter-dropdown-option {
2374
+ --sp-chip-color: var(--sp-text-secondary);
2375
+ --sp-chip-bg: transparent;
2376
+
2377
+ display: flex;
2378
+ align-items: center;
2379
+ gap: 10px;
2380
+ width: 100%;
2381
+ padding: 8px 10px;
2382
+ border: none;
2383
+ border-radius: 8px;
2384
+ background: transparent;
2385
+ color: var(--sp-text);
2386
+ font-family: var(--sp-font);
2387
+ font-size: 12px;
2388
+ font-weight: 500;
2389
+ cursor: pointer;
2390
+ text-align: left;
2391
+ transition: background 0.12s ease, color 0.12s ease;
2392
+ }
2393
+
2394
+ .sp-filter-dropdown-option__icon {
2395
+ display: inline-flex;
2396
+ align-items: center;
2397
+ justify-content: center;
2398
+ width: 22px;
2399
+ height: 22px;
2400
+ flex-shrink: 0;
2401
+ border-radius: 6px;
2402
+ background: var(--sp-chip-bg);
2403
+ color: var(--sp-chip-color);
2404
+ }
2405
+
2406
+ .sp-filter-dropdown-option__icon svg {
2407
+ width: 13px;
2408
+ height: 13px;
2409
+ }
2410
+
2411
+ .sp-filter-dropdown-option__label {
2412
+ flex: 1;
2413
+ min-width: 0;
2414
+ }
2415
+
2416
+ .sp-filter-dropdown-option__check {
2417
+ display: inline-flex;
2418
+ align-items: center;
2419
+ justify-content: center;
2420
+ width: 14px;
2421
+ height: 14px;
2422
+ flex-shrink: 0;
2423
+ color: var(--sp-chip-color);
2424
+ }
2425
+
2426
+ .sp-filter-dropdown-option__check svg {
2427
+ width: 13px;
2428
+ height: 13px;
2429
+ }
2430
+
2431
+ .sp-filter-dropdown-option:hover {
2432
+ background: var(--sp-bg-hover);
2433
+ }
2434
+
2435
+ .sp-filter-dropdown-option--active {
2436
+ color: var(--sp-chip-color);
2437
+ font-weight: 600;
2438
+ }
2439
+
2440
+ .sp-filter-dropdown-option--active:hover {
2441
+ background: var(--sp-chip-bg);
2442
+ }
2443
+
2444
+ /* ============================
2445
+ Status segmented control
2446
+ ============================ */
2447
+
2448
+ .sp-segmented {
2449
+ display: inline-flex;
2450
+ align-items: stretch;
2451
+ padding: 2px;
695
2452
  border-radius: var(--sp-radius-full);
696
2453
  border: 1px solid var(--sp-border);
697
2454
  background: var(--sp-glass-bg-heavy);
2455
+ flex-shrink: 0;
2456
+ }
2457
+
2458
+ .sp-segmented__btn {
2459
+ --sp-chip-color: var(--sp-text-tertiary);
2460
+ --sp-chip-bg: transparent;
2461
+
2462
+ display: inline-flex;
2463
+ align-items: center;
2464
+ gap: 5px;
2465
+ height: 26px;
2466
+ padding: 0 10px;
2467
+ border: none;
2468
+ border-radius: var(--sp-radius-full);
2469
+ background: transparent;
698
2470
  color: var(--sp-text-secondary);
699
2471
  font-family: var(--sp-font);
700
2472
  font-size: 12px;
701
2473
  font-weight: 500;
702
2474
  cursor: pointer;
703
- transition: all 0.2s ease;
704
2475
  white-space: nowrap;
705
- letter-spacing: 0.01em;
2476
+ transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
706
2477
  }
707
2478
 
708
- .sp-chip:hover {
709
- border-color: var(--sp-accent);
710
- color: var(--sp-accent);
711
- background: var(--sp-accent-light);
2479
+ .sp-segmented__icon {
2480
+ display: inline-flex;
2481
+ align-items: center;
2482
+ justify-content: center;
2483
+ width: 13px;
2484
+ height: 13px;
2485
+ flex-shrink: 0;
2486
+ color: var(--sp-chip-color);
2487
+ transition: color 0.18s ease, transform 0.18s ease;
712
2488
  }
713
2489
 
714
- .sp-chip--active {
715
- background: var(--sp-accent-gradient);
716
- border-color: transparent;
717
- color: #fff;
718
- box-shadow: 0 2px 8px var(--sp-accent-glow);
2490
+ .sp-segmented__icon svg {
2491
+ width: 13px;
2492
+ height: 13px;
719
2493
  }
720
2494
 
721
- .sp-chip--active:hover {
722
- background: var(--sp-accent-gradient);
723
- border-color: transparent;
724
- color: #fff;
2495
+ .sp-segmented__btn:hover {
2496
+ color: var(--sp-chip-color);
2497
+ }
2498
+
2499
+ .sp-segmented__btn:hover .sp-segmented__icon {
2500
+ color: var(--sp-chip-color);
2501
+ }
2502
+
2503
+ .sp-segmented__btn--active {
2504
+ background: var(--sp-chip-bg);
2505
+ color: var(--sp-chip-color);
2506
+ font-weight: 600;
2507
+ box-shadow:
2508
+ inset 0 0 0 1px color-mix(in srgb, var(--sp-chip-color) 35%, transparent),
2509
+ 0 1px 2px rgba(0, 0, 0, 0.04);
2510
+ }
2511
+
2512
+ .sp-segmented__btn--active .sp-segmented__icon {
2513
+ color: var(--sp-chip-color);
2514
+ }
2515
+
2516
+ .sp-segmented__btn--open.sp-segmented__btn--active .sp-segmented__icon {
2517
+ animation: sp-segmented-pulse 2.4s ease-in-out infinite;
2518
+ }
2519
+
2520
+ @keyframes sp-segmented-pulse {
2521
+ 0%, 100% { transform: scale(1); }
2522
+ 50% { transform: scale(0.85); }
2523
+ }
2524
+
2525
+ @media (prefers-reduced-motion: reduce) {
2526
+ .sp-filter-dropdown-btn,
2527
+ .sp-filter-dropdown-btn__chevron,
2528
+ .sp-filter-dropdown-option,
2529
+ .sp-segmented__btn,
2530
+ .sp-segmented__icon {
2531
+ transition: none;
2532
+ }
2533
+ .sp-filter-dropdown-menu {
2534
+ animation: none;
2535
+ }
2536
+ .sp-segmented__btn--open.sp-segmented__btn--active .sp-segmented__icon {
2537
+ animation: none;
2538
+ }
725
2539
  }
726
2540
 
727
2541
  /* ============================
@@ -759,6 +2573,7 @@
759
2573
  border-radius: var(--sp-radius);
760
2574
  background: var(--sp-glass-bg-heavy);
761
2575
  border: 1px solid var(--sp-glass-border);
2576
+ box-shadow: var(--sp-shadow-xs);
762
2577
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
763
2578
  }
764
2579
 
@@ -951,7 +2766,7 @@
951
2766
  display: flex;
952
2767
  align-items: center;
953
2768
  justify-content: center;
954
- z-index: 2147483647;
2769
+ z-index: ${2147483647};
955
2770
  opacity: 0;
956
2771
  transition: opacity 0.2s ease;
957
2772
  }
@@ -1157,6 +2972,20 @@
1157
2972
  font-weight: 500;
1158
2973
  }
1159
2974
 
2975
+ /* ============================
2976
+ Load More
2977
+ ============================ */
2978
+
2979
+ .sp-load-more-wrap {
2980
+ display: flex;
2981
+ justify-content: center;
2982
+ padding: 12px 0 4px;
2983
+ }
2984
+
2985
+ .sp-btn-load-more {
2986
+ width: 100%;
2987
+ }
2988
+
1160
2989
  /* ============================
1161
2990
  Forced Colors / High Contrast
1162
2991
  ============================ */
@@ -1164,7 +2993,9 @@
1164
2993
  @media (forced-colors: active) {
1165
2994
  .sp-fab,
1166
2995
  .sp-radial-item,
1167
- .sp-chip,
2996
+ .sp-filter-dropdown-btn,
2997
+ .sp-segmented,
2998
+ .sp-segmented__btn,
1168
2999
  .sp-card,
1169
3000
  .sp-panel-close,
1170
3001
  .sp-search,
@@ -1182,9 +3013,26 @@
1182
3013
  color: ButtonText !important;
1183
3014
  }
1184
3015
 
3016
+ .sp-segmented__btn--active {
3017
+ background: Highlight !important;
3018
+ color: HighlightText !important;
3019
+ }
3020
+
3021
+ .sp-filter-dropdown-menu {
3022
+ border: 2px solid ButtonText !important;
3023
+ background: Canvas !important;
3024
+ }
3025
+
3026
+ .sp-filter-dropdown-option--active {
3027
+ background: Highlight !important;
3028
+ color: HighlightText !important;
3029
+ }
3030
+
1185
3031
  .sp-fab:focus-visible,
1186
3032
  .sp-radial-item:focus-visible,
1187
- .sp-chip:focus-visible,
3033
+ .sp-filter-dropdown-btn:focus-visible,
3034
+ .sp-segmented__btn:focus-visible,
3035
+ .sp-filter-dropdown-option:focus-visible,
1188
3036
  .sp-panel-close:focus-visible,
1189
3037
  .sp-btn-resolve:focus-visible,
1190
3038
  .sp-btn-delete:focus-visible,
@@ -1213,10 +3061,16 @@
1213
3061
  }
1214
3062
  }
1215
3063
 
1216
- ${ct}
1217
- `}var Xt=120,Gt=80,re=class{constructor(e,n="fr"){this.colors=e;this.locale=n;this.root=h("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:`
1218
3072
  position: fixed;
1219
- z-index: 2147483647;
3073
+ z-index: ${2147483647};
1220
3074
  max-width: 280px;
1221
3075
  padding: 12px 14px;
1222
3076
  border-radius: 14px;
@@ -1232,7 +3086,7 @@
1232
3086
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
1233
3087
  visibility: hidden;
1234
3088
  -webkit-font-smoothing: antialiased;
1235
- `}),this.root.setAttribute("role","tooltip"),this.root.id=this.tooltipId,this.arrow=h("div",{style:`
3089
+ `}),this.root.setAttribute("role","tooltip"),this.root.id=this.tooltipId,this.arrow=b("div",{style:`
1236
3090
  position: absolute;
1237
3091
  width: 12px;
1238
3092
  height: 12px;
@@ -1240,12 +3094,12 @@
1240
3094
  border: 1px solid ${this.colors.glassBorder};
1241
3095
  transform: rotate(45deg);
1242
3096
  pointer-events: none;
1243
- `}),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,n){this.currentFeedbackId!==e.id&&(this.cancelHide(),this.cancelShow(),this.showTimer=setTimeout(()=>{this.currentFeedbackId=e.id,this.render(e),this.position(n);let i=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;this.root.style.transition=i?"none":"",this.root.style.visibility="visible",this.root.style.opacity="1",this.root.style.transform="translateY(0) scale(1)"},Xt))}scheduleHide(){this.cancelHide(),this.hideTimer=setTimeout(()=>this.hide(),Gt)}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 n=Array.from(this.root.children);for(let p of n)p!==this.arrow&&p.remove();let i=I(e.type,this.colors),s=P(e.type,this.colors),o=ee(this.locale),r=B(e.type,o),a=h("div",{style:"display:flex;align-items:center;gap:8px;margin-bottom:8px;"}),l=h("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:`
1244
3098
  padding:3px 10px;border-radius:9999px;
1245
3099
  font-size:11px;font-weight:600;
1246
- color:${i};background:${s};
3100
+ color:${o};background:${c};
1247
3101
  letter-spacing:0.02em;
1248
- `});b(l,r);let c=h("span",{style:`font-size:11px;color:${this.colors.textSecondary};margin-left:auto;`});b(c,X(e.createdAt,this.locale)),a.appendChild(l),a.appendChild(c);let d=h("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;`});b(d,e.message),this.root.insertBefore(a,this.arrow),this.root.insertBefore(d,this.arrow)}position(e){let n=this.root.getBoundingClientRect(),i=10,s=e.top-n.height-i,o=e.left+e.width/2-n.width/2,r=!0;s<8&&(s=e.bottom+i,r=!1),o=Math.max(8,Math.min(o,window.innerWidth-n.width-8)),this.root.style.top=`${s}px`,this.root.style.left=`${o}px`;let a=Math.max(16,Math.min(e.left+e.width/2-o-6,n.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=`
1249
3103
  position:absolute;
1250
3104
  width:12px;height:12px;
1251
3105
  background:${this.colors.glassBgHeavy};
@@ -1254,7 +3108,7 @@
1254
3108
  transform:rotate(45deg);
1255
3109
  pointer-events:none;
1256
3110
  bottom:-6px;
1257
- left:${a}px;
3111
+ left:${f}px;
1258
3112
  `:this.arrow.style.cssText=`
1259
3113
  position:absolute;
1260
3114
  width:12px;height:12px;
@@ -1264,16 +3118,16 @@
1264
3118
  transform:rotate(45deg);
1265
3119
  pointer-events:none;
1266
3120
  top:-6px;
1267
- left:${a}px;
1268
- `}contains(e){return this.root.contains(e)}destroy(){this.cancelShow(),this.cancelHide(),this.root.remove()}};var z=null;function ae(){let t=()=>{};return{destroy:t,open:t,close:t,refresh:t,on:()=>t,off:t}}function dt(t){let e=t.debug?(...u)=>console.debug("[siteping]",...u):()=>{};if(z)return e("initSiteping() called more than once \u2014 returning existing instance"),z;if(!t.forceShow)try{if(typeof process<"u"){let u="production";return console.info("[siteping] Widget not loaded: production mode detected. Use forceShow: true to override."),t.onSkip?.(u),ae()}}catch{}if(window.innerWidth<768){let u="mobile";return console.info("[siteping] Widget not loaded: viewport width < 768px (mobile not supported)."),t.onSkip?.(u),ae()}if(!t.store&&(!t.endpoint||typeof t.endpoint!="string"))return console.error("[siteping] Missing 'endpoint' or 'store' in config. Provide an endpoint like '/api/siteping' or a SitepingStore instance."),ae();if(!t.projectName||typeof t.projectName!="string")return console.error("[siteping] Missing or invalid 'projectName' in config. Expected a non-empty string."),ae();let n=t.locale??"en",i=ee(n);e("Initializing widget",{projectName:t.projectName,theme:t.theme??"light",locale:n});let s=Ve(t.accentColor,t.theme),o=new O,r=new O,a=t.store?new oe(t.store,t.projectName):new J(t.endpoint,t.projectName);t.onOpen&&o.on("open",t.onOpen),t.onClose&&o.on("close",t.onClose),t.onFeedbackSent&&o.on("feedback:sent",t.onFeedbackSent),t.onError&&o.on("feedback:error",t.onError),t.onAnnotationStart&&o.on("annotation:start",t.onAnnotationStart),t.onAnnotationEnd&&o.on("annotation:end",t.onAnnotationEnd),o.on("feedback:sent",u=>r.emit("feedback:sent",u)),o.on("feedback:deleted",u=>r.emit("feedback:deleted",u)),o.on("open",()=>r.emit("panel:open")),o.on("close",()=>r.emit("panel:close")),o.on("open",()=>e("Panel opened")),o.on("close",()=>e("Panel closed")),o.on("feedback:sent",u=>e("Feedback sent",u.id)),o.on("feedback:error",u=>e("Feedback failed",u.message)),o.on("annotation:start",()=>e("Annotation started")),o.on("annotation:end",()=>e("Annotation ended"));let l=document.createElement("siteping-widget");l.style.cssText="position:fixed;z-index:2147483647;";let c=!1;try{typeof process<"u"&&process.env?.["NODE_ENV"]==="test"&&(c=!0)}catch{}let d=c?"open":"closed",p=l.attachShadow({mode:d});if("adoptedStyleSheets"in ShadowRoot.prototype){let u=new CSSStyleSheet;u.replaceSync(Te(s)),p.adoptedStyleSheets=[u]}else{let u=document.createElement("style");u.textContent=Te(s),p.appendChild(u)}document.body.appendChild(l);let m=document.createElement("div");m.setAttribute("role","status"),m.setAttribute("aria-live","polite"),m.setAttribute("aria-atomic","true"),m.style.cssText="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;",document.body.appendChild(m);let y=new re(s,n),T=new ie(s,y,o,i),k=new Z(p,t,o,i),C=new se(p,s,o,a,t.projectName,T,i,n),v=new Q(s,o,i),g=!1,x=o.on("annotation:complete",async u=>{if(!g){g=!0;try{let{annotation:w,type:S,message:E}=u,A=nt();if(!A){if(A=await Vt(p,i),!A)return;it(A)}let L=new URL(window.location.href);for(let R of[...L.searchParams.keys()])/token|key|secret|auth|session|password|code/i.test(R)&&L.searchParams.delete(R);let _=L.toString(),pt=(()=>{try{return crypto.randomUUID()}catch{return`${Date.now()}-${Math.random().toString(36).slice(2)}`}})(),ut={projectName:t.projectName,type:S,message:E,url:_,viewport:`${window.innerWidth}x${window.innerHeight}`,userAgent:navigator.userAgent,authorName:A.name,authorEmail:A.email,annotations:[w],clientId:pt};try{let R=await a.sendFeedback(ut);o.emit("feedback:sent",R),T.addFeedback(R,T.count+1),m.textContent=i("feedback.sent.confirmation"),await C.refresh()}catch(R){o.emit("feedback:error",R instanceof Error?R:new Error(String(R))),m.textContent=i("feedback.error.message")}}finally{g=!1}}});return a.getFeedbacks(t.projectName,{limit:50}).then(({feedbacks:u})=>{T.render(u)}).catch(u=>{e("Failed to load initial markers:",u)}),t.endpoint&&Je(t.endpoint).then(()=>e("Retry queue flushed")).catch(()=>{}),z={destroy:()=>{e("Destroying widget"),x(),k.destroy(),C.destroy(),v.destroy(),T.destroy(),y.destroy(),o.removeAll(),r.removeAll(),m.remove(),l.remove(),z=null},open:()=>{C.open()},close:()=>{C.close()},refresh:()=>{C.refresh()},on:(u,w)=>r.on(u,w),off:(u,w)=>{r.off(u,w)}},z}function Vt(t,e){return new Promise(n=>{let i=t.activeElement??document.activeElement,s=document.createElement("div");s.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=`
1269
3123
  position:fixed;inset:0;
1270
3124
  background:var(--sp-identity-overlay);
1271
3125
  backdrop-filter:blur(8px);
1272
3126
  -webkit-backdrop-filter:blur(8px);
1273
3127
  display:flex;align-items:center;justify-content:center;
1274
- z-index:2147483647;
3128
+ z-index:${2147483647};
1275
3129
  opacity:0;transition:opacity 0.25s ease;
1276
- `;let o=document.createElement("div");o.style.cssText=`
3130
+ `;let d=document.createElement("div");d.style.cssText=`
1277
3131
  width:340px;padding:28px;border-radius:var(--sp-radius-xl);
1278
3132
  background:var(--sp-identity-bg);
1279
3133
  backdrop-filter:blur(var(--sp-blur-heavy));
@@ -1285,5 +3139,28 @@
1285
3139
  transform:translateY(12px) scale(0.97);
1286
3140
  transition:transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
1287
3141
  -webkit-font-smoothing:antialiased;
1288
- `;let r=`sp-identity-title-${Date.now()}`;o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.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 l=`sp-identity-name-${Date.now()}`,c=`sp-identity-email-${Date.now()}`,d=document.createElement("label");d.className="sp-input-label",d.textContent=e("identity.nameLabel"),d.setAttribute("for",l);let p=document.createElement("input");p.className="sp-input",p.id=l,p.type="text",p.placeholder=e("identity.namePlaceholder"),p.style.marginBottom="14px";let f=document.createElement("label");f.className="sp-input-label",f.textContent=e("identity.emailLabel"),f.setAttribute("for",c);let m=document.createElement("input");m.className="sp-input",m.id=c,m.type="email",m.placeholder=e("identity.emailPlaceholder");let y=document.createElement("div");y.style.cssText="display:flex;gap:8px;justify-content:flex-end;margin-top:20px;";let T=x=>{s.removeEventListener("keydown",g),s.style.opacity="0",o.style.transform="translateY(12px) scale(0.97)",setTimeout(()=>{s.remove(),i?.focus(),n(x)},250)},k=document.createElement("button");k.className="sp-btn-ghost",k.textContent=e("identity.cancel"),k.addEventListener("click",()=>T(null));let C=document.createElement("button");C.className="sp-btn-primary",C.textContent=e("identity.submit"),C.addEventListener("click",()=>{let x=p.value.trim(),u=m.value.trim();if(!x||!u)return;if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(u)){m.style.borderColor="var(--sp-type-bug, #ef4444)";return}T({name:x,email:u})});let v='input, button, [tabindex]:not([tabindex="-1"])',g=x=>{let u=x;if(u.key==="Escape"){T(null);return}if(u.key==="Tab"){let w=Array.from(o.querySelectorAll(v));if(w.length===0)return;let S=w[0],E=w[w.length-1];if(!S||!E)return;let A=t.activeElement;u.shiftKey?(A===S||!o.contains(A))&&(u.preventDefault(),E.focus()):(A===E||!o.contains(A))&&(u.preventDefault(),S.focus())}};s.addEventListener("keydown",g),s.addEventListener("click",x=>{x.target===s&&T(null)}),y.appendChild(k),y.appendChild(C),o.appendChild(a),o.appendChild(d),o.appendChild(p),o.appendChild(f),o.appendChild(m),o.appendChild(y),s.appendChild(o),t.appendChild(s),requestAnimationFrame(()=>{s.style.opacity="1",o.style.transform="translateY(0) scale(1)",p.focus()})})}function Qt(t){return dt(t)}return yt(Jt);})();
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
+ */
1289
3166
  //# sourceMappingURL=index.global.js.map