@tung-engineering/agent-platform-web-sdk 0.0.91 → 0.0.92

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,4 +1,4 @@
1
- var HS=Object.defineProperty,LS=Object.defineProperties;var DS=Object.getOwnPropertyDescriptors;var jf=Object.getOwnPropertySymbols;var RS=Object.prototype.hasOwnProperty,OS=Object.prototype.propertyIsEnumerable;var ye=Math.pow,nl=(pA,KA,jA)=>KA in pA?HS(pA,KA,{enumerable:!0,configurable:!0,writable:!0,value:jA}):pA[KA]=jA,k=(pA,KA)=>{for(var jA in KA||(KA={}))RS.call(KA,jA)&&nl(pA,jA,KA[jA]);if(jf)for(var jA of jf(KA))OS.call(KA,jA)&&nl(pA,jA,KA[jA]);return pA},$=(pA,KA)=>LS(pA,DS(KA));var gA=(pA,KA,jA)=>nl(pA,typeof KA!="symbol"?KA+"":KA,jA);var I=(pA,KA,jA)=>new Promise((il,Ri)=>{var al=Tt=>{try{Ts(jA.next(Tt))}catch(Hs){Ri(Hs)}},cl=Tt=>{try{Ts(jA.throw(Tt))}catch(Hs){Ri(Hs)}},Ts=Tt=>Tt.done?il(Tt.value):Promise.resolve(Tt.value).then(al,cl);Ts((jA=jA.apply(pA,KA)).next())});var AgentPlatformWebSdk=(function(pA){"use strict";var Hf,je,Le,Fn,hr,vn,Ci;const Ag=[`
1
+ var DS=Object.defineProperty,OS=Object.defineProperties;var PS=Object.getOwnPropertyDescriptors;var tg=Object.getOwnPropertySymbols;var MS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable;var Ue=Math.pow,ol=(dA,NA,WA)=>NA in dA?DS(dA,NA,{enumerable:!0,configurable:!0,writable:!0,value:WA}):dA[NA]=WA,F=(dA,NA)=>{for(var WA in NA||(NA={}))MS.call(NA,WA)&&ol(dA,WA,NA[WA]);if(tg)for(var WA of tg(NA))NS.call(NA,WA)&&ol(dA,WA,NA[WA]);return dA},z=(dA,NA)=>OS(dA,PS(NA));var gA=(dA,NA,WA)=>ol(dA,typeof NA!="symbol"?NA+"":NA,WA);var I=(dA,NA,WA)=>new Promise((ll,Oi)=>{var ul=Rt=>{try{Ts(WA.next(Rt))}catch(Hs){Oi(Hs)}},dl=Rt=>{try{Ts(WA.throw(Rt))}catch(Hs){Oi(Hs)}},Ts=Rt=>Rt.done?ll(Rt.value):Promise.resolve(Rt.value).then(ul,dl);Ts((WA=WA.apply(dA,NA)).next())});var AgentPlatformWebSdk=(function(dA){"use strict";var Pf,je,Re,vn,gr,_n,bi;const sg=[`
2
2
  :where([data-ap-sdk][popover]) {
3
3
  position: fixed;
4
4
  margin: 0;
@@ -540,7 +540,7 @@ var HS=Object.defineProperty,LS=Object.defineProperties;var DS=Object.getOwnProp
540
540
  white-space: nowrap;
541
541
  }
542
542
 
543
- /* ── Screenshot preview (see screenshot.ts / panel.ts's captureScreenshotFor) ──────── */
543
+ /* ── Screenshot preview (see screenshot.ts / panel-screenshot.ts) ──────── */
544
544
 
545
545
  .ap-sdk-panel__screenshot {
546
546
  padding: 10px 16px;
@@ -1582,47 +1582,47 @@ button.ap-sdk-list-item__link {
1582
1582
  gap: 8px;
1583
1583
  }
1584
1584
  `].join(`
1585
- `);let ll=!1;function Er(){if(ll)return;const A=document.createElement("style");A.setAttribute("data-ap-sdk","1"),A.textContent=Ag,document.head.appendChild(A),ll=!0}function Ls(A){if(A===document.body)return"body";const e=[];let t=A;for(;t&&t!==document.body;){if(t.id){e.unshift(`#${CSS.escape(t.id)}`);break}let n=t.tagName.toLowerCase();const r=t.parentElement;if(r){const s=Array.from(r.children).filter(o=>o.tagName===t.tagName);if(s.length>1){const o=s.indexOf(t)+1;n+=`:nth-of-type(${o})`}}e.unshift(n),t=t.parentElement}return e.join(" > ")||A.tagName.toLowerCase()}function Ds(A,e=200){var n;const t=((n=A.textContent)!=null?n:"").replace(/\s+/g," ").trim();return t.length>e?t.slice(0,e)+"…":t}const eg=["role","type","name","href","src","alt","title","for","placeholder","data-testid"];function Rs(A){const e=A.tagName.toLowerCase(),t=A.id?`#${A.id}`:"",n=A.classList.length?"."+Array.from(A.classList).join("."):"",r=[],s=new Set,o=a=>{if(s.has(a)||r.length>=8)return;const i=A.getAttribute(a);if(!i)return;s.add(a);const c=i.length>80?i.slice(0,80)+"…":i;r.push(`[${a}="${c}"]`)};for(const a of Array.from(A.attributes))a.name.startsWith("aria-")&&o(a.name);for(const a of eg)o(a);return`${e}${t}${n}${r.join("")}`}function tg(A,e=80){const t=Array.from(A.childNodes).filter(n=>n.nodeType===Node.TEXT_NODE).map(n=>{var r;return((r=n.textContent)!=null?r:"").trim()}).filter(Boolean).join(" ");return t.length>e?t.slice(0,e)+"…":t}function ng(A,e=5,t=10){function n(r,s){const o=Rs(r),a=" ".repeat(s),i=Array.from(r.children).slice(0,t);if(s>=e||i.length===0){const c=tg(r);return c?`${a}${o} "${c}"`:`${a}${o}`}return[`${a}${o}`,...i.map(c=>n(c,s+1))].join(`
1586
- `)}return n(A,0)}const rg='section, article, aside, nav, main, header, footer, form, fieldset, dialog, [role="region"], [role="navigation"], [role="main"], [role="complementary"], [role="banner"], [role="contentinfo"], [role="form"], [role="search"], [role="dialog"]',sg={fieldset:"legend",table:"caption",figure:"figcaption",details:"summary"};function Os(A,e){const t=A.replace(/\s+/g," ").trim();return t.length>e?t.slice(0,e)+"…":t}function og(A){var t;const e=A.querySelectorAll('h1, h2, h3, h4, h5, h6, [role="heading"]');for(const n of Array.from(e)){let r=n.parentElement;for(;r&&r!==A&&!r.matches(rg);)r=r.parentElement;if(r===A){const s=((t=n.textContent)!=null?t:"").trim();if(s)return s}}return""}function ig(A,e=80){var o,a,i;const t=sg[A.tagName.toLowerCase()];if(t){const c=(a=(o=A.querySelector(t))==null?void 0:o.textContent)==null?void 0:a.trim();if(c)return Os(c,e)}const n=og(A);if(n)return Os(n,e);const r=(i=A.getAttribute("aria-label"))==null?void 0:i.trim();if(r)return Os(r,e);const s=A.getAttribute("aria-labelledby");if(s){const c=s.split(/\s+/).map(u=>{var h,f,g;return(g=(f=(h=document.getElementById(u))==null?void 0:h.textContent)==null?void 0:f.trim())!=null?g:""}).filter(Boolean).join(" ");if(c)return Os(c,e)}return""}function ag(A,e=6){const t=[],n=new Set;let r=A;for(;r&&r!==document.body&&t.length<e;){const s=r===A?"":ig(r),o=s&&!n.has(s)?`${Rs(r)} ["${s}"]`:Rs(r);s&&n.add(s),t.unshift(o),r=r.parentElement}return t.join(" > ")||Rs(A)}function ul(A,e){return A.length>e?A.slice(0,e)+"… (truncated)":A}function kr(A){var n;const e=document.querySelector(A);return((n=e==null?void 0:e.content)==null?void 0:n.trim())||void 0}function dl(){const A=e=>{try{return e()}catch(t){return}};return{description:A(()=>kr('meta[name="description"]')),canonicalUrl:A(()=>{var e;return((e=document.querySelector('link[rel="canonical"]'))==null?void 0:e.href)||void 0}),lang:A(()=>document.documentElement.lang||void 0),ogTitle:A(()=>kr('meta[property="og:title"]')),ogDescription:A(()=>kr('meta[property="og:description"]')),ogType:A(()=>kr('meta[property="og:type"]')),ogSiteName:A(()=>kr('meta[property="og:site_name"]')),viewportWidth:A(()=>window.innerWidth),viewportHeight:A(()=>window.innerHeight),scrollX:A(()=>Math.round(window.scrollX)),scrollY:A(()=>Math.round(window.scrollY)),selectionText:A(()=>{var t;const e=(t=window.getSelection())==null?void 0:t.toString().trim();return e?ul(e,1e3):void 0}),capturedAt:new Date().toISOString()}}function cg(A){const e=[];let t=A;for(;t&&e.length<6;){let n=t.tagName.toLowerCase();t.id?n+=`#${t.id}`:t.classList.length&&(n+=`.${Array.from(t.classList).slice(0,2).join(".")}`),e.unshift(n),t=t.parentElement}return e.join(" > ")}function lg(A){const e=A.getAttribute("role")||void 0,t=A.getAttribute("aria-label")||void 0;let n;const r=A.closest("section, article, main, nav, aside, header, footer, [role]");if(r){const s=r.querySelector("h1, h2, h3, h4, h5, h6"),o=r.getAttribute("aria-label")||((s==null?void 0:s.textContent)||"").trim(),a=r.tagName.toLowerCase();n=o?`${a}: ${ul(o,120)}`:a}return{elementRole:e,elementAriaLabel:t,enclosingSection:n}}function ug(A,e){const t=[A.trim(),"",`Page: ${e.pageTitle} (${e.pageUrl})`];return e.description&&t.push(`Description: ${e.description}`),e.selectionText&&t.push(`Selection: ${e.selectionText}`),e.elementText&&t.push(`Selected element: ${e.elementText}`),e.elementRole&&t.push(` Role: ${e.elementRole}`),e.elementAriaLabel&&t.push(` ARIA label: ${e.elementAriaLabel}`),e.enclosingSection&&t.push(`Section: ${e.enclosingSection}`),e.ancestry&&t.push(`Ancestry: ${e.ancestry}`),e.cssSelector&&t.push(`Selector: ${e.cssSelector}`),t.join(`
1587
- `)}const Dn=new Set;let Rn=null,Ps=!1,Oi=!1;function dg(A){if(A.getAttribute("aria-modal")==="false")return!1;const e=getComputedStyle(A);return e.display!=="none"&&e.visibility!=="hidden"}function pg(){const A=document.querySelectorAll("dialog[open]");for(let t=0;t<A.length;t++)try{if(A[t].matches(":modal"))return!0}catch(n){}const e=document.querySelectorAll('[role="dialog"], [role="alertdialog"]');for(let t=0;t<e.length;t++){const n=e[t];if(!(Dn.has(n)||n.hasAttribute("data-ap-sdk"))&&n.isConnected&&dg(n))return!0}return!1}function pl(){const A=pg(),e=A&&!Oi;Oi=A;for(const t of Dn){t.hasAttribute("inert")&&t.removeAttribute("inert"),t.getAttribute("aria-hidden")==="true"&&t.removeAttribute("aria-hidden");const n=t.contains(document.activeElement);if(t.matches(":popover-open")){if(e&&!n){try{t.hidePopover()}catch(r){}try{t.showPopover()}catch(r){}}}else try{t.showPopover()}catch(r){}}}function hl(A){if(!(A instanceof Node))return!1;for(const e of Dn)if(e===A||e.contains(A))return!0;return!1}function On(A){(hl(A.target)||"relatedTarget"in A&&hl(A.relatedTarget))&&A.stopPropagation()}function hg(){Ps||(window.addEventListener("focusin",On,!0),window.addEventListener("focusout",On,!0),window.addEventListener("pointerdown",On,!0),Ps=!0),!Rn&&(Rn=new MutationObserver(A=>{A.some(t=>t.type==="childList"||t.attributeName==="open"&&t.target.tagName==="DIALOG"||t.attributeName==="inert"||t.attributeName==="aria-hidden"||t.attributeName==="role")&&pl()}),Rn.observe(document.documentElement,{attributes:!0,attributeFilter:["open","inert","aria-hidden","role"],childList:!0,subtree:!0}))}function rt(A){"showPopover"in A&&(A.setAttribute("popover","manual"),Dn.add(A),hg(),pl())}function st(A){if(Dn.delete(A),Dn.size===0&&(Rn&&(Rn.disconnect(),Rn=null),Ps&&(window.removeEventListener("focusin",On,!0),window.removeEventListener("focusout",On,!0),window.removeEventListener("pointerdown",On,!0),Ps=!1),Oi=!1),"hidePopover"in A)try{A.hidePopover()}catch(e){}}function Pi(A="ap-sdk-highlight"){const e=document.createElement("div");return e.className=A,e.setAttribute("data-ap-sdk","1"),e.style.display="none",document.body.appendChild(e),rt(e),{el:e,update:s=>{const o=s.getBoundingClientRect();e.style.top=`${o.top}px`,e.style.left=`${o.left}px`,e.style.width=`${o.width}px`,e.style.height=`${o.height}px`,e.style.display="block"},hide:()=>{e.style.display="none"},destroy:()=>{st(e),e.remove()}}}const fl=/^cc-|current-password|new-password/i,fg=/token|secret|password|apikey|auth/i,Mi="[redacted]",Ms="[data-ap-sdk-exclude]";let Ki=null;function gg(A){Ki=(A==null?void 0:A.trim())||null}function gl(){return Ki?`${Ms}, ${Ki}`:Ms}function Ni(A){let e;try{if(e=gl(),A.matches(e)){A.textContent="";return}for(const t of Array.from(A.querySelectorAll(e)))t.remove()}catch(t){for(const n of Array.from(A.querySelectorAll(Ms)))n.remove()}}function Bl(A){if(A instanceof HTMLInputElement&&A.type==="password")return!0;const e=A.getAttribute("autocomplete");return!!e&&fl.test(e)}function wl(A){if(Bl(A))return!0;try{return A.closest(gl())!==null}catch(e){return A.closest(Ms)!==null}}function ml(A){const e=[A,...Array.from(A.querySelectorAll("*"))];for(const t of e){t instanceof HTMLInputElement&&t.type==="password"&&t.setAttribute("value",Mi);const n=t.getAttribute("autocomplete");n&&fl.test(n)&&t.setAttribute("value",Mi);for(const r of Array.from(t.attributes))fg.test(r.name)&&t.setAttribute(r.name,Mi)}}const Bg="🎯 Click any element to capture";let Ht=null,NA=null,qA=null;function Fr(A){return A instanceof Element?A.closest("[data-ap-sdk]")!==null||A.closest(".ap-sdk-panel")!==null||A.closest(".ap-sdk-highlight")!==null||A.closest(".ap-sdk-picker-cursor")!==null:!1}function wg(){var A,e;return((e=(A=window.matchMedia)==null?void 0:A.call(window,"(pointer: coarse)").matches)!=null?e:!1)||"ontouchstart"in window}function Cl(A){Ht==null||Ht.update(A)}function bl(A){const e=dl(),t=cg(A),n=lg(A);let r=A,s;try{const o=A.cloneNode(!0);ml(o),Ni(o),r=o,s=o.outerHTML.slice(0,4e3)}catch(o){}return k(k({pageUrl:window.location.href,pageTitle:document.title,elementText:Ds(r),cssSelector:Ls(A),innerTree:ng(r),outerTree:ag(A),elementOuterHtml:s,ancestry:t},n),e)}function $i(A,e){qA&&qA();const t=wg();Ht=Pi(),NA=document.createElement("div"),NA.className="ap-sdk-picker-cursor",NA.setAttribute("data-ap-sdk","1"),NA.textContent=t?"Tap any element to preview":Bg,document.body.appendChild(NA),rt(NA);let n=null,r=null;const s=u=>{qA==null||qA(),A(bl(u),u)},o=u=>{if(r=u,Cl(u),!NA)return;NA.classList.add("ap-sdk-picker-cursor--confirm"),NA.innerHTML="";const h=document.createElement("span");h.className="ap-sdk-picker-cursor__label",h.textContent=`<${u.tagName.toLowerCase()}>`;const f=document.createElement("button");f.type="button",f.className="ap-sdk-picker-cursor__btn ap-sdk-picker-cursor__btn--cancel",f.textContent="✕ Cancel",f.setAttribute("data-ap-sdk","1"),f.setAttribute("aria-label","Cancel picking"),f.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),qA==null||qA(),e()});const g=document.createElement("button");g.type="button",g.className="ap-sdk-picker-cursor__btn",g.textContent="⬆ Parent",g.setAttribute("data-ap-sdk","1"),g.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),r!=null&&r.parentElement&&o(r.parentElement)});const m=document.createElement("button");m.type="button",m.className="ap-sdk-picker-cursor__btn ap-sdk-picker-cursor__btn--primary",m.textContent="✓ Select",m.setAttribute("data-ap-sdk","1"),m.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),r&&s(r)}),NA.appendChild(h),NA.appendChild(f),NA.appendChild(g),NA.appendChild(m)},a=u=>{Fr(u.target)||(n=u.target,Cl(n))},i=u=>{var f;if(Fr(u.target))return;u.preventDefault(),u.stopImmediatePropagation();const h=(f=u.target)!=null?f:n;if(h){if(t){o(h);return}s(h)}},c=u=>{u.key==="Escape"&&(qA==null||qA(),e())};t||document.addEventListener("mouseover",a,{capture:!0}),document.addEventListener("click",i,{capture:!0}),document.addEventListener("keydown",c,{capture:!0}),qA=()=>{t||document.removeEventListener("mouseover",a,{capture:!0}),document.removeEventListener("click",i,{capture:!0}),document.removeEventListener("keydown",c,{capture:!0}),NA&&st(NA),NA==null||NA.remove(),Ht==null||Ht.destroy(),Ht=null,NA=null,r=null,qA=null}}function zi(){qA==null||qA()}function Pn(){return qA!==null}const Ks={TASK_STATUS_UPDATED:"task:status:updated",TASK_INTERACTION_CREATED:"task:interaction:created",TASK_INTERACTION_ANSWERED:"task:interaction:answered",TASK_BROWSER_COMMAND_CREATED:"task:browser-command:created"};function x(A,e,t){var a;function n(i,c){if(i._zod||Object.defineProperty(i,"_zod",{value:{def:c,constr:o,traits:new Set},enumerable:!1}),i._zod.traits.has(A))return;i._zod.traits.add(A),e(i,c);const u=o.prototype,h=Object.keys(u);for(let f=0;f<h.length;f++){const g=h[f];g in i||(i[g]=u[g].bind(i))}}const r=(a=t==null?void 0:t.Parent)!=null?a:Object;class s extends r{}Object.defineProperty(s,"name",{value:A});function o(i){var h;var c;const u=t!=null&&t.Parent?new s:this;n(u,i),(h=(c=u._zod).deferred)!=null||(c.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:i=>{var c,u;return t!=null&&t.Parent&&i instanceof t.Parent?!0:(u=(c=i==null?void 0:i._zod)==null?void 0:c.traits)==null?void 0:u.has(A)}}),Object.defineProperty(o,"name",{value:A}),o}class Mn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ql extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const yl={};function Lt(A){return yl}function Ul(A){const e=Object.values(A).filter(n=>typeof n=="number");return Object.entries(A).filter(([n,r])=>e.indexOf(+n)===-1).map(([n,r])=>r)}function Vi(A,e){return typeof e=="bigint"?e.toString():e}function Ns(A){return{get value(){{const e=A();return Object.defineProperty(this,"value",{value:e}),e}}}}function Gi(A){return A==null}function Zi(A){const e=A.startsWith("^")?1:0,t=A.endsWith("$")?A.length-1:A.length;return A.slice(e,t)}function mg(A,e){const t=(A.toString().split(".")[1]||"").length,n=e.toString();let r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){const i=n.match(/\d?e-(\d?)/);i!=null&&i[1]&&(r=Number.parseInt(i[1]))}const s=t>r?t:r,o=Number.parseInt(A.toFixed(s).replace(".","")),a=Number.parseInt(e.toFixed(s).replace(".",""));return o%a/ye(10,s)}const El=Symbol("evaluating");function iA(A,e,t){let n;Object.defineProperty(A,e,{get(){if(n!==El)return n===void 0&&(n=El,n=t()),n},set(r){Object.defineProperty(A,e,{value:r})},configurable:!0})}function nn(A,e,t){Object.defineProperty(A,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Dt(...A){const e={};for(const t of A){const n=Object.getOwnPropertyDescriptors(t);Object.assign(e,n)}return Object.defineProperties({},e)}function kl(A){return JSON.stringify(A)}function Cg(A){return A.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Fl="captureStackTrace"in Error?Error.captureStackTrace:(...A)=>{};function vr(A){return typeof A=="object"&&A!==null&&!Array.isArray(A)}const bg=Ns(()=>{var A;if(typeof navigator!="undefined"&&((A=navigator==null?void 0:navigator.userAgent)!=null&&A.includes("Cloudflare")))return!1;try{const e=Function;return new e(""),!0}catch(e){return!1}});function Kn(A){if(vr(A)===!1)return!1;const e=A.constructor;if(e===void 0||typeof e!="function")return!0;const t=e.prototype;return!(vr(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function vl(A){return Kn(A)?k({},A):Array.isArray(A)?[...A]:A}const Qg=new Set(["string","number","symbol"]);function Nn(A){return A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rt(A,e,t){const n=new A._zod.constr(e!=null?e:A._zod.def);return(!e||t!=null&&t.parent)&&(n._zod.parent=A),n}function V(A){const e=A;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?$(k({},e),{error:()=>e.error}):e}function yg(A){return Object.keys(A).filter(e=>A[e]._zod.optin==="optional"&&A[e]._zod.optout==="optional")}const Ug={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Eg(A,e){const t=A._zod.def,n=t.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=Dt(A._zod.def,{get shape(){const o={};for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&(o[a]=t.shape[a])}return nn(this,"shape",o),o},checks:[]});return Rt(A,s)}function kg(A,e){const t=A._zod.def,n=t.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=Dt(A._zod.def,{get shape(){const o=k({},A._zod.def.shape);for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&delete o[a]}return nn(this,"shape",o),o},checks:[]});return Rt(A,s)}function Fg(A,e){if(!Kn(e))throw new Error("Invalid input to extend: expected a plain object");const t=A._zod.def.checks;if(t&&t.length>0){const s=A._zod.def.shape;for(const o in e)if(Object.getOwnPropertyDescriptor(s,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=Dt(A._zod.def,{get shape(){const s=k(k({},A._zod.def.shape),e);return nn(this,"shape",s),s}});return Rt(A,r)}function vg(A,e){if(!Kn(e))throw new Error("Invalid input to safeExtend: expected a plain object");const t=Dt(A._zod.def,{get shape(){const n=k(k({},A._zod.def.shape),e);return nn(this,"shape",n),n}});return Rt(A,t)}function _g(A,e){const t=Dt(A._zod.def,{get shape(){const n=k(k({},A._zod.def.shape),e._zod.def.shape);return nn(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:[]});return Rt(A,t)}function xg(A,e,t){const r=e._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=Dt(e._zod.def,{get shape(){const a=e._zod.def.shape,i=k({},a);if(t)for(const c in t){if(!(c in a))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(i[c]=A?new A({type:"optional",innerType:a[c]}):a[c])}else for(const c in a)i[c]=A?new A({type:"optional",innerType:a[c]}):a[c];return nn(this,"shape",i),i},checks:[]});return Rt(e,o)}function Sg(A,e,t){const n=Dt(e._zod.def,{get shape(){const r=e._zod.def.shape,s=k({},r);if(t)for(const o in t){if(!(o in s))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(s[o]=new A({type:"nonoptional",innerType:r[o]}))}else for(const o in r)s[o]=new A({type:"nonoptional",innerType:r[o]});return nn(this,"shape",s),s}});return Rt(e,n)}function $n(A,e=0){var t;if(A.aborted===!0)return!0;for(let n=e;n<A.issues.length;n++)if(((t=A.issues[n])==null?void 0:t.continue)!==!0)return!0;return!1}function zn(A,e){return e.map(t=>{var r;var n;return(r=(n=t).path)!=null||(n.path=[]),t.path.unshift(A),t})}function $s(A){return typeof A=="string"?A:A==null?void 0:A.message}function Ot(A,e,t){var r,s,o,a,i,c,u,h,f,g,m;const n=$(k({},A),{path:(r=A.path)!=null?r:[]});if(!A.message){const b=(m=(g=(h=(c=$s((a=(o=(s=A.inst)==null?void 0:s._zod.def)==null?void 0:o.error)==null?void 0:a.call(o,A)))!=null?c:$s((i=e==null?void 0:e.error)==null?void 0:i.call(e,A)))!=null?h:$s((u=t.customError)==null?void 0:u.call(t,A)))!=null?g:$s((f=t.localeError)==null?void 0:f.call(t,A)))!=null?m:"Invalid input";n.message=b}return delete n.inst,delete n.continue,e!=null&&e.reportInput||delete n.input,n}function Xi(A){return Array.isArray(A)?"array":typeof A=="string"?"string":"unknown"}function _r(...A){const[e,t,n]=A;return typeof e=="string"?{message:e,code:"custom",input:t,inst:n}:k({},e)}const _l=(A,e)=>{A.name="$ZodError",Object.defineProperty(A,"_zod",{value:A._zod,enumerable:!1}),Object.defineProperty(A,"issues",{value:e,enumerable:!1}),A.message=JSON.stringify(e,Vi,2),Object.defineProperty(A,"toString",{value:()=>A.message,enumerable:!1})},xl=x("$ZodError",_l),Sl=x("$ZodError",_l,{Parent:Error});function Ig(A,e=t=>t.message){const t={},n=[];for(const r of A.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}function Tg(A,e=t=>t.message){const t={_errors:[]},n=r=>{for(const s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)t._errors.push(e(s));else{let o=t,a=0;for(;a<s.path.length;){const i=s.path[a];a===s.path.length-1?(o[i]=o[i]||{_errors:[]},o[i]._errors.push(e(s))):o[i]=o[i]||{_errors:[]},o=o[i],a++}}};return n(A),t}const Wi=A=>(e,t,n,r)=>{var a;const s=n?Object.assign(n,{async:!1}):{async:!1},o=e._zod.run({value:t,issues:[]},s);if(o instanceof Promise)throw new Mn;if(o.issues.length){const i=new((a=r==null?void 0:r.Err)!=null?a:A)(o.issues.map(c=>Ot(c,s,Lt())));throw Fl(i,r==null?void 0:r.callee),i}return o.value},Ji=A=>(e,t,n,r)=>I(null,null,function*(){var a;const s=n?Object.assign(n,{async:!0}):{async:!0};let o=e._zod.run({value:t,issues:[]},s);if(o instanceof Promise&&(o=yield o),o.issues.length){const i=new((a=r==null?void 0:r.Err)!=null?a:A)(o.issues.map(c=>Ot(c,s,Lt())));throw Fl(i,r==null?void 0:r.callee),i}return o.value}),zs=A=>(e,t,n)=>{const r=n?$(k({},n),{async:!1}):{async:!1},s=e._zod.run({value:t,issues:[]},r);if(s instanceof Promise)throw new Mn;return s.issues.length?{success:!1,error:new(A!=null?A:xl)(s.issues.map(o=>Ot(o,r,Lt())))}:{success:!0,data:s.value}},Hg=zs(Sl),Vs=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{async:!0}):{async:!0};let s=e._zod.run({value:t,issues:[]},r);return s instanceof Promise&&(s=yield s),s.issues.length?{success:!1,error:new A(s.issues.map(o=>Ot(o,r,Lt())))}:{success:!0,data:s.value}}),Lg=Vs(Sl),Dg=A=>(e,t,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Wi(A)(e,t,r)},Rg=A=>(e,t,n)=>Wi(A)(e,t,n),Og=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ji(A)(e,t,r)}),Pg=A=>(e,t,n)=>I(null,null,function*(){return Ji(A)(e,t,n)}),Mg=A=>(e,t,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return zs(A)(e,t,r)},Kg=A=>(e,t,n)=>zs(A)(e,t,n),Ng=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Vs(A)(e,t,r)}),$g=A=>(e,t,n)=>I(null,null,function*(){return Vs(A)(e,t,n)}),zg=/^[cC][^\s-]{8,}$/,Vg=/^[0-9a-z]+$/,Gg=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Zg=/^[0-9a-vA-V]{20}$/,Xg=/^[A-Za-z0-9]{27}$/,Wg=/^[a-zA-Z0-9_-]{21}$/,Jg=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jg=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Il=A=>A?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${A}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Yg=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,qg="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function AB(){return new RegExp(qg,"u")}const eB=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tB=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,nB=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,rB=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,sB=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Tl=/^[A-Za-z0-9_-]*$/,oB=/^\+[1-9]\d{6,14}$/,Hl="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",iB=new RegExp(`^${Hl}$`);function Ll(A){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof A.precision=="number"?A.precision===-1?`${e}`:A.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${A.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function aB(A){return new RegExp(`^${Ll(A)}$`)}function cB(A){const e=Ll({precision:A.precision}),t=["Z"];A.local&&t.push(""),A.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${e}(?:${t.join("|")})`;return new RegExp(`^${Hl}T(?:${n})$`)}const lB=A=>{var t,n;const e=A?`[\\s\\S]{${(t=A==null?void 0:A.minimum)!=null?t:0},${(n=A==null?void 0:A.maximum)!=null?n:""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},uB=/^-?\d+$/,Dl=/^-?\d+(?:\.\d+)?$/,dB=/^(?:true|false)$/i,pB=/^[^A-Z]*$/,hB=/^[^a-z]*$/,fe=x("$ZodCheck",(A,e)=>{var n,r;var t;(n=A._zod)!=null||(A._zod={}),A._zod.def=e,(r=(t=A._zod).onattach)!=null||(t.onattach=[])}),Rl={number:"number",bigint:"bigint",object:"date"},Ol=x("$ZodCheckLessThan",(A,e)=>{fe.init(A,e);const t=Rl[typeof e.value];A._zod.onattach.push(n=>{var o;const r=n._zod.bag,s=(o=e.inclusive?r.maximum:r.exclusiveMaximum)!=null?o:Number.POSITIVE_INFINITY;e.value<s&&(e.inclusive?r.maximum=e.value:r.exclusiveMaximum=e.value)}),A._zod.check=n=>{(e.inclusive?n.value<=e.value:n.value<e.value)||n.issues.push({origin:t,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:A,continue:!e.abort})}}),Pl=x("$ZodCheckGreaterThan",(A,e)=>{fe.init(A,e);const t=Rl[typeof e.value];A._zod.onattach.push(n=>{var o;const r=n._zod.bag,s=(o=e.inclusive?r.minimum:r.exclusiveMinimum)!=null?o:Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?r.minimum=e.value:r.exclusiveMinimum=e.value)}),A._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:t,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:A,continue:!e.abort})}}),fB=x("$ZodCheckMultipleOf",(A,e)=>{fe.init(A,e),A._zod.onattach.push(t=>{var r;var n;(r=(n=t._zod.bag).multipleOf)!=null||(n.multipleOf=e.value)}),A._zod.check=t=>{if(typeof t.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%e.value===BigInt(0):mg(t.value,e.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:e.value,input:t.value,inst:A,continue:!e.abort})}}),gB=x("$ZodCheckNumberFormat",(A,e)=>{var o;fe.init(A,e),e.format=e.format||"float64";const t=(o=e.format)==null?void 0:o.includes("int"),n=t?"int":"number",[r,s]=Ug[e.format];A._zod.onattach.push(a=>{const i=a._zod.bag;i.format=e.format,i.minimum=r,i.maximum=s,t&&(i.pattern=uB)}),A._zod.check=a=>{const i=a.value;if(t){if(!Number.isInteger(i)){a.issues.push({expected:n,format:e.format,code:"invalid_type",continue:!1,input:i,inst:A});return}if(!Number.isSafeInteger(i)){i>0?a.issues.push({input:i,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:n,inclusive:!0,continue:!e.abort}):a.issues.push({input:i,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:n,inclusive:!0,continue:!e.abort});return}}i<r&&a.issues.push({origin:"number",input:i,code:"too_small",minimum:r,inclusive:!0,inst:A,continue:!e.abort}),i>s&&a.issues.push({origin:"number",input:i,code:"too_big",maximum:s,inclusive:!0,inst:A,continue:!e.abort})}}),BB=x("$ZodCheckMaxLength",(A,e)=>{var n;var t;fe.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Gi(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{var o;const s=(o=r._zod.bag.maximum)!=null?o:Number.POSITIVE_INFINITY;e.maximum<s&&(r._zod.bag.maximum=e.maximum)}),A._zod.check=r=>{const s=r.value;if(s.length<=e.maximum)return;const a=Xi(s);r.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:s,inst:A,continue:!e.abort})}}),wB=x("$ZodCheckMinLength",(A,e)=>{var n;var t;fe.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Gi(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{var o;const s=(o=r._zod.bag.minimum)!=null?o:Number.NEGATIVE_INFINITY;e.minimum>s&&(r._zod.bag.minimum=e.minimum)}),A._zod.check=r=>{const s=r.value;if(s.length>=e.minimum)return;const a=Xi(s);r.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:s,inst:A,continue:!e.abort})}}),mB=x("$ZodCheckLengthEquals",(A,e)=>{var n;var t;fe.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Gi(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{const s=r._zod.bag;s.minimum=e.length,s.maximum=e.length,s.length=e.length}),A._zod.check=r=>{const s=r.value,o=s.length;if(o===e.length)return;const a=Xi(s),i=o>e.length;r.issues.push($(k({origin:a},i?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length}),{inclusive:!0,exact:!0,input:r.value,inst:A,continue:!e.abort}))}}),Gs=x("$ZodCheckStringFormat",(A,e)=>{var r,s;var t,n;fe.init(A,e),A._zod.onattach.push(o=>{var i;const a=o._zod.bag;a.format=e.format,e.pattern&&((i=a.patterns)!=null||(a.patterns=new Set),a.patterns.add(e.pattern))}),e.pattern?(r=(t=A._zod).check)!=null||(t.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push($(k({origin:"string",code:"invalid_format",format:e.format,input:o.value},e.pattern?{pattern:e.pattern.toString()}:{}),{inst:A,continue:!e.abort}))}):(s=(n=A._zod).check)!=null||(n.check=()=>{})}),CB=x("$ZodCheckRegex",(A,e)=>{Gs.init(A,e),A._zod.check=t=>{e.pattern.lastIndex=0,!e.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:e.pattern.toString(),inst:A,continue:!e.abort})}}),bB=x("$ZodCheckLowerCase",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=pB),Gs.init(A,e)}),QB=x("$ZodCheckUpperCase",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=hB),Gs.init(A,e)}),yB=x("$ZodCheckIncludes",(A,e)=>{fe.init(A,e);const t=Nn(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${t}`:t);e.pattern=n,A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(n)}),A._zod.check=r=>{r.value.includes(e.includes,e.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:r.value,inst:A,continue:!e.abort})}}),UB=x("$ZodCheckStartsWith",(A,e)=>{var n;fe.init(A,e);const t=new RegExp(`^${Nn(e.prefix)}.*`);(n=e.pattern)!=null||(e.pattern=t),A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t)}),A._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:A,continue:!e.abort})}}),EB=x("$ZodCheckEndsWith",(A,e)=>{var n;fe.init(A,e);const t=new RegExp(`.*${Nn(e.suffix)}$`);(n=e.pattern)!=null||(e.pattern=t),A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t)}),A._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:A,continue:!e.abort})}}),kB=x("$ZodCheckOverwrite",(A,e)=>{fe.init(A,e),A._zod.check=t=>{t.value=e.tx(t.value)}});class FB{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const n=e.split(`
1585
+ `);let pl=!1;function kr(){if(pl)return;const A=document.createElement("style");A.setAttribute("data-ap-sdk","1"),A.textContent=sg,document.head.appendChild(A),pl=!0}function Ls(A){if(A===document.body)return"body";const e=[];let t=A;for(;t&&t!==document.body;){if(t.id){e.unshift(`#${CSS.escape(t.id)}`);break}let n=t.tagName.toLowerCase();const r=t.parentElement;if(r){const s=Array.from(r.children).filter(o=>o.tagName===t.tagName);if(s.length>1){const o=s.indexOf(t)+1;n+=`:nth-of-type(${o})`}}e.unshift(n),t=t.parentElement}return e.join(" > ")||A.tagName.toLowerCase()}function Rs(A,e=200){var n;const t=((n=A.textContent)!=null?n:"").replace(/\s+/g," ").trim();return t.length>e?t.slice(0,e)+"…":t}const og=["role","type","name","href","src","alt","title","for","placeholder","data-testid"];function Ds(A){const e=A.tagName.toLowerCase(),t=A.id?`#${A.id}`:"",n=A.classList.length?"."+Array.from(A.classList).join("."):"",r=[],s=new Set,o=a=>{if(s.has(a)||r.length>=8)return;const i=A.getAttribute(a);if(!i)return;s.add(a);const c=i.length>80?i.slice(0,80)+"…":i;r.push(`[${a}="${c}"]`)};for(const a of Array.from(A.attributes))a.name.startsWith("aria-")&&o(a.name);for(const a of og)o(a);return`${e}${t}${n}${r.join("")}`}function ig(A,e=80){const t=Array.from(A.childNodes).filter(n=>n.nodeType===Node.TEXT_NODE).map(n=>{var r;return((r=n.textContent)!=null?r:"").trim()}).filter(Boolean).join(" ");return t.length>e?t.slice(0,e)+"…":t}function ag(A,e=5,t=10){function n(r,s){const o=Ds(r),a=" ".repeat(s),i=Array.from(r.children).slice(0,t);if(s>=e||i.length===0){const c=ig(r);return c?`${a}${o} "${c}"`:`${a}${o}`}return[`${a}${o}`,...i.map(c=>n(c,s+1))].join(`
1586
+ `)}return n(A,0)}const cg='section, article, aside, nav, main, header, footer, form, fieldset, dialog, [role="region"], [role="navigation"], [role="main"], [role="complementary"], [role="banner"], [role="contentinfo"], [role="form"], [role="search"], [role="dialog"]',lg={fieldset:"legend",table:"caption",figure:"figcaption",details:"summary"};function Os(A,e){const t=A.replace(/\s+/g," ").trim();return t.length>e?t.slice(0,e)+"…":t}function ug(A){var t;const e=A.querySelectorAll('h1, h2, h3, h4, h5, h6, [role="heading"]');for(const n of Array.from(e)){let r=n.parentElement;for(;r&&r!==A&&!r.matches(cg);)r=r.parentElement;if(r===A){const s=((t=n.textContent)!=null?t:"").trim();if(s)return s}}return""}function dg(A,e=80){var o,a,i;const t=lg[A.tagName.toLowerCase()];if(t){const c=(a=(o=A.querySelector(t))==null?void 0:o.textContent)==null?void 0:a.trim();if(c)return Os(c,e)}const n=ug(A);if(n)return Os(n,e);const r=(i=A.getAttribute("aria-label"))==null?void 0:i.trim();if(r)return Os(r,e);const s=A.getAttribute("aria-labelledby");if(s){const c=s.split(/\s+/).map(u=>{var h,f,g;return(g=(f=(h=document.getElementById(u))==null?void 0:h.textContent)==null?void 0:f.trim())!=null?g:""}).filter(Boolean).join(" ");if(c)return Os(c,e)}return""}function pg(A,e=6){const t=[],n=new Set;let r=A;for(;r&&r!==document.body&&t.length<e;){const s=r===A?"":dg(r),o=s&&!n.has(s)?`${Ds(r)} ["${s}"]`:Ds(r);s&&n.add(s),t.unshift(o),r=r.parentElement}return t.join(" > ")||Ds(A)}function hl(A,e){return A.length>e?A.slice(0,e)+"… (truncated)":A}function Fr(A){var n;const e=document.querySelector(A);return((n=e==null?void 0:e.content)==null?void 0:n.trim())||void 0}function fl(){const A=e=>{try{return e()}catch(t){return}};return{description:A(()=>Fr('meta[name="description"]')),canonicalUrl:A(()=>{var e;return((e=document.querySelector('link[rel="canonical"]'))==null?void 0:e.href)||void 0}),lang:A(()=>document.documentElement.lang||void 0),ogTitle:A(()=>Fr('meta[property="og:title"]')),ogDescription:A(()=>Fr('meta[property="og:description"]')),ogType:A(()=>Fr('meta[property="og:type"]')),ogSiteName:A(()=>Fr('meta[property="og:site_name"]')),viewportWidth:A(()=>window.innerWidth),viewportHeight:A(()=>window.innerHeight),scrollX:A(()=>Math.round(window.scrollX)),scrollY:A(()=>Math.round(window.scrollY)),selectionText:A(()=>{var t;const e=(t=window.getSelection())==null?void 0:t.toString().trim();return e?hl(e,1e3):void 0}),capturedAt:new Date().toISOString()}}function hg(A){const e=[];let t=A;for(;t&&e.length<6;){let n=t.tagName.toLowerCase();t.id?n+=`#${t.id}`:t.classList.length&&(n+=`.${Array.from(t.classList).slice(0,2).join(".")}`),e.unshift(n),t=t.parentElement}return e.join(" > ")}function fg(A){const e=A.getAttribute("role")||void 0,t=A.getAttribute("aria-label")||void 0;let n;const r=A.closest("section, article, main, nav, aside, header, footer, [role]");if(r){const s=r.querySelector("h1, h2, h3, h4, h5, h6"),o=r.getAttribute("aria-label")||((s==null?void 0:s.textContent)||"").trim(),a=r.tagName.toLowerCase();n=o?`${a}: ${hl(o,120)}`:a}return{elementRole:e,elementAriaLabel:t,enclosingSection:n}}function gg(A,e){const t=[A.trim(),"",`Page: ${e.pageTitle} (${e.pageUrl})`];return e.description&&t.push(`Description: ${e.description}`),e.selectionText&&t.push(`Selection: ${e.selectionText}`),e.elementText&&t.push(`Selected element: ${e.elementText}`),e.elementRole&&t.push(` Role: ${e.elementRole}`),e.elementAriaLabel&&t.push(` ARIA label: ${e.elementAriaLabel}`),e.enclosingSection&&t.push(`Section: ${e.enclosingSection}`),e.ancestry&&t.push(`Ancestry: ${e.ancestry}`),e.cssSelector&&t.push(`Selector: ${e.cssSelector}`),t.join(`
1587
+ `)}const On=new Set;let Pn=null,Ps=!1,Pi=!1;function Bg(A){if(A.getAttribute("aria-modal")==="false")return!1;const e=getComputedStyle(A);return e.display!=="none"&&e.visibility!=="hidden"}function wg(){const A=document.querySelectorAll("dialog[open]");for(let t=0;t<A.length;t++)try{if(A[t].matches(":modal"))return!0}catch(n){}const e=document.querySelectorAll('[role="dialog"], [role="alertdialog"]');for(let t=0;t<e.length;t++){const n=e[t];if(!(On.has(n)||n.hasAttribute("data-ap-sdk"))&&n.isConnected&&Bg(n))return!0}return!1}function gl(){const A=wg(),e=A&&!Pi;Pi=A;for(const t of On){t.hasAttribute("inert")&&t.removeAttribute("inert"),t.getAttribute("aria-hidden")==="true"&&t.removeAttribute("aria-hidden");const n=t.contains(document.activeElement);if(t.matches(":popover-open")){if(e&&!n){try{t.hidePopover()}catch(r){}try{t.showPopover()}catch(r){}}}else try{t.showPopover()}catch(r){}}}function Bl(A){if(!(A instanceof Node))return!1;for(const e of On)if(e===A||e.contains(A))return!0;return!1}function Mn(A){(Bl(A.target)||"relatedTarget"in A&&Bl(A.relatedTarget))&&A.stopPropagation()}function mg(){Ps||(window.addEventListener("focusin",Mn,!0),window.addEventListener("focusout",Mn,!0),window.addEventListener("pointerdown",Mn,!0),Ps=!0),!Pn&&(Pn=new MutationObserver(A=>{A.some(t=>t.type==="childList"||t.attributeName==="open"&&t.target.tagName==="DIALOG"||t.attributeName==="inert"||t.attributeName==="aria-hidden"||t.attributeName==="role")&&gl()}),Pn.observe(document.documentElement,{attributes:!0,attributeFilter:["open","inert","aria-hidden","role"],childList:!0,subtree:!0}))}function ot(A){"showPopover"in A&&(A.setAttribute("popover","manual"),On.add(A),mg(),gl())}function it(A){if(On.delete(A),On.size===0&&(Pn&&(Pn.disconnect(),Pn=null),Ps&&(window.removeEventListener("focusin",Mn,!0),window.removeEventListener("focusout",Mn,!0),window.removeEventListener("pointerdown",Mn,!0),Ps=!1),Pi=!1),"hidePopover"in A)try{A.hidePopover()}catch(e){}}function Mi(A="ap-sdk-highlight"){const e=document.createElement("div");return e.className=A,e.setAttribute("data-ap-sdk","1"),e.style.display="none",document.body.appendChild(e),ot(e),{el:e,update:s=>{const o=s.getBoundingClientRect();e.style.top=`${o.top}px`,e.style.left=`${o.left}px`,e.style.width=`${o.width}px`,e.style.height=`${o.height}px`,e.style.display="block"},hide:()=>{e.style.display="none"},destroy:()=>{it(e),e.remove()}}}const wl=/^cc-|current-password|new-password/i,Cg=/token|secret|password|apikey|auth/i,Ni="[redacted]",Ms="[data-ap-sdk-exclude]";let Ki=null;function bg(A){Ki=(A==null?void 0:A.trim())||null}function ml(){return Ki?`${Ms}, ${Ki}`:Ms}function $i(A){let e;try{if(e=ml(),A.matches(e)){A.textContent="";return}for(const t of Array.from(A.querySelectorAll(e)))t.remove()}catch(t){for(const n of Array.from(A.querySelectorAll(Ms)))n.remove()}}function Cl(A){if(A instanceof HTMLInputElement&&A.type==="password")return!0;const e=A.getAttribute("autocomplete");return!!e&&wl.test(e)}function bl(A){if(Cl(A))return!0;try{return A.closest(ml())!==null}catch(e){return A.closest(Ms)!==null}}function Ql(A){const e=[A,...Array.from(A.querySelectorAll("*"))];for(const t of e){t instanceof HTMLInputElement&&t.type==="password"&&t.setAttribute("value",Ni);const n=t.getAttribute("autocomplete");n&&wl.test(n)&&t.setAttribute("value",Ni);for(const r of Array.from(t.attributes))Cg.test(r.name)&&t.setAttribute(r.name,Ni)}}const Qg="🎯 Click any element to capture";let Dt=null,KA=null,Ae=null;function vr(A){return A instanceof Element?A.closest("[data-ap-sdk]")!==null||A.closest(".ap-sdk-panel")!==null||A.closest(".ap-sdk-highlight")!==null||A.closest(".ap-sdk-picker-cursor")!==null:!1}function yg(){var A,e;return((e=(A=window.matchMedia)==null?void 0:A.call(window,"(pointer: coarse)").matches)!=null?e:!1)||"ontouchstart"in window}function yl(A){Dt==null||Dt.update(A)}function Ul(A){const e=fl(),t=hg(A),n=fg(A);let r=A,s;try{const o=A.cloneNode(!0);Ql(o),$i(o),r=o,s=o.outerHTML.slice(0,4e3)}catch(o){}return F(F({pageUrl:window.location.href,pageTitle:document.title,elementText:Rs(r),cssSelector:Ls(A),innerTree:ag(r),outerTree:pg(A),elementOuterHtml:s,ancestry:t},n),e)}function zi(A,e){Ae&&Ae();const t=yg();Dt=Mi(),KA=document.createElement("div"),KA.className="ap-sdk-picker-cursor",KA.setAttribute("data-ap-sdk","1"),KA.textContent=t?"Tap any element to preview":Qg,document.body.appendChild(KA),ot(KA);let n=null,r=null;const s=u=>{Ae==null||Ae(),A(Ul(u),u)},o=u=>{if(r=u,yl(u),!KA)return;KA.classList.add("ap-sdk-picker-cursor--confirm"),KA.innerHTML="";const h=document.createElement("span");h.className="ap-sdk-picker-cursor__label",h.textContent=`<${u.tagName.toLowerCase()}>`;const f=document.createElement("button");f.type="button",f.className="ap-sdk-picker-cursor__btn ap-sdk-picker-cursor__btn--cancel",f.textContent="✕ Cancel",f.setAttribute("data-ap-sdk","1"),f.setAttribute("aria-label","Cancel picking"),f.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),Ae==null||Ae(),e()});const g=document.createElement("button");g.type="button",g.className="ap-sdk-picker-cursor__btn",g.textContent="⬆ Parent",g.setAttribute("data-ap-sdk","1"),g.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),r!=null&&r.parentElement&&o(r.parentElement)});const m=document.createElement("button");m.type="button",m.className="ap-sdk-picker-cursor__btn ap-sdk-picker-cursor__btn--primary",m.textContent="✓ Select",m.setAttribute("data-ap-sdk","1"),m.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation(),r&&s(r)}),KA.appendChild(h),KA.appendChild(f),KA.appendChild(g),KA.appendChild(m)},a=u=>{vr(u.target)||(n=u.target,yl(n))},i=u=>{var f;if(vr(u.target))return;u.preventDefault(),u.stopImmediatePropagation();const h=(f=u.target)!=null?f:n;if(h){if(t){o(h);return}s(h)}},c=u=>{u.key==="Escape"&&(Ae==null||Ae(),e())};t||document.addEventListener("mouseover",a,{capture:!0}),document.addEventListener("click",i,{capture:!0}),document.addEventListener("keydown",c,{capture:!0}),Ae=()=>{t||document.removeEventListener("mouseover",a,{capture:!0}),document.removeEventListener("click",i,{capture:!0}),document.removeEventListener("keydown",c,{capture:!0}),KA&&it(KA),KA==null||KA.remove(),Dt==null||Dt.destroy(),Dt=null,KA=null,r=null,Ae=null}}function Vi(){Ae==null||Ae()}function Nn(){return Ae!==null}const Gi="browser_capture",El="browser_automate";var Ns=(A=>(A.TASK="task",A.PLANNING_SESSION="planning_session",A))(Ns||{}),Ks=(A=>(A.CREATE="create",A.RETRY="retry",A.LIVE_INSTRUCTION="live_instruction",A.REJECT_RESULT="reject_result",A))(Ks||{});const $s={TASK_STATUS_UPDATED:"task:status:updated",TASK_INTERACTION_CREATED:"task:interaction:created",TASK_INTERACTION_ANSWERED:"task:interaction:answered",TASK_BROWSER_COMMAND_CREATED:"task:browser-command:created"};function _(A,e,t){var a;function n(i,c){if(i._zod||Object.defineProperty(i,"_zod",{value:{def:c,constr:o,traits:new Set},enumerable:!1}),i._zod.traits.has(A))return;i._zod.traits.add(A),e(i,c);const u=o.prototype,h=Object.keys(u);for(let f=0;f<h.length;f++){const g=h[f];g in i||(i[g]=u[g].bind(i))}}const r=(a=t==null?void 0:t.Parent)!=null?a:Object;class s extends r{}Object.defineProperty(s,"name",{value:A});function o(i){var h;var c;const u=t!=null&&t.Parent?new s:this;n(u,i),(h=(c=u._zod).deferred)!=null||(c.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:i=>{var c,u;return t!=null&&t.Parent&&i instanceof t.Parent?!0:(u=(c=i==null?void 0:i._zod)==null?void 0:c.traits)==null?void 0:u.has(A)}}),Object.defineProperty(o,"name",{value:A}),o}class Kn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class kl extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const Fl={};function Ot(A){return Fl}function vl(A){const e=Object.values(A).filter(n=>typeof n=="number");return Object.entries(A).filter(([n,r])=>e.indexOf(+n)===-1).map(([n,r])=>r)}function Zi(A,e){return typeof e=="bigint"?e.toString():e}function zs(A){return{get value(){{const e=A();return Object.defineProperty(this,"value",{value:e}),e}}}}function Xi(A){return A==null}function Wi(A){const e=A.startsWith("^")?1:0,t=A.endsWith("$")?A.length-1:A.length;return A.slice(e,t)}function Ug(A,e){const t=(A.toString().split(".")[1]||"").length,n=e.toString();let r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){const i=n.match(/\d?e-(\d?)/);i!=null&&i[1]&&(r=Number.parseInt(i[1]))}const s=t>r?t:r,o=Number.parseInt(A.toFixed(s).replace(".","")),a=Number.parseInt(e.toFixed(s).replace(".",""));return o%a/Ue(10,s)}const _l=Symbol("evaluating");function iA(A,e,t){let n;Object.defineProperty(A,e,{get(){if(n!==_l)return n===void 0&&(n=_l,n=t()),n},set(r){Object.defineProperty(A,e,{value:r})},configurable:!0})}function rn(A,e,t){Object.defineProperty(A,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Pt(...A){const e={};for(const t of A){const n=Object.getOwnPropertyDescriptors(t);Object.assign(e,n)}return Object.defineProperties({},e)}function xl(A){return JSON.stringify(A)}function Eg(A){return A.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Sl="captureStackTrace"in Error?Error.captureStackTrace:(...A)=>{};function _r(A){return typeof A=="object"&&A!==null&&!Array.isArray(A)}const kg=zs(()=>{var A;if(typeof navigator!="undefined"&&((A=navigator==null?void 0:navigator.userAgent)!=null&&A.includes("Cloudflare")))return!1;try{const e=Function;return new e(""),!0}catch(e){return!1}});function $n(A){if(_r(A)===!1)return!1;const e=A.constructor;if(e===void 0||typeof e!="function")return!0;const t=e.prototype;return!(_r(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function Il(A){return $n(A)?F({},A):Array.isArray(A)?[...A]:A}const Fg=new Set(["string","number","symbol"]);function zn(A){return A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Mt(A,e,t){const n=new A._zod.constr(e!=null?e:A._zod.def);return(!e||t!=null&&t.parent)&&(n._zod.parent=A),n}function V(A){const e=A;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?z(F({},e),{error:()=>e.error}):e}function vg(A){return Object.keys(A).filter(e=>A[e]._zod.optin==="optional"&&A[e]._zod.optout==="optional")}const _g={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function xg(A,e){const t=A._zod.def,n=t.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=Pt(A._zod.def,{get shape(){const o={};for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&(o[a]=t.shape[a])}return rn(this,"shape",o),o},checks:[]});return Mt(A,s)}function Sg(A,e){const t=A._zod.def,n=t.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=Pt(A._zod.def,{get shape(){const o=F({},A._zod.def.shape);for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&delete o[a]}return rn(this,"shape",o),o},checks:[]});return Mt(A,s)}function Ig(A,e){if(!$n(e))throw new Error("Invalid input to extend: expected a plain object");const t=A._zod.def.checks;if(t&&t.length>0){const s=A._zod.def.shape;for(const o in e)if(Object.getOwnPropertyDescriptor(s,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=Pt(A._zod.def,{get shape(){const s=F(F({},A._zod.def.shape),e);return rn(this,"shape",s),s}});return Mt(A,r)}function Tg(A,e){if(!$n(e))throw new Error("Invalid input to safeExtend: expected a plain object");const t=Pt(A._zod.def,{get shape(){const n=F(F({},A._zod.def.shape),e);return rn(this,"shape",n),n}});return Mt(A,t)}function Hg(A,e){const t=Pt(A._zod.def,{get shape(){const n=F(F({},A._zod.def.shape),e._zod.def.shape);return rn(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:[]});return Mt(A,t)}function Lg(A,e,t){const r=e._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const o=Pt(e._zod.def,{get shape(){const a=e._zod.def.shape,i=F({},a);if(t)for(const c in t){if(!(c in a))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(i[c]=A?new A({type:"optional",innerType:a[c]}):a[c])}else for(const c in a)i[c]=A?new A({type:"optional",innerType:a[c]}):a[c];return rn(this,"shape",i),i},checks:[]});return Mt(e,o)}function Rg(A,e,t){const n=Pt(e._zod.def,{get shape(){const r=e._zod.def.shape,s=F({},r);if(t)for(const o in t){if(!(o in s))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(s[o]=new A({type:"nonoptional",innerType:r[o]}))}else for(const o in r)s[o]=new A({type:"nonoptional",innerType:r[o]});return rn(this,"shape",s),s}});return Mt(e,n)}function Vn(A,e=0){var t;if(A.aborted===!0)return!0;for(let n=e;n<A.issues.length;n++)if(((t=A.issues[n])==null?void 0:t.continue)!==!0)return!0;return!1}function Gn(A,e){return e.map(t=>{var r;var n;return(r=(n=t).path)!=null||(n.path=[]),t.path.unshift(A),t})}function Vs(A){return typeof A=="string"?A:A==null?void 0:A.message}function Nt(A,e,t){var r,s,o,a,i,c,u,h,f,g,m;const n=z(F({},A),{path:(r=A.path)!=null?r:[]});if(!A.message){const b=(m=(g=(h=(c=Vs((a=(o=(s=A.inst)==null?void 0:s._zod.def)==null?void 0:o.error)==null?void 0:a.call(o,A)))!=null?c:Vs((i=e==null?void 0:e.error)==null?void 0:i.call(e,A)))!=null?h:Vs((u=t.customError)==null?void 0:u.call(t,A)))!=null?g:Vs((f=t.localeError)==null?void 0:f.call(t,A)))!=null?m:"Invalid input";n.message=b}return delete n.inst,delete n.continue,e!=null&&e.reportInput||delete n.input,n}function Ji(A){return Array.isArray(A)?"array":typeof A=="string"?"string":"unknown"}function xr(...A){const[e,t,n]=A;return typeof e=="string"?{message:e,code:"custom",input:t,inst:n}:F({},e)}const Tl=(A,e)=>{A.name="$ZodError",Object.defineProperty(A,"_zod",{value:A._zod,enumerable:!1}),Object.defineProperty(A,"issues",{value:e,enumerable:!1}),A.message=JSON.stringify(e,Zi,2),Object.defineProperty(A,"toString",{value:()=>A.message,enumerable:!1})},Hl=_("$ZodError",Tl),Ll=_("$ZodError",Tl,{Parent:Error});function Dg(A,e=t=>t.message){const t={},n=[];for(const r of A.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}function Og(A,e=t=>t.message){const t={_errors:[]},n=r=>{for(const s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)t._errors.push(e(s));else{let o=t,a=0;for(;a<s.path.length;){const i=s.path[a];a===s.path.length-1?(o[i]=o[i]||{_errors:[]},o[i]._errors.push(e(s))):o[i]=o[i]||{_errors:[]},o=o[i],a++}}};return n(A),t}const ji=A=>(e,t,n,r)=>{var a;const s=n?Object.assign(n,{async:!1}):{async:!1},o=e._zod.run({value:t,issues:[]},s);if(o instanceof Promise)throw new Kn;if(o.issues.length){const i=new((a=r==null?void 0:r.Err)!=null?a:A)(o.issues.map(c=>Nt(c,s,Ot())));throw Sl(i,r==null?void 0:r.callee),i}return o.value},Yi=A=>(e,t,n,r)=>I(null,null,function*(){var a;const s=n?Object.assign(n,{async:!0}):{async:!0};let o=e._zod.run({value:t,issues:[]},s);if(o instanceof Promise&&(o=yield o),o.issues.length){const i=new((a=r==null?void 0:r.Err)!=null?a:A)(o.issues.map(c=>Nt(c,s,Ot())));throw Sl(i,r==null?void 0:r.callee),i}return o.value}),Gs=A=>(e,t,n)=>{const r=n?z(F({},n),{async:!1}):{async:!1},s=e._zod.run({value:t,issues:[]},r);if(s instanceof Promise)throw new Kn;return s.issues.length?{success:!1,error:new(A!=null?A:Hl)(s.issues.map(o=>Nt(o,r,Ot())))}:{success:!0,data:s.value}},Pg=Gs(Ll),Zs=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{async:!0}):{async:!0};let s=e._zod.run({value:t,issues:[]},r);return s instanceof Promise&&(s=yield s),s.issues.length?{success:!1,error:new A(s.issues.map(o=>Nt(o,r,Ot())))}:{success:!0,data:s.value}}),Mg=Zs(Ll),Ng=A=>(e,t,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ji(A)(e,t,r)},Kg=A=>(e,t,n)=>ji(A)(e,t,n),$g=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Yi(A)(e,t,r)}),zg=A=>(e,t,n)=>I(null,null,function*(){return Yi(A)(e,t,n)}),Vg=A=>(e,t,n)=>{const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Gs(A)(e,t,r)},Gg=A=>(e,t,n)=>Gs(A)(e,t,n),Zg=A=>(e,t,n)=>I(null,null,function*(){const r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Zs(A)(e,t,r)}),Xg=A=>(e,t,n)=>I(null,null,function*(){return Zs(A)(e,t,n)}),Wg=/^[cC][^\s-]{8,}$/,Jg=/^[0-9a-z]+$/,jg=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Yg=/^[0-9a-vA-V]{20}$/,qg=/^[A-Za-z0-9]{27}$/,AB=/^[a-zA-Z0-9_-]{21}$/,eB=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,tB=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Rl=A=>A?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${A}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,nB=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,rB="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function sB(){return new RegExp(rB,"u")}const oB=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iB=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,aB=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,cB=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,lB=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Dl=/^[A-Za-z0-9_-]*$/,uB=/^\+[1-9]\d{6,14}$/,Ol="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",dB=new RegExp(`^${Ol}$`);function Pl(A){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof A.precision=="number"?A.precision===-1?`${e}`:A.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${A.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function pB(A){return new RegExp(`^${Pl(A)}$`)}function hB(A){const e=Pl({precision:A.precision}),t=["Z"];A.local&&t.push(""),A.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${e}(?:${t.join("|")})`;return new RegExp(`^${Ol}T(?:${n})$`)}const fB=A=>{var t,n;const e=A?`[\\s\\S]{${(t=A==null?void 0:A.minimum)!=null?t:0},${(n=A==null?void 0:A.maximum)!=null?n:""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},gB=/^-?\d+$/,Ml=/^-?\d+(?:\.\d+)?$/,BB=/^(?:true|false)$/i,wB=/^[^A-Z]*$/,mB=/^[^a-z]*$/,ge=_("$ZodCheck",(A,e)=>{var n,r;var t;(n=A._zod)!=null||(A._zod={}),A._zod.def=e,(r=(t=A._zod).onattach)!=null||(t.onattach=[])}),Nl={number:"number",bigint:"bigint",object:"date"},Kl=_("$ZodCheckLessThan",(A,e)=>{ge.init(A,e);const t=Nl[typeof e.value];A._zod.onattach.push(n=>{var o;const r=n._zod.bag,s=(o=e.inclusive?r.maximum:r.exclusiveMaximum)!=null?o:Number.POSITIVE_INFINITY;e.value<s&&(e.inclusive?r.maximum=e.value:r.exclusiveMaximum=e.value)}),A._zod.check=n=>{(e.inclusive?n.value<=e.value:n.value<e.value)||n.issues.push({origin:t,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:A,continue:!e.abort})}}),$l=_("$ZodCheckGreaterThan",(A,e)=>{ge.init(A,e);const t=Nl[typeof e.value];A._zod.onattach.push(n=>{var o;const r=n._zod.bag,s=(o=e.inclusive?r.minimum:r.exclusiveMinimum)!=null?o:Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?r.minimum=e.value:r.exclusiveMinimum=e.value)}),A._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:t,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:A,continue:!e.abort})}}),CB=_("$ZodCheckMultipleOf",(A,e)=>{ge.init(A,e),A._zod.onattach.push(t=>{var r;var n;(r=(n=t._zod.bag).multipleOf)!=null||(n.multipleOf=e.value)}),A._zod.check=t=>{if(typeof t.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%e.value===BigInt(0):Ug(t.value,e.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:e.value,input:t.value,inst:A,continue:!e.abort})}}),bB=_("$ZodCheckNumberFormat",(A,e)=>{var o;ge.init(A,e),e.format=e.format||"float64";const t=(o=e.format)==null?void 0:o.includes("int"),n=t?"int":"number",[r,s]=_g[e.format];A._zod.onattach.push(a=>{const i=a._zod.bag;i.format=e.format,i.minimum=r,i.maximum=s,t&&(i.pattern=gB)}),A._zod.check=a=>{const i=a.value;if(t){if(!Number.isInteger(i)){a.issues.push({expected:n,format:e.format,code:"invalid_type",continue:!1,input:i,inst:A});return}if(!Number.isSafeInteger(i)){i>0?a.issues.push({input:i,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:n,inclusive:!0,continue:!e.abort}):a.issues.push({input:i,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:A,origin:n,inclusive:!0,continue:!e.abort});return}}i<r&&a.issues.push({origin:"number",input:i,code:"too_small",minimum:r,inclusive:!0,inst:A,continue:!e.abort}),i>s&&a.issues.push({origin:"number",input:i,code:"too_big",maximum:s,inclusive:!0,inst:A,continue:!e.abort})}}),QB=_("$ZodCheckMaxLength",(A,e)=>{var n;var t;ge.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Xi(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{var o;const s=(o=r._zod.bag.maximum)!=null?o:Number.POSITIVE_INFINITY;e.maximum<s&&(r._zod.bag.maximum=e.maximum)}),A._zod.check=r=>{const s=r.value;if(s.length<=e.maximum)return;const a=Ji(s);r.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:s,inst:A,continue:!e.abort})}}),yB=_("$ZodCheckMinLength",(A,e)=>{var n;var t;ge.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Xi(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{var o;const s=(o=r._zod.bag.minimum)!=null?o:Number.NEGATIVE_INFINITY;e.minimum>s&&(r._zod.bag.minimum=e.minimum)}),A._zod.check=r=>{const s=r.value;if(s.length>=e.minimum)return;const a=Ji(s);r.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:s,inst:A,continue:!e.abort})}}),UB=_("$ZodCheckLengthEquals",(A,e)=>{var n;var t;ge.init(A,e),(n=(t=A._zod.def).when)!=null||(t.when=r=>{const s=r.value;return!Xi(s)&&s.length!==void 0}),A._zod.onattach.push(r=>{const s=r._zod.bag;s.minimum=e.length,s.maximum=e.length,s.length=e.length}),A._zod.check=r=>{const s=r.value,o=s.length;if(o===e.length)return;const a=Ji(s),i=o>e.length;r.issues.push(z(F({origin:a},i?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length}),{inclusive:!0,exact:!0,input:r.value,inst:A,continue:!e.abort}))}}),Xs=_("$ZodCheckStringFormat",(A,e)=>{var r,s;var t,n;ge.init(A,e),A._zod.onattach.push(o=>{var i;const a=o._zod.bag;a.format=e.format,e.pattern&&((i=a.patterns)!=null||(a.patterns=new Set),a.patterns.add(e.pattern))}),e.pattern?(r=(t=A._zod).check)!=null||(t.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push(z(F({origin:"string",code:"invalid_format",format:e.format,input:o.value},e.pattern?{pattern:e.pattern.toString()}:{}),{inst:A,continue:!e.abort}))}):(s=(n=A._zod).check)!=null||(n.check=()=>{})}),EB=_("$ZodCheckRegex",(A,e)=>{Xs.init(A,e),A._zod.check=t=>{e.pattern.lastIndex=0,!e.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:e.pattern.toString(),inst:A,continue:!e.abort})}}),kB=_("$ZodCheckLowerCase",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=wB),Xs.init(A,e)}),FB=_("$ZodCheckUpperCase",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=mB),Xs.init(A,e)}),vB=_("$ZodCheckIncludes",(A,e)=>{ge.init(A,e);const t=zn(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${t}`:t);e.pattern=n,A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(n)}),A._zod.check=r=>{r.value.includes(e.includes,e.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:r.value,inst:A,continue:!e.abort})}}),_B=_("$ZodCheckStartsWith",(A,e)=>{var n;ge.init(A,e);const t=new RegExp(`^${zn(e.prefix)}.*`);(n=e.pattern)!=null||(e.pattern=t),A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t)}),A._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:A,continue:!e.abort})}}),xB=_("$ZodCheckEndsWith",(A,e)=>{var n;ge.init(A,e);const t=new RegExp(`.*${zn(e.suffix)}$`);(n=e.pattern)!=null||(e.pattern=t),A._zod.onattach.push(r=>{var o;const s=r._zod.bag;(o=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t)}),A._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:A,continue:!e.abort})}}),SB=_("$ZodCheckOverwrite",(A,e)=>{ge.init(A,e),A._zod.check=t=>{t.value=e.tx(t.value)}});class IB{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const n=e.split(`
1588
1588
  `).filter(o=>o),r=Math.min(...n.map(o=>o.length-o.trimStart().length)),s=n.map(o=>o.slice(r)).map(o=>" ".repeat(this.indent*2)+o);for(const o of s)this.content.push(o)}compile(){var s;const e=Function,t=this==null?void 0:this.args,r=[...((s=this==null?void 0:this.content)!=null?s:[""]).map(o=>` ${o}`)];return new e(...t,r.join(`
1589
- `))}}const vB={major:4,minor:3,patch:5},bA=x("$ZodType",(A,e)=>{var r,s,o;var t;A!=null||(A={}),A._zod.def=e,A._zod.bag=A._zod.bag||{},A._zod.version=vB;const n=[...(r=A._zod.def.checks)!=null?r:[]];A._zod.traits.has("$ZodCheck")&&n.unshift(A);for(const a of n)for(const i of a._zod.onattach)i(A);if(n.length===0)(s=(t=A._zod).deferred)!=null||(t.deferred=[]),(o=A._zod.deferred)==null||o.push(()=>{A._zod.run=A._zod.parse});else{const a=(c,u,h)=>{let f=$n(c),g;for(const m of u){if(m._zod.def.when){if(!m._zod.def.when(c))continue}else if(f)continue;const b=c.issues.length,U=m._zod.check(c);if(U instanceof Promise&&(h==null?void 0:h.async)===!1)throw new Mn;if(g||U instanceof Promise)g=(g!=null?g:Promise.resolve()).then(()=>I(null,null,function*(){yield U,c.issues.length!==b&&(f||(f=$n(c,b)))}));else{if(c.issues.length===b)continue;f||(f=$n(c,b))}}return g?g.then(()=>c):c},i=(c,u,h)=>{if($n(c))return c.aborted=!0,c;const f=a(u,n,h);if(f instanceof Promise){if(h.async===!1)throw new Mn;return f.then(g=>A._zod.parse(g,h))}return A._zod.parse(f,h)};A._zod.run=(c,u)=>{if(u.skipChecks)return A._zod.parse(c,u);if(u.direction==="backward"){const f=A._zod.parse({value:c.value,issues:[]},$(k({},u),{skipChecks:!0}));return f instanceof Promise?f.then(g=>i(g,c,u)):i(f,c,u)}const h=A._zod.parse(c,u);if(h instanceof Promise){if(u.async===!1)throw new Mn;return h.then(f=>a(f,n,u))}return a(h,n,u)}}iA(A,"~standard",()=>({validate:a=>{var i;try{const c=Hg(A,a);return c.success?{value:c.data}:{issues:(i=c.error)==null?void 0:i.issues}}catch(c){return Lg(A,a).then(u=>{var h;return u.success?{value:u.data}:{issues:(h=u.error)==null?void 0:h.issues}})}},vendor:"zod",version:1}))}),ji=x("$ZodString",(A,e)=>{var t,n,r;bA.init(A,e),A._zod.pattern=(r=[...(n=(t=A==null?void 0:A._zod.bag)==null?void 0:t.patterns)!=null?n:[]].pop())!=null?r:lB(A._zod.bag),A._zod.parse=(s,o)=>{if(e.coerce)try{s.value=String(s.value)}catch(a){}return typeof s.value=="string"||s.issues.push({expected:"string",code:"invalid_type",input:s.value,inst:A}),s}}),QA=x("$ZodStringFormat",(A,e)=>{Gs.init(A,e),ji.init(A,e)}),_B=x("$ZodGUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=jg),QA.init(A,e)}),xB=x("$ZodUUID",(A,e)=>{var t,n;if(e.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(s===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);(t=e.pattern)!=null||(e.pattern=Il(s))}else(n=e.pattern)!=null||(e.pattern=Il());QA.init(A,e)}),SB=x("$ZodEmail",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Yg),QA.init(A,e)}),IB=x("$ZodURL",(A,e)=>{QA.init(A,e),A._zod.check=t=>{try{const n=t.value.trim(),r=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(r.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:t.value,inst:A,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:t.value,inst:A,continue:!e.abort})),e.normalize?t.value=r.href:t.value=n;return}catch(n){t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:A,continue:!e.abort})}}}),TB=x("$ZodEmoji",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=AB()),QA.init(A,e)}),HB=x("$ZodNanoID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Wg),QA.init(A,e)}),LB=x("$ZodCUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=zg),QA.init(A,e)}),DB=x("$ZodCUID2",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Vg),QA.init(A,e)}),RB=x("$ZodULID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Gg),QA.init(A,e)}),OB=x("$ZodXID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Zg),QA.init(A,e)}),PB=x("$ZodKSUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Xg),QA.init(A,e)}),MB=x("$ZodISODateTime",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=cB(e)),QA.init(A,e)}),KB=x("$ZodISODate",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=iB),QA.init(A,e)}),NB=x("$ZodISOTime",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=aB(e)),QA.init(A,e)}),$B=x("$ZodISODuration",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Jg),QA.init(A,e)}),zB=x("$ZodIPv4",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=eB),QA.init(A,e),A._zod.bag.format="ipv4"}),VB=x("$ZodIPv6",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=tB),QA.init(A,e),A._zod.bag.format="ipv6",A._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch(r){n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:A,continue:!e.abort})}}}),GB=x("$ZodCIDRv4",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=nB),QA.init(A,e)}),ZB=x("$ZodCIDRv6",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=rB),QA.init(A,e),A._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[s,o]=r;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${s}]`)}catch(s){n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:A,continue:!e.abort})}}});function Ml(A){if(A==="")return!0;if(A.length%4!==0)return!1;try{return atob(A),!0}catch(e){return!1}}const XB=x("$ZodBase64",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=sB),QA.init(A,e),A._zod.bag.contentEncoding="base64",A._zod.check=n=>{Ml(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:A,continue:!e.abort})}});function WB(A){if(!Tl.test(A))return!1;const e=A.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=e.padEnd(Math.ceil(e.length/4)*4,"=");return Ml(t)}const JB=x("$ZodBase64URL",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Tl),QA.init(A,e),A._zod.bag.contentEncoding="base64url",A._zod.check=n=>{WB(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:A,continue:!e.abort})}}),jB=x("$ZodE164",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=oB),QA.init(A,e)});function YB(A,e=null){try{const t=A.split(".");if(t.length!==3)return!1;const[n]=t;if(!n)return!1;const r=JSON.parse(atob(n));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||e&&(!("alg"in r)||r.alg!==e))}catch(t){return!1}}const qB=x("$ZodJWT",(A,e)=>{QA.init(A,e),A._zod.check=t=>{YB(t.value,e.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:A,continue:!e.abort})}}),Kl=x("$ZodNumber",(A,e)=>{var t;bA.init(A,e),A._zod.pattern=(t=A._zod.bag.pattern)!=null?t:Dl,A._zod.parse=(n,r)=>{if(e.coerce)try{n.value=Number(n.value)}catch(a){}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const o=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push(k({expected:"number",code:"invalid_type",input:s,inst:A},o?{received:o}:{})),n}}),Aw=x("$ZodNumberFormat",(A,e)=>{gB.init(A,e),Kl.init(A,e)}),ew=x("$ZodBoolean",(A,e)=>{bA.init(A,e),A._zod.pattern=dB,A._zod.parse=(t,n)=>{if(e.coerce)try{t.value=!!t.value}catch(s){}const r=t.value;return typeof r=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:A}),t}}),tw=x("$ZodAny",(A,e)=>{bA.init(A,e),A._zod.parse=t=>t}),nw=x("$ZodUnknown",(A,e)=>{bA.init(A,e),A._zod.parse=t=>t}),rw=x("$ZodNever",(A,e)=>{bA.init(A,e),A._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:A}),t)});function Nl(A,e,t){A.issues.length&&e.issues.push(...zn(t,A.issues)),e.value[t]=A.value}const sw=x("$ZodArray",(A,e)=>{bA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value;if(!Array.isArray(r))return t.issues.push({expected:"array",code:"invalid_type",input:r,inst:A}),t;t.value=Array(r.length);const s=[];for(let o=0;o<r.length;o++){const a=r[o],i=e.element._zod.run({value:a,issues:[]},n);i instanceof Promise?s.push(i.then(c=>Nl(c,t,o))):Nl(i,t,o)}return s.length?Promise.all(s).then(()=>t):t}});function Zs(A,e,t,n,r){if(A.issues.length){if(r&&!(t in n))return;e.issues.push(...zn(t,A.issues))}A.value===void 0?t in n&&(e.value[t]=void 0):e.value[t]=A.value}function $l(A){var n,r,s,o;const e=Object.keys(A.shape);for(const a of e)if(!((o=(s=(r=(n=A.shape)==null?void 0:n[a])==null?void 0:r._zod)==null?void 0:s.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const t=yg(A.shape);return $(k({},A),{keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(t)})}function zl(A,e,t,n,r,s){const o=[],a=r.keySet,i=r.catchall._zod,c=i.def.type,u=i.optout==="optional";for(const h in e){if(a.has(h))continue;if(c==="never"){o.push(h);continue}const f=i.run({value:e[h],issues:[]},n);f instanceof Promise?A.push(f.then(g=>Zs(g,t,h,e,u))):Zs(f,t,h,e,u)}return o.length&&t.issues.push({code:"unrecognized_keys",keys:o,input:e,inst:s}),A.length?Promise.all(A).then(()=>t):t}const ow=x("$ZodObject",(A,e)=>{bA.init(A,e);const t=Object.getOwnPropertyDescriptor(e,"shape");if(!(t!=null&&t.get)){const a=e.shape;Object.defineProperty(e,"shape",{get:()=>{const i=k({},a);return Object.defineProperty(e,"shape",{value:i}),i}})}const n=Ns(()=>$l(e));iA(A._zod,"propValues",()=>{var c;const a=e.shape,i={};for(const u in a){const h=a[u]._zod;if(h.values){(c=i[u])!=null||(i[u]=new Set);for(const f of h.values)i[u].add(f)}}return i});const r=vr,s=e.catchall;let o;A._zod.parse=(a,i)=>{o!=null||(o=n.value);const c=a.value;if(!r(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:A}),a;a.value={};const u=[],h=o.shape;for(const f of o.keys){const g=h[f],m=g._zod.optout==="optional",b=g._zod.run({value:c[f],issues:[]},i);b instanceof Promise?u.push(b.then(U=>Zs(U,a,f,c,m))):Zs(b,a,f,c,m)}return s?zl(u,c,a,i,n.value,A):u.length?Promise.all(u).then(()=>a):a}}),iw=x("$ZodObjectJIT",(A,e)=>{ow.init(A,e);const t=A._zod.parse,n=Ns(()=>$l(e)),r=f=>{var F;const g=new FB(["shape","payload","ctx"]),m=n.value,b=y=>{const _=kl(y);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};g.write("const input = payload.value;");const U=Object.create(null);let E=0;for(const y of m.keys)U[y]=`key_${E++}`;g.write("const newResult = {};");for(const y of m.keys){const _=U[y],R=kl(y),H=f[y],z=((F=H==null?void 0:H._zod)==null?void 0:F.optout)==="optional";g.write(`const ${_} = ${b(y)};`),z?g.write(`
1590
- if (${_}.issues.length) {
1589
+ `))}}const TB={major:4,minor:3,patch:5},CA=_("$ZodType",(A,e)=>{var r,s,o;var t;A!=null||(A={}),A._zod.def=e,A._zod.bag=A._zod.bag||{},A._zod.version=TB;const n=[...(r=A._zod.def.checks)!=null?r:[]];A._zod.traits.has("$ZodCheck")&&n.unshift(A);for(const a of n)for(const i of a._zod.onattach)i(A);if(n.length===0)(s=(t=A._zod).deferred)!=null||(t.deferred=[]),(o=A._zod.deferred)==null||o.push(()=>{A._zod.run=A._zod.parse});else{const a=(c,u,h)=>{let f=Vn(c),g;for(const m of u){if(m._zod.def.when){if(!m._zod.def.when(c))continue}else if(f)continue;const b=c.issues.length,E=m._zod.check(c);if(E instanceof Promise&&(h==null?void 0:h.async)===!1)throw new Kn;if(g||E instanceof Promise)g=(g!=null?g:Promise.resolve()).then(()=>I(null,null,function*(){yield E,c.issues.length!==b&&(f||(f=Vn(c,b)))}));else{if(c.issues.length===b)continue;f||(f=Vn(c,b))}}return g?g.then(()=>c):c},i=(c,u,h)=>{if(Vn(c))return c.aborted=!0,c;const f=a(u,n,h);if(f instanceof Promise){if(h.async===!1)throw new Kn;return f.then(g=>A._zod.parse(g,h))}return A._zod.parse(f,h)};A._zod.run=(c,u)=>{if(u.skipChecks)return A._zod.parse(c,u);if(u.direction==="backward"){const f=A._zod.parse({value:c.value,issues:[]},z(F({},u),{skipChecks:!0}));return f instanceof Promise?f.then(g=>i(g,c,u)):i(f,c,u)}const h=A._zod.parse(c,u);if(h instanceof Promise){if(u.async===!1)throw new Kn;return h.then(f=>a(f,n,u))}return a(h,n,u)}}iA(A,"~standard",()=>({validate:a=>{var i;try{const c=Pg(A,a);return c.success?{value:c.data}:{issues:(i=c.error)==null?void 0:i.issues}}catch(c){return Mg(A,a).then(u=>{var h;return u.success?{value:u.data}:{issues:(h=u.error)==null?void 0:h.issues}})}},vendor:"zod",version:1}))}),qi=_("$ZodString",(A,e)=>{var t,n,r;CA.init(A,e),A._zod.pattern=(r=[...(n=(t=A==null?void 0:A._zod.bag)==null?void 0:t.patterns)!=null?n:[]].pop())!=null?r:fB(A._zod.bag),A._zod.parse=(s,o)=>{if(e.coerce)try{s.value=String(s.value)}catch(a){}return typeof s.value=="string"||s.issues.push({expected:"string",code:"invalid_type",input:s.value,inst:A}),s}}),bA=_("$ZodStringFormat",(A,e)=>{Xs.init(A,e),qi.init(A,e)}),HB=_("$ZodGUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=tB),bA.init(A,e)}),LB=_("$ZodUUID",(A,e)=>{var t,n;if(e.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(s===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);(t=e.pattern)!=null||(e.pattern=Rl(s))}else(n=e.pattern)!=null||(e.pattern=Rl());bA.init(A,e)}),RB=_("$ZodEmail",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=nB),bA.init(A,e)}),DB=_("$ZodURL",(A,e)=>{bA.init(A,e),A._zod.check=t=>{try{const n=t.value.trim(),r=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(r.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:t.value,inst:A,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:t.value,inst:A,continue:!e.abort})),e.normalize?t.value=r.href:t.value=n;return}catch(n){t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:A,continue:!e.abort})}}}),OB=_("$ZodEmoji",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=sB()),bA.init(A,e)}),PB=_("$ZodNanoID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=AB),bA.init(A,e)}),MB=_("$ZodCUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Wg),bA.init(A,e)}),NB=_("$ZodCUID2",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Jg),bA.init(A,e)}),KB=_("$ZodULID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=jg),bA.init(A,e)}),$B=_("$ZodXID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Yg),bA.init(A,e)}),zB=_("$ZodKSUID",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=qg),bA.init(A,e)}),VB=_("$ZodISODateTime",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=hB(e)),bA.init(A,e)}),GB=_("$ZodISODate",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=dB),bA.init(A,e)}),ZB=_("$ZodISOTime",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=pB(e)),bA.init(A,e)}),XB=_("$ZodISODuration",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=eB),bA.init(A,e)}),WB=_("$ZodIPv4",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=oB),bA.init(A,e),A._zod.bag.format="ipv4"}),JB=_("$ZodIPv6",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=iB),bA.init(A,e),A._zod.bag.format="ipv6",A._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch(r){n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:A,continue:!e.abort})}}}),jB=_("$ZodCIDRv4",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=aB),bA.init(A,e)}),YB=_("$ZodCIDRv6",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=cB),bA.init(A,e),A._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[s,o]=r;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${s}]`)}catch(s){n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:A,continue:!e.abort})}}});function zl(A){if(A==="")return!0;if(A.length%4!==0)return!1;try{return atob(A),!0}catch(e){return!1}}const qB=_("$ZodBase64",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=lB),bA.init(A,e),A._zod.bag.contentEncoding="base64",A._zod.check=n=>{zl(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:A,continue:!e.abort})}});function Aw(A){if(!Dl.test(A))return!1;const e=A.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=e.padEnd(Math.ceil(e.length/4)*4,"=");return zl(t)}const ew=_("$ZodBase64URL",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=Dl),bA.init(A,e),A._zod.bag.contentEncoding="base64url",A._zod.check=n=>{Aw(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:A,continue:!e.abort})}}),tw=_("$ZodE164",(A,e)=>{var t;(t=e.pattern)!=null||(e.pattern=uB),bA.init(A,e)});function nw(A,e=null){try{const t=A.split(".");if(t.length!==3)return!1;const[n]=t;if(!n)return!1;const r=JSON.parse(atob(n));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||e&&(!("alg"in r)||r.alg!==e))}catch(t){return!1}}const rw=_("$ZodJWT",(A,e)=>{bA.init(A,e),A._zod.check=t=>{nw(t.value,e.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:A,continue:!e.abort})}}),Vl=_("$ZodNumber",(A,e)=>{var t;CA.init(A,e),A._zod.pattern=(t=A._zod.bag.pattern)!=null?t:Ml,A._zod.parse=(n,r)=>{if(e.coerce)try{n.value=Number(n.value)}catch(a){}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const o=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push(F({expected:"number",code:"invalid_type",input:s,inst:A},o?{received:o}:{})),n}}),sw=_("$ZodNumberFormat",(A,e)=>{bB.init(A,e),Vl.init(A,e)}),ow=_("$ZodBoolean",(A,e)=>{CA.init(A,e),A._zod.pattern=BB,A._zod.parse=(t,n)=>{if(e.coerce)try{t.value=!!t.value}catch(s){}const r=t.value;return typeof r=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:A}),t}}),iw=_("$ZodAny",(A,e)=>{CA.init(A,e),A._zod.parse=t=>t}),aw=_("$ZodUnknown",(A,e)=>{CA.init(A,e),A._zod.parse=t=>t}),cw=_("$ZodNever",(A,e)=>{CA.init(A,e),A._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:A}),t)});function Gl(A,e,t){A.issues.length&&e.issues.push(...Gn(t,A.issues)),e.value[t]=A.value}const lw=_("$ZodArray",(A,e)=>{CA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value;if(!Array.isArray(r))return t.issues.push({expected:"array",code:"invalid_type",input:r,inst:A}),t;t.value=Array(r.length);const s=[];for(let o=0;o<r.length;o++){const a=r[o],i=e.element._zod.run({value:a,issues:[]},n);i instanceof Promise?s.push(i.then(c=>Gl(c,t,o))):Gl(i,t,o)}return s.length?Promise.all(s).then(()=>t):t}});function Ws(A,e,t,n,r){if(A.issues.length){if(r&&!(t in n))return;e.issues.push(...Gn(t,A.issues))}A.value===void 0?t in n&&(e.value[t]=void 0):e.value[t]=A.value}function Zl(A){var n,r,s,o;const e=Object.keys(A.shape);for(const a of e)if(!((o=(s=(r=(n=A.shape)==null?void 0:n[a])==null?void 0:r._zod)==null?void 0:s.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const t=vg(A.shape);return z(F({},A),{keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(t)})}function Xl(A,e,t,n,r,s){const o=[],a=r.keySet,i=r.catchall._zod,c=i.def.type,u=i.optout==="optional";for(const h in e){if(a.has(h))continue;if(c==="never"){o.push(h);continue}const f=i.run({value:e[h],issues:[]},n);f instanceof Promise?A.push(f.then(g=>Ws(g,t,h,e,u))):Ws(f,t,h,e,u)}return o.length&&t.issues.push({code:"unrecognized_keys",keys:o,input:e,inst:s}),A.length?Promise.all(A).then(()=>t):t}const uw=_("$ZodObject",(A,e)=>{CA.init(A,e);const t=Object.getOwnPropertyDescriptor(e,"shape");if(!(t!=null&&t.get)){const a=e.shape;Object.defineProperty(e,"shape",{get:()=>{const i=F({},a);return Object.defineProperty(e,"shape",{value:i}),i}})}const n=zs(()=>Zl(e));iA(A._zod,"propValues",()=>{var c;const a=e.shape,i={};for(const u in a){const h=a[u]._zod;if(h.values){(c=i[u])!=null||(i[u]=new Set);for(const f of h.values)i[u].add(f)}}return i});const r=_r,s=e.catchall;let o;A._zod.parse=(a,i)=>{o!=null||(o=n.value);const c=a.value;if(!r(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:A}),a;a.value={};const u=[],h=o.shape;for(const f of o.keys){const g=h[f],m=g._zod.optout==="optional",b=g._zod.run({value:c[f],issues:[]},i);b instanceof Promise?u.push(b.then(E=>Ws(E,a,f,c,m))):Ws(b,a,f,c,m)}return s?Xl(u,c,a,i,n.value,A):u.length?Promise.all(u).then(()=>a):a}}),dw=_("$ZodObjectJIT",(A,e)=>{uw.init(A,e);const t=A._zod.parse,n=zs(()=>Zl(e)),r=f=>{var y;const g=new IB(["shape","payload","ctx"]),m=n.value,b=U=>{const x=xl(U);return`shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`};g.write("const input = payload.value;");const E=Object.create(null);let k=0;for(const U of m.keys)E[U]=`key_${k++}`;g.write("const newResult = {};");for(const U of m.keys){const x=E[U],R=xl(U),H=f[U],X=((y=H==null?void 0:H._zod)==null?void 0:y.optout)==="optional";g.write(`const ${x} = ${b(U)};`),X?g.write(`
1590
+ if (${x}.issues.length) {
1591
1591
  if (${R} in input) {
1592
- payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
1592
+ payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
1593
1593
  ...iss,
1594
1594
  path: iss.path ? [${R}, ...iss.path] : [${R}]
1595
1595
  })));
1596
1596
  }
1597
1597
  }
1598
1598
 
1599
- if (${_}.value === undefined) {
1599
+ if (${x}.value === undefined) {
1600
1600
  if (${R} in input) {
1601
1601
  newResult[${R}] = undefined;
1602
1602
  }
1603
1603
  } else {
1604
- newResult[${R}] = ${_}.value;
1604
+ newResult[${R}] = ${x}.value;
1605
1605
  }
1606
1606
 
1607
1607
  `):g.write(`
1608
- if (${_}.issues.length) {
1609
- payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
1608
+ if (${x}.issues.length) {
1609
+ payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
1610
1610
  ...iss,
1611
1611
  path: iss.path ? [${R}, ...iss.path] : [${R}]
1612
1612
  })));
1613
1613
  }
1614
1614
 
1615
- if (${_}.value === undefined) {
1615
+ if (${x}.value === undefined) {
1616
1616
  if (${R} in input) {
1617
1617
  newResult[${R}] = undefined;
1618
1618
  }
1619
1619
  } else {
1620
- newResult[${R}] = ${_}.value;
1620
+ newResult[${R}] = ${x}.value;
1621
1621
  }
1622
1622
 
1623
- `)}g.write("payload.value = newResult;"),g.write("return payload;");const v=g.compile();return(y,_)=>v(f,y,_)};let s;const o=vr,a=!yl.jitless,c=a&&bg.value,u=e.catchall;let h;A._zod.parse=(f,g)=>{h!=null||(h=n.value);const m=f.value;return o(m)?a&&c&&(g==null?void 0:g.async)===!1&&g.jitless!==!0?(s||(s=r(e.shape)),f=s(f,g),u?zl([],m,f,g,h,A):f):t(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:A}),f)}});function Vl(A,e,t,n){for(const s of A)if(s.issues.length===0)return e.value=s.value,e;const r=A.filter(s=>!$n(s));return r.length===1?(e.value=r[0].value,r[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:t,errors:A.map(s=>s.issues.map(o=>Ot(o,n,Lt())))}),e)}const Gl=x("$ZodUnion",(A,e)=>{bA.init(A,e),iA(A._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),iA(A._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),iA(A._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),iA(A._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){const r=e.options.map(s=>s._zod.pattern);return new RegExp(`^(${r.map(s=>Zi(s.source)).join("|")})$`)}});const t=e.options.length===1,n=e.options[0]._zod.run;A._zod.parse=(r,s)=>{if(t)return n(r,s);let o=!1;const a=[];for(const i of e.options){const c=i._zod.run({value:r.value,issues:[]},s);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(i=>Vl(i,r,A,s)):Vl(a,r,A,s)}}),aw=x("$ZodDiscriminatedUnion",(A,e)=>{e.inclusive=!1,Gl.init(A,e);const t=A._zod.parse;iA(A._zod,"propValues",()=>{const r={};for(const s of e.options){const o=s._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(const[a,i]of Object.entries(o)){r[a]||(r[a]=new Set);for(const c of i)r[a].add(c)}}return r});const n=Ns(()=>{var o;const r=e.options,s=new Map;for(const a of r){const i=(o=a._zod.propValues)==null?void 0:o[e.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const c of i){if(s.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);s.set(c,a)}}return s});A._zod.parse=(r,s)=>{const o=r.value;if(!vr(o))return r.issues.push({code:"invalid_type",expected:"object",input:o,inst:A}),r;const a=n.value.get(o==null?void 0:o[e.discriminator]);return a?a._zod.run(r,s):e.unionFallback?t(r,s):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:o,path:[e.discriminator],inst:A}),r)}}),cw=x("$ZodIntersection",(A,e)=>{bA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value,s=e.left._zod.run({value:r,issues:[]},n),o=e.right._zod.run({value:r,issues:[]},n);return s instanceof Promise||o instanceof Promise?Promise.all([s,o]).then(([i,c])=>Zl(t,i,c)):Zl(t,s,o)}});function Yi(A,e){if(A===e)return{valid:!0,data:A};if(A instanceof Date&&e instanceof Date&&+A==+e)return{valid:!0,data:A};if(Kn(A)&&Kn(e)){const t=Object.keys(e),n=Object.keys(A).filter(s=>t.indexOf(s)!==-1),r=k(k({},A),e);for(const s of n){const o=Yi(A[s],e[s]);if(!o.valid)return{valid:!1,mergeErrorPath:[s,...o.mergeErrorPath]};r[s]=o.data}return{valid:!0,data:r}}if(Array.isArray(A)&&Array.isArray(e)){if(A.length!==e.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let n=0;n<A.length;n++){const r=A[n],s=e[n],o=Yi(r,s);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};t.push(o.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function Zl(A,e,t){const n=new Map;let r;for(const a of e.issues)if(a.code==="unrecognized_keys"){r!=null||(r=a);for(const i of a.keys)n.has(i)||n.set(i,{}),n.get(i).l=!0}else A.issues.push(a);for(const a of t.issues)if(a.code==="unrecognized_keys")for(const i of a.keys)n.has(i)||n.set(i,{}),n.get(i).r=!0;else A.issues.push(a);const s=[...n].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(s.length&&r&&A.issues.push($(k({},r),{keys:s})),$n(A))return A;const o=Yi(e.value,t.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return A.value=o.data,A}const lw=x("$ZodRecord",(A,e)=>{bA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value;if(!Kn(r))return t.issues.push({expected:"record",code:"invalid_type",input:r,inst:A}),t;const s=[],o=e.keyType._zod.values;if(o){t.value={};const a=new Set;for(const c of o)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){a.add(typeof c=="number"?c.toString():c);const u=e.valueType._zod.run({value:r[c],issues:[]},n);u instanceof Promise?s.push(u.then(h=>{h.issues.length&&t.issues.push(...zn(c,h.issues)),t.value[c]=h.value})):(u.issues.length&&t.issues.push(...zn(c,u.issues)),t.value[c]=u.value)}let i;for(const c in r)a.has(c)||(i=i!=null?i:[],i.push(c));i&&i.length>0&&t.issues.push({code:"unrecognized_keys",input:r,inst:A,keys:i})}else{t.value={};for(const a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let i=e.keyType._zod.run({value:a,issues:[]},n);if(i instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&Dl.test(a)&&i.issues.length&&i.issues.some(h=>h.code==="invalid_type"&&h.expected==="number")){const h=e.keyType._zod.run({value:Number(a),issues:[]},n);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(i=h)}if(i.issues.length){e.mode==="loose"?t.value[a]=r[a]:t.issues.push({code:"invalid_key",origin:"record",issues:i.issues.map(h=>Ot(h,n,Lt())),input:a,path:[a],inst:A});continue}const u=e.valueType._zod.run({value:r[a],issues:[]},n);u instanceof Promise?s.push(u.then(h=>{h.issues.length&&t.issues.push(...zn(a,h.issues)),t.value[i.value]=h.value})):(u.issues.length&&t.issues.push(...zn(a,u.issues)),t.value[i.value]=u.value)}}return s.length?Promise.all(s).then(()=>t):t}}),uw=x("$ZodEnum",(A,e)=>{bA.init(A,e);const t=Ul(e.entries),n=new Set(t);A._zod.values=n,A._zod.pattern=new RegExp(`^(${t.filter(r=>Qg.has(typeof r)).map(r=>typeof r=="string"?Nn(r):r.toString()).join("|")})$`),A._zod.parse=(r,s)=>{const o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t,input:o,inst:A}),r}}),dw=x("$ZodLiteral",(A,e)=>{if(bA.init(A,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");const t=new Set(e.values);A._zod.values=t,A._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?Nn(n):n?Nn(n.toString()):String(n)).join("|")})$`),A._zod.parse=(n,r)=>{const s=n.value;return t.has(s)||n.issues.push({code:"invalid_value",values:e.values,input:s,inst:A}),n}}),pw=x("$ZodTransform",(A,e)=>{bA.init(A,e),A._zod.parse=(t,n)=>{if(n.direction==="backward")throw new Ql(A.constructor.name);const r=e.transform(t.value,t);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(o=>(t.value=o,t));if(r instanceof Promise)throw new Mn;return t.value=r,t}});function Xl(A,e){return A.issues.length&&e===void 0?{issues:[],value:void 0}:A}const Wl=x("$ZodOptional",(A,e)=>{bA.init(A,e),A._zod.optin="optional",A._zod.optout="optional",iA(A._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),iA(A._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${Zi(t.source)})?$`):void 0}),A._zod.parse=(t,n)=>{if(e.innerType._zod.optin==="optional"){const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Xl(s,t.value)):Xl(r,t.value)}return t.value===void 0?t:e.innerType._zod.run(t,n)}}),hw=x("$ZodExactOptional",(A,e)=>{Wl.init(A,e),iA(A._zod,"values",()=>e.innerType._zod.values),iA(A._zod,"pattern",()=>e.innerType._zod.pattern),A._zod.parse=(t,n)=>e.innerType._zod.run(t,n)}),fw=x("$ZodNullable",(A,e)=>{bA.init(A,e),iA(A._zod,"optin",()=>e.innerType._zod.optin),iA(A._zod,"optout",()=>e.innerType._zod.optout),iA(A._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${Zi(t.source)}|null)$`):void 0}),iA(A._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),A._zod.parse=(t,n)=>t.value===null?t:e.innerType._zod.run(t,n)}),gw=x("$ZodDefault",(A,e)=>{bA.init(A,e),A._zod.optin="optional",iA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);if(t.value===void 0)return t.value=e.defaultValue,t;const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Jl(s,e)):Jl(r,e)}});function Jl(A,e){return A.value===void 0&&(A.value=e.defaultValue),A}const Bw=x("$ZodPrefault",(A,e)=>{bA.init(A,e),A._zod.optin="optional",iA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=e.defaultValue),e.innerType._zod.run(t,n))}),ww=x("$ZodNonOptional",(A,e)=>{bA.init(A,e),iA(A._zod,"values",()=>{const t=e.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),A._zod.parse=(t,n)=>{const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>jl(s,A)):jl(r,A)}});function jl(A,e){return!A.issues.length&&A.value===void 0&&A.issues.push({code:"invalid_type",expected:"nonoptional",input:A.value,inst:e}),A}const mw=x("$ZodCatch",(A,e)=>{bA.init(A,e),iA(A._zod,"optin",()=>e.innerType._zod.optin),iA(A._zod,"optout",()=>e.innerType._zod.optout),iA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>(t.value=s.value,s.issues.length&&(t.value=e.catchValue($(k({},t),{error:{issues:s.issues.map(o=>Ot(o,n,Lt()))},input:t.value})),t.issues=[]),t)):(t.value=r.value,r.issues.length&&(t.value=e.catchValue($(k({},t),{error:{issues:r.issues.map(s=>Ot(s,n,Lt()))},input:t.value})),t.issues=[]),t)}}),Cw=x("$ZodPipe",(A,e)=>{bA.init(A,e),iA(A._zod,"values",()=>e.in._zod.values),iA(A._zod,"optin",()=>e.in._zod.optin),iA(A._zod,"optout",()=>e.out._zod.optout),iA(A._zod,"propValues",()=>e.in._zod.propValues),A._zod.parse=(t,n)=>{if(n.direction==="backward"){const s=e.out._zod.run(t,n);return s instanceof Promise?s.then(o=>Xs(o,e.in,n)):Xs(s,e.in,n)}const r=e.in._zod.run(t,n);return r instanceof Promise?r.then(s=>Xs(s,e.out,n)):Xs(r,e.out,n)}});function Xs(A,e,t){return A.issues.length?(A.aborted=!0,A):e._zod.run({value:A.value,issues:A.issues},t)}const bw=x("$ZodReadonly",(A,e)=>{bA.init(A,e),iA(A._zod,"propValues",()=>e.innerType._zod.propValues),iA(A._zod,"values",()=>e.innerType._zod.values),iA(A._zod,"optin",()=>{var t,n;return(n=(t=e.innerType)==null?void 0:t._zod)==null?void 0:n.optin}),iA(A._zod,"optout",()=>{var t,n;return(n=(t=e.innerType)==null?void 0:t._zod)==null?void 0:n.optout}),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(Yl):Yl(r)}});function Yl(A){return A.value=Object.freeze(A.value),A}const Qw=x("$ZodCustom",(A,e)=>{fe.init(A,e),bA.init(A,e),A._zod.parse=(t,n)=>t,A._zod.check=t=>{const n=t.value,r=e.fn(n);if(r instanceof Promise)return r.then(s=>ql(s,t,n,A));ql(r,t,n,A)}});function ql(A,e,t,n){var r;if(!A){const s={code:"custom",input:t,inst:n,path:[...(r=n._zod.def.path)!=null?r:[]],continue:!n._zod.def.abort};n._zod.def.params&&(s.params=n._zod.def.params),e.issues.push(_r(s))}}var Au;class yw{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){var n;const t=e._zod.parent;if(t){const r=k({},(n=this.get(t))!=null?n:{});delete r.id;const s=k(k({},r),this._map.get(e));return Object.keys(s).length?s:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function Uw(){return new yw}(Hf=(Au=globalThis).__zod_globalRegistry)!=null||(Au.__zod_globalRegistry=Uw());const xr=globalThis.__zod_globalRegistry;function Ew(A,e){return new A(k({type:"string"},V(e)))}function kw(A,e){return new A(k({type:"string",format:"email",check:"string_format",abort:!1},V(e)))}function eu(A,e){return new A(k({type:"string",format:"guid",check:"string_format",abort:!1},V(e)))}function Fw(A,e){return new A(k({type:"string",format:"uuid",check:"string_format",abort:!1},V(e)))}function vw(A,e){return new A(k({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},V(e)))}function _w(A,e){return new A(k({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},V(e)))}function xw(A,e){return new A(k({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},V(e)))}function Sw(A,e){return new A(k({type:"string",format:"url",check:"string_format",abort:!1},V(e)))}function Iw(A,e){return new A(k({type:"string",format:"emoji",check:"string_format",abort:!1},V(e)))}function Tw(A,e){return new A(k({type:"string",format:"nanoid",check:"string_format",abort:!1},V(e)))}function Hw(A,e){return new A(k({type:"string",format:"cuid",check:"string_format",abort:!1},V(e)))}function Lw(A,e){return new A(k({type:"string",format:"cuid2",check:"string_format",abort:!1},V(e)))}function Dw(A,e){return new A(k({type:"string",format:"ulid",check:"string_format",abort:!1},V(e)))}function Rw(A,e){return new A(k({type:"string",format:"xid",check:"string_format",abort:!1},V(e)))}function Ow(A,e){return new A(k({type:"string",format:"ksuid",check:"string_format",abort:!1},V(e)))}function Pw(A,e){return new A(k({type:"string",format:"ipv4",check:"string_format",abort:!1},V(e)))}function Mw(A,e){return new A(k({type:"string",format:"ipv6",check:"string_format",abort:!1},V(e)))}function Kw(A,e){return new A(k({type:"string",format:"cidrv4",check:"string_format",abort:!1},V(e)))}function Nw(A,e){return new A(k({type:"string",format:"cidrv6",check:"string_format",abort:!1},V(e)))}function $w(A,e){return new A(k({type:"string",format:"base64",check:"string_format",abort:!1},V(e)))}function zw(A,e){return new A(k({type:"string",format:"base64url",check:"string_format",abort:!1},V(e)))}function Vw(A,e){return new A(k({type:"string",format:"e164",check:"string_format",abort:!1},V(e)))}function Gw(A,e){return new A(k({type:"string",format:"jwt",check:"string_format",abort:!1},V(e)))}function Zw(A,e){return new A(k({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},V(e)))}function Xw(A,e){return new A(k({type:"string",format:"date",check:"string_format"},V(e)))}function Ww(A,e){return new A(k({type:"string",format:"time",check:"string_format",precision:null},V(e)))}function Jw(A,e){return new A(k({type:"string",format:"duration",check:"string_format"},V(e)))}function jw(A,e){return new A(k({type:"number",checks:[]},V(e)))}function Yw(A,e){return new A(k({type:"number",check:"number_format",abort:!1,format:"safeint"},V(e)))}function qw(A,e){return new A(k({type:"boolean"},V(e)))}function Am(A){return new A({type:"any"})}function em(A){return new A({type:"unknown"})}function tm(A,e){return new A(k({type:"never"},V(e)))}function tu(A,e){return new Ol($(k({check:"less_than"},V(e)),{value:A,inclusive:!1}))}function qi(A,e){return new Ol($(k({check:"less_than"},V(e)),{value:A,inclusive:!0}))}function nu(A,e){return new Pl($(k({check:"greater_than"},V(e)),{value:A,inclusive:!1}))}function Aa(A,e){return new Pl($(k({check:"greater_than"},V(e)),{value:A,inclusive:!0}))}function ru(A,e){return new fB($(k({check:"multiple_of"},V(e)),{value:A}))}function su(A,e){return new BB($(k({check:"max_length"},V(e)),{maximum:A}))}function Ws(A,e){return new wB($(k({check:"min_length"},V(e)),{minimum:A}))}function ou(A,e){return new mB($(k({check:"length_equals"},V(e)),{length:A}))}function nm(A,e){return new CB($(k({check:"string_format",format:"regex"},V(e)),{pattern:A}))}function rm(A){return new bB(k({check:"string_format",format:"lowercase"},V(A)))}function sm(A){return new QB(k({check:"string_format",format:"uppercase"},V(A)))}function om(A,e){return new yB($(k({check:"string_format",format:"includes"},V(e)),{includes:A}))}function im(A,e){return new UB($(k({check:"string_format",format:"starts_with"},V(e)),{prefix:A}))}function am(A,e){return new EB($(k({check:"string_format",format:"ends_with"},V(e)),{suffix:A}))}function Vn(A){return new kB({check:"overwrite",tx:A})}function cm(A){return Vn(e=>e.normalize(A))}function lm(){return Vn(A=>A.trim())}function um(){return Vn(A=>A.toLowerCase())}function dm(){return Vn(A=>A.toUpperCase())}function pm(){return Vn(A=>Cg(A))}function hm(A,e,t){return new A(k({type:"array",element:e},V(t)))}function fm(A,e,t){return new A(k({type:"custom",check:"custom",fn:e},V(t)))}function gm(A){const e=Bm(t=>(t.addIssue=n=>{var r,s,o,a;if(typeof n=="string")t.issues.push(_r(n,t.value,e._zod.def));else{const i=n;i.fatal&&(i.continue=!1),(r=i.code)!=null||(i.code="custom"),(s=i.input)!=null||(i.input=t.value),(o=i.inst)!=null||(i.inst=e),(a=i.continue)!=null||(i.continue=!e._zod.def.abort),t.issues.push(_r(i))}},A(t.value,t)));return e}function Bm(A,e){const t=new fe(k({check:"custom"},V(e)));return t._zod.check=A,t}function iu(A){var t,n,r,s,o,a,i,c,u;let e=(t=A==null?void 0:A.target)!=null?t:"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:(n=A.processors)!=null?n:{},metadataRegistry:(r=A==null?void 0:A.metadata)!=null?r:xr,target:e,unrepresentable:(s=A==null?void 0:A.unrepresentable)!=null?s:"throw",override:(o=A==null?void 0:A.override)!=null?o:(()=>{}),io:(a=A==null?void 0:A.io)!=null?a:"output",counter:0,seen:new Map,cycles:(i=A==null?void 0:A.cycles)!=null?i:"ref",reused:(c=A==null?void 0:A.reused)!=null?c:"inline",external:(u=A==null?void 0:A.external)!=null?u:void 0}}function OA(A,e,t={path:[],schemaPath:[]}){var u,h,f;var n;const r=A._zod.def,s=e.seen.get(A);if(s)return s.count++,t.schemaPath.includes(A)&&(s.cycle=t.path),s.schema;const o={schema:{},count:1,cycle:void 0,path:t.path};e.seen.set(A,o);const a=(h=(u=A._zod).toJSONSchema)==null?void 0:h.call(u);if(a)o.schema=a;else{const g=$(k({},t),{schemaPath:[...t.schemaPath,A],path:t.path});if(A._zod.processJSONSchema)A._zod.processJSONSchema(e,o.schema,g);else{const b=o.schema,U=e.processors[r.type];if(!U)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);U(A,e,b,g)}const m=A._zod.parent;m&&(o.ref||(o.ref=m),OA(m,e,g),e.seen.get(m).isParent=!0)}const i=e.metadataRegistry.get(A);return i&&Object.assign(o.schema,i),e.io==="input"&&ie(A)&&(delete o.schema.examples,delete o.schema.default),e.io==="input"&&o.schema._prefault&&((f=(n=o.schema).default)!=null||(n.default=o.schema._prefault)),delete o.schema._prefault,e.seen.get(A).schema}function au(A,e){var o,a,i,c;const t=A.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const u of A.seen.entries()){const h=(o=A.metadataRegistry.get(u[0]))==null?void 0:o.id;if(h){const f=n.get(h);if(f&&f!==u[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(h,u[0])}}const r=u=>{var b,U,E,v,F;const h=A.target==="draft-2020-12"?"$defs":"definitions";if(A.external){const y=(b=A.external.registry.get(u[0]))==null?void 0:b.id,_=(U=A.external.uri)!=null?U:(H=>H);if(y)return{ref:_(y)};const R=(v=(E=u[1].defId)!=null?E:u[1].schema.id)!=null?v:`schema${A.counter++}`;return u[1].defId=R,{defId:R,ref:`${_("__shared")}#/${h}/${R}`}}if(u[1]===t)return{ref:"#"};const g=`#/${h}/`,m=(F=u[1].schema.id)!=null?F:`__schema${A.counter++}`;return{defId:m,ref:g+m}},s=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:f,defId:g}=r(u);h.def=k({},h.schema),g&&(h.defId=g);const m=h.schema;for(const b in m)delete m[b];m.$ref=f};if(A.cycles==="throw")for(const u of A.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${(a=h.cycle)==null?void 0:a.join("/")}/<root>
1623
+ `)}g.write("payload.value = newResult;"),g.write("return payload;");const v=g.compile();return(U,x)=>v(f,U,x)};let s;const o=_r,a=!Fl.jitless,c=a&&kg.value,u=e.catchall;let h;A._zod.parse=(f,g)=>{h!=null||(h=n.value);const m=f.value;return o(m)?a&&c&&(g==null?void 0:g.async)===!1&&g.jitless!==!0?(s||(s=r(e.shape)),f=s(f,g),u?Xl([],m,f,g,h,A):f):t(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:A}),f)}});function Wl(A,e,t,n){for(const s of A)if(s.issues.length===0)return e.value=s.value,e;const r=A.filter(s=>!Vn(s));return r.length===1?(e.value=r[0].value,r[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:t,errors:A.map(s=>s.issues.map(o=>Nt(o,n,Ot())))}),e)}const Jl=_("$ZodUnion",(A,e)=>{CA.init(A,e),iA(A._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),iA(A._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),iA(A._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),iA(A._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){const r=e.options.map(s=>s._zod.pattern);return new RegExp(`^(${r.map(s=>Wi(s.source)).join("|")})$`)}});const t=e.options.length===1,n=e.options[0]._zod.run;A._zod.parse=(r,s)=>{if(t)return n(r,s);let o=!1;const a=[];for(const i of e.options){const c=i._zod.run({value:r.value,issues:[]},s);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(i=>Wl(i,r,A,s)):Wl(a,r,A,s)}}),pw=_("$ZodDiscriminatedUnion",(A,e)=>{e.inclusive=!1,Jl.init(A,e);const t=A._zod.parse;iA(A._zod,"propValues",()=>{const r={};for(const s of e.options){const o=s._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(const[a,i]of Object.entries(o)){r[a]||(r[a]=new Set);for(const c of i)r[a].add(c)}}return r});const n=zs(()=>{var o;const r=e.options,s=new Map;for(const a of r){const i=(o=a._zod.propValues)==null?void 0:o[e.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const c of i){if(s.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);s.set(c,a)}}return s});A._zod.parse=(r,s)=>{const o=r.value;if(!_r(o))return r.issues.push({code:"invalid_type",expected:"object",input:o,inst:A}),r;const a=n.value.get(o==null?void 0:o[e.discriminator]);return a?a._zod.run(r,s):e.unionFallback?t(r,s):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:o,path:[e.discriminator],inst:A}),r)}}),hw=_("$ZodIntersection",(A,e)=>{CA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value,s=e.left._zod.run({value:r,issues:[]},n),o=e.right._zod.run({value:r,issues:[]},n);return s instanceof Promise||o instanceof Promise?Promise.all([s,o]).then(([i,c])=>jl(t,i,c)):jl(t,s,o)}});function Aa(A,e){if(A===e)return{valid:!0,data:A};if(A instanceof Date&&e instanceof Date&&+A==+e)return{valid:!0,data:A};if($n(A)&&$n(e)){const t=Object.keys(e),n=Object.keys(A).filter(s=>t.indexOf(s)!==-1),r=F(F({},A),e);for(const s of n){const o=Aa(A[s],e[s]);if(!o.valid)return{valid:!1,mergeErrorPath:[s,...o.mergeErrorPath]};r[s]=o.data}return{valid:!0,data:r}}if(Array.isArray(A)&&Array.isArray(e)){if(A.length!==e.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let n=0;n<A.length;n++){const r=A[n],s=e[n],o=Aa(r,s);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};t.push(o.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function jl(A,e,t){const n=new Map;let r;for(const a of e.issues)if(a.code==="unrecognized_keys"){r!=null||(r=a);for(const i of a.keys)n.has(i)||n.set(i,{}),n.get(i).l=!0}else A.issues.push(a);for(const a of t.issues)if(a.code==="unrecognized_keys")for(const i of a.keys)n.has(i)||n.set(i,{}),n.get(i).r=!0;else A.issues.push(a);const s=[...n].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(s.length&&r&&A.issues.push(z(F({},r),{keys:s})),Vn(A))return A;const o=Aa(e.value,t.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return A.value=o.data,A}const fw=_("$ZodRecord",(A,e)=>{CA.init(A,e),A._zod.parse=(t,n)=>{const r=t.value;if(!$n(r))return t.issues.push({expected:"record",code:"invalid_type",input:r,inst:A}),t;const s=[],o=e.keyType._zod.values;if(o){t.value={};const a=new Set;for(const c of o)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){a.add(typeof c=="number"?c.toString():c);const u=e.valueType._zod.run({value:r[c],issues:[]},n);u instanceof Promise?s.push(u.then(h=>{h.issues.length&&t.issues.push(...Gn(c,h.issues)),t.value[c]=h.value})):(u.issues.length&&t.issues.push(...Gn(c,u.issues)),t.value[c]=u.value)}let i;for(const c in r)a.has(c)||(i=i!=null?i:[],i.push(c));i&&i.length>0&&t.issues.push({code:"unrecognized_keys",input:r,inst:A,keys:i})}else{t.value={};for(const a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let i=e.keyType._zod.run({value:a,issues:[]},n);if(i instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&Ml.test(a)&&i.issues.length&&i.issues.some(h=>h.code==="invalid_type"&&h.expected==="number")){const h=e.keyType._zod.run({value:Number(a),issues:[]},n);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(i=h)}if(i.issues.length){e.mode==="loose"?t.value[a]=r[a]:t.issues.push({code:"invalid_key",origin:"record",issues:i.issues.map(h=>Nt(h,n,Ot())),input:a,path:[a],inst:A});continue}const u=e.valueType._zod.run({value:r[a],issues:[]},n);u instanceof Promise?s.push(u.then(h=>{h.issues.length&&t.issues.push(...Gn(a,h.issues)),t.value[i.value]=h.value})):(u.issues.length&&t.issues.push(...Gn(a,u.issues)),t.value[i.value]=u.value)}}return s.length?Promise.all(s).then(()=>t):t}}),gw=_("$ZodEnum",(A,e)=>{CA.init(A,e);const t=vl(e.entries),n=new Set(t);A._zod.values=n,A._zod.pattern=new RegExp(`^(${t.filter(r=>Fg.has(typeof r)).map(r=>typeof r=="string"?zn(r):r.toString()).join("|")})$`),A._zod.parse=(r,s)=>{const o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t,input:o,inst:A}),r}}),Bw=_("$ZodLiteral",(A,e)=>{if(CA.init(A,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");const t=new Set(e.values);A._zod.values=t,A._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?zn(n):n?zn(n.toString()):String(n)).join("|")})$`),A._zod.parse=(n,r)=>{const s=n.value;return t.has(s)||n.issues.push({code:"invalid_value",values:e.values,input:s,inst:A}),n}}),ww=_("$ZodTransform",(A,e)=>{CA.init(A,e),A._zod.parse=(t,n)=>{if(n.direction==="backward")throw new kl(A.constructor.name);const r=e.transform(t.value,t);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(o=>(t.value=o,t));if(r instanceof Promise)throw new Kn;return t.value=r,t}});function Yl(A,e){return A.issues.length&&e===void 0?{issues:[],value:void 0}:A}const ql=_("$ZodOptional",(A,e)=>{CA.init(A,e),A._zod.optin="optional",A._zod.optout="optional",iA(A._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),iA(A._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${Wi(t.source)})?$`):void 0}),A._zod.parse=(t,n)=>{if(e.innerType._zod.optin==="optional"){const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Yl(s,t.value)):Yl(r,t.value)}return t.value===void 0?t:e.innerType._zod.run(t,n)}}),mw=_("$ZodExactOptional",(A,e)=>{ql.init(A,e),iA(A._zod,"values",()=>e.innerType._zod.values),iA(A._zod,"pattern",()=>e.innerType._zod.pattern),A._zod.parse=(t,n)=>e.innerType._zod.run(t,n)}),Cw=_("$ZodNullable",(A,e)=>{CA.init(A,e),iA(A._zod,"optin",()=>e.innerType._zod.optin),iA(A._zod,"optout",()=>e.innerType._zod.optout),iA(A._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${Wi(t.source)}|null)$`):void 0}),iA(A._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),A._zod.parse=(t,n)=>t.value===null?t:e.innerType._zod.run(t,n)}),bw=_("$ZodDefault",(A,e)=>{CA.init(A,e),A._zod.optin="optional",iA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);if(t.value===void 0)return t.value=e.defaultValue,t;const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>Au(s,e)):Au(r,e)}});function Au(A,e){return A.value===void 0&&(A.value=e.defaultValue),A}const Qw=_("$ZodPrefault",(A,e)=>{CA.init(A,e),A._zod.optin="optional",iA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=e.defaultValue),e.innerType._zod.run(t,n))}),yw=_("$ZodNonOptional",(A,e)=>{CA.init(A,e),iA(A._zod,"values",()=>{const t=e.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),A._zod.parse=(t,n)=>{const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>eu(s,A)):eu(r,A)}});function eu(A,e){return!A.issues.length&&A.value===void 0&&A.issues.push({code:"invalid_type",expected:"nonoptional",input:A.value,inst:e}),A}const Uw=_("$ZodCatch",(A,e)=>{CA.init(A,e),iA(A._zod,"optin",()=>e.innerType._zod.optin),iA(A._zod,"optout",()=>e.innerType._zod.optout),iA(A._zod,"values",()=>e.innerType._zod.values),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(s=>(t.value=s.value,s.issues.length&&(t.value=e.catchValue(z(F({},t),{error:{issues:s.issues.map(o=>Nt(o,n,Ot()))},input:t.value})),t.issues=[]),t)):(t.value=r.value,r.issues.length&&(t.value=e.catchValue(z(F({},t),{error:{issues:r.issues.map(s=>Nt(s,n,Ot()))},input:t.value})),t.issues=[]),t)}}),Ew=_("$ZodPipe",(A,e)=>{CA.init(A,e),iA(A._zod,"values",()=>e.in._zod.values),iA(A._zod,"optin",()=>e.in._zod.optin),iA(A._zod,"optout",()=>e.out._zod.optout),iA(A._zod,"propValues",()=>e.in._zod.propValues),A._zod.parse=(t,n)=>{if(n.direction==="backward"){const s=e.out._zod.run(t,n);return s instanceof Promise?s.then(o=>Js(o,e.in,n)):Js(s,e.in,n)}const r=e.in._zod.run(t,n);return r instanceof Promise?r.then(s=>Js(s,e.out,n)):Js(r,e.out,n)}});function Js(A,e,t){return A.issues.length?(A.aborted=!0,A):e._zod.run({value:A.value,issues:A.issues},t)}const kw=_("$ZodReadonly",(A,e)=>{CA.init(A,e),iA(A._zod,"propValues",()=>e.innerType._zod.propValues),iA(A._zod,"values",()=>e.innerType._zod.values),iA(A._zod,"optin",()=>{var t,n;return(n=(t=e.innerType)==null?void 0:t._zod)==null?void 0:n.optin}),iA(A._zod,"optout",()=>{var t,n;return(n=(t=e.innerType)==null?void 0:t._zod)==null?void 0:n.optout}),A._zod.parse=(t,n)=>{if(n.direction==="backward")return e.innerType._zod.run(t,n);const r=e.innerType._zod.run(t,n);return r instanceof Promise?r.then(tu):tu(r)}});function tu(A){return A.value=Object.freeze(A.value),A}const Fw=_("$ZodCustom",(A,e)=>{ge.init(A,e),CA.init(A,e),A._zod.parse=(t,n)=>t,A._zod.check=t=>{const n=t.value,r=e.fn(n);if(r instanceof Promise)return r.then(s=>nu(s,t,n,A));nu(r,t,n,A)}});function nu(A,e,t,n){var r;if(!A){const s={code:"custom",input:t,inst:n,path:[...(r=n._zod.def.path)!=null?r:[]],continue:!n._zod.def.abort};n._zod.def.params&&(s.params=n._zod.def.params),e.issues.push(xr(s))}}var ru;class vw{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){var n;const t=e._zod.parent;if(t){const r=F({},(n=this.get(t))!=null?n:{});delete r.id;const s=F(F({},r),this._map.get(e));return Object.keys(s).length?s:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function _w(){return new vw}(Pf=(ru=globalThis).__zod_globalRegistry)!=null||(ru.__zod_globalRegistry=_w());const Sr=globalThis.__zod_globalRegistry;function xw(A,e){return new A(F({type:"string"},V(e)))}function Sw(A,e){return new A(F({type:"string",format:"email",check:"string_format",abort:!1},V(e)))}function su(A,e){return new A(F({type:"string",format:"guid",check:"string_format",abort:!1},V(e)))}function Iw(A,e){return new A(F({type:"string",format:"uuid",check:"string_format",abort:!1},V(e)))}function Tw(A,e){return new A(F({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},V(e)))}function Hw(A,e){return new A(F({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},V(e)))}function Lw(A,e){return new A(F({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},V(e)))}function Rw(A,e){return new A(F({type:"string",format:"url",check:"string_format",abort:!1},V(e)))}function Dw(A,e){return new A(F({type:"string",format:"emoji",check:"string_format",abort:!1},V(e)))}function Ow(A,e){return new A(F({type:"string",format:"nanoid",check:"string_format",abort:!1},V(e)))}function Pw(A,e){return new A(F({type:"string",format:"cuid",check:"string_format",abort:!1},V(e)))}function Mw(A,e){return new A(F({type:"string",format:"cuid2",check:"string_format",abort:!1},V(e)))}function Nw(A,e){return new A(F({type:"string",format:"ulid",check:"string_format",abort:!1},V(e)))}function Kw(A,e){return new A(F({type:"string",format:"xid",check:"string_format",abort:!1},V(e)))}function $w(A,e){return new A(F({type:"string",format:"ksuid",check:"string_format",abort:!1},V(e)))}function zw(A,e){return new A(F({type:"string",format:"ipv4",check:"string_format",abort:!1},V(e)))}function Vw(A,e){return new A(F({type:"string",format:"ipv6",check:"string_format",abort:!1},V(e)))}function Gw(A,e){return new A(F({type:"string",format:"cidrv4",check:"string_format",abort:!1},V(e)))}function Zw(A,e){return new A(F({type:"string",format:"cidrv6",check:"string_format",abort:!1},V(e)))}function Xw(A,e){return new A(F({type:"string",format:"base64",check:"string_format",abort:!1},V(e)))}function Ww(A,e){return new A(F({type:"string",format:"base64url",check:"string_format",abort:!1},V(e)))}function Jw(A,e){return new A(F({type:"string",format:"e164",check:"string_format",abort:!1},V(e)))}function jw(A,e){return new A(F({type:"string",format:"jwt",check:"string_format",abort:!1},V(e)))}function Yw(A,e){return new A(F({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},V(e)))}function qw(A,e){return new A(F({type:"string",format:"date",check:"string_format"},V(e)))}function Am(A,e){return new A(F({type:"string",format:"time",check:"string_format",precision:null},V(e)))}function em(A,e){return new A(F({type:"string",format:"duration",check:"string_format"},V(e)))}function tm(A,e){return new A(F({type:"number",checks:[]},V(e)))}function nm(A,e){return new A(F({type:"number",check:"number_format",abort:!1,format:"safeint"},V(e)))}function rm(A,e){return new A(F({type:"boolean"},V(e)))}function sm(A){return new A({type:"any"})}function om(A){return new A({type:"unknown"})}function im(A,e){return new A(F({type:"never"},V(e)))}function ou(A,e){return new Kl(z(F({check:"less_than"},V(e)),{value:A,inclusive:!1}))}function ea(A,e){return new Kl(z(F({check:"less_than"},V(e)),{value:A,inclusive:!0}))}function iu(A,e){return new $l(z(F({check:"greater_than"},V(e)),{value:A,inclusive:!1}))}function ta(A,e){return new $l(z(F({check:"greater_than"},V(e)),{value:A,inclusive:!0}))}function au(A,e){return new CB(z(F({check:"multiple_of"},V(e)),{value:A}))}function cu(A,e){return new QB(z(F({check:"max_length"},V(e)),{maximum:A}))}function js(A,e){return new yB(z(F({check:"min_length"},V(e)),{minimum:A}))}function lu(A,e){return new UB(z(F({check:"length_equals"},V(e)),{length:A}))}function am(A,e){return new EB(z(F({check:"string_format",format:"regex"},V(e)),{pattern:A}))}function cm(A){return new kB(F({check:"string_format",format:"lowercase"},V(A)))}function lm(A){return new FB(F({check:"string_format",format:"uppercase"},V(A)))}function um(A,e){return new vB(z(F({check:"string_format",format:"includes"},V(e)),{includes:A}))}function dm(A,e){return new _B(z(F({check:"string_format",format:"starts_with"},V(e)),{prefix:A}))}function pm(A,e){return new xB(z(F({check:"string_format",format:"ends_with"},V(e)),{suffix:A}))}function Zn(A){return new SB({check:"overwrite",tx:A})}function hm(A){return Zn(e=>e.normalize(A))}function fm(){return Zn(A=>A.trim())}function gm(){return Zn(A=>A.toLowerCase())}function Bm(){return Zn(A=>A.toUpperCase())}function wm(){return Zn(A=>Eg(A))}function mm(A,e,t){return new A(F({type:"array",element:e},V(t)))}function Cm(A,e,t){return new A(F({type:"custom",check:"custom",fn:e},V(t)))}function bm(A){const e=Qm(t=>(t.addIssue=n=>{var r,s,o,a;if(typeof n=="string")t.issues.push(xr(n,t.value,e._zod.def));else{const i=n;i.fatal&&(i.continue=!1),(r=i.code)!=null||(i.code="custom"),(s=i.input)!=null||(i.input=t.value),(o=i.inst)!=null||(i.inst=e),(a=i.continue)!=null||(i.continue=!e._zod.def.abort),t.issues.push(xr(i))}},A(t.value,t)));return e}function Qm(A,e){const t=new ge(F({check:"custom"},V(e)));return t._zod.check=A,t}function uu(A){var t,n,r,s,o,a,i,c,u;let e=(t=A==null?void 0:A.target)!=null?t:"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:(n=A.processors)!=null?n:{},metadataRegistry:(r=A==null?void 0:A.metadata)!=null?r:Sr,target:e,unrepresentable:(s=A==null?void 0:A.unrepresentable)!=null?s:"throw",override:(o=A==null?void 0:A.override)!=null?o:(()=>{}),io:(a=A==null?void 0:A.io)!=null?a:"output",counter:0,seen:new Map,cycles:(i=A==null?void 0:A.cycles)!=null?i:"ref",reused:(c=A==null?void 0:A.reused)!=null?c:"inline",external:(u=A==null?void 0:A.external)!=null?u:void 0}}function PA(A,e,t={path:[],schemaPath:[]}){var u,h,f;var n;const r=A._zod.def,s=e.seen.get(A);if(s)return s.count++,t.schemaPath.includes(A)&&(s.cycle=t.path),s.schema;const o={schema:{},count:1,cycle:void 0,path:t.path};e.seen.set(A,o);const a=(h=(u=A._zod).toJSONSchema)==null?void 0:h.call(u);if(a)o.schema=a;else{const g=z(F({},t),{schemaPath:[...t.schemaPath,A],path:t.path});if(A._zod.processJSONSchema)A._zod.processJSONSchema(e,o.schema,g);else{const b=o.schema,E=e.processors[r.type];if(!E)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);E(A,e,b,g)}const m=A._zod.parent;m&&(o.ref||(o.ref=m),PA(m,e,g),e.seen.get(m).isParent=!0)}const i=e.metadataRegistry.get(A);return i&&Object.assign(o.schema,i),e.io==="input"&&ae(A)&&(delete o.schema.examples,delete o.schema.default),e.io==="input"&&o.schema._prefault&&((f=(n=o.schema).default)!=null||(n.default=o.schema._prefault)),delete o.schema._prefault,e.seen.get(A).schema}function du(A,e){var o,a,i,c;const t=A.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=new Map;for(const u of A.seen.entries()){const h=(o=A.metadataRegistry.get(u[0]))==null?void 0:o.id;if(h){const f=n.get(h);if(f&&f!==u[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(h,u[0])}}const r=u=>{var b,E,k,v,y;const h=A.target==="draft-2020-12"?"$defs":"definitions";if(A.external){const U=(b=A.external.registry.get(u[0]))==null?void 0:b.id,x=(E=A.external.uri)!=null?E:(H=>H);if(U)return{ref:x(U)};const R=(v=(k=u[1].defId)!=null?k:u[1].schema.id)!=null?v:`schema${A.counter++}`;return u[1].defId=R,{defId:R,ref:`${x("__shared")}#/${h}/${R}`}}if(u[1]===t)return{ref:"#"};const g=`#/${h}/`,m=(y=u[1].schema.id)!=null?y:`__schema${A.counter++}`;return{defId:m,ref:g+m}},s=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:f,defId:g}=r(u);h.def=F({},h.schema),g&&(h.defId=g);const m=h.schema;for(const b in m)delete m[b];m.$ref=f};if(A.cycles==="throw")for(const u of A.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${(a=h.cycle)==null?void 0:a.join("/")}/<root>
1624
1624
 
1625
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of A.seen.entries()){const h=u[1];if(e===u[0]){s(u);continue}if(A.external){const g=(i=A.external.registry.get(u[0]))==null?void 0:i.id;if(e!==u[0]&&g){s(u);continue}}if((c=A.metadataRegistry.get(u[0]))==null?void 0:c.id){s(u);continue}if(h.cycle){s(u);continue}if(h.count>1&&A.reused==="ref"){s(u);continue}}}function cu(A,e){var o,a,i,c,u;const t=A.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=h=>{var E,v,F;const f=A.seen.get(h);if(f.ref===null)return;const g=(E=f.def)!=null?E:f.schema,m=k({},g),b=f.ref;if(f.ref=null,b){n(b);const y=A.seen.get(b),_=y.schema;if(_.$ref&&(A.target==="draft-07"||A.target==="draft-04"||A.target==="openapi-3.0")?(g.allOf=(v=g.allOf)!=null?v:[],g.allOf.push(_)):Object.assign(g,_),Object.assign(g,m),h._zod.parent===b)for(const H in g)H==="$ref"||H==="allOf"||H in m||delete g[H];if(_.$ref)for(const H in g)H==="$ref"||H==="allOf"||H in y.def&&JSON.stringify(g[H])===JSON.stringify(y.def[H])&&delete g[H]}const U=h._zod.parent;if(U&&U!==b){n(U);const y=A.seen.get(U);if(y!=null&&y.schema.$ref&&(g.$ref=y.schema.$ref,y.def))for(const _ in g)_==="$ref"||_==="allOf"||_ in y.def&&JSON.stringify(g[_])===JSON.stringify(y.def[_])&&delete g[_]}A.override({zodSchema:h,jsonSchema:g,path:(F=f.path)!=null?F:[]})};for(const h of[...A.seen.entries()].reverse())n(h[0]);const r={};if(A.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":A.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":A.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":A.target,(o=A.external)!=null&&o.uri){const h=(a=A.external.registry.get(e))==null?void 0:a.id;if(!h)throw new Error("Schema is missing an `id` property");r.$id=A.external.uri(h)}Object.assign(r,(i=t.def)!=null?i:t.schema);const s=(u=(c=A.external)==null?void 0:c.defs)!=null?u:{};for(const h of A.seen.entries()){const f=h[1];f.def&&f.defId&&(s[f.defId]=f.def)}A.external||Object.keys(s).length>0&&(A.target==="draft-2020-12"?r.$defs=s:r.definitions=s);try{const h=JSON.parse(JSON.stringify(r));return Object.defineProperty(h,"~standard",{value:$(k({},e["~standard"]),{jsonSchema:{input:Js(e,"input",A.processors),output:Js(e,"output",A.processors)}}),enumerable:!1,writable:!1}),h}catch(h){throw new Error("Error converting schema to JSON.")}}function ie(A,e){const t=e!=null?e:{seen:new Set};if(t.seen.has(A))return!1;t.seen.add(A);const n=A._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ie(n.element,t);if(n.type==="set")return ie(n.valueType,t);if(n.type==="lazy")return ie(n.getter(),t);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ie(n.innerType,t);if(n.type==="intersection")return ie(n.left,t)||ie(n.right,t);if(n.type==="record"||n.type==="map")return ie(n.keyType,t)||ie(n.valueType,t);if(n.type==="pipe")return ie(n.in,t)||ie(n.out,t);if(n.type==="object"){for(const r in n.shape)if(ie(n.shape[r],t))return!0;return!1}if(n.type==="union"){for(const r of n.options)if(ie(r,t))return!0;return!1}if(n.type==="tuple"){for(const r of n.items)if(ie(r,t))return!0;return!!(n.rest&&ie(n.rest,t))}return!1}const wm=(A,e={})=>t=>{const n=iu($(k({},t),{processors:e}));return OA(A,n),au(n,A),cu(n,A)},Js=(A,e,t={})=>n=>{const{libraryOptions:r,target:s}=n!=null?n:{},o=iu($(k({},r!=null?r:{}),{target:s,io:e,processors:t}));return OA(A,o),au(o,A),cu(o,A)},mm={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Cm=(A,e,t,n)=>{var u;const r=t;r.type="string";const{minimum:s,maximum:o,format:a,patterns:i,contentEncoding:c}=A._zod.bag;if(typeof s=="number"&&(r.minLength=s),typeof o=="number"&&(r.maxLength=o),a&&(r.format=(u=mm[a])!=null?u:a,r.format===""&&delete r.format,a==="time"&&delete r.format),c&&(r.contentEncoding=c),i&&i.size>0){const h=[...i];h.length===1?r.pattern=h[0].source:h.length>1&&(r.allOf=[...h.map(f=>$(k({},e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{}),{pattern:f.source}))])}},bm=(A,e,t,n)=>{const r=t,{minimum:s,maximum:o,format:a,multipleOf:i,exclusiveMaximum:c,exclusiveMinimum:u}=A._zod.bag;typeof a=="string"&&a.includes("int")?r.type="integer":r.type="number",typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u),typeof s=="number"&&(r.minimum=s,typeof u=="number"&&e.target!=="draft-04"&&(u>=s?delete r.minimum:delete r.exclusiveMinimum)),typeof c=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c),typeof o=="number"&&(r.maximum=o,typeof c=="number"&&e.target!=="draft-04"&&(c<=o?delete r.maximum:delete r.exclusiveMaximum)),typeof i=="number"&&(r.multipleOf=i)},Qm=(A,e,t,n)=>{t.type="boolean"},ym=(A,e,t,n)=>{t.not={}},Um=(A,e,t,n)=>{},Em=(A,e,t,n)=>{},km=(A,e,t,n)=>{const r=A._zod.def,s=Ul(r.entries);s.every(o=>typeof o=="number")&&(t.type="number"),s.every(o=>typeof o=="string")&&(t.type="string"),t.enum=s},Fm=(A,e,t,n)=>{const r=A._zod.def,s=[];for(const o of r.values)if(o===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(o))}else s.push(o);if(s.length!==0)if(s.length===1){const o=s[0];t.type=o===null?"null":typeof o,e.target==="draft-04"||e.target==="openapi-3.0"?t.enum=[o]:t.const=o}else s.every(o=>typeof o=="number")&&(t.type="number"),s.every(o=>typeof o=="string")&&(t.type="string"),s.every(o=>typeof o=="boolean")&&(t.type="boolean"),s.every(o=>o===null)&&(t.type="null"),t.enum=s},vm=(A,e,t,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},_m=(A,e,t,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},xm=(A,e,t,n)=>{const r=t,s=A._zod.def,{minimum:o,maximum:a}=A._zod.bag;typeof o=="number"&&(r.minItems=o),typeof a=="number"&&(r.maxItems=a),r.type="array",r.items=OA(s.element,e,$(k({},n),{path:[...n.path,"items"]}))},Sm=(A,e,t,n)=>{var c;const r=t,s=A._zod.def;r.type="object",r.properties={};const o=s.shape;for(const u in o)r.properties[u]=OA(o[u],e,$(k({},n),{path:[...n.path,"properties",u]}));const a=new Set(Object.keys(o)),i=new Set([...a].filter(u=>{const h=s.shape[u]._zod;return e.io==="input"?h.optin===void 0:h.optout===void 0}));i.size>0&&(r.required=Array.from(i)),((c=s.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:s.catchall?s.catchall&&(r.additionalProperties=OA(s.catchall,e,$(k({},n),{path:[...n.path,"additionalProperties"]}))):e.io==="output"&&(r.additionalProperties=!1)},Im=(A,e,t,n)=>{const r=A._zod.def,s=r.inclusive===!1,o=r.options.map((a,i)=>OA(a,e,$(k({},n),{path:[...n.path,s?"oneOf":"anyOf",i]})));s?t.oneOf=o:t.anyOf=o},Tm=(A,e,t,n)=>{const r=A._zod.def,s=OA(r.left,e,$(k({},n),{path:[...n.path,"allOf",0]})),o=OA(r.right,e,$(k({},n),{path:[...n.path,"allOf",1]})),a=c=>"allOf"in c&&Object.keys(c).length===1,i=[...a(s)?s.allOf:[s],...a(o)?o.allOf:[o]];t.allOf=i},Hm=(A,e,t,n)=>{const r=t,s=A._zod.def;r.type="object";const o=s.keyType,a=o._zod.bag,i=a==null?void 0:a.patterns;if(s.mode==="loose"&&i&&i.size>0){const u=OA(s.valueType,e,$(k({},n),{path:[...n.path,"patternProperties","*"]}));r.patternProperties={};for(const h of i)r.patternProperties[h.source]=u}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(r.propertyNames=OA(s.keyType,e,$(k({},n),{path:[...n.path,"propertyNames"]}))),r.additionalProperties=OA(s.valueType,e,$(k({},n),{path:[...n.path,"additionalProperties"]}));const c=o._zod.values;if(c){const u=[...c].filter(h=>typeof h=="string"||typeof h=="number");u.length>0&&(r.required=u)}},Lm=(A,e,t,n)=>{const r=A._zod.def,s=OA(r.innerType,e,n),o=e.seen.get(A);e.target==="openapi-3.0"?(o.ref=r.innerType,t.nullable=!0):t.anyOf=[s,{type:"null"}]},Dm=(A,e,t,n)=>{const r=A._zod.def;OA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType},Rm=(A,e,t,n)=>{const r=A._zod.def;OA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,t.default=JSON.parse(JSON.stringify(r.defaultValue))},Om=(A,e,t,n)=>{const r=A._zod.def;OA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,e.io==="input"&&(t._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},Pm=(A,e,t,n)=>{const r=A._zod.def;OA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType;let o;try{o=r.catchValue(void 0)}catch(a){throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=o},Mm=(A,e,t,n)=>{const r=A._zod.def,s=e.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;OA(s,e,n);const o=e.seen.get(A);o.ref=s},Km=(A,e,t,n)=>{const r=A._zod.def;OA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,t.readOnly=!0},lu=(A,e,t,n)=>{const r=A._zod.def;OA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType},Nm=x("ZodISODateTime",(A,e)=>{MB.init(A,e),FA.init(A,e)});function $m(A){return Zw(Nm,A)}const zm=x("ZodISODate",(A,e)=>{KB.init(A,e),FA.init(A,e)});function Vm(A){return Xw(zm,A)}const Gm=x("ZodISOTime",(A,e)=>{NB.init(A,e),FA.init(A,e)});function Zm(A){return Ww(Gm,A)}const Xm=x("ZodISODuration",(A,e)=>{$B.init(A,e),FA.init(A,e)});function Wm(A){return Jw(Xm,A)}const Ue=x("ZodError",(A,e)=>{xl.init(A,e),A.name="ZodError",Object.defineProperties(A,{format:{value:t=>Tg(A,t)},flatten:{value:t=>Ig(A,t)},addIssue:{value:t=>{A.issues.push(t),A.message=JSON.stringify(A.issues,Vi,2)}},addIssues:{value:t=>{A.issues.push(...t),A.message=JSON.stringify(A.issues,Vi,2)}},isEmpty:{get(){return A.issues.length===0}}})},{Parent:Error}),Jm=Wi(Ue),jm=Ji(Ue),Ym=zs(Ue),qm=Vs(Ue),AC=Dg(Ue),eC=Rg(Ue),tC=Og(Ue),nC=Pg(Ue),rC=Mg(Ue),sC=Kg(Ue),oC=Ng(Ue),iC=$g(Ue),yA=x("ZodType",(A,e)=>(bA.init(A,e),Object.assign(A["~standard"],{jsonSchema:{input:Js(A,"input"),output:Js(A,"output")}}),A.toJSONSchema=wm(A,{}),A.def=e,A.type=e.type,Object.defineProperty(A,"_def",{value:e}),A.check=(...t)=>{var n;return A.clone(Dt(e,{checks:[...(n=e.checks)!=null?n:[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},A.with=A.check,A.clone=(t,n)=>Rt(A,t,n),A.brand=()=>A,A.register=((t,n)=>(t.add(A,n),A)),A.parse=(t,n)=>Jm(A,t,n,{callee:A.parse}),A.safeParse=(t,n)=>Ym(A,t,n),A.parseAsync=(t,n)=>I(null,null,function*(){return jm(A,t,n,{callee:A.parseAsync})}),A.safeParseAsync=(t,n)=>I(null,null,function*(){return qm(A,t,n)}),A.spa=A.safeParseAsync,A.encode=(t,n)=>AC(A,t,n),A.decode=(t,n)=>eC(A,t,n),A.encodeAsync=(t,n)=>I(null,null,function*(){return tC(A,t,n)}),A.decodeAsync=(t,n)=>I(null,null,function*(){return nC(A,t,n)}),A.safeEncode=(t,n)=>rC(A,t,n),A.safeDecode=(t,n)=>sC(A,t,n),A.safeEncodeAsync=(t,n)=>I(null,null,function*(){return oC(A,t,n)}),A.safeDecodeAsync=(t,n)=>I(null,null,function*(){return iC(A,t,n)}),A.refine=(t,n)=>A.check(tb(t,n)),A.superRefine=t=>A.check(nb(t)),A.overwrite=t=>A.check(Vn(t)),A.optional=()=>Cu(A),A.exactOptional=()=>$C(A),A.nullable=()=>bu(A),A.nullish=()=>Cu(bu(A)),A.nonoptional=t=>WC(A,t),A.array=()=>be(A),A.or=t=>HC([A,t]),A.and=t=>RC(A,t),A.transform=t=>yu(A,KC(t)),A.default=t=>GC(A,t),A.prefault=t=>XC(A,t),A.catch=t=>jC(A,t),A.pipe=t=>yu(A,t),A.readonly=()=>Ab(A),A.describe=t=>{const n=A.clone();return xr.add(n,{description:t}),n},Object.defineProperty(A,"description",{get(){var t;return(t=xr.get(A))==null?void 0:t.description},configurable:!0}),A.meta=(...t)=>{if(t.length===0)return xr.get(A);const n=A.clone();return xr.add(n,t[0]),n},A.isOptional=()=>A.safeParse(void 0).success,A.isNullable=()=>A.safeParse(null).success,A.apply=t=>t(A),A)),uu=x("_ZodString",(A,e)=>{var n,r,s;ji.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(o,a,i)=>Cm(A,o,a);const t=A._zod.bag;A.format=(n=t.format)!=null?n:null,A.minLength=(r=t.minimum)!=null?r:null,A.maxLength=(s=t.maximum)!=null?s:null,A.regex=(...o)=>A.check(nm(...o)),A.includes=(...o)=>A.check(om(...o)),A.startsWith=(...o)=>A.check(im(...o)),A.endsWith=(...o)=>A.check(am(...o)),A.min=(...o)=>A.check(Ws(...o)),A.max=(...o)=>A.check(su(...o)),A.length=(...o)=>A.check(ou(...o)),A.nonempty=(...o)=>A.check(Ws(1,...o)),A.lowercase=o=>A.check(rm(o)),A.uppercase=o=>A.check(sm(o)),A.trim=()=>A.check(lm()),A.normalize=(...o)=>A.check(cm(...o)),A.toLowerCase=()=>A.check(um()),A.toUpperCase=()=>A.check(dm()),A.slugify=()=>A.check(pm())}),aC=x("ZodString",(A,e)=>{ji.init(A,e),uu.init(A,e),A.email=t=>A.check(kw(cC,t)),A.url=t=>A.check(Sw(lC,t)),A.jwt=t=>A.check(Gw(EC,t)),A.emoji=t=>A.check(Iw(uC,t)),A.guid=t=>A.check(eu(du,t)),A.uuid=t=>A.check(Fw(js,t)),A.uuidv4=t=>A.check(vw(js,t)),A.uuidv6=t=>A.check(_w(js,t)),A.uuidv7=t=>A.check(xw(js,t)),A.nanoid=t=>A.check(Tw(dC,t)),A.guid=t=>A.check(eu(du,t)),A.cuid=t=>A.check(Hw(pC,t)),A.cuid2=t=>A.check(Lw(hC,t)),A.ulid=t=>A.check(Dw(fC,t)),A.base64=t=>A.check($w(QC,t)),A.base64url=t=>A.check(zw(yC,t)),A.xid=t=>A.check(Rw(gC,t)),A.ksuid=t=>A.check(Ow(BC,t)),A.ipv4=t=>A.check(Pw(wC,t)),A.ipv6=t=>A.check(Mw(mC,t)),A.cidrv4=t=>A.check(Kw(CC,t)),A.cidrv6=t=>A.check(Nw(bC,t)),A.e164=t=>A.check(Vw(UC,t)),A.datetime=t=>A.check($m(t)),A.date=t=>A.check(Vm(t)),A.time=t=>A.check(Zm(t)),A.duration=t=>A.check(Wm(t))});function L(A){return Ew(aC,A)}const FA=x("ZodStringFormat",(A,e)=>{QA.init(A,e),uu.init(A,e)}),cC=x("ZodEmail",(A,e)=>{SB.init(A,e),FA.init(A,e)}),du=x("ZodGUID",(A,e)=>{_B.init(A,e),FA.init(A,e)}),js=x("ZodUUID",(A,e)=>{xB.init(A,e),FA.init(A,e)}),lC=x("ZodURL",(A,e)=>{IB.init(A,e),FA.init(A,e)}),uC=x("ZodEmoji",(A,e)=>{TB.init(A,e),FA.init(A,e)}),dC=x("ZodNanoID",(A,e)=>{HB.init(A,e),FA.init(A,e)}),pC=x("ZodCUID",(A,e)=>{LB.init(A,e),FA.init(A,e)}),hC=x("ZodCUID2",(A,e)=>{DB.init(A,e),FA.init(A,e)}),fC=x("ZodULID",(A,e)=>{RB.init(A,e),FA.init(A,e)}),gC=x("ZodXID",(A,e)=>{OB.init(A,e),FA.init(A,e)}),BC=x("ZodKSUID",(A,e)=>{PB.init(A,e),FA.init(A,e)}),wC=x("ZodIPv4",(A,e)=>{zB.init(A,e),FA.init(A,e)}),mC=x("ZodIPv6",(A,e)=>{VB.init(A,e),FA.init(A,e)}),CC=x("ZodCIDRv4",(A,e)=>{GB.init(A,e),FA.init(A,e)}),bC=x("ZodCIDRv6",(A,e)=>{ZB.init(A,e),FA.init(A,e)}),QC=x("ZodBase64",(A,e)=>{XB.init(A,e),FA.init(A,e)}),yC=x("ZodBase64URL",(A,e)=>{JB.init(A,e),FA.init(A,e)}),UC=x("ZodE164",(A,e)=>{jB.init(A,e),FA.init(A,e)}),EC=x("ZodJWT",(A,e)=>{qB.init(A,e),FA.init(A,e)}),pu=x("ZodNumber",(A,e)=>{var n,r,s,o,a,i,c,u,h;Kl.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(f,g,m)=>bm(A,f,g),A.gt=(f,g)=>A.check(nu(f,g)),A.gte=(f,g)=>A.check(Aa(f,g)),A.min=(f,g)=>A.check(Aa(f,g)),A.lt=(f,g)=>A.check(tu(f,g)),A.lte=(f,g)=>A.check(qi(f,g)),A.max=(f,g)=>A.check(qi(f,g)),A.int=f=>A.check(hu(f)),A.safe=f=>A.check(hu(f)),A.positive=f=>A.check(nu(0,f)),A.nonnegative=f=>A.check(Aa(0,f)),A.negative=f=>A.check(tu(0,f)),A.nonpositive=f=>A.check(qi(0,f)),A.multipleOf=(f,g)=>A.check(ru(f,g)),A.step=(f,g)=>A.check(ru(f,g)),A.finite=()=>A;const t=A._zod.bag;A.minValue=(s=Math.max((n=t.minimum)!=null?n:Number.NEGATIVE_INFINITY,(r=t.exclusiveMinimum)!=null?r:Number.NEGATIVE_INFINITY))!=null?s:null,A.maxValue=(i=Math.min((o=t.maximum)!=null?o:Number.POSITIVE_INFINITY,(a=t.exclusiveMaximum)!=null?a:Number.POSITIVE_INFINITY))!=null?i:null,A.isInt=((c=t.format)!=null?c:"").includes("int")||Number.isSafeInteger((u=t.multipleOf)!=null?u:.5),A.isFinite=!0,A.format=(h=t.format)!=null?h:null});function ot(A){return jw(pu,A)}const kC=x("ZodNumberFormat",(A,e)=>{Aw.init(A,e),pu.init(A,e)});function hu(A){return Yw(kC,A)}const FC=x("ZodBoolean",(A,e)=>{ew.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Qm(A,t,n)});function UA(A){return qw(FC,A)}const vC=x("ZodAny",(A,e)=>{tw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Um()});function fu(){return Am(vC)}const _C=x("ZodUnknown",(A,e)=>{nw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Em()});function gu(){return em(_C)}const xC=x("ZodNever",(A,e)=>{rw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>ym(A,t,n)});function SC(A){return tm(xC,A)}const IC=x("ZodArray",(A,e)=>{sw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>xm(A,t,n,r),A.element=e.element,A.min=(t,n)=>A.check(Ws(t,n)),A.nonempty=t=>A.check(Ws(1,t)),A.max=(t,n)=>A.check(su(t,n)),A.length=(t,n)=>A.check(ou(t,n)),A.unwrap=()=>A.element});function be(A,e){return hm(IC,A,e)}const TC=x("ZodObject",(A,e)=>{iw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Sm(A,t,n,r),iA(A,"shape",()=>e.shape),A.keyof=()=>Ee(Object.keys(A._zod.def.shape)),A.catchall=t=>A.clone($(k({},A._zod.def),{catchall:t})),A.passthrough=()=>A.clone($(k({},A._zod.def),{catchall:gu()})),A.loose=()=>A.clone($(k({},A._zod.def),{catchall:gu()})),A.strict=()=>A.clone($(k({},A._zod.def),{catchall:SC()})),A.strip=()=>A.clone($(k({},A._zod.def),{catchall:void 0})),A.extend=t=>Fg(A,t),A.safeExtend=t=>vg(A,t),A.merge=t=>_g(A,t),A.pick=t=>Eg(A,t),A.omit=t=>kg(A,t),A.partial=(...t)=>xg(mu,A,t[0]),A.required=(...t)=>Sg(Qu,A,t[0])});function CA(A,e){const t=k({type:"object",shape:A!=null?A:{}},V(e));return new TC(t)}const Bu=x("ZodUnion",(A,e)=>{Gl.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Im(A,t,n,r),A.options=e.options});function HC(A,e){return new Bu(k({type:"union",options:A},V(e)))}const LC=x("ZodDiscriminatedUnion",(A,e)=>{Bu.init(A,e),aw.init(A,e)});function wu(A,e,t){return new LC(k({type:"union",options:e,discriminator:A},V(t)))}const DC=x("ZodIntersection",(A,e)=>{cw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Tm(A,t,n,r)});function RC(A,e){return new DC({type:"intersection",left:A,right:e})}const OC=x("ZodRecord",(A,e)=>{lw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Hm(A,t,n,r),A.keyType=e.keyType,A.valueType=e.valueType});function it(A,e,t){return new OC(k({type:"record",keyType:A,valueType:e},V(t)))}const ea=x("ZodEnum",(A,e)=>{uw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(n,r,s)=>km(A,n,r),A.enum=e.entries,A.options=Object.values(e.entries);const t=new Set(Object.keys(e.entries));A.extract=(n,r)=>{const s={};for(const o of n)if(t.has(o))s[o]=e.entries[o];else throw new Error(`Key ${o} not found in enum`);return new ea($(k($(k({},e),{checks:[]}),V(r)),{entries:s}))},A.exclude=(n,r)=>{const s=k({},e.entries);for(const o of n)if(t.has(o))delete s[o];else throw new Error(`Key ${o} not found in enum`);return new ea($(k($(k({},e),{checks:[]}),V(r)),{entries:s}))}});function Ee(A,e){const t=Array.isArray(A)?Object.fromEntries(A.map(n=>[n,n])):A;return new ea(k({type:"enum",entries:t},V(e)))}const PC=x("ZodLiteral",(A,e)=>{dw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Fm(A,t,n),A.values=new Set(e.values),Object.defineProperty(A,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function ke(A,e){return new PC(k({type:"literal",values:Array.isArray(A)?A:[A]},V(e)))}const MC=x("ZodTransform",(A,e)=>{pw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>_m(A,t),A._zod.parse=(t,n)=>{if(n.direction==="backward")throw new Ql(A.constructor.name);t.addIssue=s=>{var o,a,i;if(typeof s=="string")t.issues.push(_r(s,t.value,e));else{const c=s;c.fatal&&(c.continue=!1),(o=c.code)!=null||(c.code="custom"),(a=c.input)!=null||(c.input=t.value),(i=c.inst)!=null||(c.inst=A),t.issues.push(_r(c))}};const r=e.transform(t.value,t);return r instanceof Promise?r.then(s=>(t.value=s,t)):(t.value=r,t)}});function KC(A){return new MC({type:"transform",transform:A})}const mu=x("ZodOptional",(A,e)=>{Wl.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>lu(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function Cu(A){return new mu({type:"optional",innerType:A})}const NC=x("ZodExactOptional",(A,e)=>{hw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>lu(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function $C(A){return new NC({type:"optional",innerType:A})}const zC=x("ZodNullable",(A,e)=>{fw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Lm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function bu(A){return new zC({type:"nullable",innerType:A})}const VC=x("ZodDefault",(A,e)=>{gw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Rm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType,A.removeDefault=A.unwrap});function GC(A,e){return new VC({type:"default",innerType:A,get defaultValue(){return typeof e=="function"?e():vl(e)}})}const ZC=x("ZodPrefault",(A,e)=>{Bw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Om(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function XC(A,e){return new ZC({type:"prefault",innerType:A,get defaultValue(){return typeof e=="function"?e():vl(e)}})}const Qu=x("ZodNonOptional",(A,e)=>{ww.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Dm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function WC(A,e){return new Qu(k({type:"nonoptional",innerType:A},V(e)))}const JC=x("ZodCatch",(A,e)=>{mw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Pm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType,A.removeCatch=A.unwrap});function jC(A,e){return new JC({type:"catch",innerType:A,catchValue:typeof e=="function"?e:()=>e})}const YC=x("ZodPipe",(A,e)=>{Cw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Mm(A,t,n,r),A.in=e.in,A.out=e.out});function yu(A,e){return new YC({type:"pipe",in:A,out:e})}const qC=x("ZodReadonly",(A,e)=>{bw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Km(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function Ab(A){return new qC({type:"readonly",innerType:A})}const eb=x("ZodCustom",(A,e)=>{Qw.init(A,e),yA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>vm(A,t)});function tb(A,e={}){return fm(eb,A,e)}function nb(A){return gm(A)}const rb=CA({name:L().min(1).max(100).optional(),command:L().min(1).max(500),args:be(L()).optional(),failOnError:UA().default(!0).optional(),timeout:ot().int().min(1e3).max(3e5).default(3e4).optional(),workingDirectory:L().optional(),env:it(L(),L()).optional(),runOnBackground:UA().optional(),agentTags:be(L()).optional()});CA({name:L(),command:L(),success:UA(),exitCode:ot().optional(),stdout:L().optional(),stderr:L().optional(),error:L().optional(),duration:ot(),failOnError:UA()});const rn=CA({path:L(),extraCommands:be(rb).optional(),id:L().uuid().optional(),rotationKey:L().optional(),usageStatus:Ee(["free","in_use"]).optional(),agentTags:be(L()).optional()}),sb=wu("operation",[rn.extend({operation:ke("create"),content:L().optional(),contentPath:L().optional(),encoding:Ee(["utf-8","base64"]).optional()}),rn.extend({operation:ke("merge"),data:it(L(),fu()),mergeStrategy:Ee(["deep","shallow"]).optional(),arrayMergeStrategy:Ee(["concat","replace"]).optional()}),rn.extend({operation:ke("modify"),content:L().optional(),contentPath:L().optional(),createIfMissing:UA().optional()}),rn.extend({operation:ke("delete"),ignoreIfMissing:UA().optional()}),rn.extend({operation:ke("createDirectory"),contentPath:L().optional(),mode:ot().optional(),ignoreIfExists:UA().optional()}),rn.extend({operation:ke("download"),url:L().url(),headers:it(L(),L()).optional(),timeout:ot().min(1e3).max(3e5).optional()}),rn.extend({operation:ke("gitClone"),gitUrl:L(),gitSecretKey:L().optional(),sourceBranch:L().optional(),targetBranch:L().optional(),originalBranch:L().optional(),defaultBranch:L().optional()})]);var vA=(A=>(A.DRAFT="draft",A.PENDING="pending",A.ASSIGNED="assigned",A.IN_PROGRESS="in_progress",A.WAITING_FOR_INPUT="waiting_for_input",A.WAITING_FOR_PLAN_APPROVAL="waiting_for_plan_approval",A.PLAN_APPROVED="plan_approved",A.PLAN_REJECTED="plan_rejected",A.COMPLETED="completed",A.FAILED="failed",A.CANCELLED="cancelled",A.RESULT_REJECTED="result_rejected",A))(vA||{});const ob=CA({type:Ee(["json","file","regex"]).describe("Extraction method"),source:L().describe("Source to extract from (file path or stdout/stderr)"),schema:CA({}).passthrough().optional().describe("JSON schema for validation"),pattern:L().optional().describe("Regex pattern for extraction")}),ib=CA({type:Ee(["issue_update","bulk_issue_update","notification","webhook"]).describe("Hook type"),config:fu().describe("Hook-specific configuration")});CA({command:L().optional().describe("Legacy — unused in SDK mode"),args:be(L()).optional().describe("Legacy — unused in SDK mode"),env:it(L(),L()).optional().describe("Environment variables"),workingDirectory:L().optional().describe("Working directory for command execution"),fileOperations:be(sb).optional().describe("File operations to perform during setup"),gitUrl:L().optional().describe("Git repository URL (populated from project)"),gitPrivateKey:L().optional().describe("Git SSH private key (populated from project)"),gitCommitMessage:L().optional().describe("Commit message for git operations"),resultExtraction:ob.optional().describe("Schema for extracting result data"),postExecutionHooks:be(ib).optional().describe("Hooks to run after task completion"),executionMode:Ee(["claudeAgentSdk","openaiAgentSdk","opencodeSdk","cursorSdk","codexSdk"]).optional().default("claudeAgentSdk").describe("Execution mode (default: claudeAgentSdk)"),executionPlan:wu("executionMode",[CA({executionMode:ke("claudeAgentSdk"),promptText:L(),sdkOptions:CA({model:L(),permissionMode:Ee(["plan","acceptEdits","bypassPermissions","ask"]),settingSources:be(L()),allowDangerouslySkipPermissions:UA(),persistSession:UA(),streamSdkEvents:UA().optional(),allowedTools:be(L()).optional(),settings:CA({enabledPlugins:it(L(),UA())}),env:it(L(),L()).optional()}),resume:CA({sessionId:L().optional(),continue:UA()}).optional()}),CA({executionMode:ke("opencodeSdk"),promptText:L(),sdkOptions:CA({provider:L(),model:L(),allowedTools:be(L()).optional(),env:it(L(),L()).optional()}),resume:CA({sessionId:L().optional(),continue:UA()}).optional()}),CA({executionMode:ke("openaiAgentSdk"),promptText:L(),sdkOptions:CA({model:L(),env:it(L(),L()).optional()}),resume:CA({sessionId:L().optional(),continue:UA()}).optional()}),CA({executionMode:ke("codexSdk"),promptText:L(),sdkOptions:CA({model:L().optional(),sandboxMode:Ee(["read-only","workspace-write","danger-full-access"]).optional(),approvalPolicy:Ee(["never","on-request","on-failure","untrusted"]).optional(),env:it(L(),L()).optional()}),resume:CA({sessionId:L().optional(),continue:UA()}).optional()}),CA({executionMode:ke("cursorSdk"),promptText:L(),sdkOptions:CA({model:L(),env:it(L(),L()).optional()}),resume:CA({sessionId:L().optional(),continue:UA()}).optional()})]).optional().describe("Backend-built prompt + resolved SDK options for this phase"),planEnabled:UA().optional().default(!1).describe("Enable planning phase (computed at runtime for agent)"),planContent:L().optional().describe("Final approved plan content"),planApproved:UA().optional().describe("Plan approval status"),planApprovedAt:L().optional().describe("ISO timestamp of approval"),planRejected:UA().optional().describe("Plan rejection flag"),planRejectionFeedback:L().optional().describe("User rejection feedback"),rejectedPlanContent:L().optional().describe("Previously rejected plan content"),planCompletedAt:L().optional().describe("ISO timestamp when plan was generated"),planRejectedAt:L().optional().describe("ISO timestamp when plan was rejected"),resultRejectionFeedback:L().optional().describe("User feedback when rejecting the result (most recent)"),resultRejectedAt:L().optional().describe("ISO timestamp when result was rejected (most recent)"),resultRejectionHistory:be(CA({feedback:L(),rejectedAt:L()})).optional().describe("All rejection messages in chronological order"),notificationChannelPlanMessageId:ot().optional(),notificationChannelPlanMessageSentAt:L().optional(),notificationChannelCompletedMessageId:ot().optional(),notificationChannelFailedMessageId:ot().optional(),streamSdkEvents:UA().optional().describe("Stream SDK messages (thinking, tool calls, etc.) as sdk_event chunks"),originalTaskSummary:L().optional().describe("Summary from the original task run (passed to retry for historical context)"),planWasApproved:UA().optional().describe("True when planApproved was cleared for rePlan=true retry — indicates the plan had been approved before"),planComments:be(CA({id:L(),selectedText:L(),startOffset:ot(),endOffset:ot(),commentText:L(),createdAt:L()})).optional().describe("Inline review comments attached to the plan"),hasAiConfigSecrets:UA().optional().describe("True when AI Config has secret-backed env vars; agent must fetch resolved values via /tasks/:id/resolve-secrets"),hasCredentials:UA().optional().describe("True when the task has credentials attached; agent must fetch resolved values via /tasks/:id/resolve-credentials"),mcpServersMode:Ee(["all","ignoreExistingMcpServers"]).optional().describe("MCP server strategy for this run; 'ignoreExistingMcpServers' overrides the existing .mcp.json with only the template's configured servers plus the agent-platform server"),enableBrowserTools:UA().optional().describe("When true, the MCP server registers browser_interact and browser_get_context (browser_automate tasks only)")}),vA.DRAFT+"",vA.CANCELLED,vA.PENDING+"",vA.CANCELLED,vA.ASSIGNED+"",vA.CANCELLED,vA.IN_PROGRESS+"",vA.CANCELLED,vA.FAILED,vA.WAITING_FOR_INPUT+"",vA.CANCELLED,vA.WAITING_FOR_PLAN_APPROVAL+"",vA.CANCELLED,vA.PLAN_APPROVED+"",vA.CANCELLED,vA.PLAN_REJECTED+"",vA.CANCELLED,vA.COMPLETED+"",vA.RESULT_REJECTED+"",vA.CANCELLED,vA.FAILED+"",vA.CANCELLED+"";const Uu="browser_capture",ab="browser_automate";function Eu(A){let e=(A||"").trim().toLowerCase();const t=e.indexOf("@");return t>=0&&(e=e.slice(t+1)),e=e.split("/")[0].split(":")[0],e.startsWith("www.")&&(e=e.slice(4)),e}function cb(A,e){const t=Eu(A),n=(e||"").trim().toLowerCase();if(!t||!n)return!1;if(n.startsWith("*.")){const r=n.slice(2);return t===r||t.endsWith("."+r)}return t===Eu(n)}function ku(A,e){var s;let t;try{const o=new URL(A);if(o.protocol!=="http:"&&o.protocol!=="https:")return null;t=o.hostname}catch(o){return null}let n=null,r=-1;for(const o of e)for(const a of(s=o.domains)!=null?s:[])cb(t,a)&&a.length>r&&(r=a.length,n=o.id);return n}class Fu extends Error{}function ta(A){return I(this,null,function*(){if(!A.ok){const e=yield A.json().catch(()=>({message:`HTTP ${A.status}`})),t=e.message||e.error||`HTTP ${A.status}`;throw A.status===401?new Fu(t):new Error(t)}return A.json()})}let vu=3e4;function lb(A){Number.isFinite(A)&&A>0&&(vu=A)}function Sr(n){return I(this,arguments,function*(A,e={},t=vu){const r=new AbortController,s=setTimeout(()=>r.abort(),t);try{return yield fetch(A,$(k({},e),{credentials:"omit",signal:r.signal}))}catch(o){throw o instanceof DOMException&&o.name==="AbortError"?new Error(`Request timed out after ${Math.round(t/1e3)}s. Please check your connection and try again.`):o}finally{clearTimeout(s)}})}function $A(A,e,t,n){return I(this,null,function*(){const s=`${A.backendUrl.replace(/\/+$/,"")}/api${t}`,o=yield Sr(s,{method:e,headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.token}`},body:n!==void 0?JSON.stringify(n):void 0});return ta(o)})}function ub(A,e,t){return I(this,null,function*(){const n=A.backendUrl.replace(/\/+$/,""),r=new FormData;r.append("file",e,t);const s=yield Sr(`${n}/api/files/upload`,{method:"POST",headers:{Authorization:`Bearer ${A.token}`},body:r});return ta(s)})}function db(A,e){return I(this,null,function*(){return $A(A,"GET",`/projects/by-key/${encodeURIComponent(e)}`)})}const pb=["project","note","ctx"];function hb(A){var t,n;const e=pb.filter(r=>A[r]===void 0||A[r]===null);if(e.length>0)throw new Error(`createTask: missing required field(s): ${e.join(", ")}`);if(!((t=A.project)!=null&&t.id)&&!((n=A.project)!=null&&n.key))throw new Error("createTask: project must have an id or key")}function na(A,e){return I(this,null,function*(){var h,f,g,m,b,U;hb(e);const{project:t,note:n,ctx:r,advancedOpts:s,titleOverride:o,titleInstruction:a,allowSubmit:i,extraFileIds:c,type:u=Uu}=e;return $A(A,"POST","/tasks",$(k(k(k(k(k(k(k(k(k(k(k(k(k(k(k($(k({type:u,title:o||n.slice(0,120)||r.pageTitle||"Browser capture",titleInstruction:a!=null?a:n},t.id?{projectId:t.id}:{projectKey:t.key}),{autoAssign:!0}),s!=null&&s.claudeTemplateId?{claudeTemplateId:s.claudeTemplateId}:{}),(s==null?void 0:s.quickMode)!==void 0?{quickMode:s.quickMode}:{}),(s==null?void 0:s.modelOverride)!=null?{modelOverride:s.modelOverride}:{}),(s==null?void 0:s.claudeProfileId)!=null?{claudeProfileId:s.claudeProfileId}:{}),(s==null?void 0:s.effort)!=null?{effort:s.effort}:{}),(s==null?void 0:s.executionMode)!=null?{executionMode:s.executionMode}:{}),(h=s==null?void 0:s.selectedPluginIds)!=null&&h.length?{selectedPluginIds:s.selectedPluginIds}:{}),(f=s==null?void 0:s.selectedSkillIds)!=null&&f.length?{selectedSkillIds:s.selectedSkillIds}:{}),(g=s==null?void 0:s.selectedPluginSkillIds)!=null&&g.length?{selectedPluginSkillIds:s.selectedPluginSkillIds}:{}),(m=s==null?void 0:s.selectedMcpServerIds)!=null&&m.length?{selectedMcpServerIds:s.selectedMcpServerIds}:{}),(b=s==null?void 0:s.selectedSlashCommandIds)!=null&&b.length?{selectedSlashCommandIds:s.selectedSlashCommandIds}:{}),(U=s==null?void 0:s.selectedRemoteContextProviderIds)!=null&&U.length?{selectedRemoteContextProviderIds:s.selectedRemoteContextProviderIds}:{}),s!=null&&s.instructionTemplateId?{instructionTemplateId:s.instructionTemplateId}:{}),s!=null&&s.templateParamValues?{templateParamValues:s.templateParamValues}:{}),s!=null&&s.defaultParamValues?{defaultParamValues:s.defaultParamValues}:{}),{metadata:k(k({type:u,note:n,source:"web-sdk",pageUrl:r.pageUrl,pageTitle:r.pageTitle,elementText:r.elementText,cssSelector:r.cssSelector,elementOuterHtml:r.elementOuterHtml,ancestry:r.ancestry,elementRole:r.elementRole,elementAriaLabel:r.elementAriaLabel,enclosingSection:r.enclosingSection,description:r.description,canonicalUrl:r.canonicalUrl,lang:r.lang,ogTitle:r.ogTitle,ogDescription:r.ogDescription,ogType:r.ogType,ogSiteName:r.ogSiteName,viewportWidth:r.viewportWidth,viewportHeight:r.viewportHeight,scrollX:r.scrollX,scrollY:r.scrollY,selectionText:r.selectionText,capturedAt:r.capturedAt,interactionSteps:r.interactionSteps},i!==void 0?{allowSubmit:i}:{}),c!=null&&c.length?{extraFileIds:c}:{})}))})}function _u(A,e){return I(this,null,function*(){return na(A,$(k({},e),{type:ab}))})}function xu(A,e,t,n,r){return I(this,null,function*(){var s;return $A(A,"POST","/planning-sessions",k(k(k(k(k($(k({},e.id?{projectId:e.id}:{projectKey:e.key}),{instruction:t,quickMode:(s=n==null?void 0:n.quickMode)!=null?s:!1}),n!=null&&n.claudeTemplateId?{claudeTemplateId:n.claudeTemplateId}:{}),n!=null&&n.instructionTemplateId?{instructionTemplateId:n.instructionTemplateId}:{}),n!=null&&n.templateParamValues?{templateParamValues:n.templateParamValues}:{}),n!=null&&n.defaultParamValues?{defaultParamValues:n.defaultParamValues}:{}),r!=null&&r.length?{fileIds:r}:{}))})}function fb(A,e){return I(this,null,function*(){const t=e?`?projectId=${encodeURIComponent(e)}`:"";return $A(A,"GET",`/claude-templates${t}`)})}function gb(A,e){return I(this,null,function*(){const t=e?`?projectId=${encodeURIComponent(e)}`:"";return $A(A,"GET",`/instruction-composer/context${t}`)})}function Bb(A,e){return I(this,null,function*(){return $A(A,"POST","/instruction-composer/preview",e)})}function Su(A,e){return I(this,null,function*(){return $A(A,"GET",`/tasks/${e}`)})}function wb(A,e){return I(this,null,function*(){return $A(A,"GET",`/planning-sessions/${e}`)})}function Iu(A){return I(this,null,function*(){return $A(A,"GET","/projects")})}function mb(A){return I(this,null,function*(){return(yield $A(A,"GET","/tenants/current")).membership})}function Tu(A,e){if(!A||A.includes("tenant:*")||A.includes(e))return!0;const t=e.split(":")[0];return A.includes(`${t}:*`)}function ra(A,e,t){return I(this,null,function*(){const r=`${A.backendUrl.replace(/\/+$/,"")}/api/auth/tokens/exchange-code`,s=yield Sr(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,origin:t})});return ta(s)})}function Cb(A,e){return I(this,null,function*(){return $A(A,"GET",`/tasks/${e}/browser-commands/pending`)})}function bb(A,e,t,n,r){return I(this,null,function*(){return $A(A,"POST",`/tasks/${e}/browser-commands/${t}/result`,{status:n,message:r})})}function Qb(A,e){return I(this,null,function*(){return $A(A,"GET",`/tasks/${e}/chunks`)})}function yb(A,e,t){return I(this,null,function*(){return $A(A,"POST",`/tasks/${e}/instructions`,{content:t})})}function Ub(A,e){return I(this,null,function*(){return $A(A,"POST",`/tasks/${e}/cancel`)})}function Eb(A,e){return I(this,null,function*(){return $A(A,"POST",`/tasks/${e}/approve-result`)})}function kb(A,e,t){return I(this,null,function*(){return $A(A,"POST",`/tasks/${e}/reject-result`,{feedback:t})})}function Ys(A,e){return I(this,null,function*(){return $A(A,"GET",`/tasks/${e}/interactions?filter=unanswered`)})}function Hu(A,e,t,n){return I(this,null,function*(){return $A(A,"POST",`/tasks/${e}/interactions/${t}/answer`,{answer:n})})}function Fb(A,e,t){const n=!!(e.backendUrl&&e.token),r=document.createElement("div");r.className="ap-sdk-advanced",r.innerHTML=`
1625
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of A.seen.entries()){const h=u[1];if(e===u[0]){s(u);continue}if(A.external){const g=(i=A.external.registry.get(u[0]))==null?void 0:i.id;if(e!==u[0]&&g){s(u);continue}}if((c=A.metadataRegistry.get(u[0]))==null?void 0:c.id){s(u);continue}if(h.cycle){s(u);continue}if(h.count>1&&A.reused==="ref"){s(u);continue}}}function pu(A,e){var o,a,i,c,u;const t=A.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const n=h=>{var k,v,y;const f=A.seen.get(h);if(f.ref===null)return;const g=(k=f.def)!=null?k:f.schema,m=F({},g),b=f.ref;if(f.ref=null,b){n(b);const U=A.seen.get(b),x=U.schema;if(x.$ref&&(A.target==="draft-07"||A.target==="draft-04"||A.target==="openapi-3.0")?(g.allOf=(v=g.allOf)!=null?v:[],g.allOf.push(x)):Object.assign(g,x),Object.assign(g,m),h._zod.parent===b)for(const H in g)H==="$ref"||H==="allOf"||H in m||delete g[H];if(x.$ref)for(const H in g)H==="$ref"||H==="allOf"||H in U.def&&JSON.stringify(g[H])===JSON.stringify(U.def[H])&&delete g[H]}const E=h._zod.parent;if(E&&E!==b){n(E);const U=A.seen.get(E);if(U!=null&&U.schema.$ref&&(g.$ref=U.schema.$ref,U.def))for(const x in g)x==="$ref"||x==="allOf"||x in U.def&&JSON.stringify(g[x])===JSON.stringify(U.def[x])&&delete g[x]}A.override({zodSchema:h,jsonSchema:g,path:(y=f.path)!=null?y:[]})};for(const h of[...A.seen.entries()].reverse())n(h[0]);const r={};if(A.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":A.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":A.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":A.target,(o=A.external)!=null&&o.uri){const h=(a=A.external.registry.get(e))==null?void 0:a.id;if(!h)throw new Error("Schema is missing an `id` property");r.$id=A.external.uri(h)}Object.assign(r,(i=t.def)!=null?i:t.schema);const s=(u=(c=A.external)==null?void 0:c.defs)!=null?u:{};for(const h of A.seen.entries()){const f=h[1];f.def&&f.defId&&(s[f.defId]=f.def)}A.external||Object.keys(s).length>0&&(A.target==="draft-2020-12"?r.$defs=s:r.definitions=s);try{const h=JSON.parse(JSON.stringify(r));return Object.defineProperty(h,"~standard",{value:z(F({},e["~standard"]),{jsonSchema:{input:Ys(e,"input",A.processors),output:Ys(e,"output",A.processors)}}),enumerable:!1,writable:!1}),h}catch(h){throw new Error("Error converting schema to JSON.")}}function ae(A,e){const t=e!=null?e:{seen:new Set};if(t.seen.has(A))return!1;t.seen.add(A);const n=A._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ae(n.element,t);if(n.type==="set")return ae(n.valueType,t);if(n.type==="lazy")return ae(n.getter(),t);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ae(n.innerType,t);if(n.type==="intersection")return ae(n.left,t)||ae(n.right,t);if(n.type==="record"||n.type==="map")return ae(n.keyType,t)||ae(n.valueType,t);if(n.type==="pipe")return ae(n.in,t)||ae(n.out,t);if(n.type==="object"){for(const r in n.shape)if(ae(n.shape[r],t))return!0;return!1}if(n.type==="union"){for(const r of n.options)if(ae(r,t))return!0;return!1}if(n.type==="tuple"){for(const r of n.items)if(ae(r,t))return!0;return!!(n.rest&&ae(n.rest,t))}return!1}const ym=(A,e={})=>t=>{const n=uu(z(F({},t),{processors:e}));return PA(A,n),du(n,A),pu(n,A)},Ys=(A,e,t={})=>n=>{const{libraryOptions:r,target:s}=n!=null?n:{},o=uu(z(F({},r!=null?r:{}),{target:s,io:e,processors:t}));return PA(A,o),du(o,A),pu(o,A)},Um={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Em=(A,e,t,n)=>{var u;const r=t;r.type="string";const{minimum:s,maximum:o,format:a,patterns:i,contentEncoding:c}=A._zod.bag;if(typeof s=="number"&&(r.minLength=s),typeof o=="number"&&(r.maxLength=o),a&&(r.format=(u=Um[a])!=null?u:a,r.format===""&&delete r.format,a==="time"&&delete r.format),c&&(r.contentEncoding=c),i&&i.size>0){const h=[...i];h.length===1?r.pattern=h[0].source:h.length>1&&(r.allOf=[...h.map(f=>z(F({},e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{}),{pattern:f.source}))])}},km=(A,e,t,n)=>{const r=t,{minimum:s,maximum:o,format:a,multipleOf:i,exclusiveMaximum:c,exclusiveMinimum:u}=A._zod.bag;typeof a=="string"&&a.includes("int")?r.type="integer":r.type="number",typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u),typeof s=="number"&&(r.minimum=s,typeof u=="number"&&e.target!=="draft-04"&&(u>=s?delete r.minimum:delete r.exclusiveMinimum)),typeof c=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c),typeof o=="number"&&(r.maximum=o,typeof c=="number"&&e.target!=="draft-04"&&(c<=o?delete r.maximum:delete r.exclusiveMaximum)),typeof i=="number"&&(r.multipleOf=i)},Fm=(A,e,t,n)=>{t.type="boolean"},vm=(A,e,t,n)=>{t.not={}},_m=(A,e,t,n)=>{},xm=(A,e,t,n)=>{},Sm=(A,e,t,n)=>{const r=A._zod.def,s=vl(r.entries);s.every(o=>typeof o=="number")&&(t.type="number"),s.every(o=>typeof o=="string")&&(t.type="string"),t.enum=s},Im=(A,e,t,n)=>{const r=A._zod.def,s=[];for(const o of r.values)if(o===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(o))}else s.push(o);if(s.length!==0)if(s.length===1){const o=s[0];t.type=o===null?"null":typeof o,e.target==="draft-04"||e.target==="openapi-3.0"?t.enum=[o]:t.const=o}else s.every(o=>typeof o=="number")&&(t.type="number"),s.every(o=>typeof o=="string")&&(t.type="string"),s.every(o=>typeof o=="boolean")&&(t.type="boolean"),s.every(o=>o===null)&&(t.type="null"),t.enum=s},Tm=(A,e,t,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Hm=(A,e,t,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Lm=(A,e,t,n)=>{const r=t,s=A._zod.def,{minimum:o,maximum:a}=A._zod.bag;typeof o=="number"&&(r.minItems=o),typeof a=="number"&&(r.maxItems=a),r.type="array",r.items=PA(s.element,e,z(F({},n),{path:[...n.path,"items"]}))},Rm=(A,e,t,n)=>{var c;const r=t,s=A._zod.def;r.type="object",r.properties={};const o=s.shape;for(const u in o)r.properties[u]=PA(o[u],e,z(F({},n),{path:[...n.path,"properties",u]}));const a=new Set(Object.keys(o)),i=new Set([...a].filter(u=>{const h=s.shape[u]._zod;return e.io==="input"?h.optin===void 0:h.optout===void 0}));i.size>0&&(r.required=Array.from(i)),((c=s.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:s.catchall?s.catchall&&(r.additionalProperties=PA(s.catchall,e,z(F({},n),{path:[...n.path,"additionalProperties"]}))):e.io==="output"&&(r.additionalProperties=!1)},Dm=(A,e,t,n)=>{const r=A._zod.def,s=r.inclusive===!1,o=r.options.map((a,i)=>PA(a,e,z(F({},n),{path:[...n.path,s?"oneOf":"anyOf",i]})));s?t.oneOf=o:t.anyOf=o},Om=(A,e,t,n)=>{const r=A._zod.def,s=PA(r.left,e,z(F({},n),{path:[...n.path,"allOf",0]})),o=PA(r.right,e,z(F({},n),{path:[...n.path,"allOf",1]})),a=c=>"allOf"in c&&Object.keys(c).length===1,i=[...a(s)?s.allOf:[s],...a(o)?o.allOf:[o]];t.allOf=i},Pm=(A,e,t,n)=>{const r=t,s=A._zod.def;r.type="object";const o=s.keyType,a=o._zod.bag,i=a==null?void 0:a.patterns;if(s.mode==="loose"&&i&&i.size>0){const u=PA(s.valueType,e,z(F({},n),{path:[...n.path,"patternProperties","*"]}));r.patternProperties={};for(const h of i)r.patternProperties[h.source]=u}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(r.propertyNames=PA(s.keyType,e,z(F({},n),{path:[...n.path,"propertyNames"]}))),r.additionalProperties=PA(s.valueType,e,z(F({},n),{path:[...n.path,"additionalProperties"]}));const c=o._zod.values;if(c){const u=[...c].filter(h=>typeof h=="string"||typeof h=="number");u.length>0&&(r.required=u)}},Mm=(A,e,t,n)=>{const r=A._zod.def,s=PA(r.innerType,e,n),o=e.seen.get(A);e.target==="openapi-3.0"?(o.ref=r.innerType,t.nullable=!0):t.anyOf=[s,{type:"null"}]},Nm=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType},Km=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,t.default=JSON.parse(JSON.stringify(r.defaultValue))},$m=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,e.io==="input"&&(t._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},zm=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType;let o;try{o=r.catchValue(void 0)}catch(a){throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=o},Vm=(A,e,t,n)=>{const r=A._zod.def,s=e.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;PA(s,e,n);const o=e.seen.get(A);o.ref=s},Gm=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType,t.readOnly=!0},hu=(A,e,t,n)=>{const r=A._zod.def;PA(r.innerType,e,n);const s=e.seen.get(A);s.ref=r.innerType},Zm=_("ZodISODateTime",(A,e)=>{VB.init(A,e),kA.init(A,e)});function Xm(A){return Yw(Zm,A)}const Wm=_("ZodISODate",(A,e)=>{GB.init(A,e),kA.init(A,e)});function Jm(A){return qw(Wm,A)}const jm=_("ZodISOTime",(A,e)=>{ZB.init(A,e),kA.init(A,e)});function Ym(A){return Am(jm,A)}const qm=_("ZodISODuration",(A,e)=>{XB.init(A,e),kA.init(A,e)});function AC(A){return em(qm,A)}const Ee=_("ZodError",(A,e)=>{Hl.init(A,e),A.name="ZodError",Object.defineProperties(A,{format:{value:t=>Og(A,t)},flatten:{value:t=>Dg(A,t)},addIssue:{value:t=>{A.issues.push(t),A.message=JSON.stringify(A.issues,Zi,2)}},addIssues:{value:t=>{A.issues.push(...t),A.message=JSON.stringify(A.issues,Zi,2)}},isEmpty:{get(){return A.issues.length===0}}})},{Parent:Error}),eC=ji(Ee),tC=Yi(Ee),nC=Gs(Ee),rC=Zs(Ee),sC=Ng(Ee),oC=Kg(Ee),iC=$g(Ee),aC=zg(Ee),cC=Vg(Ee),lC=Gg(Ee),uC=Zg(Ee),dC=Xg(Ee),QA=_("ZodType",(A,e)=>(CA.init(A,e),Object.assign(A["~standard"],{jsonSchema:{input:Ys(A,"input"),output:Ys(A,"output")}}),A.toJSONSchema=ym(A,{}),A.def=e,A.type=e.type,Object.defineProperty(A,"_def",{value:e}),A.check=(...t)=>{var n;return A.clone(Pt(e,{checks:[...(n=e.checks)!=null?n:[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},A.with=A.check,A.clone=(t,n)=>Mt(A,t,n),A.brand=()=>A,A.register=((t,n)=>(t.add(A,n),A)),A.parse=(t,n)=>eC(A,t,n,{callee:A.parse}),A.safeParse=(t,n)=>nC(A,t,n),A.parseAsync=(t,n)=>I(null,null,function*(){return tC(A,t,n,{callee:A.parseAsync})}),A.safeParseAsync=(t,n)=>I(null,null,function*(){return rC(A,t,n)}),A.spa=A.safeParseAsync,A.encode=(t,n)=>sC(A,t,n),A.decode=(t,n)=>oC(A,t,n),A.encodeAsync=(t,n)=>I(null,null,function*(){return iC(A,t,n)}),A.decodeAsync=(t,n)=>I(null,null,function*(){return aC(A,t,n)}),A.safeEncode=(t,n)=>cC(A,t,n),A.safeDecode=(t,n)=>lC(A,t,n),A.safeEncodeAsync=(t,n)=>I(null,null,function*(){return uC(A,t,n)}),A.safeDecodeAsync=(t,n)=>I(null,null,function*(){return dC(A,t,n)}),A.refine=(t,n)=>A.check(ib(t,n)),A.superRefine=t=>A.check(ab(t)),A.overwrite=t=>A.check(Zn(t)),A.optional=()=>Uu(A),A.exactOptional=()=>XC(A),A.nullable=()=>Eu(A),A.nullish=()=>Uu(Eu(A)),A.nonoptional=t=>Ab(A,t),A.array=()=>Qe(A),A.or=t=>PC([A,t]),A.and=t=>KC(A,t),A.transform=t=>Fu(A,GC(t)),A.default=t=>jC(A,t),A.prefault=t=>qC(A,t),A.catch=t=>tb(A,t),A.pipe=t=>Fu(A,t),A.readonly=()=>sb(A),A.describe=t=>{const n=A.clone();return Sr.add(n,{description:t}),n},Object.defineProperty(A,"description",{get(){var t;return(t=Sr.get(A))==null?void 0:t.description},configurable:!0}),A.meta=(...t)=>{if(t.length===0)return Sr.get(A);const n=A.clone();return Sr.add(n,t[0]),n},A.isOptional=()=>A.safeParse(void 0).success,A.isNullable=()=>A.safeParse(null).success,A.apply=t=>t(A),A)),fu=_("_ZodString",(A,e)=>{var n,r,s;qi.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(o,a,i)=>Em(A,o,a);const t=A._zod.bag;A.format=(n=t.format)!=null?n:null,A.minLength=(r=t.minimum)!=null?r:null,A.maxLength=(s=t.maximum)!=null?s:null,A.regex=(...o)=>A.check(am(...o)),A.includes=(...o)=>A.check(um(...o)),A.startsWith=(...o)=>A.check(dm(...o)),A.endsWith=(...o)=>A.check(pm(...o)),A.min=(...o)=>A.check(js(...o)),A.max=(...o)=>A.check(cu(...o)),A.length=(...o)=>A.check(lu(...o)),A.nonempty=(...o)=>A.check(js(1,...o)),A.lowercase=o=>A.check(cm(o)),A.uppercase=o=>A.check(lm(o)),A.trim=()=>A.check(fm()),A.normalize=(...o)=>A.check(hm(...o)),A.toLowerCase=()=>A.check(gm()),A.toUpperCase=()=>A.check(Bm()),A.slugify=()=>A.check(wm())}),pC=_("ZodString",(A,e)=>{qi.init(A,e),fu.init(A,e),A.email=t=>A.check(Sw(hC,t)),A.url=t=>A.check(Rw(fC,t)),A.jwt=t=>A.check(jw(xC,t)),A.emoji=t=>A.check(Dw(gC,t)),A.guid=t=>A.check(su(gu,t)),A.uuid=t=>A.check(Iw(qs,t)),A.uuidv4=t=>A.check(Tw(qs,t)),A.uuidv6=t=>A.check(Hw(qs,t)),A.uuidv7=t=>A.check(Lw(qs,t)),A.nanoid=t=>A.check(Ow(BC,t)),A.guid=t=>A.check(su(gu,t)),A.cuid=t=>A.check(Pw(wC,t)),A.cuid2=t=>A.check(Mw(mC,t)),A.ulid=t=>A.check(Nw(CC,t)),A.base64=t=>A.check(Xw(FC,t)),A.base64url=t=>A.check(Ww(vC,t)),A.xid=t=>A.check(Kw(bC,t)),A.ksuid=t=>A.check($w(QC,t)),A.ipv4=t=>A.check(zw(yC,t)),A.ipv6=t=>A.check(Vw(UC,t)),A.cidrv4=t=>A.check(Gw(EC,t)),A.cidrv6=t=>A.check(Zw(kC,t)),A.e164=t=>A.check(Jw(_C,t)),A.datetime=t=>A.check(Xm(t)),A.date=t=>A.check(Jm(t)),A.time=t=>A.check(Ym(t)),A.duration=t=>A.check(AC(t))});function L(A){return xw(pC,A)}const kA=_("ZodStringFormat",(A,e)=>{bA.init(A,e),fu.init(A,e)}),hC=_("ZodEmail",(A,e)=>{RB.init(A,e),kA.init(A,e)}),gu=_("ZodGUID",(A,e)=>{HB.init(A,e),kA.init(A,e)}),qs=_("ZodUUID",(A,e)=>{LB.init(A,e),kA.init(A,e)}),fC=_("ZodURL",(A,e)=>{DB.init(A,e),kA.init(A,e)}),gC=_("ZodEmoji",(A,e)=>{OB.init(A,e),kA.init(A,e)}),BC=_("ZodNanoID",(A,e)=>{PB.init(A,e),kA.init(A,e)}),wC=_("ZodCUID",(A,e)=>{MB.init(A,e),kA.init(A,e)}),mC=_("ZodCUID2",(A,e)=>{NB.init(A,e),kA.init(A,e)}),CC=_("ZodULID",(A,e)=>{KB.init(A,e),kA.init(A,e)}),bC=_("ZodXID",(A,e)=>{$B.init(A,e),kA.init(A,e)}),QC=_("ZodKSUID",(A,e)=>{zB.init(A,e),kA.init(A,e)}),yC=_("ZodIPv4",(A,e)=>{WB.init(A,e),kA.init(A,e)}),UC=_("ZodIPv6",(A,e)=>{JB.init(A,e),kA.init(A,e)}),EC=_("ZodCIDRv4",(A,e)=>{jB.init(A,e),kA.init(A,e)}),kC=_("ZodCIDRv6",(A,e)=>{YB.init(A,e),kA.init(A,e)}),FC=_("ZodBase64",(A,e)=>{qB.init(A,e),kA.init(A,e)}),vC=_("ZodBase64URL",(A,e)=>{ew.init(A,e),kA.init(A,e)}),_C=_("ZodE164",(A,e)=>{tw.init(A,e),kA.init(A,e)}),xC=_("ZodJWT",(A,e)=>{rw.init(A,e),kA.init(A,e)}),Bu=_("ZodNumber",(A,e)=>{var n,r,s,o,a,i,c,u,h;Vl.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(f,g,m)=>km(A,f,g),A.gt=(f,g)=>A.check(iu(f,g)),A.gte=(f,g)=>A.check(ta(f,g)),A.min=(f,g)=>A.check(ta(f,g)),A.lt=(f,g)=>A.check(ou(f,g)),A.lte=(f,g)=>A.check(ea(f,g)),A.max=(f,g)=>A.check(ea(f,g)),A.int=f=>A.check(wu(f)),A.safe=f=>A.check(wu(f)),A.positive=f=>A.check(iu(0,f)),A.nonnegative=f=>A.check(ta(0,f)),A.negative=f=>A.check(ou(0,f)),A.nonpositive=f=>A.check(ea(0,f)),A.multipleOf=(f,g)=>A.check(au(f,g)),A.step=(f,g)=>A.check(au(f,g)),A.finite=()=>A;const t=A._zod.bag;A.minValue=(s=Math.max((n=t.minimum)!=null?n:Number.NEGATIVE_INFINITY,(r=t.exclusiveMinimum)!=null?r:Number.NEGATIVE_INFINITY))!=null?s:null,A.maxValue=(i=Math.min((o=t.maximum)!=null?o:Number.POSITIVE_INFINITY,(a=t.exclusiveMaximum)!=null?a:Number.POSITIVE_INFINITY))!=null?i:null,A.isInt=((c=t.format)!=null?c:"").includes("int")||Number.isSafeInteger((u=t.multipleOf)!=null?u:.5),A.isFinite=!0,A.format=(h=t.format)!=null?h:null});function at(A){return tm(Bu,A)}const SC=_("ZodNumberFormat",(A,e)=>{sw.init(A,e),Bu.init(A,e)});function wu(A){return nm(SC,A)}const IC=_("ZodBoolean",(A,e)=>{ow.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Fm(A,t,n)});function yA(A){return rm(IC,A)}const TC=_("ZodAny",(A,e)=>{iw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>_m()});function mu(){return sm(TC)}const HC=_("ZodUnknown",(A,e)=>{aw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>xm()});function Cu(){return om(HC)}const LC=_("ZodNever",(A,e)=>{cw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>vm(A,t,n)});function RC(A){return im(LC,A)}const DC=_("ZodArray",(A,e)=>{lw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Lm(A,t,n,r),A.element=e.element,A.min=(t,n)=>A.check(js(t,n)),A.nonempty=t=>A.check(js(1,t)),A.max=(t,n)=>A.check(cu(t,n)),A.length=(t,n)=>A.check(lu(t,n)),A.unwrap=()=>A.element});function Qe(A,e){return mm(DC,A,e)}const OC=_("ZodObject",(A,e)=>{dw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Rm(A,t,n,r),iA(A,"shape",()=>e.shape),A.keyof=()=>ke(Object.keys(A._zod.def.shape)),A.catchall=t=>A.clone(z(F({},A._zod.def),{catchall:t})),A.passthrough=()=>A.clone(z(F({},A._zod.def),{catchall:Cu()})),A.loose=()=>A.clone(z(F({},A._zod.def),{catchall:Cu()})),A.strict=()=>A.clone(z(F({},A._zod.def),{catchall:RC()})),A.strip=()=>A.clone(z(F({},A._zod.def),{catchall:void 0})),A.extend=t=>Ig(A,t),A.safeExtend=t=>Tg(A,t),A.merge=t=>Hg(A,t),A.pick=t=>xg(A,t),A.omit=t=>Sg(A,t),A.partial=(...t)=>Lg(yu,A,t[0]),A.required=(...t)=>Rg(ku,A,t[0])});function mA(A,e){const t=F({type:"object",shape:A!=null?A:{}},V(e));return new OC(t)}const bu=_("ZodUnion",(A,e)=>{Jl.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Dm(A,t,n,r),A.options=e.options});function PC(A,e){return new bu(F({type:"union",options:A},V(e)))}const MC=_("ZodDiscriminatedUnion",(A,e)=>{bu.init(A,e),pw.init(A,e)});function Qu(A,e,t){return new MC(F({type:"union",options:e,discriminator:A},V(t)))}const NC=_("ZodIntersection",(A,e)=>{hw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Om(A,t,n,r)});function KC(A,e){return new NC({type:"intersection",left:A,right:e})}const $C=_("ZodRecord",(A,e)=>{fw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Pm(A,t,n,r),A.keyType=e.keyType,A.valueType=e.valueType});function ct(A,e,t){return new $C(F({type:"record",keyType:A,valueType:e},V(t)))}const na=_("ZodEnum",(A,e)=>{gw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(n,r,s)=>Sm(A,n,r),A.enum=e.entries,A.options=Object.values(e.entries);const t=new Set(Object.keys(e.entries));A.extract=(n,r)=>{const s={};for(const o of n)if(t.has(o))s[o]=e.entries[o];else throw new Error(`Key ${o} not found in enum`);return new na(z(F(z(F({},e),{checks:[]}),V(r)),{entries:s}))},A.exclude=(n,r)=>{const s=F({},e.entries);for(const o of n)if(t.has(o))delete s[o];else throw new Error(`Key ${o} not found in enum`);return new na(z(F(z(F({},e),{checks:[]}),V(r)),{entries:s}))}});function ke(A,e){const t=Array.isArray(A)?Object.fromEntries(A.map(n=>[n,n])):A;return new na(F({type:"enum",entries:t},V(e)))}const zC=_("ZodLiteral",(A,e)=>{Bw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Im(A,t,n),A.values=new Set(e.values),Object.defineProperty(A,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function Fe(A,e){return new zC(F({type:"literal",values:Array.isArray(A)?A:[A]},V(e)))}const VC=_("ZodTransform",(A,e)=>{ww.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Hm(A,t),A._zod.parse=(t,n)=>{if(n.direction==="backward")throw new kl(A.constructor.name);t.addIssue=s=>{var o,a,i;if(typeof s=="string")t.issues.push(xr(s,t.value,e));else{const c=s;c.fatal&&(c.continue=!1),(o=c.code)!=null||(c.code="custom"),(a=c.input)!=null||(c.input=t.value),(i=c.inst)!=null||(c.inst=A),t.issues.push(xr(c))}};const r=e.transform(t.value,t);return r instanceof Promise?r.then(s=>(t.value=s,t)):(t.value=r,t)}});function GC(A){return new VC({type:"transform",transform:A})}const yu=_("ZodOptional",(A,e)=>{ql.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>hu(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function Uu(A){return new yu({type:"optional",innerType:A})}const ZC=_("ZodExactOptional",(A,e)=>{mw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>hu(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function XC(A){return new ZC({type:"optional",innerType:A})}const WC=_("ZodNullable",(A,e)=>{Cw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Mm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function Eu(A){return new WC({type:"nullable",innerType:A})}const JC=_("ZodDefault",(A,e)=>{bw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Km(A,t,n,r),A.unwrap=()=>A._zod.def.innerType,A.removeDefault=A.unwrap});function jC(A,e){return new JC({type:"default",innerType:A,get defaultValue(){return typeof e=="function"?e():Il(e)}})}const YC=_("ZodPrefault",(A,e)=>{Qw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>$m(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function qC(A,e){return new YC({type:"prefault",innerType:A,get defaultValue(){return typeof e=="function"?e():Il(e)}})}const ku=_("ZodNonOptional",(A,e)=>{yw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Nm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function Ab(A,e){return new ku(F({type:"nonoptional",innerType:A},V(e)))}const eb=_("ZodCatch",(A,e)=>{Uw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>zm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType,A.removeCatch=A.unwrap});function tb(A,e){return new eb({type:"catch",innerType:A,catchValue:typeof e=="function"?e:()=>e})}const nb=_("ZodPipe",(A,e)=>{Ew.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Vm(A,t,n,r),A.in=e.in,A.out=e.out});function Fu(A,e){return new nb({type:"pipe",in:A,out:e})}const rb=_("ZodReadonly",(A,e)=>{kw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Gm(A,t,n,r),A.unwrap=()=>A._zod.def.innerType});function sb(A){return new rb({type:"readonly",innerType:A})}const ob=_("ZodCustom",(A,e)=>{Fw.init(A,e),QA.init(A,e),A._zod.processJSONSchema=(t,n,r)=>Tm(A,t)});function ib(A,e={}){return Cm(ob,A,e)}function ab(A){return bm(A)}const cb=mA({name:L().min(1).max(100).optional(),command:L().min(1).max(500),args:Qe(L()).optional(),failOnError:yA().default(!0).optional(),timeout:at().int().min(1e3).max(3e5).default(3e4).optional(),workingDirectory:L().optional(),env:ct(L(),L()).optional(),runOnBackground:yA().optional(),agentTags:Qe(L()).optional()});mA({name:L(),command:L(),success:yA(),exitCode:at().optional(),stdout:L().optional(),stderr:L().optional(),error:L().optional(),duration:at(),failOnError:yA()});const sn=mA({path:L(),extraCommands:Qe(cb).optional(),id:L().uuid().optional(),rotationKey:L().optional(),usageStatus:ke(["free","in_use"]).optional(),agentTags:Qe(L()).optional()}),lb=Qu("operation",[sn.extend({operation:Fe("create"),content:L().optional(),contentPath:L().optional(),encoding:ke(["utf-8","base64"]).optional()}),sn.extend({operation:Fe("merge"),data:ct(L(),mu()),mergeStrategy:ke(["deep","shallow"]).optional(),arrayMergeStrategy:ke(["concat","replace"]).optional()}),sn.extend({operation:Fe("modify"),content:L().optional(),contentPath:L().optional(),createIfMissing:yA().optional()}),sn.extend({operation:Fe("delete"),ignoreIfMissing:yA().optional()}),sn.extend({operation:Fe("createDirectory"),contentPath:L().optional(),mode:at().optional(),ignoreIfExists:yA().optional()}),sn.extend({operation:Fe("download"),url:L().url(),headers:ct(L(),L()).optional(),timeout:at().min(1e3).max(3e5).optional()}),sn.extend({operation:Fe("gitClone"),gitUrl:L(),gitSecretKey:L().optional(),sourceBranch:L().optional(),targetBranch:L().optional(),originalBranch:L().optional(),defaultBranch:L().optional()})]);var FA=(A=>(A.DRAFT="draft",A.PENDING="pending",A.ASSIGNED="assigned",A.IN_PROGRESS="in_progress",A.WAITING_FOR_INPUT="waiting_for_input",A.WAITING_FOR_PLAN_APPROVAL="waiting_for_plan_approval",A.PLAN_APPROVED="plan_approved",A.PLAN_REJECTED="plan_rejected",A.COMPLETED="completed",A.FAILED="failed",A.CANCELLED="cancelled",A.RESULT_REJECTED="result_rejected",A))(FA||{});const ub=mA({type:ke(["json","file","regex"]).describe("Extraction method"),source:L().describe("Source to extract from (file path or stdout/stderr)"),schema:mA({}).passthrough().optional().describe("JSON schema for validation"),pattern:L().optional().describe("Regex pattern for extraction")}),db=mA({type:ke(["issue_update","bulk_issue_update","notification","webhook"]).describe("Hook type"),config:mu().describe("Hook-specific configuration")});mA({command:L().optional().describe("Legacy — unused in SDK mode"),args:Qe(L()).optional().describe("Legacy — unused in SDK mode"),env:ct(L(),L()).optional().describe("Environment variables"),workingDirectory:L().optional().describe("Working directory for command execution"),fileOperations:Qe(lb).optional().describe("File operations to perform during setup"),gitUrl:L().optional().describe("Git repository URL (populated from project)"),gitPrivateKey:L().optional().describe("Git SSH private key (populated from project)"),gitCommitMessage:L().optional().describe("Commit message for git operations"),resultExtraction:ub.optional().describe("Schema for extracting result data"),postExecutionHooks:Qe(db).optional().describe("Hooks to run after task completion"),executionMode:ke(["claudeAgentSdk","openaiAgentSdk","opencodeSdk","cursorSdk","codexSdk"]).optional().default("claudeAgentSdk").describe("Execution mode (default: claudeAgentSdk)"),executionPlan:Qu("executionMode",[mA({executionMode:Fe("claudeAgentSdk"),promptText:L(),sdkOptions:mA({model:L(),permissionMode:ke(["plan","acceptEdits","bypassPermissions","ask"]),settingSources:Qe(L()),allowDangerouslySkipPermissions:yA(),persistSession:yA(),streamSdkEvents:yA().optional(),allowedTools:Qe(L()).optional(),settings:mA({enabledPlugins:ct(L(),yA())}),env:ct(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:yA()}).optional()}),mA({executionMode:Fe("opencodeSdk"),promptText:L(),sdkOptions:mA({provider:L(),model:L(),allowedTools:Qe(L()).optional(),env:ct(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:yA()}).optional()}),mA({executionMode:Fe("openaiAgentSdk"),promptText:L(),sdkOptions:mA({model:L(),env:ct(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:yA()}).optional()}),mA({executionMode:Fe("codexSdk"),promptText:L(),sdkOptions:mA({model:L().optional(),sandboxMode:ke(["read-only","workspace-write","danger-full-access"]).optional(),approvalPolicy:ke(["never","on-request","on-failure","untrusted"]).optional(),env:ct(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:yA()}).optional()}),mA({executionMode:Fe("cursorSdk"),promptText:L(),sdkOptions:mA({model:L(),env:ct(L(),L()).optional()}),resume:mA({sessionId:L().optional(),continue:yA()}).optional()})]).optional().describe("Backend-built prompt + resolved SDK options for this phase"),planEnabled:yA().optional().default(!1).describe("Enable planning phase (computed at runtime for agent)"),planContent:L().optional().describe("Final approved plan content"),planApproved:yA().optional().describe("Plan approval status"),planApprovedAt:L().optional().describe("ISO timestamp of approval"),planRejected:yA().optional().describe("Plan rejection flag"),planRejectionFeedback:L().optional().describe("User rejection feedback"),rejectedPlanContent:L().optional().describe("Previously rejected plan content"),planCompletedAt:L().optional().describe("ISO timestamp when plan was generated"),planRejectedAt:L().optional().describe("ISO timestamp when plan was rejected"),resultRejectionFeedback:L().optional().describe("User feedback when rejecting the result (most recent)"),resultRejectedAt:L().optional().describe("ISO timestamp when result was rejected (most recent)"),resultRejectionHistory:Qe(mA({feedback:L(),rejectedAt:L()})).optional().describe("All rejection messages in chronological order"),notificationChannelPlanMessageId:at().optional(),notificationChannelPlanMessageSentAt:L().optional(),notificationChannelCompletedMessageId:at().optional(),notificationChannelFailedMessageId:at().optional(),streamSdkEvents:yA().optional().describe("Stream SDK messages (thinking, tool calls, etc.) as sdk_event chunks"),originalTaskSummary:L().optional().describe("Summary from the original task run (passed to retry for historical context)"),planWasApproved:yA().optional().describe("True when planApproved was cleared for rePlan=true retry — indicates the plan had been approved before"),planComments:Qe(mA({id:L(),selectedText:L(),startOffset:at(),endOffset:at(),commentText:L(),createdAt:L()})).optional().describe("Inline review comments attached to the plan"),hasAiConfigSecrets:yA().optional().describe("True when AI Config has secret-backed env vars; agent must fetch resolved values via /tasks/:id/resolve-secrets"),hasCredentials:yA().optional().describe("True when the task has credentials attached; agent must fetch resolved values via /tasks/:id/resolve-credentials"),mcpServersMode:ke(["all","ignoreExistingMcpServers"]).optional().describe("MCP server strategy for this run; 'ignoreExistingMcpServers' overrides the existing .mcp.json with only the template's configured servers plus the agent-platform server"),enableBrowserTools:yA().optional().describe("When true, the MCP server registers browser_interact and browser_get_context (browser_automate tasks only)")}),FA.DRAFT+"",FA.CANCELLED,FA.PENDING+"",FA.CANCELLED,FA.ASSIGNED+"",FA.CANCELLED,FA.IN_PROGRESS+"",FA.CANCELLED,FA.FAILED,FA.WAITING_FOR_INPUT+"",FA.CANCELLED,FA.WAITING_FOR_PLAN_APPROVAL+"",FA.CANCELLED,FA.PLAN_APPROVED+"",FA.CANCELLED,FA.PLAN_REJECTED+"",FA.CANCELLED,FA.COMPLETED+"",FA.RESULT_REJECTED+"",FA.CANCELLED,FA.FAILED+"",FA.CANCELLED+"";function vu(A){let e=(A||"").trim().toLowerCase();const t=e.indexOf("@");return t>=0&&(e=e.slice(t+1)),e=e.split("/")[0].split(":")[0],e.startsWith("www.")&&(e=e.slice(4)),e}function pb(A,e){const t=vu(A),n=(e||"").trim().toLowerCase();if(!t||!n)return!1;if(n.startsWith("*.")){const r=n.slice(2);return t===r||t.endsWith("."+r)}return t===vu(n)}function _u(A,e){var s;let t;try{const o=new URL(A);if(o.protocol!=="http:"&&o.protocol!=="https:")return null;t=o.hostname}catch(o){return null}let n=null,r=-1;for(const o of e)for(const a of(s=o.domains)!=null?s:[])pb(t,a)&&a.length>r&&(r=a.length,n=o.id);return n}class xu extends Error{}function ra(A){return I(this,null,function*(){if(!A.ok){const e=yield A.json().catch(()=>({message:`HTTP ${A.status}`})),t=e.message||e.error||`HTTP ${A.status}`;throw A.status===401?new xu(t):new Error(t)}return A.json()})}let Su=3e4;function hb(A){Number.isFinite(A)&&A>0&&(Su=A)}function Ir(n){return I(this,arguments,function*(A,e={},t=Su){const r=new AbortController,s=setTimeout(()=>r.abort(),t);try{return yield fetch(A,z(F({},e),{credentials:"omit",signal:r.signal}))}catch(o){throw o instanceof DOMException&&o.name==="AbortError"?new Error(`Request timed out after ${Math.round(t/1e3)}s. Please check your connection and try again.`):o}finally{clearTimeout(s)}})}function JA(A,e,t,n){return I(this,null,function*(){const s=`${A.backendUrl.replace(/\/+$/,"")}/api${t}`,o=yield Ir(s,{method:e,headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.token}`},body:n!==void 0?JSON.stringify(n):void 0});return ra(o)})}function fb(A,e,t){return I(this,null,function*(){const n=A.backendUrl.replace(/\/+$/,""),r=new FormData;r.append("file",e,t);const s=yield Ir(`${n}/api/files/upload`,{method:"POST",headers:{Authorization:`Bearer ${A.token}`},body:r});return ra(s)})}function gb(A,e){return I(this,null,function*(){return JA(A,"GET",`/projects/by-key/${encodeURIComponent(e)}`)})}const Bb=["project","note","ctx"];function wb(A){var t,n;const e=Bb.filter(r=>A[r]===void 0||A[r]===null);if(e.length>0)throw new Error(`createTask: missing required field(s): ${e.join(", ")}`);if(!((t=A.project)!=null&&t.id)&&!((n=A.project)!=null&&n.key))throw new Error("createTask: project must have an id or key")}function sa(A,e){return I(this,null,function*(){var h,f,g,m,b,E;wb(e);const{project:t,note:n,ctx:r,advancedOpts:s,titleOverride:o,titleInstruction:a,allowSubmit:i,extraFileIds:c,type:u=Gi}=e;return JA(A,"POST","/tasks",z(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(z(F({type:u,title:o||n.slice(0,120)||r.pageTitle||"Browser capture",titleInstruction:a!=null?a:n},t.id?{projectId:t.id}:{projectKey:t.key}),{autoAssign:!0}),s!=null&&s.claudeTemplateId?{claudeTemplateId:s.claudeTemplateId}:{}),(s==null?void 0:s.quickMode)!==void 0?{quickMode:s.quickMode}:{}),(s==null?void 0:s.modelOverride)!=null?{modelOverride:s.modelOverride}:{}),(s==null?void 0:s.claudeProfileId)!=null?{claudeProfileId:s.claudeProfileId}:{}),(s==null?void 0:s.effort)!=null?{effort:s.effort}:{}),(s==null?void 0:s.executionMode)!=null?{executionMode:s.executionMode}:{}),(h=s==null?void 0:s.selectedPluginIds)!=null&&h.length?{selectedPluginIds:s.selectedPluginIds}:{}),(f=s==null?void 0:s.selectedSkillIds)!=null&&f.length?{selectedSkillIds:s.selectedSkillIds}:{}),(g=s==null?void 0:s.selectedPluginSkillIds)!=null&&g.length?{selectedPluginSkillIds:s.selectedPluginSkillIds}:{}),(m=s==null?void 0:s.selectedMcpServerIds)!=null&&m.length?{selectedMcpServerIds:s.selectedMcpServerIds}:{}),(b=s==null?void 0:s.selectedSlashCommandIds)!=null&&b.length?{selectedSlashCommandIds:s.selectedSlashCommandIds}:{}),(E=s==null?void 0:s.selectedRemoteContextProviderIds)!=null&&E.length?{selectedRemoteContextProviderIds:s.selectedRemoteContextProviderIds}:{}),s!=null&&s.instructionTemplateId?{instructionTemplateId:s.instructionTemplateId}:{}),s!=null&&s.templateParamValues?{templateParamValues:s.templateParamValues}:{}),s!=null&&s.defaultParamValues?{defaultParamValues:s.defaultParamValues}:{}),{metadata:F(F({type:u,note:n,source:"web-sdk",pageUrl:r.pageUrl,pageTitle:r.pageTitle,elementText:r.elementText,cssSelector:r.cssSelector,elementOuterHtml:r.elementOuterHtml,ancestry:r.ancestry,elementRole:r.elementRole,elementAriaLabel:r.elementAriaLabel,enclosingSection:r.enclosingSection,description:r.description,canonicalUrl:r.canonicalUrl,lang:r.lang,ogTitle:r.ogTitle,ogDescription:r.ogDescription,ogType:r.ogType,ogSiteName:r.ogSiteName,viewportWidth:r.viewportWidth,viewportHeight:r.viewportHeight,scrollX:r.scrollX,scrollY:r.scrollY,selectionText:r.selectionText,capturedAt:r.capturedAt,interactionSteps:r.interactionSteps},i!==void 0?{allowSubmit:i}:{}),c!=null&&c.length?{extraFileIds:c}:{})}))})}function Iu(A,e){return I(this,null,function*(){return sa(A,z(F({},e),{type:El}))})}function Tu(A,e,t,n,r){return I(this,null,function*(){var s;return JA(A,"POST","/planning-sessions",F(F(F(F(F(z(F({},e.id?{projectId:e.id}:{projectKey:e.key}),{instruction:t,quickMode:(s=n==null?void 0:n.quickMode)!=null?s:!1}),n!=null&&n.claudeTemplateId?{claudeTemplateId:n.claudeTemplateId}:{}),n!=null&&n.instructionTemplateId?{instructionTemplateId:n.instructionTemplateId}:{}),n!=null&&n.templateParamValues?{templateParamValues:n.templateParamValues}:{}),n!=null&&n.defaultParamValues?{defaultParamValues:n.defaultParamValues}:{}),r!=null&&r.length?{fileIds:r}:{}))})}function mb(A,e){return I(this,null,function*(){const t=e?`?projectId=${encodeURIComponent(e)}`:"";return JA(A,"GET",`/claude-templates${t}`)})}function Cb(A,e,t,n,r){return I(this,null,function*(){const s=new URLSearchParams;e&&s.set("projectId",e),t&&s.set("entityType",t),n&&s.set("taskType",n),r&&s.set("scenario",r);const o=s.toString()?`?${s.toString()}`:"";return JA(A,"GET",`/instruction-composer/context${o}`)})}function Hu(A,e){return I(this,null,function*(){return JA(A,"GET",`/tasks/${e}`)})}function bb(A,e){return I(this,null,function*(){return JA(A,"GET",`/planning-sessions/${e}`)})}function Lu(A){return I(this,null,function*(){return JA(A,"GET","/projects")})}function Qb(A){return I(this,null,function*(){return(yield JA(A,"GET","/tenants/current")).membership})}function Ru(A,e){if(!A||A.includes("tenant:*")||A.includes(e))return!0;const t=e.split(":")[0];return A.includes(`${t}:*`)}function oa(A,e,t){return I(this,null,function*(){const r=`${A.backendUrl.replace(/\/+$/,"")}/api/auth/tokens/exchange-code`,s=yield Ir(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,origin:t})});return ra(s)})}function yb(A,e){return I(this,null,function*(){return JA(A,"GET",`/tasks/${e}/browser-commands/pending`)})}function Ub(A,e,t,n,r){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/browser-commands/${t}/result`,{status:n,message:r})})}function Eb(A,e){return I(this,null,function*(){return JA(A,"GET",`/tasks/${e}/chunks`)})}function kb(A,e,t){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/instructions`,{content:t})})}function Fb(A,e){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/cancel`)})}function vb(A,e){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/approve-result`)})}function _b(A,e,t){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/reject-result`,{feedback:t})})}function Ao(A,e){return I(this,null,function*(){return JA(A,"GET",`/tasks/${e}/interactions?filter=unanswered`)})}function Du(A,e,t,n){return I(this,null,function*(){return JA(A,"POST",`/tasks/${e}/interactions/${t}/answer`,{answer:n})})}function xb(A,e,t){const n=!!(e.backendUrl&&e.token),r=document.createElement("div");r.className="ap-sdk-advanced",r.innerHTML=`
1626
1626
  <details class="ap-sdk-advanced__details">
1627
1627
  <summary class="ap-sdk-advanced__summary">Advanced options</summary>
1628
1628
  <div class="ap-sdk-advanced__body">
@@ -1641,7 +1641,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1641
1641
  </div>
1642
1642
  </div>
1643
1643
  </details>
1644
- `,A.appendChild(r);const s=r.querySelector("[data-ap-adv-template-field]"),o=r.querySelector("[data-ap-template]"),a=r.querySelector("[data-ap-quickmode]");let i=[];if(n){const c={backendUrl:e.backendUrl,token:e.token};fb(c,t!=null?t:void 0).then(u=>{var f,g;if(i=u,u.length===0){s.style.display="none";return}const h=(f=u.find(m=>m.isDefault&&m.scope==="project"))!=null?f:u.find(m=>m.isDefault&&m.scope==="global");o.innerHTML='<option value="">None (use default)</option>'+u.map(m=>`<option value="${vb(m.id)}">${_b(m.name)}${m.isDefault?" (Default)":""}</option>`).join(""),o.value=(g=h==null?void 0:h.id)!=null?g:""}).catch(()=>{s.style.display="none"})}else{o.innerHTML='<option value="">None</option>',o.disabled=!0;const c=document.createElement("span");c.className="ap-sdk-advanced__hint",c.textContent="Connect credentials to enable template selection",s.appendChild(c)}return{getOptions(){var h,f,g,m,b,U,E,v;const c=o.value||null,u=c?(f=(h=i.find(F=>F.id===c))==null?void 0:h.templateData)!=null?f:{}:{};return k(k(k(k(k(k(k(k(k(k({claudeTemplateId:c,quickMode:a.checked},u.modelOverride!=null?{modelOverride:u.modelOverride}:{}),u.claudeProfileId!=null?{claudeProfileId:u.claudeProfileId}:{}),u.effort!=null?{effort:u.effort}:{}),u.executionMode!=null?{executionMode:u.executionMode}:{}),(g=u.selectedPluginIds)!=null&&g.length?{selectedPluginIds:u.selectedPluginIds}:{}),(m=u.selectedSkillIds)!=null&&m.length?{selectedSkillIds:u.selectedSkillIds}:{}),(b=u.selectedPluginSkillIds)!=null&&b.length?{selectedPluginSkillIds:u.selectedPluginSkillIds}:{}),(U=u.selectedMcpServerIds)!=null&&U.length?{selectedMcpServerIds:u.selectedMcpServerIds}:{}),(E=u.selectedSlashCommandIds)!=null&&E.length?{selectedSlashCommandIds:u.selectedSlashCommandIds}:{}),(v=u.selectedRemoteContextProviderIds)!=null&&v.length?{selectedRemoteContextProviderIds:u.selectedRemoteContextProviderIds}:{})}}}function vb(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _b(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const xb=400;function Sb(A,e,t){if(!!!(e.backendUrl&&e.token))return{getSelection:()=>({})};const r={backendUrl:e.backendUrl,token:e.token},s=document.createElement("div");s.className="ap-sdk-instruction-composer ap-sdk-instruction-composer--before",s.innerHTML=`
1644
+ `,A.appendChild(r);const s=r.querySelector("[data-ap-adv-template-field]"),o=r.querySelector("[data-ap-template]"),a=r.querySelector("[data-ap-quickmode]");let i=[];if(n){const c={backendUrl:e.backendUrl,token:e.token};mb(c,t!=null?t:void 0).then(u=>{var f,g;if(i=u,u.length===0){s.style.display="none";return}const h=(f=u.find(m=>m.isDefault&&m.scope==="project"))!=null?f:u.find(m=>m.isDefault&&m.scope==="global");o.innerHTML='<option value="">None (use default)</option>'+u.map(m=>`<option value="${Sb(m.id)}">${Ib(m.name)}${m.isDefault?" (Default)":""}</option>`).join(""),o.value=(g=h==null?void 0:h.id)!=null?g:""}).catch(()=>{s.style.display="none"})}else{o.innerHTML='<option value="">None</option>',o.disabled=!0;const c=document.createElement("span");c.className="ap-sdk-advanced__hint",c.textContent="Connect credentials to enable template selection",s.appendChild(c)}return{getOptions(){var h,f,g,m,b,E,k,v;const c=o.value||null,u=c?(f=(h=i.find(y=>y.id===c))==null?void 0:h.templateData)!=null?f:{}:{};return F(F(F(F(F(F(F(F(F(F({claudeTemplateId:c,quickMode:a.checked},u.modelOverride!=null?{modelOverride:u.modelOverride}:{}),u.claudeProfileId!=null?{claudeProfileId:u.claudeProfileId}:{}),u.effort!=null?{effort:u.effort}:{}),u.executionMode!=null?{executionMode:u.executionMode}:{}),(g=u.selectedPluginIds)!=null&&g.length?{selectedPluginIds:u.selectedPluginIds}:{}),(m=u.selectedSkillIds)!=null&&m.length?{selectedSkillIds:u.selectedSkillIds}:{}),(b=u.selectedPluginSkillIds)!=null&&b.length?{selectedPluginSkillIds:u.selectedPluginSkillIds}:{}),(E=u.selectedMcpServerIds)!=null&&E.length?{selectedMcpServerIds:u.selectedMcpServerIds}:{}),(k=u.selectedSlashCommandIds)!=null&&k.length?{selectedSlashCommandIds:u.selectedSlashCommandIds}:{}),(v=u.selectedRemoteContextProviderIds)!=null&&v.length?{selectedRemoteContextProviderIds:u.selectedRemoteContextProviderIds}:{})}}}function Sb(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ib(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function Tb(A,e){return A.type==="boolean"?!1:A.type==="multiselect"?!Array.isArray(e)||e.length===0:e==null?!0:A.type==="number"?e===""||Number.isNaN(Number(e)):String(e).trim()===""}function Hb(A,e){return A.some(t=>{var n;return t.required&&Tb(t,(n=e[t.key])!=null?n:t.defaultValue)})}function Ou(A,e,t,n,r){var v;if((v=A.parentElement)==null||v.querySelectorAll(".ap-sdk-instruction-composer--before").forEach(y=>y.remove()),A.style.display="",!!!(e.backendUrl&&e.token))return{getSelection:()=>({}),isValid:()=>!0};const o={backendUrl:e.backendUrl,token:e.token},a=document.createElement("div");a.className="ap-sdk-instruction-composer ap-sdk-instruction-composer--before",a.innerHTML=`
1645
1645
  <div class="ap-sdk-panel__field" data-ap-instruction-template-field>
1646
1646
  <label class="ap-sdk-panel__label" for="ap-sdk-instruction-template">Instruction Template</label>
1647
1647
  <select id="ap-sdk-instruction-template" class="ap-sdk-panel__input" data-ap-instruction-template>
@@ -1650,23 +1650,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1650
1650
  </div>
1651
1651
  <div class="ap-sdk-panel__field" data-ap-template-params></div>
1652
1652
  <div class="ap-sdk-panel__field" data-ap-default-params></div>
1653
- `;const o=document.createElement("div");o.className="ap-sdk-instruction-composer ap-sdk-instruction-composer--after",o.innerHTML=`
1654
- <div class="ap-sdk-panel__field ap-sdk-instruction-preview" data-ap-instruction-preview style="display:none"></div>
1655
- `;const a=A.parentElement;a.insertBefore(s,A),a.insertBefore(o,A.nextSibling);const i=s.querySelector("[data-ap-instruction-template-field]"),c=s.querySelector("[data-ap-instruction-template]"),u=s.querySelector("[data-ap-template-params]"),h=s.querySelector("[data-ap-default-params]"),f=o.querySelector("[data-ap-instruction-preview]");let g=[],m=[],b=null;const U=y=>y==="GLOBAL"?"Global":y==="PROJECT"?"This project":"My templates",E=()=>g.find(y=>y.id===c.value),v=()=>{b&&clearTimeout(b),b=setTimeout(()=>{const y=c.value||void 0;Bb(r,{projectId:t!=null?t:void 0,instructionTemplateId:y,templateParamValues:y?qs(u):void 0,defaultParamValues:m.length>0?qs(h):void 0,rawText:y?void 0:A.value}).then(_=>{var R;f.style.display="block",f.innerHTML=`
1656
- <div class="ap-sdk-panel__label">Preview</div>
1657
- <div class="ap-sdk-instruction-preview__text">${at(_.renderedText)}</div>
1658
- ${(R=_.warnings)!=null&&R.length?`<div class="ap-sdk-instruction-preview__warnings">${_.warnings.map(H=>at(H)).join("<br/>")}</div>`:""}
1659
- `}).catch(()=>{f.style.display="none",f.innerHTML=""})},xb)},F=()=>{const y=E();u.innerHTML="",y?(Lu(u,y.parameterSchema,v),A.style.display="none"):A.style.display="",v()};return c.addEventListener("change",F),A.addEventListener("input",v),gb(r,t!=null?t:void 0).then(y=>{g=y.templates,m=y.defaultFields,c.innerHTML='<option value="">No template (free text)</option>'+g.map(_=>`<option value="${Ke(_.id)}">${at(_.name)} (${at(U(_.scope))})</option>`).join(""),m.length>0?Lu(h,m,v):h.style.display="none"}).catch(()=>{i.style.display="none",h.style.display="none"}),{getSelection(){const y=c.value||void 0;return{instructionTemplateId:y,templateParamValues:y?qs(u):void 0,defaultParamValues:m.length>0?qs(h):void 0}}}}function Lu(A,e,t){A.innerHTML=e.map(n=>{var a,i;const r=`<label class="ap-sdk-panel__label">${at(n.label)}${n.required?" *":""}</label>`,s=n.helpText?`<span class="ap-sdk-advanced__hint">${at(n.helpText)}</span>`:"";let o;switch(n.type){case"textarea":o=`<textarea class="ap-sdk-panel__textarea" rows="2" data-ap-field-key="${Ke(n.key)}" data-ap-field-type="textarea">${at(typeof n.defaultValue=="string"?n.defaultValue:"")}</textarea>`;break;case"number":o=`<input type="number" class="ap-sdk-panel__input" data-ap-field-key="${Ke(n.key)}" data-ap-field-type="number" value="${Ke(n.defaultValue!=null?String(n.defaultValue):"")}" />`;break;case"boolean":o=`<label class="ap-sdk-advanced__checkbox-label"><input type="checkbox" data-ap-field-key="${Ke(n.key)}" data-ap-field-type="boolean" ${n.defaultValue?"checked":""} /> ${at(n.label)}</label>`;break;case"select":o=`<select class="ap-sdk-panel__input" data-ap-field-key="${Ke(n.key)}" data-ap-field-type="select">${((a=n.options)!=null?a:[]).map(c=>`<option value="${Ke(c.value)}" ${n.defaultValue===c.value?"selected":""}>${at(c.label)}</option>`).join("")}</select>`;break;case"multiselect":{const c=Array.isArray(n.defaultValue)?n.defaultValue:[];o=`<select multiple class="ap-sdk-panel__input" data-ap-field-key="${Ke(n.key)}" data-ap-field-type="multiselect">${((i=n.options)!=null?i:[]).map(u=>`<option value="${Ke(u.value)}" ${c.includes(u.value)?"selected":""}>${at(u.label)}</option>`).join("")}</select>`;break}case"text":default:o=`<input type="text" class="ap-sdk-panel__input" data-ap-field-key="${Ke(n.key)}" data-ap-field-type="text" value="${Ke(typeof n.defaultValue=="string"?n.defaultValue:"")}" />`;break}return n.type==="boolean"?`<div class="ap-sdk-panel__field">${o}${s}</div>`:`<div class="ap-sdk-panel__field">${r}${o}${s}</div>`}).join(""),A.querySelectorAll("[data-ap-field-key]").forEach(n=>{n.addEventListener("change",t),(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&n.addEventListener("input",t)})}function qs(A){const e={};return A.querySelectorAll("[data-ap-field-key]").forEach(t=>{const n=t.getAttribute("data-ap-field-key"),r=t.getAttribute("data-ap-field-type");r==="boolean"?e[n]=t.checked:r==="multiselect"?e[n]=Array.from(t.selectedOptions).map(s=>s.value):r==="number"?e[n]=Number(t.value):e[n]=t.value}),e}function Ke(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function at(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const sa="shared",Du="ap-sdk-panel-size:",Ru=280,Ou=200;function Ib(A){try{const e=sessionStorage.getItem(Du+A);if(!e)return null;const t=JSON.parse(e);return typeof(t==null?void 0:t.width)=="number"&&typeof(t==null?void 0:t.height)=="number"?t:null}catch(e){return null}}function Tb(A,e){try{sessionStorage.setItem(Du+A,JSON.stringify(e))}catch(t){}}function Ao(A,e,t){return Math.min(Math.max(A,e),t)}function Pu(){return window.innerWidth-32}function Mu(){return window.innerHeight-64}function oa(A,e){const t=Ib(e);t&&(A.style.width=`${Ao(t.width,Ru,Pu())}px`,A.style.height=`${Ao(t.height,Ou,Mu())}px`);const n=document.createElement("div");n.className="ap-sdk-resize-handle",n.setAttribute("data-ap-sdk","1"),A.appendChild(n);let r=!1,s=0,o=0,a=0,i=0,c=0,u=0;const h=m=>{r&&(c=Ao(a+(m.clientX-s),Ru,Pu()),u=Ao(i+(m.clientY-o),Ou,Mu()),A.style.width=`${c}px`,A.style.height=`${u}px`)},f=()=>{r&&(r=!1,document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f),Tb(e,{width:c,height:u}))},g=m=>{const b=m.target;if(!(b===n||n.contains(b)))return;m.preventDefault(),m.stopPropagation(),r=!0,s=m.clientX,o=m.clientY;const U=A.getBoundingClientRect();a=U.width,i=U.height,c=a,u=i,document.addEventListener("pointermove",h),document.addEventListener("pointerup",f)};return window.addEventListener("pointerdown",g,{capture:!0}),()=>{window.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f)}}const Ir="shared",Ku="ap-sdk-panel-pos:";function Hb(A){try{const e=sessionStorage.getItem(Ku+A);if(!e)return null;const t=JSON.parse(e);return typeof(t==null?void 0:t.left)=="number"&&typeof(t==null?void 0:t.top)=="number"?t:null}catch(e){return null}}function Lb(A,e){try{sessionStorage.setItem(Ku+A,JSON.stringify(e))}catch(t){}}function Nu(A,e,t){return Math.min(Math.max(A,e),t)}function Tr(A,e){const t=(m,b)=>{const U=Math.max(0,window.innerWidth-A.offsetWidth),E=Math.max(0,window.innerHeight-A.offsetHeight);A.style.left=`${Nu(m,0,U)}px`,A.style.top=`${Nu(b,0,E)}px`,A.style.right="auto",A.style.transform="none"},n=Hb(e);n&&t(n.left,n.top);let r=!1,s=0,o=0,a=0,i=0,c=0,u=0;const h=m=>{r&&(c=a+(m.clientX-s),u=i+(m.clientY-o),t(c,u))},f=()=>{r&&(r=!1,document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f),Lb(e,{left:c,top:u}))},g=m=>{const b=m.target;if(!(b===A||A.contains(b))||!b.closest(".ap-sdk-panel__header")||b.closest("button, a, input, select, textarea"))return;m.preventDefault(),r=!0,s=m.clientX,o=m.clientY;const U=A.getBoundingClientRect();a=U.left,i=U.top,c=a,u=i,document.addEventListener("pointermove",h),document.addEventListener("pointerup",f)};return window.addEventListener("pointerdown",g,{capture:!0}),()=>{window.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f)}}const eo="ap-sdk-panel-draft";function $u(){var A,e;try{const t=localStorage.getItem(eo);if(!t)return null;const n=JSON.parse(t);return!Array.isArray(n.completedPicks)||!n.currentCtx||typeof n.currentCtx!="object"?null:{captureType:(A=n.captureType)!=null?A:"task",note:(e=n.note)!=null?e:"",completedPicks:n.completedPicks,allowSubmit:!!n.allowSubmit,currentCtx:n.currentCtx}}catch(t){return null}}function Db(A){try{if(!A.note&&A.completedPicks.length===0&&!A.allowSubmit){localStorage.removeItem(eo);return}localStorage.setItem(eo,JSON.stringify(A))}catch(e){}}function ia(){try{localStorage.removeItem(eo)}catch(A){}}/*!
1653
+ `,A.parentElement.insertBefore(a,A);const c=a.querySelector("[data-ap-instruction-template-field]"),u=a.querySelector("[data-ap-instruction-template]"),h=a.querySelector("[data-ap-template-params]"),f=a.querySelector("[data-ap-default-params]");let g=[],m=[];const b=y=>y==="GLOBAL"?"Global":y==="PROJECT"?"This project":"My templates",E=()=>g.find(y=>y.id===u.value),k=()=>{const y=E();h.innerHTML="",y?(Pu(h,y.parameterSchema),A.style.display="none"):A.style.display="",r==null||r()};return u.addEventListener("change",k),h.addEventListener("input",()=>r==null?void 0:r()),h.addEventListener("change",()=>r==null?void 0:r()),Cb(o,t!=null?t:void 0,n==null?void 0:n.entityType,n==null?void 0:n.taskType,n==null?void 0:n.scenario).then(y=>{g=y.templates,m=y.defaultFields,u.innerHTML='<option value="">No template (free text)</option>'+g.map(U=>`<option value="${Ne(U.id)}">${Kt(U.name)} (${Kt(b(U.scope))})</option>`).join(""),m.length>0?Pu(f,m):f.style.display="none"}).catch(()=>{c.style.display="none",f.style.display="none"}),{getSelection(){const y=u.value||void 0;return{instructionTemplateId:y,templateParamValues:y?ia(h):void 0,defaultParamValues:m.length>0?ia(f):void 0}},isValid(){const y=E();return y?!Hb(y.parameterSchema,ia(h)):!0}}}function Pu(A,e){A.innerHTML=e.map(t=>{var o,a;const n=`<label class="ap-sdk-panel__label">${Kt(t.label)}${t.required?" *":""}</label>`,r=t.helpText?`<span class="ap-sdk-advanced__hint">${Kt(t.helpText)}</span>`:"";let s;switch(t.type){case"textarea":s=`<textarea class="ap-sdk-panel__textarea" rows="2" data-ap-field-key="${Ne(t.key)}" data-ap-field-type="textarea">${Kt(typeof t.defaultValue=="string"?t.defaultValue:"")}</textarea>`;break;case"number":s=`<input type="number" class="ap-sdk-panel__input" data-ap-field-key="${Ne(t.key)}" data-ap-field-type="number" value="${Ne(t.defaultValue!=null?String(t.defaultValue):"")}" />`;break;case"boolean":s=`<label class="ap-sdk-advanced__checkbox-label"><input type="checkbox" data-ap-field-key="${Ne(t.key)}" data-ap-field-type="boolean" ${t.defaultValue?"checked":""} /> ${Kt(t.label)}</label>`;break;case"select":s=`<select class="ap-sdk-panel__input" data-ap-field-key="${Ne(t.key)}" data-ap-field-type="select">${((o=t.options)!=null?o:[]).map(i=>`<option value="${Ne(i.value)}" ${t.defaultValue===i.value?"selected":""}>${Kt(i.label)}</option>`).join("")}</select>`;break;case"multiselect":{const i=Array.isArray(t.defaultValue)?t.defaultValue:[];s=`<select multiple class="ap-sdk-panel__input" data-ap-field-key="${Ne(t.key)}" data-ap-field-type="multiselect">${((a=t.options)!=null?a:[]).map(c=>`<option value="${Ne(c.value)}" ${i.includes(c.value)?"selected":""}>${Kt(c.label)}</option>`).join("")}</select>`;break}case"text":default:s=`<input type="text" class="ap-sdk-panel__input" data-ap-field-key="${Ne(t.key)}" data-ap-field-type="text" value="${Ne(typeof t.defaultValue=="string"?t.defaultValue:"")}" />`;break}return t.type==="boolean"?`<div class="ap-sdk-panel__field">${s}${r}</div>`:`<div class="ap-sdk-panel__field">${n}${s}${r}</div>`}).join("")}function ia(A){const e={};return A.querySelectorAll("[data-ap-field-key]").forEach(t=>{const n=t.getAttribute("data-ap-field-key"),r=t.getAttribute("data-ap-field-type");r==="boolean"?e[n]=t.checked:r==="multiselect"?e[n]=Array.from(t.selectedOptions).map(s=>s.value):r==="number"?e[n]=Number(t.value):e[n]=t.value}),e}function Ne(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Kt(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const aa="shared",Mu="ap-sdk-panel-size:",Nu=280,Ku=200;function Lb(A){try{const e=sessionStorage.getItem(Mu+A);if(!e)return null;const t=JSON.parse(e);return typeof(t==null?void 0:t.width)=="number"&&typeof(t==null?void 0:t.height)=="number"?t:null}catch(e){return null}}function Rb(A,e){try{sessionStorage.setItem(Mu+A,JSON.stringify(e))}catch(t){}}function eo(A,e,t){return Math.min(Math.max(A,e),t)}function $u(){return window.innerWidth-32}function zu(){return window.innerHeight-64}function ca(A,e){const t=Lb(e);t&&(A.style.width=`${eo(t.width,Nu,$u())}px`,A.style.height=`${eo(t.height,Ku,zu())}px`);const n=document.createElement("div");n.className="ap-sdk-resize-handle",n.setAttribute("data-ap-sdk","1"),A.appendChild(n);let r=!1,s=0,o=0,a=0,i=0,c=0,u=0;const h=m=>{r&&(c=eo(a+(m.clientX-s),Nu,$u()),u=eo(i+(m.clientY-o),Ku,zu()),A.style.width=`${c}px`,A.style.height=`${u}px`)},f=()=>{r&&(r=!1,document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f),Rb(e,{width:c,height:u}))},g=m=>{const b=m.target;if(!(b===n||n.contains(b)))return;m.preventDefault(),m.stopPropagation(),r=!0,s=m.clientX,o=m.clientY;const E=A.getBoundingClientRect();a=E.width,i=E.height,c=a,u=i,document.addEventListener("pointermove",h),document.addEventListener("pointerup",f)};return window.addEventListener("pointerdown",g,{capture:!0}),()=>{window.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f)}}const Tr="shared",Vu="ap-sdk-panel-pos:";function Db(A){try{const e=sessionStorage.getItem(Vu+A);if(!e)return null;const t=JSON.parse(e);return typeof(t==null?void 0:t.left)=="number"&&typeof(t==null?void 0:t.top)=="number"?t:null}catch(e){return null}}function Ob(A,e){try{sessionStorage.setItem(Vu+A,JSON.stringify(e))}catch(t){}}function Gu(A,e,t){return Math.min(Math.max(A,e),t)}function Hr(A,e){const t=(m,b)=>{const E=Math.max(0,window.innerWidth-A.offsetWidth),k=Math.max(0,window.innerHeight-A.offsetHeight);A.style.left=`${Gu(m,0,E)}px`,A.style.top=`${Gu(b,0,k)}px`,A.style.right="auto",A.style.transform="none"},n=Db(e);n&&t(n.left,n.top);let r=!1,s=0,o=0,a=0,i=0,c=0,u=0;const h=m=>{r&&(c=a+(m.clientX-s),u=i+(m.clientY-o),t(c,u))},f=()=>{r&&(r=!1,document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f),Ob(e,{left:c,top:u}))},g=m=>{const b=m.target;if(!(b===A||A.contains(b))||!b.closest(".ap-sdk-panel__header")||b.closest("button, a, input, select, textarea"))return;m.preventDefault(),r=!0,s=m.clientX,o=m.clientY;const E=A.getBoundingClientRect();a=E.left,i=E.top,c=a,u=i,document.addEventListener("pointermove",h),document.addEventListener("pointerup",f)};return window.addEventListener("pointerdown",g,{capture:!0}),()=>{window.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",h),document.removeEventListener("pointerup",f)}}const to="ap-sdk-panel-draft";function Zu(){var A,e;try{const t=localStorage.getItem(to);if(!t)return null;const n=JSON.parse(t);return!Array.isArray(n.completedPicks)||!n.currentCtx||typeof n.currentCtx!="object"?null:{captureType:(A=n.captureType)!=null?A:"task",note:(e=n.note)!=null?e:"",completedPicks:n.completedPicks,allowSubmit:!!n.allowSubmit,currentCtx:n.currentCtx}}catch(t){return null}}function Pb(A){try{if(!A.note&&A.completedPicks.length===0&&!A.allowSubmit){localStorage.removeItem(to);return}localStorage.setItem(to,JSON.stringify(A))}catch(e){}}function la(){try{localStorage.removeItem(to)}catch(A){}}/*!
1660
1654
  * html2canvas-pro 2.4.3 <https://yorickshan.github.io/html2canvas-pro/>
1661
1655
  * Copyright (c) 2024-present yorickshan and html2canvas-pro contributors
1662
1656
  * Released under MIT License
1663
- */var Rb=class rl{constructor(e={}){const t=e.window||(typeof window!="undefined"?window:void 0);if(!t)throw new Error("Window object is required but not available");this.window=t,this.cspNonce=e.cspNonce,this.cache=e.cache}static fromElement(e,t={}){const n=e.ownerDocument;if(!n)throw new Error("Element is not attached to a document");const r=n.defaultView;if(!r)throw new Error("Document is not attached to a window");return new rl(k({window:r},t))}clone(e={}){var t,n;return new rl({window:e.window||this.window,cspNonce:(t=e.cspNonce)!=null?t:this.cspNonce,cache:(n=e.cache)!=null?n:this.cache})}},Ob=class{constructor(A={}){this.config=k({maxImageTimeout:3e5,allowDataUrls:!0},A)}validateUrl(A,e="general"){if(!A||typeof A!="string")return{valid:!1,error:"URL must be a non-empty string"};if(A.startsWith("data:"))return this.config.allowDataUrls?{valid:!0,sanitized:A}:{valid:!1,error:"Data URLs are not allowed"};if(A.startsWith("blob:"))return{valid:!0,sanitized:A};try{const t=new URL(A);if(!["http:","https:"].includes(t.protocol))return{valid:!1,error:`Protocol ${t.protocol} is not allowed. Only http and https are permitted.`};if(e==="proxy"&&this.config.allowedProxyDomains&&this.config.allowedProxyDomains.length>0){const n=t.hostname.toLowerCase();if(!this.config.allowedProxyDomains.some(r=>{const s=r.toLowerCase();return n===s||n.endsWith("."+s)}))return{valid:!1,error:`Proxy domain ${t.hostname} is not in the allowed list`}}if(e==="proxy"){if(!this.config.allowLocalhostProxy){const n=t.hostname.toLowerCase();if(n==="localhost"||n==="127.0.0.1"||n==="::1")return{valid:!1,error:"Localhost is not allowed for proxy URLs"};if(this.isPrivateIP(n))return{valid:!1,error:"Private IP addresses are not allowed for proxy URLs"};if(n.startsWith("169.254.")||n.startsWith("fe80:"))return{valid:!1,error:"Link-local addresses are not allowed for proxy URLs"}}return{valid:!0,sanitized:A,requiresRuntimeCheck:!0}}return{valid:!0,sanitized:A}}catch(t){return{valid:!1,error:`Invalid URL format: ${t instanceof Error?t.message:"Unknown error"}`}}}isPrivateIP(A){return[/^0\./,/^10\./,/^100\.(6[4-9]|[7-9][0-9]|1[0-1][0-9]|12[0-7])\./,/^127\./,/^169\.254\./,/^172\.(1[6-9]|2[0-9]|3[0-1])\./,/^192\.0\.0\./,/^192\.0\.2\./,/^192\.168\./,/^198\.(1[8-9])\./,/^198\.51\.100\./,/^203\.0\.113\./,/^2(2[4-9]|3[0-9])\./,/^24[0-9]\./,/^255\.255\.255\.255$/].some(e=>e.test(A))?!0:A.includes(":")?this.isPrivateIPv6(A):!1}isPrivateIPv6(A){const e=A.toLowerCase().trim().replace(/^\[|\]$/g,"").split("%")[0];if(/^(0:){7}1$/.test(e)||e==="::1"||/^(0:){7}0$/.test(e)||e==="::")return!0;const t=this.expandIPv6(e);if(!t)return this.isPrivateIPv6Prefix(e);const n=parseInt(t.substring(0,2),16);if(n>=252&&n<=253)return!0;if(n===254){const r=parseInt(t.substring(2,4),16);if(r>=128&&r<=191)return!0}return n===255}expandIPv6(A){try{if(A.includes("::")){const e=A.split("::");if(e.length>2)return null;const t=e[0]?e[0].split(":"):[],n=e[1]?e[1].split(":"):[],r=8-t.length-n.length;if(r<0)return null;const s=Array(r).fill("0000");return[...t,...s,...n].map(o=>o.padStart(4,"0")).join(":")}else{const e=A.split(":");return e.length!==8?null:e.map(t=>t.padStart(4,"0")).join(":")}}catch(e){return null}}isPrivateIPv6Prefix(A){return!!(/^fc[0-9a-f]{0,2}:?/i.test(A)||/^fd[0-9a-f]{0,2}:?/i.test(A)||/^fe[89ab][0-9a-f]:?/i.test(A)||/^ff[0-9a-f]{0,2}:?/i.test(A))}validateCspNonce(A){return!A||typeof A!="string"?{valid:!1,error:"CSP nonce must be a non-empty string"}:A.length<16?{valid:!1,error:"CSP nonce is too short (minimum 16 characters recommended)"}:/^[A-Za-z0-9+/=_-]+$/.test(A)?{valid:!0,sanitized:A}:{valid:!1,error:"CSP nonce contains invalid characters"}}validateImageTimeout(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Image timeout must be a number"}:A<0?{valid:!1,error:"Image timeout cannot be negative"}:this.config.maxImageTimeout&&A>this.config.maxImageTimeout?{valid:!1,error:`Image timeout ${A}ms exceeds maximum allowed ${this.config.maxImageTimeout}ms`}:{valid:!0,sanitized:A}}validateDimensions(A,e){if(typeof A!="number"||typeof e!="number")return{valid:!1,error:"Dimensions must be numbers"};if(isNaN(A)||isNaN(e))return{valid:!1,error:"Dimensions cannot be NaN"};if(A<=0||e<=0)return{valid:!1,error:"Dimensions must be positive"};const t=32767;return A>t||e>t?{valid:!1,error:`Dimensions exceed maximum allowed (${t}px)`}:{valid:!0,sanitized:{width:A,height:e}}}validateScale(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Scale must be a number"}:A<=0?{valid:!1,error:"Scale must be positive"}:A>10?{valid:!1,error:"Scale factor too large (maximum 10x)"}:{valid:!0,sanitized:A}}validateElement(A){if(!A)return{valid:!1,error:"Element is required"};if(typeof A!="object")return{valid:!1,error:"Element must be an object"};const e=A;return typeof HTMLElement!="undefined"&&A instanceof HTMLElement?A.ownerDocument?{valid:!0}:{valid:!1,error:"Element must be attached to a document"}:e.ownerDocument?e.ownerDocument.defaultView?{valid:!0}:{valid:!1,error:"Document must be attached to a window (ownerDocument.defaultView required)"}:{valid:!1,error:"Element must be attached to a document (ownerDocument required)"}}validateOptions(A){var n,r;const e=[],t=A.proxy;if(t!=null&&typeof t=="string"&&t.length>0){const s=this.validateUrl(t,"proxy");s.valid||e.push(`Proxy: ${s.error}`)}if(A.imageTimeout!==void 0){const s=this.validateImageTimeout(A.imageTimeout);s.valid||e.push(`Image timeout: ${s.error}`)}if(A.width!==void 0||A.height!==void 0){const s=(n=A.width)!=null?n:800,o=(r=A.height)!=null?r:600,a=this.validateDimensions(s,o);a.valid||e.push(`Dimensions: ${a.error}`)}if(A.scale!==void 0){const s=this.validateScale(A.scale);s.valid||e.push(`Scale: ${s.error}`)}if(A.cspNonce!==void 0){const s=this.validateCspNonce(A.cspNonce);s.valid||e.push(`CSP nonce: ${s.error}`)}if(this.config.customValidator){const s=this.config.customValidator(A,"options");s.valid||e.push(`Custom validation: ${s.error}`)}return e.length>0?{valid:!1,error:e.join("; ")}:{valid:!0}}};function Pb(A={}){return new Ob(k({allowDataUrls:!0,maxImageTimeout:3e5},A))}var Mb=class{constructor(A,e=!0){this.context=A,this.activeMetrics=new Map,this.completedMetrics=[],this.enabled=e,this.getTime=typeof performance!="undefined"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now()}start(A,e){var t;this.enabled&&(this.activeMetrics.has(A)&&((t=this.context)==null||t.logger.warn(`Performance metric '${A}' already started. Overwriting.`)),this.activeMetrics.set(A,{name:A,startTime:this.getTime(),metadata:e}))}end(A){var t,n;if(!this.enabled)return;const e=this.activeMetrics.get(A);if(!e){(t=this.context)==null||t.logger.warn(`Performance metric '${A}' not found. Was start() called?`);return}return e.endTime=this.getTime(),e.duration=e.endTime-e.startTime,this.completedMetrics.push(e),this.activeMetrics.delete(A),(n=this.context)==null||n.logger.debug(`⏱️ ${A}: ${e.duration.toFixed(2)}ms`,e.metadata),e}measure(A,e,t){this.start(A,t);try{const n=e();return this.end(A),n}catch(n){throw this.end(A),n}}measureAsync(A,e,t){return I(this,null,function*(){this.start(A,t);try{const n=yield e();return this.end(A),n}catch(n){throw this.end(A),n}})}getMetrics(){return[...this.completedMetrics]}getMetric(A){return this.completedMetrics.find(e=>e.name===A)}getSummary(){const A=this.completedMetrics.reduce((t,n)=>t+(n.duration||0),0),e=this.completedMetrics.map(t=>({name:t.name,duration:t.duration||0,percentage:A>0?((t.duration||0)/A*100).toFixed(1)+"%":"0%"}));return{totalDuration:A,metrics:this.getMetrics(),breakdown:e}}logSummary(){if(!this.enabled||this.completedMetrics.length===0||!this.context)return;const A=this.getSummary();this.context.logger.info(`
1664
- 📊 Performance Summary (Total: ${A.totalDuration.toFixed(2)}ms):`),A.breakdown.sort((e,t)=>t.duration-e.duration).forEach(e=>{this.context.logger.info(` ${e.name.padEnd(20)} ${e.duration.toFixed(2).padStart(8)}ms ${e.percentage.padStart(6)}`)})}clear(){this.activeMetrics.clear(),this.completedMetrics.splice(0)}isEnabled(){return this.enabled}getActiveMetrics(){return Array.from(this.activeMetrics.keys())}},Fe=(je=class{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}add(e,t,n,r){return new je(this.left+e,this.top+t,this.width+n,this.height+r)}static fromClientRect(e,t){return new je(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)}static fromDOMRectList(e,t){const n=Array.from(t);let r=n.find(s=>s.width!==0);return r||(r=n.find(s=>s.height!==0)),!r&&n.length>0&&(r=n[0]),r?new je(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):je.EMPTY}},je.EMPTY=new je(0,0,0,0),je);const Hr=(A,e)=>Fe.fromClientRect(A,e.getBoundingClientRect()),Kb=A=>{const e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");return new Fe(0,0,Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight)))};for(var to=function(A){for(var e=[],t=0,n=A.length;t<n;){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),t--)}else e.push(r)}return e},HA=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var n=[],r=-1,s="";++r<t;){var o=A[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},zu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nb=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),no=0;no<zu.length;no++)Nb[zu.charCodeAt(no)]=no;for(var Vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ro=0;ro<Vu.length;ro++)Lr[Vu.charCodeAt(ro)]=ro;for(var $b=function(A){var e=A.length*.75,t=A.length,n,r=0,s,o,a,i;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<t;n+=4)s=Lr[A.charCodeAt(n)],o=Lr[A.charCodeAt(n+1)],a=Lr[A.charCodeAt(n+2)],i=Lr[A.charCodeAt(n+3)],u[r++]=s<<2|o>>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|i&63;return c},zb=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},Vb=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},sn=5,aa=11,ca=2,Gb=aa-sn,Gu=65536>>sn,la=(1<<sn)-1,Zb=Gu+(1024>>sn)+32,Xb=65536>>aa,Wb=(1<<Gb)-1,Zu=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},Jb=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},jb=function(A,e){var t=$b(A),n=Array.isArray(t)?Vb(t):new Uint32Array(t),r=Array.isArray(t)?zb(t):new Uint16Array(t),s=24,o=Zu(r,s/2,n[4]/2),a=n[5]===2?Zu(r,(s+n[4])/2):Jb(n,Math.ceil((s+n[4])/4));return new Yb(n[0],n[1],n[2],n[3],o,a)},Yb=(function(){function A(e,t,n,r,s,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=s,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>sn],t=(t<<ca)+(e&la),this.data[t];if(e<=65535)return t=this.index[Gu+(e-55296>>sn)],t=(t<<ca)+(e&la),this.data[t];if(e<this.highStart)return t=Zb-Xb+(e>>aa),t=this.index[t],t+=e>>sn&Wb,t=this.index[t],t=(t<<ca)+(e&la),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Xu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qb=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),so=0;so<Xu.length;so++)qb[Xu.charCodeAt(so)]=so;var AQ="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEg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BywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsByw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AMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdC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IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPAB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UABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AH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AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXA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XAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUAB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AFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAe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ABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Wu=50,eQ=1,Ju=2,ju=3,tQ=4,nQ=5,Yu=7,qu=8,Ad=9,Pt=10,ua=11,ed=12,da=13,rQ=14,Dr=15,pa=16,oo=17,Rr=18,sQ=19,td=20,ha=21,Or=22,fa=23,Gn=24,Qe=25,Pr=26,Mr=27,Zn=28,oQ=29,on=30,iQ=31,io=32,ao=33,ga=34,Ba=35,wa=36,Kr=37,ma=38,co=39,lo=40,Ca=41,nd=42,aQ=43,cQ=[9001,65288],rd="!",nA="×",uo="÷",ba=jb(AQ),bt=[on,wa],Qa=[eQ,Ju,ju,nQ],sd=[Pt,qu],od=[Mr,Pr],lQ=Qa.concat(sd),id=[ma,co,lo,ga,Ba],uQ=[Dr,da],dQ=function(A,e){e===void 0&&(e="strict");var t=[],n=[],r=[];return A.forEach(function(s,o){var a=ba.get(s);if(a>Wu?(r.push(!0),a-=Wu):r.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(s)!==-1)return n.push(o),t.push(pa);if(a===tQ||a===ua){if(o===0)return n.push(o),t.push(on);var i=t[o-1];return lQ.indexOf(i)===-1?(n.push(n[o-1]),t.push(i)):(n.push(o),t.push(on))}if(n.push(o),a===iQ)return t.push(e==="strict"?ha:Kr);if(a===nd||a===oQ)return t.push(on);if(a===aQ)return s>=131072&&s<=196605||s>=196608&&s<=262141?t.push(Kr):t.push(on);t.push(a)}),[n,t,r]},ya=function(A,e,t,n){var r=n[t];if(Array.isArray(A)?A.indexOf(r)!==-1:A===r)for(var s=t;s<=n.length;){s++;var o=n[s];if(o===e)return!0;if(o!==Pt)break}if(r===Pt)for(var s=t;s>0;){s--;var a=n[s];if(Array.isArray(A)?A.indexOf(a)!==-1:A===a)for(var i=t;i<=n.length;){i++;var o=n[i];if(o===e)return!0;if(o!==Pt)break}if(a!==Pt)break}return!1},ad=function(A,e){for(var t=A;t>=0;){var n=e[t];if(n===Pt)t--;else return n}return 0},pQ=function(A,e,t,n,r){if(t[n]===0)return nA;var s=n-1;if(Array.isArray(r)&&r[s]===!0)return nA;var o=s-1,a=s+1,i=e[s],c=o>=0?e[o]:0,u=e[a];if(i===Ju&&u===ju)return nA;if(Qa.indexOf(i)!==-1)return rd;if(Qa.indexOf(u)!==-1||sd.indexOf(u)!==-1)return nA;if(ad(s,e)===qu)return uo;if(ba.get(A[s])===ua||(i===io||i===ao)&&ba.get(A[a])===ua||i===Yu||u===Yu||i===Ad||[Pt,da,Dr].indexOf(i)===-1&&u===Ad||[oo,Rr,sQ,Gn,Zn].indexOf(u)!==-1||ad(s,e)===Or||ya(fa,Or,s,e)||ya([oo,Rr],ha,s,e)||ya(ed,ed,s,e))return nA;if(i===Pt)return uo;if(i===fa||u===fa)return nA;if(u===pa||i===pa)return uo;if([da,Dr,ha].indexOf(u)!==-1||i===rQ||c===wa&&uQ.indexOf(i)!==-1||i===Zn&&u===wa||u===td||bt.indexOf(u)!==-1&&i===Qe||bt.indexOf(i)!==-1&&u===Qe||i===Mr&&[Kr,io,ao].indexOf(u)!==-1||[Kr,io,ao].indexOf(i)!==-1&&u===Pr||bt.indexOf(i)!==-1&&od.indexOf(u)!==-1||od.indexOf(i)!==-1&&bt.indexOf(u)!==-1||[Mr,Pr].indexOf(i)!==-1&&(u===Qe||[Or,Dr].indexOf(u)!==-1&&e[a+1]===Qe)||[Or,Dr].indexOf(i)!==-1&&u===Qe||i===Qe&&[Qe,Zn,Gn].indexOf(u)!==-1)return nA;if([Qe,Zn,Gn,oo,Rr].indexOf(u)!==-1)for(var h=s;h>=0;){var f=e[h];if(f===Qe)return nA;if([Zn,Gn].indexOf(f)!==-1)h--;else break}if([Mr,Pr].indexOf(u)!==-1)for(var h=[oo,Rr].indexOf(i)!==-1?o:s;h>=0;){var f=e[h];if(f===Qe)return nA;if([Zn,Gn].indexOf(f)!==-1)h--;else break}if(ma===i&&[ma,co,ga,Ba].indexOf(u)!==-1||[co,ga].indexOf(i)!==-1&&[co,lo].indexOf(u)!==-1||[lo,Ba].indexOf(i)!==-1&&u===lo||id.indexOf(i)!==-1&&[td,Pr].indexOf(u)!==-1||id.indexOf(u)!==-1&&i===Mr||bt.indexOf(i)!==-1&&bt.indexOf(u)!==-1||i===Gn&&bt.indexOf(u)!==-1||bt.concat(Qe).indexOf(i)!==-1&&u===Or&&cQ.indexOf(A[a])===-1||bt.concat(Qe).indexOf(u)!==-1&&i===Rr)return nA;if(i===Ca&&u===Ca){for(var g=t[s],m=1;g>0&&(g--,e[g]===Ca);)m++;if(m%2!==0)return nA}return i===io&&u===ao?nA:uo},hQ=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=dQ(A,e.lineBreak),n=t[0],r=t[1],s=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(r=r.map(function(a){return[Qe,on,nd].indexOf(a)!==-1?Kr:a}));var o=e.wordBreak==="keep-all"?s.map(function(a,i){return a&&A[i]>=19968&&A[i]<=40959}):void 0;return[n,r,o]},fQ=(function(){function A(e,t,n,r){this.codePoints=e,this.required=t===rd,this.start=n,this.end=r}return A.prototype.slice=function(){return HA.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),gQ=function(A,e){var t=to(A),n=hQ(t,e),r=n[0],s=n[1],o=n[2],a=t.length,i=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var u=nA;c<a&&(u=pQ(t,s,r,++c,o))===nA;);if(u!==nA||c===a){var h=new fQ(t,u,i,c);return i=c,{value:h,done:!1}}return{done:!0,value:null}}}};const cd=65533,ne=A=>A>=48&&A<=57,BQ=A=>A>=55296&&A<=57343,Xn=A=>ne(A)||A>=65&&A<=70||A>=97&&A<=102,wQ=A=>A>=97&&A<=122,mQ=A=>A>=65&&A<=90,CQ=A=>wQ(A)||mQ(A),bQ=A=>A>=128,po=A=>A===10||A===9||A===32,ho=A=>CQ(A)||bQ(A)||A===95,ld=A=>ho(A)||ne(A)||A===45,QQ=A=>A>=0&&A<=8||A===11||A>=14&&A<=31||A===127,Mt=(A,e)=>A!==92?!1:e!==10,fo=(A,e,t)=>A===45?ho(e)||Mt(e,t):ho(A)?!0:!!(A===92&&Mt(A,e)),Ua=(A,e,t)=>A===43||A===45?ne(e)?!0:e===46&&ne(t):ne(A===46?e:A),yQ=A=>{let e=0,t=1;(A[e]===43||A[e]===45)&&(A[e]===45&&(t=-1),e++);const n=[];for(;ne(A[e]);)n.push(A[e++]);const r=n.length?parseInt(HA(...n),10):0;A[e]===46&&e++;const s=[];for(;ne(A[e]);)s.push(A[e++]);const o=s.length,a=o?parseInt(HA(...s),10):0;(A[e]===69||A[e]===101)&&e++;let i=1;(A[e]===43||A[e]===45)&&(A[e]===45&&(i=-1),e++);const c=[];for(;ne(A[e]);)c.push(A[e++]);const u=c.length?parseInt(HA(...c),10):0;return t*(r+a*Math.pow(10,-o))*Math.pow(10,i*u)},UQ={type:2},EQ={type:3},kQ={type:4},FQ={type:13},vQ={type:8},_Q={type:21},xQ={type:9},SQ={type:10},IQ={type:11},TQ={type:12},HQ={type:14},go={type:23},LQ={type:1},DQ={type:25},RQ={type:24},OQ={type:26},PQ={type:27},MQ={type:28},KQ={type:29},NQ={type:31},Ea={type:32};var ka=(Le=class{static get(){return Le._pool.pop()||new Le}static release(e){Le._pool.length<Le.MAX_POOL_SIZE&&(e._reset(),Le._pool.push(e))}constructor(){this._value=[]}_reset(){this._value=[]}write(e){this._value=this._value.concat(to(e))}read(){const e=[];let t=this.consumeToken();for(;t!==Ea;)e.push(t),t=this.consumeToken();return e}consumeToken(){const e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ld(t)||Mt(n,r)){const s=fo(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:s}}break}case 36:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),FQ;break;case 39:return this.consumeStringToken(39);case 40:return UQ;case 41:return EQ;case 42:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),HQ;break;case 43:if(Ua(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return kQ;case 45:{const t=e,n=this.peekCodePoint(0),r=this.peekCodePoint(1);if(Ua(t,n,r))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(fo(t,n,r))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(n===45&&r===62)return this.consumeCodePoint(),this.consumeCodePoint(),RQ;break}case 46:if(Ua(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(this.peekCodePoint(0)===42)for(this.consumeCodePoint();;){let t=this.consumeCodePoint();if(t===42&&(t=this.consumeCodePoint(),t===47))return this.consumeToken();if(t===-1)return this.consumeToken()}break;case 58:return OQ;case 59:return PQ;case 60:if(this.peekCodePoint(0)===33&&this.peekCodePoint(1)===45&&this.peekCodePoint(2)===45)return this.consumeCodePoint(),this.consumeCodePoint(),DQ;break;case 64:if(fo(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2)))return{type:7,value:this.consumeName()};break;case 91:return MQ;case 92:if(Mt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return KQ;case 61:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),vQ;break;case 123:return IQ;case 125:return TQ;case 117:case 85:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1);return t===43&&(Xn(n)||n===63)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken()}case 124:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),xQ;if(this.peekCodePoint(0)===124)return this.consumeCodePoint(),_Q;break;case 126:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),SQ;break;case-1:return Ea}return po(e)?(this.consumeWhiteSpace(),NQ):ne(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):ho(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:HA(e)}}consumeCodePoint(){const e=this._value.shift();return typeof e=="undefined"?-1:e}reconsumeCodePoint(e){this._value.unshift(e)}peekCodePoint(e){return e>=this._value.length?-1:this._value[e]}consumeUnicodeRangeToken(){const e=[];let t=this.consumeCodePoint();for(;Xn(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();let n=!1;for(;t===63&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(HA(...e.map(s=>s===63?48:s)),16),end:parseInt(HA(...e.map(s=>s===63?70:s)),16)};const r=parseInt(HA(...e),16);if(this.peekCodePoint(0)===45&&Xn(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();const s=[];for(;Xn(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(HA(...s),16)}}else return{type:30,start:r,end:r}}consumeIdentLikeToken(){const e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===40?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===40?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}}consumeUrlToken(){const e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===-1)return{type:22,value:""};const t=this.peekCodePoint(0);if(t===39||t===34){const n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===-1||this.peekCodePoint(0)===41)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),go)}for(;;){const n=this.consumeCodePoint();if(n===-1||n===41)return{type:22,value:HA(...e)};if(po(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===-1||this.peekCodePoint(0)===41?(this.consumeCodePoint(),{type:22,value:HA(...e)}):(this.consumeBadUrlRemnants(),go);if(n===34||n===39||n===40||QQ(n))return this.consumeBadUrlRemnants(),go;if(n===92)if(Mt(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),go;else e.push(n)}}consumeWhiteSpace(){for(;po(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const e=this.consumeCodePoint();if(e===41||e===-1)return;Mt(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(e){let n="";for(;e>0;){const r=Math.min(5e4,e);n+=HA(...this._value.splice(0,r)),e-=r}return this._value.shift(),n}consumeStringToken(e){let t="",n=0;do{const r=this._value[n];if(r===-1||r===void 0||r===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(r===10)return this._value.splice(0,n),LQ;if(r===92){const s=this._value[n+1];s!==-1&&s!==void 0&&(s===10?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):Mt(r,s)&&(t+=this.consumeStringSlice(n),t+=HA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)}consumeNumber(){const e=[];let t=4,n=this.peekCodePoint(0);for((n===43||n===45)&&e.push(this.consumeCodePoint());ne(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);let r=this.peekCodePoint(1);if(n===46&&ne(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ne(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);const s=this.peekCodePoint(2);if((n===69||n===101)&&((r===43||r===45)&&ne(s)||ne(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ne(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[yQ(e),t]}consumeNumericToken(){const[e,t]=this.consumeNumber(),n=this.peekCodePoint(0);return fo(n,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:e,flags:t,unit:this.consumeName()}:n===37?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}}consumeEscapedCodePoint(){const e=this.consumeCodePoint();if(Xn(e)){let t=HA(e);for(;Xn(this.peekCodePoint(0))&&t.length<6;)t+=HA(this.consumeCodePoint());po(this.peekCodePoint(0))&&this.consumeCodePoint();const n=parseInt(t,16);return n===0||BQ(n)||n>1114111?cd:n}return e===-1?cd:e}consumeName(){let e="";for(;;){const t=this.consumeCodePoint();if(ld(t))e+=HA(t);else if(Mt(t,this.peekCodePoint(0)))e+=HA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}}},Le._pool=[],Le.MAX_POOL_SIZE=40,Le),ud=class Di{constructor(e){this._tokens=e}static create(e){const t=new ka;return t.write(e),new Di(t.read())}static parseValue(e){return Di.create(e).parseComponentValue()}static parseValues(e){return Di.create(e).parseComponentValues()}parseComponentValue(){let e=this.consumeToken();for(;e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);const t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const e=[];for(;;){const t=this.consumeComponentValue();if(t.type===32)return e;e.push(t)}}consumeComponentValue(){const e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e}consumeSimpleBlock(e){const t={type:e,values:[]};let n=this.consumeToken();for(;;){if(n.type===32||zQ(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}}consumeFunction(e){const t={name:e.value,values:[],type:18};for(;;){const n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}}consumeToken(){const e=this._tokens.shift();return typeof e=="undefined"?Ea:e}reconsumeToken(e){this._tokens.unshift(e)}};const ct=A=>A.type===15,zA=A=>A.type===17,j=A=>A.type===20,$Q=A=>A.type===0,Nr=(A,e)=>j(A)&&A.value===e,$r=A=>A.type!==31,VA=A=>A.type!==31&&A.type!==4,Ne=A=>{const e=[];let t=[];return A.forEach(n=>{if(n.type===4){t.length&&(e.push(t),t=[]);return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},zQ=(A,e)=>e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3,VQ=/(\d+(?:\.\d+)?|[+\-*/()])/g,dd=A=>{const e=A.match(VQ);if(!e)return NaN;const t=[],n=[],r={"+":1,"-":1,"*":2,"/":2};for(const o of e)if(/^\d+(?:\.\d+)?$/.test(o))t.push(parseFloat(o));else if(o==="(")n.push(o);else if(o===")"){for(;n.length&&n[n.length-1]!=="(";)t.push(n.pop());if(!n.length)return NaN;n.pop()}else{for(;n.length&&r[n[n.length-1]]>=r[o];)t.push(n.pop());n.push(o)}for(;n.length;){const o=n.pop();if(o==="(")return NaN;t.push(o)}const s=[];for(const o of t)if(typeof o=="number")s.push(o);else{const a=s.pop(),i=s.pop();if(i===void 0||a===void 0)return NaN;switch(o){case"+":s.push(i+a);break;case"-":s.push(i-a);break;case"*":s.push(i*a);break;case"/":s.push(a===0?NaN:i/a);break;default:return NaN}}return s.length===1?s[0]:NaN},xA=(A,e,t)=>Math.min(Math.max(A,e),t),ge=(A,e)=>[A[0]*e[0]+A[1]*e[1]+A[2]*e[2],A[3]*e[0]+A[4]*e[1]+A[5]*e[2],A[6]*e[0]+A[7]*e[1]+A[8]*e[2]],Kt=A=>ge([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],A),Fa=A=>ge([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],A),an=A=>A.map(e=>{const t=e<0?-1:1,n=Math.abs(e);return n>.0031308?t*(1.055*ye(n,1/2.4)-.055):12.92*e}),va=A=>A.map(e=>{const t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*ye((n+.055)/1.055,2.4)}),GQ=A=>{const[e,t,n]=an(Kt([A[0],A[1],A[2]]));return[e,t,n,A[3]]},ZQ=A=>{const[e,t,n]=Kt([A[0],A[1],A[2]]);return[xA(Math.round(e*255),0,255),xA(Math.round(t*255),0,255),xA(Math.round(n*255),0,255),A[3]]},Nt=A=>A.type===17||A.type===15,aA=A=>A.type===16||Nt(A)||pd(A),pd=A=>A.type===17&&A._calcPercentage!==void 0,XQ=A=>A.type===18&&A.name==="calc",WQ=A=>{const e=fd(A,0);if(!e)return null;const t=fd(A,100);if(!t)return null;const n=e.number,r=t.number-n;return r===0?e:{type:17,number:n,flags:4,_calcPercentage:r,_calcPixelOffset:n}},hd=A=>XQ(A)?WQ(A):aA(A)?A:null,fd=(A,e=0)=>{const t=n=>{let r="";for(const s of n)if(s.type!==31){if(s.type===18)if(s.name==="calc"){const o=t(s.values);if(o===null)return null;r+=`(${o})`}else return null;else if(s.type===17)r+=s.number.toString();else if(s.type===15)s.unit==="px"?r+=s.number.toString():s.unit==="rem"||s.unit==="em"?r+=(s.number*16).toString():r+=s.number.toString();else if(s.type===16)r+=(s.number/100*e).toString();else if(s.type===6){const o=s.value;o==="+"||o==="-"||o==="*"||o==="/"?r+=` ${o} `:o==="("?r+="(":o===")"&&(r+=")")}}return r};try{const n=t(A.values);if(n===null||n.trim()==="")return null;const r=dd(n);if(typeof r=="number"&&!isNaN(r))return{type:17,number:r,flags:4}}catch(n){return null}return null},gd=A=>A.length>1?[A[0],A[1]]:[A[0]],LA={type:17,number:0,flags:4},Qt={type:16,number:50,flags:4},$e={type:16,number:100,flags:4},zr=(A,e,t)=>{const[n,r]=A;return[J(n,e),J(typeof r!="undefined"?r:n,t)]},J=(A,e)=>{if(pd(A))return A._calcPercentage/100*e+A._calcPixelOffset;if(A.type===16)return A.number/100*e;if(ct(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},Bd="deg",wd="grad",md="rad",Cd="turn",Wn={name:"angle",parse:(A,e)=>{if(e.type===15)switch(e.unit){case Bd:return Math.PI*e.number/180;case wd:return Math.PI/200*e.number;case md:return e.number;case Cd:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},bd=A=>A.type===15&&(A.unit===Bd||A.unit===wd||A.unit===md||A.unit===Cd),Qd=A=>{switch(A.filter(j).map(e=>e.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LA,LA];case"to top":case"bottom":return ve(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LA,$e];case"to right":case"left":return ve(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$e,$e];case"to bottom":case"top":return ve(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$e,LA];case"to left":case"right":return ve(270)}return 0},ve=A=>Math.PI*A/180,yt=A=>(255&A)===0,EA=A=>{const e=255&A,t=255&A>>8,n=255&A>>16,r=255&A>>24;return e<255?`rgba(${r},${n},${t},${e/255})`:`rgb(${r},${n},${t})`},ze=(A,e,t,n)=>(A<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0,$t=(A,e)=>{if(A.type===17)return A.number;if(A.type===16){const t=e===3?1:255;return e===3?A.number/100*t:Math.round(A.number/100*t)}return 0},cn=A=>(A[0].type===20?A[0].value:"unknown")==="from",JQ=A=>ze(xA(Math.round(A[0]*255),0,255),xA(Math.round(A[1]*255),0,255),xA(Math.round(A[2]*255),0,255),xA(A[3],0,1)),_a=([A,e,t,n])=>{const r=an([A,e,t]);return ze(xA(Math.round(r[0]*255),0,255),xA(Math.round(r[1]*255),0,255),xA(Math.round(r[2]*255),0,255),n)},Vr=A=>{const e=Kt([A[0],A[1],A[2]]);return _a([e[0],e[1],e[2],A[3]])},jQ=(A,e)=>{if(cn(e.filter(VA)))throw new Error("Relative color not supported for lab()");const[t,n,r,s]=Bo(e),o=an(Kt(Co([t,n,r])));return ze(xA(Math.round(o[0]*255),0,255),xA(Math.round(o[1]*255),0,255),xA(Math.round(o[2]*255),0,255),s)},YQ=(A,e)=>{if(cn(e.filter(VA)))throw new Error("Relative color not supported for oklab()");const[t,n,r,s]=Bo(e),o=an(Kt(mo([t,n,r])));return ze(xA(Math.round(o[0]*255),0,255),xA(Math.round(o[1]*255),0,255),xA(Math.round(o[2]*255),0,255),s)},qQ=(A,e)=>{if(cn(e.filter(VA)))throw new Error("Relative color not supported for oklch()");const[t,n,r,s]=kd(e),o=an(Kt(mo(wo([t,n,r]))));return ze(xA(Math.round(o[0]*255),0,255),xA(Math.round(o[1]*255),0,255),xA(Math.round(o[2]*255),0,255),s)},Ay=(A,e)=>{if(cn(e.filter(VA)))throw new Error("Relative color not supported for lch()");const[t,n,r,s]=Ed(e),o=an(Kt(Co(wo([t,n,r]))));return ze(xA(Math.round(o[0]*255),0,255),xA(Math.round(o[1]*255),0,255),xA(Math.round(o[2]*255),0,255),s)},yd=(A,e)=>{const[t,n,r,s]=e.filter(VA);return[(t.type===17?ve(t.number):Wn.parse(A,t))/(Math.PI*2),aA(n)?n.number/100:0,aA(r)?r.number/100:0,typeof s!="undefined"&&aA(s)?J(s,1):1]},Ud=(A,e)=>{if(cn(e))throw new Error("Relative color not supported for hsl()");const[t,n,r,s]=yd(A,e),o=vd([t,n,r]);return ze(o[0]*255,o[1]*255,o[2]*255,n===0?1:s)},Ed=A=>{const e=A.filter(VA);return[aA(e[0])?e[0].number:0,aA(e[1])?e[1].number:0,zA(e[2])||ct(e[2])?e[2].number:0,typeof e[4]!="undefined"&&aA(e[4])?J(e[4],1):1]},Bo=A=>{const e=A.filter(VA);return[e[0].type===16?e[0].number/100:zA(e[0])?e[0].number:0,e[1].type===16?e[1].number/100:zA(e[1])?e[1].number:0,zA(e[2])||ct(e[2])?e[2].number:0,typeof e[4]!="undefined"&&aA(e[4])?J(e[4],1):1]},kd=A=>{const e=A.filter(VA);return[e[0].type===16?e[0].number/100:zA(e[0])?e[0].number:0,e[1].type===16?e[1].number/100:zA(e[1])?e[1].number:0,zA(e[2])||ct(e[2])?e[2].number:0,typeof e[4]!="undefined"&&aA(e[4])?J(e[4],1):1]},Fd=A=>ge([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],A),xa=A=>ge([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],A),Sa=(A,e,t)=>(t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<1/2?e:t<2/3?(e-A)*6*(2/3-t)+A:A),vd=([A,e,t])=>{if(e===0)return[t*255,t*255,t*255];const n=t<=.5?t*(e+1):t+e-t*e,r=t*2-n;return[Sa(r,n,A+1/3),Sa(r,n,A),Sa(r,n,A-1/3)]},wo=([A,e,t])=>(e<0&&(e=0),isNaN(t)&&(t=0),[A,e*Math.cos(t*Math.PI/180),e*Math.sin(t*Math.PI/180)]),mo=A=>ge([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],ge([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],A).map(e=>ye(e,3))),Co=A=>{const e=(A[0]+16)/116,t=A[1]/500+e,n=e-A[2]/200,r=24389/27,s=24/116,o=[(t>s?ye(t,3):(116*t-16)/r)*.3457/.3585,A[0]>8?ye(e,3):A[0]/r,(n>s?ye(n,3):(116*n-16)/r)*.2958/.3585];return xa([o[0],o[1],o[2]])},ey=(A,e)=>{const t=e.filter(VA);if(t.length===3){const[n,r,s]=t.map($t),o=va([n/255,r/255,s/255]),[a,i,c]=Fa([o[0],o[1],o[2]]);return[a,i,c,1]}if(t.length===4){const[n,r,s,o]=t.map($t),a=va([n/255,r/255,s/255]),[i,c,u]=Fa([a[0],a[1],a[2]]);return[i,c,u,o]}return[0,0,0,1]},ty=(A,e)=>{const[t,n,r,s]=yd(A,e),o=va(vd([t,n,r])),[a,i,c]=Fa([o[0],o[1],o[2]]);return[a,i,c,s]},ny=(A,e)=>{const[t,n,r,s]=Bo(e),[o,a,i]=Co([t,n,r]);return[o,a,i,s]},ry=(A,e)=>{const[t,n,r,s]=Ed(e),[o,a,i]=Co(wo([t,n,r]));return[o,a,i,s]},sy=(A,e)=>{const[t,n,r,s]=kd(e),[o,a,i]=mo(wo([t,n,r]));return[o,a,i,s]},oy=(A,e)=>{const[t,n,r,s]=Bo(e),[o,a,i]=mo([t,n,r]);return[o,a,i,s]},iy=A=>xa([A[0],A[1],A[2]]),_d=A=>A,ay=A=>{const[e,t,n]=Fd([A[0],A[2],A[3]]);return[e,t,n,A[3]]},xd=A=>Vr([A[0],A[1],A[2],A[3]]),cy=A=>{const e=iy([A[0],A[1],A[2]]);return Vr([e[0],e[1],e[2],A[3]])},ly=A=>ge([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],A),uy=A=>ge([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],A),dy=A=>A.map(e=>{const t=e<0?-1:1;return e*t<=.04045?e/12.92:t*ye((e+.055)/1.055,2.4)||0}),py=A=>an(A),hy=A=>{const e=dy([A[0],A[1],A[2]]);return ly([e[0],e[1],e[2]])},fy=A=>{const[e,t,n]=py(uy([A[0],A[1],A[2]]));return[e,t,n,A[3]]},gy=A=>{const e=hy([A[0],A[1],A[2]]);return Vr([e[0],e[1],e[2],A[3]])},By=A=>ge([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],A),wy=A=>ge([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],A),my=A=>{const e=A.map(t=>(t<0?-1:1)*ye(Math.abs(t),2.19921875));return[e[0],e[1],e[2]]},Cy=A=>{const e=A.map(t=>(t<0?-1:1)*ye(Math.abs(t),.4547069271758437));return[e[0],e[1],e[2]]},by=A=>{const[e,t,n]=Cy(By([A[0],A[1],A[2]]));return[e,t,n,A[3]]},Qy=A=>{const e=Kt(wy(my([A[0],A[1],A[2]])));return _a([e[0],e[1],e[2],A[3]])},yy=A=>ge([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],A),Uy=A=>ge([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],A),Ey=A=>A.map(e=>e<16/512?e/16:ye(e,1.8)),ky=A=>A.map(e=>e>1/512?ye(e,1/1.8):e*16),Fy=A=>{const e=Ey([A[0],A[1],A[2]]);return xa(yy([e[0],e[1],e[2]]))},vy=A=>{const[e,t,n]=ky(Uy(Fd([A[0],A[1],A[2]])));return[e,t,n,A[3]]},_y=A=>{const e=Fy([A[0],A[1],A[2]]);return Vr([e[0],e[1],e[2],A[3]])},bo=1.09929682680944,Sd=.018053968510807,xy=A=>A.map(function(e){return e<Sd*4.5?e/4.5:Math.pow((e+bo-1)/bo,1/.45)}),Sy=A=>A.map(function(e){return e>=Sd?bo*Math.pow(e,.45)-(bo-1):4.5*e}),Iy=A=>ge([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],A),Ty=A=>ge([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],A),Hy=A=>{const e=xy([A[0],A[1],A[2]]);return Iy([e[0],e[1],e[2]])},Ly=A=>{const[e,t,n]=Sy(Ty([A[0],A[1],A[2]]));return[e,t,n,A[3]]},Dy=A=>{const e=Hy([A[0],A[1],A[2]]);return Vr([e[0],e[1],e[2],A[3]])},zt={name:"color",parse:(A,e)=>{if(e.type===18){const t=My[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported color function "${e.name}"`);return t(A,e.values)}if(e.type===5){const[t,n,r,s]=Id(e);return ze(t,n,r,s)}if(e.type===20){const t=lt[e.value.toUpperCase()];if(typeof t!="undefined")return t}return lt.TRANSPARENT}},Id=A=>{if(A.value.length===3){const e=A.value.substring(0,1),t=A.value.substring(1,2),n=A.value.substring(2,3);return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16),1]}if(A.value.length===4){const e=A.value.substring(0,1),t=A.value.substring(1,2),n=A.value.substring(2,3),r=A.value.substring(3,4);return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16)/255]}if(A.value.length===6){const e=A.value.substring(0,2),t=A.value.substring(2,4),n=A.value.substring(4,6);return[parseInt(e,16),parseInt(t,16),parseInt(n,16),1]}if(A.value.length===8){const e=A.value.substring(0,2),t=A.value.substring(2,4),n=A.value.substring(4,6),r=A.value.substring(6,8);return[parseInt(e,16),parseInt(t,16),parseInt(n,16),parseInt(r,16)/255]}return[0,0,0,1]},Td=(A,e)=>{const t=e.filter(VA);if(cn(t))throw new Error("Relative color not supported for rgb()");if(t.length===3){const[n,r,s]=t.map($t);return ze(n,r,s,1)}if(t.length===4){const[n,r,s,o]=t.map($t);return ze(n,r,s,o)}return t.length===5&&t[3].type===6&&t[3].value==="/"?ze($t(t[0],0),$t(t[1],1),$t(t[2],2),$t(t[4],3)):0},Ry=(A,e)=>{const t=e.filter(VA),n=t[0].type===20?t[0].value:"unknown";if(cn(t)){const r=(U,E)=>{if(zA(E))return E.number;const v=y=>y==="r"||y==="x"?0:y==="g"||y==="y"?1:2;if(j(E))return U[v(E.value)];const F=y=>{const _=y.filter(VA);let R="(";for(const H of _)R+=H.type===18&&H.name==="calc"?F(H.values):zA(H)?H.number:H.type===6||j(H)?H.value:"";return R+=")",R};if(E.type===18){const y=E.values.filter(VA);if(E.name==="calc")return dd(F(y).replace(/r|x/,U[0].toString()).replace(/g|y/,U[1].toString()).replace(/b|z/,U[2].toString()))}return null},s=t[1].type===18?t[1].name:j(t[1])||t[1].type===5?"rgb":"unknown",o=j(t[2])?t[2].value:"unknown";let a=t[1].type===18?t[1].values:j(t[1])?[t[1]]:[];if(j(t[1])){if(typeof lt[t[1].value.toUpperCase()]=="undefined")throw new Error("Attempting to use unknown color in relative color 'from'");{const U=Jn(A,t[1].value),E=255&U,v=255&U>>8,F=255&U>>16;a=[{type:17,number:255&U>>24,flags:1},{type:17,number:F,flags:1},{type:17,number:v,flags:1},{type:17,number:E>1?E/255:E,flags:1}]}}else if(t[1].type===5){const[U,E,v,F]=Id(t[1]);a=[{type:17,number:U,flags:1},{type:17,number:E,flags:1},{type:17,number:v,flags:1},{type:17,number:F>1?F/255:F,flags:1}]}if(a.length===0)throw new Error("Attempting to use unknown color in relative color 'from'");if(o==="unknown")throw new Error("Attempting to use unknown colorspace in relative color 'to'");const i=Oy[s],c=Py[o],u=Hd[o];if(typeof i=="undefined")throw new Error(`Attempting to parse an unsupported color space "${s}" for color() function`);if(typeof c=="undefined")throw new Error(`Attempting to parse an unsupported color space "${o}" for color() function`);const h=c(i(A,a)),f=r(h,t[3]),g=r(h,t[4]),m=r(h,t[5]),b=t.length>6&&t[6].type===6&&t[6].value==="/"&&zA(t[7])?t[7].number:1;if(f===null||g===null||m===null)throw new Error("Invalid relative color in color() function");return u([f,g,m,b])}else{const r=n,s=Hd[r];if(typeof s=="undefined")throw new Error(`Attempting to parse an unsupported color space "${r}" for color() function`);return s([zA(t[1])?t[1].number:0,zA(t[2])?t[2].number:0,zA(t[3])?t[3].number:0,t.length>4&&t[4].type===6&&t[4].value==="/"&&zA(t[5])?t[5].number:1])}},Hd={srgb:JQ,"srgb-linear":_a,"display-p3":gy,"a98-rgb":Qy,"prophoto-rgb":_y,xyz:xd,"xyz-d50":cy,"xyz-d65":xd,rec2020:Dy},Oy={rgb:ey,hsl:ty,lab:ny,lch:ry,oklab:oy,oklch:sy},Py={srgb:GQ,"srgb-linear":ZQ,"display-p3":fy,"a98-rgb":by,"prophoto-rgb":vy,xyz:_d,"xyz-d50":ay,"xyz-d65":_d,rec2020:Ly},My={hsl:Ud,hsla:Ud,rgb:Td,rgba:Td,lch:Ay,oklch:qQ,oklab:YQ,lab:jQ,color:Ry},Jn=(A,e)=>zt.parse(A,ud.create(e).parseComponentValue()),lt={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},ln=A=>A.nodeType===Node.ELEMENT_NODE,Ld=A=>A.nodeType===Node.TEXT_NODE,un=A=>typeof A.className=="object",Gr=A=>ln(A)&&typeof A.style!="undefined"&&!un(A),Ky=A=>A.tagName==="INPUT",Ny=A=>A.tagName==="HTML",Dd=A=>A.tagName==="svg",Ia=A=>A.tagName==="BODY",Rd=A=>A.tagName==="CANVAS",Od=A=>A.tagName==="VIDEO",Ta=A=>A.tagName==="IMG",Pd=A=>A.tagName==="IFRAME",Md=A=>A.tagName==="STYLE",$y=A=>A.tagName==="SCRIPT",Qo=A=>A.tagName==="TEXTAREA",yo=A=>A.tagName==="SELECT",Zr=A=>A.tagName==="SLOT",zy=A=>A.tagName==="LI",Vy=A=>A.tagName==="OL",Kd=A=>!un(A)&&A.tagName.indexOf("-")>0,Gy=new Set(["IMG","VIDEO","AUDIO","CANVAS","IFRAME","INPUT","TEXTAREA","SELECT","BR","HR","META","LINK","BASE","COL","SOURCE","TRACK","WBR","AREA","PARAM","EMBED","OBJECT"]),Zy=A=>!un(A)&&!Gy.has(A.tagName),Ha={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){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 52;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}}},Ae=(A,e)=>(A&e)!==0;var Xy=class{constructor(){this.counters={}}getCounterValue(A){const e=this.counters[A];return e&&e.length?e[e.length-1]:1}getCounterValues(A){const e=this.counters[A];return e||[]}pop(A){A.forEach(e=>this.counters[e].pop())}parse(A){const e=A.counterIncrement,t=A.counterReset;let n=!0;e!==null&&e.forEach(s=>{const o=this.counters[s.counter];o&&s.increment!==0&&(n=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=s.increment)});const r=[];return n&&t.forEach(s=>{let o=this.counters[s.counter];r.push(s.counter),o||(o=this.counters[s.counter]=[]),o.push(s.reset)}),r}};const Nd={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"]},$d={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Wy={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Jy={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},jn=(A,e,t,n,r,s)=>A<e||A>t?Xr(A,r,s.length>0):n.integers.reduce((o,a,i)=>{for(;A>=a;)A-=a,o+=n.values[i];return o},"")+s,zd=(A,e,t,n)=>{let r="";do t||A--,r=n(A)+r,A/=e;while(A*e>=e);return r},DA=(A,e,t,n,r)=>{const s=t-e+1;return(A<0?"-":"")+(zd(Math.abs(A),s,n,o=>HA(Math.floor(o%s)+e))+r)},dn=(A,e,t=". ")=>{const n=e.length;return zd(Math.abs(A),n,!1,r=>e[Math.floor(r%n)])+t},jy=1,Yy=2,qy=4,A0=8,Ut=(A,e,t,n,r,s)=>{if(A<-9999||A>9999)return Xr(A,4,r.length>0);let o=Math.abs(A),a=r;if(o===0)return e[0]+a;for(let i=0;o>0&&i<=4;i++){const c=o%10;c===0&&Ae(s,jy)&&a!==""?a=e[c]+a:c>1||c===1&&i===0||c===1&&i===1&&Ae(s,Yy)||c===1&&i===1&&Ae(s,qy)&&A>100||c===1&&i>1&&Ae(s,A0)?a=e[c]+(i>0?t[i-1]:"")+a:c===1&&i>0&&(a=t[i-1]+a),o=Math.floor(o/10)}return(A<0?n:"")+a},Vd="十百千萬",Gd="拾佰仟萬",Zd="マイナス",La="마이너스",Xr=(A,e,t)=>{const n=t?". ":"",r=t?"、":"",s=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:const a=DA(A,48,57,!0,n);return a.length<4?`0${a}`:a;case 4:return dn(A,"〇一二三四五六七八九",r);case 6:return jn(A,1,3999,Nd,3,n).toLowerCase();case 7:return jn(A,1,3999,Nd,3,n);case 8:return DA(A,945,969,!1,n);case 9:return DA(A,97,122,!1,n);case 10:return DA(A,65,90,!1,n);case 11:return DA(A,1632,1641,!0,n);case 12:case 49:return jn(A,1,9999,$d,3,n);case 35:return jn(A,1,9999,$d,3,n).toLowerCase();case 13:return DA(A,2534,2543,!0,n);case 14:case 30:return DA(A,6112,6121,!0,n);case 15:return dn(A,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return dn(A,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Ut(A,"零一二三四五六七八九",Vd,"負",r,14);case 47:return Ut(A,"零壹貳參肆伍陸柒捌玖",Gd,"負",r,15);case 42:return Ut(A,"零一二三四五六七八九",Vd,"负",r,14);case 41:return Ut(A,"零壹贰叁肆伍陆柒捌玖",Gd,"负",r,15);case 26:return Ut(A,"〇一二三四五六七八九","十百千万",Zd,r,0);case 25:return Ut(A,"零壱弐参四伍六七八九","拾百千万",Zd,r,7);case 31:return Ut(A,"영일이삼사오육칠팔구","십백천만",La,s,7);case 33:return Ut(A,"零一二三四五六七八九","十百千萬",La,s,0);case 32:return Ut(A,"零壹貳參四五六七八九","拾百千",La,s,7);case 18:return DA(A,2406,2415,!0,n);case 20:return jn(A,1,19999,Jy,3,n);case 21:return DA(A,2790,2799,!0,n);case 22:return DA(A,2662,2671,!0,n);case 52:return jn(A,1,10999,Wy,3,n);case 23:return dn(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return dn(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return DA(A,3302,3311,!0,n);case 28:return dn(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return dn(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return DA(A,3792,3801,!0,n);case 37:return DA(A,6160,6169,!0,n);case 38:return DA(A,4160,4169,!0,n);case 39:return DA(A,2918,2927,!0,n);case 40:return DA(A,1776,1785,!0,n);case 43:return DA(A,3046,3055,!0,n);case 44:return DA(A,3174,3183,!0,n);case 45:return DA(A,3664,3673,!0,n);case 46:return DA(A,3872,3881,!0,n);default:return DA(A,48,57,!0,n)}},e0={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(A,e)=>e.map(t=>{if(j(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2;case"text":return 3}return 0})},t0={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Uo=(A,e)=>{const t=zt.parse(A,e[0]),n=e[1];return n&&aA(n)?{color:t,stop:n}:{color:t,stop:null}},Da=(A,e)=>{const t=A[0],n=A[A.length-1];t.stop===null&&(t.stop=LA),n.stop===null&&(n.stop=$e);const r=[];let s=0;for(let a=0;a<A.length;a++){const i=A[a].stop;if(i!==null){const c=J(i,e);c>s?r.push(c):r.push(s),s=c}else r.push(null)}let o=null;for(let a=0;a<r.length;a++){const i=r[a];if(i===null)o===null&&(o=a);else if(o!==null){const c=a-o,u=(i-r[o-1])/(c+1);for(let h=1;h<=c;h++)r[o+h-1]=u*h;o=null}}return A.map(({color:a},i)=>({color:a,stop:Math.max(Math.min(1,r[i]/e),0)}))},n0=(A,e,t)=>{const n=e/2,r=t/2,s=J(A[0],e)-n,o=r-J(A[1],t);return(Math.atan2(o,s)+Math.PI*2)%(Math.PI*2)},Xd=(A,e,t)=>{const n=typeof A=="number"?A:n0(A,e,t),r=Math.abs(e*Math.sin(n))+Math.abs(t*Math.cos(n)),s=e/2,o=t/2,a=r/2,i=Math.sin(n-Math.PI/2)*a,c=Math.cos(n-Math.PI/2)*a;return[r,s-c,s+c,o-i,o+i]},Ve=(A,e)=>Math.sqrt(A*A+e*e),Wd=(A,e,t,n,r)=>[[0,0],[0,e],[A,0],[A,e]].reduce((s,o)=>{const[a,i]=o,c=Ve(t-a,n-i);return(r?c<s.optimumDistance:c>s.optimumDistance)?{optimumCorner:o,optimumDistance:c}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner,r0=(A,e,t,n,r)=>{let s=0,o=0;switch(A.size){case 0:A.shape===0?s=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===1&&(s=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(t),Math.abs(t-r)));break;case 2:if(A.shape===0)s=o=Math.min(Ve(e,t),Ve(e,t-r),Ve(e-n,t),Ve(e-n,t-r));else if(A.shape===1){const a=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(e),Math.abs(e-n)),[i,c]=Wd(n,r,e,t,!0);s=Ve(i-e,(c-t)/a),o=a*s}break;case 1:A.shape===0?s=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===1&&(s=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(t),Math.abs(t-r)));break;case 3:if(A.shape===0)s=o=Math.max(Ve(e,t),Ve(e,t-r),Ve(e-n,t),Ve(e-n,t-r));else if(A.shape===1){const a=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(e),Math.abs(e-n)),[i,c]=Wd(n,r,e,t,!1);s=Ve(i-e,(c-t)/a),o=a*s}break}return Array.isArray(A.size)&&(s=J(A.size[0],n),o=A.size.length===2?J(A.size[1],r):s),[s,o]},Jd=(A,e)=>{let t=ve(180);const n=[];return Ne(e).forEach((r,s)=>{if(s===0){const a=r[0];if(a.type===20&&a.value==="to"){t=Qd(r);return}else if(bd(a)){t=Wn.parse(A,a);return}}const o=Uo(A,r);n.push(o)}),{angle:t,stops:n,type:1}},Eo=(A,e)=>{let t=ve(180);const n=[];return Ne(e).forEach((r,s)=>{if(s===0){const a=r[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=Qd(r);return}else if(bd(a)){t=(Wn.parse(A,a)+ve(270))%ve(360);return}}const o=Uo(A,r);n.push(o)}),{angle:t,stops:n,type:1}},s0=(A,e)=>{const t=ve(180),n=[];let r=1;const s=0,o=3,a=[];return Ne(e).forEach((i,c)=>{const u=i[0];if(c===0){if(j(u)&&u.value==="linear"){r=1;return}else if(j(u)&&u.value==="radial"){r=2;return}}if(u.type===18){if(u.name==="from"){const h=zt.parse(A,u.values[0]);n.push({stop:LA,color:h})}else if(u.name==="to"){const h=zt.parse(A,u.values[0]);n.push({stop:$e,color:h})}else if(u.name==="color-stop"){const h=u.values.filter(VA);if(h.length===2){const f=zt.parse(A,h[1]),g=h[0];zA(g)&&n.push({stop:{type:16,number:g.number*100,flags:g.flags},color:f})}}}}),r===1?{angle:(t+ve(180))%ve(360),stops:n,type:r}:{size:o,shape:s,stops:n,position:a,type:r}},jd="closest-side",Yd="farthest-side",qd="closest-corner",Ap="farthest-corner",ep="circle",tp="ellipse",np="cover",rp="contain",o0=(A,e)=>{let t=0,n=3;const r=[],s=[];return Ne(e).forEach((o,a)=>{let i=!0;if(a===0){let c=!1;i=o.reduce((u,h)=>{if(c)if(j(h))switch(h.value){case"center":return s.push(Qt),u;case"top":case"left":return s.push(LA),u;case"right":case"bottom":return s.push($e),u}else(aA(h)||Nt(h))&&s.push(h);else if(j(h))switch(h.value){case ep:return t=0,!1;case tp:return t=1,!1;case"at":return c=!0,!1;case jd:return n=0,!1;case np:case Yd:return n=1,!1;case rp:case qd:return n=2,!1;case Ap:return n=3,!1}else if(Nt(h)||aA(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return u},i)}if(i){const c=Uo(A,o);r.push(c)}}),{size:n,shape:t,stops:r,position:s,type:2}},ko=(A,e)=>{let t=0,n=3;const r=[],s=[];return Ne(e).forEach((o,a)=>{let i=!0;if(a===0?i=o.reduce((c,u)=>{if(j(u))switch(u.value){case"center":return s.push(Qt),!1;case"top":case"left":return s.push(LA),!1;case"right":case"bottom":return s.push($e),!1}else if(aA(u)||Nt(u))return s.push(u),!1;return c},i):a===1&&(i=o.reduce((c,u)=>{if(j(u))switch(u.value){case ep:return t=0,!1;case tp:return t=1,!1;case rp:case jd:return n=0,!1;case Yd:return n=1,!1;case qd:return n=2,!1;case np:case Ap:return n=3,!1}else if(Nt(u)||aA(u))return Array.isArray(n)||(n=[]),n.push(u),!1;return c},i)),i){const c=Uo(A,o);r.push(c)}}),{size:n,shape:t,stops:r,position:s,type:2}},Wr=(A,e)=>$(k({},Jd(A,e)),{type:3}),i0=A=>A.type===1,a0=A=>A.type===2,c0=A=>A.type===3,Fo={name:"image",parse:(A,e)=>{if(e.type===22){const t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(e.type===18){const t=op[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported image function "${e.name}"`);return t(A,e.values)}throw new Error(`Unsupported image type ${e.type}`)}};function sp(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!op[A.name])}const op={"linear-gradient":Jd,"-moz-linear-gradient":Eo,"-ms-linear-gradient":Eo,"-o-linear-gradient":Eo,"-webkit-linear-gradient":Eo,"radial-gradient":o0,"-moz-radial-gradient":ko,"-ms-radial-gradient":ko,"-o-radial-gradient":ko,"-webkit-radial-gradient":ko,"-webkit-gradient":s0,"repeating-linear-gradient":Wr,"-webkit-repeating-linear-gradient":Wr,"-moz-repeating-linear-gradient":Wr,"-ms-repeating-linear-gradient":Wr,"-o-repeating-linear-gradient":Wr},l0={name:"background-image",initialValue:"none",type:1,prefix:!1,skipCache:!0,parse:(A,e)=>{if(e.length===0)return[];const t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(n=>VA(n)&&sp(n)).map(n=>Fo.parse(A,n))}},u0={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(A,e)=>e.map(t=>{if(j(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})},d0={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(A,e)=>Ne(e).map(t=>t.map(hd).filter(n=>n!==null)).map(gd)},p0={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(A,e)=>Ne(e).map(t=>t.filter(j).map(n=>n.value).join(" ")).map(h0)},h0=A=>{switch(A){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}},f0={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(A,e)=>Ne(e).map(t=>t.map(n=>g0(n)?n:hd(n)).filter(n=>n!==null))},g0=A=>j(A)||aA(A),vo=A=>({name:`border-${A}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),B0=vo("top"),w0=vo("right"),m0=vo("bottom"),C0=vo("left"),_o=A=>({name:`border-${A}-radius`,initialValue:"0 0",prefix:!1,type:1,parse:(e,t)=>gd(t.filter(aA))}),b0=_o("top-left"),Q0=_o("top-right"),y0=_o("bottom-right"),U0=_o("bottom-left"),xo=A=>({name:`border-${A}-style`,initialValue:"solid",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),E0=xo("top"),k0=xo("right"),F0=xo("bottom"),v0=xo("left"),So=A=>({name:`border-${A}-width`,initialValue:"0",type:0,prefix:!1,parse:(e,t)=>ct(t)?t.number:0}),_0=So("top"),x0=So("right"),S0=So("bottom"),I0=So("left"),Ra={type:0},Oa=A=>{const[e]=A;return e?j(e)?e.value==="farthest-side"?"farthest-side":"closest-side":aA(e)?e:"closest-side":"closest-side"},ip=A=>{let e=null,t=null;for(const n of A)if(j(n))switch(n.value){case"left":e=LA;break;case"right":e=$e;break;case"top":t=LA;break;case"bottom":t=$e;break;case"center":e===null?e=Qt:t===null&&(t=Qt);break}else aA(n)&&(e===null?e=n:t===null&&(t=n));return{cx:e!=null?e:Qt,cy:t!=null?t:Qt}},T0=A=>{var r,s,o,a;const e=[];for(const i of A)if(i.type!==31){if(j(i)&&i.value==="round")break;aA(i)&&e.push(i)}const t=(r=e[0])!=null?r:LA,n=(s=e[1])!=null?s:t;return{type:1,top:t,right:n,bottom:(o=e[2])!=null?o:t,left:(a=e[3])!=null?a:n}},H0=A=>{const e=A.filter($r),t=e.findIndex(s=>Nr(s,"at")),n=t===-1?e:e.slice(0,t),r=t===-1?[]:e.slice(t+1);return k({type:2,radius:Oa(n)},ip(r))},L0=A=>{const e=A.filter($r),t=e.findIndex(s=>Nr(s,"at")),n=t===-1?e:e.slice(0,t),r=t===-1?[]:e.slice(t+1);return k({type:3,rx:Oa(n.slice(0,1)),ry:Oa(n.slice(1,2))},ip(r))},D0=A=>{const e=Ne(A),t=[];for(const n of e){if(n.length===1&&j(n[0]))continue;const r=n.filter(aA);r.length>=2&&t.push([r[0],r[1]])}return{type:4,points:t}},R0=A=>{const e=A.find(t=>t.type===0);return e?{type:5,d:e.value}:Ra},O0={name:"clip-path",initialValue:"none",prefix:!1,type:0,parse:(A,e)=>{if(j(e)&&e.value==="none")return Ra;if(e.type===18)switch(e.name){case"inset":return T0(e.values);case"circle":return H0(e.values);case"ellipse":return L0(e.values);case"polygon":return D0(e.values);case"path":return R0(e.values)}return Ra}},P0={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},M0={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"rtl":return 1;default:return 0}}},K0={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(A,e)=>e.filter(j).reduce((t,n)=>t|N0(n.value),0)},N0=A=>{switch(A){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},ap={name:"float",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},$0={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(A,e)=>e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0},z0={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"strict":return"strict";default:return"normal"}}},V0={name:"line-height",initialValue:"normal",prefix:!1,type:4},Pa=(A,e)=>j(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:aA(A)?J(A,e):e,G0={name:"list-style-image",initialValue:"none",type:0,prefix:!1,skipCache:!0,parse:(A,e)=>e.type===20&&e.value==="none"?null:Fo.parse(A,e)},Z0={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"inside":return 0;default:return 1}}},Io=A=>({name:`margin-${A}`,initialValue:"0",prefix:!1,type:4}),X0=Io("top"),W0=Io("right"),J0=Io("bottom"),j0=Io("left"),cp={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(A,e)=>e.filter(j).map(t=>{switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},Y0={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"break-word":return"break-word";default:return"normal"}}},To=A=>({name:`padding-${A}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),q0=To("top"),AU=To("right"),eU=To("bottom"),tU=To("left"),nU={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},rU={name:"position",initialValue:"static",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},sU={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.length===1&&Nr(e[0],"none")?[]:Ne(e).map(t=>{const n={color:lt.TRANSPARENT,offsetX:LA,offsetY:LA,blur:LA};let r=0;for(let s=0;s<t.length;s++){const o=t[s];Nt(o)?(r===0?n.offsetX=o:r===1?n.offsetY=o:n.blur=o,r++):n.color=zt.parse(A,o)}return n})},oU={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},iU={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(A,e)=>{if(e.type===20&&e.value==="none")return null;if(e.type===18){const t=aU[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported transform function "${e.name}"`);return t(A,e.values)}return null}},aU={matrix:(A,e)=>{const t=e.filter(n=>n.type===17).map(n=>n.number);return t.length===6?t:null},matrix3d:(A,e)=>{const t=e.filter(c=>c.type===17).map(c=>c.number),[n,r,{},{},s,o,{},{},{},{},{},{},a,i]=t;return t.length===16?[n,r,s,o,a,i]:null},rotate:(A,e)=>{if(e.length!==1)return null;const t=e[0];let n=0;if(t.type===17&&t.number===0)n=0;else if(t.type===15)n=Wn.parse(A,t);else return null;const r=Math.cos(n),s=Math.sin(n);return[r,s,-s,r,0,0]}},lp={type:16,number:50,flags:4},cU=[lp,lp],lU={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(A,e)=>{const t=e.filter(aA);return t.length!==2?cU:[t[0],t[1]]}},uU={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(A,e)=>e.type===20&&e.value==="none"?null:e.type===17&&e.number===0?0:e.type===15?Wn.parse(A,e)*180/Math.PI:null},dU={name:"visibility",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},pU={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"break-all":return"break-all";case"keep-all":return"keep-all";default:return"normal"}}},hU={name:"white-space",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"pre":return"pre";case"nowrap":return"nowrap";case"pre-wrap":return"pre-wrap";case"pre-line":return"pre-line";default:return"normal"}}},Ho=A=>A!==0,Ma=A=>A===3||A===4,fU={name:"writing-mode",initialValue:"horizontal-tb",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"vertical-rl":return 1;case"vertical-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4;default:return 0}}},gU={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>{if(e.type===20)return{auto:!0,order:0};if(zA(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},up={name:"time",parse:(A,e)=>{if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},BU={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(A,e)=>zA(e)?e.number:1},dp={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pp={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(A,e)=>e.filter(j).map(t=>{switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(t=>t!==0)},wU={name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},mU={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>{if(j(e))switch(e.value){case"auto":return"auto";case"from-font":return"from-font"}return ct(e)?e.number:"auto"}},CU={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>j(e)&&e.value==="auto"?"auto":ct(e)?e.number:"auto"},bU={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(A,e)=>{const t=[],n=[],r=[];let s=!1;return e.forEach(o=>{switch(o.type){case 20:t.push(o.value);break;case 0:s=!0,t.push(o.value);break;case 17:t.push(o.number.toString());break;case 4:n.push(t.join(" ")),r.push(s),s=!1,t.length=0;break}}),t.length&&(n.push(t.join(" ")),r.push(s)),n.map((o,a)=>r[a]||o.indexOf(" ")!==-1?`'${o.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\a ").replace(/\r/g,"\\d ").replace(/\f/g,"\\c ")}'`:o)}},QU={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},yU={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(A,e)=>{if(zA(e))return e.number;if(j(e))switch(e.value){case"bold":return 700;default:return 400}return 400}},UU={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.filter(j).map(t=>t.value)},EU={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},kU={name:"content",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>{if(e.length===0)return[];const t=e[0];return t.type===20&&t.value==="none"?[]:e}},hp=(A,e)=>{const t=[],n=A.filter($r);for(let r=0;r<n.length;r++){const s=n[r],o=n[r+1];if(s.type===20){const a=o&&zA(o)?o.number:e;t.push([s.value,a])}}return t},FU={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>{if(e.length===0)return null;const t=e[0];return t.type===20&&t.value==="none"?null:hp(e,1).map(([n,r])=>({counter:n,increment:r}))}},vU={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>e.length===0?[]:hp(e,0).filter(([t])=>t!=="none").map(([t,n])=>({counter:t,reset:n}))},_U={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(A,e)=>e.filter(ct).map(t=>up.parse(A,t))},xU={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>{if(e.length===0)return null;const t=e[0];if(t.type===20&&t.value==="none")return null;const n=[],r=e.filter($Q);if(r.length%2!==0)return null;for(let s=0;s<r.length;s+=2){const o=r[s].value,a=r[s+1].value;n.push({open:o,close:a})}return n}},fp=(A,e,t)=>{if(!A)return"";const n=A[Math.min(e,A.length-1)];return n?t?n.open:n.close:""},SU={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.length===1&&Nr(e[0],"none")?[]:Ne(e).map(t=>{const n={color:255,offsetX:LA,offsetY:LA,blur:LA,spread:LA,inset:!1};let r=0;for(let s=0;s<t.length;s++){const o=t[s];Nr(o,"inset")?n.inset=!0:Nt(o)?(r===0?n.offsetX=o:r===1?n.offsetY=o:r===2?n.blur=o:n.spread=o,r++):n.color=zt.parse(A,o)}return n})},IU={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(A,e)=>{const t=[0,1,2],n=[];return e.filter(j).forEach(r=>{switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),t.forEach(r=>{n.indexOf(r)===-1&&n.push(r)}),n}},TU={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},HU={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(A,e)=>ct(e)?e.number:0},LU={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(A,e)=>e.type===20&&e.value==="none"?0:e.type===17?Math.max(0,Math.floor(e.number)):0},DU={name:"object-fit",initialValue:"fill",prefix:!1,type:1,parse:(A,e)=>e.filter(j).reduce((t,n)=>t|RU(n.value),0)},RU=A=>{switch(A){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},OU={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"ellipsis":return 1;default:return 0}}},PU={name:"image-rendering",initialValue:"auto",prefix:!1,type:2,parse:(A,e)=>{switch(e.toLowerCase()){case"crisp-edges":case"-webkit-crisp-edges":case"-moz-crisp-edges":return 1;case"pixelated":case"-webkit-optimize-contrast":return 2;case"smooth":case"high-quality":return 3;default:return 0}}},GA={NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"},MU=new Set(Object.values(GA)),KU={name:"mix-blend-mode",initialValue:"normal",type:2,prefix:!1,parse:(A,e)=>MU.has(e)?e:GA.NORMAL},NU={name:"filter",initialValue:"none",prefix:!1,type:1,parse:(A,e)=>{if(e.length===1&&e[0].type===20&&e[0].value==="none")return null;const t=[];for(const n of e)if(n.type===18){const r=n,s=$U(r.values);switch(r.name){case"blur":t.push(`blur(${s}px)`);break;case"brightness":case"contrast":case"invert":case"opacity":case"saturate":case"sepia":t.push(`${r.name}(${s})`);break;case"grayscale":t.push(`grayscale(${s})`);break;case"hue-rotate":t.push(`hue-rotate(${s}deg)`);break;case"drop-shadow":t.push(`drop-shadow(${s})`);break}}return t.length>0?t.join(" "):null}},$U=A=>{const e=[];for(const t of A)t.type!==31&&(t.type===15?e.push(`${t.number}${t.unit}`):t.type===17?e.push(`${t.number}`):t.type===16?e.push(`${t.number}%`):t.type===20?e.push(t.value):t.type===5&&e.push(`#${t.value}`));return e.join(" ")},zU={name:"font-variant-ligatures",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"none":return 1;case"common-ligatures":return 2;case"no-common-ligatures":return 3;case"discretionary-ligatures":return 4;case"no-discretionary-ligatures":return 5;case"historical-ligatures":return 6;case"no-historical-ligatures":return 7;case"contextual":return 8;case"no-contextual":return 9;default:return 0}}},VU={name:"zoom",initialValue:"1",type:0,prefix:!1,parse:(A,e)=>e.type===16?Math.max(0,e.number/100):e.type===17?Math.max(0,e.number):1},GU={name:"object-position",initialValue:"50% 50%",prefix:!1,type:1,parse:(A,e)=>{const t=[];let n=0;for(;n<e.length&&t.length<2;){const r=e[n];if(j(r))switch(r.value){case"left":case"top":t.push(LA);break;case"center":t.push(Qt);break;case"right":case"bottom":t.push($e);break}else aA(r)&&t.push(r);n++}for(;t.length<2;)t.push(Qt);return[t[0],t[1]]}},ZU=new Set(Object.values({NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"})),XU={name:"background-blend-mode",initialValue:"normal",prefix:!1,type:1,parse:(A,e)=>{const t=[],n=e.filter(VA);for(const r of n)j(r)&&ZU.has(r.value)&&t.push(r.value);return t.length>0?t:["normal"]}},WU={name:"border-image-source",initialValue:"none",prefix:!1,type:1,skipCache:!0,parse:(A,e)=>{if(e.length===0)return null;const t=e.filter(n=>VA(n)&&sp(n));return t.length===0?null:Fo.parse(A,t[0])}},JU=A=>{const e=[...A];return e.length===1?e.push(e[0],e[0],e[0]):e.length===2?e.push(e[0],e[1]):e.length===3&&e.push(e[1]),e.slice(0,4)},jU={name:"border-image-slice",initialValue:"100%",prefix:!1,type:1,parse:(A,e)=>{const t=e.filter($r),n=[];let r=!1,s="percent";for(const u of t){if(j(u)&&u.value==="fill"){r=!0;continue}u.type===17?(n.push(u.number),s="number"):u.type===16&&(n.push(u.number),s="percent")}const[o,a,i,c]=JU(n.length>0?n:[100]);return{top:o,right:a,bottom:i,left:c,fill:r,unit:s}}},YU=A=>{switch(A){case"repeat":return 1;case"round":return 2;case"space":return 3;default:return 0}},qU={name:"border-image-repeat",initialValue:"stretch",prefix:!1,type:1,parse:(A,e)=>{var s,o;const t=e.filter($r),n=[];for(const a of t)j(a)&&n.push(YU(a.value));const r=(s=n[0])!=null?s:0;return{horizontal:r,vertical:(o=n[1])!=null?o:r}}},AE={name:"box-decoration-break",initialValue:"slice",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"clone":return 1;default:return 0}}},eE=1e4;var tE=class{constructor(A){this.styles=A}get topColor(){return this.styles.borderTopColor}get rightColor(){return this.styles.borderRightColor}get bottomColor(){return this.styles.borderBottomColor}get leftColor(){return this.styles.borderLeftColor}get topStyle(){return this.styles.borderTopStyle}get rightStyle(){return this.styles.borderRightStyle}get bottomStyle(){return this.styles.borderBottomStyle}get leftStyle(){return this.styles.borderLeftStyle}get topWidth(){return this.styles.borderTopWidth}get rightWidth(){return this.styles.borderRightWidth}get bottomWidth(){return this.styles.borderBottomWidth}get leftWidth(){return this.styles.borderLeftWidth}get topLeftRadius(){return this.styles.borderTopLeftRadius}get topRightRadius(){return this.styles.borderTopRightRadius}get bottomRightRadius(){return this.styles.borderBottomRightRadius}get bottomLeftRadius(){return this.styles.borderBottomLeftRadius}get imageSource(){return this.styles.borderImageSource}get imageSlice(){return this.styles.borderImageSlice}get imageRepeat(){return this.styles.borderImageRepeat}get boxShadow(){return this.styles.boxShadow}},nE=class{constructor(A){this.styles=A}get color(){return this.styles.backgroundColor}get image(){return this.styles.backgroundImage}get clip(){return this.styles.backgroundClip}get origin(){return this.styles.backgroundOrigin}get position(){return this.styles.backgroundPosition}get repeat(){return this.styles.backgroundRepeat}get size(){return this.styles.backgroundSize}get blendMode(){return this.styles.backgroundBlendMode}},rE=class{constructor(A){this.styles=A}get family(){return this.styles.fontFamily}get size(){return this.styles.fontSize}get style(){return this.styles.fontStyle}get variant(){return this.styles.fontVariant}get weight(){return this.styles.fontWeight}get ligatures(){return this.styles.fontVariantLigatures}get color(){return this.styles.color}get letterSpacing(){return this.styles.letterSpacing}get lineHeight(){return this.styles.lineHeight}get textAlign(){return this.styles.textAlign}get textTransform(){return this.styles.textTransform}get textOverflow(){return this.styles.textOverflow}get textShadow(){return this.styles.textShadow}get textDecorationColor(){return this.styles.textDecorationColor}get textDecorationLine(){return this.styles.textDecorationLine}get textDecorationStyle(){return this.styles.textDecorationStyle}get textDecorationThickness(){return this.styles.textDecorationThickness}get textUnderlineOffset(){return this.styles.textUnderlineOffset}get wordBreak(){return this.styles.wordBreak}get lineBreak(){return this.styles.lineBreak}get overflowWrap(){return this.styles.overflowWrap}get writingMode(){return this.styles.writingMode}get direction(){return this.styles.direction}get webkitTextStrokeColor(){return this.styles.webkitTextStrokeColor}get webkitTextStrokeWidth(){return this.styles.webkitTextStrokeWidth}get webkitLineClamp(){return this.styles.webkitLineClamp}get paintOrder(){return this.styles.paintOrder}},sE=class{constructor(A){this.styles=A}get display(){return this.styles.display}get position(){return this.styles.position}get float(){return this.styles.float}get zIndex(){return this.styles.zIndex}get marginTop(){return this.styles.marginTop}get marginRight(){return this.styles.marginRight}get marginBottom(){return this.styles.marginBottom}get marginLeft(){return this.styles.marginLeft}get paddingTop(){return this.styles.paddingTop}get paddingRight(){return this.styles.paddingRight}get paddingBottom(){return this.styles.paddingBottom}get paddingLeft(){return this.styles.paddingLeft}get overflowX(){return this.styles.overflowX}get overflowY(){return this.styles.overflowY}get opacity(){return this.styles.opacity}get visibility(){return this.styles.visibility}get transform(){return this.styles.transform}get transformOrigin(){return this.styles.transformOrigin}get rotate(){return this.styles.rotate}get zoom(){return this.styles.zoom}get clipPath(){return this.styles.clipPath}get mixBlendMode(){return this.styles.mixBlendMode}get filter(){return this.styles.filter}get imageRendering(){return this.styles.imageRendering}get objectFit(){return this.styles.objectFit}get objectPosition(){return this.styles.objectPosition}get boxDecorationBreak(){return this.styles.boxDecorationBreak}get listStyleImage(){return this.styles.listStyleImage}get listStylePosition(){return this.styles.listStylePosition}get listStyleType(){return this.styles.listStyleType}get animationDuration(){return this.styles.animationDuration}isVisible(){return this.styles.isVisible()}isTransparent(){return this.styles.isTransparent()}isTransformed(){return this.styles.isTransformed()}isPositioned(){return this.styles.isPositioned()}isPositionedWithZIndex(){return this.styles.isPositionedWithZIndex()}isFloating(){return this.styles.isFloating()}isInlineLevel(){return this.styles.isInlineLevel()}},oE=(Fn=class{get border(){var e;return(e=this._border)!=null?e:this._border=new tE(this)}get background(){var e;return(e=this._background)!=null?e:this._background=new nE(this)}get font(){var e;return(e=this._font)!=null?e:this._font=new rE(this)}get layout(){var e;return(e=this._layout)!=null?e:this._layout=new sE(this)}constructor(e,t){var s,o;const n=Fn.standardProps;if(t.display==="none"){this.display=0;for(const[i,c]of n)i!=="display"&&(this[i]=Be(e,c,void 0));this.float=Be(e,ap,void 0),this.textDecorationColor=Be(e,dp,void 0),this.textDecorationLine=Be(e,pp,void 0);const a=Be(e,cp,void 0);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0];return}for(const[a,i,c]of n)this[a]=Be(e,i,t[c]);this.float=Be(e,ap,t.cssFloat),this.textDecorationColor=Be(e,dp,(s=t.textDecorationColor)!=null?s:t.color),this.textDecorationLine=Be(e,pp,(o=t.textDecorationLine)!=null?o:t.textDecoration);const r=Be(e,cp,t.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0]}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===0}isTransparent(){return yt(this.backgroundColor)}isTransformed(){return this.transform!==null||this.rotate!==null}isPositioned(){return this.position!==0}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return this.float!==0}isInlineLevel(){return Ae(this.display,4)||Ae(this.display,33554432)||Ae(this.display,268435456)||Ae(this.display,536870912)||Ae(this.display,67108864)||Ae(this.display,134217728)}},Fn.standardProps=[["animationDuration",_U,"animationDuration"],["backgroundClip",e0,"backgroundClip"],["backgroundColor",t0,"backgroundColor"],["backgroundImage",l0,"backgroundImage"],["backgroundOrigin",u0,"backgroundOrigin"],["backgroundPosition",d0,"backgroundPosition"],["backgroundRepeat",p0,"backgroundRepeat"],["backgroundSize",f0,"backgroundSize"],["borderTopColor",B0,"borderTopColor"],["borderRightColor",w0,"borderRightColor"],["borderBottomColor",m0,"borderBottomColor"],["borderLeftColor",C0,"borderLeftColor"],["borderTopLeftRadius",b0,"borderTopLeftRadius"],["borderTopRightRadius",Q0,"borderTopRightRadius"],["borderBottomRightRadius",y0,"borderBottomRightRadius"],["borderBottomLeftRadius",U0,"borderBottomLeftRadius"],["borderTopStyle",E0,"borderTopStyle"],["borderRightStyle",k0,"borderRightStyle"],["borderBottomStyle",F0,"borderBottomStyle"],["borderLeftStyle",v0,"borderLeftStyle"],["borderTopWidth",_0,"borderTopWidth"],["borderRightWidth",x0,"borderRightWidth"],["borderBottomWidth",S0,"borderBottomWidth"],["borderLeftWidth",I0,"borderLeftWidth"],["boxShadow",SU,"boxShadow"],["clipPath",O0,"clipPath"],["color",P0,"color"],["direction",M0,"direction"],["display",K0,"display"],["fontFamily",bU,"fontFamily"],["fontSize",QU,"fontSize"],["fontStyle",EU,"fontStyle"],["fontVariant",UU,"fontVariant"],["fontWeight",yU,"fontWeight"],["letterSpacing",$0,"letterSpacing"],["lineBreak",z0,"lineBreak"],["lineHeight",V0,"lineHeight"],["listStyleImage",G0,"listStyleImage"],["listStylePosition",Z0,"listStylePosition"],["listStyleType",Ha,"listStyleType"],["marginTop",X0,"marginTop"],["marginRight",W0,"marginRight"],["marginBottom",J0,"marginBottom"],["marginLeft",j0,"marginLeft"],["opacity",BU,"opacity"],["overflowWrap",Y0,"overflowWrap"],["paddingTop",q0,"paddingTop"],["paddingRight",AU,"paddingRight"],["paddingBottom",eU,"paddingBottom"],["paddingLeft",tU,"paddingLeft"],["paintOrder",IU,"paintOrder"],["position",rU,"position"],["textAlign",nU,"textAlign"],["textDecorationStyle",wU,"textDecorationStyle"],["textDecorationThickness",mU,"textDecorationThickness"],["textUnderlineOffset",CU,"textUnderlineOffset"],["textShadow",sU,"textShadow"],["textTransform",oU,"textTransform"],["textOverflow",OU,"textOverflow"],["transform",iU,"transform"],["transformOrigin",lU,"transformOrigin"],["rotate",uU,"rotate"],["visibility",dU,"visibility"],["webkitTextStrokeColor",TU,"webkitTextStrokeColor"],["webkitTextStrokeWidth",HU,"webkitTextStrokeWidth"],["webkitLineClamp",LU,"webkitLineClamp"],["wordBreak",pU,"wordBreak"],["whiteSpace",hU,"whiteSpace"],["writingMode",fU,"writingMode"],["zIndex",gU,"zIndex"],["objectFit",DU,"objectFit"],["imageRendering",PU,"imageRendering"],["mixBlendMode",KU,"mixBlendMode"],["filter",NU,"filter"],["fontVariantLigatures",zU,"fontVariantLigatures"],["zoom",VU,"zoom"],["objectPosition",GU,"objectPosition"],["backgroundBlendMode",XU,"backgroundBlendMode"],["borderImageSource",WU,"borderImageSource"],["borderImageSlice",jU,"borderImageSlice"],["borderImageRepeat",qU,"borderImageRepeat"],["boxDecorationBreak",AE,"boxDecorationBreak"]],Fn),iE=class{constructor(A,e){this.content=Be(A,kU,e.content),this.quotes=Be(A,xU,e.quotes)}},gp=class{constructor(A,e){this.counterIncrement=Be(A,FU,e.counterIncrement),this.counterReset=Be(A,vU,e.counterReset)}};const Bp=new Map,Be=(A,e,t)=>{let n=t!==null&&typeof t!="undefined"?t.toString():e.initialValue;n.trim()===""&&(n=e.initialValue);let r=Bp.get(e);if(r){const i=r.get(n);if(i!==void 0)return r.delete(n),r.set(n,i),i}const s=ka.get();s.write(n);const o=new ud(s.read());ka.release(s);const a=(()=>{switch(e.type){case 2:{const i=o.parseComponentValue();return e.parse(A,j(i)?i.value:e.initialValue)}case 0:return e.parse(A,o.parseComponentValue());case 1:return e.parse(A,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return Wn.parse(A,o.parseComponentValue());case"color":return zt.parse(A,o.parseComponentValue());case"image":return Fo.parse(A,o.parseComponentValue());case"length":{const i=o.parseComponentValue();return Nt(i)?i:LA}case"length-percentage":{const i=o.parseComponentValue();return aA(i)?i:LA}case"time":return up.parse(A,o.parseComponentValue())}}})();if(r||(r=new Map,Bp.set(e,r)),!(e.skipCache||e.type===3&&e.format==="image")){if(r.size>=200){const i=r.keys().next().value;r.delete(i)}r.set(n,a)}return a},aE="data-html2canvas-debug",cE=A=>{if(typeof A.getAttribute!="function")return 0;switch(A.getAttribute(aE)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ka=(A,e)=>{const t=cE(A);return t===1||e===t},lE="data-html2canvas-ignore";var uE=class{constructor(A,e,t){this.cloneNodeFn=A,this.options=e,this.context=t}appendChildNode(A,e,t){this.safeAppendClonedChild(A,e,t)}cloneChildNodes(A,e,t){A.shadowRoot&&e.shadowRoot?(this.cloneShadowDOMChildren(A.shadowRoot,e.shadowRoot,t),this.cloneLightDOMChildren(A,e,t)):A.shadowRoot&&!e.shadowRoot?this.cloneShadowDOMAsLightDOM(A.shadowRoot,e,t):this.cloneLightDOMChildren(A,e,t)}shouldCloneChild(A){return!ln(A)||!$y(A)&&!A.hasAttribute("data-html2canvas-ignore")&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A))}shouldCloneStyleElement(A){return!this.options.copyStyles||!ln(A)||!Md(A)}safeAppendClonedChild(A,e,t){this.shouldCloneChild(e)&&this.shouldCloneStyleElement(e)&&A.appendChild(this.cloneNodeFn(e,t))}cloneAssignedNodes(A,e,t){A.forEach(n=>{this.safeAppendClonedChild(e,n,t)})}cloneSlotFallbackContent(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)this.safeAppendClonedChild(e,n,t)}cloneSlotElement(A,e,t){if(!Zr(A))return;const n=A;if(typeof n.assignedNodes!="function"){this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",A),this.cloneSlotFallbackContent(A,e,t);return}const r=n.assignedNodes();if(!r||!Array.isArray(r)){this.context.logger.warn("assignedNodes() did not return a valid array",A),this.cloneSlotFallbackContent(A,e,t);return}r.length>0?this.cloneAssignedNodes(r,e,t):this.cloneSlotFallbackContent(A,e,t)}cloneShadowDOMChildren(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)ln(n)&&Zr(n)?this.cloneSlotElement(n,e,t):this.safeAppendClonedChild(e,n,t)}cloneLightDOMChildren(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)this.appendChildNode(e,n,t)}cloneSlotElementAsLightDOM(A,e,t){if(!Zr(A))return;const n=A;if(typeof n.assignedNodes!="function"){for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,t);return}const r=n.assignedNodes();if(r&&Array.isArray(r)&&r.length>0)r.forEach(s=>this.appendChildNode(e,s,t));else for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,t)}cloneShadowDOMAsLightDOM(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)ln(n)&&Zr(n)?this.cloneSlotElementAsLightDOM(n,e,t):this.appendChildNode(e,n,t)}};const dE=A=>{let e=A;for(;e;){if(e.parentNode&&e.parentNode.host)return e.parentNode;const t=e.getRootNode();if(t&&t!==e.ownerDocument&&t.host)return t;e=e.parentNode}return null};var Na=class{constructor(A,e,t){var n;if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Xy,this.quoteDepth=0,this.slotCloner=new uE((r,s)=>this.cloneNode(r,s),{ignoreElements:t.ignoreElements,copyStyles:(n=t.copyStyles)!=null?n:!0},A),!e.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const r=dE(e);r&&(this.options.iframeContainer=r)}this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}toIFrame(A,e){var h,f;const t=pE(A,e,this.options.iframeContainer);if(!t.contentWindow)throw new Error("Unable to find iframe window");const n=A.defaultView.pageXOffset,r=A.defaultView.pageYOffset,s=t.contentWindow,o=s.document,a=gE(t).then(()=>I(this,null,function*(){this.scrolledElements.forEach(CE),s&&s.scrollTo(e.left,e.top);const g=this.options.onclone,m=this.clonedReferenceElement;if(typeof m=="undefined")throw new Error(`Error finding the ${this.referenceElement.nodeName} in the cloned document`);return o.fonts&&o.fonts.ready&&(yield o.fonts.ready),/(AppleWebKit)/g.test(navigator.userAgent)&&(yield fE(o)),typeof g=="function"&&(yield Promise.resolve().then(()=>g(o,m))),s.scrollTo(e.left,e.top),/AppleWebKit/g.test(navigator.userAgent)&&(s.scrollY!==e.top||s.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0)),t})),i=A.baseURI;o.open();const c=wE(document.doctype)+"<html></html>";try{const g=(h=this.referenceElement.ownerDocument)==null?void 0:h.defaultView,m=g&&g.trustedTypes;let b=(f=m==null?void 0:m.getPolicy)==null?void 0:f.call(m,"html2canvas-pro");!b&&m&&(b=m.createPolicy("html2canvas-pro",{createHTML:E=>E}));const U=b?b.createHTML(c):c;o.write(U)}catch(g){o.write(c)}mE(this.referenceElement.ownerDocument,n,r),o.close();const u=o.adoptNode(this.documentElement);return EE(u,i),o.replaceChild(u,o.documentElement),a}createElementClone(A){if(Ka(A,2))debugger;if(Rd(A))return this.createCanvasClone(A);if(Od(A))return this.createVideoClone(A);if(Md(A))return this.createStyleClone(A);const e=A.cloneNode(!1);return Ta(e)&&(Ta(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Kd(e)&&!un(e)?this.createCustomElementClone(A,e):e}createCustomElementClone(A,e){const t=document.createElement("div");t.className=e.className,$a(e.style,t);const n=e.attributes;for(let r=0;r<n.length;r++){const s=n[r];s.name!=="class"&&s.name!=="style"&&t.setAttribute(s.name,s.value)}if(A.shadowRoot)try{t.attachShadow({mode:"open"})}catch(r){this.context.logger.error("Failed to attach shadow root to custom element clone:",r)}return t}createStyleClone(A){try{const t=A.sheet;if(t&&t.cssRules){const n=[].slice.call(t.cssRules,0).reduce((s,o)=>o&&typeof o.cssText=="string"?s+o.cssText:s,""),r=A.cloneNode(!1);return r.textContent=n,this.options.cspNonce&&(r.nonce=this.options.cspNonce),r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),t.name!=="SecurityError")throw t}const e=A.cloneNode(!1);return this.options.cspNonce&&(e.nonce=this.options.cspNonce),e}createCanvasClone(A){var t,n;if(this.options.inlineImages&&A.ownerDocument){const r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch(s){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}const e=A.cloneNode(!1);try{e.width=A.width,e.height=A.height;const r=A.getContext("2d"),s=e.getContext("2d",{willReadFrequently:!0});if(s)if(!this.options.allowTaint&&r)s.putImageData(r.getImageData(0,0,A.width,A.height),0,0);else{const o=(t=A.getContext("webgl2"))!=null?t:A.getContext("webgl");o&&((n=o.getContextAttributes())==null?void 0:n.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A),s.drawImage(A,0,0)}return e}catch(r){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return e}createVideoClone(A){const e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;const t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(r){this.context.logger.info("Unable to clone video as it is tainted",A)}const n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n}appendChildNode(A,e,t){this.slotCloner.appendChildNode(A,e,t)}cloneChildNodes(A,e,t){this.slotCloner.cloneChildNodes(A,e,t)}cloneNode(A,e){if(Ld(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);const t=A.ownerDocument.defaultView;if(t&&ln(A)&&(Gr(A)||un(A))){const n=this.createElementClone(A);n.style.transitionProperty="none";const r=t.getComputedStyle(A),s=Zy(A);this.referenceElement===A&&Gr(n)&&(this.clonedReferenceElement=n),Ia(n)&&yE(n,this.options.cspNonce);const o=this.counters.parse(new gp(this.context,r));if(s){const a=t.getComputedStyle(A,":before"),i=this.resolvePseudoContent(A,n,a,0);i&&n.insertBefore(i,n.firstChild);const c=t.getComputedStyle(A,":after"),u=this.resolvePseudoContent(A,n,c,1);u&&n.appendChild(u)}return Kd(A)&&(e=!0),Od(A)||this.cloneChildNodes(A,n,e),this.counters.pop(o),(r&&(this.options.copyStyles||un(A))&&!Pd(A)||e)&&$a(r,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(Qo(A)||yo(A))&&(Qo(n)||yo(n))&&(n.value=A.value),n}return A.cloneNode(!1)}resolvePseudoContent(A,e,t,n){if(!t)return;const r=t.content,s=e.ownerDocument;if(!s||!r||r==="none"||r==="-moz-alt-content"||t.display==="none")return;this.counters.parse(new gp(this.context,t));const o=new iE(this.context,t),a=s.createElement("html2canvaspseudoelement");$a(t,a),o.content.forEach(c=>{if(c.type===0)a.appendChild(s.createTextNode(c.value));else if(c.type===22){const u=s.createElement("img");u.src=c.value,u.style.opacity="1",a.appendChild(u)}else if(c.type===18){if(c.name==="attr"){const u=c.values.filter(j);u.length&&a.appendChild(s.createTextNode(A.getAttribute(u[0].value)||""))}else if(c.name==="counter"){const[u,h]=c.values.filter(VA);if(u&&j(u)){const f=this.counters.getCounterValue(u.value),g=h&&j(h)?Ha.parse(this.context,h.value):3;a.appendChild(s.createTextNode(Xr(f,g,!1)))}}else if(c.name==="counters"){const[u,h,f]=c.values.filter(VA);if(u&&j(u)){const g=this.counters.getCounterValues(u.value),m=f&&j(f)?Ha.parse(this.context,f.value):3,b=h&&h.type===0?h.value:"",U=g.map(E=>Xr(E,m,!1)).join(b);a.appendChild(s.createTextNode(U))}}}else if(c.type===20)switch(c.value){case"open-quote":a.appendChild(s.createTextNode(fp(o.quotes,this.quoteDepth++,!0)));break;case"close-quote":a.appendChild(s.createTextNode(fp(o.quotes,--this.quoteDepth,!1)));break;default:a.appendChild(s.createTextNode(c.value))}}),a.className=`${za} ${Va}`;const i=n===0?` ${za}`:` ${Va}`;return un(e)?e.className.baseValue+=i:e.className+=i,a}static destroy(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1}};const pE=(A,e,t)=>{const n=A.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(lE,"true"),(t||A.body).appendChild(n),n},hE=A=>new Promise(e=>{if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e}),fE=A=>Promise.all([].slice.call(A.images,0).map(hE)),gE=A=>new Promise((e,t)=>{const n=A.contentWindow;if(!n)return t("No window assigned for iframe");const r=n.document;n.onload=A.onload=()=>{n.onload=A.onload=null;const s=600;let o=0;const a=setInterval(()=>{o++,(r.body.childNodes.length>0&&r.readyState==="complete"||o>=s)&&(clearInterval(a),e(A))},50)}}),BE=["all","d","content"],$a=(A,e)=>{const t=[];for(let n=A.length-1;n>=0;n--){const r=A.item(n);if(BE.indexOf(r)===-1&&!r.startsWith("--")){const s=A.getPropertyValue(r);if(s){const o=A.getPropertyPriority(r);t.push(o?`${r}:${s} !${o}`:`${r}:${s}`)}}}return t.length>0&&(e.style.cssText=t.join(";")+";"),e},wE=A=>{let e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=" "+A.internalSubset.replace(/"/g,"&quot;").replace(/>/g,"&gt;")),A.publicId?(e+=' PUBLIC "'+A.publicId.replace(/"/g,"&quot;")+'"',A.systemId&&(e+=' "'+A.systemId.replace(/"/g,"&quot;")+'"')):A.systemId&&(e+=' SYSTEM "'+A.systemId.replace(/"/g,"&quot;")+'"'),e+=">"),e},mE=(A,e,t)=>{A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},CE=([A,e,t])=>{A.scrollLeft=e,A.scrollTop=t},bE=":before",QE=":after",za="___html2canvas___pseudoelement_before",Va="___html2canvas___pseudoelement_after",wp=`{
1657
+ */var Mb=class il{constructor(e={}){const t=e.window||(typeof window!="undefined"?window:void 0);if(!t)throw new Error("Window object is required but not available");this.window=t,this.cspNonce=e.cspNonce,this.cache=e.cache}static fromElement(e,t={}){const n=e.ownerDocument;if(!n)throw new Error("Element is not attached to a document");const r=n.defaultView;if(!r)throw new Error("Document is not attached to a window");return new il(F({window:r},t))}clone(e={}){var t,n;return new il({window:e.window||this.window,cspNonce:(t=e.cspNonce)!=null?t:this.cspNonce,cache:(n=e.cache)!=null?n:this.cache})}},Nb=class{constructor(A={}){this.config=F({maxImageTimeout:3e5,allowDataUrls:!0},A)}validateUrl(A,e="general"){if(!A||typeof A!="string")return{valid:!1,error:"URL must be a non-empty string"};if(A.startsWith("data:"))return this.config.allowDataUrls?{valid:!0,sanitized:A}:{valid:!1,error:"Data URLs are not allowed"};if(A.startsWith("blob:"))return{valid:!0,sanitized:A};try{const t=new URL(A);if(!["http:","https:"].includes(t.protocol))return{valid:!1,error:`Protocol ${t.protocol} is not allowed. Only http and https are permitted.`};if(e==="proxy"&&this.config.allowedProxyDomains&&this.config.allowedProxyDomains.length>0){const n=t.hostname.toLowerCase();if(!this.config.allowedProxyDomains.some(r=>{const s=r.toLowerCase();return n===s||n.endsWith("."+s)}))return{valid:!1,error:`Proxy domain ${t.hostname} is not in the allowed list`}}if(e==="proxy"){if(!this.config.allowLocalhostProxy){const n=t.hostname.toLowerCase();if(n==="localhost"||n==="127.0.0.1"||n==="::1")return{valid:!1,error:"Localhost is not allowed for proxy URLs"};if(this.isPrivateIP(n))return{valid:!1,error:"Private IP addresses are not allowed for proxy URLs"};if(n.startsWith("169.254.")||n.startsWith("fe80:"))return{valid:!1,error:"Link-local addresses are not allowed for proxy URLs"}}return{valid:!0,sanitized:A,requiresRuntimeCheck:!0}}return{valid:!0,sanitized:A}}catch(t){return{valid:!1,error:`Invalid URL format: ${t instanceof Error?t.message:"Unknown error"}`}}}isPrivateIP(A){return[/^0\./,/^10\./,/^100\.(6[4-9]|[7-9][0-9]|1[0-1][0-9]|12[0-7])\./,/^127\./,/^169\.254\./,/^172\.(1[6-9]|2[0-9]|3[0-1])\./,/^192\.0\.0\./,/^192\.0\.2\./,/^192\.168\./,/^198\.(1[8-9])\./,/^198\.51\.100\./,/^203\.0\.113\./,/^2(2[4-9]|3[0-9])\./,/^24[0-9]\./,/^255\.255\.255\.255$/].some(e=>e.test(A))?!0:A.includes(":")?this.isPrivateIPv6(A):!1}isPrivateIPv6(A){const e=A.toLowerCase().trim().replace(/^\[|\]$/g,"").split("%")[0];if(/^(0:){7}1$/.test(e)||e==="::1"||/^(0:){7}0$/.test(e)||e==="::")return!0;const t=this.expandIPv6(e);if(!t)return this.isPrivateIPv6Prefix(e);const n=parseInt(t.substring(0,2),16);if(n>=252&&n<=253)return!0;if(n===254){const r=parseInt(t.substring(2,4),16);if(r>=128&&r<=191)return!0}return n===255}expandIPv6(A){try{if(A.includes("::")){const e=A.split("::");if(e.length>2)return null;const t=e[0]?e[0].split(":"):[],n=e[1]?e[1].split(":"):[],r=8-t.length-n.length;if(r<0)return null;const s=Array(r).fill("0000");return[...t,...s,...n].map(o=>o.padStart(4,"0")).join(":")}else{const e=A.split(":");return e.length!==8?null:e.map(t=>t.padStart(4,"0")).join(":")}}catch(e){return null}}isPrivateIPv6Prefix(A){return!!(/^fc[0-9a-f]{0,2}:?/i.test(A)||/^fd[0-9a-f]{0,2}:?/i.test(A)||/^fe[89ab][0-9a-f]:?/i.test(A)||/^ff[0-9a-f]{0,2}:?/i.test(A))}validateCspNonce(A){return!A||typeof A!="string"?{valid:!1,error:"CSP nonce must be a non-empty string"}:A.length<16?{valid:!1,error:"CSP nonce is too short (minimum 16 characters recommended)"}:/^[A-Za-z0-9+/=_-]+$/.test(A)?{valid:!0,sanitized:A}:{valid:!1,error:"CSP nonce contains invalid characters"}}validateImageTimeout(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Image timeout must be a number"}:A<0?{valid:!1,error:"Image timeout cannot be negative"}:this.config.maxImageTimeout&&A>this.config.maxImageTimeout?{valid:!1,error:`Image timeout ${A}ms exceeds maximum allowed ${this.config.maxImageTimeout}ms`}:{valid:!0,sanitized:A}}validateDimensions(A,e){if(typeof A!="number"||typeof e!="number")return{valid:!1,error:"Dimensions must be numbers"};if(isNaN(A)||isNaN(e))return{valid:!1,error:"Dimensions cannot be NaN"};if(A<=0||e<=0)return{valid:!1,error:"Dimensions must be positive"};const t=32767;return A>t||e>t?{valid:!1,error:`Dimensions exceed maximum allowed (${t}px)`}:{valid:!0,sanitized:{width:A,height:e}}}validateScale(A){return typeof A!="number"||isNaN(A)?{valid:!1,error:"Scale must be a number"}:A<=0?{valid:!1,error:"Scale must be positive"}:A>10?{valid:!1,error:"Scale factor too large (maximum 10x)"}:{valid:!0,sanitized:A}}validateElement(A){if(!A)return{valid:!1,error:"Element is required"};if(typeof A!="object")return{valid:!1,error:"Element must be an object"};const e=A;return typeof HTMLElement!="undefined"&&A instanceof HTMLElement?A.ownerDocument?{valid:!0}:{valid:!1,error:"Element must be attached to a document"}:e.ownerDocument?e.ownerDocument.defaultView?{valid:!0}:{valid:!1,error:"Document must be attached to a window (ownerDocument.defaultView required)"}:{valid:!1,error:"Element must be attached to a document (ownerDocument required)"}}validateOptions(A){var n,r;const e=[],t=A.proxy;if(t!=null&&typeof t=="string"&&t.length>0){const s=this.validateUrl(t,"proxy");s.valid||e.push(`Proxy: ${s.error}`)}if(A.imageTimeout!==void 0){const s=this.validateImageTimeout(A.imageTimeout);s.valid||e.push(`Image timeout: ${s.error}`)}if(A.width!==void 0||A.height!==void 0){const s=(n=A.width)!=null?n:800,o=(r=A.height)!=null?r:600,a=this.validateDimensions(s,o);a.valid||e.push(`Dimensions: ${a.error}`)}if(A.scale!==void 0){const s=this.validateScale(A.scale);s.valid||e.push(`Scale: ${s.error}`)}if(A.cspNonce!==void 0){const s=this.validateCspNonce(A.cspNonce);s.valid||e.push(`CSP nonce: ${s.error}`)}if(this.config.customValidator){const s=this.config.customValidator(A,"options");s.valid||e.push(`Custom validation: ${s.error}`)}return e.length>0?{valid:!1,error:e.join("; ")}:{valid:!0}}};function Kb(A={}){return new Nb(F({allowDataUrls:!0,maxImageTimeout:3e5},A))}var $b=class{constructor(A,e=!0){this.context=A,this.activeMetrics=new Map,this.completedMetrics=[],this.enabled=e,this.getTime=typeof performance!="undefined"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now()}start(A,e){var t;this.enabled&&(this.activeMetrics.has(A)&&((t=this.context)==null||t.logger.warn(`Performance metric '${A}' already started. Overwriting.`)),this.activeMetrics.set(A,{name:A,startTime:this.getTime(),metadata:e}))}end(A){var t,n;if(!this.enabled)return;const e=this.activeMetrics.get(A);if(!e){(t=this.context)==null||t.logger.warn(`Performance metric '${A}' not found. Was start() called?`);return}return e.endTime=this.getTime(),e.duration=e.endTime-e.startTime,this.completedMetrics.push(e),this.activeMetrics.delete(A),(n=this.context)==null||n.logger.debug(`⏱️ ${A}: ${e.duration.toFixed(2)}ms`,e.metadata),e}measure(A,e,t){this.start(A,t);try{const n=e();return this.end(A),n}catch(n){throw this.end(A),n}}measureAsync(A,e,t){return I(this,null,function*(){this.start(A,t);try{const n=yield e();return this.end(A),n}catch(n){throw this.end(A),n}})}getMetrics(){return[...this.completedMetrics]}getMetric(A){return this.completedMetrics.find(e=>e.name===A)}getSummary(){const A=this.completedMetrics.reduce((t,n)=>t+(n.duration||0),0),e=this.completedMetrics.map(t=>({name:t.name,duration:t.duration||0,percentage:A>0?((t.duration||0)/A*100).toFixed(1)+"%":"0%"}));return{totalDuration:A,metrics:this.getMetrics(),breakdown:e}}logSummary(){if(!this.enabled||this.completedMetrics.length===0||!this.context)return;const A=this.getSummary();this.context.logger.info(`
1658
+ 📊 Performance Summary (Total: ${A.totalDuration.toFixed(2)}ms):`),A.breakdown.sort((e,t)=>t.duration-e.duration).forEach(e=>{this.context.logger.info(` ${e.name.padEnd(20)} ${e.duration.toFixed(2).padStart(8)}ms ${e.percentage.padStart(6)}`)})}clear(){this.activeMetrics.clear(),this.completedMetrics.splice(0)}isEnabled(){return this.enabled}getActiveMetrics(){return Array.from(this.activeMetrics.keys())}},ve=(je=class{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}add(e,t,n,r){return new je(this.left+e,this.top+t,this.width+n,this.height+r)}static fromClientRect(e,t){return new je(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)}static fromDOMRectList(e,t){const n=Array.from(t);let r=n.find(s=>s.width!==0);return r||(r=n.find(s=>s.height!==0)),!r&&n.length>0&&(r=n[0]),r?new je(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):je.EMPTY}},je.EMPTY=new je(0,0,0,0),je);const Lr=(A,e)=>ve.fromClientRect(A,e.getBoundingClientRect()),zb=A=>{const e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");return new ve(0,0,Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight)))};for(var no=function(A){for(var e=[],t=0,n=A.length;t<n;){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),t--)}else e.push(r)}return e},HA=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var n=[],r=-1,s="";++r<t;){var o=A[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},Xu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vb=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ro=0;ro<Xu.length;ro++)Vb[Xu.charCodeAt(ro)]=ro;for(var Wu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),so=0;so<Wu.length;so++)Rr[Wu.charCodeAt(so)]=so;for(var Gb=function(A){var e=A.length*.75,t=A.length,n,r=0,s,o,a,i;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<t;n+=4)s=Rr[A.charCodeAt(n)],o=Rr[A.charCodeAt(n+1)],a=Rr[A.charCodeAt(n+2)],i=Rr[A.charCodeAt(n+3)],u[r++]=s<<2|o>>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|i&63;return c},Zb=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},Xb=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},on=5,ua=11,da=2,Wb=ua-on,Ju=65536>>on,pa=(1<<on)-1,Jb=Ju+(1024>>on)+32,jb=65536>>ua,Yb=(1<<Wb)-1,ju=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},qb=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},AQ=function(A,e){var t=Gb(A),n=Array.isArray(t)?Xb(t):new Uint32Array(t),r=Array.isArray(t)?Zb(t):new Uint16Array(t),s=24,o=ju(r,s/2,n[4]/2),a=n[5]===2?ju(r,(s+n[4])/2):qb(n,Math.ceil((s+n[4])/4));return new eQ(n[0],n[1],n[2],n[3],o,a)},eQ=(function(){function A(e,t,n,r,s,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=s,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>on],t=(t<<da)+(e&pa),this.data[t];if(e<=65535)return t=this.index[Ju+(e-55296>>on)],t=(t<<da)+(e&pa),this.data[t];if(e<this.highStart)return t=Jb-jb+(e>>ua),t=this.index[t],t+=e>>on&Yb,t=this.index[t],t=(t<<da)+(e&pa),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Yu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tQ=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),oo=0;oo<Yu.length;oo++)tQ[Yu.charCodeAt(oo)]=oo;var nQ="KwA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xMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHL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GgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHA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BYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADA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QAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4AB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gAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKw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KwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAl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ACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",qu=50,rQ=1,Ad=2,ed=3,sQ=4,oQ=5,td=7,nd=8,rd=9,$t=10,ha=11,sd=12,fa=13,iQ=14,Dr=15,ga=16,io=17,Or=18,aQ=19,od=20,Ba=21,Pr=22,wa=23,Xn=24,ye=25,Mr=26,Nr=27,Wn=28,cQ=29,an=30,lQ=31,ao=32,co=33,ma=34,Ca=35,ba=36,Kr=37,Qa=38,lo=39,uo=40,ya=41,id=42,uQ=43,dQ=[9001,65288],ad="!",rA="×",po="÷",Ua=AQ(nQ),yt=[an,ba],Ea=[rQ,Ad,ed,oQ],cd=[$t,nd],ld=[Nr,Mr],pQ=Ea.concat(cd),ud=[Qa,lo,uo,ma,Ca],hQ=[Dr,fa],fQ=function(A,e){e===void 0&&(e="strict");var t=[],n=[],r=[];return A.forEach(function(s,o){var a=Ua.get(s);if(a>qu?(r.push(!0),a-=qu):r.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(s)!==-1)return n.push(o),t.push(ga);if(a===sQ||a===ha){if(o===0)return n.push(o),t.push(an);var i=t[o-1];return pQ.indexOf(i)===-1?(n.push(n[o-1]),t.push(i)):(n.push(o),t.push(an))}if(n.push(o),a===lQ)return t.push(e==="strict"?Ba:Kr);if(a===id||a===cQ)return t.push(an);if(a===uQ)return s>=131072&&s<=196605||s>=196608&&s<=262141?t.push(Kr):t.push(an);t.push(a)}),[n,t,r]},ka=function(A,e,t,n){var r=n[t];if(Array.isArray(A)?A.indexOf(r)!==-1:A===r)for(var s=t;s<=n.length;){s++;var o=n[s];if(o===e)return!0;if(o!==$t)break}if(r===$t)for(var s=t;s>0;){s--;var a=n[s];if(Array.isArray(A)?A.indexOf(a)!==-1:A===a)for(var i=t;i<=n.length;){i++;var o=n[i];if(o===e)return!0;if(o!==$t)break}if(a!==$t)break}return!1},dd=function(A,e){for(var t=A;t>=0;){var n=e[t];if(n===$t)t--;else return n}return 0},gQ=function(A,e,t,n,r){if(t[n]===0)return rA;var s=n-1;if(Array.isArray(r)&&r[s]===!0)return rA;var o=s-1,a=s+1,i=e[s],c=o>=0?e[o]:0,u=e[a];if(i===Ad&&u===ed)return rA;if(Ea.indexOf(i)!==-1)return ad;if(Ea.indexOf(u)!==-1||cd.indexOf(u)!==-1)return rA;if(dd(s,e)===nd)return po;if(Ua.get(A[s])===ha||(i===ao||i===co)&&Ua.get(A[a])===ha||i===td||u===td||i===rd||[$t,fa,Dr].indexOf(i)===-1&&u===rd||[io,Or,aQ,Xn,Wn].indexOf(u)!==-1||dd(s,e)===Pr||ka(wa,Pr,s,e)||ka([io,Or],Ba,s,e)||ka(sd,sd,s,e))return rA;if(i===$t)return po;if(i===wa||u===wa)return rA;if(u===ga||i===ga)return po;if([fa,Dr,Ba].indexOf(u)!==-1||i===iQ||c===ba&&hQ.indexOf(i)!==-1||i===Wn&&u===ba||u===od||yt.indexOf(u)!==-1&&i===ye||yt.indexOf(i)!==-1&&u===ye||i===Nr&&[Kr,ao,co].indexOf(u)!==-1||[Kr,ao,co].indexOf(i)!==-1&&u===Mr||yt.indexOf(i)!==-1&&ld.indexOf(u)!==-1||ld.indexOf(i)!==-1&&yt.indexOf(u)!==-1||[Nr,Mr].indexOf(i)!==-1&&(u===ye||[Pr,Dr].indexOf(u)!==-1&&e[a+1]===ye)||[Pr,Dr].indexOf(i)!==-1&&u===ye||i===ye&&[ye,Wn,Xn].indexOf(u)!==-1)return rA;if([ye,Wn,Xn,io,Or].indexOf(u)!==-1)for(var h=s;h>=0;){var f=e[h];if(f===ye)return rA;if([Wn,Xn].indexOf(f)!==-1)h--;else break}if([Nr,Mr].indexOf(u)!==-1)for(var h=[io,Or].indexOf(i)!==-1?o:s;h>=0;){var f=e[h];if(f===ye)return rA;if([Wn,Xn].indexOf(f)!==-1)h--;else break}if(Qa===i&&[Qa,lo,ma,Ca].indexOf(u)!==-1||[lo,ma].indexOf(i)!==-1&&[lo,uo].indexOf(u)!==-1||[uo,Ca].indexOf(i)!==-1&&u===uo||ud.indexOf(i)!==-1&&[od,Mr].indexOf(u)!==-1||ud.indexOf(u)!==-1&&i===Nr||yt.indexOf(i)!==-1&&yt.indexOf(u)!==-1||i===Xn&&yt.indexOf(u)!==-1||yt.concat(ye).indexOf(i)!==-1&&u===Pr&&dQ.indexOf(A[a])===-1||yt.concat(ye).indexOf(u)!==-1&&i===Or)return rA;if(i===ya&&u===ya){for(var g=t[s],m=1;g>0&&(g--,e[g]===ya);)m++;if(m%2!==0)return rA}return i===ao&&u===co?rA:po},BQ=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=fQ(A,e.lineBreak),n=t[0],r=t[1],s=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(r=r.map(function(a){return[ye,an,id].indexOf(a)!==-1?Kr:a}));var o=e.wordBreak==="keep-all"?s.map(function(a,i){return a&&A[i]>=19968&&A[i]<=40959}):void 0;return[n,r,o]},wQ=(function(){function A(e,t,n,r){this.codePoints=e,this.required=t===ad,this.start=n,this.end=r}return A.prototype.slice=function(){return HA.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),mQ=function(A,e){var t=no(A),n=BQ(t,e),r=n[0],s=n[1],o=n[2],a=t.length,i=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};for(var u=rA;c<a&&(u=gQ(t,s,r,++c,o))===rA;);if(u!==rA||c===a){var h=new wQ(t,u,i,c);return i=c,{value:h,done:!1}}return{done:!0,value:null}}}};const pd=65533,re=A=>A>=48&&A<=57,CQ=A=>A>=55296&&A<=57343,Jn=A=>re(A)||A>=65&&A<=70||A>=97&&A<=102,bQ=A=>A>=97&&A<=122,QQ=A=>A>=65&&A<=90,yQ=A=>bQ(A)||QQ(A),UQ=A=>A>=128,ho=A=>A===10||A===9||A===32,fo=A=>yQ(A)||UQ(A)||A===95,hd=A=>fo(A)||re(A)||A===45,EQ=A=>A>=0&&A<=8||A===11||A>=14&&A<=31||A===127,zt=(A,e)=>A!==92?!1:e!==10,go=(A,e,t)=>A===45?fo(e)||zt(e,t):fo(A)?!0:!!(A===92&&zt(A,e)),Fa=(A,e,t)=>A===43||A===45?re(e)?!0:e===46&&re(t):re(A===46?e:A),kQ=A=>{let e=0,t=1;(A[e]===43||A[e]===45)&&(A[e]===45&&(t=-1),e++);const n=[];for(;re(A[e]);)n.push(A[e++]);const r=n.length?parseInt(HA(...n),10):0;A[e]===46&&e++;const s=[];for(;re(A[e]);)s.push(A[e++]);const o=s.length,a=o?parseInt(HA(...s),10):0;(A[e]===69||A[e]===101)&&e++;let i=1;(A[e]===43||A[e]===45)&&(A[e]===45&&(i=-1),e++);const c=[];for(;re(A[e]);)c.push(A[e++]);const u=c.length?parseInt(HA(...c),10):0;return t*(r+a*Math.pow(10,-o))*Math.pow(10,i*u)},FQ={type:2},vQ={type:3},_Q={type:4},xQ={type:13},SQ={type:8},IQ={type:21},TQ={type:9},HQ={type:10},LQ={type:11},RQ={type:12},DQ={type:14},Bo={type:23},OQ={type:1},PQ={type:25},MQ={type:24},NQ={type:26},KQ={type:27},$Q={type:28},zQ={type:29},VQ={type:31},va={type:32};var _a=(Re=class{static get(){return Re._pool.pop()||new Re}static release(e){Re._pool.length<Re.MAX_POOL_SIZE&&(e._reset(),Re._pool.push(e))}constructor(){this._value=[]}_reset(){this._value=[]}write(e){this._value=this._value.concat(no(e))}read(){const e=[];let t=this.consumeToken();for(;t!==va;)e.push(t),t=this.consumeToken();return e}consumeToken(){const e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(hd(t)||zt(n,r)){const s=go(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:s}}break}case 36:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),xQ;break;case 39:return this.consumeStringToken(39);case 40:return FQ;case 41:return vQ;case 42:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),DQ;break;case 43:if(Fa(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return _Q;case 45:{const t=e,n=this.peekCodePoint(0),r=this.peekCodePoint(1);if(Fa(t,n,r))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(go(t,n,r))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(n===45&&r===62)return this.consumeCodePoint(),this.consumeCodePoint(),MQ;break}case 46:if(Fa(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(this.peekCodePoint(0)===42)for(this.consumeCodePoint();;){let t=this.consumeCodePoint();if(t===42&&(t=this.consumeCodePoint(),t===47))return this.consumeToken();if(t===-1)return this.consumeToken()}break;case 58:return NQ;case 59:return KQ;case 60:if(this.peekCodePoint(0)===33&&this.peekCodePoint(1)===45&&this.peekCodePoint(2)===45)return this.consumeCodePoint(),this.consumeCodePoint(),PQ;break;case 64:if(go(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2)))return{type:7,value:this.consumeName()};break;case 91:return $Q;case 92:if(zt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return zQ;case 61:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),SQ;break;case 123:return LQ;case 125:return RQ;case 117:case 85:{const t=this.peekCodePoint(0),n=this.peekCodePoint(1);return t===43&&(Jn(n)||n===63)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken()}case 124:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),TQ;if(this.peekCodePoint(0)===124)return this.consumeCodePoint(),IQ;break;case 126:if(this.peekCodePoint(0)===61)return this.consumeCodePoint(),HQ;break;case-1:return va}return ho(e)?(this.consumeWhiteSpace(),VQ):re(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):fo(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:HA(e)}}consumeCodePoint(){const e=this._value.shift();return typeof e=="undefined"?-1:e}reconsumeCodePoint(e){this._value.unshift(e)}peekCodePoint(e){return e>=this._value.length?-1:this._value[e]}consumeUnicodeRangeToken(){const e=[];let t=this.consumeCodePoint();for(;Jn(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();let n=!1;for(;t===63&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(HA(...e.map(s=>s===63?48:s)),16),end:parseInt(HA(...e.map(s=>s===63?70:s)),16)};const r=parseInt(HA(...e),16);if(this.peekCodePoint(0)===45&&Jn(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();const s=[];for(;Jn(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(HA(...s),16)}}else return{type:30,start:r,end:r}}consumeIdentLikeToken(){const e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===40?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===40?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}}consumeUrlToken(){const e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===-1)return{type:22,value:""};const t=this.peekCodePoint(0);if(t===39||t===34){const n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===-1||this.peekCodePoint(0)===41)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Bo)}for(;;){const n=this.consumeCodePoint();if(n===-1||n===41)return{type:22,value:HA(...e)};if(ho(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===-1||this.peekCodePoint(0)===41?(this.consumeCodePoint(),{type:22,value:HA(...e)}):(this.consumeBadUrlRemnants(),Bo);if(n===34||n===39||n===40||EQ(n))return this.consumeBadUrlRemnants(),Bo;if(n===92)if(zt(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Bo;else e.push(n)}}consumeWhiteSpace(){for(;ho(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const e=this.consumeCodePoint();if(e===41||e===-1)return;zt(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(e){let n="";for(;e>0;){const r=Math.min(5e4,e);n+=HA(...this._value.splice(0,r)),e-=r}return this._value.shift(),n}consumeStringToken(e){let t="",n=0;do{const r=this._value[n];if(r===-1||r===void 0||r===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(r===10)return this._value.splice(0,n),OQ;if(r===92){const s=this._value[n+1];s!==-1&&s!==void 0&&(s===10?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):zt(r,s)&&(t+=this.consumeStringSlice(n),t+=HA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)}consumeNumber(){const e=[];let t=4,n=this.peekCodePoint(0);for((n===43||n===45)&&e.push(this.consumeCodePoint());re(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);let r=this.peekCodePoint(1);if(n===46&&re(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;re(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);const s=this.peekCodePoint(2);if((n===69||n===101)&&((r===43||r===45)&&re(s)||re(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;re(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[kQ(e),t]}consumeNumericToken(){const[e,t]=this.consumeNumber(),n=this.peekCodePoint(0);return go(n,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:e,flags:t,unit:this.consumeName()}:n===37?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}}consumeEscapedCodePoint(){const e=this.consumeCodePoint();if(Jn(e)){let t=HA(e);for(;Jn(this.peekCodePoint(0))&&t.length<6;)t+=HA(this.consumeCodePoint());ho(this.peekCodePoint(0))&&this.consumeCodePoint();const n=parseInt(t,16);return n===0||CQ(n)||n>1114111?pd:n}return e===-1?pd:e}consumeName(){let e="";for(;;){const t=this.consumeCodePoint();if(hd(t))e+=HA(t);else if(zt(t,this.peekCodePoint(0)))e+=HA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}}},Re._pool=[],Re.MAX_POOL_SIZE=40,Re),fd=class Di{constructor(e){this._tokens=e}static create(e){const t=new _a;return t.write(e),new Di(t.read())}static parseValue(e){return Di.create(e).parseComponentValue()}static parseValues(e){return Di.create(e).parseComponentValues()}parseComponentValue(){let e=this.consumeToken();for(;e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);const t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const e=[];for(;;){const t=this.consumeComponentValue();if(t.type===32)return e;e.push(t)}}consumeComponentValue(){const e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e}consumeSimpleBlock(e){const t={type:e,values:[]};let n=this.consumeToken();for(;;){if(n.type===32||ZQ(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}}consumeFunction(e){const t={name:e.value,values:[],type:18};for(;;){const n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}}consumeToken(){const e=this._tokens.shift();return typeof e=="undefined"?va:e}reconsumeToken(e){this._tokens.unshift(e)}};const lt=A=>A.type===15,$A=A=>A.type===17,j=A=>A.type===20,GQ=A=>A.type===0,$r=(A,e)=>j(A)&&A.value===e,zr=A=>A.type!==31,zA=A=>A.type!==31&&A.type!==4,Ke=A=>{const e=[];let t=[];return A.forEach(n=>{if(n.type===4){t.length&&(e.push(t),t=[]);return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},ZQ=(A,e)=>e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3,XQ=/(\d+(?:\.\d+)?|[+\-*/()])/g,gd=A=>{const e=A.match(XQ);if(!e)return NaN;const t=[],n=[],r={"+":1,"-":1,"*":2,"/":2};for(const o of e)if(/^\d+(?:\.\d+)?$/.test(o))t.push(parseFloat(o));else if(o==="(")n.push(o);else if(o===")"){for(;n.length&&n[n.length-1]!=="(";)t.push(n.pop());if(!n.length)return NaN;n.pop()}else{for(;n.length&&r[n[n.length-1]]>=r[o];)t.push(n.pop());n.push(o)}for(;n.length;){const o=n.pop();if(o==="(")return NaN;t.push(o)}const s=[];for(const o of t)if(typeof o=="number")s.push(o);else{const a=s.pop(),i=s.pop();if(i===void 0||a===void 0)return NaN;switch(o){case"+":s.push(i+a);break;case"-":s.push(i-a);break;case"*":s.push(i*a);break;case"/":s.push(a===0?NaN:i/a);break;default:return NaN}}return s.length===1?s[0]:NaN},vA=(A,e,t)=>Math.min(Math.max(A,e),t),Be=(A,e)=>[A[0]*e[0]+A[1]*e[1]+A[2]*e[2],A[3]*e[0]+A[4]*e[1]+A[5]*e[2],A[6]*e[0]+A[7]*e[1]+A[8]*e[2]],Vt=A=>Be([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],A),xa=A=>Be([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],A),cn=A=>A.map(e=>{const t=e<0?-1:1,n=Math.abs(e);return n>.0031308?t*(1.055*Ue(n,1/2.4)-.055):12.92*e}),Sa=A=>A.map(e=>{const t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*Ue((n+.055)/1.055,2.4)}),WQ=A=>{const[e,t,n]=cn(Vt([A[0],A[1],A[2]]));return[e,t,n,A[3]]},JQ=A=>{const[e,t,n]=Vt([A[0],A[1],A[2]]);return[vA(Math.round(e*255),0,255),vA(Math.round(t*255),0,255),vA(Math.round(n*255),0,255),A[3]]},Gt=A=>A.type===17||A.type===15,aA=A=>A.type===16||Gt(A)||Bd(A),Bd=A=>A.type===17&&A._calcPercentage!==void 0,jQ=A=>A.type===18&&A.name==="calc",YQ=A=>{const e=md(A,0);if(!e)return null;const t=md(A,100);if(!t)return null;const n=e.number,r=t.number-n;return r===0?e:{type:17,number:n,flags:4,_calcPercentage:r,_calcPixelOffset:n}},wd=A=>jQ(A)?YQ(A):aA(A)?A:null,md=(A,e=0)=>{const t=n=>{let r="";for(const s of n)if(s.type!==31){if(s.type===18)if(s.name==="calc"){const o=t(s.values);if(o===null)return null;r+=`(${o})`}else return null;else if(s.type===17)r+=s.number.toString();else if(s.type===15)s.unit==="px"?r+=s.number.toString():s.unit==="rem"||s.unit==="em"?r+=(s.number*16).toString():r+=s.number.toString();else if(s.type===16)r+=(s.number/100*e).toString();else if(s.type===6){const o=s.value;o==="+"||o==="-"||o==="*"||o==="/"?r+=` ${o} `:o==="("?r+="(":o===")"&&(r+=")")}}return r};try{const n=t(A.values);if(n===null||n.trim()==="")return null;const r=gd(n);if(typeof r=="number"&&!isNaN(r))return{type:17,number:r,flags:4}}catch(n){return null}return null},Cd=A=>A.length>1?[A[0],A[1]]:[A[0]],LA={type:17,number:0,flags:4},Ut={type:16,number:50,flags:4},$e={type:16,number:100,flags:4},Vr=(A,e,t)=>{const[n,r]=A;return[J(n,e),J(typeof r!="undefined"?r:n,t)]},J=(A,e)=>{if(Bd(A))return A._calcPercentage/100*e+A._calcPixelOffset;if(A.type===16)return A.number/100*e;if(lt(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},bd="deg",Qd="grad",yd="rad",Ud="turn",jn={name:"angle",parse:(A,e)=>{if(e.type===15)switch(e.unit){case bd:return Math.PI*e.number/180;case Qd:return Math.PI/200*e.number;case yd:return e.number;case Ud:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Ed=A=>A.type===15&&(A.unit===bd||A.unit===Qd||A.unit===yd||A.unit===Ud),kd=A=>{switch(A.filter(j).map(e=>e.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LA,LA];case"to top":case"bottom":return _e(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LA,$e];case"to right":case"left":return _e(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$e,$e];case"to bottom":case"top":return _e(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$e,LA];case"to left":case"right":return _e(270)}return 0},_e=A=>Math.PI*A/180,Et=A=>(255&A)===0,UA=A=>{const e=255&A,t=255&A>>8,n=255&A>>16,r=255&A>>24;return e<255?`rgba(${r},${n},${t},${e/255})`:`rgb(${r},${n},${t})`},ze=(A,e,t,n)=>(A<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0,Zt=(A,e)=>{if(A.type===17)return A.number;if(A.type===16){const t=e===3?1:255;return e===3?A.number/100*t:Math.round(A.number/100*t)}return 0},ln=A=>(A[0].type===20?A[0].value:"unknown")==="from",qQ=A=>ze(vA(Math.round(A[0]*255),0,255),vA(Math.round(A[1]*255),0,255),vA(Math.round(A[2]*255),0,255),vA(A[3],0,1)),Ia=([A,e,t,n])=>{const r=cn([A,e,t]);return ze(vA(Math.round(r[0]*255),0,255),vA(Math.round(r[1]*255),0,255),vA(Math.round(r[2]*255),0,255),n)},Gr=A=>{const e=Vt([A[0],A[1],A[2]]);return Ia([e[0],e[1],e[2],A[3]])},Ay=(A,e)=>{if(ln(e.filter(zA)))throw new Error("Relative color not supported for lab()");const[t,n,r,s]=wo(e),o=cn(Vt(bo([t,n,r])));return ze(vA(Math.round(o[0]*255),0,255),vA(Math.round(o[1]*255),0,255),vA(Math.round(o[2]*255),0,255),s)},ey=(A,e)=>{if(ln(e.filter(zA)))throw new Error("Relative color not supported for oklab()");const[t,n,r,s]=wo(e),o=cn(Vt(Co([t,n,r])));return ze(vA(Math.round(o[0]*255),0,255),vA(Math.round(o[1]*255),0,255),vA(Math.round(o[2]*255),0,255),s)},ty=(A,e)=>{if(ln(e.filter(zA)))throw new Error("Relative color not supported for oklch()");const[t,n,r,s]=xd(e),o=cn(Vt(Co(mo([t,n,r]))));return ze(vA(Math.round(o[0]*255),0,255),vA(Math.round(o[1]*255),0,255),vA(Math.round(o[2]*255),0,255),s)},ny=(A,e)=>{if(ln(e.filter(zA)))throw new Error("Relative color not supported for lch()");const[t,n,r,s]=_d(e),o=cn(Vt(bo(mo([t,n,r]))));return ze(vA(Math.round(o[0]*255),0,255),vA(Math.round(o[1]*255),0,255),vA(Math.round(o[2]*255),0,255),s)},Fd=(A,e)=>{const[t,n,r,s]=e.filter(zA);return[(t.type===17?_e(t.number):jn.parse(A,t))/(Math.PI*2),aA(n)?n.number/100:0,aA(r)?r.number/100:0,typeof s!="undefined"&&aA(s)?J(s,1):1]},vd=(A,e)=>{if(ln(e))throw new Error("Relative color not supported for hsl()");const[t,n,r,s]=Fd(A,e),o=Id([t,n,r]);return ze(o[0]*255,o[1]*255,o[2]*255,n===0?1:s)},_d=A=>{const e=A.filter(zA);return[aA(e[0])?e[0].number:0,aA(e[1])?e[1].number:0,$A(e[2])||lt(e[2])?e[2].number:0,typeof e[4]!="undefined"&&aA(e[4])?J(e[4],1):1]},wo=A=>{const e=A.filter(zA);return[e[0].type===16?e[0].number/100:$A(e[0])?e[0].number:0,e[1].type===16?e[1].number/100:$A(e[1])?e[1].number:0,$A(e[2])||lt(e[2])?e[2].number:0,typeof e[4]!="undefined"&&aA(e[4])?J(e[4],1):1]},xd=A=>{const e=A.filter(zA);return[e[0].type===16?e[0].number/100:$A(e[0])?e[0].number:0,e[1].type===16?e[1].number/100:$A(e[1])?e[1].number:0,$A(e[2])||lt(e[2])?e[2].number:0,typeof e[4]!="undefined"&&aA(e[4])?J(e[4],1):1]},Sd=A=>Be([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],A),Ta=A=>Be([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],A),Ha=(A,e,t)=>(t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<1/2?e:t<2/3?(e-A)*6*(2/3-t)+A:A),Id=([A,e,t])=>{if(e===0)return[t*255,t*255,t*255];const n=t<=.5?t*(e+1):t+e-t*e,r=t*2-n;return[Ha(r,n,A+1/3),Ha(r,n,A),Ha(r,n,A-1/3)]},mo=([A,e,t])=>(e<0&&(e=0),isNaN(t)&&(t=0),[A,e*Math.cos(t*Math.PI/180),e*Math.sin(t*Math.PI/180)]),Co=A=>Be([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],Be([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],A).map(e=>Ue(e,3))),bo=A=>{const e=(A[0]+16)/116,t=A[1]/500+e,n=e-A[2]/200,r=24389/27,s=24/116,o=[(t>s?Ue(t,3):(116*t-16)/r)*.3457/.3585,A[0]>8?Ue(e,3):A[0]/r,(n>s?Ue(n,3):(116*n-16)/r)*.2958/.3585];return Ta([o[0],o[1],o[2]])},ry=(A,e)=>{const t=e.filter(zA);if(t.length===3){const[n,r,s]=t.map(Zt),o=Sa([n/255,r/255,s/255]),[a,i,c]=xa([o[0],o[1],o[2]]);return[a,i,c,1]}if(t.length===4){const[n,r,s,o]=t.map(Zt),a=Sa([n/255,r/255,s/255]),[i,c,u]=xa([a[0],a[1],a[2]]);return[i,c,u,o]}return[0,0,0,1]},sy=(A,e)=>{const[t,n,r,s]=Fd(A,e),o=Sa(Id([t,n,r])),[a,i,c]=xa([o[0],o[1],o[2]]);return[a,i,c,s]},oy=(A,e)=>{const[t,n,r,s]=wo(e),[o,a,i]=bo([t,n,r]);return[o,a,i,s]},iy=(A,e)=>{const[t,n,r,s]=_d(e),[o,a,i]=bo(mo([t,n,r]));return[o,a,i,s]},ay=(A,e)=>{const[t,n,r,s]=xd(e),[o,a,i]=Co(mo([t,n,r]));return[o,a,i,s]},cy=(A,e)=>{const[t,n,r,s]=wo(e),[o,a,i]=Co([t,n,r]);return[o,a,i,s]},ly=A=>Ta([A[0],A[1],A[2]]),Td=A=>A,uy=A=>{const[e,t,n]=Sd([A[0],A[2],A[3]]);return[e,t,n,A[3]]},Hd=A=>Gr([A[0],A[1],A[2],A[3]]),dy=A=>{const e=ly([A[0],A[1],A[2]]);return Gr([e[0],e[1],e[2],A[3]])},py=A=>Be([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],A),hy=A=>Be([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],A),fy=A=>A.map(e=>{const t=e<0?-1:1;return e*t<=.04045?e/12.92:t*Ue((e+.055)/1.055,2.4)||0}),gy=A=>cn(A),By=A=>{const e=fy([A[0],A[1],A[2]]);return py([e[0],e[1],e[2]])},wy=A=>{const[e,t,n]=gy(hy([A[0],A[1],A[2]]));return[e,t,n,A[3]]},my=A=>{const e=By([A[0],A[1],A[2]]);return Gr([e[0],e[1],e[2],A[3]])},Cy=A=>Be([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],A),by=A=>Be([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],A),Qy=A=>{const e=A.map(t=>(t<0?-1:1)*Ue(Math.abs(t),2.19921875));return[e[0],e[1],e[2]]},yy=A=>{const e=A.map(t=>(t<0?-1:1)*Ue(Math.abs(t),.4547069271758437));return[e[0],e[1],e[2]]},Uy=A=>{const[e,t,n]=yy(Cy([A[0],A[1],A[2]]));return[e,t,n,A[3]]},Ey=A=>{const e=Vt(by(Qy([A[0],A[1],A[2]])));return Ia([e[0],e[1],e[2],A[3]])},ky=A=>Be([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],A),Fy=A=>Be([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],A),vy=A=>A.map(e=>e<16/512?e/16:Ue(e,1.8)),_y=A=>A.map(e=>e>1/512?Ue(e,1/1.8):e*16),xy=A=>{const e=vy([A[0],A[1],A[2]]);return Ta(ky([e[0],e[1],e[2]]))},Sy=A=>{const[e,t,n]=_y(Fy(Sd([A[0],A[1],A[2]])));return[e,t,n,A[3]]},Iy=A=>{const e=xy([A[0],A[1],A[2]]);return Gr([e[0],e[1],e[2],A[3]])},Qo=1.09929682680944,Ld=.018053968510807,Ty=A=>A.map(function(e){return e<Ld*4.5?e/4.5:Math.pow((e+Qo-1)/Qo,1/.45)}),Hy=A=>A.map(function(e){return e>=Ld?Qo*Math.pow(e,.45)-(Qo-1):4.5*e}),Ly=A=>Be([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],A),Ry=A=>Be([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],A),Dy=A=>{const e=Ty([A[0],A[1],A[2]]);return Ly([e[0],e[1],e[2]])},Oy=A=>{const[e,t,n]=Hy(Ry([A[0],A[1],A[2]]));return[e,t,n,A[3]]},Py=A=>{const e=Dy([A[0],A[1],A[2]]);return Gr([e[0],e[1],e[2],A[3]])},Xt={name:"color",parse:(A,e)=>{if(e.type===18){const t=$y[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported color function "${e.name}"`);return t(A,e.values)}if(e.type===5){const[t,n,r,s]=Rd(e);return ze(t,n,r,s)}if(e.type===20){const t=ut[e.value.toUpperCase()];if(typeof t!="undefined")return t}return ut.TRANSPARENT}},Rd=A=>{if(A.value.length===3){const e=A.value.substring(0,1),t=A.value.substring(1,2),n=A.value.substring(2,3);return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16),1]}if(A.value.length===4){const e=A.value.substring(0,1),t=A.value.substring(1,2),n=A.value.substring(2,3),r=A.value.substring(3,4);return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16)/255]}if(A.value.length===6){const e=A.value.substring(0,2),t=A.value.substring(2,4),n=A.value.substring(4,6);return[parseInt(e,16),parseInt(t,16),parseInt(n,16),1]}if(A.value.length===8){const e=A.value.substring(0,2),t=A.value.substring(2,4),n=A.value.substring(4,6),r=A.value.substring(6,8);return[parseInt(e,16),parseInt(t,16),parseInt(n,16),parseInt(r,16)/255]}return[0,0,0,1]},Dd=(A,e)=>{const t=e.filter(zA);if(ln(t))throw new Error("Relative color not supported for rgb()");if(t.length===3){const[n,r,s]=t.map(Zt);return ze(n,r,s,1)}if(t.length===4){const[n,r,s,o]=t.map(Zt);return ze(n,r,s,o)}return t.length===5&&t[3].type===6&&t[3].value==="/"?ze(Zt(t[0],0),Zt(t[1],1),Zt(t[2],2),Zt(t[4],3)):0},My=(A,e)=>{const t=e.filter(zA),n=t[0].type===20?t[0].value:"unknown";if(ln(t)){const r=(E,k)=>{if($A(k))return k.number;const v=U=>U==="r"||U==="x"?0:U==="g"||U==="y"?1:2;if(j(k))return E[v(k.value)];const y=U=>{const x=U.filter(zA);let R="(";for(const H of x)R+=H.type===18&&H.name==="calc"?y(H.values):$A(H)?H.number:H.type===6||j(H)?H.value:"";return R+=")",R};if(k.type===18){const U=k.values.filter(zA);if(k.name==="calc")return gd(y(U).replace(/r|x/,E[0].toString()).replace(/g|y/,E[1].toString()).replace(/b|z/,E[2].toString()))}return null},s=t[1].type===18?t[1].name:j(t[1])||t[1].type===5?"rgb":"unknown",o=j(t[2])?t[2].value:"unknown";let a=t[1].type===18?t[1].values:j(t[1])?[t[1]]:[];if(j(t[1])){if(typeof ut[t[1].value.toUpperCase()]=="undefined")throw new Error("Attempting to use unknown color in relative color 'from'");{const E=Yn(A,t[1].value),k=255&E,v=255&E>>8,y=255&E>>16;a=[{type:17,number:255&E>>24,flags:1},{type:17,number:y,flags:1},{type:17,number:v,flags:1},{type:17,number:k>1?k/255:k,flags:1}]}}else if(t[1].type===5){const[E,k,v,y]=Rd(t[1]);a=[{type:17,number:E,flags:1},{type:17,number:k,flags:1},{type:17,number:v,flags:1},{type:17,number:y>1?y/255:y,flags:1}]}if(a.length===0)throw new Error("Attempting to use unknown color in relative color 'from'");if(o==="unknown")throw new Error("Attempting to use unknown colorspace in relative color 'to'");const i=Ny[s],c=Ky[o],u=Od[o];if(typeof i=="undefined")throw new Error(`Attempting to parse an unsupported color space "${s}" for color() function`);if(typeof c=="undefined")throw new Error(`Attempting to parse an unsupported color space "${o}" for color() function`);const h=c(i(A,a)),f=r(h,t[3]),g=r(h,t[4]),m=r(h,t[5]),b=t.length>6&&t[6].type===6&&t[6].value==="/"&&$A(t[7])?t[7].number:1;if(f===null||g===null||m===null)throw new Error("Invalid relative color in color() function");return u([f,g,m,b])}else{const r=n,s=Od[r];if(typeof s=="undefined")throw new Error(`Attempting to parse an unsupported color space "${r}" for color() function`);return s([$A(t[1])?t[1].number:0,$A(t[2])?t[2].number:0,$A(t[3])?t[3].number:0,t.length>4&&t[4].type===6&&t[4].value==="/"&&$A(t[5])?t[5].number:1])}},Od={srgb:qQ,"srgb-linear":Ia,"display-p3":my,"a98-rgb":Ey,"prophoto-rgb":Iy,xyz:Hd,"xyz-d50":dy,"xyz-d65":Hd,rec2020:Py},Ny={rgb:ry,hsl:sy,lab:oy,lch:iy,oklab:cy,oklch:ay},Ky={srgb:WQ,"srgb-linear":JQ,"display-p3":wy,"a98-rgb":Uy,"prophoto-rgb":Sy,xyz:Td,"xyz-d50":uy,"xyz-d65":Td,rec2020:Oy},$y={hsl:vd,hsla:vd,rgb:Dd,rgba:Dd,lch:ny,oklch:ty,oklab:ey,lab:Ay,color:My},Yn=(A,e)=>Xt.parse(A,fd.create(e).parseComponentValue()),ut={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},un=A=>A.nodeType===Node.ELEMENT_NODE,Pd=A=>A.nodeType===Node.TEXT_NODE,dn=A=>typeof A.className=="object",Zr=A=>un(A)&&typeof A.style!="undefined"&&!dn(A),zy=A=>A.tagName==="INPUT",Vy=A=>A.tagName==="HTML",Md=A=>A.tagName==="svg",La=A=>A.tagName==="BODY",Nd=A=>A.tagName==="CANVAS",Kd=A=>A.tagName==="VIDEO",Ra=A=>A.tagName==="IMG",$d=A=>A.tagName==="IFRAME",zd=A=>A.tagName==="STYLE",Gy=A=>A.tagName==="SCRIPT",yo=A=>A.tagName==="TEXTAREA",Uo=A=>A.tagName==="SELECT",Xr=A=>A.tagName==="SLOT",Zy=A=>A.tagName==="LI",Xy=A=>A.tagName==="OL",Vd=A=>!dn(A)&&A.tagName.indexOf("-")>0,Wy=new Set(["IMG","VIDEO","AUDIO","CANVAS","IFRAME","INPUT","TEXTAREA","SELECT","BR","HR","META","LINK","BASE","COL","SOURCE","TRACK","WBR","AREA","PARAM","EMBED","OBJECT"]),Jy=A=>!dn(A)&&!Wy.has(A.tagName),Da={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){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 52;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}}},ee=(A,e)=>(A&e)!==0;var jy=class{constructor(){this.counters={}}getCounterValue(A){const e=this.counters[A];return e&&e.length?e[e.length-1]:1}getCounterValues(A){const e=this.counters[A];return e||[]}pop(A){A.forEach(e=>this.counters[e].pop())}parse(A){const e=A.counterIncrement,t=A.counterReset;let n=!0;e!==null&&e.forEach(s=>{const o=this.counters[s.counter];o&&s.increment!==0&&(n=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=s.increment)});const r=[];return n&&t.forEach(s=>{let o=this.counters[s.counter];r.push(s.counter),o||(o=this.counters[s.counter]=[]),o.push(s.reset)}),r}};const Gd={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"]},Zd={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Yy={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},qy={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},qn=(A,e,t,n,r,s)=>A<e||A>t?Wr(A,r,s.length>0):n.integers.reduce((o,a,i)=>{for(;A>=a;)A-=a,o+=n.values[i];return o},"")+s,Xd=(A,e,t,n)=>{let r="";do t||A--,r=n(A)+r,A/=e;while(A*e>=e);return r},RA=(A,e,t,n,r)=>{const s=t-e+1;return(A<0?"-":"")+(Xd(Math.abs(A),s,n,o=>HA(Math.floor(o%s)+e))+r)},pn=(A,e,t=". ")=>{const n=e.length;return Xd(Math.abs(A),n,!1,r=>e[Math.floor(r%n)])+t},A0=1,e0=2,t0=4,n0=8,kt=(A,e,t,n,r,s)=>{if(A<-9999||A>9999)return Wr(A,4,r.length>0);let o=Math.abs(A),a=r;if(o===0)return e[0]+a;for(let i=0;o>0&&i<=4;i++){const c=o%10;c===0&&ee(s,A0)&&a!==""?a=e[c]+a:c>1||c===1&&i===0||c===1&&i===1&&ee(s,e0)||c===1&&i===1&&ee(s,t0)&&A>100||c===1&&i>1&&ee(s,n0)?a=e[c]+(i>0?t[i-1]:"")+a:c===1&&i>0&&(a=t[i-1]+a),o=Math.floor(o/10)}return(A<0?n:"")+a},Wd="十百千萬",Jd="拾佰仟萬",jd="マイナス",Oa="마이너스",Wr=(A,e,t)=>{const n=t?". ":"",r=t?"、":"",s=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:const a=RA(A,48,57,!0,n);return a.length<4?`0${a}`:a;case 4:return pn(A,"〇一二三四五六七八九",r);case 6:return qn(A,1,3999,Gd,3,n).toLowerCase();case 7:return qn(A,1,3999,Gd,3,n);case 8:return RA(A,945,969,!1,n);case 9:return RA(A,97,122,!1,n);case 10:return RA(A,65,90,!1,n);case 11:return RA(A,1632,1641,!0,n);case 12:case 49:return qn(A,1,9999,Zd,3,n);case 35:return qn(A,1,9999,Zd,3,n).toLowerCase();case 13:return RA(A,2534,2543,!0,n);case 14:case 30:return RA(A,6112,6121,!0,n);case 15:return pn(A,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return pn(A,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return kt(A,"零一二三四五六七八九",Wd,"負",r,14);case 47:return kt(A,"零壹貳參肆伍陸柒捌玖",Jd,"負",r,15);case 42:return kt(A,"零一二三四五六七八九",Wd,"负",r,14);case 41:return kt(A,"零壹贰叁肆伍陆柒捌玖",Jd,"负",r,15);case 26:return kt(A,"〇一二三四五六七八九","十百千万",jd,r,0);case 25:return kt(A,"零壱弐参四伍六七八九","拾百千万",jd,r,7);case 31:return kt(A,"영일이삼사오육칠팔구","십백천만",Oa,s,7);case 33:return kt(A,"零一二三四五六七八九","十百千萬",Oa,s,0);case 32:return kt(A,"零壹貳參四五六七八九","拾百千",Oa,s,7);case 18:return RA(A,2406,2415,!0,n);case 20:return qn(A,1,19999,qy,3,n);case 21:return RA(A,2790,2799,!0,n);case 22:return RA(A,2662,2671,!0,n);case 52:return qn(A,1,10999,Yy,3,n);case 23:return pn(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return pn(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return RA(A,3302,3311,!0,n);case 28:return pn(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return pn(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return RA(A,3792,3801,!0,n);case 37:return RA(A,6160,6169,!0,n);case 38:return RA(A,4160,4169,!0,n);case 39:return RA(A,2918,2927,!0,n);case 40:return RA(A,1776,1785,!0,n);case 43:return RA(A,3046,3055,!0,n);case 44:return RA(A,3174,3183,!0,n);case 45:return RA(A,3664,3673,!0,n);case 46:return RA(A,3872,3881,!0,n);default:return RA(A,48,57,!0,n)}},r0={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(A,e)=>e.map(t=>{if(j(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2;case"text":return 3}return 0})},s0={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Eo=(A,e)=>{const t=Xt.parse(A,e[0]),n=e[1];return n&&aA(n)?{color:t,stop:n}:{color:t,stop:null}},Pa=(A,e)=>{const t=A[0],n=A[A.length-1];t.stop===null&&(t.stop=LA),n.stop===null&&(n.stop=$e);const r=[];let s=0;for(let a=0;a<A.length;a++){const i=A[a].stop;if(i!==null){const c=J(i,e);c>s?r.push(c):r.push(s),s=c}else r.push(null)}let o=null;for(let a=0;a<r.length;a++){const i=r[a];if(i===null)o===null&&(o=a);else if(o!==null){const c=a-o,u=(i-r[o-1])/(c+1);for(let h=1;h<=c;h++)r[o+h-1]=u*h;o=null}}return A.map(({color:a},i)=>({color:a,stop:Math.max(Math.min(1,r[i]/e),0)}))},o0=(A,e,t)=>{const n=e/2,r=t/2,s=J(A[0],e)-n,o=r-J(A[1],t);return(Math.atan2(o,s)+Math.PI*2)%(Math.PI*2)},Yd=(A,e,t)=>{const n=typeof A=="number"?A:o0(A,e,t),r=Math.abs(e*Math.sin(n))+Math.abs(t*Math.cos(n)),s=e/2,o=t/2,a=r/2,i=Math.sin(n-Math.PI/2)*a,c=Math.cos(n-Math.PI/2)*a;return[r,s-c,s+c,o-i,o+i]},Ve=(A,e)=>Math.sqrt(A*A+e*e),qd=(A,e,t,n,r)=>[[0,0],[0,e],[A,0],[A,e]].reduce((s,o)=>{const[a,i]=o,c=Ve(t-a,n-i);return(r?c<s.optimumDistance:c>s.optimumDistance)?{optimumCorner:o,optimumDistance:c}:s},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner,i0=(A,e,t,n,r)=>{let s=0,o=0;switch(A.size){case 0:A.shape===0?s=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===1&&(s=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(t),Math.abs(t-r)));break;case 2:if(A.shape===0)s=o=Math.min(Ve(e,t),Ve(e,t-r),Ve(e-n,t),Ve(e-n,t-r));else if(A.shape===1){const a=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(e),Math.abs(e-n)),[i,c]=qd(n,r,e,t,!0);s=Ve(i-e,(c-t)/a),o=a*s}break;case 1:A.shape===0?s=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===1&&(s=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(t),Math.abs(t-r)));break;case 3:if(A.shape===0)s=o=Math.max(Ve(e,t),Ve(e,t-r),Ve(e-n,t),Ve(e-n,t-r));else if(A.shape===1){const a=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(e),Math.abs(e-n)),[i,c]=qd(n,r,e,t,!1);s=Ve(i-e,(c-t)/a),o=a*s}break}return Array.isArray(A.size)&&(s=J(A.size[0],n),o=A.size.length===2?J(A.size[1],r):s),[s,o]},Ap=(A,e)=>{let t=_e(180);const n=[];return Ke(e).forEach((r,s)=>{if(s===0){const a=r[0];if(a.type===20&&a.value==="to"){t=kd(r);return}else if(Ed(a)){t=jn.parse(A,a);return}}const o=Eo(A,r);n.push(o)}),{angle:t,stops:n,type:1}},ko=(A,e)=>{let t=_e(180);const n=[];return Ke(e).forEach((r,s)=>{if(s===0){const a=r[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=kd(r);return}else if(Ed(a)){t=(jn.parse(A,a)+_e(270))%_e(360);return}}const o=Eo(A,r);n.push(o)}),{angle:t,stops:n,type:1}},a0=(A,e)=>{const t=_e(180),n=[];let r=1;const s=0,o=3,a=[];return Ke(e).forEach((i,c)=>{const u=i[0];if(c===0){if(j(u)&&u.value==="linear"){r=1;return}else if(j(u)&&u.value==="radial"){r=2;return}}if(u.type===18){if(u.name==="from"){const h=Xt.parse(A,u.values[0]);n.push({stop:LA,color:h})}else if(u.name==="to"){const h=Xt.parse(A,u.values[0]);n.push({stop:$e,color:h})}else if(u.name==="color-stop"){const h=u.values.filter(zA);if(h.length===2){const f=Xt.parse(A,h[1]),g=h[0];$A(g)&&n.push({stop:{type:16,number:g.number*100,flags:g.flags},color:f})}}}}),r===1?{angle:(t+_e(180))%_e(360),stops:n,type:r}:{size:o,shape:s,stops:n,position:a,type:r}},ep="closest-side",tp="farthest-side",np="closest-corner",rp="farthest-corner",sp="circle",op="ellipse",ip="cover",ap="contain",c0=(A,e)=>{let t=0,n=3;const r=[],s=[];return Ke(e).forEach((o,a)=>{let i=!0;if(a===0){let c=!1;i=o.reduce((u,h)=>{if(c)if(j(h))switch(h.value){case"center":return s.push(Ut),u;case"top":case"left":return s.push(LA),u;case"right":case"bottom":return s.push($e),u}else(aA(h)||Gt(h))&&s.push(h);else if(j(h))switch(h.value){case sp:return t=0,!1;case op:return t=1,!1;case"at":return c=!0,!1;case ep:return n=0,!1;case ip:case tp:return n=1,!1;case ap:case np:return n=2,!1;case rp:return n=3,!1}else if(Gt(h)||aA(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return u},i)}if(i){const c=Eo(A,o);r.push(c)}}),{size:n,shape:t,stops:r,position:s,type:2}},Fo=(A,e)=>{let t=0,n=3;const r=[],s=[];return Ke(e).forEach((o,a)=>{let i=!0;if(a===0?i=o.reduce((c,u)=>{if(j(u))switch(u.value){case"center":return s.push(Ut),!1;case"top":case"left":return s.push(LA),!1;case"right":case"bottom":return s.push($e),!1}else if(aA(u)||Gt(u))return s.push(u),!1;return c},i):a===1&&(i=o.reduce((c,u)=>{if(j(u))switch(u.value){case sp:return t=0,!1;case op:return t=1,!1;case ap:case ep:return n=0,!1;case tp:return n=1,!1;case np:return n=2,!1;case ip:case rp:return n=3,!1}else if(Gt(u)||aA(u))return Array.isArray(n)||(n=[]),n.push(u),!1;return c},i)),i){const c=Eo(A,o);r.push(c)}}),{size:n,shape:t,stops:r,position:s,type:2}},Jr=(A,e)=>z(F({},Ap(A,e)),{type:3}),l0=A=>A.type===1,u0=A=>A.type===2,d0=A=>A.type===3,vo={name:"image",parse:(A,e)=>{if(e.type===22){const t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(e.type===18){const t=lp[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported image function "${e.name}"`);return t(A,e.values)}throw new Error(`Unsupported image type ${e.type}`)}};function cp(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!lp[A.name])}const lp={"linear-gradient":Ap,"-moz-linear-gradient":ko,"-ms-linear-gradient":ko,"-o-linear-gradient":ko,"-webkit-linear-gradient":ko,"radial-gradient":c0,"-moz-radial-gradient":Fo,"-ms-radial-gradient":Fo,"-o-radial-gradient":Fo,"-webkit-radial-gradient":Fo,"-webkit-gradient":a0,"repeating-linear-gradient":Jr,"-webkit-repeating-linear-gradient":Jr,"-moz-repeating-linear-gradient":Jr,"-ms-repeating-linear-gradient":Jr,"-o-repeating-linear-gradient":Jr},p0={name:"background-image",initialValue:"none",type:1,prefix:!1,skipCache:!0,parse:(A,e)=>{if(e.length===0)return[];const t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(n=>zA(n)&&cp(n)).map(n=>vo.parse(A,n))}},h0={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(A,e)=>e.map(t=>{if(j(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})},f0={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(A,e)=>Ke(e).map(t=>t.map(wd).filter(n=>n!==null)).map(Cd)},g0={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(A,e)=>Ke(e).map(t=>t.filter(j).map(n=>n.value).join(" ")).map(B0)},B0=A=>{switch(A){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}},w0={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(A,e)=>Ke(e).map(t=>t.map(n=>m0(n)?n:wd(n)).filter(n=>n!==null))},m0=A=>j(A)||aA(A),_o=A=>({name:`border-${A}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),C0=_o("top"),b0=_o("right"),Q0=_o("bottom"),y0=_o("left"),xo=A=>({name:`border-${A}-radius`,initialValue:"0 0",prefix:!1,type:1,parse:(e,t)=>Cd(t.filter(aA))}),U0=xo("top-left"),E0=xo("top-right"),k0=xo("bottom-right"),F0=xo("bottom-left"),So=A=>({name:`border-${A}-style`,initialValue:"solid",prefix:!1,type:2,parse:(e,t)=>{switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),v0=So("top"),_0=So("right"),x0=So("bottom"),S0=So("left"),Io=A=>({name:`border-${A}-width`,initialValue:"0",type:0,prefix:!1,parse:(e,t)=>lt(t)?t.number:0}),I0=Io("top"),T0=Io("right"),H0=Io("bottom"),L0=Io("left"),Ma={type:0},Na=A=>{const[e]=A;return e?j(e)?e.value==="farthest-side"?"farthest-side":"closest-side":aA(e)?e:"closest-side":"closest-side"},up=A=>{let e=null,t=null;for(const n of A)if(j(n))switch(n.value){case"left":e=LA;break;case"right":e=$e;break;case"top":t=LA;break;case"bottom":t=$e;break;case"center":e===null?e=Ut:t===null&&(t=Ut);break}else aA(n)&&(e===null?e=n:t===null&&(t=n));return{cx:e!=null?e:Ut,cy:t!=null?t:Ut}},R0=A=>{var r,s,o,a;const e=[];for(const i of A)if(i.type!==31){if(j(i)&&i.value==="round")break;aA(i)&&e.push(i)}const t=(r=e[0])!=null?r:LA,n=(s=e[1])!=null?s:t;return{type:1,top:t,right:n,bottom:(o=e[2])!=null?o:t,left:(a=e[3])!=null?a:n}},D0=A=>{const e=A.filter(zr),t=e.findIndex(s=>$r(s,"at")),n=t===-1?e:e.slice(0,t),r=t===-1?[]:e.slice(t+1);return F({type:2,radius:Na(n)},up(r))},O0=A=>{const e=A.filter(zr),t=e.findIndex(s=>$r(s,"at")),n=t===-1?e:e.slice(0,t),r=t===-1?[]:e.slice(t+1);return F({type:3,rx:Na(n.slice(0,1)),ry:Na(n.slice(1,2))},up(r))},P0=A=>{const e=Ke(A),t=[];for(const n of e){if(n.length===1&&j(n[0]))continue;const r=n.filter(aA);r.length>=2&&t.push([r[0],r[1]])}return{type:4,points:t}},M0=A=>{const e=A.find(t=>t.type===0);return e?{type:5,d:e.value}:Ma},N0={name:"clip-path",initialValue:"none",prefix:!1,type:0,parse:(A,e)=>{if(j(e)&&e.value==="none")return Ma;if(e.type===18)switch(e.name){case"inset":return R0(e.values);case"circle":return D0(e.values);case"ellipse":return O0(e.values);case"polygon":return P0(e.values);case"path":return M0(e.values)}return Ma}},K0={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$0={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"rtl":return 1;default:return 0}}},z0={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(A,e)=>e.filter(j).reduce((t,n)=>t|V0(n.value),0)},V0=A=>{switch(A){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},dp={name:"float",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},G0={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(A,e)=>e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0},Z0={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"strict":return"strict";default:return"normal"}}},X0={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ka=(A,e)=>j(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:aA(A)?J(A,e):e,W0={name:"list-style-image",initialValue:"none",type:0,prefix:!1,skipCache:!0,parse:(A,e)=>e.type===20&&e.value==="none"?null:vo.parse(A,e)},J0={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"inside":return 0;default:return 1}}},To=A=>({name:`margin-${A}`,initialValue:"0",prefix:!1,type:4}),j0=To("top"),Y0=To("right"),q0=To("bottom"),AU=To("left"),pp={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(A,e)=>e.filter(j).map(t=>{switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},eU={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"break-word":return"break-word";default:return"normal"}}},Ho=A=>({name:`padding-${A}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),tU=Ho("top"),nU=Ho("right"),rU=Ho("bottom"),sU=Ho("left"),oU={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},iU={name:"position",initialValue:"static",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},aU={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.length===1&&$r(e[0],"none")?[]:Ke(e).map(t=>{const n={color:ut.TRANSPARENT,offsetX:LA,offsetY:LA,blur:LA};let r=0;for(let s=0;s<t.length;s++){const o=t[s];Gt(o)?(r===0?n.offsetX=o:r===1?n.offsetY=o:n.blur=o,r++):n.color=Xt.parse(A,o)}return n})},cU={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},lU={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(A,e)=>{if(e.type===20&&e.value==="none")return null;if(e.type===18){const t=uU[e.name];if(typeof t=="undefined")throw new Error(`Attempting to parse an unsupported transform function "${e.name}"`);return t(A,e.values)}return null}},uU={matrix:(A,e)=>{const t=e.filter(n=>n.type===17).map(n=>n.number);return t.length===6?t:null},matrix3d:(A,e)=>{const t=e.filter(c=>c.type===17).map(c=>c.number),[n,r,{},{},s,o,{},{},{},{},{},{},a,i]=t;return t.length===16?[n,r,s,o,a,i]:null},rotate:(A,e)=>{if(e.length!==1)return null;const t=e[0];let n=0;if(t.type===17&&t.number===0)n=0;else if(t.type===15)n=jn.parse(A,t);else return null;const r=Math.cos(n),s=Math.sin(n);return[r,s,-s,r,0,0]}},hp={type:16,number:50,flags:4},dU=[hp,hp],pU={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(A,e)=>{const t=e.filter(aA);return t.length!==2?dU:[t[0],t[1]]}},hU={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(A,e)=>e.type===20&&e.value==="none"?null:e.type===17&&e.number===0?0:e.type===15?jn.parse(A,e)*180/Math.PI:null},fU={name:"visibility",initialValue:"none",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},gU={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"break-all":return"break-all";case"keep-all":return"keep-all";default:return"normal"}}},BU={name:"white-space",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"pre":return"pre";case"nowrap":return"nowrap";case"pre-wrap":return"pre-wrap";case"pre-line":return"pre-line";default:return"normal"}}},Lo=A=>A!==0,$a=A=>A===3||A===4,wU={name:"writing-mode",initialValue:"horizontal-tb",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"vertical-rl":return 1;case"vertical-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4;default:return 0}}},mU={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>{if(e.type===20)return{auto:!0,order:0};if($A(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},fp={name:"time",parse:(A,e)=>{if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},CU={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(A,e)=>$A(e)?e.number:1},gp={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bp={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(A,e)=>e.filter(j).map(t=>{switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(t=>t!==0)},bU={name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},QU={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>{if(j(e))switch(e.value){case"auto":return"auto";case"from-font":return"from-font"}return lt(e)?e.number:"auto"}},yU={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(A,e)=>j(e)&&e.value==="auto"?"auto":lt(e)?e.number:"auto"},UU={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(A,e)=>{const t=[],n=[],r=[];let s=!1;return e.forEach(o=>{switch(o.type){case 20:t.push(o.value);break;case 0:s=!0,t.push(o.value);break;case 17:t.push(o.number.toString());break;case 4:n.push(t.join(" ")),r.push(s),s=!1,t.length=0;break}}),t.length&&(n.push(t.join(" ")),r.push(s)),n.map((o,a)=>r[a]||o.indexOf(" ")!==-1?`'${o.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\a ").replace(/\r/g,"\\d ").replace(/\f/g,"\\c ")}'`:o)}},EU={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},kU={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(A,e)=>{if($A(e))return e.number;if(j(e))switch(e.value){case"bold":return 700;default:return 400}return 400}},FU={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.filter(j).map(t=>t.value)},vU={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},_U={name:"content",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>{if(e.length===0)return[];const t=e[0];return t.type===20&&t.value==="none"?[]:e}},wp=(A,e)=>{const t=[],n=A.filter(zr);for(let r=0;r<n.length;r++){const s=n[r],o=n[r+1];if(s.type===20){const a=o&&$A(o)?o.number:e;t.push([s.value,a])}}return t},xU={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>{if(e.length===0)return null;const t=e[0];return t.type===20&&t.value==="none"?null:wp(e,1).map(([n,r])=>({counter:n,increment:r}))}},SU={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>e.length===0?[]:wp(e,0).filter(([t])=>t!=="none").map(([t,n])=>({counter:t,reset:n}))},IU={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(A,e)=>e.filter(lt).map(t=>fp.parse(A,t))},TU={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(A,e)=>{if(e.length===0)return null;const t=e[0];if(t.type===20&&t.value==="none")return null;const n=[],r=e.filter(GQ);if(r.length%2!==0)return null;for(let s=0;s<r.length;s+=2){const o=r[s].value,a=r[s+1].value;n.push({open:o,close:a})}return n}},mp=(A,e,t)=>{if(!A)return"";const n=A[Math.min(e,A.length-1)];return n?t?n.open:n.close:""},HU={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(A,e)=>e.length===1&&$r(e[0],"none")?[]:Ke(e).map(t=>{const n={color:255,offsetX:LA,offsetY:LA,blur:LA,spread:LA,inset:!1};let r=0;for(let s=0;s<t.length;s++){const o=t[s];$r(o,"inset")?n.inset=!0:Gt(o)?(r===0?n.offsetX=o:r===1?n.offsetY=o:r===2?n.blur=o:n.spread=o,r++):n.color=Xt.parse(A,o)}return n})},LU={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(A,e)=>{const t=[0,1,2],n=[];return e.filter(j).forEach(r=>{switch(r.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),t.forEach(r=>{n.indexOf(r)===-1&&n.push(r)}),n}},RU={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},DU={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(A,e)=>lt(e)?e.number:0},OU={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(A,e)=>e.type===20&&e.value==="none"?0:e.type===17?Math.max(0,Math.floor(e.number)):0},PU={name:"object-fit",initialValue:"fill",prefix:!1,type:1,parse:(A,e)=>e.filter(j).reduce((t,n)=>t|MU(n.value),0)},MU=A=>{switch(A){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},NU={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"ellipsis":return 1;default:return 0}}},KU={name:"image-rendering",initialValue:"auto",prefix:!1,type:2,parse:(A,e)=>{switch(e.toLowerCase()){case"crisp-edges":case"-webkit-crisp-edges":case"-moz-crisp-edges":return 1;case"pixelated":case"-webkit-optimize-contrast":return 2;case"smooth":case"high-quality":return 3;default:return 0}}},VA={NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"},$U=new Set(Object.values(VA)),zU={name:"mix-blend-mode",initialValue:"normal",type:2,prefix:!1,parse:(A,e)=>$U.has(e)?e:VA.NORMAL},VU={name:"filter",initialValue:"none",prefix:!1,type:1,parse:(A,e)=>{if(e.length===1&&e[0].type===20&&e[0].value==="none")return null;const t=[];for(const n of e)if(n.type===18){const r=n,s=GU(r.values);switch(r.name){case"blur":t.push(`blur(${s}px)`);break;case"brightness":case"contrast":case"invert":case"opacity":case"saturate":case"sepia":t.push(`${r.name}(${s})`);break;case"grayscale":t.push(`grayscale(${s})`);break;case"hue-rotate":t.push(`hue-rotate(${s}deg)`);break;case"drop-shadow":t.push(`drop-shadow(${s})`);break}}return t.length>0?t.join(" "):null}},GU=A=>{const e=[];for(const t of A)t.type!==31&&(t.type===15?e.push(`${t.number}${t.unit}`):t.type===17?e.push(`${t.number}`):t.type===16?e.push(`${t.number}%`):t.type===20?e.push(t.value):t.type===5&&e.push(`#${t.value}`));return e.join(" ")},ZU={name:"font-variant-ligatures",initialValue:"normal",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"none":return 1;case"common-ligatures":return 2;case"no-common-ligatures":return 3;case"discretionary-ligatures":return 4;case"no-discretionary-ligatures":return 5;case"historical-ligatures":return 6;case"no-historical-ligatures":return 7;case"contextual":return 8;case"no-contextual":return 9;default:return 0}}},XU={name:"zoom",initialValue:"1",type:0,prefix:!1,parse:(A,e)=>e.type===16?Math.max(0,e.number/100):e.type===17?Math.max(0,e.number):1},WU={name:"object-position",initialValue:"50% 50%",prefix:!1,type:1,parse:(A,e)=>{const t=[];let n=0;for(;n<e.length&&t.length<2;){const r=e[n];if(j(r))switch(r.value){case"left":case"top":t.push(LA);break;case"center":t.push(Ut);break;case"right":case"bottom":t.push($e);break}else aA(r)&&t.push(r);n++}for(;t.length<2;)t.push(Ut);return[t[0],t[1]]}},JU=new Set(Object.values({NORMAL:"normal",MULTIPLY:"multiply",SCREEN:"screen",OVERLAY:"overlay",DARKEN:"darken",LIGHTEN:"lighten",COLOR_DODGE:"color-dodge",COLOR_BURN:"color-burn",HARD_LIGHT:"hard-light",SOFT_LIGHT:"soft-light",DIFFERENCE:"difference",EXCLUSION:"exclusion",HUE:"hue",SATURATION:"saturation",COLOR:"color",LUMINOSITY:"luminosity"})),jU={name:"background-blend-mode",initialValue:"normal",prefix:!1,type:1,parse:(A,e)=>{const t=[],n=e.filter(zA);for(const r of n)j(r)&&JU.has(r.value)&&t.push(r.value);return t.length>0?t:["normal"]}},YU={name:"border-image-source",initialValue:"none",prefix:!1,type:1,skipCache:!0,parse:(A,e)=>{if(e.length===0)return null;const t=e.filter(n=>zA(n)&&cp(n));return t.length===0?null:vo.parse(A,t[0])}},qU=A=>{const e=[...A];return e.length===1?e.push(e[0],e[0],e[0]):e.length===2?e.push(e[0],e[1]):e.length===3&&e.push(e[1]),e.slice(0,4)},AE={name:"border-image-slice",initialValue:"100%",prefix:!1,type:1,parse:(A,e)=>{const t=e.filter(zr),n=[];let r=!1,s="percent";for(const u of t){if(j(u)&&u.value==="fill"){r=!0;continue}u.type===17?(n.push(u.number),s="number"):u.type===16&&(n.push(u.number),s="percent")}const[o,a,i,c]=qU(n.length>0?n:[100]);return{top:o,right:a,bottom:i,left:c,fill:r,unit:s}}},eE=A=>{switch(A){case"repeat":return 1;case"round":return 2;case"space":return 3;default:return 0}},tE={name:"border-image-repeat",initialValue:"stretch",prefix:!1,type:1,parse:(A,e)=>{var s,o;const t=e.filter(zr),n=[];for(const a of t)j(a)&&n.push(eE(a.value));const r=(s=n[0])!=null?s:0;return{horizontal:r,vertical:(o=n[1])!=null?o:r}}},nE={name:"box-decoration-break",initialValue:"slice",prefix:!1,type:2,parse:(A,e)=>{switch(e){case"clone":return 1;default:return 0}}},rE=1e4;var sE=class{constructor(A){this.styles=A}get topColor(){return this.styles.borderTopColor}get rightColor(){return this.styles.borderRightColor}get bottomColor(){return this.styles.borderBottomColor}get leftColor(){return this.styles.borderLeftColor}get topStyle(){return this.styles.borderTopStyle}get rightStyle(){return this.styles.borderRightStyle}get bottomStyle(){return this.styles.borderBottomStyle}get leftStyle(){return this.styles.borderLeftStyle}get topWidth(){return this.styles.borderTopWidth}get rightWidth(){return this.styles.borderRightWidth}get bottomWidth(){return this.styles.borderBottomWidth}get leftWidth(){return this.styles.borderLeftWidth}get topLeftRadius(){return this.styles.borderTopLeftRadius}get topRightRadius(){return this.styles.borderTopRightRadius}get bottomRightRadius(){return this.styles.borderBottomRightRadius}get bottomLeftRadius(){return this.styles.borderBottomLeftRadius}get imageSource(){return this.styles.borderImageSource}get imageSlice(){return this.styles.borderImageSlice}get imageRepeat(){return this.styles.borderImageRepeat}get boxShadow(){return this.styles.boxShadow}},oE=class{constructor(A){this.styles=A}get color(){return this.styles.backgroundColor}get image(){return this.styles.backgroundImage}get clip(){return this.styles.backgroundClip}get origin(){return this.styles.backgroundOrigin}get position(){return this.styles.backgroundPosition}get repeat(){return this.styles.backgroundRepeat}get size(){return this.styles.backgroundSize}get blendMode(){return this.styles.backgroundBlendMode}},iE=class{constructor(A){this.styles=A}get family(){return this.styles.fontFamily}get size(){return this.styles.fontSize}get style(){return this.styles.fontStyle}get variant(){return this.styles.fontVariant}get weight(){return this.styles.fontWeight}get ligatures(){return this.styles.fontVariantLigatures}get color(){return this.styles.color}get letterSpacing(){return this.styles.letterSpacing}get lineHeight(){return this.styles.lineHeight}get textAlign(){return this.styles.textAlign}get textTransform(){return this.styles.textTransform}get textOverflow(){return this.styles.textOverflow}get textShadow(){return this.styles.textShadow}get textDecorationColor(){return this.styles.textDecorationColor}get textDecorationLine(){return this.styles.textDecorationLine}get textDecorationStyle(){return this.styles.textDecorationStyle}get textDecorationThickness(){return this.styles.textDecorationThickness}get textUnderlineOffset(){return this.styles.textUnderlineOffset}get wordBreak(){return this.styles.wordBreak}get lineBreak(){return this.styles.lineBreak}get overflowWrap(){return this.styles.overflowWrap}get writingMode(){return this.styles.writingMode}get direction(){return this.styles.direction}get webkitTextStrokeColor(){return this.styles.webkitTextStrokeColor}get webkitTextStrokeWidth(){return this.styles.webkitTextStrokeWidth}get webkitLineClamp(){return this.styles.webkitLineClamp}get paintOrder(){return this.styles.paintOrder}},aE=class{constructor(A){this.styles=A}get display(){return this.styles.display}get position(){return this.styles.position}get float(){return this.styles.float}get zIndex(){return this.styles.zIndex}get marginTop(){return this.styles.marginTop}get marginRight(){return this.styles.marginRight}get marginBottom(){return this.styles.marginBottom}get marginLeft(){return this.styles.marginLeft}get paddingTop(){return this.styles.paddingTop}get paddingRight(){return this.styles.paddingRight}get paddingBottom(){return this.styles.paddingBottom}get paddingLeft(){return this.styles.paddingLeft}get overflowX(){return this.styles.overflowX}get overflowY(){return this.styles.overflowY}get opacity(){return this.styles.opacity}get visibility(){return this.styles.visibility}get transform(){return this.styles.transform}get transformOrigin(){return this.styles.transformOrigin}get rotate(){return this.styles.rotate}get zoom(){return this.styles.zoom}get clipPath(){return this.styles.clipPath}get mixBlendMode(){return this.styles.mixBlendMode}get filter(){return this.styles.filter}get imageRendering(){return this.styles.imageRendering}get objectFit(){return this.styles.objectFit}get objectPosition(){return this.styles.objectPosition}get boxDecorationBreak(){return this.styles.boxDecorationBreak}get listStyleImage(){return this.styles.listStyleImage}get listStylePosition(){return this.styles.listStylePosition}get listStyleType(){return this.styles.listStyleType}get animationDuration(){return this.styles.animationDuration}isVisible(){return this.styles.isVisible()}isTransparent(){return this.styles.isTransparent()}isTransformed(){return this.styles.isTransformed()}isPositioned(){return this.styles.isPositioned()}isPositionedWithZIndex(){return this.styles.isPositionedWithZIndex()}isFloating(){return this.styles.isFloating()}isInlineLevel(){return this.styles.isInlineLevel()}},cE=(vn=class{get border(){var e;return(e=this._border)!=null?e:this._border=new sE(this)}get background(){var e;return(e=this._background)!=null?e:this._background=new oE(this)}get font(){var e;return(e=this._font)!=null?e:this._font=new iE(this)}get layout(){var e;return(e=this._layout)!=null?e:this._layout=new aE(this)}constructor(e,t){var s,o;const n=vn.standardProps;if(t.display==="none"){this.display=0;for(const[i,c]of n)i!=="display"&&(this[i]=we(e,c,void 0));this.float=we(e,dp,void 0),this.textDecorationColor=we(e,gp,void 0),this.textDecorationLine=we(e,Bp,void 0);const a=we(e,pp,void 0);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0];return}for(const[a,i,c]of n)this[a]=we(e,i,t[c]);this.float=we(e,dp,t.cssFloat),this.textDecorationColor=we(e,gp,(s=t.textDecorationColor)!=null?s:t.color),this.textDecorationLine=we(e,Bp,(o=t.textDecorationLine)!=null?o:t.textDecoration);const r=we(e,pp,t.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0]}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===0}isTransparent(){return Et(this.backgroundColor)}isTransformed(){return this.transform!==null||this.rotate!==null}isPositioned(){return this.position!==0}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return this.float!==0}isInlineLevel(){return ee(this.display,4)||ee(this.display,33554432)||ee(this.display,268435456)||ee(this.display,536870912)||ee(this.display,67108864)||ee(this.display,134217728)}},vn.standardProps=[["animationDuration",IU,"animationDuration"],["backgroundClip",r0,"backgroundClip"],["backgroundColor",s0,"backgroundColor"],["backgroundImage",p0,"backgroundImage"],["backgroundOrigin",h0,"backgroundOrigin"],["backgroundPosition",f0,"backgroundPosition"],["backgroundRepeat",g0,"backgroundRepeat"],["backgroundSize",w0,"backgroundSize"],["borderTopColor",C0,"borderTopColor"],["borderRightColor",b0,"borderRightColor"],["borderBottomColor",Q0,"borderBottomColor"],["borderLeftColor",y0,"borderLeftColor"],["borderTopLeftRadius",U0,"borderTopLeftRadius"],["borderTopRightRadius",E0,"borderTopRightRadius"],["borderBottomRightRadius",k0,"borderBottomRightRadius"],["borderBottomLeftRadius",F0,"borderBottomLeftRadius"],["borderTopStyle",v0,"borderTopStyle"],["borderRightStyle",_0,"borderRightStyle"],["borderBottomStyle",x0,"borderBottomStyle"],["borderLeftStyle",S0,"borderLeftStyle"],["borderTopWidth",I0,"borderTopWidth"],["borderRightWidth",T0,"borderRightWidth"],["borderBottomWidth",H0,"borderBottomWidth"],["borderLeftWidth",L0,"borderLeftWidth"],["boxShadow",HU,"boxShadow"],["clipPath",N0,"clipPath"],["color",K0,"color"],["direction",$0,"direction"],["display",z0,"display"],["fontFamily",UU,"fontFamily"],["fontSize",EU,"fontSize"],["fontStyle",vU,"fontStyle"],["fontVariant",FU,"fontVariant"],["fontWeight",kU,"fontWeight"],["letterSpacing",G0,"letterSpacing"],["lineBreak",Z0,"lineBreak"],["lineHeight",X0,"lineHeight"],["listStyleImage",W0,"listStyleImage"],["listStylePosition",J0,"listStylePosition"],["listStyleType",Da,"listStyleType"],["marginTop",j0,"marginTop"],["marginRight",Y0,"marginRight"],["marginBottom",q0,"marginBottom"],["marginLeft",AU,"marginLeft"],["opacity",CU,"opacity"],["overflowWrap",eU,"overflowWrap"],["paddingTop",tU,"paddingTop"],["paddingRight",nU,"paddingRight"],["paddingBottom",rU,"paddingBottom"],["paddingLeft",sU,"paddingLeft"],["paintOrder",LU,"paintOrder"],["position",iU,"position"],["textAlign",oU,"textAlign"],["textDecorationStyle",bU,"textDecorationStyle"],["textDecorationThickness",QU,"textDecorationThickness"],["textUnderlineOffset",yU,"textUnderlineOffset"],["textShadow",aU,"textShadow"],["textTransform",cU,"textTransform"],["textOverflow",NU,"textOverflow"],["transform",lU,"transform"],["transformOrigin",pU,"transformOrigin"],["rotate",hU,"rotate"],["visibility",fU,"visibility"],["webkitTextStrokeColor",RU,"webkitTextStrokeColor"],["webkitTextStrokeWidth",DU,"webkitTextStrokeWidth"],["webkitLineClamp",OU,"webkitLineClamp"],["wordBreak",gU,"wordBreak"],["whiteSpace",BU,"whiteSpace"],["writingMode",wU,"writingMode"],["zIndex",mU,"zIndex"],["objectFit",PU,"objectFit"],["imageRendering",KU,"imageRendering"],["mixBlendMode",zU,"mixBlendMode"],["filter",VU,"filter"],["fontVariantLigatures",ZU,"fontVariantLigatures"],["zoom",XU,"zoom"],["objectPosition",WU,"objectPosition"],["backgroundBlendMode",jU,"backgroundBlendMode"],["borderImageSource",YU,"borderImageSource"],["borderImageSlice",AE,"borderImageSlice"],["borderImageRepeat",tE,"borderImageRepeat"],["boxDecorationBreak",nE,"boxDecorationBreak"]],vn),lE=class{constructor(A,e){this.content=we(A,_U,e.content),this.quotes=we(A,TU,e.quotes)}},Cp=class{constructor(A,e){this.counterIncrement=we(A,xU,e.counterIncrement),this.counterReset=we(A,SU,e.counterReset)}};const bp=new Map,we=(A,e,t)=>{let n=t!==null&&typeof t!="undefined"?t.toString():e.initialValue;n.trim()===""&&(n=e.initialValue);let r=bp.get(e);if(r){const i=r.get(n);if(i!==void 0)return r.delete(n),r.set(n,i),i}const s=_a.get();s.write(n);const o=new fd(s.read());_a.release(s);const a=(()=>{switch(e.type){case 2:{const i=o.parseComponentValue();return e.parse(A,j(i)?i.value:e.initialValue)}case 0:return e.parse(A,o.parseComponentValue());case 1:return e.parse(A,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return jn.parse(A,o.parseComponentValue());case"color":return Xt.parse(A,o.parseComponentValue());case"image":return vo.parse(A,o.parseComponentValue());case"length":{const i=o.parseComponentValue();return Gt(i)?i:LA}case"length-percentage":{const i=o.parseComponentValue();return aA(i)?i:LA}case"time":return fp.parse(A,o.parseComponentValue())}}})();if(r||(r=new Map,bp.set(e,r)),!(e.skipCache||e.type===3&&e.format==="image")){if(r.size>=200){const i=r.keys().next().value;r.delete(i)}r.set(n,a)}return a},uE="data-html2canvas-debug",dE=A=>{if(typeof A.getAttribute!="function")return 0;switch(A.getAttribute(uE)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},za=(A,e)=>{const t=dE(A);return t===1||e===t},pE="data-html2canvas-ignore";var hE=class{constructor(A,e,t){this.cloneNodeFn=A,this.options=e,this.context=t}appendChildNode(A,e,t){this.safeAppendClonedChild(A,e,t)}cloneChildNodes(A,e,t){A.shadowRoot&&e.shadowRoot?(this.cloneShadowDOMChildren(A.shadowRoot,e.shadowRoot,t),this.cloneLightDOMChildren(A,e,t)):A.shadowRoot&&!e.shadowRoot?this.cloneShadowDOMAsLightDOM(A.shadowRoot,e,t):this.cloneLightDOMChildren(A,e,t)}shouldCloneChild(A){return!un(A)||!Gy(A)&&!A.hasAttribute("data-html2canvas-ignore")&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A))}shouldCloneStyleElement(A){return!this.options.copyStyles||!un(A)||!zd(A)}safeAppendClonedChild(A,e,t){this.shouldCloneChild(e)&&this.shouldCloneStyleElement(e)&&A.appendChild(this.cloneNodeFn(e,t))}cloneAssignedNodes(A,e,t){A.forEach(n=>{this.safeAppendClonedChild(e,n,t)})}cloneSlotFallbackContent(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)this.safeAppendClonedChild(e,n,t)}cloneSlotElement(A,e,t){if(!Xr(A))return;const n=A;if(typeof n.assignedNodes!="function"){this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",A),this.cloneSlotFallbackContent(A,e,t);return}const r=n.assignedNodes();if(!r||!Array.isArray(r)){this.context.logger.warn("assignedNodes() did not return a valid array",A),this.cloneSlotFallbackContent(A,e,t);return}r.length>0?this.cloneAssignedNodes(r,e,t):this.cloneSlotFallbackContent(A,e,t)}cloneShadowDOMChildren(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)un(n)&&Xr(n)?this.cloneSlotElement(n,e,t):this.safeAppendClonedChild(e,n,t)}cloneLightDOMChildren(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)this.appendChildNode(e,n,t)}cloneSlotElementAsLightDOM(A,e,t){if(!Xr(A))return;const n=A;if(typeof n.assignedNodes!="function"){for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,t);return}const r=n.assignedNodes();if(r&&Array.isArray(r)&&r.length>0)r.forEach(s=>this.appendChildNode(e,s,t));else for(let s=A.firstChild;s;s=s.nextSibling)this.appendChildNode(e,s,t)}cloneShadowDOMAsLightDOM(A,e,t){for(let n=A.firstChild;n;n=n.nextSibling)un(n)&&Xr(n)?this.cloneSlotElementAsLightDOM(n,e,t):this.appendChildNode(e,n,t)}};const fE=A=>{let e=A;for(;e;){if(e.parentNode&&e.parentNode.host)return e.parentNode;const t=e.getRootNode();if(t&&t!==e.ownerDocument&&t.host)return t;e=e.parentNode}return null};var Va=class{constructor(A,e,t){var n;if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new jy,this.quoteDepth=0,this.slotCloner=new hE((r,s)=>this.cloneNode(r,s),{ignoreElements:t.ignoreElements,copyStyles:(n=t.copyStyles)!=null?n:!0},A),!e.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const r=fE(e);r&&(this.options.iframeContainer=r)}this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}toIFrame(A,e){var h,f;const t=gE(A,e,this.options.iframeContainer);if(!t.contentWindow)throw new Error("Unable to find iframe window");const n=A.defaultView.pageXOffset,r=A.defaultView.pageYOffset,s=t.contentWindow,o=s.document,a=mE(t).then(()=>I(this,null,function*(){this.scrolledElements.forEach(yE),s&&s.scrollTo(e.left,e.top);const g=this.options.onclone,m=this.clonedReferenceElement;if(typeof m=="undefined")throw new Error(`Error finding the ${this.referenceElement.nodeName} in the cloned document`);return o.fonts&&o.fonts.ready&&(yield o.fonts.ready),/(AppleWebKit)/g.test(navigator.userAgent)&&(yield wE(o)),typeof g=="function"&&(yield Promise.resolve().then(()=>g(o,m))),s.scrollTo(e.left,e.top),/AppleWebKit/g.test(navigator.userAgent)&&(s.scrollY!==e.top||s.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0)),t})),i=A.baseURI;o.open();const c=bE(document.doctype)+"<html></html>";try{const g=(h=this.referenceElement.ownerDocument)==null?void 0:h.defaultView,m=g&&g.trustedTypes;let b=(f=m==null?void 0:m.getPolicy)==null?void 0:f.call(m,"html2canvas-pro");!b&&m&&(b=m.createPolicy("html2canvas-pro",{createHTML:k=>k}));const E=b?b.createHTML(c):c;o.write(E)}catch(g){o.write(c)}QE(this.referenceElement.ownerDocument,n,r),o.close();const u=o.adoptNode(this.documentElement);return vE(u,i),o.replaceChild(u,o.documentElement),a}createElementClone(A){if(za(A,2))debugger;if(Nd(A))return this.createCanvasClone(A);if(Kd(A))return this.createVideoClone(A);if(zd(A))return this.createStyleClone(A);const e=A.cloneNode(!1);return Ra(e)&&(Ra(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Vd(e)&&!dn(e)?this.createCustomElementClone(A,e):e}createCustomElementClone(A,e){const t=document.createElement("div");t.className=e.className,Ga(e.style,t);const n=e.attributes;for(let r=0;r<n.length;r++){const s=n[r];s.name!=="class"&&s.name!=="style"&&t.setAttribute(s.name,s.value)}if(A.shadowRoot)try{t.attachShadow({mode:"open"})}catch(r){this.context.logger.error("Failed to attach shadow root to custom element clone:",r)}return t}createStyleClone(A){try{const t=A.sheet;if(t&&t.cssRules){const n=[].slice.call(t.cssRules,0).reduce((s,o)=>o&&typeof o.cssText=="string"?s+o.cssText:s,""),r=A.cloneNode(!1);return r.textContent=n,this.options.cspNonce&&(r.nonce=this.options.cspNonce),r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),t.name!=="SecurityError")throw t}const e=A.cloneNode(!1);return this.options.cspNonce&&(e.nonce=this.options.cspNonce),e}createCanvasClone(A){var t,n;if(this.options.inlineImages&&A.ownerDocument){const r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch(s){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}const e=A.cloneNode(!1);try{e.width=A.width,e.height=A.height;const r=A.getContext("2d"),s=e.getContext("2d",{willReadFrequently:!0});if(s)if(!this.options.allowTaint&&r)s.putImageData(r.getImageData(0,0,A.width,A.height),0,0);else{const o=(t=A.getContext("webgl2"))!=null?t:A.getContext("webgl");o&&((n=o.getContextAttributes())==null?void 0:n.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A),s.drawImage(A,0,0)}return e}catch(r){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return e}createVideoClone(A){const e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;const t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(r){this.context.logger.info("Unable to clone video as it is tainted",A)}const n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n}appendChildNode(A,e,t){this.slotCloner.appendChildNode(A,e,t)}cloneChildNodes(A,e,t){this.slotCloner.cloneChildNodes(A,e,t)}cloneNode(A,e){if(Pd(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);const t=A.ownerDocument.defaultView;if(t&&un(A)&&(Zr(A)||dn(A))){const n=this.createElementClone(A);n.style.transitionProperty="none";const r=t.getComputedStyle(A),s=Jy(A);this.referenceElement===A&&Zr(n)&&(this.clonedReferenceElement=n),La(n)&&kE(n,this.options.cspNonce);const o=this.counters.parse(new Cp(this.context,r));if(s){const a=t.getComputedStyle(A,":before"),i=this.resolvePseudoContent(A,n,a,0);i&&n.insertBefore(i,n.firstChild);const c=t.getComputedStyle(A,":after"),u=this.resolvePseudoContent(A,n,c,1);u&&n.appendChild(u)}return Vd(A)&&(e=!0),Kd(A)||this.cloneChildNodes(A,n,e),this.counters.pop(o),(r&&(this.options.copyStyles||dn(A))&&!$d(A)||e)&&Ga(r,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(yo(A)||Uo(A))&&(yo(n)||Uo(n))&&(n.value=A.value),n}return A.cloneNode(!1)}resolvePseudoContent(A,e,t,n){if(!t)return;const r=t.content,s=e.ownerDocument;if(!s||!r||r==="none"||r==="-moz-alt-content"||t.display==="none")return;this.counters.parse(new Cp(this.context,t));const o=new lE(this.context,t),a=s.createElement("html2canvaspseudoelement");Ga(t,a),o.content.forEach(c=>{if(c.type===0)a.appendChild(s.createTextNode(c.value));else if(c.type===22){const u=s.createElement("img");u.src=c.value,u.style.opacity="1",a.appendChild(u)}else if(c.type===18){if(c.name==="attr"){const u=c.values.filter(j);u.length&&a.appendChild(s.createTextNode(A.getAttribute(u[0].value)||""))}else if(c.name==="counter"){const[u,h]=c.values.filter(zA);if(u&&j(u)){const f=this.counters.getCounterValue(u.value),g=h&&j(h)?Da.parse(this.context,h.value):3;a.appendChild(s.createTextNode(Wr(f,g,!1)))}}else if(c.name==="counters"){const[u,h,f]=c.values.filter(zA);if(u&&j(u)){const g=this.counters.getCounterValues(u.value),m=f&&j(f)?Da.parse(this.context,f.value):3,b=h&&h.type===0?h.value:"",E=g.map(k=>Wr(k,m,!1)).join(b);a.appendChild(s.createTextNode(E))}}}else if(c.type===20)switch(c.value){case"open-quote":a.appendChild(s.createTextNode(mp(o.quotes,this.quoteDepth++,!0)));break;case"close-quote":a.appendChild(s.createTextNode(mp(o.quotes,--this.quoteDepth,!1)));break;default:a.appendChild(s.createTextNode(c.value))}}),a.className=`${Za} ${Xa}`;const i=n===0?` ${Za}`:` ${Xa}`;return dn(e)?e.className.baseValue+=i:e.className+=i,a}static destroy(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1}};const gE=(A,e,t)=>{const n=A.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(pE,"true"),(t||A.body).appendChild(n),n},BE=A=>new Promise(e=>{if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e}),wE=A=>Promise.all([].slice.call(A.images,0).map(BE)),mE=A=>new Promise((e,t)=>{const n=A.contentWindow;if(!n)return t("No window assigned for iframe");const r=n.document;n.onload=A.onload=()=>{n.onload=A.onload=null;const s=600;let o=0;const a=setInterval(()=>{o++,(r.body.childNodes.length>0&&r.readyState==="complete"||o>=s)&&(clearInterval(a),e(A))},50)}}),CE=["all","d","content"],Ga=(A,e)=>{const t=[];for(let n=A.length-1;n>=0;n--){const r=A.item(n);if(CE.indexOf(r)===-1&&!r.startsWith("--")){const s=A.getPropertyValue(r);if(s){const o=A.getPropertyPriority(r);t.push(o?`${r}:${s} !${o}`:`${r}:${s}`)}}}return t.length>0&&(e.style.cssText=t.join(";")+";"),e},bE=A=>{let e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=" "+A.internalSubset.replace(/"/g,"&quot;").replace(/>/g,"&gt;")),A.publicId?(e+=' PUBLIC "'+A.publicId.replace(/"/g,"&quot;")+'"',A.systemId&&(e+=' "'+A.systemId.replace(/"/g,"&quot;")+'"')):A.systemId&&(e+=' SYSTEM "'+A.systemId.replace(/"/g,"&quot;")+'"'),e+=">"),e},QE=(A,e,t)=>{A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},yE=([A,e,t])=>{A.scrollLeft=e,A.scrollTop=t},UE=":before",EE=":after",Za="___html2canvas___pseudoelement_before",Xa="___html2canvas___pseudoelement_after",Qp=`{
1665
1659
  content: "" !important;
1666
1660
  display: none !important;
1667
- }`,yE=(A,e)=>{UE(A,`.${za}${bE}${wp}
1668
- .${Va}${QE}${wp}`,e)},UE=(A,e,t)=>{const n=A.ownerDocument;if(n){const r=n.createElement("style");r.textContent=e,t&&(r.nonce=t),A.appendChild(r)}},EE=(A,e)=>{var r;const t=A.ownerDocument.createElement("base");t.href=e;const n=A.getElementsByTagName("head").item(0);n==null||n.insertBefore(t,(r=n==null?void 0:n.firstChild)!=null?r:null)};for(var mp=class{static normalizeElement(A,e){const t={};return Gr(A)&&(e.animationDuration.some(n=>n>0)&&(t.animationDuration=A.style.animationDuration,A.style.animationDuration="0s"),e.transform!==null&&(t.transform=A.style.transform,A.style.transform="translate(0, 0)"),e.rotate!==null&&(t.rotate=A.style.rotate,A.style.rotate="0deg",t.transform===void 0&&(t.transform=A.style.transform,A.style.transform="translate(0, 0)"))),t}static restoreElement(A,e){Gr(A)&&(e.animationDuration!==void 0&&(A.style.animationDuration=e.animationDuration),e.transform!==void 0&&(A.style.transform=e.transform),e.rotate!==void 0&&(A.style.rotate=e.rotate))}},ut=class{constructor(A,e,t={}){if(this.context=A,this.textNodes=[],this.elements=[],this.createsStackingContext=!1,this.createsRealStackingContext=!1,this.isListOwner=!1,this.debugRender=!1,Ka(e,3))debugger;if(this.styles=new oE(A,A.config.window.getComputedStyle(e,null)),t.normalizeDom!==!1&&Gr(e)&&(this.originalStyles=mp.normalizeElement(e,this.styles),this.originalElement=e),this.bounds=Hr(this.context,e),e.tagName==="FIELDSET"){const n=e.querySelector(":scope > legend");if(n){const r=Hr(this.context,n);this.legendBounds=r;const s=r.top+r.height/2-this.styles.borderTopWidth/2;this.bounds=new Fe(this.bounds.left,s,this.bounds.width,this.bounds.height-(s-this.bounds.top))}}Ka(e,4)&&(this.debugRender=!0)}restore(){this.originalStyles&&this.originalElement&&(mp.restoreElement(this.originalElement,this.originalStyles),this.originalStyles=void 0,this.originalElement=void 0)}restoreTree(){this.restore();for(const A of this.elements)A.restoreTree()}},kE="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA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QU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAA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GVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKB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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Cp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Lo=0;Lo<Cp.length;Lo++)Jr[Cp.charCodeAt(Lo)]=Lo;for(var FE=function(A){var e=A.length*.75,t=A.length,n,r=0,s,o,a,i;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<t;n+=4)s=Jr[A.charCodeAt(n)],o=Jr[A.charCodeAt(n+1)],a=Jr[A.charCodeAt(n+2)],i=Jr[A.charCodeAt(n+3)],u[r++]=s<<2|o>>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|i&63;return c},vE=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},_E=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},pn=5,Ga=11,Za=2,xE=Ga-pn,bp=65536>>pn,Xa=(1<<pn)-1,SE=bp+(1024>>pn)+32,IE=65536>>Ga,TE=(1<<xE)-1,Qp=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},HE=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},LE=function(A,e){var t=FE(A),n=Array.isArray(t)?_E(t):new Uint32Array(t),r=Array.isArray(t)?vE(t):new Uint16Array(t),s=24,o=Qp(r,s/2,n[4]/2),a=n[5]===2?Qp(r,(s+n[4])/2):HE(n,Math.ceil((s+n[4])/4));return new DE(n[0],n[1],n[2],n[3],o,a)},DE=(function(){function A(e,t,n,r,s,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=s,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>pn],t=(t<<Za)+(e&Xa),this.data[t];if(e<=65535)return t=this.index[bp+(e-55296>>pn)],t=(t<<Za)+(e&Xa),this.data[t];if(e<this.highStart)return t=SE-IE+(e>>Ga),t=this.index[t],t+=e>>pn&TE,t=this.index[t],t=(t<<Za)+(e&Xa),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),yp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",RE=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Do=0;Do<yp.length;Do++)RE[yp.charCodeAt(Do)]=Do;var OE=1,Wa=2,Ja=3,Up=4,Ep=5,PE=7,kp=8,ja=9,Ya=10,Fp=11,vp=12,_p=13,xp=14,qa=15,ME=function(A){for(var e=[],t=0,n=A.length;t<n;){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),t--)}else e.push(r)}return e},KE=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var n=[],r=-1,s="";++r<t;){var o=A[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},NE=LE(kE),_e="×",Ac="÷",$E=function(A){return NE.get(A)},zE=function(A,e,t){var n=t-2,r=e[n],s=e[t-1],o=e[t];if(s===Wa&&o===Ja)return _e;if(s===Wa||s===Ja||s===Up||o===Wa||o===Ja||o===Up)return Ac;if(s===kp&&[kp,ja,Fp,vp].indexOf(o)!==-1||(s===Fp||s===ja)&&(o===ja||o===Ya)||(s===vp||s===Ya)&&o===Ya||o===_p||o===Ep||o===PE||s===OE)return _e;if(s===_p&&o===xp){for(;r===Ep;)r=e[--n];if(r===xp)return _e}if(s===qa&&o===qa){for(var a=0;r===qa;)a++,r=e[--n];if(a%2===0)return _e}return Ac},VE=function(A){var e=ME(A),t=e.length,n=0,r=0,s=e.map($E);return{next:function(){if(n>=t)return{done:!0,value:null};for(var o=_e;n<t&&(o=zE(e,s,++n))===_e;);if(o!==_e||n===t){var a=KE.apply(null,e.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},GE=function(A){for(var e=VE(A),t=[],n;!(n=e.next()).done;)n.value&&t.push(n.value.slice());return t};const ZE=A=>{if(A.createRange){const t=A.createRange();if(t.getBoundingClientRect){const n=A.createElement("boundtest");n.style.height="123px",n.style.display="block",A.body.appendChild(n),t.selectNode(n);const r=t.getBoundingClientRect(),s=Math.round(r.height);if(A.body.removeChild(n),s===123)return!0}}return!1},XE=A=>{const e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);const t=A.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";const n=e.firstChild,r=to(n.data).map(i=>HA(i));let s=0,o={};const a=r.every((i,c)=>{t.setStart(n,s),t.setEnd(n,s+i.length);const u=t.getBoundingClientRect();s+=i.length;const h=u.x>o.x||u.y>o.y;return o=u,c===0?!0:h});return A.body.removeChild(e),a},WE=()=>typeof new Image().crossOrigin!="undefined",JE=()=>typeof new XMLHttpRequest().responseType=="string",jE=A=>{const e=new Image,t=A.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),t.toDataURL()}catch(r){return!1}return!0},Sp=A=>A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255,YE=A=>{const e=A.createElement("canvas"),t=100;e.width=t,e.height=t;const n=e.getContext("2d");if(!n)return Promise.reject(new Error("Failed to get 2D rendering context"));n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);const r=new Image,s=e.toDataURL();r.src=s;const o=ec(t,t,0,0,r);return n.fillStyle="red",n.fillRect(0,0,t,t),tc(o).then(a=>{n.drawImage(a,0,0);const i=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);const c=A.createElement("div");return c.style.backgroundImage=`url(${s})`,c.style.height=`${t}px`,Sp(i)?tc(ec(t,t,0,0,c)):Promise.reject(new Error("ForeignObject rendering not supported"))}).then(a=>(n.drawImage(a,0,0),Sp(n.getImageData(0,0,t,t).data))).catch(()=>!1)},ec=(A,e,t,n,r)=>{const s="http://www.w3.org/2000/svg",o=document.createElementNS(s,"svg"),a=document.createElementNS(s,"foreignObject");return o.setAttributeNS(null,"width",A.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",t.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(r),o},tc=A=>new Promise((e,t)=>{const n=new Image;n.onload=()=>e(n),n.onerror=t,n.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(A))}`}),ee={get SUPPORT_RANGE_BOUNDS(){const A=ZE(document);return Object.defineProperty(ee,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){const A=ee.SUPPORT_RANGE_BOUNDS&&XE(document);return Object.defineProperty(ee,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){const A=jE(document);return Object.defineProperty(ee,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){const A=typeof Array.from=="function"&&typeof window.fetch=="function"?YE(document):Promise.resolve(!1);return Object.defineProperty(ee,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){const A=WE();return Object.defineProperty(ee,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){const A=JE();return Object.defineProperty(ee,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){const A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ee,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){const A=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(ee,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}};var hn=class{constructor(A,e){this.text=A,this.bounds=e}};const qE=(A,e,t,n)=>{const r=tk(e,t),s=[];let o=0;return r.forEach(a=>{if(t.textDecorationLine.length||a.trim().length>0)if(ee.SUPPORT_RANGE_BOUNDS){const i=Ip(n,o,a.length).getClientRects();if(i.length>1){const c=fn(a);let u=0;c.forEach(h=>{s.push(new hn(h,Fe.fromDOMRectList(A,Ip(n,u+o,h.length).getClientRects()))),u+=h.length})}else s.push(new hn(a,Fe.fromDOMRectList(A,i)))}else{const i=n.splitText(a.length);s.push(new hn(a,Ak(A,n))),n=i}else ee.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));o+=a.length}),s},Ak=(A,e)=>{const t=e.ownerDocument;if(t){const n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));const r=e.parentNode;if(r){r.replaceChild(n,e);const s=Hr(A,n);return n.firstChild&&r.replaceChild(n.firstChild,n),s}}return Fe.EMPTY},Ip=(A,e,t)=>{const n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");const r=n.createRange();return r.setStart(A,e),r.setEnd(A,e+t),r},fn=A=>{if(ee.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(t=>t.segment)}return GE(A)},ek=(A,e)=>{if(ee.SUPPORT_NATIVE_TEXT_SEGMENTATION){const t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(n=>n.segment)}return rk(A,e)},tk=(A,e)=>Ho(e.writingMode)||e.letterSpacing!==0?fn(A):ek(A,e),nk=[32,160,4961,65792,65793,4153,4241],rk=(A,e)=>{const t=gQ(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[];let r;for(;!(r=t.next()).done;)if(r.value){const s=to(r.value.slice());let o="";s.forEach(a=>{nk.indexOf(a)===-1?o+=HA(a):(o.length&&n.push(o),n.push(HA(a)),o="")}),o.length&&n.push(o)}return n};var sk=class{constructor(A,e,t){this.text=ok(e.data,t.textTransform),this.text.length!==e.data.length&&(e.data=this.text),this.textBounds=qE(A,this.text,t,e)}};const ok=(A,e)=>{switch(e){case 1:return A.toLowerCase();case 3:return A.replace(ik,ak);case 2:return A.toUpperCase();default:return A}},ik=/(^|\s|:|-|\(|\))([a-z])/g,ak=(A,e,t)=>A.length>0?e+t.toUpperCase():A;var Tp=class extends ut{constructor(A,e){super(A,e),this.src=e.currentSrc||e.src,this.intrinsicWidth=e.naturalWidth,this.intrinsicHeight=e.naturalHeight,this.context.cache.addImage(this.src)}},Hp=class extends ut{constructor(A,e){super(A,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}};const ck=["position","inset","top","right","bottom","left","inset-inline","inset-inline-start","inset-inline-end","inset-block","inset-block-start","inset-block-end","margin","margin-top","margin-right","margin-bottom","margin-left","margin-inline","margin-inline-start","margin-inline-end","margin-block","margin-block-start","margin-block-end"],lk=(A,e)=>{const t=e.getAttribute("style");ck.forEach(r=>e.style.removeProperty(r));const n=A.serializeToString(e);return t===null?e.removeAttribute("style"):e.setAttribute("style",t),n};var Lp=class extends ut{constructor(A,e){super(A,e);const t=new XMLSerializer,n=Hr(A,e);e.setAttribute("width",`${n.width}px`),e.setAttribute("height",`${n.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(lk(t,e))}`,this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,this.context.cache.addImage(this.svg)}},Dp=class extends ut{constructor(A,e){super(A,e),this.value=e.value}},nc=class extends ut{constructor(A,e){super(A,e),this.start=e.start,this.reversed=typeof e.reversed=="boolean"&&e.reversed===!0}};const uk=[{type:15,flags:0,unit:"px",number:3}],dk=[{type:16,flags:0,number:50}],pk=A=>A.width>A.height?new Fe(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new Fe(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A,hk=A=>{const e=A.type==="password"?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},fk=A=>A.value.length===0&&!!A.placeholder,gk="checkbox",Bk="radio",Rp=707406591,wk=1970632191;var Yn=class extends ut{constructor(A,e){switch(super(A,e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=hk(e),this.isPlaceholder=fk(e),(this.type==="checkbox"||this.type==="radio")&&(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=pk(this.bounds)),this.type){case gk:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=uk;break;case Bk:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=dk;break}}},Op=class extends ut{constructor(A,e){super(A,e);const t=e.options[e.selectedIndex||0];this.value=t&&t.text||""}},Pp=class extends ut{constructor(A,e){super(A,e),this.value=e.value}},Mp=class extends ut{constructor(A,e,t){super(A,e),this.src=e.src,this.width=parseInt(e.width,10)||0,this.height=parseInt(e.height,10)||0,this.backgroundColor=this.styles.backgroundColor,this.parseTreeFn=t;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&this.parseTreeFn){this.tree=this.parseTreeFn(A,e.contentWindow.document.documentElement);const n=e.contentWindow.document.documentElement?Jn(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):lt.TRANSPARENT,r=e.contentWindow.document.body?Jn(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):lt.TRANSPARENT;this.backgroundColor=yt(n)?yt(r)?this.styles.backgroundColor:r:n}}catch(n){}}};const mk=["OL","UL","MENU"],rc=(A,e,t,n)=>{for(let r=e.firstChild,s;r;r=s)s=r.nextSibling,Kp(A,r,t,n)},Kp=(A,e,t,n)=>{if(Ld(e)&&e.data.length>0)t.textNodes.push(new sk(A,e,t.styles));else if(ln(e))if(Zr(e)&&e.assignedNodes)e.assignedNodes().forEach(r=>Kp(A,r,t,n));else{const r=Np(A,e);r.styles.isVisible()&&(Ck(e,r,n)?r.createsRealStackingContext=!0:bk(r.styles)&&(r.createsStackingContext=!0),mk.indexOf(e.tagName)!==-1&&(r.isListOwner=!0),t.elements.push(r),e.shadowRoot?rc(A,e.shadowRoot,r,n):!Qo(e)&&!Dd(e)&&!yo(e)&&rc(A,e,r,n))}},Np=(A,e)=>Ta(e)?new Tp(A,e):Rd(e)?new Hp(A,e):Dd(e)?new Lp(A,e):zy(e)?new Dp(A,e):Vy(e)?new nc(A,e):Ky(e)?new Yn(A,e):yo(e)?new Op(A,e):Qo(e)?new Pp(A,e):Pd(e)?new Mp(A,e,$p):new ut(A,e),$p=(A,e)=>{const t=Np(A,e);return t.createsRealStackingContext=!0,rc(A,e,t,t),t},Ck=(A,e,t)=>e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Ia(A)&&t.styles.isTransparent(),bk=A=>A.isPositioned()||A.isFloating()?!0:Ae(A.display,268435456)||Ae(A.display,33554432)||Ae(A.display,536870912)||Ae(A.display,134217728),zp=(A,e)=>A.length===e.length?A.some((t,n)=>t===e[n]):!1,Qk=(A,e,t,n,r)=>A.map((s,o)=>{switch(o){case 0:return s.add(e,t);case 1:return s.add(e+n,t);case 2:return s.add(e+n,t+r);case 3:return s.add(e,t+r)}return s});var O=class Yf{constructor(e,t){this.type=0,this.x=e,this.y=t}add(e,t){return new Yf(this.x+e,this.y+t)}};const qn=(A,e,t)=>new O(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t);var Ro=class Is{constructor(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}subdivide(e,t){const n=qn(this.start,this.startControl,e),r=qn(this.startControl,this.endControl,e),s=qn(this.endControl,this.end,e),o=qn(n,r,e),a=qn(r,s,e),i=qn(o,a,e);return t?new Is(this.start,n,o,i):new Is(i,a,s,this.end)}add(e,t){return new Is(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))}reverse(){return new Is(this.end,this.endControl,this.startControl,this.start)}};const xe=A=>A.type===1;var yk=class{constructor(A){const e=A.styles,t=A.bounds;let[n,r]=zr(e.borderTopLeftRadius,t.width,t.height),[s,o]=zr(e.borderTopRightRadius,t.width,t.height),[a,i]=zr(e.borderBottomRightRadius,t.width,t.height),[c,u]=zr(e.borderBottomLeftRadius,t.width,t.height);const h=[];h.push((n+s)/t.width),h.push((c+a)/t.width),h.push((r+u)/t.height),h.push((o+i)/t.height);const f=Math.max(...h);f>1&&(n/=f,r/=f,s/=f,o/=f,a/=f,i/=f,c/=f,u/=f);const g=t.width-s,m=t.height-i,b=t.width-a,U=t.height-u,E=e.borderTopWidth,v=e.borderRightWidth,F=e.borderBottomWidth,y=e.borderLeftWidth,_=J(e.paddingTop,A.bounds.width),R=J(e.paddingRight,A.bounds.width),H=J(e.paddingBottom,A.bounds.width),z=J(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||r>0?kA(t.left+y/3,t.top+E/3,n-y/3,r-E/3,0):new O(t.left+y/3,t.top+E/3),this.topRightBorderDoubleOuterBox=n>0||r>0?kA(t.left+g,t.top+E/3,s-v/3,o-E/3,1):new O(t.left+t.width-v/3,t.top+E/3),this.bottomRightBorderDoubleOuterBox=a>0||i>0?kA(t.left+b,t.top+m,a-v/3,i-F/3,2):new O(t.left+t.width-v/3,t.top+t.height-F/3),this.bottomLeftBorderDoubleOuterBox=c>0||u>0?kA(t.left+y/3,t.top+U,c-y/3,u-F/3,3):new O(t.left+y/3,t.top+t.height-F/3),this.topLeftBorderDoubleInnerBox=n>0||r>0?kA(t.left+y*2/3,t.top+E*2/3,n-y*2/3,r-E*2/3,0):new O(t.left+y*2/3,t.top+E*2/3),this.topRightBorderDoubleInnerBox=n>0||r>0?kA(t.left+g,t.top+E*2/3,s-v*2/3,o-E*2/3,1):new O(t.left+t.width-v*2/3,t.top+E*2/3),this.bottomRightBorderDoubleInnerBox=a>0||i>0?kA(t.left+b,t.top+m,a-v*2/3,i-F*2/3,2):new O(t.left+t.width-v*2/3,t.top+t.height-F*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||u>0?kA(t.left+y*2/3,t.top+U,c-y*2/3,u-F*2/3,3):new O(t.left+y*2/3,t.top+t.height-F*2/3),this.topLeftBorderStroke=n>0||r>0?kA(t.left+y/2,t.top+E/2,n-y/2,r-E/2,0):new O(t.left+y/2,t.top+E/2),this.topRightBorderStroke=n>0||r>0?kA(t.left+g,t.top+E/2,s-v/2,o-E/2,1):new O(t.left+t.width-v/2,t.top+E/2),this.bottomRightBorderStroke=a>0||i>0?kA(t.left+b,t.top+m,a-v/2,i-F/2,2):new O(t.left+t.width-v/2,t.top+t.height-F/2),this.bottomLeftBorderStroke=c>0||u>0?kA(t.left+y/2,t.top+U,c-y/2,u-F/2,3):new O(t.left+y/2,t.top+t.height-F/2),this.topLeftBorderBox=n>0||r>0?kA(t.left,t.top,n,r,0):new O(t.left,t.top),this.topRightBorderBox=s>0||o>0?kA(t.left+g,t.top,s,o,1):new O(t.left+t.width,t.top),this.bottomRightBorderBox=a>0||i>0?kA(t.left+b,t.top+m,a,i,2):new O(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=c>0||u>0?kA(t.left,t.top+U,c,u,3):new O(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||r>0?kA(t.left+y,t.top+E,Math.max(0,n-y),Math.max(0,r-E),0):new O(t.left+y,t.top+E),this.topRightPaddingBox=s>0||o>0?kA(t.left+Math.min(g,t.width-v),t.top+E,g>t.width+v?0:Math.max(0,s-v),Math.max(0,o-E),1):new O(t.left+t.width-v,t.top+E),this.bottomRightPaddingBox=a>0||i>0?kA(t.left+Math.min(b,t.width-y),t.top+Math.min(m,t.height-F),Math.max(0,a-v),Math.max(0,i-F),2):new O(t.left+t.width-v,t.top+t.height-F),this.bottomLeftPaddingBox=c>0||u>0?kA(t.left+y,t.top+Math.min(U,t.height-F),Math.max(0,c-y),Math.max(0,u-F),3):new O(t.left+y,t.top+t.height-F),this.topLeftContentBox=n>0||r>0?kA(t.left+y+z,t.top+E+_,Math.max(0,n-(y+z)),Math.max(0,r-(E+_)),0):new O(t.left+y+z,t.top+E+_),this.topRightContentBox=s>0||o>0?kA(t.left+Math.min(g,t.width+y+z),t.top+E+_,g>t.width+y+z?0:s-y+z,o-(E+_),1):new O(t.left+t.width-(v+R),t.top+E+_),this.bottomRightContentBox=a>0||i>0?kA(t.left+Math.min(b,t.width-(y+z)),t.top+Math.min(m,t.height+E+_),Math.max(0,a-(v+R)),i-(F+H),2):new O(t.left+t.width-(v+R),t.top+t.height-(F+H)),this.bottomLeftContentBox=c>0||u>0?kA(t.left+y+z,t.top+U,Math.max(0,c-(y+z)),u-(F+H),3):new O(t.left+y+z,t.top+t.height-(F+H))}};const kA=(A,e,t,n,r)=>{const s=4*((Math.sqrt(2)-1)/3),o=t*s,a=n*s,i=A+t,c=e+n;switch(r){case 0:return new Ro(new O(A,c),new O(A,c-a),new O(i-o,e),new O(i,e));case 1:return new Ro(new O(A,e),new O(A+o,e),new O(i,c-a),new O(i,c));case 2:return new Ro(new O(i,e),new O(i,e+a),new O(A+o,c),new O(A,c));default:return new Ro(new O(i,c),new O(i-o,c),new O(A,e+a),new O(A,e))}},Oo=A=>[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox],Uk=A=>[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox],Po=A=>[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox];var sc=class{constructor(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}},Mo=class{constructor(A,e){this.path=A,this.target=e,this.type=1}},Ek=class{constructor(A){this.opacity=A,this.type=2,this.target=6}},jr=class{constructor(A){this.applyClip=A,this.type=3,this.target=6}};const kk={[GA.NORMAL]:"source-over",[GA.MULTIPLY]:"multiply",[GA.SCREEN]:"screen",[GA.OVERLAY]:"overlay",[GA.DARKEN]:"darken",[GA.LIGHTEN]:"lighten",[GA.COLOR_DODGE]:"color-dodge",[GA.COLOR_BURN]:"color-burn",[GA.HARD_LIGHT]:"hard-light",[GA.SOFT_LIGHT]:"soft-light",[GA.DIFFERENCE]:"difference",[GA.EXCLUSION]:"exclusion",[GA.HUE]:"hue",[GA.SATURATION]:"saturation",[GA.COLOR]:"color",[GA.LUMINOSITY]:"luminosity"};var Fk=class{constructor(A){this.mixBlendMode=A,this.type=4,this.target=6,this.compositeOperation=kk[A]}},vk=class Ur{constructor(e){this.type=5,this.target=6;const t=Ur.parseDropShadow(e);this.shadow=t.shadow,this.safeFilterString=t.safeFilterString}static parseDropShadow(e){if(!e)return{safeFilterString:""};const t=Ur.findDropShadows(e);if(t.length===0)return{safeFilterString:e};const n=Ur.parseDropShadowBody(t[0].body);let r="",s=0;for(const o of t)r+=e.slice(s,o.start),s=o.end;return r+=e.slice(s),{shadow:n,safeFilterString:r.replace(/\s+/g," ").trim()}}static findDropShadows(e){const t=[],n=/drop-shadow\(/gi;let r;for(;(r=n.exec(e))!==null;){const s=r.index+12-1,o=r.index;let a=1,i=s+1;for(;i<e.length&&a>0;){const u=e[i];u==="("?a++:u===")"&&a--,i++}if(a!==0)break;const c=e.slice(s+1,i-1);t.push({body:c,start:o,end:i})}return t}static parseDropShadowBody(e){var s;const t=Ur.tokenizeFilterArgs(e.trim()),n=[];let r;for(const o of t)Ur.isCSSLength(o)?n.push(parseFloat(o)):o&&(r=o);if(!(n.length<2||n.length>3))return{offsetX:n[0],offsetY:n[1],blur:(s=n[2])!=null?s:0,color:r!=null?r:"rgba(0,0,0,1)"}}static tokenizeFilterArgs(e){const t=[];let n="",r=0;for(let s=0;s<e.length;s++){const o=e[s];o==="("?(r++,n+=o):o===")"?(r--,n+=o):/\s/.test(o)?r>0?n+=o:n&&(t.push(n),n=""):n+=o}return n&&t.push(n),t}static isCSSLength(e){return/^-?[\d.]+(px|em|rem|pt|cm|mm|in|pc|ex|ch|vw|vh|vmin|vmax|%)?$/i.test(e)}};const Vp=A=>A.type===0,oc=A=>A.type===1,_k=A=>A.type===2,Gp=A=>A.type===3,xk=A=>A.type===4,Sk=A=>A.type===5;var Zp=class{constructor(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}},Xp=class{constructor(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new yk(this.container),this.container.styles.opacity<1&&this.effects.push(new Ek(this.container.styles.opacity)),this.container.styles.rotate!==null){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.rotate*Math.PI/180,o=Math.cos(s),a=Math.sin(s),i=[o,a,-a,o,0,0];this.effects.push(new sc(n,r,i))}if(this.container.styles.transform!==null){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.transform;this.effects.push(new sc(n,r,s))}if(Wp(this.container.styles)){const t=Oo(this.curves),n=Po(this.curves);zp(t,n)?this.effects.push(new Mo(t,6)):(this.effects.push(new Mo(t,2)),this.effects.push(new Mo(n,4)))}if(this.container.styles.clipPath.type!==0){const t=Ik(this.container.styles.clipPath,this.container.bounds);t&&this.effects.push(t)}if(this.container.styles.mixBlendMode!==GA.NORMAL&&this.effects.push(new Fk(this.container.styles.mixBlendMode)),this.container.styles.filter!==null&&this.effects.push(new vk(this.container.styles.filter)),this.container.styles.zoom!==1){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.zoom,o=[s,0,0,s,0,0];this.effects.push(new sc(n,r,o))}}getEffects(A){let e=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent;const n=this.effects.slice(0);for(;t;){const r=t.effects.filter(s=>!oc(s));if(e||t.container.styles.position!==0||!t.parent){if(e=[2,3].indexOf(t.container.styles.position)===-1,Wp(t.container.styles)){const s=Oo(t.curves),o=Po(t.curves);zp(s,o)||n.unshift(new Mo(o,6))}n.unshift(...r)}else n.unshift(...r);t=t.parent}return n.filter(r=>Ae(r.target,A))}};const Wp=A=>A.overflowX!==0||A.overflowY!==0,Jp=(A,e,t,n,r)=>A==="closest-side"?Math.min(e-t,n-e):A==="farthest-side"?Math.max(e-t,n-e):J(A,r),Ik=(A,e)=>{const{left:t,top:n,width:r,height:s}=e;switch(A.type){case 1:{const o=J(A.left,r),a=J(A.top,s),i=t+o,c=n+a,u=Math.max(0,r-o-J(A.right,r)),h=Math.max(0,s-a-J(A.bottom,s));return new jr(f=>{f.beginPath(),f.rect(i,c,u,h),f.clip()})}case 2:{const o=t+J(A.cx,r),a=n+J(A.cy,s);let i;return A.radius==="closest-side"?i=Math.min(o-t,a-n,t+r-o,n+s-a):A.radius==="farthest-side"?i=Math.max(o-t,a-n,t+r-o,n+s-a):i=J(A.radius,Math.sqrt(r*r+s*s)/Math.SQRT2),new jr(c=>{c.beginPath(),c.arc(o,a,Math.max(0,i),0,Math.PI*2),c.clip()})}case 3:{const o=t+J(A.cx,r),a=n+J(A.cy,s),i=Jp(A.rx,o,t,t+r,r),c=Jp(A.ry,a,n,n+s,s);return new jr(u=>{u.beginPath(),u.ellipse(o,a,Math.max(0,i),Math.max(0,c),0,0,Math.PI*2),u.clip()})}case 4:{const o=A.points.map(([a,i])=>[t+J(a,r),n+J(i,s)]);return new jr(a=>{if(a.beginPath(),o.length>0){a.moveTo(o[0][0],o[0][1]);for(let i=1;i<o.length;i++)a.lineTo(o[i][0],o[i][1]);a.closePath()}a.clip()})}case 5:{const{d:o}=A;let a=null;return new jr(i=>{try{a||(a=new Path2D(o));const c=i.getTransform();i.translate(t,n),i.clip(a),i.setTransform(c)}catch(c){}})}case 0:return null;default:return null}},ic=(A,e,t,n)=>{A.container.elements.forEach(r=>{const s=r.createsRealStackingContext,o=r.createsStackingContext,a=new Xp(r,A);Ae(r.styles.display,2048)&&n.push(a);const i=r.isListOwner?[]:n;if(s||o){const c=s||r.styles.isPositioned()?t:e,u=new Zp(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){const h=r.styles.zIndex.order;if(h<0){let f=0;c.negativeZIndex.some((g,m)=>h>g.element.container.styles.zIndex.order?(f=m,!1):f>0),c.negativeZIndex.splice(f,0,u)}else if(h>0){let f=0;c.positiveZIndex.some((g,m)=>h>=g.element.container.styles.zIndex.order?(f=m+1,!1):f>0),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else r.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);ic(a,u,s?u:t,i)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),ic(a,e,t,i);r.isListOwner&&jp(r,i)})},jp=(A,e)=>{let t=A instanceof nc?A.start:1;const n=A instanceof nc?A.reversed:!1;for(let r=0;r<e.length;r++){const s=e[r];s.container instanceof Dp&&typeof s.container.value=="number"&&s.container.value!==0&&(t=s.container.value),s.listValue=Xr(t,s.container.styles.listStyleType,!0),t+=n?-1:1}},Tk=A=>{const e=new Xp(A,null),t=new Zp(e),n=[];return ic(e,t,t,n),jp(e.container,n),t},ac=A=>{const e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Yr=A=>{const e=A.styles,t=A.bounds,n=J(e.paddingLeft,t.width),r=J(e.paddingRight,t.width),s=J(e.paddingTop,t.width),o=J(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+s+o))},Hk=(A,e)=>A===0?e.bounds:A===2?Yr(e):ac(e),Lk=(A,e)=>A===0?e.bounds:A===2?Yr(e):ac(e),Ko=(A,e,t)=>{const n=Hk(gn(A.styles.backgroundOrigin,e),A),r=Lk(gn(A.styles.backgroundClip,e),A),s=Dk(gn(A.styles.backgroundSize,e),t,n);let[o,a]=s;const i=zr(gn(A.styles.backgroundPosition,e),n.width-o,n.height-a),c=Rk(gn(A.styles.backgroundRepeat,e),i,s,n,r),u=Math.round(n.left+i[0]),h=Math.round(n.top+i[1]);return o=Math.max(1,o),a=Math.max(1,a),[c,u,h,o,a]},Ar=A=>j(A)&&A.value==="auto",No=A=>typeof A=="number",Dk=(A,[e,t,n],r)=>{const[s,o]=A;if(!s)return[0,0];if(aA(s)&&o&&aA(o))return[J(s,r.width),J(o,r.height)];const a=No(n);if(j(s)&&(s.value==="contain"||s.value==="cover"))return No(n)?r.width/r.height<n!=(s.value==="cover")?[r.width,r.width/n]:[r.height*n,r.height]:[r.width,r.height];const i=No(e),c=No(t),u=i||c;if(Ar(s)&&(!o||Ar(o)))return i&&c?[e,t]:!a&&!u?[r.width,r.height]:u&&a?[i?e:t*n,c?t:e/n]:[i?e:r.width,c?t:r.height];if(a){let g=0,m=0;return aA(s)?g=J(s,r.width):aA(o)&&(m=J(o,r.height)),Ar(s)?g=m*n:(!o||Ar(o))&&(m=g/n),[g,m]}let h=null,f=null;if(aA(s)?h=J(s,r.width):o&&aA(o)&&(f=J(o,r.height)),h!==null&&(!o||Ar(o))&&(f=i&&c?h/e*t:r.height),f!==null&&Ar(s)&&(h=i&&c?f/t*e:r.width),h!==null&&f!==null)return[h,f];throw new Error("Unable to calculate background-size for element")},gn=(A,e)=>{const t=A[e];return typeof t=="undefined"?A[0]:t},Rk=(A,[e,t],[n,r],s,o)=>{switch(A){case 2:return[new O(Math.round(s.left),Math.round(s.top+t)),new O(Math.round(s.left+s.width),Math.round(s.top+t)),new O(Math.round(s.left+s.width),Math.round(r+s.top+t)),new O(Math.round(s.left),Math.round(r+s.top+t))];case 3:return[new O(Math.round(s.left+e),Math.round(s.top)),new O(Math.round(s.left+e+n),Math.round(s.top)),new O(Math.round(s.left+e+n),Math.round(s.height+s.top)),new O(Math.round(s.left+e),Math.round(s.height+s.top))];case 1:return[new O(Math.round(s.left+e),Math.round(s.top+t)),new O(Math.round(s.left+e+n),Math.round(s.top+t)),new O(Math.round(s.left+e+n),Math.round(s.top+t+r)),new O(Math.round(s.left+e),Math.round(s.top+t+r))];default:return[new O(Math.round(o.left),Math.round(o.top)),new O(Math.round(o.left+o.width),Math.round(o.top)),new O(Math.round(o.left+o.width),Math.round(o.height+o.top)),new O(Math.round(o.left),Math.round(o.height+o.top))]}};var Ok=class{constructor(A){this.ctx=A}render(A,e){this.ctx.fillStyle=EA(e.textDecorationColor||e.color);let t=1;typeof e.textDecorationThickness=="number"?t=e.textDecorationThickness:e.textDecorationThickness==="from-font"&&(t=Math.max(1,Math.floor(e.fontSize.number*.05)));let n=0;typeof e.textUnderlineOffset=="number"&&(n=e.textUnderlineOffset);const r=e.textDecorationStyle;e.textDecorationLine.forEach(s=>{let o=0;switch(s){case 1:o=A.top+A.height-t+n;break;case 2:o=A.top;break;case 3:o=A.top+(A.height/2-t/2);break;default:return}this.draw(A.left,o,A.width,t,r)})}draw(A,e,t,n,r){switch(r){case 0:this.ctx.fillRect(A,e,t,n);break;case 1:{const s=Math.max(1,n);this.ctx.fillRect(A,e,t,n),this.ctx.fillRect(A,e+n+s,t,n);break}case 2:this.drawPattern(A,e,t,n,[n,n*2]);break;case 3:this.drawPattern(A,e,t,n,[n*3,n*2]);break;case 4:this.drawWavy(A,e,t,n);break;default:this.ctx.fillRect(A,e,t,n)}}drawPattern(A,e,t,n,r){this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash(r),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(A,e+n/2),this.ctx.lineTo(A+t,e+n/2),this.ctx.stroke(),this.ctx.restore()}drawWavy(A,e,t,n){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle;const r=n*2,s=n*4;let o=A;for(this.ctx.moveTo(o,e+n/2);o<A+t;){const a=Math.min(o+s/2,A+t);if(this.ctx.quadraticCurveTo(o+s/4,e+n/2-r,a,e+n/2),o=a,o<A+t){const i=Math.min(o+s/2,A+t);this.ctx.quadraticCurveTo(o+s/4,e+n/2+r,i,e+n/2),o=i}}this.ctx.stroke(),this.ctx.restore()}};const Pk="Mg",er=A=>A!==void 0&&!Number.isNaN(A),Yp=(A,e)=>{const t=A.measureText(Pk),n=t;return{baseline:er(n.fontBoundingBoxAscent)?n.fontBoundingBoxAscent:er(t.actualBoundingBoxAscent)?t.actualBoundingBoxAscent:e,height:er(n.fontBoundingBoxAscent)&&er(n.fontBoundingBoxDescent)?n.fontBoundingBoxAscent+n.fontBoundingBoxDescent:er(t.actualBoundingBoxAscent)&&er(t.actualBoundingBoxDescent)?t.actualBoundingBoxAscent+t.actualBoundingBoxDescent:e}},qp=(A,e)=>Yp(A,e).baseline,Mk=["-apple-system","system-ui"],Kk=1,Nk=/[\u2E80-\u2FFF\u3000-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFFEF]/,qr=A=>Nk.test(A),$k=()=>{if(typeof navigator=="undefined")return null;const A=navigator.userAgent,e=/iPhone|iPad|iPod/.test(A),t=/Macintosh/.test(A)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1;if(!e&&!t)return null;for(const n of[/(?:iPhone|CPU(?:\siPhone)?)\sOS\s(\d+)[\._](\d+)/,/Version\/(\d+)\.(\d+)/]){const r=A.match(n);if(r&&r[1])return parseInt(r[1],10)}return null},zk=A=>{const e=$k();return e!==null&&e>=15&&e<17?A.map(t=>Mk.indexOf(t)!==-1?'-apple-system, "Helvetica Neue", Arial, sans-serif':t):A},Vk=()=>{var A;return(A=typeof window!="undefined"?window:void 0)!=null&&A.chrome?"miter":"round"};var Gk=class{constructor(A){this.glyphWidthCache=null,this.ctx=A.ctx,this.options=A.options,this.decorationRenderer=new Ok(A.ctx)}cachedMeasureText(A,e){let t=this.glyphWidthCache;t||(t=new Map,this.glyphWidthCache=t);const n=A+e;let r=t.get(n);return r===void 0&&(r=this.ctx.measureText(A).width,t.set(n,r)),r}iterateLettersWithLetterSpacing(A,e,t,n,r){if(Ho(n)){this.iterateVerticalGlyphs(A,e,t,n,r);return}const s=fn(A.text),o=A.bounds.top+t,a=this.ctx.font;let i=A.bounds.left;for(const c of s){if(qr(c)){const u=this.ctx.textBaseline;this.ctx.textBaseline="ideographic",r(c,i,o),this.ctx.textBaseline=u}else r(c,i,o);i+=this.cachedMeasureText(c,a)+e}}iterateVerticalGlyphs(A,e,t,n,r){const s=fn(A.text),o=this.ctx.font,a=n===4?-Math.PI/2:Math.PI/2;let i=A.bounds.top;for(let c=0;c<s.length;){const u=s[c];if(!(Ma(n)||!qr(u)&&u.trim().length>0)){const g=this.ctx.textBaseline;qr(u)&&(this.ctx.textBaseline="ideographic"),r(u,A.bounds.left,i+t),this.ctx.textBaseline=g,i+=this.cachedMeasureText(u,o)+e,c++;continue}const h=c;for(;c<s.length;){const g=s[c];if(!Ma(n)&&!qr(g)&&g.trim().length===0)break;if(Ma(n)||!qr(g)&&g.trim().length>0)c++;else break}this.ctx.save(),this.ctx.translate(A.bounds.left+t,i),this.ctx.rotate(a);let f=0;for(let g=h;g<c;g++)r(s[g],0,f),f+=this.cachedMeasureText(s[g],o)+e;this.ctx.restore(),i+=f}}renderTextWithLetterSpacing(A,e,t,n=0){this.renderFillText(A,e,t,n)}canRenderWholeText(A,e){return A===0&&!Ho(e)}renderFillText(A,e,t,n){this.canRenderWholeText(e,n)?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t):this.iterateLettersWithLetterSpacing(A,e,t,n,(r,s,o)=>{this.ctx.fillText(r,s,o)})}renderStrokeText(A,e,t,n){this.canRenderWholeText(e,n)?this.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+t):this.iterateLettersWithLetterSpacing(A,e,t,n,(r,s,o)=>{this.ctx.strokeText(r,s,o)})}renderTextStrokeWithStyle(A,e,t){!e.webkitTextStrokeWidth||!A.text.trim().length||(this.ctx.strokeStyle=EA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=Vk(),this.renderStrokeText(A,e.letterSpacing,t,e.writingMode),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter")}renderTextFillWithShadows(A,e,t){this.ctx.fillStyle=EA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,t,e.writingMode);const n=e.textShadow;n.length&&A.text.trim().length&&(n.slice(0).reverse().forEach(r=>{this.ctx.shadowColor=EA(r.color),this.ctx.shadowOffsetX=r.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=r.offsetY.number*this.options.scale,this.ctx.shadowBlur=r.blur.number,this.renderTextWithLetterSpacing(A,e.letterSpacing,t,e.writingMode)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0)}renderTextBoundWithPaintOrder(A,e,t,n){t.forEach(r=>{switch(r){case 0:this.ctx.fillStyle=EA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,n,e.writingMode);break;case 1:this.renderTextStrokeWithStyle(A,e,n);break}})}renderTextDecoration(A,e){this.decorationRenderer.render(A,e)}truncateTextWithEllipsis(A,e,t){const r=this.ctx.measureText("…").width,s=fn(A);if(t===0){const o=c=>this.ctx.measureText(s.slice(0,c).join("")).width+r<=e;let a=0,i=s.length;for(;a<i;){const c=a+i+1>>1;o(c)?a=c:i=c-1}return s.slice(0,a).join("")+"…"}else{const o=this.ctx.font;let a=r;const i=[];for(const c of s){const u=this.cachedMeasureText(c,o);if(a+u>e)break;i.push(c),a+=u+t}return i.join("")+"…"}}createFontStyle(A){const e=A.fontVariant.filter(r=>r==="normal"||r==="small-caps").join(""),t=zk(A.fontFamily).join(", "),n=ct(A.fontSize)?`${A.fontSize.number}${A.fontSize.unit}`:`${A.fontSize.number}px`;return[[A.fontStyle,e,A.fontWeight,n,t].join(" "),t,n]}renderLineClampedText(A,e,t,n,r){const s=e.fontSize.number*1.5,o=[];let a=[],i=A.textBounds[0].bounds.top;A.textBounds.forEach(h=>{Math.abs(h.bounds.top-i)>=s*.5?(a.length>0&&o.push(a),a=[h],i=h.bounds.top):a.push(h)}),a.length>0&&o.push(a);const c=e.webkitLineClamp;if(o.length<=c)return!1;for(let h=0;h<c-1;h++)o[h].forEach(f=>this.renderTextBoundWithPaintOrder(f,e,t,n));const u=o[c-1];if(u!=null&&u.length&&r){const h=u.map(b=>b.text).join(""),f=u[0],g=r.width-(f.bounds.left-r.left),m=new hn(this.truncateTextWithEllipsis(h,g,e.letterSpacing),f.bounds);for(const b of t)b===0?(this.ctx.fillStyle=EA(e.color),this.renderTextWithLetterSpacing(m,e.letterSpacing,n,e.writingMode)):b===1&&this.renderTextStrokeWithStyle(m,e,n)}return!0}renderEllipsisText(A,e,t,n,r){const s=e.fontSize.number*1.5,o=A.textBounds[0].bounds.top;if(!A.textBounds.every(c=>Math.abs(c.bounds.top-o)<s*.5))return!1;let a=A.textBounds.map(c=>c.text).join("").replace(/\s+/g," ").trim();if(this.ctx.measureText(a).width<=r.width+Kk)return!1;const i=new hn(this.truncateTextWithEllipsis(a,r.width,e.letterSpacing),A.textBounds[0].bounds);for(const c of t)c===0?this.renderTextFillWithShadows(i,e,n):c===1&&this.renderTextStrokeWithStyle(i,e,n);return!0}renderTextNode(A,e,t){return I(this,null,function*(){this.glyphWidthCache=null;const[n]=this.createFontStyle(e);this.ctx.font=n,this.ctx.direction=e.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const r=e.paintOrder,s=qp(this.ctx,e.fontSize.number);e.webkitLineClamp>0&&(e.display&2)!==0&&e.overflowY===1&&A.textBounds.length>0&&this.renderLineClampedText(A,e,r,s,t)||e.textOverflow===1&&t&&e.overflowX===1&&A.textBounds.length>0&&this.renderEllipsisText(A,e,r,s,t)||A.textBounds.forEach(o=>{r.forEach(a=>{a===0?(this.renderTextFillWithShadows(o,e,s),e.textDecorationLine.length&&this.renderTextDecoration(o.bounds,e)):a===1&&this.renderTextStrokeWithStyle(o,e,s)})})})}};const Ah=(A,e)=>{e.forEach((t,n)=>{const r=xe(t)?t.start:t;n===0?A.moveTo(r.x,r.y):A.lineTo(r.x,r.y),xe(t)&&A.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)})},eh=(A,e)=>{A.beginPath(),Ah(A,e),A.closePath()};var Zk=class{constructor(A){this.maxSize=A,this._map=new Map}get(A){if(!this._map.has(A))return;const e=this._map.get(A);return this._map.delete(A),this._map.set(A,e),e}set(A,e){if(this._map.has(A))this._map.delete(A);else if(this._map.size>=this.maxSize){const t=this._map.keys().next().value;t!==void 0&&this._map.delete(t)}this._map.set(A,e)}get size(){return this._map.size}clear(){this._map.clear()}},th=class{constructor(A){this.patternCache=new Zk(50),this.ctx=A.ctx,this.context=A.context,this.canvas=A.canvas}renderBackgroundImage(A){return I(this,null,function*(){var r,s,o,a;let e=A.styles.backgroundImage.length-1;const t=A.styles.backgroundBlendMode;let n=0;for(const i of A.styles.backgroundImage.slice(0).reverse()){if(n>0){const c=(s=(r=t[n])!=null?r:t[0])!=null?s:"normal";c!=="normal"&&(this.ctx.save(),this.ctx.globalCompositeOperation=c)}i.type===0?yield this.renderBackgroundURLImage(A,i,e):i0(i)?this.renderLinearGradient(A,i,e):c0(i)?this.renderRepeatingLinearGradient(A,i,e):a0(i)&&this.renderRadialGradient(A,i,e),n>0&&((a=(o=t[n])!=null?o:t[0])!=null?a:"normal")!=="normal"&&this.ctx.restore(),e--,n++}})}renderBackgroundURLImage(A,e,t){return I(this,null,function*(){var s,o;let n;const r=e.url;try{n=yield this.context.cache.match(r)}catch(a){this.context.logger.error(`Error loading background-image ${r}`),(o=(s=this.context).onError)==null||o.call(s,a instanceof Error?a:new Error(String(a)))}if(n){const a=isNaN(n.width)||n.width===0?1:n.width,i=isNaN(n.height)||n.height===0?1:n.height,[c,u,h,f,g]=Ko(A,t,[a,i,a/i]),m=gn(A.styles.backgroundRepeat,t),b=m===1?"no-repeat":m===2?"repeat-x":m===3?"repeat-y":"repeat",U=`${r}|${Math.round(f)}x${Math.round(g)}|${A.styles.imageRendering}|${b}`;let E=this.patternCache.get(U);if(!E){const v=this.resizeImage(n,f,g,A.styles.imageRendering);E=this.ctx.createPattern(v,b),this.patternCache.set(U,E)}this.renderRepeat(c,E,u,h)}})}renderRepeatingLinearGradient(A,e,t){var W;const[n,r,s,o,a]=Ko(A,t,[null,null,null]),[i,c,u,h,f]=Xd(e.angle,o,a),g=Da(e.stops,i||1),m=g[g.length-1],b=g[0],U=m.stop-b.stop;if(U<=0){this.renderLinearGradient(A,e,t);return}const E=u-c,v=f-h,F=U/(Math.sqrt(E*E+v*v)||1),y=c,_=h,R=c+E*F,H=h+v*F,z=(W=this.canvas.ownerDocument)!=null?W:document,K=`rlg|${e.angle}|${Math.round(U)}|${JSON.stringify(e.stops)}`;let G=this.patternCache.get(K);if(!G){const sA=z.createElement("canvas"),lA=Math.max(1,Math.ceil(U));sA.width=lA,sA.height=lA;const _A=sA.getContext("2d");if(!_A)return;const Ce=_A.createLinearGradient(y-r,_-s,R-r,H-s);g.forEach(pe=>{Ce.addColorStop((pe.stop-b.stop)/U,EA(pe.color))}),_A.fillStyle=Ce,_A.fillRect(0,0,lA,lA),lA>0&&(G=this.ctx.createPattern(sA,"repeat"),this.patternCache.set(K,G))}G&&this.renderRepeat(n,G,r,s)}renderLinearGradient(A,e,t){var b;const[n,r,s,o,a]=Ko(A,t,[null,null,null]),[i,c,u,h,f]=Xd(e.angle,o,a),g=`lg|${e.angle}|${Math.round(o)}x${Math.round(a)}|${JSON.stringify(e.stops)}`;let m=this.patternCache.get(g);if(!m){const U=((b=this.canvas.ownerDocument)!=null?b:document).createElement("canvas");U.width=o,U.height=a;const E=U.getContext("2d");if(!E)return;const v=E.createLinearGradient(c,h,u,f);Da(e.stops,i||1).forEach(F=>v.addColorStop(F.stop,EA(F.color))),E.fillStyle=v,E.fillRect(0,0,o,a),o>0&&a>0&&(m=this.ctx.createPattern(U,"repeat"),this.patternCache.set(g,m))}m&&this.renderRepeat(n,m,r,s)}renderRadialGradient(A,e,t){var g;const[n,r,s,o,a]=Ko(A,t,[null,null,null]),i=e.position.length===0?[Qt]:e.position,c=J(i[0],o),u=J(i[i.length-1],a);let[h,f]=r0(e,c,u,o,a);if((h===0||f===0)&&(h=Math.max(h,.01),f=Math.max(f,.01)),h>0&&f>0){const m=`rg|${Math.round(c)}x${Math.round(u)}|${Math.round(h)}x${Math.round(f)}|${JSON.stringify(e.stops)}`,b=Da(e.stops,h*2),U=b[b.length-1];let E=this.patternCache.get(m);if(!E){const v=((g=this.canvas.ownerDocument)!=null?g:document).createElement("canvas");v.width=Math.ceil(h*2),v.height=Math.ceil(f*2);const F=v.getContext("2d");if(F){const y=F.createRadialGradient(h,h,0,h,h,h);b.forEach(_=>y.addColorStop(_.stop,EA(_.color))),F.fillStyle=y,h!==f&&F.scale(1,f/h),F.fillRect(0,0,h*2,h*2),E=this.ctx.createPattern(v,"no-repeat"),this.patternCache.set(m,E)}}E&&(this.path(n),this.ctx.save(),this.ctx.clip(),U&&(this.ctx.fillStyle=EA(U.color),this.ctx.fill()),this.ctx.translate(r+c-h,s+u-f),this.ctx.fillStyle=E,this.ctx.fillRect(0,0,h*2,f*2),this.ctx.restore())}}renderRepeat(A,e,t,n){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,n),this.ctx.fill(),this.ctx.translate(-t,-n)}resizeImage(A,e,t,n){var o;const r=((o=this.canvas.ownerDocument)!=null?o:document).createElement("canvas");r.width=Math.max(1,e),r.height=Math.max(1,t);const s=r.getContext("2d");return s?(n===2||n===1?(this.context.logger.debug("Disabling image smoothing for background image due to CSS image-rendering"),s.imageSmoothingEnabled=!1):n===3?(this.context.logger.debug("Enabling image smoothing for background image due to CSS image-rendering: smooth"),s.imageSmoothingEnabled=!0):s.imageSmoothingEnabled=this.ctx.imageSmoothingEnabled,this.ctx.imageSmoothingQuality&&(s.imageSmoothingQuality=this.ctx.imageSmoothingQuality),s.drawImage(A,0,0,A.width,A.height,0,0,e,t),r):A}path(A){eh(this.ctx,A)}};const nh=(A,e)=>{switch(e){case 0:return Se(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Se(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Se(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return Se(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},Xk=(A,e)=>{switch(e){case 0:return Se(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Se(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Se(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return Se(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},Wk=(A,e)=>{switch(e){case 0:return Se(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Se(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Se(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return Se(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},Jk=(A,e)=>{switch(e){case 0:return $o(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return $o(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return $o(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return $o(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},$o=(A,e)=>{const t=[];return xe(A)?t.push(A.subdivide(.5,!1)):t.push(A),xe(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Se=(A,e,t,n)=>{const r=[];return xe(A)?r.push(A.subdivide(.5,!1)):r.push(A),xe(t)?r.push(t.subdivide(.5,!0)):r.push(t),xe(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),xe(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r};var jk=class{constructor(A,e){this.ctx=A.ctx,this.pathCallbacks=e}renderSolidBorder(A,e,t){return I(this,null,function*(){this.pathCallbacks.path(nh(t,e)),this.ctx.fillStyle=EA(A),this.ctx.fill()})}renderDoubleBorder(A,e,t,n){return I(this,null,function*(){if(e<3){yield this.renderSolidBorder(A,t,n);return}const r=Xk(n,t);this.pathCallbacks.path(r),this.ctx.fillStyle=EA(A),this.ctx.fill();const s=Wk(n,t);this.pathCallbacks.path(s),this.ctx.fill()})}renderDashedDottedBorder(A,e,t,n,r){return I(this,null,function*(){this.ctx.save();const s=Jk(n,t),o=nh(n,t);r===2&&(this.pathCallbacks.path(o),this.ctx.clip());let a,i,c,u;xe(o[0])?(a=o[0].start.x,i=o[0].start.y):(a=o[0].x,i=o[0].y),xe(o[1])?(c=o[1].end.x,u=o[1].end.y):(c=o[1].x,u=o[1].y);let h;t===0||t===2?h=Math.abs(a-c):h=Math.abs(i-u),this.ctx.beginPath(),r===3?this.pathCallbacks.formatPath(s):this.pathCallbacks.formatPath(o.slice(0,2));let f=e<3?e*3:e*2,g=e<3?e*2:e;r===3&&(f=e,g=e);let m=!0;if(h<=f*2)m=!1;else if(h<=f*2+g){const b=h/(2*f+g);f*=b,g*=b}else{const b=Math.floor((h+g)/(f+g)),U=(h-b*f)/(b-1),E=(h-(b+1)*f)/b;g=E<=0||Math.abs(g-U)<Math.abs(g-E)?U:E}if(m&&(r===3?this.ctx.setLineDash([0,f+g]):this.ctx.setLineDash([f,g])),r===3?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=e*2+1.1,this.ctx.strokeStyle=EA(A),this.ctx.stroke(),this.ctx.setLineDash([]),r===2){if(xe(o[0])){const b=o[3],U=o[0];this.ctx.beginPath(),this.pathCallbacks.formatPath([new O(b.end.x,b.end.y),new O(U.start.x,U.start.y)]),this.ctx.stroke()}if(xe(o[1])){const b=o[1],U=o[2];this.ctx.beginPath(),this.pathCallbacks.formatPath([new O(b.end.x,b.end.y),new O(U.start.x,U.start.y)]),this.ctx.stroke()}}this.ctx.restore()})}},Yk=class{constructor(A){this.ctx=A}renderBorderImage(A,e,t,n,r,s,o,a){const i=e.naturalWidth||e.width,c=e.naturalHeight||e.height;if(i<=0||c<=0)return;const u=Math.min(t.unit==="percent"?t.top/100*c:Math.min(t.top,c),c),h=Math.min(t.unit==="percent"?t.right/100*i:Math.min(t.right,i),i),f=Math.min(t.unit==="percent"?t.bottom/100*c:Math.min(t.bottom,c),c),g=Math.min(t.unit==="percent"?t.left/100*i:Math.min(t.left,i),i),{left:m,top:b,width:U,height:E}=A;if(U<=0||E<=0)return;const v=Math.min(r,E),F=Math.min(s,U),y=Math.min(o,E-v),_=Math.min(a,U-F);this.drawRegion(e,0,0,g,u,m,b,_,v),this.drawRegion(e,i-h,0,h,u,m+U-F,b,F,v),this.drawRegion(e,i-h,c-f,h,f,m+U-F,b+E-y,F,y),this.drawRegion(e,0,c-f,g,f,m,b+E-y,_,y);const R=[{sx:g,sy:0,sw:i-g-h,sh:u,dx:m+_,dy:b,dw:U-_-F,dh:v,repeat:n.horizontal},{sx:i-h,sy:u,sw:h,sh:c-u-f,dx:m+U-F,dy:b+v,dw:F,dh:E-v-y,repeat:n.vertical},{sx:g,sy:c-f,sw:i-g-h,sh:f,dx:m+_,dy:b+E-y,dw:U-_-F,dh:y,repeat:n.horizontal},{sx:0,sy:u,sw:g,sh:c-u-f,dx:m,dy:b+v,dw:_,dh:E-v-y,repeat:n.vertical}];for(const H of R){if(H.sw<=0||H.sh<=0||H.dw<=0||H.dh<=0)continue;const z=H.dw>=H.dh;H.repeat===0?this.ctx.drawImage(e,H.sx,H.sy,H.sw,H.sh,H.dx,H.dy,H.dw,H.dh):(H.repeat===1||H.repeat===2)&&this.drawRepeatedEdge(e,H,z,H.repeat===2)}if(t.fill){const H=g,z=u,K=i-g-h,G=c-u-f,W=m+_,sA=b+v,lA=U-_-F,_A=E-v-y;this.drawRegion(e,H,z,K,G,W,sA,lA,_A)}}drawRegion(A,e,t,n,r,s,o,a,i){n>0&&r>0&&a>0&&i>0&&this.ctx.drawImage(A,e,t,n,r,s,o,a,i)}drawRepeatedEdge(A,e,t,n){const r=t?e.sw:e.sh,s=t?e.dw:e.dh;if(r<=0||s<=0)return;let o,a;n?(a=Math.max(1,Math.round(s/r)),o=s/a):(o=r,a=Math.ceil(s/o)),this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(e.dx,e.dy,e.dw,e.dh),this.ctx.clip();for(let i=0;i<a;i++){const c=i*o,u=s-c,h=Math.min(o,u);if(h<=0)break;t?this.ctx.drawImage(A,e.sx,e.sy,e.sw,e.sh,e.dx+c,e.dy,h,e.dh):this.ctx.drawImage(A,e.sx,e.sy,e.sw,e.sh,e.dx,e.dy+c,e.dw,h)}this.ctx.restore()}},qk=class{constructor(A,e){this.activeEffects=[],this.didSave=!1,this.saveAtDepth=-1,this.ctx=A.ctx,this.pathCallback=e}applyEffects(A){for(;this.activeEffects.length;)this.popEffect();this.didSave=!1,this.saveAtDepth=-1;const e=n=>Vp(n)||oc(n)||Gp(n),t=A.reduceRight((n,r,s)=>n!==-1?n:e(r)?s:-1,-1);for(let n=0;n<A.length;n++){const r=A[n];e(r)&&(this.didSave||(this.ctx.save(),this.didSave=!0),n===t&&(this.saveAtDepth=this.activeEffects.length)),this.applyEffect(r)}}applyEffect(A){Vp(A)?(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)):oc(A)?(this.pathCallback.path(A.path),this.ctx.clip()):Gp(A)?A.applyClip(this.ctx):_k(A)?this.ctx.globalAlpha*=A.opacity:xk(A)?this.ctx.globalCompositeOperation=A.compositeOperation:Sk(A)&&(this.ctx.filter=A.safeFilterString||"none",A.shadow&&(this.ctx.shadowOffsetX=A.shadow.offsetX,this.ctx.shadowOffsetY=A.shadow.offsetY,this.ctx.shadowBlur=A.shadow.blur,this.ctx.shadowColor=A.shadow.color)),this.activeEffects.push(A)}popEffect(){this.activeEffects.length!==0&&(this.didSave&&this.activeEffects.length-1===this.saveAtDepth&&(this.ctx.restore(),this.didSave=!1,this.saveAtDepth=-1),this.activeEffects.pop(),!this.didSave&&this.activeEffects.length===0&&(this.ctx.globalAlpha=1,this.ctx.globalCompositeOperation="source-over",this.ctx.filter="none",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0,this.ctx.shadowColor="rgba(0, 0, 0, 0)"))}getActiveEffectCount(){return this.activeEffects.length}hasActiveEffects(){return this.activeEffects.length>0}};const AF=(A,e,t,n,r)=>{let s=0,o=0,a=A,i=e,c=t.left,u=t.top,h=t.width,f=t.height;const g=h/f,m=a/i,b=r?J(r[0],1):.5,U=r?J(r[1],1):.5;return n===2?m>g?(f=h/m,u+=(t.height-f)*U):(h=f*m,c+=(t.width-h)*b):n===4?m>g?(a=i*g,s+=(A-a)*b):(i=a/g,o+=(e-i)*U):n===8?(a>h?(s+=(a-h)*b,a=h):(c+=(h-a)*b,h=a),i>f?(o+=(i-f)*U,i=f):(u+=(f-i)*U,f=i)):n===16&&((m>g?h:f*m)<(a>h?a:h)?m>g?(f=h/m,u+=(t.height-f)*U):(h=f*m,c+=(t.width-h)*b):(a>h?(s+=(a-h)*b,a=h):(c+=(h-a)*b,h=a),i>f?(o+=(i-f)*U,i=f):(u+=(f-i)*U,f=i))),{sx:s,sy:o,sw:a,sh:i,dx:c,dy:u,dw:h,dh:f}};function eF(A,e,t,n,r,s,o,a){return I(this,null,function*(){var i,c;if(r instanceof Tp)try{const u=yield e.cache.match(r.src),h=A.imageSmoothingEnabled;o.imageRendering===2||o.imageRendering===1?A.imageSmoothingEnabled=!1:o.imageRendering===3&&(A.imageSmoothingEnabled=!0),a(r,s,u),A.imageSmoothingEnabled=h}catch(u){e.logger.error(`Error loading image ${r.src}`),(i=e.onError)==null||i.call(e,u instanceof Error?u:new Error(String(u)))}if(r instanceof Hp&&a(r,s,r.canvas),r instanceof Lp)try{a(r,s,yield e.cache.match(r.svg))}catch(u){e.logger.error(`Error loading svg ${r.svg.substring(0,255)}`),(c=e.onError)==null||c.call(e,u instanceof Error?u:new Error(String(u)))}if(r instanceof Mp&&r.tree){const u=yield n(e,{scale:t.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}).render(r.tree);r.width&&r.height&&A.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height)}})}function tF(A,e,t,n,r){if(n instanceof Yn){const s=Math.min(n.bounds.width,n.bounds.height);n.type==="checkbox"&&n.checked?(A.save(),t([new O(n.bounds.left+s*.39363,n.bounds.top+s*.79),new O(n.bounds.left+s*.16,n.bounds.top+s*.5549),new O(n.bounds.left+s*.27347,n.bounds.top+s*.44071),new O(n.bounds.left+s*.39694,n.bounds.top+s*.5649),new O(n.bounds.left+s*.72983,n.bounds.top+s*.23),new O(n.bounds.left+s*.84,n.bounds.top+s*.34085),new O(n.bounds.left+s*.39363,n.bounds.top+s*.79)]),A.fillStyle=EA(Rp),A.fill(),A.restore()):n.type==="radio"&&n.checked&&(A.save(),A.beginPath(),A.arc(n.bounds.left+s/2,n.bounds.top+s/2,s/4,0,Math.PI*2,!0),A.fillStyle=EA(Rp),A.fill(),A.restore())}if(oF(n)&&n.value.length){const[s]=e.createFontStyle(r);A.font=s;const o=J(r.fontSize,0),{baseline:a,height:i}=Yp(A,o);A.fillStyle=n instanceof Yn&&n.isPlaceholder?EA(wk):EA(r.color),A.textBaseline="alphabetic",A.textAlign=iF(n.styles.textAlign);const c=Yr(n),u=n instanceof Yn?nF(c,ac(n),i):c;let h=0;switch(n.styles.textAlign){case 1:h+=c.width/2;break;case 2:h+=c.width;break}let f=0;n instanceof Yn&&(f=(c.height-i)/2);const g=c.add(h,f,0,0);A.save(),t([new O(u.left,u.top),new O(u.left+u.width,u.top),new O(u.left+u.width,u.top+u.height),new O(u.left,u.top+u.height)]),A.clip();const m=rF(A,n.value,c.width,r.whiteSpace==="pre"||r.whiteSpace==="nowrap"),b=Pa(r.lineHeight,o);m.forEach((U,E)=>{let v=g.left;const F=A.measureText(U).width;switch(r.textAlign){case 1:v+=(c.width-F)/2;break;case 2:v+=c.width-F;break}const y=new Fe(v,g.top+E*b,0,0);e.renderTextWithLetterSpacing(new hn(U,y),r.letterSpacing,a,r.writingMode)}),A.restore(),A.textBaseline="alphabetic",A.textAlign="left"}}const nF=(A,e,t)=>A.height<t?new Fe(A.left,e.top,A.width,e.height):A,rF=(A,e,t,n)=>{const r=[],s=e.split(`
1669
- `);for(const o of s){if(n){r.push(o);continue}const a=o.split(/(\s+)/);let i="";for(const c of a){const u=i+c;A.measureText(u).width<=t||i===""?i=u:(r.push(i),i=c)}r.push(i)}return r};function sF(A,e,t,n,r,s){return I(this,null,function*(){var o;if(Ae(r.styles.display,2048)){if(r.styles.listStyleImage!==null){const a=r.styles.listStyleImage;if(a.type===0){const i=a.url;try{const c=yield e.cache.match(i);A.drawImage(c,r.bounds.left-(c.width+10),r.bounds.top)}catch(c){e.logger.error(`Error loading list-style-image ${i}`),(o=e.onError)==null||o.call(e,c instanceof Error?c:new Error(String(c)))}}}else if(n.listValue&&r.styles.listStyleType!==-1){const[a]=t.createFontStyle(s);A.font=a,A.fillStyle=EA(s.color),A.textBaseline="middle",A.textAlign="right";const i=new Fe(r.bounds.left,r.bounds.top+J(r.styles.paddingTop,r.bounds.width),r.bounds.width,Pa(s.lineHeight,s.fontSize.number)/2+1);t.renderTextWithLetterSpacing(new hn(n.listValue,i),s.letterSpacing,Pa(s.lineHeight,s.fontSize.number)/2+2,s.writingMode),A.textBaseline="bottom",A.textAlign="left"}}})}const oF=A=>A instanceof Pp||A instanceof Op?!0:A instanceof Yn&&A.type!=="radio"&&A.type!=="checkbox",iF=A=>{switch(A){case 1:return"center";case 2:return"right";default:return"left"}};var aF=class qf{constructor(e,t){this.context=e,this.options=t,this.canvas=t.canvas?t.canvas:document.createElement("canvas");const n=this.canvas.getContext("2d");if(!n)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=n,t.canvas||(this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=`${t.width}px`,this.canvas.style.height=`${t.height}px`),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x,-t.y),this.ctx.textBaseline="bottom",t.imageSmoothing!==void 0&&(this.ctx.imageSmoothingEnabled=t.imageSmoothing),t.imageSmoothingQuality&&(this.ctx.imageSmoothingQuality=t.imageSmoothingQuality),this.backgroundRenderer=new th({ctx:this.ctx,context:this.context,canvas:this.canvas,options:{width:t.width,height:t.height,scale:t.scale}}),this.borderRenderer=new jk({ctx:this.ctx},{path:r=>this.path(r),formatPath:r=>this.formatPath(r)}),this.borderImageRenderer=new Yk(this.ctx),this.effectsRenderer=new qk({ctx:this.ctx},{path:r=>this.path(r)}),this.textRenderer=new Gk({ctx:this.ctx,options:{scale:t.scale}}),this.context.logger.debug(`Canvas renderer initialized (${t.width}x${t.height}) with scale ${t.scale}`)}renderStack(e){return I(this,null,function*(){e.element.container.styles.isVisible()&&(yield this.renderStackContent(e))})}renderNode(e){return I(this,null,function*(){if(e.container.debugRender)debugger;e.container.styles.isVisible()&&(yield this.renderNodeBackgroundAndBorders(e),yield this.renderNodeContent(e))})}renderReplacedElement(e,t,n){const r=n.naturalWidth||e.intrinsicWidth,s=n.naturalHeight||e.intrinsicHeight;if(n&&r>0&&s>0){const o=Yr(e),a=Po(t);this.path(a),this.ctx.save(),this.ctx.clip();const{sx:i,sy:c,sw:u,sh:h,dx:f,dy:g,dw:m,dh:b}=AF(r,s,o,e.styles.objectFit,e.styles.objectPosition);this.ctx.drawImage(n,i,c,u,h,f,g,m,b),this.ctx.restore()}}renderNodeContent(e){return I(this,null,function*(){this.effectsRenderer.applyEffects(e.getEffects(4));const t=e.container,n=e.curves,r=t.styles,s=Yr(t);for(const o of t.textNodes)yield this.textRenderer.renderTextNode(o,r,s);yield eF(this.ctx,this.context,{scale:this.options.scale,backgroundColor:this.options.backgroundColor,x:this.options.x,y:this.options.y,width:this.options.width,height:this.options.height},(o,a)=>new qf(o,a),t,n,r,(o,a,i)=>this.renderReplacedElement(o,a,i)),tF(this.ctx,this.textRenderer,this.path.bind(this),t,r),yield sF(this.ctx,this.context,this.textRenderer,e,t,r)})}renderStackContent(e){return I(this,null,function*(){if(e.element.container.debugRender)debugger;const t=this.options.signal;yield this.renderNodeBackgroundAndBorders(e.element);for(const n of e.negativeZIndex){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderNodeContent(e.element);for(const n of e.nonInlineLevel)yield this.renderNode(n);for(const n of e.nonPositionedFloats){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.nonPositionedInlineLevel){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.inlineLevel)yield this.renderNode(n);for(const n of e.zeroOrAutoZIndexOrTransformedOrOpacity){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.positiveZIndex){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}})}mask(e){this.ctx.beginPath();const t=this.options.x,n=this.options.y;this.ctx.moveTo(t,n),this.ctx.lineTo(t+this.options.width,n),this.ctx.lineTo(t+this.options.width,n+this.options.height),this.ctx.lineTo(t,n+this.options.height),this.ctx.lineTo(t,n),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()}path(e){eh(this.ctx,e)}formatPath(e){Ah(this.ctx,e)}renderNodeBackgroundAndBorders(e){return I(this,null,function*(){this.effectsRenderer.applyEffects(e.getEffects(2));const t=e.container.styles,n=!yt(t.backgroundColor)||t.backgroundImage.length,r=lF(t),s=[{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}],o=gn(t.backgroundClip,0),a=cF(o,e.curves);if((n||t.boxShadow.length)&&(r&&e.container.textNodes.length>0?yield this.renderTextClippedBackground(e):(this.ctx.save(),this.path(a),this.ctx.clip(),yt(t.backgroundColor)||(this.ctx.fillStyle=EA(t.backgroundColor),this.ctx.fill()),yield this.backgroundRenderer.renderBackgroundImage(e.container),this.ctx.restore()),t.boxShadow.slice(0).reverse().forEach(c=>{this.ctx.save();const u=Oo(e.curves),h=c.inset?0:eE,f=Qk(u,-h+(c.inset?1:-1)*c.spread.number,(c.inset?1:-1)*c.spread.number,c.spread.number*(c.inset?-2:2),c.spread.number*(c.inset?-2:2));c.inset?(this.path(u),this.ctx.clip(),this.mask(f)):(this.mask(u),this.ctx.clip(),this.path(f)),this.ctx.shadowOffsetX=c.offsetX.number+h,this.ctx.shadowOffsetY=c.offsetY.number,this.ctx.shadowColor=EA(c.color),this.ctx.shadowBlur=c.blur.number,this.ctx.fillStyle=c.inset?EA(c.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()})),t.borderImageSource){const c=t.borderImageSource;if(c.type===0){const u=c.url;try{const h=yield this.context.cache.match(u);if(h){const f=e.container.bounds;this.borderImageRenderer.renderBorderImage(f,h,t.borderImageSlice,t.borderImageRepeat,Math.max(0,t.borderTopWidth),Math.max(0,t.borderRightWidth),Math.max(0,t.borderBottomWidth),Math.max(0,t.borderLeftWidth))}}catch(h){this.context.logger.error(`Error loading border-image ${u}`)}}return}let i=0;for(const c of s){if(c.style!==0&&!yt(c.color)&&c.width>0){const u=()=>I(this,null,function*(){c.style===2?yield this.borderRenderer.renderDashedDottedBorder(c.color,c.width,i,e.curves,2):c.style===3?yield this.borderRenderer.renderDashedDottedBorder(c.color,c.width,i,e.curves,3):c.style===4?yield this.borderRenderer.renderDoubleBorder(c.color,c.width,i,e.curves):yield this.borderRenderer.renderSolidBorder(c.color,i,e.curves)}),h=e.container.legendBounds;if(i===0&&h){const f=e.container.bounds,g=h.left-f.left,m=h.left+h.width-f.left;g>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(f.left,f.top,g,f.height),this.ctx.clip(),yield u(),this.ctx.restore());const b=f.left+m,U=f.width-m;U>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(b,f.top,U,f.height),this.ctx.clip(),yield u(),this.ctx.restore())}else yield u()}i++}})}render(e){return I(this,null,function*(){this.options.backgroundColor&&(this.ctx.fillStyle=EA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));const t=Tk(e);return yield this.renderStack(t),this.effectsRenderer.applyEffects([]),this.canvas})}renderTextClippedBackground(e){return I(this,null,function*(){var m;const t=e.container,n=t.styles,r=t.bounds;if(r.width<=0||r.height<=0)return;const s=((m=this.canvas.ownerDocument)!=null?m:document).createElement("canvas"),o=Math.ceil(r.width),a=Math.ceil(r.height);s.width=o,s.height=a;const i=s.getContext("2d");if(!i)return;const[c]=this.textRenderer.createFontStyle(n);i.font=c,i.textBaseline="alphabetic",i.textAlign="left",i.direction=n.direction===1?"rtl":"ltr";const u=qp(i,n.fontSize.number),h=new th({ctx:i,context:this.context,canvas:s,options:{width:o,height:a,scale:1}});yt(n.backgroundColor)||(i.fillStyle=EA(n.backgroundColor),i.fillRect(0,0,o,a)),i.save(),i.translate(-r.left,-r.top),yield h.renderBackgroundImage(t),i.restore(),i.globalCompositeOperation="destination-in",i.fillStyle="#000";const f=n.writingMode,g=n.letterSpacing;for(const b of t.textNodes)for(const U of b.textBounds){const E=U.bounds.left-r.left,v=U.bounds.top-r.top+u;g>0?this.renderTextMaskWithLetterSpacing(i,U,g,E,v,f):i.fillText(U.text,E,v)}this.ctx.drawImage(s,r.left,r.top)})}renderTextMaskWithLetterSpacing(e,t,n,r,s,o){const a=fn(t.text);let i=r;for(const c of a){if(Ho(o)){e.fillText(t.text,r,s);return}e.fillText(c,i,s),i+=e.measureText(c).width+n}}};const cF=(A,e)=>{switch(A){case 0:return Oo(e);case 2:return Uk(e);default:return Po(e)}},lF=A=>A.backgroundClip.some(e=>e===3);var uF=class{constructor(A,e){this.context=A,this.options=e,this.canvas=e.canvas?e.canvas:document.createElement("canvas");const t=this.canvas.getContext("2d");if(!t)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=t,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`,this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (${e.width}x${e.height} at ${e.x},${e.y}) with scale ${e.scale}`)}render(A){return I(this,null,function*(){var t;if((t=this.options.signal)!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");const e=yield tc(ec(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A));return this.options.backgroundColor&&(this.ctx.fillStyle=EA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas})}},dF=(hr=class{constructor({id:e,enabled:t}){this.id=e,this.enabled=t,this.start=Date.now()}debug(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug(this.id,`${this.getTime()}ms`,...e):this.info(...e))}getTime(){return Date.now()-this.start}info(...e){this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info(this.id,`${this.getTime()}ms`,...e)}warn(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn(this.id,`${this.getTime()}ms`,...e):this.info(...e))}error(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error(this.id,`${this.getTime()}ms`,...e):this.info(...e))}},hr.instances={},hr),pF=class{constructor(A,e){var t;if(this.context=A,this._options=e,this._cache=new Map,this._pendingOperations=new Map,this._deferMode=!1,this._collectedUrls=new Set,this.maxSize=(t=e.maxCacheSize)!=null?t:100,this.maxSize<1)throw new Error("Cache maxSize must be at least 1");this.maxSize>1e4&&this.context.logger.warn(`Cache maxSize ${this.maxSize} is very large and may cause memory issues. Consider using a smaller value (recommended: 100-1000).`)}startDefer(){this._deferMode=!0}preloadAll(A=10){return I(this,null,function*(){this._deferMode=!1;const e=Array.from(this._collectedUrls);if(this._collectedUrls.clear(),e.length===0)return;const t=Math.max(1,Math.min(A,100));this.context.logger.debug(`Preloading ${e.length} image(s) with concurrency ${t}`);for(let n=0;n<e.length;n+=t){const r=e.slice(n,n+t).map(s=>this._addImageWithPending(s));yield Promise.allSettled(r)}})}addImage(A){if(this._deferMode)return!this.has(A)&&(As(A)||rh(A))&&this._collectedUrls.add(A),Promise.resolve();const e=this._pendingOperations.get(A);if(e)return e;if(this.has(A)){const t=this._cache.get(A);return this._cache.delete(A),this._cache.set(A,t),Promise.resolve()}return As(A)||rh(A)?this._addImageWithPending(A):Promise.resolve()}_addImageWithPending(A){const e=this._pendingOperations.get(A);if(e)return e;const t=this._addImageInternal(A);return this._pendingOperations.set(A,t),t.finally(()=>{this._pendingOperations.delete(A)}),t}_addImageInternal(A){return I(this,null,function*(){var n;const e=(n=this._options.imageTimeout)!=null?n:15e3,t=this.withTimeout(this.loadImage(A),e,`Timed out (${e}ms) loading image`);t.catch(r=>{this.context.logger.error(`Failed to load image ${A}: ${r instanceof Error?r.message:"Unknown error"}`)}),this.set(A,t)})}withTimeout(A,e,t){if(e<=0)return A;let n;const r=new Promise((s,o)=>{n=setTimeout(()=>o(new Error(t)),e)});return Promise.race([A,r]).finally(()=>{n!==void 0&&clearTimeout(n)})}match(A){const e=this._cache.get(A);if(e)return this._cache.delete(A),this._cache.set(A,e),e.value}set(A,e){if(this._cache.has(A))this._cache.delete(A);else if(this._cache.size>=this.maxSize){const t=this._cache.keys().next().value;t!==void 0&&(this._cache.delete(t),this.context.logger.debug(`Cache: Evicted LRU entry: ${t}`))}this._cache.set(A,{value:e})}size(){return this._cache.size}getMaxSize(){return this.maxSize}clear(){this._cache.clear()}loadImage(A){return I(this,null,function*(){const e=this.context.originChecker,t=i=>e.isSameOrigin(i),n=typeof this._options.customIsSameOrigin=="function"?yield this._options.customIsSameOrigin(A,t):t(A),r=!n&&this._options.allowTaint===!1&&!zo(A)&&!As(A)&&typeof this._options.proxy!="string",s=!zo(A)&&(this._options.useCORS===!0||r)&&ee.SUPPORT_CORS_IMAGES&&!n,o=!zo(A)&&!n&&!As(A)&&typeof this._options.proxy=="string"&&ee.SUPPORT_CORS_XHR&&!s;if(!n&&this._options.allowTaint===!1&&!zo(A)&&!As(A)&&!o&&!s)return;let a=A;return o&&(a=yield this.proxy(a)),this.context.logger.debug(`Added image ${A.substring(0,256)}`),yield new Promise((i,c)=>{const u=new Image;u.onload=()=>i(u),u.onerror=c,(BF(a)||s)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(()=>i(u),500)})})}has(A){return this._cache.has(A)}keys(){return Promise.resolve(Array.from(this._cache.keys()))}proxy(A){const e=this._options.proxy;if(!e)throw new Error("No proxy defined");const t=A.substring(0,256);return new Promise((n,r)=>{const s=ee.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=()=>{if(o.status===200)if(s==="text")n(o.response);else{const i=new FileReader;i.addEventListener("load",()=>n(i.result),!1),i.addEventListener("error",c=>r(c),!1),i.readAsDataURL(o.response)}else r(`Failed to proxy resource ${t} with status code ${o.status}`)},o.onerror=r;const a=e.indexOf("?")>-1?"&":"?";if(o.open("GET",`${e}${a}url=${encodeURIComponent(A)}&responseType=${s}`),s!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=s),this._options.imageTimeout){const i=this._options.imageTimeout;o.timeout=i,o.ontimeout=()=>r(`Timed out (${i}ms) proxying ${t}`)}o.send()})}};const hF=/^data:image\/svg\+xml/i,fF=/^data:image\/.*;base64,/i,gF=/^data:image\/.*/i,rh=A=>ee.SUPPORT_SVG_DRAWING||!wF(A),zo=A=>gF.test(A),BF=A=>fF.test(A),As=A=>A.substring(0,4)==="blob",wF=A=>A.slice(-3).toLowerCase()==="svg"||hF.test(A);var mF=class{constructor(A){if(!A||!A.document)throw new Error("Valid window object required for OriginChecker");if(!A.location||!A.location.href)throw new Error("Window object must have valid location");this.link=A.document.createElement("a"),this.origin=this.getOrigin(A.location.href)}getOrigin(A){return this.link.href=A,this.link.href=this.link.href,this.link.protocol+this.link.hostname+this.link.port}isSameOrigin(A){return this.getOrigin(A)===this.origin}getContextOrigin(){return this.origin}},CF=(vn=class{constructor(e,t,n){var r,s;this.windowBounds=t,this.instanceName=`#${vn.instanceCount++}`,this.config=n,this.logger=new dF({id:this.instanceName,enabled:e.logging}),this.originChecker=new mF(n.window),this.cache=(s=(r=e.cache)!=null?r:n.cache)!=null?s:new pF(this,e),this.onError=e.onError}},vn.instanceCount=1,vn);const Vo=A=>{if(A!=null&&A.aborted)throw new DOMException("The operation was aborted.","AbortError")},bF=A=>{["scale","width","height","imageTimeout","x","y","windowWidth","windowHeight","scrollX","scrollY"].forEach(e=>{const t=A[e];if(t!=null&&typeof t!="number"){const n=Number(t);Number.isNaN(n)||(A[e]=n)}})},QF=A=>{var e,t,n;return{allowTaint:(e=A.allowTaint)!=null?e:!1,imageTimeout:(t=A.imageTimeout)!=null?t:15e3,proxy:A.proxy,useCORS:(n=A.useCORS)!=null?n:!1,customIsSameOrigin:A.customIsSameOrigin,maxCacheSize:A.maxCacheSize}},yF=(A,e,t)=>{var n,r;return k({logging:(n=A.logging)!=null?n:!0,cache:(r=A.cache)!=null?r:e.cache},t)},UF=800,EF=600,sh=0,kF=(A,e)=>{var n,r,s,o,a,i,c,u;const t=e;return{windowWidth:(r=(n=A.windowWidth)!=null?n:t.innerWidth)!=null?r:UF,windowHeight:(o=(s=A.windowHeight)!=null?s:t.innerHeight)!=null?o:EF,scrollX:(i=(a=A.scrollX)!=null?a:t.pageXOffset)!=null?i:sh,scrollY:(u=(c=A.scrollY)!=null?c:t.pageYOffset)!=null?u:sh}},FF=(A,e,t)=>{var n,r;return{allowTaint:(n=A.allowTaint)!=null?n:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,iframeContainer:A.iframeContainer,inlineImages:t,copyStyles:t,cspNonce:(r=A.cspNonce)!=null?r:e.cspNonce}},vF=(A,e,t,n,r,s,o)=>{var a,i,c,u,h,f;return{canvas:A.canvas,backgroundColor:e,signal:A.signal,scale:(i=(a=A.scale)!=null?a:o)!=null?i:1,x:((c=A.x)!=null?c:0)+t,y:((u=A.y)!=null?u:0)+n,width:(h=A.width)!=null?h:Math.ceil(r),height:(f=A.height)!=null?f:Math.ceil(s),imageSmoothing:A.imageSmoothing,imageSmoothingQuality:A.imageSmoothingQuality}},_F=(A,e,t)=>{const n=e.ownerDocument,r=n.documentElement?Jn(A,getComputedStyle(n.documentElement).backgroundColor):lt.TRANSPARENT,s=n.body?Jn(A,getComputedStyle(n.body).backgroundColor):lt.TRANSPARENT,o=typeof t=="string"?Jn(A,t):t===null?lt.TRANSPARENT:4294967295;return e===n.documentElement?yt(r)?yt(s)?o:s:r:o},xF=(A,e,t)=>I(null,null,function*(){var K,G,W,sA,lA,_A;if(bF(e),!e.skipValidation){const Ce=e.validator||Pb(),pe=Ce.validateElement(A);if(!pe.valid)throw new Error(pe.error);const De=Ce.validateOptions(e);if(!De.valid)throw new Error(`Invalid options: ${De.error}`)}if(!A||typeof A!="object")throw new Error("Invalid element provided as first argument");const n=A.ownerDocument;if(!n)throw new Error("Element is not attached to a Document");const r=n.defaultView;if(!r)throw new Error("Document is not attached to a Window");const s=yF(e,t,QF(e)),o=kF(e,r),a=new Fe(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),i=new CF(s,a,t),c=(G=(K=e.enablePerformanceMonitoring)!=null?K:e.logging)!=null?G:!1,u=new Mb(i,c);u.start("total",{width:o.windowWidth,height:o.windowHeight});const h=e.signal;Vo(h);const f=(W=e.foreignObjectRendering)!=null?W:!1,g=FF(e,t,f);i.logger.debug(`Starting document clone with size ${a.width}x${a.height} scrolled to ${-a.left},${-a.top}`),u.start("clone");const m=new Na(i,A,g),b=m.clonedReferenceElement;if(!b)throw new Error("Unable to find element in cloned iframe");const U=yield m.toIFrame(n,a);u.end("clone"),h!=null&&h.aborted&&(((sA=e.removeContainer)==null||sA)&&Na.destroy(U),Vo(h));const{width:E,height:v,left:F,top:y}=Ia(b)||Ny(b)?Kb(b.ownerDocument):Hr(i,b),_=_F(i,b,e.backgroundColor),R=vF(e,_,F,y,E,v,(lA=r.devicePixelRatio)!=null?lA:1);let H,z;try{return f?(i.logger.debug("Document cloned, using foreign object rendering"),u.start("render-foreignobject"),H=yield new uF(i,R).render(b),u.end("render-foreignobject")):(i.logger.debug(`Document cloned, element located at ${F},${y} with size ${E}x${v} using computed rendering`),i.logger.debug("Starting DOM parsing"),u.start("parse"),Vo(h),i.cache.startDefer(),z=$p(i,b),u.end("parse"),u.start("preload"),yield i.cache.preloadAll(),u.end("preload"),_===z.styles.backgroundColor&&(z.styles.backgroundColor=lt.TRANSPARENT),i.logger.debug(`Starting renderer for element at ${R.x},${R.y} with size ${R.width}x${R.height}`),u.start("render"),Vo(h),H=yield new aF(i,R).render(z),u.end("render")),u.start("cleanup"),((_A=e.removeContainer)==null||_A)&&(Na.destroy(U)||i.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.end("cleanup"),u.end("total"),i.logger.debug("Finished rendering"),c&&u.logSummary(),H}finally{z&&z.restoreTree()}}),SF=(A,e={},t)=>xF(A,e,Rb.fromElement(A,{cspNonce:e.cspNonce,cache:e.cache}));function IF(A){return I(this,null,function*(){if(!(A instanceof HTMLElement))return{blob:null,error:null};try{const e=yield SF(A,{backgroundColor:"#ffffff",logging:!1,useCORS:!0,scale:1,ignoreElements:n=>n instanceof Element&&n.hasAttribute("data-ap-sdk"),onclone:(n,r)=>{try{Ni(r)}catch(s){}}}),t=yield TF(e);return t?{blob:t,error:null}:{blob:null,error:"canvas.toBlob produced no image data"}}catch(e){return console.error("[Agent Platform SDK] screenshot capture failed:",e),{blob:null,error:e instanceof Error?e.message:String(e)}}})}function TF(A){return new Promise(e=>{A.toBlob(t=>e(t),"image/png")})}const HF={click:"🖱",inputText:"⌨",scroll:"↕",keypress:"⌤"};function LF(A,e){const{needsCredentials:t,canCreateTask:n,canCreatePlanning:r,captureType:s,hasOnReselect:o,hasOnAddAnother:a}=e;return`
1661
+ }`,kE=(A,e)=>{FE(A,`.${Za}${UE}${Qp}
1662
+ .${Xa}${EE}${Qp}`,e)},FE=(A,e,t)=>{const n=A.ownerDocument;if(n){const r=n.createElement("style");r.textContent=e,t&&(r.nonce=t),A.appendChild(r)}},vE=(A,e)=>{var r;const t=A.ownerDocument.createElement("base");t.href=e;const n=A.getElementsByTagName("head").item(0);n==null||n.insertBefore(t,(r=n==null?void 0:n.firstChild)!=null?r:null)};for(var yp=class{static normalizeElement(A,e){const t={};return Zr(A)&&(e.animationDuration.some(n=>n>0)&&(t.animationDuration=A.style.animationDuration,A.style.animationDuration="0s"),e.transform!==null&&(t.transform=A.style.transform,A.style.transform="translate(0, 0)"),e.rotate!==null&&(t.rotate=A.style.rotate,A.style.rotate="0deg",t.transform===void 0&&(t.transform=A.style.transform,A.style.transform="translate(0, 0)"))),t}static restoreElement(A,e){Zr(A)&&(e.animationDuration!==void 0&&(A.style.animationDuration=e.animationDuration),e.transform!==void 0&&(A.style.transform=e.transform),e.rotate!==void 0&&(A.style.rotate=e.rotate))}},dt=class{constructor(A,e,t={}){if(this.context=A,this.textNodes=[],this.elements=[],this.createsStackingContext=!1,this.createsRealStackingContext=!1,this.isListOwner=!1,this.debugRender=!1,za(e,3))debugger;if(this.styles=new cE(A,A.config.window.getComputedStyle(e,null)),t.normalizeDom!==!1&&Zr(e)&&(this.originalStyles=yp.normalizeElement(e,this.styles),this.originalElement=e),this.bounds=Lr(this.context,e),e.tagName==="FIELDSET"){const n=e.querySelector(":scope > legend");if(n){const r=Lr(this.context,n);this.legendBounds=r;const s=r.top+r.height/2-this.styles.borderTopWidth/2;this.bounds=new ve(this.bounds.left,s,this.bounds.width,this.bounds.height-(s-this.bounds.top))}}za(e,4)&&(this.debugRender=!0)}restore(){this.originalStyles&&this.originalElement&&(yp.restoreElement(this.originalElement,this.originalStyles),this.originalStyles=void 0,this.originalElement=void 0)}restoreTree(){this.restore();for(const A of this.elements)A.restoreTree()}},_E="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC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IAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYEC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OAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Up="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ro=0;Ro<Up.length;Ro++)jr[Up.charCodeAt(Ro)]=Ro;for(var xE=function(A){var e=A.length*.75,t=A.length,n,r=0,s,o,a,i;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<t;n+=4)s=jr[A.charCodeAt(n)],o=jr[A.charCodeAt(n+1)],a=jr[A.charCodeAt(n+2)],i=jr[A.charCodeAt(n+3)],u[r++]=s<<2|o>>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|i&63;return c},SE=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},IE=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},hn=5,Wa=11,Ja=2,TE=Wa-hn,Ep=65536>>hn,ja=(1<<hn)-1,HE=Ep+(1024>>hn)+32,LE=65536>>Wa,RE=(1<<TE)-1,kp=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},DE=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},OE=function(A,e){var t=xE(A),n=Array.isArray(t)?IE(t):new Uint32Array(t),r=Array.isArray(t)?SE(t):new Uint16Array(t),s=24,o=kp(r,s/2,n[4]/2),a=n[5]===2?kp(r,(s+n[4])/2):DE(n,Math.ceil((s+n[4])/4));return new PE(n[0],n[1],n[2],n[3],o,a)},PE=(function(){function A(e,t,n,r,s,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=s,this.data=o}return A.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>hn],t=(t<<Ja)+(e&ja),this.data[t];if(e<=65535)return t=this.index[Ep+(e-55296>>hn)],t=(t<<Ja)+(e&ja),this.data[t];if(e<this.highStart)return t=HE-LE+(e>>Wa),t=this.index[t],t+=e>>hn&RE,t=this.index[t],t=(t<<Ja)+(e&ja),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Fp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ME=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Do=0;Do<Fp.length;Do++)ME[Fp.charCodeAt(Do)]=Do;var NE=1,Ya=2,qa=3,vp=4,_p=5,KE=7,xp=8,Ac=9,ec=10,Sp=11,Ip=12,Tp=13,Hp=14,tc=15,$E=function(A){for(var e=[],t=0,n=A.length;t<n;){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var s=A.charCodeAt(t++);(s&64512)===56320?e.push(((r&1023)<<10)+(s&1023)+65536):(e.push(r),t--)}else e.push(r)}return e},zE=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var n=[],r=-1,s="";++r<t;){var o=A[r];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(r+1===t||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},VE=OE(_E),xe="×",nc="÷",GE=function(A){return VE.get(A)},ZE=function(A,e,t){var n=t-2,r=e[n],s=e[t-1],o=e[t];if(s===Ya&&o===qa)return xe;if(s===Ya||s===qa||s===vp||o===Ya||o===qa||o===vp)return nc;if(s===xp&&[xp,Ac,Sp,Ip].indexOf(o)!==-1||(s===Sp||s===Ac)&&(o===Ac||o===ec)||(s===Ip||s===ec)&&o===ec||o===Tp||o===_p||o===KE||s===NE)return xe;if(s===Tp&&o===Hp){for(;r===_p;)r=e[--n];if(r===Hp)return xe}if(s===tc&&o===tc){for(var a=0;r===tc;)a++,r=e[--n];if(a%2===0)return xe}return nc},XE=function(A){var e=$E(A),t=e.length,n=0,r=0,s=e.map(GE);return{next:function(){if(n>=t)return{done:!0,value:null};for(var o=xe;n<t&&(o=ZE(e,s,++n))===xe;);if(o!==xe||n===t){var a=zE.apply(null,e.slice(r,n));return r=n,{value:a,done:!1}}return{done:!0,value:null}}}},WE=function(A){for(var e=XE(A),t=[],n;!(n=e.next()).done;)n.value&&t.push(n.value.slice());return t};const JE=A=>{if(A.createRange){const t=A.createRange();if(t.getBoundingClientRect){const n=A.createElement("boundtest");n.style.height="123px",n.style.display="block",A.body.appendChild(n),t.selectNode(n);const r=t.getBoundingClientRect(),s=Math.round(r.height);if(A.body.removeChild(n),s===123)return!0}}return!1},jE=A=>{const e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);const t=A.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";const n=e.firstChild,r=no(n.data).map(i=>HA(i));let s=0,o={};const a=r.every((i,c)=>{t.setStart(n,s),t.setEnd(n,s+i.length);const u=t.getBoundingClientRect();s+=i.length;const h=u.x>o.x||u.y>o.y;return o=u,c===0?!0:h});return A.body.removeChild(e),a},YE=()=>typeof new Image().crossOrigin!="undefined",qE=()=>typeof new XMLHttpRequest().responseType=="string",Ak=A=>{const e=new Image,t=A.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),t.toDataURL()}catch(r){return!1}return!0},Lp=A=>A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255,ek=A=>{const e=A.createElement("canvas"),t=100;e.width=t,e.height=t;const n=e.getContext("2d");if(!n)return Promise.reject(new Error("Failed to get 2D rendering context"));n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);const r=new Image,s=e.toDataURL();r.src=s;const o=rc(t,t,0,0,r);return n.fillStyle="red",n.fillRect(0,0,t,t),sc(o).then(a=>{n.drawImage(a,0,0);const i=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);const c=A.createElement("div");return c.style.backgroundImage=`url(${s})`,c.style.height=`${t}px`,Lp(i)?sc(rc(t,t,0,0,c)):Promise.reject(new Error("ForeignObject rendering not supported"))}).then(a=>(n.drawImage(a,0,0),Lp(n.getImageData(0,0,t,t).data))).catch(()=>!1)},rc=(A,e,t,n,r)=>{const s="http://www.w3.org/2000/svg",o=document.createElementNS(s,"svg"),a=document.createElementNS(s,"foreignObject");return o.setAttributeNS(null,"width",A.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",t.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(r),o},sc=A=>new Promise((e,t)=>{const n=new Image;n.onload=()=>e(n),n.onerror=t,n.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(A))}`}),te={get SUPPORT_RANGE_BOUNDS(){const A=JE(document);return Object.defineProperty(te,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){const A=te.SUPPORT_RANGE_BOUNDS&&jE(document);return Object.defineProperty(te,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){const A=Ak(document);return Object.defineProperty(te,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){const A=typeof Array.from=="function"&&typeof window.fetch=="function"?ek(document):Promise.resolve(!1);return Object.defineProperty(te,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){const A=YE();return Object.defineProperty(te,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){const A=qE();return Object.defineProperty(te,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){const A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(te,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){const A=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(te,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}};var fn=class{constructor(A,e){this.text=A,this.bounds=e}};const tk=(A,e,t,n)=>{const r=sk(e,t),s=[];let o=0;return r.forEach(a=>{if(t.textDecorationLine.length||a.trim().length>0)if(te.SUPPORT_RANGE_BOUNDS){const i=Rp(n,o,a.length).getClientRects();if(i.length>1){const c=gn(a);let u=0;c.forEach(h=>{s.push(new fn(h,ve.fromDOMRectList(A,Rp(n,u+o,h.length).getClientRects()))),u+=h.length})}else s.push(new fn(a,ve.fromDOMRectList(A,i)))}else{const i=n.splitText(a.length);s.push(new fn(a,nk(A,n))),n=i}else te.SUPPORT_RANGE_BOUNDS||(n=n.splitText(a.length));o+=a.length}),s},nk=(A,e)=>{const t=e.ownerDocument;if(t){const n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));const r=e.parentNode;if(r){r.replaceChild(n,e);const s=Lr(A,n);return n.firstChild&&r.replaceChild(n.firstChild,n),s}}return ve.EMPTY},Rp=(A,e,t)=>{const n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");const r=n.createRange();return r.setStart(A,e),r.setEnd(A,e+t),r},gn=A=>{if(te.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(t=>t.segment)}return WE(A)},rk=(A,e)=>{if(te.SUPPORT_NATIVE_TEXT_SEGMENTATION){const t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(n=>n.segment)}return ik(A,e)},sk=(A,e)=>Lo(e.writingMode)||e.letterSpacing!==0?gn(A):rk(A,e),ok=[32,160,4961,65792,65793,4153,4241],ik=(A,e)=>{const t=mQ(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[];let r;for(;!(r=t.next()).done;)if(r.value){const s=no(r.value.slice());let o="";s.forEach(a=>{ok.indexOf(a)===-1?o+=HA(a):(o.length&&n.push(o),n.push(HA(a)),o="")}),o.length&&n.push(o)}return n};var ak=class{constructor(A,e,t){this.text=ck(e.data,t.textTransform),this.text.length!==e.data.length&&(e.data=this.text),this.textBounds=tk(A,this.text,t,e)}};const ck=(A,e)=>{switch(e){case 1:return A.toLowerCase();case 3:return A.replace(lk,uk);case 2:return A.toUpperCase();default:return A}},lk=/(^|\s|:|-|\(|\))([a-z])/g,uk=(A,e,t)=>A.length>0?e+t.toUpperCase():A;var Dp=class extends dt{constructor(A,e){super(A,e),this.src=e.currentSrc||e.src,this.intrinsicWidth=e.naturalWidth,this.intrinsicHeight=e.naturalHeight,this.context.cache.addImage(this.src)}},Op=class extends dt{constructor(A,e){super(A,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}};const dk=["position","inset","top","right","bottom","left","inset-inline","inset-inline-start","inset-inline-end","inset-block","inset-block-start","inset-block-end","margin","margin-top","margin-right","margin-bottom","margin-left","margin-inline","margin-inline-start","margin-inline-end","margin-block","margin-block-start","margin-block-end"],pk=(A,e)=>{const t=e.getAttribute("style");dk.forEach(r=>e.style.removeProperty(r));const n=A.serializeToString(e);return t===null?e.removeAttribute("style"):e.setAttribute("style",t),n};var Pp=class extends dt{constructor(A,e){super(A,e);const t=new XMLSerializer,n=Lr(A,e);e.setAttribute("width",`${n.width}px`),e.setAttribute("height",`${n.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(pk(t,e))}`,this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,this.context.cache.addImage(this.svg)}},Mp=class extends dt{constructor(A,e){super(A,e),this.value=e.value}},oc=class extends dt{constructor(A,e){super(A,e),this.start=e.start,this.reversed=typeof e.reversed=="boolean"&&e.reversed===!0}};const hk=[{type:15,flags:0,unit:"px",number:3}],fk=[{type:16,flags:0,number:50}],gk=A=>A.width>A.height?new ve(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new ve(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A,Bk=A=>{const e=A.type==="password"?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},wk=A=>A.value.length===0&&!!A.placeholder,mk="checkbox",Ck="radio",Np=707406591,bk=1970632191;var Ar=class extends dt{constructor(A,e){switch(super(A,e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=Bk(e),this.isPlaceholder=wk(e),(this.type==="checkbox"||this.type==="radio")&&(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=gk(this.bounds)),this.type){case mk:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=hk;break;case Ck:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=fk;break}}},Kp=class extends dt{constructor(A,e){super(A,e);const t=e.options[e.selectedIndex||0];this.value=t&&t.text||""}},$p=class extends dt{constructor(A,e){super(A,e),this.value=e.value}},zp=class extends dt{constructor(A,e,t){super(A,e),this.src=e.src,this.width=parseInt(e.width,10)||0,this.height=parseInt(e.height,10)||0,this.backgroundColor=this.styles.backgroundColor,this.parseTreeFn=t;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&this.parseTreeFn){this.tree=this.parseTreeFn(A,e.contentWindow.document.documentElement);const n=e.contentWindow.document.documentElement?Yn(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):ut.TRANSPARENT,r=e.contentWindow.document.body?Yn(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):ut.TRANSPARENT;this.backgroundColor=Et(n)?Et(r)?this.styles.backgroundColor:r:n}}catch(n){}}};const Qk=["OL","UL","MENU"],ic=(A,e,t,n)=>{for(let r=e.firstChild,s;r;r=s)s=r.nextSibling,Vp(A,r,t,n)},Vp=(A,e,t,n)=>{if(Pd(e)&&e.data.length>0)t.textNodes.push(new ak(A,e,t.styles));else if(un(e))if(Xr(e)&&e.assignedNodes)e.assignedNodes().forEach(r=>Vp(A,r,t,n));else{const r=Gp(A,e);r.styles.isVisible()&&(yk(e,r,n)?r.createsRealStackingContext=!0:Uk(r.styles)&&(r.createsStackingContext=!0),Qk.indexOf(e.tagName)!==-1&&(r.isListOwner=!0),t.elements.push(r),e.shadowRoot?ic(A,e.shadowRoot,r,n):!yo(e)&&!Md(e)&&!Uo(e)&&ic(A,e,r,n))}},Gp=(A,e)=>Ra(e)?new Dp(A,e):Nd(e)?new Op(A,e):Md(e)?new Pp(A,e):Zy(e)?new Mp(A,e):Xy(e)?new oc(A,e):zy(e)?new Ar(A,e):Uo(e)?new Kp(A,e):yo(e)?new $p(A,e):$d(e)?new zp(A,e,Zp):new dt(A,e),Zp=(A,e)=>{const t=Gp(A,e);return t.createsRealStackingContext=!0,ic(A,e,t,t),t},yk=(A,e,t)=>e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||La(A)&&t.styles.isTransparent(),Uk=A=>A.isPositioned()||A.isFloating()?!0:ee(A.display,268435456)||ee(A.display,33554432)||ee(A.display,536870912)||ee(A.display,134217728),Xp=(A,e)=>A.length===e.length?A.some((t,n)=>t===e[n]):!1,Ek=(A,e,t,n,r)=>A.map((s,o)=>{switch(o){case 0:return s.add(e,t);case 1:return s.add(e+n,t);case 2:return s.add(e+n,t+r);case 3:return s.add(e,t+r)}return s});var O=class ng{constructor(e,t){this.type=0,this.x=e,this.y=t}add(e,t){return new ng(this.x+e,this.y+t)}};const er=(A,e,t)=>new O(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t);var Oo=class Is{constructor(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}subdivide(e,t){const n=er(this.start,this.startControl,e),r=er(this.startControl,this.endControl,e),s=er(this.endControl,this.end,e),o=er(n,r,e),a=er(r,s,e),i=er(o,a,e);return t?new Is(this.start,n,o,i):new Is(i,a,s,this.end)}add(e,t){return new Is(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))}reverse(){return new Is(this.end,this.endControl,this.startControl,this.start)}};const Se=A=>A.type===1;var kk=class{constructor(A){const e=A.styles,t=A.bounds;let[n,r]=Vr(e.borderTopLeftRadius,t.width,t.height),[s,o]=Vr(e.borderTopRightRadius,t.width,t.height),[a,i]=Vr(e.borderBottomRightRadius,t.width,t.height),[c,u]=Vr(e.borderBottomLeftRadius,t.width,t.height);const h=[];h.push((n+s)/t.width),h.push((c+a)/t.width),h.push((r+u)/t.height),h.push((o+i)/t.height);const f=Math.max(...h);f>1&&(n/=f,r/=f,s/=f,o/=f,a/=f,i/=f,c/=f,u/=f);const g=t.width-s,m=t.height-i,b=t.width-a,E=t.height-u,k=e.borderTopWidth,v=e.borderRightWidth,y=e.borderBottomWidth,U=e.borderLeftWidth,x=J(e.paddingTop,A.bounds.width),R=J(e.paddingRight,A.bounds.width),H=J(e.paddingBottom,A.bounds.width),X=J(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||r>0?EA(t.left+U/3,t.top+k/3,n-U/3,r-k/3,0):new O(t.left+U/3,t.top+k/3),this.topRightBorderDoubleOuterBox=n>0||r>0?EA(t.left+g,t.top+k/3,s-v/3,o-k/3,1):new O(t.left+t.width-v/3,t.top+k/3),this.bottomRightBorderDoubleOuterBox=a>0||i>0?EA(t.left+b,t.top+m,a-v/3,i-y/3,2):new O(t.left+t.width-v/3,t.top+t.height-y/3),this.bottomLeftBorderDoubleOuterBox=c>0||u>0?EA(t.left+U/3,t.top+E,c-U/3,u-y/3,3):new O(t.left+U/3,t.top+t.height-y/3),this.topLeftBorderDoubleInnerBox=n>0||r>0?EA(t.left+U*2/3,t.top+k*2/3,n-U*2/3,r-k*2/3,0):new O(t.left+U*2/3,t.top+k*2/3),this.topRightBorderDoubleInnerBox=n>0||r>0?EA(t.left+g,t.top+k*2/3,s-v*2/3,o-k*2/3,1):new O(t.left+t.width-v*2/3,t.top+k*2/3),this.bottomRightBorderDoubleInnerBox=a>0||i>0?EA(t.left+b,t.top+m,a-v*2/3,i-y*2/3,2):new O(t.left+t.width-v*2/3,t.top+t.height-y*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||u>0?EA(t.left+U*2/3,t.top+E,c-U*2/3,u-y*2/3,3):new O(t.left+U*2/3,t.top+t.height-y*2/3),this.topLeftBorderStroke=n>0||r>0?EA(t.left+U/2,t.top+k/2,n-U/2,r-k/2,0):new O(t.left+U/2,t.top+k/2),this.topRightBorderStroke=n>0||r>0?EA(t.left+g,t.top+k/2,s-v/2,o-k/2,1):new O(t.left+t.width-v/2,t.top+k/2),this.bottomRightBorderStroke=a>0||i>0?EA(t.left+b,t.top+m,a-v/2,i-y/2,2):new O(t.left+t.width-v/2,t.top+t.height-y/2),this.bottomLeftBorderStroke=c>0||u>0?EA(t.left+U/2,t.top+E,c-U/2,u-y/2,3):new O(t.left+U/2,t.top+t.height-y/2),this.topLeftBorderBox=n>0||r>0?EA(t.left,t.top,n,r,0):new O(t.left,t.top),this.topRightBorderBox=s>0||o>0?EA(t.left+g,t.top,s,o,1):new O(t.left+t.width,t.top),this.bottomRightBorderBox=a>0||i>0?EA(t.left+b,t.top+m,a,i,2):new O(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=c>0||u>0?EA(t.left,t.top+E,c,u,3):new O(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||r>0?EA(t.left+U,t.top+k,Math.max(0,n-U),Math.max(0,r-k),0):new O(t.left+U,t.top+k),this.topRightPaddingBox=s>0||o>0?EA(t.left+Math.min(g,t.width-v),t.top+k,g>t.width+v?0:Math.max(0,s-v),Math.max(0,o-k),1):new O(t.left+t.width-v,t.top+k),this.bottomRightPaddingBox=a>0||i>0?EA(t.left+Math.min(b,t.width-U),t.top+Math.min(m,t.height-y),Math.max(0,a-v),Math.max(0,i-y),2):new O(t.left+t.width-v,t.top+t.height-y),this.bottomLeftPaddingBox=c>0||u>0?EA(t.left+U,t.top+Math.min(E,t.height-y),Math.max(0,c-U),Math.max(0,u-y),3):new O(t.left+U,t.top+t.height-y),this.topLeftContentBox=n>0||r>0?EA(t.left+U+X,t.top+k+x,Math.max(0,n-(U+X)),Math.max(0,r-(k+x)),0):new O(t.left+U+X,t.top+k+x),this.topRightContentBox=s>0||o>0?EA(t.left+Math.min(g,t.width+U+X),t.top+k+x,g>t.width+U+X?0:s-U+X,o-(k+x),1):new O(t.left+t.width-(v+R),t.top+k+x),this.bottomRightContentBox=a>0||i>0?EA(t.left+Math.min(b,t.width-(U+X)),t.top+Math.min(m,t.height+k+x),Math.max(0,a-(v+R)),i-(y+H),2):new O(t.left+t.width-(v+R),t.top+t.height-(y+H)),this.bottomLeftContentBox=c>0||u>0?EA(t.left+U+X,t.top+E,Math.max(0,c-(U+X)),u-(y+H),3):new O(t.left+U+X,t.top+t.height-(y+H))}};const EA=(A,e,t,n,r)=>{const s=4*((Math.sqrt(2)-1)/3),o=t*s,a=n*s,i=A+t,c=e+n;switch(r){case 0:return new Oo(new O(A,c),new O(A,c-a),new O(i-o,e),new O(i,e));case 1:return new Oo(new O(A,e),new O(A+o,e),new O(i,c-a),new O(i,c));case 2:return new Oo(new O(i,e),new O(i,e+a),new O(A+o,c),new O(A,c));default:return new Oo(new O(i,c),new O(i-o,c),new O(A,e+a),new O(A,e))}},Po=A=>[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox],Fk=A=>[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox],Mo=A=>[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox];var ac=class{constructor(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}},No=class{constructor(A,e){this.path=A,this.target=e,this.type=1}},vk=class{constructor(A){this.opacity=A,this.type=2,this.target=6}},Yr=class{constructor(A){this.applyClip=A,this.type=3,this.target=6}};const _k={[VA.NORMAL]:"source-over",[VA.MULTIPLY]:"multiply",[VA.SCREEN]:"screen",[VA.OVERLAY]:"overlay",[VA.DARKEN]:"darken",[VA.LIGHTEN]:"lighten",[VA.COLOR_DODGE]:"color-dodge",[VA.COLOR_BURN]:"color-burn",[VA.HARD_LIGHT]:"hard-light",[VA.SOFT_LIGHT]:"soft-light",[VA.DIFFERENCE]:"difference",[VA.EXCLUSION]:"exclusion",[VA.HUE]:"hue",[VA.SATURATION]:"saturation",[VA.COLOR]:"color",[VA.LUMINOSITY]:"luminosity"};var xk=class{constructor(A){this.mixBlendMode=A,this.type=4,this.target=6,this.compositeOperation=_k[A]}},Sk=class Er{constructor(e){this.type=5,this.target=6;const t=Er.parseDropShadow(e);this.shadow=t.shadow,this.safeFilterString=t.safeFilterString}static parseDropShadow(e){if(!e)return{safeFilterString:""};const t=Er.findDropShadows(e);if(t.length===0)return{safeFilterString:e};const n=Er.parseDropShadowBody(t[0].body);let r="",s=0;for(const o of t)r+=e.slice(s,o.start),s=o.end;return r+=e.slice(s),{shadow:n,safeFilterString:r.replace(/\s+/g," ").trim()}}static findDropShadows(e){const t=[],n=/drop-shadow\(/gi;let r;for(;(r=n.exec(e))!==null;){const s=r.index+12-1,o=r.index;let a=1,i=s+1;for(;i<e.length&&a>0;){const u=e[i];u==="("?a++:u===")"&&a--,i++}if(a!==0)break;const c=e.slice(s+1,i-1);t.push({body:c,start:o,end:i})}return t}static parseDropShadowBody(e){var s;const t=Er.tokenizeFilterArgs(e.trim()),n=[];let r;for(const o of t)Er.isCSSLength(o)?n.push(parseFloat(o)):o&&(r=o);if(!(n.length<2||n.length>3))return{offsetX:n[0],offsetY:n[1],blur:(s=n[2])!=null?s:0,color:r!=null?r:"rgba(0,0,0,1)"}}static tokenizeFilterArgs(e){const t=[];let n="",r=0;for(let s=0;s<e.length;s++){const o=e[s];o==="("?(r++,n+=o):o===")"?(r--,n+=o):/\s/.test(o)?r>0?n+=o:n&&(t.push(n),n=""):n+=o}return n&&t.push(n),t}static isCSSLength(e){return/^-?[\d.]+(px|em|rem|pt|cm|mm|in|pc|ex|ch|vw|vh|vmin|vmax|%)?$/i.test(e)}};const Wp=A=>A.type===0,cc=A=>A.type===1,Ik=A=>A.type===2,Jp=A=>A.type===3,Tk=A=>A.type===4,Hk=A=>A.type===5;var jp=class{constructor(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}},Yp=class{constructor(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new kk(this.container),this.container.styles.opacity<1&&this.effects.push(new vk(this.container.styles.opacity)),this.container.styles.rotate!==null){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.rotate*Math.PI/180,o=Math.cos(s),a=Math.sin(s),i=[o,a,-a,o,0,0];this.effects.push(new ac(n,r,i))}if(this.container.styles.transform!==null){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.transform;this.effects.push(new ac(n,r,s))}if(qp(this.container.styles)){const t=Po(this.curves),n=Mo(this.curves);Xp(t,n)?this.effects.push(new No(t,6)):(this.effects.push(new No(t,2)),this.effects.push(new No(n,4)))}if(this.container.styles.clipPath.type!==0){const t=Lk(this.container.styles.clipPath,this.container.bounds);t&&this.effects.push(t)}if(this.container.styles.mixBlendMode!==VA.NORMAL&&this.effects.push(new xk(this.container.styles.mixBlendMode)),this.container.styles.filter!==null&&this.effects.push(new Sk(this.container.styles.filter)),this.container.styles.zoom!==1){const t=this.container.styles.transformOrigin,n=this.container.bounds.left+J(t[0],this.container.bounds.width),r=this.container.bounds.top+J(t[1],this.container.bounds.height),s=this.container.styles.zoom,o=[s,0,0,s,0,0];this.effects.push(new ac(n,r,o))}}getEffects(A){let e=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent;const n=this.effects.slice(0);for(;t;){const r=t.effects.filter(s=>!cc(s));if(e||t.container.styles.position!==0||!t.parent){if(e=[2,3].indexOf(t.container.styles.position)===-1,qp(t.container.styles)){const s=Po(t.curves),o=Mo(t.curves);Xp(s,o)||n.unshift(new No(o,6))}n.unshift(...r)}else n.unshift(...r);t=t.parent}return n.filter(r=>ee(r.target,A))}};const qp=A=>A.overflowX!==0||A.overflowY!==0,Ah=(A,e,t,n,r)=>A==="closest-side"?Math.min(e-t,n-e):A==="farthest-side"?Math.max(e-t,n-e):J(A,r),Lk=(A,e)=>{const{left:t,top:n,width:r,height:s}=e;switch(A.type){case 1:{const o=J(A.left,r),a=J(A.top,s),i=t+o,c=n+a,u=Math.max(0,r-o-J(A.right,r)),h=Math.max(0,s-a-J(A.bottom,s));return new Yr(f=>{f.beginPath(),f.rect(i,c,u,h),f.clip()})}case 2:{const o=t+J(A.cx,r),a=n+J(A.cy,s);let i;return A.radius==="closest-side"?i=Math.min(o-t,a-n,t+r-o,n+s-a):A.radius==="farthest-side"?i=Math.max(o-t,a-n,t+r-o,n+s-a):i=J(A.radius,Math.sqrt(r*r+s*s)/Math.SQRT2),new Yr(c=>{c.beginPath(),c.arc(o,a,Math.max(0,i),0,Math.PI*2),c.clip()})}case 3:{const o=t+J(A.cx,r),a=n+J(A.cy,s),i=Ah(A.rx,o,t,t+r,r),c=Ah(A.ry,a,n,n+s,s);return new Yr(u=>{u.beginPath(),u.ellipse(o,a,Math.max(0,i),Math.max(0,c),0,0,Math.PI*2),u.clip()})}case 4:{const o=A.points.map(([a,i])=>[t+J(a,r),n+J(i,s)]);return new Yr(a=>{if(a.beginPath(),o.length>0){a.moveTo(o[0][0],o[0][1]);for(let i=1;i<o.length;i++)a.lineTo(o[i][0],o[i][1]);a.closePath()}a.clip()})}case 5:{const{d:o}=A;let a=null;return new Yr(i=>{try{a||(a=new Path2D(o));const c=i.getTransform();i.translate(t,n),i.clip(a),i.setTransform(c)}catch(c){}})}case 0:return null;default:return null}},lc=(A,e,t,n)=>{A.container.elements.forEach(r=>{const s=r.createsRealStackingContext,o=r.createsStackingContext,a=new Yp(r,A);ee(r.styles.display,2048)&&n.push(a);const i=r.isListOwner?[]:n;if(s||o){const c=s||r.styles.isPositioned()?t:e,u=new jp(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){const h=r.styles.zIndex.order;if(h<0){let f=0;c.negativeZIndex.some((g,m)=>h>g.element.container.styles.zIndex.order?(f=m,!1):f>0),c.negativeZIndex.splice(f,0,u)}else if(h>0){let f=0;c.positiveZIndex.some((g,m)=>h>=g.element.container.styles.zIndex.order?(f=m+1,!1):f>0),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else r.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);lc(a,u,s?u:t,i)}else r.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),lc(a,e,t,i);r.isListOwner&&eh(r,i)})},eh=(A,e)=>{let t=A instanceof oc?A.start:1;const n=A instanceof oc?A.reversed:!1;for(let r=0;r<e.length;r++){const s=e[r];s.container instanceof Mp&&typeof s.container.value=="number"&&s.container.value!==0&&(t=s.container.value),s.listValue=Wr(t,s.container.styles.listStyleType,!0),t+=n?-1:1}},Rk=A=>{const e=new Yp(A,null),t=new jp(e),n=[];return lc(e,t,t,n),eh(e.container,n),t},uc=A=>{const e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},qr=A=>{const e=A.styles,t=A.bounds,n=J(e.paddingLeft,t.width),r=J(e.paddingRight,t.width),s=J(e.paddingTop,t.width),o=J(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+s+o))},Dk=(A,e)=>A===0?e.bounds:A===2?qr(e):uc(e),Ok=(A,e)=>A===0?e.bounds:A===2?qr(e):uc(e),Ko=(A,e,t)=>{const n=Dk(Bn(A.styles.backgroundOrigin,e),A),r=Ok(Bn(A.styles.backgroundClip,e),A),s=Pk(Bn(A.styles.backgroundSize,e),t,n);let[o,a]=s;const i=Vr(Bn(A.styles.backgroundPosition,e),n.width-o,n.height-a),c=Mk(Bn(A.styles.backgroundRepeat,e),i,s,n,r),u=Math.round(n.left+i[0]),h=Math.round(n.top+i[1]);return o=Math.max(1,o),a=Math.max(1,a),[c,u,h,o,a]},tr=A=>j(A)&&A.value==="auto",$o=A=>typeof A=="number",Pk=(A,[e,t,n],r)=>{const[s,o]=A;if(!s)return[0,0];if(aA(s)&&o&&aA(o))return[J(s,r.width),J(o,r.height)];const a=$o(n);if(j(s)&&(s.value==="contain"||s.value==="cover"))return $o(n)?r.width/r.height<n!=(s.value==="cover")?[r.width,r.width/n]:[r.height*n,r.height]:[r.width,r.height];const i=$o(e),c=$o(t),u=i||c;if(tr(s)&&(!o||tr(o)))return i&&c?[e,t]:!a&&!u?[r.width,r.height]:u&&a?[i?e:t*n,c?t:e/n]:[i?e:r.width,c?t:r.height];if(a){let g=0,m=0;return aA(s)?g=J(s,r.width):aA(o)&&(m=J(o,r.height)),tr(s)?g=m*n:(!o||tr(o))&&(m=g/n),[g,m]}let h=null,f=null;if(aA(s)?h=J(s,r.width):o&&aA(o)&&(f=J(o,r.height)),h!==null&&(!o||tr(o))&&(f=i&&c?h/e*t:r.height),f!==null&&tr(s)&&(h=i&&c?f/t*e:r.width),h!==null&&f!==null)return[h,f];throw new Error("Unable to calculate background-size for element")},Bn=(A,e)=>{const t=A[e];return typeof t=="undefined"?A[0]:t},Mk=(A,[e,t],[n,r],s,o)=>{switch(A){case 2:return[new O(Math.round(s.left),Math.round(s.top+t)),new O(Math.round(s.left+s.width),Math.round(s.top+t)),new O(Math.round(s.left+s.width),Math.round(r+s.top+t)),new O(Math.round(s.left),Math.round(r+s.top+t))];case 3:return[new O(Math.round(s.left+e),Math.round(s.top)),new O(Math.round(s.left+e+n),Math.round(s.top)),new O(Math.round(s.left+e+n),Math.round(s.height+s.top)),new O(Math.round(s.left+e),Math.round(s.height+s.top))];case 1:return[new O(Math.round(s.left+e),Math.round(s.top+t)),new O(Math.round(s.left+e+n),Math.round(s.top+t)),new O(Math.round(s.left+e+n),Math.round(s.top+t+r)),new O(Math.round(s.left+e),Math.round(s.top+t+r))];default:return[new O(Math.round(o.left),Math.round(o.top)),new O(Math.round(o.left+o.width),Math.round(o.top)),new O(Math.round(o.left+o.width),Math.round(o.height+o.top)),new O(Math.round(o.left),Math.round(o.height+o.top))]}};var Nk=class{constructor(A){this.ctx=A}render(A,e){this.ctx.fillStyle=UA(e.textDecorationColor||e.color);let t=1;typeof e.textDecorationThickness=="number"?t=e.textDecorationThickness:e.textDecorationThickness==="from-font"&&(t=Math.max(1,Math.floor(e.fontSize.number*.05)));let n=0;typeof e.textUnderlineOffset=="number"&&(n=e.textUnderlineOffset);const r=e.textDecorationStyle;e.textDecorationLine.forEach(s=>{let o=0;switch(s){case 1:o=A.top+A.height-t+n;break;case 2:o=A.top;break;case 3:o=A.top+(A.height/2-t/2);break;default:return}this.draw(A.left,o,A.width,t,r)})}draw(A,e,t,n,r){switch(r){case 0:this.ctx.fillRect(A,e,t,n);break;case 1:{const s=Math.max(1,n);this.ctx.fillRect(A,e,t,n),this.ctx.fillRect(A,e+n+s,t,n);break}case 2:this.drawPattern(A,e,t,n,[n,n*2]);break;case 3:this.drawPattern(A,e,t,n,[n*3,n*2]);break;case 4:this.drawWavy(A,e,t,n);break;default:this.ctx.fillRect(A,e,t,n)}}drawPattern(A,e,t,n,r){this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash(r),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(A,e+n/2),this.ctx.lineTo(A+t,e+n/2),this.ctx.stroke(),this.ctx.restore()}drawWavy(A,e,t,n){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle;const r=n*2,s=n*4;let o=A;for(this.ctx.moveTo(o,e+n/2);o<A+t;){const a=Math.min(o+s/2,A+t);if(this.ctx.quadraticCurveTo(o+s/4,e+n/2-r,a,e+n/2),o=a,o<A+t){const i=Math.min(o+s/2,A+t);this.ctx.quadraticCurveTo(o+s/4,e+n/2+r,i,e+n/2),o=i}}this.ctx.stroke(),this.ctx.restore()}};const Kk="Mg",nr=A=>A!==void 0&&!Number.isNaN(A),th=(A,e)=>{const t=A.measureText(Kk),n=t;return{baseline:nr(n.fontBoundingBoxAscent)?n.fontBoundingBoxAscent:nr(t.actualBoundingBoxAscent)?t.actualBoundingBoxAscent:e,height:nr(n.fontBoundingBoxAscent)&&nr(n.fontBoundingBoxDescent)?n.fontBoundingBoxAscent+n.fontBoundingBoxDescent:nr(t.actualBoundingBoxAscent)&&nr(t.actualBoundingBoxDescent)?t.actualBoundingBoxAscent+t.actualBoundingBoxDescent:e}},nh=(A,e)=>th(A,e).baseline,$k=["-apple-system","system-ui"],zk=1,Vk=/[\u2E80-\u2FFF\u3000-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF01-\uFFEF]/,As=A=>Vk.test(A),Gk=()=>{if(typeof navigator=="undefined")return null;const A=navigator.userAgent,e=/iPhone|iPad|iPod/.test(A),t=/Macintosh/.test(A)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1;if(!e&&!t)return null;for(const n of[/(?:iPhone|CPU(?:\siPhone)?)\sOS\s(\d+)[\._](\d+)/,/Version\/(\d+)\.(\d+)/]){const r=A.match(n);if(r&&r[1])return parseInt(r[1],10)}return null},Zk=A=>{const e=Gk();return e!==null&&e>=15&&e<17?A.map(t=>$k.indexOf(t)!==-1?'-apple-system, "Helvetica Neue", Arial, sans-serif':t):A},Xk=()=>{var A;return(A=typeof window!="undefined"?window:void 0)!=null&&A.chrome?"miter":"round"};var Wk=class{constructor(A){this.glyphWidthCache=null,this.ctx=A.ctx,this.options=A.options,this.decorationRenderer=new Nk(A.ctx)}cachedMeasureText(A,e){let t=this.glyphWidthCache;t||(t=new Map,this.glyphWidthCache=t);const n=A+e;let r=t.get(n);return r===void 0&&(r=this.ctx.measureText(A).width,t.set(n,r)),r}iterateLettersWithLetterSpacing(A,e,t,n,r){if(Lo(n)){this.iterateVerticalGlyphs(A,e,t,n,r);return}const s=gn(A.text),o=A.bounds.top+t,a=this.ctx.font;let i=A.bounds.left;for(const c of s){if(As(c)){const u=this.ctx.textBaseline;this.ctx.textBaseline="ideographic",r(c,i,o),this.ctx.textBaseline=u}else r(c,i,o);i+=this.cachedMeasureText(c,a)+e}}iterateVerticalGlyphs(A,e,t,n,r){const s=gn(A.text),o=this.ctx.font,a=n===4?-Math.PI/2:Math.PI/2;let i=A.bounds.top;for(let c=0;c<s.length;){const u=s[c];if(!($a(n)||!As(u)&&u.trim().length>0)){const g=this.ctx.textBaseline;As(u)&&(this.ctx.textBaseline="ideographic"),r(u,A.bounds.left,i+t),this.ctx.textBaseline=g,i+=this.cachedMeasureText(u,o)+e,c++;continue}const h=c;for(;c<s.length;){const g=s[c];if(!$a(n)&&!As(g)&&g.trim().length===0)break;if($a(n)||!As(g)&&g.trim().length>0)c++;else break}this.ctx.save(),this.ctx.translate(A.bounds.left+t,i),this.ctx.rotate(a);let f=0;for(let g=h;g<c;g++)r(s[g],0,f),f+=this.cachedMeasureText(s[g],o)+e;this.ctx.restore(),i+=f}}renderTextWithLetterSpacing(A,e,t,n=0){this.renderFillText(A,e,t,n)}canRenderWholeText(A,e){return A===0&&!Lo(e)}renderFillText(A,e,t,n){this.canRenderWholeText(e,n)?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t):this.iterateLettersWithLetterSpacing(A,e,t,n,(r,s,o)=>{this.ctx.fillText(r,s,o)})}renderStrokeText(A,e,t,n){this.canRenderWholeText(e,n)?this.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+t):this.iterateLettersWithLetterSpacing(A,e,t,n,(r,s,o)=>{this.ctx.strokeText(r,s,o)})}renderTextStrokeWithStyle(A,e,t){!e.webkitTextStrokeWidth||!A.text.trim().length||(this.ctx.strokeStyle=UA(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=Xk(),this.renderStrokeText(A,e.letterSpacing,t,e.writingMode),this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter")}renderTextFillWithShadows(A,e,t){this.ctx.fillStyle=UA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,t,e.writingMode);const n=e.textShadow;n.length&&A.text.trim().length&&(n.slice(0).reverse().forEach(r=>{this.ctx.shadowColor=UA(r.color),this.ctx.shadowOffsetX=r.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=r.offsetY.number*this.options.scale,this.ctx.shadowBlur=r.blur.number,this.renderTextWithLetterSpacing(A,e.letterSpacing,t,e.writingMode)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0)}renderTextBoundWithPaintOrder(A,e,t,n){t.forEach(r=>{switch(r){case 0:this.ctx.fillStyle=UA(e.color),this.renderTextWithLetterSpacing(A,e.letterSpacing,n,e.writingMode);break;case 1:this.renderTextStrokeWithStyle(A,e,n);break}})}renderTextDecoration(A,e){this.decorationRenderer.render(A,e)}truncateTextWithEllipsis(A,e,t){const r=this.ctx.measureText("…").width,s=gn(A);if(t===0){const o=c=>this.ctx.measureText(s.slice(0,c).join("")).width+r<=e;let a=0,i=s.length;for(;a<i;){const c=a+i+1>>1;o(c)?a=c:i=c-1}return s.slice(0,a).join("")+"…"}else{const o=this.ctx.font;let a=r;const i=[];for(const c of s){const u=this.cachedMeasureText(c,o);if(a+u>e)break;i.push(c),a+=u+t}return i.join("")+"…"}}createFontStyle(A){const e=A.fontVariant.filter(r=>r==="normal"||r==="small-caps").join(""),t=Zk(A.fontFamily).join(", "),n=lt(A.fontSize)?`${A.fontSize.number}${A.fontSize.unit}`:`${A.fontSize.number}px`;return[[A.fontStyle,e,A.fontWeight,n,t].join(" "),t,n]}renderLineClampedText(A,e,t,n,r){const s=e.fontSize.number*1.5,o=[];let a=[],i=A.textBounds[0].bounds.top;A.textBounds.forEach(h=>{Math.abs(h.bounds.top-i)>=s*.5?(a.length>0&&o.push(a),a=[h],i=h.bounds.top):a.push(h)}),a.length>0&&o.push(a);const c=e.webkitLineClamp;if(o.length<=c)return!1;for(let h=0;h<c-1;h++)o[h].forEach(f=>this.renderTextBoundWithPaintOrder(f,e,t,n));const u=o[c-1];if(u!=null&&u.length&&r){const h=u.map(b=>b.text).join(""),f=u[0],g=r.width-(f.bounds.left-r.left),m=new fn(this.truncateTextWithEllipsis(h,g,e.letterSpacing),f.bounds);for(const b of t)b===0?(this.ctx.fillStyle=UA(e.color),this.renderTextWithLetterSpacing(m,e.letterSpacing,n,e.writingMode)):b===1&&this.renderTextStrokeWithStyle(m,e,n)}return!0}renderEllipsisText(A,e,t,n,r){const s=e.fontSize.number*1.5,o=A.textBounds[0].bounds.top;if(!A.textBounds.every(c=>Math.abs(c.bounds.top-o)<s*.5))return!1;let a=A.textBounds.map(c=>c.text).join("").replace(/\s+/g," ").trim();if(this.ctx.measureText(a).width<=r.width+zk)return!1;const i=new fn(this.truncateTextWithEllipsis(a,r.width,e.letterSpacing),A.textBounds[0].bounds);for(const c of t)c===0?this.renderTextFillWithShadows(i,e,n):c===1&&this.renderTextStrokeWithStyle(i,e,n);return!0}renderTextNode(A,e,t){return I(this,null,function*(){this.glyphWidthCache=null;const[n]=this.createFontStyle(e);this.ctx.font=n,this.ctx.direction=e.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const r=e.paintOrder,s=nh(this.ctx,e.fontSize.number);e.webkitLineClamp>0&&(e.display&2)!==0&&e.overflowY===1&&A.textBounds.length>0&&this.renderLineClampedText(A,e,r,s,t)||e.textOverflow===1&&t&&e.overflowX===1&&A.textBounds.length>0&&this.renderEllipsisText(A,e,r,s,t)||A.textBounds.forEach(o=>{r.forEach(a=>{a===0?(this.renderTextFillWithShadows(o,e,s),e.textDecorationLine.length&&this.renderTextDecoration(o.bounds,e)):a===1&&this.renderTextStrokeWithStyle(o,e,s)})})})}};const rh=(A,e)=>{e.forEach((t,n)=>{const r=Se(t)?t.start:t;n===0?A.moveTo(r.x,r.y):A.lineTo(r.x,r.y),Se(t)&&A.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)})},sh=(A,e)=>{A.beginPath(),rh(A,e),A.closePath()};var Jk=class{constructor(A){this.maxSize=A,this._map=new Map}get(A){if(!this._map.has(A))return;const e=this._map.get(A);return this._map.delete(A),this._map.set(A,e),e}set(A,e){if(this._map.has(A))this._map.delete(A);else if(this._map.size>=this.maxSize){const t=this._map.keys().next().value;t!==void 0&&this._map.delete(t)}this._map.set(A,e)}get size(){return this._map.size}clear(){this._map.clear()}},oh=class{constructor(A){this.patternCache=new Jk(50),this.ctx=A.ctx,this.context=A.context,this.canvas=A.canvas}renderBackgroundImage(A){return I(this,null,function*(){var r,s,o,a;let e=A.styles.backgroundImage.length-1;const t=A.styles.backgroundBlendMode;let n=0;for(const i of A.styles.backgroundImage.slice(0).reverse()){if(n>0){const c=(s=(r=t[n])!=null?r:t[0])!=null?s:"normal";c!=="normal"&&(this.ctx.save(),this.ctx.globalCompositeOperation=c)}i.type===0?yield this.renderBackgroundURLImage(A,i,e):l0(i)?this.renderLinearGradient(A,i,e):d0(i)?this.renderRepeatingLinearGradient(A,i,e):u0(i)&&this.renderRadialGradient(A,i,e),n>0&&((a=(o=t[n])!=null?o:t[0])!=null?a:"normal")!=="normal"&&this.ctx.restore(),e--,n++}})}renderBackgroundURLImage(A,e,t){return I(this,null,function*(){var s,o;let n;const r=e.url;try{n=yield this.context.cache.match(r)}catch(a){this.context.logger.error(`Error loading background-image ${r}`),(o=(s=this.context).onError)==null||o.call(s,a instanceof Error?a:new Error(String(a)))}if(n){const a=isNaN(n.width)||n.width===0?1:n.width,i=isNaN(n.height)||n.height===0?1:n.height,[c,u,h,f,g]=Ko(A,t,[a,i,a/i]),m=Bn(A.styles.backgroundRepeat,t),b=m===1?"no-repeat":m===2?"repeat-x":m===3?"repeat-y":"repeat",E=`${r}|${Math.round(f)}x${Math.round(g)}|${A.styles.imageRendering}|${b}`;let k=this.patternCache.get(E);if(!k){const v=this.resizeImage(n,f,g,A.styles.imageRendering);k=this.ctx.createPattern(v,b),this.patternCache.set(E,k)}this.renderRepeat(c,k,u,h)}})}renderRepeatingLinearGradient(A,e,t){var K;const[n,r,s,o,a]=Ko(A,t,[null,null,null]),[i,c,u,h,f]=Yd(e.angle,o,a),g=Pa(e.stops,i||1),m=g[g.length-1],b=g[0],E=m.stop-b.stop;if(E<=0){this.renderLinearGradient(A,e,t);return}const k=u-c,v=f-h,y=E/(Math.sqrt(k*k+v*v)||1),U=c,x=h,R=c+k*y,H=h+v*y,X=(K=this.canvas.ownerDocument)!=null?K:document,N=`rlg|${e.angle}|${Math.round(E)}|${JSON.stringify(e.stops)}`;let W=this.patternCache.get(N);if(!W){const nA=X.createElement("canvas"),hA=Math.max(1,Math.ceil(E));nA.width=hA,nA.height=hA;const _A=nA.getContext("2d");if(!_A)return;const jA=_A.createLinearGradient(U-r,x-s,R-r,H-s);g.forEach(he=>{jA.addColorStop((he.stop-b.stop)/E,UA(he.color))}),_A.fillStyle=jA,_A.fillRect(0,0,hA,hA),hA>0&&(W=this.ctx.createPattern(nA,"repeat"),this.patternCache.set(N,W))}W&&this.renderRepeat(n,W,r,s)}renderLinearGradient(A,e,t){var b;const[n,r,s,o,a]=Ko(A,t,[null,null,null]),[i,c,u,h,f]=Yd(e.angle,o,a),g=`lg|${e.angle}|${Math.round(o)}x${Math.round(a)}|${JSON.stringify(e.stops)}`;let m=this.patternCache.get(g);if(!m){const E=((b=this.canvas.ownerDocument)!=null?b:document).createElement("canvas");E.width=o,E.height=a;const k=E.getContext("2d");if(!k)return;const v=k.createLinearGradient(c,h,u,f);Pa(e.stops,i||1).forEach(y=>v.addColorStop(y.stop,UA(y.color))),k.fillStyle=v,k.fillRect(0,0,o,a),o>0&&a>0&&(m=this.ctx.createPattern(E,"repeat"),this.patternCache.set(g,m))}m&&this.renderRepeat(n,m,r,s)}renderRadialGradient(A,e,t){var g;const[n,r,s,o,a]=Ko(A,t,[null,null,null]),i=e.position.length===0?[Ut]:e.position,c=J(i[0],o),u=J(i[i.length-1],a);let[h,f]=i0(e,c,u,o,a);if((h===0||f===0)&&(h=Math.max(h,.01),f=Math.max(f,.01)),h>0&&f>0){const m=`rg|${Math.round(c)}x${Math.round(u)}|${Math.round(h)}x${Math.round(f)}|${JSON.stringify(e.stops)}`,b=Pa(e.stops,h*2),E=b[b.length-1];let k=this.patternCache.get(m);if(!k){const v=((g=this.canvas.ownerDocument)!=null?g:document).createElement("canvas");v.width=Math.ceil(h*2),v.height=Math.ceil(f*2);const y=v.getContext("2d");if(y){const U=y.createRadialGradient(h,h,0,h,h,h);b.forEach(x=>U.addColorStop(x.stop,UA(x.color))),y.fillStyle=U,h!==f&&y.scale(1,f/h),y.fillRect(0,0,h*2,h*2),k=this.ctx.createPattern(v,"no-repeat"),this.patternCache.set(m,k)}}k&&(this.path(n),this.ctx.save(),this.ctx.clip(),E&&(this.ctx.fillStyle=UA(E.color),this.ctx.fill()),this.ctx.translate(r+c-h,s+u-f),this.ctx.fillStyle=k,this.ctx.fillRect(0,0,h*2,f*2),this.ctx.restore())}}renderRepeat(A,e,t,n){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,n),this.ctx.fill(),this.ctx.translate(-t,-n)}resizeImage(A,e,t,n){var o;const r=((o=this.canvas.ownerDocument)!=null?o:document).createElement("canvas");r.width=Math.max(1,e),r.height=Math.max(1,t);const s=r.getContext("2d");return s?(n===2||n===1?(this.context.logger.debug("Disabling image smoothing for background image due to CSS image-rendering"),s.imageSmoothingEnabled=!1):n===3?(this.context.logger.debug("Enabling image smoothing for background image due to CSS image-rendering: smooth"),s.imageSmoothingEnabled=!0):s.imageSmoothingEnabled=this.ctx.imageSmoothingEnabled,this.ctx.imageSmoothingQuality&&(s.imageSmoothingQuality=this.ctx.imageSmoothingQuality),s.drawImage(A,0,0,A.width,A.height,0,0,e,t),r):A}path(A){sh(this.ctx,A)}};const ih=(A,e)=>{switch(e){case 0:return Ie(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Ie(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Ie(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return Ie(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},jk=(A,e)=>{switch(e){case 0:return Ie(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Ie(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Ie(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return Ie(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},Yk=(A,e)=>{switch(e){case 0:return Ie(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Ie(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Ie(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return Ie(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},qk=(A,e)=>{switch(e){case 0:return zo(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return zo(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return zo(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return zo(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},zo=(A,e)=>{const t=[];return Se(A)?t.push(A.subdivide(.5,!1)):t.push(A),Se(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Ie=(A,e,t,n)=>{const r=[];return Se(A)?r.push(A.subdivide(.5,!1)):r.push(A),Se(t)?r.push(t.subdivide(.5,!0)):r.push(t),Se(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Se(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r};var AF=class{constructor(A,e){this.ctx=A.ctx,this.pathCallbacks=e}renderSolidBorder(A,e,t){return I(this,null,function*(){this.pathCallbacks.path(ih(t,e)),this.ctx.fillStyle=UA(A),this.ctx.fill()})}renderDoubleBorder(A,e,t,n){return I(this,null,function*(){if(e<3){yield this.renderSolidBorder(A,t,n);return}const r=jk(n,t);this.pathCallbacks.path(r),this.ctx.fillStyle=UA(A),this.ctx.fill();const s=Yk(n,t);this.pathCallbacks.path(s),this.ctx.fill()})}renderDashedDottedBorder(A,e,t,n,r){return I(this,null,function*(){this.ctx.save();const s=qk(n,t),o=ih(n,t);r===2&&(this.pathCallbacks.path(o),this.ctx.clip());let a,i,c,u;Se(o[0])?(a=o[0].start.x,i=o[0].start.y):(a=o[0].x,i=o[0].y),Se(o[1])?(c=o[1].end.x,u=o[1].end.y):(c=o[1].x,u=o[1].y);let h;t===0||t===2?h=Math.abs(a-c):h=Math.abs(i-u),this.ctx.beginPath(),r===3?this.pathCallbacks.formatPath(s):this.pathCallbacks.formatPath(o.slice(0,2));let f=e<3?e*3:e*2,g=e<3?e*2:e;r===3&&(f=e,g=e);let m=!0;if(h<=f*2)m=!1;else if(h<=f*2+g){const b=h/(2*f+g);f*=b,g*=b}else{const b=Math.floor((h+g)/(f+g)),E=(h-b*f)/(b-1),k=(h-(b+1)*f)/b;g=k<=0||Math.abs(g-E)<Math.abs(g-k)?E:k}if(m&&(r===3?this.ctx.setLineDash([0,f+g]):this.ctx.setLineDash([f,g])),r===3?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=e*2+1.1,this.ctx.strokeStyle=UA(A),this.ctx.stroke(),this.ctx.setLineDash([]),r===2){if(Se(o[0])){const b=o[3],E=o[0];this.ctx.beginPath(),this.pathCallbacks.formatPath([new O(b.end.x,b.end.y),new O(E.start.x,E.start.y)]),this.ctx.stroke()}if(Se(o[1])){const b=o[1],E=o[2];this.ctx.beginPath(),this.pathCallbacks.formatPath([new O(b.end.x,b.end.y),new O(E.start.x,E.start.y)]),this.ctx.stroke()}}this.ctx.restore()})}},eF=class{constructor(A){this.ctx=A}renderBorderImage(A,e,t,n,r,s,o,a){const i=e.naturalWidth||e.width,c=e.naturalHeight||e.height;if(i<=0||c<=0)return;const u=Math.min(t.unit==="percent"?t.top/100*c:Math.min(t.top,c),c),h=Math.min(t.unit==="percent"?t.right/100*i:Math.min(t.right,i),i),f=Math.min(t.unit==="percent"?t.bottom/100*c:Math.min(t.bottom,c),c),g=Math.min(t.unit==="percent"?t.left/100*i:Math.min(t.left,i),i),{left:m,top:b,width:E,height:k}=A;if(E<=0||k<=0)return;const v=Math.min(r,k),y=Math.min(s,E),U=Math.min(o,k-v),x=Math.min(a,E-y);this.drawRegion(e,0,0,g,u,m,b,x,v),this.drawRegion(e,i-h,0,h,u,m+E-y,b,y,v),this.drawRegion(e,i-h,c-f,h,f,m+E-y,b+k-U,y,U),this.drawRegion(e,0,c-f,g,f,m,b+k-U,x,U);const R=[{sx:g,sy:0,sw:i-g-h,sh:u,dx:m+x,dy:b,dw:E-x-y,dh:v,repeat:n.horizontal},{sx:i-h,sy:u,sw:h,sh:c-u-f,dx:m+E-y,dy:b+v,dw:y,dh:k-v-U,repeat:n.vertical},{sx:g,sy:c-f,sw:i-g-h,sh:f,dx:m+x,dy:b+k-U,dw:E-x-y,dh:U,repeat:n.horizontal},{sx:0,sy:u,sw:g,sh:c-u-f,dx:m,dy:b+v,dw:x,dh:k-v-U,repeat:n.vertical}];for(const H of R){if(H.sw<=0||H.sh<=0||H.dw<=0||H.dh<=0)continue;const X=H.dw>=H.dh;H.repeat===0?this.ctx.drawImage(e,H.sx,H.sy,H.sw,H.sh,H.dx,H.dy,H.dw,H.dh):(H.repeat===1||H.repeat===2)&&this.drawRepeatedEdge(e,H,X,H.repeat===2)}if(t.fill){const H=g,X=u,N=i-g-h,W=c-u-f,K=m+x,nA=b+v,hA=E-x-y,_A=k-v-U;this.drawRegion(e,H,X,N,W,K,nA,hA,_A)}}drawRegion(A,e,t,n,r,s,o,a,i){n>0&&r>0&&a>0&&i>0&&this.ctx.drawImage(A,e,t,n,r,s,o,a,i)}drawRepeatedEdge(A,e,t,n){const r=t?e.sw:e.sh,s=t?e.dw:e.dh;if(r<=0||s<=0)return;let o,a;n?(a=Math.max(1,Math.round(s/r)),o=s/a):(o=r,a=Math.ceil(s/o)),this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(e.dx,e.dy,e.dw,e.dh),this.ctx.clip();for(let i=0;i<a;i++){const c=i*o,u=s-c,h=Math.min(o,u);if(h<=0)break;t?this.ctx.drawImage(A,e.sx,e.sy,e.sw,e.sh,e.dx+c,e.dy,h,e.dh):this.ctx.drawImage(A,e.sx,e.sy,e.sw,e.sh,e.dx,e.dy+c,e.dw,h)}this.ctx.restore()}},tF=class{constructor(A,e){this.activeEffects=[],this.didSave=!1,this.saveAtDepth=-1,this.ctx=A.ctx,this.pathCallback=e}applyEffects(A){for(;this.activeEffects.length;)this.popEffect();this.didSave=!1,this.saveAtDepth=-1;const e=n=>Wp(n)||cc(n)||Jp(n),t=A.reduceRight((n,r,s)=>n!==-1?n:e(r)?s:-1,-1);for(let n=0;n<A.length;n++){const r=A[n];e(r)&&(this.didSave||(this.ctx.save(),this.didSave=!0),n===t&&(this.saveAtDepth=this.activeEffects.length)),this.applyEffect(r)}}applyEffect(A){Wp(A)?(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)):cc(A)?(this.pathCallback.path(A.path),this.ctx.clip()):Jp(A)?A.applyClip(this.ctx):Ik(A)?this.ctx.globalAlpha*=A.opacity:Tk(A)?this.ctx.globalCompositeOperation=A.compositeOperation:Hk(A)&&(this.ctx.filter=A.safeFilterString||"none",A.shadow&&(this.ctx.shadowOffsetX=A.shadow.offsetX,this.ctx.shadowOffsetY=A.shadow.offsetY,this.ctx.shadowBlur=A.shadow.blur,this.ctx.shadowColor=A.shadow.color)),this.activeEffects.push(A)}popEffect(){this.activeEffects.length!==0&&(this.didSave&&this.activeEffects.length-1===this.saveAtDepth&&(this.ctx.restore(),this.didSave=!1,this.saveAtDepth=-1),this.activeEffects.pop(),!this.didSave&&this.activeEffects.length===0&&(this.ctx.globalAlpha=1,this.ctx.globalCompositeOperation="source-over",this.ctx.filter="none",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0,this.ctx.shadowColor="rgba(0, 0, 0, 0)"))}getActiveEffectCount(){return this.activeEffects.length}hasActiveEffects(){return this.activeEffects.length>0}};const nF=(A,e,t,n,r)=>{let s=0,o=0,a=A,i=e,c=t.left,u=t.top,h=t.width,f=t.height;const g=h/f,m=a/i,b=r?J(r[0],1):.5,E=r?J(r[1],1):.5;return n===2?m>g?(f=h/m,u+=(t.height-f)*E):(h=f*m,c+=(t.width-h)*b):n===4?m>g?(a=i*g,s+=(A-a)*b):(i=a/g,o+=(e-i)*E):n===8?(a>h?(s+=(a-h)*b,a=h):(c+=(h-a)*b,h=a),i>f?(o+=(i-f)*E,i=f):(u+=(f-i)*E,f=i)):n===16&&((m>g?h:f*m)<(a>h?a:h)?m>g?(f=h/m,u+=(t.height-f)*E):(h=f*m,c+=(t.width-h)*b):(a>h?(s+=(a-h)*b,a=h):(c+=(h-a)*b,h=a),i>f?(o+=(i-f)*E,i=f):(u+=(f-i)*E,f=i))),{sx:s,sy:o,sw:a,sh:i,dx:c,dy:u,dw:h,dh:f}};function rF(A,e,t,n,r,s,o,a){return I(this,null,function*(){var i,c;if(r instanceof Dp)try{const u=yield e.cache.match(r.src),h=A.imageSmoothingEnabled;o.imageRendering===2||o.imageRendering===1?A.imageSmoothingEnabled=!1:o.imageRendering===3&&(A.imageSmoothingEnabled=!0),a(r,s,u),A.imageSmoothingEnabled=h}catch(u){e.logger.error(`Error loading image ${r.src}`),(i=e.onError)==null||i.call(e,u instanceof Error?u:new Error(String(u)))}if(r instanceof Op&&a(r,s,r.canvas),r instanceof Pp)try{a(r,s,yield e.cache.match(r.svg))}catch(u){e.logger.error(`Error loading svg ${r.svg.substring(0,255)}`),(c=e.onError)==null||c.call(e,u instanceof Error?u:new Error(String(u)))}if(r instanceof zp&&r.tree){const u=yield n(e,{scale:t.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}).render(r.tree);r.width&&r.height&&A.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height)}})}function sF(A,e,t,n,r){if(n instanceof Ar){const s=Math.min(n.bounds.width,n.bounds.height);n.type==="checkbox"&&n.checked?(A.save(),t([new O(n.bounds.left+s*.39363,n.bounds.top+s*.79),new O(n.bounds.left+s*.16,n.bounds.top+s*.5549),new O(n.bounds.left+s*.27347,n.bounds.top+s*.44071),new O(n.bounds.left+s*.39694,n.bounds.top+s*.5649),new O(n.bounds.left+s*.72983,n.bounds.top+s*.23),new O(n.bounds.left+s*.84,n.bounds.top+s*.34085),new O(n.bounds.left+s*.39363,n.bounds.top+s*.79)]),A.fillStyle=UA(Np),A.fill(),A.restore()):n.type==="radio"&&n.checked&&(A.save(),A.beginPath(),A.arc(n.bounds.left+s/2,n.bounds.top+s/2,s/4,0,Math.PI*2,!0),A.fillStyle=UA(Np),A.fill(),A.restore())}if(cF(n)&&n.value.length){const[s]=e.createFontStyle(r);A.font=s;const o=J(r.fontSize,0),{baseline:a,height:i}=th(A,o);A.fillStyle=n instanceof Ar&&n.isPlaceholder?UA(bk):UA(r.color),A.textBaseline="alphabetic",A.textAlign=lF(n.styles.textAlign);const c=qr(n),u=n instanceof Ar?oF(c,uc(n),i):c;let h=0;switch(n.styles.textAlign){case 1:h+=c.width/2;break;case 2:h+=c.width;break}let f=0;n instanceof Ar&&(f=(c.height-i)/2);const g=c.add(h,f,0,0);A.save(),t([new O(u.left,u.top),new O(u.left+u.width,u.top),new O(u.left+u.width,u.top+u.height),new O(u.left,u.top+u.height)]),A.clip();const m=iF(A,n.value,c.width,r.whiteSpace==="pre"||r.whiteSpace==="nowrap"),b=Ka(r.lineHeight,o);m.forEach((E,k)=>{let v=g.left;const y=A.measureText(E).width;switch(r.textAlign){case 1:v+=(c.width-y)/2;break;case 2:v+=c.width-y;break}const U=new ve(v,g.top+k*b,0,0);e.renderTextWithLetterSpacing(new fn(E,U),r.letterSpacing,a,r.writingMode)}),A.restore(),A.textBaseline="alphabetic",A.textAlign="left"}}const oF=(A,e,t)=>A.height<t?new ve(A.left,e.top,A.width,e.height):A,iF=(A,e,t,n)=>{const r=[],s=e.split(`
1663
+ `);for(const o of s){if(n){r.push(o);continue}const a=o.split(/(\s+)/);let i="";for(const c of a){const u=i+c;A.measureText(u).width<=t||i===""?i=u:(r.push(i),i=c)}r.push(i)}return r};function aF(A,e,t,n,r,s){return I(this,null,function*(){var o;if(ee(r.styles.display,2048)){if(r.styles.listStyleImage!==null){const a=r.styles.listStyleImage;if(a.type===0){const i=a.url;try{const c=yield e.cache.match(i);A.drawImage(c,r.bounds.left-(c.width+10),r.bounds.top)}catch(c){e.logger.error(`Error loading list-style-image ${i}`),(o=e.onError)==null||o.call(e,c instanceof Error?c:new Error(String(c)))}}}else if(n.listValue&&r.styles.listStyleType!==-1){const[a]=t.createFontStyle(s);A.font=a,A.fillStyle=UA(s.color),A.textBaseline="middle",A.textAlign="right";const i=new ve(r.bounds.left,r.bounds.top+J(r.styles.paddingTop,r.bounds.width),r.bounds.width,Ka(s.lineHeight,s.fontSize.number)/2+1);t.renderTextWithLetterSpacing(new fn(n.listValue,i),s.letterSpacing,Ka(s.lineHeight,s.fontSize.number)/2+2,s.writingMode),A.textBaseline="bottom",A.textAlign="left"}}})}const cF=A=>A instanceof $p||A instanceof Kp?!0:A instanceof Ar&&A.type!=="radio"&&A.type!=="checkbox",lF=A=>{switch(A){case 1:return"center";case 2:return"right";default:return"left"}};var uF=class rg{constructor(e,t){this.context=e,this.options=t,this.canvas=t.canvas?t.canvas:document.createElement("canvas");const n=this.canvas.getContext("2d");if(!n)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=n,t.canvas||(this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=`${t.width}px`,this.canvas.style.height=`${t.height}px`),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x,-t.y),this.ctx.textBaseline="bottom",t.imageSmoothing!==void 0&&(this.ctx.imageSmoothingEnabled=t.imageSmoothing),t.imageSmoothingQuality&&(this.ctx.imageSmoothingQuality=t.imageSmoothingQuality),this.backgroundRenderer=new oh({ctx:this.ctx,context:this.context,canvas:this.canvas,options:{width:t.width,height:t.height,scale:t.scale}}),this.borderRenderer=new AF({ctx:this.ctx},{path:r=>this.path(r),formatPath:r=>this.formatPath(r)}),this.borderImageRenderer=new eF(this.ctx),this.effectsRenderer=new tF({ctx:this.ctx},{path:r=>this.path(r)}),this.textRenderer=new Wk({ctx:this.ctx,options:{scale:t.scale}}),this.context.logger.debug(`Canvas renderer initialized (${t.width}x${t.height}) with scale ${t.scale}`)}renderStack(e){return I(this,null,function*(){e.element.container.styles.isVisible()&&(yield this.renderStackContent(e))})}renderNode(e){return I(this,null,function*(){if(e.container.debugRender)debugger;e.container.styles.isVisible()&&(yield this.renderNodeBackgroundAndBorders(e),yield this.renderNodeContent(e))})}renderReplacedElement(e,t,n){const r=n.naturalWidth||e.intrinsicWidth,s=n.naturalHeight||e.intrinsicHeight;if(n&&r>0&&s>0){const o=qr(e),a=Mo(t);this.path(a),this.ctx.save(),this.ctx.clip();const{sx:i,sy:c,sw:u,sh:h,dx:f,dy:g,dw:m,dh:b}=nF(r,s,o,e.styles.objectFit,e.styles.objectPosition);this.ctx.drawImage(n,i,c,u,h,f,g,m,b),this.ctx.restore()}}renderNodeContent(e){return I(this,null,function*(){this.effectsRenderer.applyEffects(e.getEffects(4));const t=e.container,n=e.curves,r=t.styles,s=qr(t);for(const o of t.textNodes)yield this.textRenderer.renderTextNode(o,r,s);yield rF(this.ctx,this.context,{scale:this.options.scale,backgroundColor:this.options.backgroundColor,x:this.options.x,y:this.options.y,width:this.options.width,height:this.options.height},(o,a)=>new rg(o,a),t,n,r,(o,a,i)=>this.renderReplacedElement(o,a,i)),sF(this.ctx,this.textRenderer,this.path.bind(this),t,r),yield aF(this.ctx,this.context,this.textRenderer,e,t,r)})}renderStackContent(e){return I(this,null,function*(){if(e.element.container.debugRender)debugger;const t=this.options.signal;yield this.renderNodeBackgroundAndBorders(e.element);for(const n of e.negativeZIndex){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderNodeContent(e.element);for(const n of e.nonInlineLevel)yield this.renderNode(n);for(const n of e.nonPositionedFloats){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.nonPositionedInlineLevel){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.inlineLevel)yield this.renderNode(n);for(const n of e.zeroOrAutoZIndexOrTransformedOrOpacity){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}for(const n of e.positiveZIndex){if(t!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");yield this.renderStack(n)}})}mask(e){this.ctx.beginPath();const t=this.options.x,n=this.options.y;this.ctx.moveTo(t,n),this.ctx.lineTo(t+this.options.width,n),this.ctx.lineTo(t+this.options.width,n+this.options.height),this.ctx.lineTo(t,n+this.options.height),this.ctx.lineTo(t,n),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()}path(e){sh(this.ctx,e)}formatPath(e){rh(this.ctx,e)}renderNodeBackgroundAndBorders(e){return I(this,null,function*(){this.effectsRenderer.applyEffects(e.getEffects(2));const t=e.container.styles,n=!Et(t.backgroundColor)||t.backgroundImage.length,r=pF(t),s=[{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}],o=Bn(t.backgroundClip,0),a=dF(o,e.curves);if((n||t.boxShadow.length)&&(r&&e.container.textNodes.length>0?yield this.renderTextClippedBackground(e):(this.ctx.save(),this.path(a),this.ctx.clip(),Et(t.backgroundColor)||(this.ctx.fillStyle=UA(t.backgroundColor),this.ctx.fill()),yield this.backgroundRenderer.renderBackgroundImage(e.container),this.ctx.restore()),t.boxShadow.slice(0).reverse().forEach(c=>{this.ctx.save();const u=Po(e.curves),h=c.inset?0:rE,f=Ek(u,-h+(c.inset?1:-1)*c.spread.number,(c.inset?1:-1)*c.spread.number,c.spread.number*(c.inset?-2:2),c.spread.number*(c.inset?-2:2));c.inset?(this.path(u),this.ctx.clip(),this.mask(f)):(this.mask(u),this.ctx.clip(),this.path(f)),this.ctx.shadowOffsetX=c.offsetX.number+h,this.ctx.shadowOffsetY=c.offsetY.number,this.ctx.shadowColor=UA(c.color),this.ctx.shadowBlur=c.blur.number,this.ctx.fillStyle=c.inset?UA(c.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()})),t.borderImageSource){const c=t.borderImageSource;if(c.type===0){const u=c.url;try{const h=yield this.context.cache.match(u);if(h){const f=e.container.bounds;this.borderImageRenderer.renderBorderImage(f,h,t.borderImageSlice,t.borderImageRepeat,Math.max(0,t.borderTopWidth),Math.max(0,t.borderRightWidth),Math.max(0,t.borderBottomWidth),Math.max(0,t.borderLeftWidth))}}catch(h){this.context.logger.error(`Error loading border-image ${u}`)}}return}let i=0;for(const c of s){if(c.style!==0&&!Et(c.color)&&c.width>0){const u=()=>I(this,null,function*(){c.style===2?yield this.borderRenderer.renderDashedDottedBorder(c.color,c.width,i,e.curves,2):c.style===3?yield this.borderRenderer.renderDashedDottedBorder(c.color,c.width,i,e.curves,3):c.style===4?yield this.borderRenderer.renderDoubleBorder(c.color,c.width,i,e.curves):yield this.borderRenderer.renderSolidBorder(c.color,i,e.curves)}),h=e.container.legendBounds;if(i===0&&h){const f=e.container.bounds,g=h.left-f.left,m=h.left+h.width-f.left;g>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(f.left,f.top,g,f.height),this.ctx.clip(),yield u(),this.ctx.restore());const b=f.left+m,E=f.width-m;E>0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(b,f.top,E,f.height),this.ctx.clip(),yield u(),this.ctx.restore())}else yield u()}i++}})}render(e){return I(this,null,function*(){this.options.backgroundColor&&(this.ctx.fillStyle=UA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));const t=Rk(e);return yield this.renderStack(t),this.effectsRenderer.applyEffects([]),this.canvas})}renderTextClippedBackground(e){return I(this,null,function*(){var m;const t=e.container,n=t.styles,r=t.bounds;if(r.width<=0||r.height<=0)return;const s=((m=this.canvas.ownerDocument)!=null?m:document).createElement("canvas"),o=Math.ceil(r.width),a=Math.ceil(r.height);s.width=o,s.height=a;const i=s.getContext("2d");if(!i)return;const[c]=this.textRenderer.createFontStyle(n);i.font=c,i.textBaseline="alphabetic",i.textAlign="left",i.direction=n.direction===1?"rtl":"ltr";const u=nh(i,n.fontSize.number),h=new oh({ctx:i,context:this.context,canvas:s,options:{width:o,height:a,scale:1}});Et(n.backgroundColor)||(i.fillStyle=UA(n.backgroundColor),i.fillRect(0,0,o,a)),i.save(),i.translate(-r.left,-r.top),yield h.renderBackgroundImage(t),i.restore(),i.globalCompositeOperation="destination-in",i.fillStyle="#000";const f=n.writingMode,g=n.letterSpacing;for(const b of t.textNodes)for(const E of b.textBounds){const k=E.bounds.left-r.left,v=E.bounds.top-r.top+u;g>0?this.renderTextMaskWithLetterSpacing(i,E,g,k,v,f):i.fillText(E.text,k,v)}this.ctx.drawImage(s,r.left,r.top)})}renderTextMaskWithLetterSpacing(e,t,n,r,s,o){const a=gn(t.text);let i=r;for(const c of a){if(Lo(o)){e.fillText(t.text,r,s);return}e.fillText(c,i,s),i+=e.measureText(c).width+n}}};const dF=(A,e)=>{switch(A){case 0:return Po(e);case 2:return Fk(e);default:return Mo(e)}},pF=A=>A.backgroundClip.some(e=>e===3);var hF=class{constructor(A,e){this.context=A,this.options=e,this.canvas=e.canvas?e.canvas:document.createElement("canvas");const t=this.canvas.getContext("2d");if(!t)throw new Error("Failed to get 2D rendering context from canvas");this.ctx=t,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`,this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (${e.width}x${e.height} at ${e.x},${e.y}) with scale ${e.scale}`)}render(A){return I(this,null,function*(){var t;if((t=this.options.signal)!=null&&t.aborted)throw new DOMException("The operation was aborted.","AbortError");const e=yield sc(rc(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A));return this.options.backgroundColor&&(this.ctx.fillStyle=UA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas})}},fF=(gr=class{constructor({id:e,enabled:t}){this.id=e,this.enabled=t,this.start=Date.now()}debug(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug(this.id,`${this.getTime()}ms`,...e):this.info(...e))}getTime(){return Date.now()-this.start}info(...e){this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info(this.id,`${this.getTime()}ms`,...e)}warn(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn(this.id,`${this.getTime()}ms`,...e):this.info(...e))}error(...e){this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error(this.id,`${this.getTime()}ms`,...e):this.info(...e))}},gr.instances={},gr),gF=class{constructor(A,e){var t;if(this.context=A,this._options=e,this._cache=new Map,this._pendingOperations=new Map,this._deferMode=!1,this._collectedUrls=new Set,this.maxSize=(t=e.maxCacheSize)!=null?t:100,this.maxSize<1)throw new Error("Cache maxSize must be at least 1");this.maxSize>1e4&&this.context.logger.warn(`Cache maxSize ${this.maxSize} is very large and may cause memory issues. Consider using a smaller value (recommended: 100-1000).`)}startDefer(){this._deferMode=!0}preloadAll(A=10){return I(this,null,function*(){this._deferMode=!1;const e=Array.from(this._collectedUrls);if(this._collectedUrls.clear(),e.length===0)return;const t=Math.max(1,Math.min(A,100));this.context.logger.debug(`Preloading ${e.length} image(s) with concurrency ${t}`);for(let n=0;n<e.length;n+=t){const r=e.slice(n,n+t).map(s=>this._addImageWithPending(s));yield Promise.allSettled(r)}})}addImage(A){if(this._deferMode)return!this.has(A)&&(es(A)||ah(A))&&this._collectedUrls.add(A),Promise.resolve();const e=this._pendingOperations.get(A);if(e)return e;if(this.has(A)){const t=this._cache.get(A);return this._cache.delete(A),this._cache.set(A,t),Promise.resolve()}return es(A)||ah(A)?this._addImageWithPending(A):Promise.resolve()}_addImageWithPending(A){const e=this._pendingOperations.get(A);if(e)return e;const t=this._addImageInternal(A);return this._pendingOperations.set(A,t),t.finally(()=>{this._pendingOperations.delete(A)}),t}_addImageInternal(A){return I(this,null,function*(){var n;const e=(n=this._options.imageTimeout)!=null?n:15e3,t=this.withTimeout(this.loadImage(A),e,`Timed out (${e}ms) loading image`);t.catch(r=>{this.context.logger.error(`Failed to load image ${A}: ${r instanceof Error?r.message:"Unknown error"}`)}),this.set(A,t)})}withTimeout(A,e,t){if(e<=0)return A;let n;const r=new Promise((s,o)=>{n=setTimeout(()=>o(new Error(t)),e)});return Promise.race([A,r]).finally(()=>{n!==void 0&&clearTimeout(n)})}match(A){const e=this._cache.get(A);if(e)return this._cache.delete(A),this._cache.set(A,e),e.value}set(A,e){if(this._cache.has(A))this._cache.delete(A);else if(this._cache.size>=this.maxSize){const t=this._cache.keys().next().value;t!==void 0&&(this._cache.delete(t),this.context.logger.debug(`Cache: Evicted LRU entry: ${t}`))}this._cache.set(A,{value:e})}size(){return this._cache.size}getMaxSize(){return this.maxSize}clear(){this._cache.clear()}loadImage(A){return I(this,null,function*(){const e=this.context.originChecker,t=i=>e.isSameOrigin(i),n=typeof this._options.customIsSameOrigin=="function"?yield this._options.customIsSameOrigin(A,t):t(A),r=!n&&this._options.allowTaint===!1&&!Vo(A)&&!es(A)&&typeof this._options.proxy!="string",s=!Vo(A)&&(this._options.useCORS===!0||r)&&te.SUPPORT_CORS_IMAGES&&!n,o=!Vo(A)&&!n&&!es(A)&&typeof this._options.proxy=="string"&&te.SUPPORT_CORS_XHR&&!s;if(!n&&this._options.allowTaint===!1&&!Vo(A)&&!es(A)&&!o&&!s)return;let a=A;return o&&(a=yield this.proxy(a)),this.context.logger.debug(`Added image ${A.substring(0,256)}`),yield new Promise((i,c)=>{const u=new Image;u.onload=()=>i(u),u.onerror=c,(CF(a)||s)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(()=>i(u),500)})})}has(A){return this._cache.has(A)}keys(){return Promise.resolve(Array.from(this._cache.keys()))}proxy(A){const e=this._options.proxy;if(!e)throw new Error("No proxy defined");const t=A.substring(0,256);return new Promise((n,r)=>{const s=te.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=()=>{if(o.status===200)if(s==="text")n(o.response);else{const i=new FileReader;i.addEventListener("load",()=>n(i.result),!1),i.addEventListener("error",c=>r(c),!1),i.readAsDataURL(o.response)}else r(`Failed to proxy resource ${t} with status code ${o.status}`)},o.onerror=r;const a=e.indexOf("?")>-1?"&":"?";if(o.open("GET",`${e}${a}url=${encodeURIComponent(A)}&responseType=${s}`),s!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=s),this._options.imageTimeout){const i=this._options.imageTimeout;o.timeout=i,o.ontimeout=()=>r(`Timed out (${i}ms) proxying ${t}`)}o.send()})}};const BF=/^data:image\/svg\+xml/i,wF=/^data:image\/.*;base64,/i,mF=/^data:image\/.*/i,ah=A=>te.SUPPORT_SVG_DRAWING||!bF(A),Vo=A=>mF.test(A),CF=A=>wF.test(A),es=A=>A.substring(0,4)==="blob",bF=A=>A.slice(-3).toLowerCase()==="svg"||BF.test(A);var QF=class{constructor(A){if(!A||!A.document)throw new Error("Valid window object required for OriginChecker");if(!A.location||!A.location.href)throw new Error("Window object must have valid location");this.link=A.document.createElement("a"),this.origin=this.getOrigin(A.location.href)}getOrigin(A){return this.link.href=A,this.link.href=this.link.href,this.link.protocol+this.link.hostname+this.link.port}isSameOrigin(A){return this.getOrigin(A)===this.origin}getContextOrigin(){return this.origin}},yF=(_n=class{constructor(e,t,n){var r,s;this.windowBounds=t,this.instanceName=`#${_n.instanceCount++}`,this.config=n,this.logger=new fF({id:this.instanceName,enabled:e.logging}),this.originChecker=new QF(n.window),this.cache=(s=(r=e.cache)!=null?r:n.cache)!=null?s:new gF(this,e),this.onError=e.onError}},_n.instanceCount=1,_n);const Go=A=>{if(A!=null&&A.aborted)throw new DOMException("The operation was aborted.","AbortError")},UF=A=>{["scale","width","height","imageTimeout","x","y","windowWidth","windowHeight","scrollX","scrollY"].forEach(e=>{const t=A[e];if(t!=null&&typeof t!="number"){const n=Number(t);Number.isNaN(n)||(A[e]=n)}})},EF=A=>{var e,t,n;return{allowTaint:(e=A.allowTaint)!=null?e:!1,imageTimeout:(t=A.imageTimeout)!=null?t:15e3,proxy:A.proxy,useCORS:(n=A.useCORS)!=null?n:!1,customIsSameOrigin:A.customIsSameOrigin,maxCacheSize:A.maxCacheSize}},kF=(A,e,t)=>{var n,r;return F({logging:(n=A.logging)!=null?n:!0,cache:(r=A.cache)!=null?r:e.cache},t)},FF=800,vF=600,ch=0,_F=(A,e)=>{var n,r,s,o,a,i,c,u;const t=e;return{windowWidth:(r=(n=A.windowWidth)!=null?n:t.innerWidth)!=null?r:FF,windowHeight:(o=(s=A.windowHeight)!=null?s:t.innerHeight)!=null?o:vF,scrollX:(i=(a=A.scrollX)!=null?a:t.pageXOffset)!=null?i:ch,scrollY:(u=(c=A.scrollY)!=null?c:t.pageYOffset)!=null?u:ch}},xF=(A,e,t)=>{var n,r;return{allowTaint:(n=A.allowTaint)!=null?n:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,iframeContainer:A.iframeContainer,inlineImages:t,copyStyles:t,cspNonce:(r=A.cspNonce)!=null?r:e.cspNonce}},SF=(A,e,t,n,r,s,o)=>{var a,i,c,u,h,f;return{canvas:A.canvas,backgroundColor:e,signal:A.signal,scale:(i=(a=A.scale)!=null?a:o)!=null?i:1,x:((c=A.x)!=null?c:0)+t,y:((u=A.y)!=null?u:0)+n,width:(h=A.width)!=null?h:Math.ceil(r),height:(f=A.height)!=null?f:Math.ceil(s),imageSmoothing:A.imageSmoothing,imageSmoothingQuality:A.imageSmoothingQuality}},IF=(A,e,t)=>{const n=e.ownerDocument,r=n.documentElement?Yn(A,getComputedStyle(n.documentElement).backgroundColor):ut.TRANSPARENT,s=n.body?Yn(A,getComputedStyle(n.body).backgroundColor):ut.TRANSPARENT,o=typeof t=="string"?Yn(A,t):t===null?ut.TRANSPARENT:4294967295;return e===n.documentElement?Et(r)?Et(s)?o:s:r:o},TF=(A,e,t)=>I(null,null,function*(){var N,W,K,nA,hA,_A;if(UF(e),!e.skipValidation){const jA=e.validator||Kb(),he=jA.validateElement(A);if(!he.valid)throw new Error(he.error);const Ye=jA.validateOptions(e);if(!Ye.valid)throw new Error(`Invalid options: ${Ye.error}`)}if(!A||typeof A!="object")throw new Error("Invalid element provided as first argument");const n=A.ownerDocument;if(!n)throw new Error("Element is not attached to a Document");const r=n.defaultView;if(!r)throw new Error("Document is not attached to a Window");const s=kF(e,t,EF(e)),o=_F(e,r),a=new ve(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),i=new yF(s,a,t),c=(W=(N=e.enablePerformanceMonitoring)!=null?N:e.logging)!=null?W:!1,u=new $b(i,c);u.start("total",{width:o.windowWidth,height:o.windowHeight});const h=e.signal;Go(h);const f=(K=e.foreignObjectRendering)!=null?K:!1,g=xF(e,t,f);i.logger.debug(`Starting document clone with size ${a.width}x${a.height} scrolled to ${-a.left},${-a.top}`),u.start("clone");const m=new Va(i,A,g),b=m.clonedReferenceElement;if(!b)throw new Error("Unable to find element in cloned iframe");const E=yield m.toIFrame(n,a);u.end("clone"),h!=null&&h.aborted&&(((nA=e.removeContainer)==null||nA)&&Va.destroy(E),Go(h));const{width:k,height:v,left:y,top:U}=La(b)||Vy(b)?zb(b.ownerDocument):Lr(i,b),x=IF(i,b,e.backgroundColor),R=SF(e,x,y,U,k,v,(hA=r.devicePixelRatio)!=null?hA:1);let H,X;try{return f?(i.logger.debug("Document cloned, using foreign object rendering"),u.start("render-foreignobject"),H=yield new hF(i,R).render(b),u.end("render-foreignobject")):(i.logger.debug(`Document cloned, element located at ${y},${U} with size ${k}x${v} using computed rendering`),i.logger.debug("Starting DOM parsing"),u.start("parse"),Go(h),i.cache.startDefer(),X=Zp(i,b),u.end("parse"),u.start("preload"),yield i.cache.preloadAll(),u.end("preload"),x===X.styles.backgroundColor&&(X.styles.backgroundColor=ut.TRANSPARENT),i.logger.debug(`Starting renderer for element at ${R.x},${R.y} with size ${R.width}x${R.height}`),u.start("render"),Go(h),H=yield new uF(i,R).render(X),u.end("render")),u.start("cleanup"),((_A=e.removeContainer)==null||_A)&&(Va.destroy(E)||i.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.end("cleanup"),u.end("total"),i.logger.debug("Finished rendering"),c&&u.logSummary(),H}finally{X&&X.restoreTree()}}),HF=(A,e={},t)=>TF(A,e,Mb.fromElement(A,{cspNonce:e.cspNonce,cache:e.cache}));function LF(A){return I(this,null,function*(){if(!(A instanceof HTMLElement))return{blob:null,error:null};try{const e=yield HF(A,{backgroundColor:"#ffffff",logging:!1,useCORS:!0,scale:1,ignoreElements:n=>n instanceof Element&&n.hasAttribute("data-ap-sdk"),onclone:(n,r)=>{try{$i(r)}catch(s){}}}),t=yield RF(e);return t?{blob:t,error:null}:{blob:null,error:"canvas.toBlob produced no image data"}}catch(e){return console.error("[Agent Platform SDK] screenshot capture failed:",e),{blob:null,error:e instanceof Error?e.message:String(e)}}})}function RF(A){return new Promise(e=>{A.toBlob(t=>e(t),"image/png")})}const DF={click:"🖱",inputText:"⌨",scroll:"↕",keypress:"⌤"};function OF(A,e){const{needsCredentials:t,canCreateTask:n,canCreatePlanning:r,captureType:s,hasOnReselect:o,hasOnAddAnother:a}=e;return`
1670
1664
  <div class="ap-sdk-panel__header">
1671
1665
  <span class="ap-sdk-panel__title">
1672
1666
  <span class="ap-sdk-panel__logo">AP</span>
@@ -1680,7 +1674,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1680
1674
  </div>
1681
1675
  <div class="ap-sdk-pick-list" data-ap-pick-list style="display:none"></div>
1682
1676
  <div class="ap-sdk-panel__context" data-ap-context>
1683
- ${oh(A)}
1677
+ ${lh(A)}
1684
1678
  </div>
1685
1679
  <div class="ap-sdk-panel__screenshot" data-ap-screenshot style="display:none"></div>
1686
1680
  <div class="ap-sdk-panel__pick-actions" data-ap-pick-actions>
@@ -1729,61 +1723,66 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1729
1723
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-submit>Submit</button>
1730
1724
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--ghost" data-ap-cancel>Cancel</button>
1731
1725
  </div>
1732
- `}function oh(A){var e,t;return(e=A.interactionSteps)!=null&&e.length?`
1726
+ `}function lh(A){var e,t;return(e=A.interactionSteps)!=null&&e.length?`
1733
1727
  <div class="ap-sdk-panel__context-label">Recorded steps (${A.interactionSteps.length})</div>
1734
1728
  <div class="ap-sdk-panel__context-steps">
1735
1729
  ${A.interactionSteps.map(n=>`
1736
1730
  <div class="ap-sdk-panel__context-step">
1737
- <span class="ap-sdk-panel__context-step-icon">${HF[n.action]}</span>
1738
- <span class="ap-sdk-panel__context-step-text">${we(n.description)}</span>
1731
+ <span class="ap-sdk-panel__context-step-icon">${DF[n.action]}</span>
1732
+ <span class="ap-sdk-panel__context-step-text">${me(n.description)}</span>
1739
1733
  </div>
1740
1734
  `).join("")}
1741
1735
  </div>
1742
1736
  `:`
1743
1737
  <div class="ap-sdk-panel__context-label">Captured element</div>
1744
- <div class="ap-sdk-panel__context-text" title="${we((t=A.elementText)!=null?t:"")}">${we(A.elementText||"(no text)")}</div>
1745
- ${A.cssSelector?`<div class="ap-sdk-panel__context-selector" title="${we(A.cssSelector)}">${we(A.cssSelector)}</div>`:""}
1746
- `}function Vt(A,e,t){if(!e){A.style.display="none",A.textContent="",A.innerHTML="";return}A.style.display="block",A.className=`ap-sdk-panel__status ap-sdk-panel__status--${e}`,A.textContent=t}function DF(A,e,t,n,r){const s=e==="task"?"Task":"Planning",o=e==="task"?"Task created successfully!":"Planning session created!",a=e==="task"?"View task →":"View planning session →",i=t.length>55?`${t.slice(0,52)}…`:t;A.style.display="block",A.className="ap-sdk-panel__status",A.innerHTML=`
1738
+ <div class="ap-sdk-panel__context-text" title="${me((t=A.elementText)!=null?t:"")}">${me(A.elementText||"(no text)")}</div>
1739
+ ${A.cssSelector?`<div class="ap-sdk-panel__context-selector" title="${me(A.cssSelector)}">${me(A.cssSelector)}</div>`:""}
1740
+ `}function Ft(A,e,t){if(!e){A.style.display="none",A.textContent="",A.innerHTML="";return}A.style.display="block",A.className=`ap-sdk-panel__status ap-sdk-panel__status--${e}`,A.textContent=t}function PF(A,e,t,n,r){const s=e==="task"?"Task":"Planning",o=e==="task"?"Task created successfully!":"Planning session created!",a=e==="task"?"View task →":"View planning session →",i=t.length>55?`${t.slice(0,52)}…`:t;A.style.display="block",A.className="ap-sdk-panel__status",A.innerHTML=`
1747
1741
  <div class="ap-sdk-success-card">
1748
1742
  <svg class="ap-sdk-success-check" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
1749
1743
  <circle class="ap-sdk-success-check__circle" cx="24" cy="24" r="22"/>
1750
1744
  <path class="ap-sdk-success-check__tick" d="M14 24l7 7 13-14"/>
1751
1745
  </svg>
1752
- <p class="ap-sdk-success-headline">${we(o)}</p>
1746
+ <p class="ap-sdk-success-headline">${me(o)}</p>
1753
1747
  <div class="ap-sdk-success-meta">
1754
- <span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${e}">${we(s)}</span>
1755
- <span class="ap-sdk-success-title" title="${we(t)}">${we(i)}</span>
1748
+ <span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${e}">${me(s)}</span>
1749
+ <span class="ap-sdk-success-title" title="${me(t)}">${me(i)}</span>
1756
1750
  </div>
1757
1751
  <div class="ap-sdk-success-actions">
1758
- <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-success-view>${we(a)}</button>
1752
+ <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-success-view>${me(a)}</button>
1759
1753
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--ghost" data-ap-success-close>Close</button>
1760
1754
  </div>
1761
1755
  </div>
1762
- `,A.querySelector("[data-ap-success-view]").addEventListener("click",()=>window.open(n,"_blank","noopener,noreferrer")),A.querySelector("[data-ap-success-close]").addEventListener("click",r)}function cc(A,e){A.querySelectorAll("button, input, textarea, select").forEach(t=>{t.disabled=e})}function we(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function RF(A,e){let t=null,n=null;const r=()=>{if(A.screenshotCapturing){e.style.display="block",e.className="ap-sdk-panel__screenshot",e.innerHTML='<div class="ap-sdk-screenshot__status">📸 Capturing screenshot…</div>';return}if(!A.currentScreenshotBlob){A.screenshotError?(e.style.display="block",e.className="ap-sdk-panel__screenshot",e.innerHTML=`
1756
+ `,A.querySelector("[data-ap-success-view]").addEventListener("click",()=>window.open(n,"_blank","noopener,noreferrer")),A.querySelector("[data-ap-success-close]").addEventListener("click",r)}function dc(A,e){A.querySelectorAll("button, input, textarea, select").forEach(t=>{t.disabled=e})}function me(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function MF(A,e){let t=null,n=null;const r=()=>{if(A.screenshotCapturing){e.style.display="block",e.className="ap-sdk-panel__screenshot",e.innerHTML='<div class="ap-sdk-screenshot__status">📸 Capturing screenshot…</div>';return}if(!A.currentScreenshotBlob){if(A.screenshotError){e.style.display="block",e.className="ap-sdk-panel__screenshot",e.innerHTML=`
1763
1757
  <div class="ap-sdk-screenshot__status ap-sdk-screenshot__status--muted">Screenshot unavailable for this element.</div>
1764
- <div class="ap-sdk-screenshot__error">${we(A.screenshotError)}</div>
1765
- `):(e.style.display="none",e.innerHTML="");return}t&&URL.revokeObjectURL(t),t=URL.createObjectURL(A.currentScreenshotBlob),e.style.display="block",e.className=`ap-sdk-panel__screenshot${A.screenshotIncluded?"":" ap-sdk-screenshot--excluded"}`,e.innerHTML=`
1758
+ <div class="ap-sdk-screenshot__error">${me(A.screenshotError)}</div>
1759
+ `;return}if(!A.currentPickedEl){e.style.display="none",e.innerHTML="";return}e.style.display="block",e.className="ap-sdk-panel__screenshot ap-sdk-screenshot--excluded",e.innerHTML=`
1760
+ <label class="ap-sdk-screenshot__toggle">
1761
+ <input type="checkbox" data-ap-screenshot-include />
1762
+ Attach a screenshot of the selected element
1763
+ </label>
1764
+ `,e.querySelector("[data-ap-screenshot-include]").addEventListener("change",a=>{a.target.checked&&A.currentPickedEl&&s(A.currentPickedEl)});return}t&&URL.revokeObjectURL(t),t=URL.createObjectURL(A.currentScreenshotBlob),e.style.display="block",e.className=`ap-sdk-panel__screenshot${A.screenshotIncluded?"":" ap-sdk-screenshot--excluded"}`,e.innerHTML=`
1766
1765
  <label class="ap-sdk-screenshot__toggle">
1767
1766
  <input type="checkbox" data-ap-screenshot-include ${A.screenshotIncluded?"checked":""} />
1768
1767
  Attach a screenshot of the selected element
1769
1768
  </label>
1770
1769
  <img class="ap-sdk-screenshot__thumb" src="${t}" alt="Screenshot of the selected element" />
1771
- `,e.querySelector("[data-ap-screenshot-include]").addEventListener("change",o=>{A.screenshotIncluded=o.target.checked,e.classList.toggle("ap-sdk-screenshot--excluded",!A.screenshotIncluded)})};return{captureScreenshotFor:o=>{const a=Symbol();n=a,A.screenshotCapturing=!0,A.currentScreenshotBlob=null,A.screenshotIncluded=!1,A.screenshotError=null,r(),IF(o).then(({blob:i,error:c})=>{n===a&&(A.currentScreenshotBlob=i,A.screenshotCapturing=!1,A.screenshotError=i?null:c!=null?c:"Unknown error",i||(A.screenshotIncluded=!1),r())})},renderScreenshotUi:r,invalidateInFlightCapture:()=>{n=null},cleanup:()=>{t&&(URL.revokeObjectURL(t),t=null)}}}function OF({state:A,els:e,screenshotCtl:t,defaultCaptureType:n,updateHighlight:r,onReselect:s,onAddAnother:o}){const{contextEl:a,pickListEl:i,pickActionsEl:c,noteEl:u,addAnotherBtn:h,selectParentBtn:f,reselectBtn:g,clearSelectionsBtn:m,typeButtons:b,allowSubmitCheckbox:U,automateOptionsEl:E,statusEl:v}=e,F=()=>{Db({captureType:A.captureType,note:u.value,completedPicks:A.completedPicks.map(({ctx:K,instruction:G})=>({ctx:K,instruction:G})),allowSubmit:A.allowSubmit,currentCtx:A.currentCtx})},y=K=>{K?(a.innerHTML=oh(K),u.disabled=!1,u.placeholder="Describe the task or planning session…",setTimeout(()=>u.focus(),50)):(a.innerHTML=`
1770
+ `,e.querySelector("[data-ap-screenshot-include]").addEventListener("change",a=>{A.screenshotIncluded=a.target.checked,e.classList.toggle("ap-sdk-screenshot--excluded",!A.screenshotIncluded)})},s=a=>{const i=Symbol();n=i,A.screenshotCapturing=!0,A.currentScreenshotBlob=null,A.screenshotIncluded=!1,A.screenshotError=null,r(),LF(a).then(({blob:c,error:u})=>{n===i&&(A.currentScreenshotBlob=c,A.screenshotCapturing=!1,A.screenshotError=c?null:u!=null?u:"Unknown error",A.screenshotIncluded=!!c,r())})};return{handleNewPick:a=>{if(A.screenshotIncluded){s(a);return}A.currentScreenshotBlob=null,A.screenshotError=null,r()},renderScreenshotUi:r,invalidateInFlightCapture:()=>{n=null},cleanup:()=>{t&&(URL.revokeObjectURL(t),t=null)}}}function NF({state:A,els:e,screenshotCtl:t,defaultCaptureType:n,updateHighlight:r,onReselect:s,onAddAnother:o}){const{contextEl:a,pickListEl:i,pickActionsEl:c,noteEl:u,addAnotherBtn:h,selectParentBtn:f,reselectBtn:g,clearSelectionsBtn:m,typeButtons:b,allowSubmitCheckbox:E,automateOptionsEl:k,statusEl:v}=e,y=()=>{Pb({captureType:A.captureType,note:u.value,completedPicks:A.completedPicks.map(({ctx:N,instruction:W})=>({ctx:N,instruction:W})),allowSubmit:A.allowSubmit,currentCtx:A.currentCtx})},U=N=>{N?(a.innerHTML=lh(N),u.disabled=!1,u.placeholder="Describe the task or planning session…",setTimeout(()=>u.focus(),50)):(a.innerHTML=`
1772
1771
  <div class="ap-sdk-panel__context-label">Next element</div>
1773
1772
  <div class="ap-sdk-panel__context-text ap-sdk-awaiting-pick">👆 Hover and click any element on the page</div>
1774
- `,u.disabled=!0,u.placeholder="Pick an element to continue…")},_=()=>{if(A.completedPicks.length===0){i.style.display="none",i.innerHTML="";return}i.style.display="block",i.innerHTML=A.completedPicks.map((K,G)=>{var W;return`
1775
- <div class="ap-sdk-pick-entry" data-pick-index="${G}">
1773
+ `,u.disabled=!0,u.placeholder="Pick an element to continue…")},x=()=>{if(A.completedPicks.length===0){i.style.display="none",i.innerHTML="";return}i.style.display="block",i.innerHTML=A.completedPicks.map((N,W)=>{var K;return`
1774
+ <div class="ap-sdk-pick-entry" data-pick-index="${W}">
1776
1775
  <div class="ap-sdk-pick-entry__header">
1777
- <span class="ap-sdk-pick-entry__number">${G+1}</span>
1778
- <span class="ap-sdk-pick-entry__element" title="${we((W=K.ctx.elementText)!=null?W:"")}">${we(K.ctx.elementText||"(no text)")}</span>
1779
- <button class="ap-sdk-pick-entry__remove" data-ap-remove="${G}" aria-label="Remove pick ${G+1}">×</button>
1776
+ <span class="ap-sdk-pick-entry__number">${W+1}</span>
1777
+ <span class="ap-sdk-pick-entry__element" title="${me((K=N.ctx.elementText)!=null?K:"")}">${me(N.ctx.elementText||"(no text)")}</span>
1778
+ <button class="ap-sdk-pick-entry__remove" data-ap-remove="${W}" aria-label="Remove pick ${W+1}">×</button>
1780
1779
  </div>
1781
- <div class="ap-sdk-pick-entry__instruction">${we(K.instruction)}</div>
1780
+ <div class="ap-sdk-pick-entry__instruction">${me(N.instruction)}</div>
1782
1781
  </div>
1783
- `}).join(""),i.querySelectorAll("[data-ap-remove]").forEach(K=>{K.addEventListener("click",()=>{const G=parseInt(K.dataset.apRemove,10);A.completedPicks.splice(G,1),_(),F()})})},R=()=>{if(!A.currentPickedEl){c.style.display="none";return}c.style.display="",f.disabled=!A.currentPickedEl.parentElement||A.awaitingPick,g&&(g.disabled=A.awaitingPick)},H=()=>{h&&(h.disabled=!u.value.trim()||A.submitting||A.awaitingPick)},z=(K,G)=>{A.currentCtx=K,A.currentPickedEl=G,y(K),r(G),R(),F()};return R(),m.addEventListener("click",()=>{A.completedPicks=[],A.allowSubmit=!1,A.captureType=n,u.value="",U.checked=!1,b.forEach(K=>K.classList.toggle("ap-sdk-active",K.dataset.apType===A.captureType)),E.style.display="none",_(),ia(),Vt(v,null,""),H(),u.focus()}),f.addEventListener("click",()=>{var G;const K=(G=A.currentPickedEl)==null?void 0:G.parentElement;K&&(z(bl(K),K),t.captureScreenshotFor(K))}),g&&s&&g.addEventListener("click",()=>{if(A.awaitingPick)return;const K=A.currentCtx,G=A.currentPickedEl,W=A.currentScreenshotBlob,sA=A.screenshotIncluded,lA=A.screenshotError;A.awaitingPick=!0,R(),H(),y(null),t.invalidateInFlightCapture(),A.screenshotCapturing=!1,A.currentScreenshotBlob=null,A.screenshotError=null,t.renderScreenshotUi(),s((_A,Ce)=>{A.awaitingPick=!1,z(_A,Ce),t.captureScreenshotFor(Ce),H()},()=>{A.awaitingPick=!1,G&&z(K,G),A.currentScreenshotBlob=W,A.screenshotIncluded=sA,A.screenshotError=lA,t.renderScreenshotUi(),H()})}),h&&o&&(u.addEventListener("input",H),h.addEventListener("click",()=>{const K=u.value.trim();!K||A.awaitingPick||(A.completedPicks.push({ctx:A.currentCtx,instruction:K,screenshotBlob:A.screenshotIncluded?A.currentScreenshotBlob:null}),_(),u.value="",A.awaitingPick=!0,h.disabled=!0,R(),y(null),t.invalidateInFlightCapture(),A.screenshotCapturing=!1,A.currentScreenshotBlob=null,A.screenshotError=null,t.renderScreenshotUi(),F(),o((G,W)=>{A.awaitingPick=!1,z(G,W),t.captureScreenshotFor(W),H()}))})),{persistDraft:F,renderPickList:_}}function PF(A,e){A.style.display="block",A.className="ap-sdk-panel__status ap-sdk-panel__status--error",A.innerHTML=`
1782
+ `}).join(""),i.querySelectorAll("[data-ap-remove]").forEach(N=>{N.addEventListener("click",()=>{const W=parseInt(N.dataset.apRemove,10);A.completedPicks.splice(W,1),x(),y()})})},R=()=>{if(!A.currentPickedEl){c.style.display="none";return}c.style.display="",f.disabled=!A.currentPickedEl.parentElement||A.awaitingPick,g&&(g.disabled=A.awaitingPick)},H=()=>{h&&(h.disabled=!u.value.trim()||A.submitting||A.awaitingPick)},X=(N,W)=>{A.currentCtx=N,A.currentPickedEl=W,U(N),r(W),R(),y()};return R(),m.addEventListener("click",()=>{A.completedPicks=[],A.allowSubmit=!1,A.captureType=n,u.value="",E.checked=!1,b.forEach(N=>N.classList.toggle("ap-sdk-active",N.dataset.apType===A.captureType)),k.style.display="none",x(),la(),Ft(v,null,""),H(),u.focus()}),f.addEventListener("click",()=>{var W;const N=(W=A.currentPickedEl)==null?void 0:W.parentElement;N&&(X(Ul(N),N),t.handleNewPick(N))}),g&&s&&g.addEventListener("click",()=>{if(A.awaitingPick)return;const N=A.currentCtx,W=A.currentPickedEl,K=A.currentScreenshotBlob,nA=A.screenshotIncluded,hA=A.screenshotError;A.awaitingPick=!0,R(),H(),U(null),t.invalidateInFlightCapture(),A.screenshotCapturing=!1,A.currentScreenshotBlob=null,A.screenshotError=null,t.renderScreenshotUi(),s((_A,jA)=>{A.awaitingPick=!1,X(_A,jA),t.handleNewPick(jA),H()},()=>{A.awaitingPick=!1,W&&X(N,W),A.currentScreenshotBlob=K,A.screenshotIncluded=nA,A.screenshotError=hA,t.renderScreenshotUi(),H()})}),h&&o&&(u.addEventListener("input",H),h.addEventListener("click",()=>{const N=u.value.trim();!N||A.awaitingPick||(A.completedPicks.push({ctx:A.currentCtx,instruction:N,screenshotBlob:A.screenshotIncluded?A.currentScreenshotBlob:null}),x(),u.value="",A.awaitingPick=!0,h.disabled=!0,R(),U(null),t.invalidateInFlightCapture(),A.screenshotCapturing=!1,A.currentScreenshotBlob=null,A.screenshotError=null,t.renderScreenshotUi(),y(),o((W,K)=>{A.awaitingPick=!1,X(W,K),t.handleNewPick(K),H()}))})),{persistDraft:y,renderPickList:x}}function KF(A,e){A.style.display="block",A.className="ap-sdk-panel__status ap-sdk-panel__status--error",A.innerHTML=`
1784
1783
  <p>Your session expired.</p>
1785
1784
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-reconnect type="button">Reconnect</button>
1786
- `;const t=A.querySelector("[data-ap-reconnect]");t.addEventListener("click",()=>I(null,null,function*(){t.disabled=!0,t.textContent="Connecting…";try{yield e()}catch(n){Vt(A,"error",n instanceof Error?n.message:"Could not reconnect — please try again.")}}))}let Gt=null;function MF(){const A=new Uint32Array(4);return crypto.getRandomValues(A),Array.from(A,e=>e.toString(16)).join("")}function lc(A){if(Gt){const a=Gt;a.cleanup(),a.popup.closed||a.popup.close(),Gt=null}const e=A.replace(/\/+$/,""),t=new URL(e).origin,n=MF(),r=window.location.origin,s=`${e}/oauth/authorize?origin=${encodeURIComponent(r)}&state=${encodeURIComponent(n)}`,o=window.open(s,"ap-sdk-oauth","width=480,height=640");return o?new Promise((a,i)=>{let c=!1;function u(){window.removeEventListener("message",h),clearInterval(f),(Gt==null?void 0:Gt.popup)===o&&(Gt=null)}function h(g){if(g.origin!==t)return;const m=g.data;!m||m.type!=="ap-sdk-oauth"||m.state!==n||!m.code||(c=!0,u(),a({code:m.code}))}window.addEventListener("message",h);const f=window.setInterval(()=>{o.closed&&(u(),c||i(new Error("Connection cancelled.")))},500);Gt={popup:o,cleanup:u}}):Promise.reject(new Error("Popup blocked — please allow popups for this site and try again."))}const KF="https://agent-platform.tung.engineering",uc="ap-sdk-config";function NF(){try{const A=sessionStorage.getItem(uc);if(!A)return null;const e=JSON.parse(A);return!(e!=null&&e.backendUrl)||!(e!=null&&e.token)||!(e!=null&&e.projectCode)||!(e!=null&&e.expiresAt)?null:new Date(e.expiresAt).getTime()<=Date.now()?(ih(),null):e}catch(A){return null}}function Go(A){sessionStorage.setItem(uc,JSON.stringify(A)),zF({backendUrl:A.backendUrl,projectCode:A.projectCode})}function ih(){sessionStorage.removeItem(uc)}const ah="ap-sdk-last-connection";function $F(){try{const A=localStorage.getItem(ah);if(!A)return null;const e=JSON.parse(A);return!(e!=null&&e.backendUrl)||!(e!=null&&e.projectCode)?null:e}catch(A){return null}}function zF(A){try{localStorage.setItem(ah,JSON.stringify(A))}catch(e){}}let rA=null,es=null;function Et(){rA&&st(rA),rA==null||rA.remove(),rA=null,es==null||es(),es=null}function dc(A){rA&&Et(),rA=document.createElement("div"),rA.className="ap-sdk-panel",rA.setAttribute("data-ap-sdk","1"),rA.setAttribute("role","dialog"),rA.setAttribute("aria-modal","true"),rA.setAttribute("aria-label","Connect to Agent Platform");const e=$F();e?t(e):n(KF),document.body.appendChild(rA),rt(rA),es=Tr(rA,Ir);function t(s){if(!rA)return;rA.innerHTML=`
1785
+ `;const t=A.querySelector("[data-ap-reconnect]");t.addEventListener("click",()=>I(null,null,function*(){t.disabled=!0,t.textContent="Connecting…";try{yield e()}catch(n){Ft(A,"error",n instanceof Error?n.message:"Could not reconnect — please try again.")}}))}let Wt=null;function $F(){const A=new Uint32Array(4);return crypto.getRandomValues(A),Array.from(A,e=>e.toString(16)).join("")}function pc(A){if(Wt){const a=Wt;a.cleanup(),a.popup.closed||a.popup.close(),Wt=null}const e=A.replace(/\/+$/,""),t=new URL(e).origin,n=$F(),r=window.location.origin,s=`${e}/oauth/authorize?origin=${encodeURIComponent(r)}&state=${encodeURIComponent(n)}`,o=window.open(s,"ap-sdk-oauth","width=480,height=640");return o?new Promise((a,i)=>{let c=!1;function u(){window.removeEventListener("message",h),clearInterval(f),(Wt==null?void 0:Wt.popup)===o&&(Wt=null)}function h(g){if(g.origin!==t)return;const m=g.data;!m||m.type!=="ap-sdk-oauth"||m.state!==n||!m.code||(c=!0,u(),a({code:m.code}))}window.addEventListener("message",h);const f=window.setInterval(()=>{o.closed&&(u(),c||i(new Error("Connection cancelled.")))},500);Wt={popup:o,cleanup:u}}):Promise.reject(new Error("Popup blocked — please allow popups for this site and try again."))}const zF="https://agent-platform.tung.engineering",hc="ap-sdk-config";function VF(){try{const A=sessionStorage.getItem(hc);if(!A)return null;const e=JSON.parse(A);return!(e!=null&&e.backendUrl)||!(e!=null&&e.token)||!(e!=null&&e.projectCode)||!(e!=null&&e.expiresAt)?null:new Date(e.expiresAt).getTime()<=Date.now()?(uh(),null):e}catch(A){return null}}function Zo(A){sessionStorage.setItem(hc,JSON.stringify(A)),ZF({backendUrl:A.backendUrl,projectCode:A.projectCode})}function uh(){sessionStorage.removeItem(hc)}const dh="ap-sdk-last-connection";function GF(){try{const A=localStorage.getItem(dh);if(!A)return null;const e=JSON.parse(A);return!(e!=null&&e.backendUrl)||!(e!=null&&e.projectCode)?null:e}catch(A){return null}}function ZF(A){try{localStorage.setItem(dh,JSON.stringify(A))}catch(e){}}let sA=null,ts=null;function vt(){sA&&it(sA),sA==null||sA.remove(),sA=null,ts==null||ts(),ts=null}function fc(A){sA&&vt(),sA=document.createElement("div"),sA.className="ap-sdk-panel",sA.setAttribute("data-ap-sdk","1"),sA.setAttribute("role","dialog"),sA.setAttribute("aria-modal","true"),sA.setAttribute("aria-label","Connect to Agent Platform");const e=GF();e?t(e):n(zF),document.body.appendChild(sA),ot(sA),ts=Hr(sA,Tr);function t(s){if(!sA)return;sA.innerHTML=`
1787
1786
  <div class="ap-sdk-panel__header">
1788
1787
  <span class="ap-sdk-panel__title">
1789
1788
  <span class="ap-sdk-panel__logo">AP</span>
@@ -1793,7 +1792,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1793
1792
  </div>
1794
1793
  <div class="ap-sdk-panel__body">
1795
1794
  <p class="ap-sdk-config-hint">
1796
- Reconnect to <strong>${pc(s.backendUrl)}</strong>. You'll be asked to
1795
+ Reconnect to <strong>${gc(s.backendUrl)}</strong>. You'll be asked to
1797
1796
  approve this connection on Agent Platform's own sign-in page.
1798
1797
  </p>
1799
1798
  </div>
@@ -1802,7 +1801,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1802
1801
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-reconnect>Reconnect</button>
1803
1802
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-use-different>Use a different connection</button>
1804
1803
  </div>
1805
- `;const o=rA.querySelector("[data-ap-cfg-status]"),a=rA.querySelector("[data-ap-reconnect]");rA.querySelector("[data-ap-close]").addEventListener("click",()=>{Et()}),rA.querySelector("[data-ap-use-different]").addEventListener("click",()=>n(s.backendUrl)),a.addEventListener("click",()=>I(null,null,function*(){a.disabled=!0,a.textContent="Connecting…",Zt(o,null,"");try{const{code:i}=yield lc(s.backendUrl),{token:c,expiresAt:u}=yield ra({backendUrl:s.backendUrl},i,window.location.origin),h={backendUrl:s.backendUrl,token:c},f=yield Iu(h);if(f.length===0){Zt(o,"error","No projects found — check your account permissions."),a.disabled=!1,a.textContent="Reconnect";return}const g=f.find(U=>U.key===s.projectCode);if(g){Et(),A({backendUrl:s.backendUrl,token:c,projectCode:g.key,expiresAt:u});return}const m=ku(window.location.href,f),b=m?f.find(U=>U.id===m):void 0;b?(Et(),A({backendUrl:s.backendUrl,token:c,projectCode:b.key,expiresAt:u})):r(s.backendUrl,c,u,f)}catch(i){Zt(o,"error",`Could not connect — ${i instanceof Error?i.message:"please try again"}`),a.disabled=!1,a.textContent="Reconnect"}}))}function n(s){if(!rA)return;rA.innerHTML=`
1804
+ `;const o=sA.querySelector("[data-ap-cfg-status]"),a=sA.querySelector("[data-ap-reconnect]");sA.querySelector("[data-ap-close]").addEventListener("click",()=>{vt()}),sA.querySelector("[data-ap-use-different]").addEventListener("click",()=>n(s.backendUrl)),a.addEventListener("click",()=>I(null,null,function*(){a.disabled=!0,a.textContent="Connecting…",Jt(o,null,"");try{const{code:i}=yield pc(s.backendUrl),{token:c,expiresAt:u}=yield oa({backendUrl:s.backendUrl},i,window.location.origin),h={backendUrl:s.backendUrl,token:c},f=yield Lu(h);if(f.length===0){Jt(o,"error","No projects found — check your account permissions."),a.disabled=!1,a.textContent="Reconnect";return}const g=f.find(E=>E.key===s.projectCode);if(g){vt(),A({backendUrl:s.backendUrl,token:c,projectCode:g.key,expiresAt:u});return}const m=_u(window.location.href,f),b=m?f.find(E=>E.id===m):void 0;b?(vt(),A({backendUrl:s.backendUrl,token:c,projectCode:b.key,expiresAt:u})):r(s.backendUrl,c,u,f)}catch(i){Jt(o,"error",`Could not connect — ${i instanceof Error?i.message:"please try again"}`),a.disabled=!1,a.textContent="Reconnect"}}))}function n(s){if(!sA)return;sA.innerHTML=`
1806
1805
  <div class="ap-sdk-panel__header">
1807
1806
  <span class="ap-sdk-panel__title">
1808
1807
  <span class="ap-sdk-panel__logo">AP</span>
@@ -1815,7 +1814,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1815
1814
  <label class="ap-sdk-panel__label" for="ap-sdk-cfg-url">Backend URL</label>
1816
1815
  <input id="ap-sdk-cfg-url" class="ap-sdk-panel__input" type="url"
1817
1816
  placeholder="https://your-platform.example.com"
1818
- value="${ch(s)}" autocomplete="off" data-ap-cfg-url />
1817
+ value="${ph(s)}" autocomplete="off" data-ap-cfg-url />
1819
1818
  </div>
1820
1819
  <p class="ap-sdk-config-hint">
1821
1820
  You'll be asked to approve this connection on Agent Platform's own sign-in page.
@@ -1826,7 +1825,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1826
1825
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-connect>Connect via Agent Platform</button>
1827
1826
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-cancel>Cancel</button>
1828
1827
  </div>
1829
- `;const o=rA.querySelector("[data-ap-cfg-url]"),a=rA.querySelector("[data-ap-cfg-status]"),i=rA.querySelector("[data-ap-connect]");rA.querySelector("[data-ap-close]").addEventListener("click",()=>{Et()}),rA.querySelector("[data-ap-cancel]").addEventListener("click",()=>{Et()}),i.addEventListener("click",()=>I(null,null,function*(){const c=o.value.trim();if(!c){Zt(a,"error","Backend URL is required.");return}i.disabled=!0,i.textContent="Connecting…",Zt(a,null,"");try{const{code:u}=yield lc(c),{token:h,expiresAt:f}=yield ra({backendUrl:c},u,window.location.origin),m=yield Iu({backendUrl:c,token:h});if(m.length===0){Zt(a,"error","No projects found — check your account permissions."),i.disabled=!1,i.textContent="Connect via Agent Platform";return}const b=ku(window.location.href,m),U=b?m.find(E=>E.id===b):void 0;if(U){Et(),A({backendUrl:c,token:h,projectCode:U.key,expiresAt:f});return}r(c,h,f,m)}catch(u){Zt(a,"error",`Could not connect — ${u instanceof Error?u.message:"please try again"}`),i.disabled=!1,i.textContent="Connect via Agent Platform"}})),setTimeout(()=>o.focus(),50)}function r(s,o,a,i){if(!rA)return;const c=i.map(f=>`<option value="${ch(f.key)}"${f.key===(e==null?void 0:e.projectCode)?" selected":""}>${pc(f.name)} (${pc(f.key)})</option>`).join("");rA.innerHTML=`
1828
+ `;const o=sA.querySelector("[data-ap-cfg-url]"),a=sA.querySelector("[data-ap-cfg-status]"),i=sA.querySelector("[data-ap-connect]");sA.querySelector("[data-ap-close]").addEventListener("click",()=>{vt()}),sA.querySelector("[data-ap-cancel]").addEventListener("click",()=>{vt()}),i.addEventListener("click",()=>I(null,null,function*(){const c=o.value.trim();if(!c){Jt(a,"error","Backend URL is required.");return}i.disabled=!0,i.textContent="Connecting…",Jt(a,null,"");try{const{code:u}=yield pc(c),{token:h,expiresAt:f}=yield oa({backendUrl:c},u,window.location.origin),m=yield Lu({backendUrl:c,token:h});if(m.length===0){Jt(a,"error","No projects found — check your account permissions."),i.disabled=!1,i.textContent="Connect via Agent Platform";return}const b=_u(window.location.href,m),E=b?m.find(k=>k.id===b):void 0;if(E){vt(),A({backendUrl:c,token:h,projectCode:E.key,expiresAt:f});return}r(c,h,f,m)}catch(u){Jt(a,"error",`Could not connect — ${u instanceof Error?u.message:"please try again"}`),i.disabled=!1,i.textContent="Connect via Agent Platform"}})),setTimeout(()=>o.focus(),50)}function r(s,o,a,i){if(!sA)return;const c=i.map(f=>`<option value="${ph(f.key)}"${f.key===(e==null?void 0:e.projectCode)?" selected":""}>${gc(f.name)} (${gc(f.key)})</option>`).join("");sA.innerHTML=`
1830
1829
  <div class="ap-sdk-panel__header">
1831
1830
  <span class="ap-sdk-panel__title">
1832
1831
  <span class="ap-sdk-panel__logo">AP</span>
@@ -1848,14 +1847,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1848
1847
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-save>Save</button>
1849
1848
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-back>Back</button>
1850
1849
  </div>
1851
- `;const u=rA.querySelector("[data-ap-cfg-project]"),h=rA.querySelector("[data-ap-cfg-status]");rA.querySelector("[data-ap-close]").addEventListener("click",()=>{Et()}),rA.querySelector("[data-ap-back]").addEventListener("click",()=>n(s)),rA.querySelector("[data-ap-save]").addEventListener("click",()=>{const f=u.value;if(!f){Zt(h,"error","Please select a project.");return}Et(),A({backendUrl:s,token:o,projectCode:f,expiresAt:a})})}}function Zt(A,e,t){if(!e){A.style.display="none",A.textContent="";return}A.style.display="block",A.className=`ap-sdk-panel__status ap-sdk-panel__status--${e}`,A.textContent=t}function ch(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function pc(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const hc="ap-sdk-active-automation";function VF(){try{const A=sessionStorage.getItem(hc);if(!A)return null;const e=JSON.parse(A);return e!=null&&e.taskId&&(e!=null&&e.backendUrl)&&(e!=null&&e.title)?e:null}catch(A){return null}}function lh(A){try{sessionStorage.setItem(hc,JSON.stringify(A))}catch(e){}}function uh(){try{sessionStorage.removeItem(hc)}catch(A){}}function fc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Bn=fc();function dh(A){Bn=A}var wn={exec:()=>null};function tr(A){let e=[];return t=>{let n=Math.max(0,Math.min(3,t-1)),r=e[n];return r||(r=A(n),e[n]=r),r}}function tA(A,e=""){let t=typeof A=="string"?A:A.source,n={replace:(r,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(re.caret,"$1"),t=t.replace(r,o),n},getRegex:()=>new RegExp(t,e)};return n}var GF=((A="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+A)}catch(e){return!1}})(),re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:A=>new RegExp(`^( {0,3}${A})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:tr(A=>new RegExp(`^ {0,${A}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:tr(A=>new RegExp(`^ {0,${A}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:tr(A=>new RegExp(`^ {0,${A}}(?:\`\`\`|~~~)`)),headingBeginRegex:tr(A=>new RegExp(`^ {0,${A}}#`)),htmlBeginRegex:tr(A=>new RegExp(`^ {0,${A}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:tr(A=>new RegExp(`^ {0,${A}}>`))},ZF=/^(?:[ \t]*(?:\n|$))+/,XF=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,WF=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ts=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,JF=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gc=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ph=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,hh=tA(ph).replace(/bull/g,gc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),jF=tA(ph).replace(/bull/g,gc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Bc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,YF=/^[^\n]+/,wc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,qF=tA(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Av=tA(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,gc).getRegex(),Zo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",mc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ev=tA("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",mc).replace("tag",Zo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fh=A=>tA(Bc).replace("hr",ts).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",A).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zo).getRegex(),tv=fh(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),nv=fh(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),rv=tA(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",nv).getRegex(),Cc={blockquote:rv,code:XF,def:qF,fences:WF,heading:JF,hr:ts,html:ev,lheading:hh,list:Av,newline:ZF,paragraph:tv,table:wn,text:YF},gh=tA("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ts).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zo).getRegex(),sv=$(k({},Cc),{lheading:jF,table:gh,paragraph:tA(Bc).replace("hr",ts).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",gh).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zo).getRegex()}),ov=$(k({},Cc),{html:tA(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",mc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:wn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tA(Bc).replace("hr",ts).replace("heading",` *#{1,6} *[^
1852
- ]`).replace("lheading",hh).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),iv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,av=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bh=/^( {2,}|\\)\n(?!\s*$)/,cv=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,kt=/[\p{P}\p{S}]/u,nr=/[\s\p{P}\p{S}]/u,ns=/[^\s\p{P}\p{S}]/u,lv=tA(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,nr).getRegex(),uv=/[\p{Pi}\p{Ps}"']/u,wh=/(?!~)[\p{P}\p{S}]/u,dv=/(?!~)[\s\p{P}\p{S}]/u,pv=/(?:[^\s\p{P}\p{S}]|~)/u,hv=tA(/link|precode-code|html/,"g").replace("link",new RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("precode-",GF?"(?<!`)()":"(^^|[^`])").replace("code",new RegExp("(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),mh=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,fv=tA(mh,"u").replace(/punct/g,kt).getRegex(),gv=tA(mh,"u").replace(/punct/g,wh).getRegex(),Bv=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,wv=tA(Bv,"u").replace(/openQuote/g,uv).replace(/punct/g,kt).getRegex(),Ch="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",mv=tA(Ch,"gu").replace(/notPunctSpace/g,ns).replace(/punctSpace/g,nr).replace(/punct/g,kt).getRegex(),Cv=tA(Ch,"gu").replace(/notPunctSpace/g,pv).replace(/punctSpace/g,dv).replace(/punct/g,wh).getRegex(),bv="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Qv=tA(bv,"gu").replace(/notPunctSpace/g,ns).replace(/punctSpace/g,nr).replace(/punct/g,kt).getRegex(),yv=tA("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ns).replace(/punctSpace/g,nr).replace(/punct/g,kt).getRegex(),Uv="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Ev=tA(Uv,"gu").replace(/notPunctSpace/g,ns).replace(/punctSpace/g,nr).replace(/punct/g,kt).getRegex(),kv=tA(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,kt).getRegex(),Fv="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",vv=tA(Fv,"gu").replace(/notPunctSpace/g,ns).replace(/punctSpace/g,nr).replace(/punct/g,kt).getRegex(),_v=tA(/\\(punct)/,"gu").replace(/punct/g,kt).getRegex(),xv=tA(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Sv=tA(mc).replace("(?:-->|$)","-->").getRegex(),Iv=tA("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Sv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Xo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Tv=tA(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Xo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),bh=tA(/^!?\[(label)\]\[(ref)\]/).replace("label",Xo).replace("ref",wc).getRegex(),Qh=tA(/^!?\[(ref)\](?:\[\])?/).replace("ref",wc).getRegex(),Hv=tA("reflink|nolink(?!\\()","g").replace("reflink",bh).replace("nolink",Qh).getRegex(),yh=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,bc={_backpedal:wn,anyPunctuation:_v,autolink:xv,blockSkip:hv,br:Bh,code:av,del:wn,delLDelim:wn,delRDelim:wn,emStrongLDelim:fv,emStrongRDelimAst:mv,emStrongRDelimUnd:yv,escape:iv,link:Tv,nolink:Qh,punctuation:lv,reflink:bh,reflinkSearch:Hv,tag:Iv,text:cv,url:wn},Lv=$(k({},bc),{emStrongLDelim:wv,emStrongRDelimAst:Qv,emStrongRDelimUnd:Ev,link:tA(/^!?\[(label)\]\((.*?)\)/).replace("label",Xo).getRegex(),reflink:tA(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Xo).getRegex()}),Qc=$(k({},bc),{emStrongRDelimAst:Cv,emStrongLDelim:gv,delLDelim:kv,delRDelim:vv,url:tA(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",yh).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:tA(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",yh).getRegex()}),Dv=$(k({},Qc),{br:tA(Bh).replace("{2,}","*").getRegex(),text:tA(Qc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Wo={normal:Cc,gfm:sv,pedantic:ov},rs={normal:bc,gfm:Qc,breaks:Dv,pedantic:Lv},Rv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Uh=A=>Rv[A];function dt(A,e){if(e){if(re.escapeTest.test(A))return A.replace(re.escapeReplace,Uh)}else if(re.escapeTestNoEncode.test(A))return A.replace(re.escapeReplaceNoEncode,Uh);return A}function Eh(A){try{A=encodeURI(A).replace(re.percentDecode,"%")}catch(e){return null}return A}function kh(A,e){var s;let t=A.replace(re.findPipe,(o,a,i)=>{let c=!1,u=a;for(;--u>=0&&i[u]==="\\";)c=!c;return c?"|":" |"}),n=t.split(re.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(re.slashPipe,"|");return n}function Xt(A,e,t){let n=A.length;if(n===0)return"";let r=0;for(;r<n&&A.charAt(n-r-1)===e;)r++;return A.slice(0,n-r)}function Fh(A){let e=A.split(`
1853
- `),t=e.length-1;for(;t>=0&&re.blankLine.test(e[t]);)t--;return e.length-t<=2?A:e.slice(0,t+1).join(`
1854
- `)}function Ov(A,e){if(A.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<A.length;n++)if(A[n]==="\\")n++;else if(A[n]===e[0])t++;else if(A[n]===e[1]&&(t--,t<0))return n;return t>0?-2:-1}function Pv(A,e=0){let t=e,n="";for(let r of A)if(r===" "){let s=4-t%4;n+=" ".repeat(s),t+=s}else n+=r,t++;return n}function vh(A,e,t,n,r){let s=e.href,o=e.title||null,a=A[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=!0;let i={type:A[0].charAt(0)==="!"?"image":"link",raw:t,href:s,title:o,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,i}function Mv(A,e,t){let n=A.match(t.other.indentCodeCompensation);if(n===null)return e;let r=n[1];return e.split(`
1850
+ `;const u=sA.querySelector("[data-ap-cfg-project]"),h=sA.querySelector("[data-ap-cfg-status]");sA.querySelector("[data-ap-close]").addEventListener("click",()=>{vt()}),sA.querySelector("[data-ap-back]").addEventListener("click",()=>n(s)),sA.querySelector("[data-ap-save]").addEventListener("click",()=>{const f=u.value;if(!f){Jt(h,"error","Please select a project.");return}vt(),A({backendUrl:s,token:o,projectCode:f,expiresAt:a})})}}function Jt(A,e,t){if(!e){A.style.display="none",A.textContent="";return}A.style.display="block",A.className=`ap-sdk-panel__status ap-sdk-panel__status--${e}`,A.textContent=t}function ph(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function gc(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const Bc="ap-sdk-active-automation";function XF(){try{const A=sessionStorage.getItem(Bc);if(!A)return null;const e=JSON.parse(A);return e!=null&&e.taskId&&(e!=null&&e.backendUrl)&&(e!=null&&e.title)?e:null}catch(A){return null}}function hh(A){try{sessionStorage.setItem(Bc,JSON.stringify(A))}catch(e){}}function fh(){try{sessionStorage.removeItem(Bc)}catch(A){}}function wc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var wn=wc();function gh(A){wn=A}var mn={exec:()=>null};function rr(A){let e=[];return t=>{let n=Math.max(0,Math.min(3,t-1)),r=e[n];return r||(r=A(n),e[n]=r),r}}function tA(A,e=""){let t=typeof A=="string"?A:A.source,n={replace:(r,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(se.caret,"$1"),t=t.replace(r,o),n},getRegex:()=>new RegExp(t,e)};return n}var WF=((A="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+A)}catch(e){return!1}})(),se={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:A=>new RegExp(`^( {0,3}${A})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:rr(A=>new RegExp(`^ {0,${A}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:rr(A=>new RegExp(`^ {0,${A}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:rr(A=>new RegExp(`^ {0,${A}}(?:\`\`\`|~~~)`)),headingBeginRegex:rr(A=>new RegExp(`^ {0,${A}}#`)),htmlBeginRegex:rr(A=>new RegExp(`^ {0,${A}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:rr(A=>new RegExp(`^ {0,${A}}>`))},JF=/^(?:[ \t]*(?:\n|$))+/,jF=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,YF=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ns=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,qF=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,mc=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Bh=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wh=tA(Bh).replace(/bull/g,mc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Av=tA(Bh).replace(/bull/g,mc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Cc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,ev=/^[^\n]+/,bc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,tv=tA(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",bc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nv=tA(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,mc).getRegex(),Xo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Qc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rv=tA("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Qc).replace("tag",Xo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mh=A=>tA(Cc).replace("hr",ns).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",A).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xo).getRegex(),sv=mh(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),ov=mh(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),iv=tA(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ov).getRegex(),yc={blockquote:iv,code:jF,def:tv,fences:YF,heading:qF,hr:ns,html:rv,lheading:wh,list:nv,newline:JF,paragraph:sv,table:mn,text:ev},Ch=tA("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ns).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xo).getRegex(),av=z(F({},yc),{lheading:Av,table:Ch,paragraph:tA(Cc).replace("hr",ns).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ch).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xo).getRegex()}),cv=z(F({},yc),{html:tA(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Qc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:mn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tA(Cc).replace("hr",ns).replace("heading",` *#{1,6} *[^
1851
+ ]`).replace("lheading",wh).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),lv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,uv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,bh=/^( {2,}|\\)\n(?!\s*$)/,dv=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_t=/[\p{P}\p{S}]/u,sr=/[\s\p{P}\p{S}]/u,rs=/[^\s\p{P}\p{S}]/u,pv=tA(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,sr).getRegex(),hv=/[\p{Pi}\p{Ps}"']/u,Qh=/(?!~)[\p{P}\p{S}]/u,fv=/(?!~)[\s\p{P}\p{S}]/u,gv=/(?:[^\s\p{P}\p{S}]|~)/u,Bv=tA(/link|precode-code|html/,"g").replace("link",new RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("precode-",WF?"(?<!`)()":"(^^|[^`])").replace("code",new RegExp("(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),yh=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,wv=tA(yh,"u").replace(/punct/g,_t).getRegex(),mv=tA(yh,"u").replace(/punct/g,Qh).getRegex(),Cv=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,bv=tA(Cv,"u").replace(/openQuote/g,hv).replace(/punct/g,_t).getRegex(),Uh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Qv=tA(Uh,"gu").replace(/notPunctSpace/g,rs).replace(/punctSpace/g,sr).replace(/punct/g,_t).getRegex(),yv=tA(Uh,"gu").replace(/notPunctSpace/g,gv).replace(/punctSpace/g,fv).replace(/punct/g,Qh).getRegex(),Uv="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Ev=tA(Uv,"gu").replace(/notPunctSpace/g,rs).replace(/punctSpace/g,sr).replace(/punct/g,_t).getRegex(),kv=tA("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,rs).replace(/punctSpace/g,sr).replace(/punct/g,_t).getRegex(),Fv="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",vv=tA(Fv,"gu").replace(/notPunctSpace/g,rs).replace(/punctSpace/g,sr).replace(/punct/g,_t).getRegex(),_v=tA(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,_t).getRegex(),xv="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Sv=tA(xv,"gu").replace(/notPunctSpace/g,rs).replace(/punctSpace/g,sr).replace(/punct/g,_t).getRegex(),Iv=tA(/\\(punct)/,"gu").replace(/punct/g,_t).getRegex(),Tv=tA(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Hv=tA(Qc).replace("(?:-->|$)","-->").getRegex(),Lv=tA("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Hv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Wo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Rv=tA(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Wo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Eh=tA(/^!?\[(label)\]\[(ref)\]/).replace("label",Wo).replace("ref",bc).getRegex(),kh=tA(/^!?\[(ref)\](?:\[\])?/).replace("ref",bc).getRegex(),Dv=tA("reflink|nolink(?!\\()","g").replace("reflink",Eh).replace("nolink",kh).getRegex(),Fh=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Uc={_backpedal:mn,anyPunctuation:Iv,autolink:Tv,blockSkip:Bv,br:bh,code:uv,del:mn,delLDelim:mn,delRDelim:mn,emStrongLDelim:wv,emStrongRDelimAst:Qv,emStrongRDelimUnd:kv,escape:lv,link:Rv,nolink:kh,punctuation:pv,reflink:Eh,reflinkSearch:Dv,tag:Lv,text:dv,url:mn},Ov=z(F({},Uc),{emStrongLDelim:bv,emStrongRDelimAst:Ev,emStrongRDelimUnd:vv,link:tA(/^!?\[(label)\]\((.*?)\)/).replace("label",Wo).getRegex(),reflink:tA(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Wo).getRegex()}),Ec=z(F({},Uc),{emStrongRDelimAst:yv,emStrongLDelim:mv,delLDelim:_v,delRDelim:Sv,url:tA(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Fh).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:tA(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Fh).getRegex()}),Pv=z(F({},Ec),{br:tA(bh).replace("{2,}","*").getRegex(),text:tA(Ec.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Jo={normal:yc,gfm:av,pedantic:cv},ss={normal:Uc,gfm:Ec,breaks:Pv,pedantic:Ov},Mv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vh=A=>Mv[A];function pt(A,e){if(e){if(se.escapeTest.test(A))return A.replace(se.escapeReplace,vh)}else if(se.escapeTestNoEncode.test(A))return A.replace(se.escapeReplaceNoEncode,vh);return A}function _h(A){try{A=encodeURI(A).replace(se.percentDecode,"%")}catch(e){return null}return A}function xh(A,e){var s;let t=A.replace(se.findPipe,(o,a,i)=>{let c=!1,u=a;for(;--u>=0&&i[u]==="\\";)c=!c;return c?"|":" |"}),n=t.split(se.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(se.slashPipe,"|");return n}function jt(A,e,t){let n=A.length;if(n===0)return"";let r=0;for(;r<n&&A.charAt(n-r-1)===e;)r++;return A.slice(0,n-r)}function Sh(A){let e=A.split(`
1852
+ `),t=e.length-1;for(;t>=0&&se.blankLine.test(e[t]);)t--;return e.length-t<=2?A:e.slice(0,t+1).join(`
1853
+ `)}function Nv(A,e){if(A.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<A.length;n++)if(A[n]==="\\")n++;else if(A[n]===e[0])t++;else if(A[n]===e[1]&&(t--,t<0))return n;return t>0?-2:-1}function Kv(A,e=0){let t=e,n="";for(let r of A)if(r===" "){let s=4-t%4;n+=" ".repeat(s),t+=s}else n+=r,t++;return n}function Ih(A,e,t,n,r){let s=e.href,o=e.title||null,a=A[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=!0;let i={type:A[0].charAt(0)==="!"?"image":"link",raw:t,href:s,title:o,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,i}function $v(A,e,t){let n=A.match(t.other.indentCodeCompensation);if(n===null)return e;let r=n[1];return e.split(`
1855
1854
  `).map(s=>{let o=s.match(t.other.beginningSpace);if(o===null)return s;let[a]=o;return a.length>=r.length?s.slice(r.length):s}).join(`
1856
- `)}var Jo=class{constructor(A){gA(this,"options");gA(this,"rules");gA(this,"lexer");this.options=A||Bn}space(A){let e=this.rules.block.newline.exec(A);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(A){let e=this.rules.block.code.exec(A);if(e){let t=this.options.pedantic?e[0]:Fh(e[0]),n=t.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t,codeBlockStyle:"indented",text:n}}}fences(A){let e=this.rules.block.fences.exec(A);if(e){let t=e[0],n=Mv(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(A){let e=this.rules.block.heading.exec(A);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let n=Xt(t,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(t=n.trim())}return{type:"heading",raw:Xt(e[0],`
1857
- `),depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(A){let e=this.rules.block.hr.exec(A);if(e)return{type:"hr",raw:Xt(e[0],`
1858
- `)}}blockquote(A){let e=this.rules.block.blockquote.exec(A);if(e){let t=Xt(e[0],`
1855
+ `)}var jo=class{constructor(A){gA(this,"options");gA(this,"rules");gA(this,"lexer");this.options=A||wn}space(A){let e=this.rules.block.newline.exec(A);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(A){let e=this.rules.block.code.exec(A);if(e){let t=this.options.pedantic?e[0]:Sh(e[0]),n=t.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t,codeBlockStyle:"indented",text:n}}}fences(A){let e=this.rules.block.fences.exec(A);if(e){let t=e[0],n=$v(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(A){let e=this.rules.block.heading.exec(A);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let n=jt(t,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(t=n.trim())}return{type:"heading",raw:jt(e[0],`
1856
+ `),depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(A){let e=this.rules.block.hr.exec(A);if(e)return{type:"hr",raw:jt(e[0],`
1857
+ `)}}blockquote(A){let e=this.rules.block.blockquote.exec(A);if(e){let t=jt(e[0],`
1859
1858
  `).split(`
1860
1859
  `),n="",r="",s=[];for(;t.length>0;){let o=!1,a=[],i;for(i=0;i<t.length;i++)if(this.rules.other.blockquoteStart.test(t[i]))a.push(t[i]),o=!0;else if(!o)a.push(t[i]);else break;t=t.slice(i);let c=a.join(`
1861
1860
  `),u=c.replace(this.rules.other.blockquoteSetextReplace,`
@@ -1863,24 +1862,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1863
1862
  ${c}`:c,r=r?`${r}
1864
1863
  ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=h,t.length===0)break;let f=s.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){let g=f,m=t.join(`
1865
1864
  `),b=g.raw+`
1866
- `+m.replace(this.rules.other.blockquoteSetextReplace2,""),U=this.blockquote(b);s[s.length-1]=U,n=`${n}
1867
- ${m}`,r=r.substring(0,r.length-g.text.length)+U.text;break}else if((f==null?void 0:f.type)==="list"){let g=f,m=g.raw+`
1865
+ `+m.replace(this.rules.other.blockquoteSetextReplace2,""),E=this.blockquote(b);s[s.length-1]=E,n=`${n}
1866
+ ${m}`,r=r.substring(0,r.length-g.text.length)+E.text;break}else if((f==null?void 0:f.type)==="list"){let g=f,m=g.raw+`
1868
1867
  `+t.join(`
1869
1868
  `),b=this.list(m);s[s.length-1]=b,n=n.substring(0,n.length-f.raw.length)+b.raw,r=r.substring(0,r.length-g.raw.length)+b.raw,t=m.substring(s.at(-1).raw.length).split(`
1870
- `);continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(A){let e=this.rules.block.list.exec(A);if(e){let t=e[1].trim(),n=t.length>1,r={type:"list",raw:"",ordered:n,start:n?+t.slice(0,-1):"",loose:!1,items:[]};t=n?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=n?t:"[*+-]");let s=this.rules.other.listItemRegex(t),o=!1;for(;A;){let i=!1,c="",u="";if(!(e=s.exec(A))||this.rules.block.hr.test(A))break;c=e[0],A=A.substring(c.length);let h=Pv(e[2].split(`
1869
+ `);continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(A){let e=this.rules.block.list.exec(A);if(e){let t=e[1].trim(),n=t.length>1,r={type:"list",raw:"",ordered:n,start:n?+t.slice(0,-1):"",loose:!1,items:[]};t=n?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=n?t:"[*+-]");let s=this.rules.other.listItemRegex(t),o=!1;for(;A;){let i=!1,c="",u="";if(!(e=s.exec(A))||this.rules.block.hr.test(A))break;c=e[0],A=A.substring(c.length);let h=Kv(e[2].split(`
1871
1870
  `,1)[0],e[1].length),f=A.split(`
1872
1871
  `,1)[0],g=!h.trim(),m=0;if(this.options.pedantic?(m=2,u=h.trimStart()):g?m=e[1].length+1:(m=h.search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=h.slice(m),m+=e[1].length),g&&this.rules.other.blankLine.test(f)&&(c+=f+`
1873
- `,A=A.substring(f.length+1),i=!0),!i){let b=this.rules.other.nextBulletRegex(m),U=this.rules.other.hrRegex(m),E=this.rules.other.fencesBeginRegex(m),v=this.rules.other.headingBeginRegex(m),F=this.rules.other.htmlBeginRegex(m),y=this.rules.other.blockquoteBeginRegex(m);for(;A;){let _=A.split(`
1874
- `,1)[0],R;if(f=_,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),R=f):R=f.replace(this.rules.other.tabCharGlobal," "),E.test(f)||v.test(f)||F.test(f)||y.test(f)||b.test(f)||U.test(f))break;if(R.search(this.rules.other.nonSpaceChar)>=m||!f.trim())u+=`
1875
- `+R.slice(m);else{if(g||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(h)||v.test(h)||U.test(h))break;u+=`
1876
- `+f}g=!f.trim(),c+=_+`
1877
- `,A=A.substring(_.length+1),h=R.slice(m)}}r.loose||(o?r.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(o=!0)),r.items.push({type:"list_item",raw:c,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),r.raw+=c}let a=r.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let i of r.items){this.lexer.state.top=!1,i.tokens=this.lexer.blockTokens(i.text,[]);let c=i.tokens[0];if(i.task&&((c==null?void 0:c.type)==="text"||(c==null?void 0:c.type)==="paragraph")){i.text=i.text.replace(this.rules.other.listReplaceTask,""),c.raw=c.raw.replace(this.rules.other.listReplaceTask,""),c.text=c.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let u=this.rules.other.listTaskCheckbox.exec(i.raw);if(u){let h={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};i.checked=h.checked,r.loose?i.tokens[0]&&["paragraph","text"].includes(i.tokens[0].type)&&"tokens"in i.tokens[0]&&i.tokens[0].tokens?(i.tokens[0].raw=h.raw+i.tokens[0].raw,i.tokens[0].text=h.raw+i.tokens[0].text,i.tokens[0].tokens.unshift(h)):i.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):i.tokens.unshift(h)}}else i.task&&(i.task=!1);if(!r.loose){let u=i.tokens.filter(f=>f.type==="space"),h=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));r.loose=h}}if(r.loose)for(let i of r.items){i.loose=!0;for(let c of i.tokens)c.type==="text"&&(c.type="paragraph")}return r}}html(A){let e=this.rules.block.html.exec(A);if(e){let t=Fh(e[0]);return{type:"html",block:!0,raw:t,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:t}}}def(A){let e=this.rules.block.def.exec(A);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:Xt(e[0],`
1878
- `),href:n,title:r}}}table(A){var o;let e=this.rules.block.table.exec(A);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=kh(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=(o=e[3])!=null&&o.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
1879
- `):[],s={type:"table",raw:Xt(e[0],`
1880
- `),header:[],align:[],rows:[]};if(t.length===n.length){for(let a of n)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<t.length;a++)s.header.push({text:t[a],tokens:this.lexer.inline(t[a]),header:!0,align:s.align[a]});for(let a of r)s.rows.push(kh(a,s.header.length).map((i,c)=>({text:i,tokens:this.lexer.inline(i),header:!1,align:s.align[c]})));return s}}lheading(A){let e=this.rules.block.lheading.exec(A);if(e){let t=e[1].trim();return{type:"heading",raw:Xt(e[0],`
1872
+ `,A=A.substring(f.length+1),i=!0),!i){let b=this.rules.other.nextBulletRegex(m),E=this.rules.other.hrRegex(m),k=this.rules.other.fencesBeginRegex(m),v=this.rules.other.headingBeginRegex(m),y=this.rules.other.htmlBeginRegex(m),U=this.rules.other.blockquoteBeginRegex(m);for(;A;){let x=A.split(`
1873
+ `,1)[0],R;if(f=x,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),R=f):R=f.replace(this.rules.other.tabCharGlobal," "),k.test(f)||v.test(f)||y.test(f)||U.test(f)||b.test(f)||E.test(f))break;if(R.search(this.rules.other.nonSpaceChar)>=m||!f.trim())u+=`
1874
+ `+R.slice(m);else{if(g||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(h)||v.test(h)||E.test(h))break;u+=`
1875
+ `+f}g=!f.trim(),c+=x+`
1876
+ `,A=A.substring(x.length+1),h=R.slice(m)}}r.loose||(o?r.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(o=!0)),r.items.push({type:"list_item",raw:c,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),r.raw+=c}let a=r.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let i of r.items){this.lexer.state.top=!1,i.tokens=this.lexer.blockTokens(i.text,[]);let c=i.tokens[0];if(i.task&&((c==null?void 0:c.type)==="text"||(c==null?void 0:c.type)==="paragraph")){i.text=i.text.replace(this.rules.other.listReplaceTask,""),c.raw=c.raw.replace(this.rules.other.listReplaceTask,""),c.text=c.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let u=this.rules.other.listTaskCheckbox.exec(i.raw);if(u){let h={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};i.checked=h.checked,r.loose?i.tokens[0]&&["paragraph","text"].includes(i.tokens[0].type)&&"tokens"in i.tokens[0]&&i.tokens[0].tokens?(i.tokens[0].raw=h.raw+i.tokens[0].raw,i.tokens[0].text=h.raw+i.tokens[0].text,i.tokens[0].tokens.unshift(h)):i.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):i.tokens.unshift(h)}}else i.task&&(i.task=!1);if(!r.loose){let u=i.tokens.filter(f=>f.type==="space"),h=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));r.loose=h}}if(r.loose)for(let i of r.items){i.loose=!0;for(let c of i.tokens)c.type==="text"&&(c.type="paragraph")}return r}}html(A){let e=this.rules.block.html.exec(A);if(e){let t=Sh(e[0]);return{type:"html",block:!0,raw:t,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:t}}}def(A){let e=this.rules.block.def.exec(A);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:jt(e[0],`
1877
+ `),href:n,title:r}}}table(A){var o;let e=this.rules.block.table.exec(A);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=xh(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=(o=e[3])!=null&&o.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
1878
+ `):[],s={type:"table",raw:jt(e[0],`
1879
+ `),header:[],align:[],rows:[]};if(t.length===n.length){for(let a of n)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<t.length;a++)s.header.push({text:t[a],tokens:this.lexer.inline(t[a]),header:!0,align:s.align[a]});for(let a of r)s.rows.push(xh(a,s.header.length).map((i,c)=>({text:i,tokens:this.lexer.inline(i),header:!1,align:s.align[c]})));return s}}lheading(A){let e=this.rules.block.lheading.exec(A);if(e){let t=e[1].trim();return{type:"heading",raw:jt(e[0],`
1881
1880
  `),depth:e[2].charAt(0)==="="?1:2,text:t,tokens:this.lexer.inline(t)}}}paragraph(A){let e=this.rules.block.paragraph.exec(A);if(e){let t=e[1].charAt(e[1].length-1)===`
1882
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(A){let e=this.rules.block.text.exec(A);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(A){let e=this.rules.inline.escape.exec(A);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(A){let e=this.rules.inline.tag.exec(A);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(A){let e=this.rules.inline.link.exec(A);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let s=Xt(t.slice(0,-1),"\\");if((t.length-s.length)%2===0)return}else{let s=Ov(e[2],"()");if(s===-2)return;if(s>-1){let o=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,o).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],r=s[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n=n.slice(1):n=n.slice(1,-1)),vh(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(A,e){let t;if((t=this.rules.inline.reflink.exec(A))||(t=this.rules.inline.nolink.exec(A))){let n=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[n.toLowerCase()];if(!r){let s=t[0].charAt(0);return{type:"text",raw:s,text:s}}return vh(t,r,t[0],this.lexer,this.rules)}}emStrong(A,e,t=""){let n=this.rules.inline.emStrongLDelim.exec(A);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!t||this.rules.inline.punctuation.exec(t))){let r=[...n[0]].length-1,s,o,a=r,i=0,c=n[0][0],u=t===c,h=c==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*A.length+r);(n=h.exec(e))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(o=[...s].length,n[3]||n[4]){a+=o;continue}else if(n[5]||n[6]){if(r%3&&!((r+o)%3)){i+=o;continue}if(u)break}if(a-=o,a>0)continue;o=Math.min(o,o+a+i);let f=[...n[0]][0].length,g=A.slice(0,r+n.index+f+o);if(Math.min(r,o)%2){let b=g.slice(1,-1);return{type:"em",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}let m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(A){let e=this.rules.inline.code.exec(A);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(A){let e=this.rules.inline.br.exec(A);if(e)return{type:"br",raw:e[0]}}del(A,e,t=""){let n=this.rules.inline.delLDelim.exec(A);if(n&&(!n[1]||!t||this.rules.inline.punctuation.exec(t))){let r=[...n[0]].length-1,s,o,a=r,i=this.rules.inline.delRDelim;for(i.lastIndex=0,e=e.slice(-1*A.length+r);(n=i.exec(e))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s||(o=[...s].length,o!==r))continue;if(n[3]||n[4]){a+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a);let c=[...n[0]][0].length,u=A.slice(0,r+n.index+c+o),h=u.slice(r,-r);return{type:"del",raw:u,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(A){let e=this.rules.inline.autolink.exec(A);if(e){let t,n;return e[2]==="@"?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(A){var t,n;let e;if(e=this.rules.inline.url.exec(A)){let r,s;if(e[2]==="@")r=e[0],s="mailto:"+r;else{let o;do o=e[0],e[0]=(n=(t=this.rules.inline._backpedal.exec(e[0]))==null?void 0:t[0])!=null?n:"";while(o!==e[0]);r=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(A){let e=this.rules.inline.text.exec(A);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},Ge=class sl{constructor(e){gA(this,"tokens");gA(this,"options");gA(this,"state");gA(this,"inlineQueue");gA(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Bn,this.options.tokenizer=this.options.tokenizer||new Jo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:re,block:Wo.normal,inline:rs.normal};this.options.pedantic?(t.block=Wo.pedantic,t.inline=rs.pedantic):this.options.gfm&&(t.block=Wo.gfm,this.options.breaks?t.inline=rs.breaks:t.inline=rs.gfm),this.tokenizer.rules=t}static get rules(){return{block:Wo,inline:rs}}static lex(e,t){return new sl(t).lex(e)}static lexInline(e,t){return new sl(t).inlineTokens(e)}lex(e){e=e.replace(re.carriageReturn,`
1883
- `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var s,o,a;this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(re.tabCharGlobal," ").replace(re.spaceLine,""));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if((o=(s=this.options.extensions)==null?void 0:s.block)!=null&&o.some(u=>(i=u.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let u=t.at(-1);i.raw.length===1&&u!==void 0?u.raw+=`
1881
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(A){let e=this.rules.block.text.exec(A);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(A){let e=this.rules.inline.escape.exec(A);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(A){let e=this.rules.inline.tag.exec(A);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(A){let e=this.rules.inline.link.exec(A);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let s=jt(t.slice(0,-1),"\\");if((t.length-s.length)%2===0)return}else{let s=Nv(e[2],"()");if(s===-2)return;if(s>-1){let o=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,o).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],r=s[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n=n.slice(1):n=n.slice(1,-1)),Ih(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(A,e){let t;if((t=this.rules.inline.reflink.exec(A))||(t=this.rules.inline.nolink.exec(A))){let n=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[n.toLowerCase()];if(!r){let s=t[0].charAt(0);return{type:"text",raw:s,text:s}}return Ih(t,r,t[0],this.lexer,this.rules)}}emStrong(A,e,t=""){let n=this.rules.inline.emStrongLDelim.exec(A);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!t||this.rules.inline.punctuation.exec(t))){let r=[...n[0]].length-1,s,o,a=r,i=0,c=n[0][0],u=t===c,h=c==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*A.length+r);(n=h.exec(e))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(o=[...s].length,n[3]||n[4]){a+=o;continue}else if(n[5]||n[6]){if(r%3&&!((r+o)%3)){i+=o;continue}if(u)break}if(a-=o,a>0)continue;o=Math.min(o,o+a+i);let f=[...n[0]][0].length,g=A.slice(0,r+n.index+f+o);if(Math.min(r,o)%2){let b=g.slice(1,-1);return{type:"em",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}let m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(A){let e=this.rules.inline.code.exec(A);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(A){let e=this.rules.inline.br.exec(A);if(e)return{type:"br",raw:e[0]}}del(A,e,t=""){let n=this.rules.inline.delLDelim.exec(A);if(n&&(!n[1]||!t||this.rules.inline.punctuation.exec(t))){let r=[...n[0]].length-1,s,o,a=r,i=this.rules.inline.delRDelim;for(i.lastIndex=0,e=e.slice(-1*A.length+r);(n=i.exec(e))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s||(o=[...s].length,o!==r))continue;if(n[3]||n[4]){a+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a);let c=[...n[0]][0].length,u=A.slice(0,r+n.index+c+o),h=u.slice(r,-r);return{type:"del",raw:u,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(A){let e=this.rules.inline.autolink.exec(A);if(e){let t,n;return e[2]==="@"?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(A){var t,n;let e;if(e=this.rules.inline.url.exec(A)){let r,s;if(e[2]==="@")r=e[0],s="mailto:"+r;else{let o;do o=e[0],e[0]=(n=(t=this.rules.inline._backpedal.exec(e[0]))==null?void 0:t[0])!=null?n:"";while(o!==e[0]);r=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(A){let e=this.rules.inline.text.exec(A);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},Ge=class al{constructor(e){gA(this,"tokens");gA(this,"options");gA(this,"state");gA(this,"inlineQueue");gA(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||wn,this.options.tokenizer=this.options.tokenizer||new jo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:se,block:Jo.normal,inline:ss.normal};this.options.pedantic?(t.block=Jo.pedantic,t.inline=ss.pedantic):this.options.gfm&&(t.block=Jo.gfm,this.options.breaks?t.inline=ss.breaks:t.inline=ss.gfm),this.tokenizer.rules=t}static get rules(){return{block:Jo,inline:ss}}static lex(e,t){return new al(t).lex(e)}static lexInline(e,t){return new al(t).inlineTokens(e)}lex(e){e=e.replace(se.carriageReturn,`
1882
+ `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var s,o,a;this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(se.tabCharGlobal," ").replace(se.spaceLine,""));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if((o=(s=this.options.extensions)==null?void 0:s.block)!=null&&o.some(u=>(i=u.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let u=t.at(-1);i.raw.length===1&&u!==void 0?u.raw+=`
1884
1883
  `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let u=t.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
1885
1884
  `)?"":`
1886
1885
  `)+i.raw,u.text+=`
@@ -1893,9 +1892,9 @@ ${m}`,r=r.substring(0,r.length-g.text.length)+U.text;break}else if((f==null?void
1893
1892
  `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):t.push(i),n=c.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let u=t.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
1894
1893
  `)?"":`
1895
1894
  `)+i.raw,u.text+=`
1896
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var a,i,c,u,h,f;this.tokenizer.lexer=this;let n=e;if(this.tokens.links){let g=Object.keys(this.tokens.links);g.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,m=>g.includes(m.slice(m.lastIndexOf("[")+1,-1))?"["+"a".repeat(m.length-2)+"]":m))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),n=n.replace(this.tokenizer.rules.inline.blockSkip,(g,m,b)=>{let U=b?b.length:0;return g.slice(0,U)+"["+"a".repeat(g.length-U-2)+"]"}),n=(c=(i=(a=this.options.hooks)==null?void 0:a.emStrongMask)==null?void 0:i.call({lexer:this},n))!=null?c:n;let r=!1,s="",o=1/0;for(;e;){if(e.length<o)o=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(s=""),r=!1;let g;if((h=(u=this.options.extensions)==null?void 0:u.inline)!=null&&h.some(b=>(g=b.call({lexer:this},e,t))?(e=e.substring(g.raw.length),t.push(g),!0):!1))continue;if(g=this.tokenizer.escape(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.tag(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.link(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(g.raw.length);let b=t.at(-1);g.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=g.raw,b.text+=g.text):t.push(g);continue}if(g=this.tokenizer.emStrong(e,n,s)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.codespan(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.br(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.del(e,n,s)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.autolink(e)){e=e.substring(g.raw.length),t.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(e))){e=e.substring(g.raw.length),t.push(g);continue}let m=e;if((f=this.options.extensions)!=null&&f.startInline){let b=1/0,U=e.slice(1),E;this.options.extensions.startInline.forEach(v=>{E=v.call({lexer:this},U),typeof E=="number"&&E>=0&&(b=Math.min(b,E))}),b<1/0&&b>=0&&(m=e.substring(0,b+1))}if(g=this.tokenizer.inlineText(m)){e=e.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(s=g.raw.slice(-1)),r=!0;let b=t.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=g.raw,b.text+=g.text):t.push(g);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw new Error(t)}},jo=class{constructor(A){gA(this,"options");gA(this,"parser");this.options=A||Bn}space(A){return""}code({text:A,lang:e,escaped:t}){var s;let n=(s=(e||"").match(re.notSpaceStart))==null?void 0:s[0],r=A.replace(re.endingNewline,"")+`
1897
- `;return n?'<pre><code class="language-'+dt(n)+'">'+(t?r:dt(r,!0))+`</code></pre>
1898
- `:"<pre><code>"+(t?r:dt(r,!0))+`</code></pre>
1895
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var a,i,c,u,h,f;this.tokenizer.lexer=this;let n=e;if(this.tokens.links){let g=Object.keys(this.tokens.links);g.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,m=>g.includes(m.slice(m.lastIndexOf("[")+1,-1))?"["+"a".repeat(m.length-2)+"]":m))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),n=n.replace(this.tokenizer.rules.inline.blockSkip,(g,m,b)=>{let E=b?b.length:0;return g.slice(0,E)+"["+"a".repeat(g.length-E-2)+"]"}),n=(c=(i=(a=this.options.hooks)==null?void 0:a.emStrongMask)==null?void 0:i.call({lexer:this},n))!=null?c:n;let r=!1,s="",o=1/0;for(;e;){if(e.length<o)o=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(s=""),r=!1;let g;if((h=(u=this.options.extensions)==null?void 0:u.inline)!=null&&h.some(b=>(g=b.call({lexer:this},e,t))?(e=e.substring(g.raw.length),t.push(g),!0):!1))continue;if(g=this.tokenizer.escape(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.tag(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.link(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(g.raw.length);let b=t.at(-1);g.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=g.raw,b.text+=g.text):t.push(g);continue}if(g=this.tokenizer.emStrong(e,n,s)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.codespan(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.br(e)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.del(e,n,s)){e=e.substring(g.raw.length),t.push(g);continue}if(g=this.tokenizer.autolink(e)){e=e.substring(g.raw.length),t.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(e))){e=e.substring(g.raw.length),t.push(g);continue}let m=e;if((f=this.options.extensions)!=null&&f.startInline){let b=1/0,E=e.slice(1),k;this.options.extensions.startInline.forEach(v=>{k=v.call({lexer:this},E),typeof k=="number"&&k>=0&&(b=Math.min(b,k))}),b<1/0&&b>=0&&(m=e.substring(0,b+1))}if(g=this.tokenizer.inlineText(m)){e=e.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(s=g.raw.slice(-1)),r=!0;let b=t.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=g.raw,b.text+=g.text):t.push(g);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw new Error(t)}},Yo=class{constructor(A){gA(this,"options");gA(this,"parser");this.options=A||wn}space(A){return""}code({text:A,lang:e,escaped:t}){var s;let n=(s=(e||"").match(se.notSpaceStart))==null?void 0:s[0],r=A.replace(se.endingNewline,"")+`
1896
+ `;return n?'<pre><code class="language-'+pt(n)+'">'+(t?r:pt(r,!0))+`</code></pre>
1897
+ `:"<pre><code>"+(t?r:pt(r,!0))+`</code></pre>
1899
1898
  `}blockquote({tokens:A}){return`<blockquote>
1900
1899
  ${this.parser.parse(A)}</blockquote>
1901
1900
  `}html({text:A}){return A}def(A){return""}heading({tokens:A,depth:e}){return`<h${e}>${this.parser.parseInline(A)}</h${e}>
@@ -1911,22 +1910,22 @@ ${this.parser.parse(A)}</blockquote>
1911
1910
  `}tablerow({text:A}){return`<tr>
1912
1911
  ${A}</tr>
1913
1912
  `}tablecell(A){let e=this.parser.parseInline(A.tokens),t=A.header?"th":"td";return(A.align?`<${t} align="${A.align}">`:`<${t}>`)+e+`</${t}>
1914
- `}strong({tokens:A}){return`<strong>${this.parser.parseInline(A)}</strong>`}em({tokens:A}){return`<em>${this.parser.parseInline(A)}</em>`}codespan({text:A}){return`<code>${dt(A,!0)}</code>`}br(A){return"<br>"}del({tokens:A}){return`<del>${this.parser.parseInline(A)}</del>`}link({href:A,title:e,tokens:t}){let n=this.parser.parseInline(t),r=Eh(A);if(r===null)return n;A=r;let s='<a href="'+A+'"';return e&&(s+=' title="'+dt(e)+'"'),s+=">"+n+"</a>",s}image({href:A,title:e,text:t,tokens:n}){n&&(t=this.parser.parseInline(n,this.parser.textRenderer));let r=Eh(A);if(r===null)return dt(t);A=r;let s=`<img src="${A}" alt="${dt(t)}"`;return e&&(s+=` title="${dt(e)}"`),s+=">",s}text(A){return"tokens"in A&&A.tokens?this.parser.parseInline(A.tokens):"escaped"in A&&A.escaped?A.text:dt(A.text)}},yc=class{strong({text:A}){return A}em({text:A}){return A}codespan({text:A}){return A}del({text:A}){return A}html({text:A}){return A}text({text:A}){return A}link({text:A}){return""+A}image({text:A}){return""+A}br(){return""}checkbox({raw:A}){return A}},Ze=class ol{constructor(e){gA(this,"options");gA(this,"renderer");gA(this,"textRenderer");this.options=e||Bn,this.options.renderer=this.options.renderer||new jo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yc}static parse(e,t){return new ol(t).parse(e)}static parseInline(e,t){return new ol(t).parseInline(e)}parse(e){var n,r;this.renderer.parser=this;let t="";for(let s=0;s<e.length;s++){let o=e[s];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[o.type]){let i=o,c=this.options.extensions.renderers[i.type].call({parser:this},i);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(i.type)){t+=c||"";continue}}let a=o;switch(a.type){case"space":{t+=this.renderer.space(a);break}case"hr":{t+=this.renderer.hr(a);break}case"heading":{t+=this.renderer.heading(a);break}case"code":{t+=this.renderer.code(a);break}case"table":{t+=this.renderer.table(a);break}case"blockquote":{t+=this.renderer.blockquote(a);break}case"list":{t+=this.renderer.list(a);break}case"checkbox":{t+=this.renderer.checkbox(a);break}case"html":{t+=this.renderer.html(a);break}case"def":{t+=this.renderer.def(a);break}case"paragraph":{t+=this.renderer.paragraph(a);break}case"text":{t+=this.renderer.text(a);break}default:{let i='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return t}parseInline(e,t=this.renderer){var r,s;this.renderer.parser=this;let n="";for(let o=0;o<e.length;o++){let a=e[o];if((s=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&s[a.type]){let c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(a.type)){n+=c||"";continue}}let i=a;switch(i.type){case"escape":{n+=t.text(i);break}case"html":{n+=t.html(i);break}case"link":{n+=t.link(i);break}case"image":{n+=t.image(i);break}case"checkbox":{n+=t.checkbox(i);break}case"strong":{n+=t.strong(i);break}case"em":{n+=t.em(i);break}case"codespan":{n+=t.codespan(i);break}case"br":{n+=t.br(i);break}case"del":{n+=t.del(i);break}case"text":{n+=t.text(i);break}default:{let c='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}},ss=(Ci=class{constructor(A){gA(this,"options");gA(this,"block");this.options=A||Bn}preprocess(A){return A}postprocess(A){return A}processAllTokens(A){return A}emStrongMask(A){return A}provideLexer(A=this.block){return A?Ge.lex:Ge.lexInline}provideParser(A=this.block){return A?Ze.parse:Ze.parseInline}},gA(Ci,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),gA(Ci,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ci),Kv=class{constructor(...A){gA(this,"defaults",fc());gA(this,"options",this.setOptions);gA(this,"parse",this.parseMarkdown(!0));gA(this,"parseInline",this.parseMarkdown(!1));gA(this,"Parser",Ze);gA(this,"Renderer",jo);gA(this,"TextRenderer",yc);gA(this,"Lexer",Ge);gA(this,"Tokenizer",Jo);gA(this,"Hooks",ss);this.use(...A)}walkTokens(A,e){var n,r;let t=[];for(let s of A)switch(t=t.concat(e.call(this,s)),s.type){case"table":{let o=s;for(let a of o.header)t=t.concat(this.walkTokens(a.tokens,e));for(let a of o.rows)for(let i of a)t=t.concat(this.walkTokens(i.tokens,e));break}case"list":{let o=s;t=t.concat(this.walkTokens(o.items,e));break}default:{let o=s;(r=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&r[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{let i=o[a].flat(1/0);t=t.concat(this.walkTokens(i,e))}):o.tokens&&(t=t.concat(this.walkTokens(o.tokens,e)))}}return t}use(...A){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return A.forEach(t=>{let n=k({},t);if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let s=e.renderers[r.name];s?e.renderers[r.name]=function(...o){let a=r.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=e[r.level];s?s.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),n.extensions=e),t.renderer){let r=this.defaults.renderer||new jo(this.defaults);for(let s in t.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,a=t.renderer[o],i=r[o];r[o]=(...c)=>{let u=a.apply(r,c);return u===!1&&(u=i.apply(r,c)),u||""}}n.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new Jo(this.defaults);for(let s in t.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,a=t.tokenizer[o],i=r[o];r[o]=(...c)=>{let u=a.apply(r,c);return u===!1&&(u=i.apply(r,c)),u}}n.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new ss;for(let s in t.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,a=t.hooks[o],i=r[o];ss.passThroughHooks.has(s)?r[o]=c=>{if(this.defaults.async&&ss.passThroughHooksRespectAsync.has(s))return I(this,null,function*(){let h=yield a.call(r,c);return i.call(r,h)});let u=a.call(r,c);return i.call(r,u)}:r[o]=(...c)=>{if(this.defaults.async)return I(this,null,function*(){let h=yield a.apply(r,c);return h===!1&&(h=yield i.apply(r,c)),h});let u=a.apply(r,c);return u===!1&&(u=i.apply(r,c)),u}}n.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,s=t.walkTokens;n.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),r&&(a=a.concat(r.call(this,o))),a}}this.defaults=k(k({},this.defaults),n)}),this}setOptions(A){return this.defaults=k(k({},this.defaults),A),this}lexer(A,e){return Ge.lex(A,e!=null?e:this.defaults)}parser(A,e){return Ze.parse(A,e!=null?e:this.defaults)}parseMarkdown(A){return(e,t)=>{let n=k({},t),r=k(k({},this.defaults),n),s=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=A),r.async)return I(this,null,function*(){let o=r.hooks?yield r.hooks.preprocess(e):e,a=yield(r.hooks?yield r.hooks.provideLexer(A):A?Ge.lex:Ge.lexInline)(o,r),i=r.hooks?yield r.hooks.processAllTokens(a):a;r.walkTokens&&(yield Promise.all(this.walkTokens(i,r.walkTokens)));let c=yield(r.hooks?yield r.hooks.provideParser(A):A?Ze.parse:Ze.parseInline)(i,r);return r.hooks?yield r.hooks.postprocess(c):c}).catch(s);try{r.hooks&&(e=r.hooks.preprocess(e));let o=(r.hooks?r.hooks.provideLexer(A):A?Ge.lex:Ge.lexInline)(e,r);r.hooks&&(o=r.hooks.processAllTokens(o)),r.walkTokens&&this.walkTokens(o,r.walkTokens);let a=(r.hooks?r.hooks.provideParser(A):A?Ze.parse:Ze.parseInline)(o,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(o){return s(o)}}}onError(A,e){return t=>{if(t.message+=`
1915
- Please report this to https://github.com/markedjs/marked.`,A){let n="<p>An error occurred:</p><pre>"+dt(t.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(t);throw t}}},mn=new Kv;function hA(A,e){return mn.parse(A,e)}hA.options=hA.setOptions=function(A){return mn.setOptions(A),hA.defaults=mn.defaults,dh(hA.defaults),hA},hA.getDefaults=fc,hA.defaults=Bn;function Nv(...A){return mn.use(...A),hA.defaults=mn.defaults,dh(hA.defaults),hA}hA.use=Nv,hA.walkTokens=function(A,e){return mn.walkTokens(A,e)},hA.parseInline=mn.parseInline,hA.Parser=Ze,hA.parser=Ze.parse,hA.Renderer=jo,hA.TextRenderer=yc,hA.Lexer=Ge,hA.lexer=Ge.lex,hA.Tokenizer=Jo,hA.Hooks=ss,hA.parse=hA,hA.options,hA.setOptions,hA.walkTokens,hA.parseInline,Ze.parse,Ge.lex;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:_h,setPrototypeOf:xh,isFrozen:$v,getPrototypeOf:zv,getOwnPropertyDescriptor:Vv}=Object;let{freeze:ae,seal:Ie,create:Uc}=Object,{apply:Ec,construct:kc}=typeof Reflect!="undefined"&&Reflect;ae||(ae=function(e){return e}),Ie||(Ie=function(e){return e}),Ec||(Ec=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return e.apply(t,r)}),kc||(kc=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const Yo=le(Array.prototype.forEach),Gv=le(Array.prototype.lastIndexOf),Sh=le(Array.prototype.pop),os=le(Array.prototype.push),Zv=le(Array.prototype.splice),qo=le(String.prototype.toLowerCase),Fc=le(String.prototype.toString),vc=le(String.prototype.match),is=le(String.prototype.replace),Xv=le(String.prototype.indexOf),Wv=le(String.prototype.trim),Xe=le(Object.prototype.hasOwnProperty),ce=le(RegExp.prototype.test),as=Jv(TypeError);function le(A){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ec(A,e,n)}}function Jv(A){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return kc(A,t)}}function eA(A,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qo;xh&&xh(A,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const s=t(r);s!==r&&($v(e)||(e[n]=s),r=s)}A[r]=!0}return A}function jv(A){for(let e=0;e<A.length;e++)Xe(A,e)||(A[e]=null);return A}function pt(A){const e=Uc(null);for(const[t,n]of _h(A))Xe(A,t)&&(Array.isArray(n)?e[t]=jv(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=pt(n):e[t]=n);return e}function cs(A,e){for(;A!==null;){const n=Vv(A,e);if(n){if(n.get)return le(n.get);if(typeof n.value=="function")return le(n.value)}A=zv(A)}function t(){return null}return t}const Ih=ae(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_c=ae(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),xc=ae(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Yv=ae(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sc=ae(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),qv=ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Th=ae(["#text"]),Hh=ae(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ic=ae(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Lh=ae(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ai=ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),A_=Ie(/\{\{[\w\W]*|[\w\W]*\}\}/gm),e_=Ie(/<%[\w\W]*|[\w\W]*%>/gm),t_=Ie(/\$\{[\w\W]*/gm),n_=Ie(/^data-[\-\w.\u00B7-\uFFFF]+$/),r_=Ie(/^aria-[\-\w]+$/),Dh=Ie(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),s_=Ie(/^(?:\w+script|data):/i),o_=Ie(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rh=Ie(/^html$/i),i_=Ie(/^[a-z][.\w]*(-[.\w]+)+$/i);var Oh=Object.freeze({__proto__:null,ARIA_ATTR:r_,ATTR_WHITESPACE:o_,CUSTOM_ELEMENT:i_,DATA_ATTR:n_,DOCTYPE_NAME:Rh,ERB_EXPR:e_,IS_ALLOWED_URI:Dh,IS_SCRIPT_OR_DATA:s_,MUSTACHE_EXPR:A_,TMPLIT_EXPR:t_});const ls={element:1,text:3,progressingInstruction:7,comment:8,document:9},a_=function(){return typeof window=="undefined"?null:window},c_=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch(o){return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Ph=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Mh(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a_();const e=Z=>Mh(Z);if(e.version="3.3.1",e.removed=[],!A||!A.document||A.document.nodeType!==ls.document||!A.Element)return e.isSupported=!1,e;let{document:t}=A;const n=t,r=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:i,NodeFilter:c,NamedNodeMap:u=A.NamedNodeMap||A.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:g}=A,m=i.prototype,b=cs(m,"cloneNode"),U=cs(m,"remove"),E=cs(m,"nextSibling"),v=cs(m,"childNodes"),F=cs(m,"parentNode");if(typeof o=="function"){const Z=t.createElement("template");Z.content&&Z.content.ownerDocument&&(t=Z.content.ownerDocument)}let y,_="";const{implementation:R,createNodeIterator:H,createDocumentFragment:z,getElementsByTagName:K}=t,{importNode:G}=n;let W=Ph();e.isSupported=typeof _h=="function"&&typeof F=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:sA,ERB_EXPR:lA,TMPLIT_EXPR:_A,DATA_ATTR:Ce,ARIA_ATTR:pe,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:fr,CUSTOM_ELEMENT:Cs}=Oh;let{IS_ALLOWED_URI:gr}=Oh,SA=null;const Br=eA({},[...Ih,..._c,...xc,...Sc,...Th]);let BA=null;const vt=eA({},[...Hh,...Ic,...Lh,...Ai]);let uA=Object.seal(Uc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ZA=null,Yt=null;const Ye=Object.seal(Uc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let IA=!0,PA=!0,_n=!1,qt=!0,XA=!1,Bt=!0,Re=!1,Oe=!1,_t=!1,qe=!1,wt=!1,mt=!1,xn=!0,WA=!1;const wr="user-content-";let bs=!0,Sn=!1,An={},he=null;const Qs=eA({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let wA=null;const bi=eA({},["audio","video","img","source","image","track"]);let ys=null;const Qi=eA({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),mr="http://www.w3.org/1998/Math/MathML",Cr="http://www.w3.org/2000/svg",At="http://www.w3.org/1999/xhtml";let en=At,In=!1,Tn=null;const Zc=eA({},[mr,Cr,At],Fc);let br=eA({},["mi","mo","mn","ms","mtext"]),Qr=eA({},["annotation-xml"]);const Xc=eA({},["title","style","font","a","script"]);let xt=null;const et=["application/xhtml+xml","text/html"],Wc="text/html";let mA=null,tn=null;const yi=t.createElement("form"),Us=function(Q){return Q instanceof RegExp||Q instanceof Function},yr=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(tn&&tn===Q)){if((!Q||typeof Q!="object")&&(Q={}),Q=pt(Q),xt=et.indexOf(Q.PARSER_MEDIA_TYPE)===-1?Wc:Q.PARSER_MEDIA_TYPE,mA=xt==="application/xhtml+xml"?Fc:qo,SA=Xe(Q,"ALLOWED_TAGS")?eA({},Q.ALLOWED_TAGS,mA):Br,BA=Xe(Q,"ALLOWED_ATTR")?eA({},Q.ALLOWED_ATTR,mA):vt,Tn=Xe(Q,"ALLOWED_NAMESPACES")?eA({},Q.ALLOWED_NAMESPACES,Fc):Zc,ys=Xe(Q,"ADD_URI_SAFE_ATTR")?eA(pt(Qi),Q.ADD_URI_SAFE_ATTR,mA):Qi,wA=Xe(Q,"ADD_DATA_URI_TAGS")?eA(pt(bi),Q.ADD_DATA_URI_TAGS,mA):bi,he=Xe(Q,"FORBID_CONTENTS")?eA({},Q.FORBID_CONTENTS,mA):Qs,ZA=Xe(Q,"FORBID_TAGS")?eA({},Q.FORBID_TAGS,mA):pt({}),Yt=Xe(Q,"FORBID_ATTR")?eA({},Q.FORBID_ATTR,mA):pt({}),An=Xe(Q,"USE_PROFILES")?Q.USE_PROFILES:!1,IA=Q.ALLOW_ARIA_ATTR!==!1,PA=Q.ALLOW_DATA_ATTR!==!1,_n=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,qt=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,XA=Q.SAFE_FOR_TEMPLATES||!1,Bt=Q.SAFE_FOR_XML!==!1,Re=Q.WHOLE_DOCUMENT||!1,qe=Q.RETURN_DOM||!1,wt=Q.RETURN_DOM_FRAGMENT||!1,mt=Q.RETURN_TRUSTED_TYPE||!1,_t=Q.FORCE_BODY||!1,xn=Q.SANITIZE_DOM!==!1,WA=Q.SANITIZE_NAMED_PROPS||!1,bs=Q.KEEP_CONTENT!==!1,Sn=Q.IN_PLACE||!1,gr=Q.ALLOWED_URI_REGEXP||Dh,en=Q.NAMESPACE||At,br=Q.MATHML_TEXT_INTEGRATION_POINTS||br,Qr=Q.HTML_INTEGRATION_POINTS||Qr,uA=Q.CUSTOM_ELEMENT_HANDLING||{},Q.CUSTOM_ELEMENT_HANDLING&&Us(Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(uA.tagNameCheck=Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&Us(Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(uA.attributeNameCheck=Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(uA.allowCustomizedBuiltInElements=Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),XA&&(PA=!1),wt&&(qe=!0),An&&(SA=eA({},Th),BA=[],An.html===!0&&(eA(SA,Ih),eA(BA,Hh)),An.svg===!0&&(eA(SA,_c),eA(BA,Ic),eA(BA,Ai)),An.svgFilters===!0&&(eA(SA,xc),eA(BA,Ic),eA(BA,Ai)),An.mathMl===!0&&(eA(SA,Sc),eA(BA,Lh),eA(BA,Ai))),Q.ADD_TAGS&&(typeof Q.ADD_TAGS=="function"?Ye.tagCheck=Q.ADD_TAGS:(SA===Br&&(SA=pt(SA)),eA(SA,Q.ADD_TAGS,mA))),Q.ADD_ATTR&&(typeof Q.ADD_ATTR=="function"?Ye.attributeCheck=Q.ADD_ATTR:(BA===vt&&(BA=pt(BA)),eA(BA,Q.ADD_ATTR,mA))),Q.ADD_URI_SAFE_ATTR&&eA(ys,Q.ADD_URI_SAFE_ATTR,mA),Q.FORBID_CONTENTS&&(he===Qs&&(he=pt(he)),eA(he,Q.FORBID_CONTENTS,mA)),Q.ADD_FORBID_CONTENTS&&(he===Qs&&(he=pt(he)),eA(he,Q.ADD_FORBID_CONTENTS,mA)),bs&&(SA["#text"]=!0),Re&&eA(SA,["html","head","body"]),SA.table&&(eA(SA,["tbody"]),delete ZA.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw as('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw as('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=Q.TRUSTED_TYPES_POLICY,_=y.createHTML("")}else y===void 0&&(y=c_(g,r)),y!==null&&typeof _=="string"&&(_=y.createHTML(""));ae&&ae(Q),tn=Q}},Es=eA({},[..._c,...xc,...Yv]),Ui=eA({},[...Sc,...qv]),Jc=function(Q){let T=F(Q);(!T||!T.tagName)&&(T={namespaceURI:en,tagName:"template"});const P=qo(Q.tagName),fA=qo(T.tagName);return Tn[Q.namespaceURI]?Q.namespaceURI===Cr?T.namespaceURI===At?P==="svg":T.namespaceURI===mr?P==="svg"&&(fA==="annotation-xml"||br[fA]):!!Es[P]:Q.namespaceURI===mr?T.namespaceURI===At?P==="math":T.namespaceURI===Cr?P==="math"&&Qr[fA]:!!Ui[P]:Q.namespaceURI===At?T.namespaceURI===Cr&&!Qr[fA]||T.namespaceURI===mr&&!br[fA]?!1:!Ui[P]&&(Xc[P]||!Es[P]):!!(xt==="application/xhtml+xml"&&Tn[Q.namespaceURI]):!1},Pe=function(Q){os(e.removed,{element:Q});try{F(Q).removeChild(Q)}catch(T){U(Q)}},Me=function(Q,T){try{os(e.removed,{attribute:T.getAttributeNode(Q),from:T})}catch(P){os(e.removed,{attribute:null,from:T})}if(T.removeAttribute(Q),Q==="is")if(qe||wt)try{Pe(T)}catch(P){}else try{T.setAttribute(Q,"")}catch(P){}},Ei=function(Q){let T=null,P=null;if(_t)Q="<remove></remove>"+Q;else{const TA=vc(Q,/^[\r\n\t ]+/);P=TA&&TA[0]}xt==="application/xhtml+xml"&&en===At&&(Q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Q+"</body></html>");const fA=y?y.createHTML(Q):Q;if(en===At)try{T=new f().parseFromString(fA,xt)}catch(TA){}if(!T||!T.documentElement){T=R.createDocument(en,"template",null);try{T.documentElement.innerHTML=In?_:fA}catch(TA){}}const YA=T.body||T.documentElement;return Q&&P&&YA.insertBefore(t.createTextNode(P),YA.childNodes[0]||null),en===At?K.call(T,Re?"html":"body")[0]:Re?T.documentElement:YA},ks=function(Q){return H.call(Q.ownerDocument||Q,Q,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Fs=function(Q){return Q instanceof h&&(typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||!(Q.attributes instanceof u)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function")},ki=function(Q){return typeof a=="function"&&Q instanceof a};function tt(Z,Q,T){Yo(Z,P=>{P.call(e,Q,T,tn)})}const Fi=function(Q){let T=null;if(tt(W.beforeSanitizeElements,Q,null),Fs(Q))return Pe(Q),!0;const P=mA(Q.nodeName);if(tt(W.uponSanitizeElement,Q,{tagName:P,allowedTags:SA}),Bt&&Q.hasChildNodes()&&!ki(Q.firstElementChild)&&ce(/<[/\w!]/g,Q.innerHTML)&&ce(/<[/\w!]/g,Q.textContent)||Q.nodeType===ls.progressingInstruction||Bt&&Q.nodeType===ls.comment&&ce(/<[/\w]/g,Q.data))return Pe(Q),!0;if(!(Ye.tagCheck instanceof Function&&Ye.tagCheck(P))&&(!SA[P]||ZA[P])){if(!ZA[P]&&_i(P)&&(uA.tagNameCheck instanceof RegExp&&ce(uA.tagNameCheck,P)||uA.tagNameCheck instanceof Function&&uA.tagNameCheck(P)))return!1;if(bs&&!he[P]){const fA=F(Q)||Q.parentNode,YA=v(Q)||Q.childNodes;if(YA&&fA){const TA=YA.length;for(let oe=TA-1;oe>=0;--oe){const nt=b(YA[oe],!0);nt.__removalCount=(Q.__removalCount||0)+1,fA.insertBefore(nt,E(Q))}}}return Pe(Q),!0}return Q instanceof i&&!Jc(Q)||(P==="noscript"||P==="noembed"||P==="noframes")&&ce(/<\/no(script|embed|frames)/i,Q.innerHTML)?(Pe(Q),!0):(XA&&Q.nodeType===ls.text&&(T=Q.textContent,Yo([sA,lA,_A],fA=>{T=is(T,fA," ")}),Q.textContent!==T&&(os(e.removed,{element:Q.cloneNode()}),Q.textContent=T)),tt(W.afterSanitizeElements,Q,null),!1)},vi=function(Q,T,P){if(xn&&(T==="id"||T==="name")&&(P in t||P in yi))return!1;if(!(PA&&!Yt[T]&&ce(Ce,T))){if(!(IA&&ce(pe,T))){if(!(Ye.attributeCheck instanceof Function&&Ye.attributeCheck(T,Q))){if(!BA[T]||Yt[T]){if(!(_i(Q)&&(uA.tagNameCheck instanceof RegExp&&ce(uA.tagNameCheck,Q)||uA.tagNameCheck instanceof Function&&uA.tagNameCheck(Q))&&(uA.attributeNameCheck instanceof RegExp&&ce(uA.attributeNameCheck,T)||uA.attributeNameCheck instanceof Function&&uA.attributeNameCheck(T,Q))||T==="is"&&uA.allowCustomizedBuiltInElements&&(uA.tagNameCheck instanceof RegExp&&ce(uA.tagNameCheck,P)||uA.tagNameCheck instanceof Function&&uA.tagNameCheck(P))))return!1}else if(!ys[T]){if(!ce(gr,is(P,fr,""))){if(!((T==="src"||T==="xlink:href"||T==="href")&&Q!=="script"&&Xv(P,"data:")===0&&wA[Q])){if(!(_n&&!ce(De,is(P,fr,"")))){if(P)return!1}}}}}}}return!0},_i=function(Q){return Q!=="annotation-xml"&&vc(Q,Cs)},vs=function(Q){tt(W.beforeSanitizeAttributes,Q,null);const{attributes:T}=Q;if(!T||Fs(Q))return;const P={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:BA,forceKeepAttr:void 0};let fA=T.length;for(;fA--;){const YA=T[fA],{name:TA,namespaceURI:oe,value:nt}=YA,Ct=mA(TA),_s=nt;let JA=TA==="value"?_s:Wv(_s);if(P.attrName=Ct,P.attrValue=JA,P.keepAttr=!0,P.forceKeepAttr=void 0,tt(W.uponSanitizeAttribute,Q,P),JA=P.attrValue,WA&&(Ct==="id"||Ct==="name")&&(Me(TA,Q),JA=wr+JA),Bt&&ce(/((--!?|])>)|<\/(style|title|textarea)/i,JA)){Me(TA,Q);continue}if(Ct==="attributename"&&vc(JA,"href")){Me(TA,Q);continue}if(P.forceKeepAttr)continue;if(!P.keepAttr){Me(TA,Q);continue}if(!qt&&ce(/\/>/i,JA)){Me(TA,Q);continue}XA&&Yo([sA,lA,_A],Si=>{JA=is(JA,Si," ")});const xi=mA(Q.nodeName);if(!vi(xi,Ct,JA)){Me(TA,Q);continue}if(y&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!oe)switch(g.getAttributeType(xi,Ct)){case"TrustedHTML":{JA=y.createHTML(JA);break}case"TrustedScriptURL":{JA=y.createScriptURL(JA);break}}if(JA!==_s)try{oe?Q.setAttributeNS(oe,TA,JA):Q.setAttribute(TA,JA),Fs(Q)?Pe(Q):Sh(e.removed)}catch(Si){Me(TA,Q)}}tt(W.afterSanitizeAttributes,Q,null)},St=function Z(Q){let T=null;const P=ks(Q);for(tt(W.beforeSanitizeShadowDOM,Q,null);T=P.nextNode();)tt(W.uponSanitizeShadowNode,T,null),Fi(T),vs(T),T.content instanceof s&&Z(T.content);tt(W.afterSanitizeShadowDOM,Q,null)};return e.sanitize=function(Z){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=null,P=null,fA=null,YA=null;if(In=!Z,In&&(Z="<!-->"),typeof Z!="string"&&!ki(Z))if(typeof Z.toString=="function"){if(Z=Z.toString(),typeof Z!="string")throw as("dirty is not a string, aborting")}else throw as("toString is not a function");if(!e.isSupported)return Z;if(Oe||yr(Q),e.removed=[],typeof Z=="string"&&(Sn=!1),Sn){if(Z.nodeName){const nt=mA(Z.nodeName);if(!SA[nt]||ZA[nt])throw as("root node is forbidden and cannot be sanitized in-place")}}else if(Z instanceof a)T=Ei("<!---->"),P=T.ownerDocument.importNode(Z,!0),P.nodeType===ls.element&&P.nodeName==="BODY"||P.nodeName==="HTML"?T=P:T.appendChild(P);else{if(!qe&&!XA&&!Re&&Z.indexOf("<")===-1)return y&&mt?y.createHTML(Z):Z;if(T=Ei(Z),!T)return qe?null:mt?_:""}T&&_t&&Pe(T.firstChild);const TA=ks(Sn?Z:T);for(;fA=TA.nextNode();)Fi(fA),vs(fA),fA.content instanceof s&&St(fA.content);if(Sn)return Z;if(qe){if(wt)for(YA=z.call(T.ownerDocument);T.firstChild;)YA.appendChild(T.firstChild);else YA=T;return(BA.shadowroot||BA.shadowrootmode)&&(YA=G.call(n,YA,!0)),YA}let oe=Re?T.outerHTML:T.innerHTML;return Re&&SA["!doctype"]&&T.ownerDocument&&T.ownerDocument.doctype&&T.ownerDocument.doctype.name&&ce(Rh,T.ownerDocument.doctype.name)&&(oe="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
1916
- `+oe),XA&&Yo([sA,lA,_A],nt=>{oe=is(oe,nt," ")}),y&&mt?y.createHTML(oe):oe},e.setConfig=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yr(Z),Oe=!0},e.clearConfig=function(){tn=null,Oe=!1},e.isValidAttribute=function(Z,Q,T){tn||yr({});const P=mA(Z),fA=mA(Q);return vi(P,fA,T)},e.addHook=function(Z,Q){typeof Q=="function"&&os(W[Z],Q)},e.removeHook=function(Z,Q){if(Q!==void 0){const T=Gv(W[Z],Q);return T===-1?void 0:Zv(W[Z],T,1)[0]}return Sh(W[Z])},e.removeHooks=function(Z){W[Z]=[]},e.removeAllHooks=function(){W=Ph()},e}var l_=Mh();function Kh(A){const e=hA.parse(A,{gfm:!0,breaks:!0,async:!1});return l_.sanitize(e)}function u_(A){return I(this,null,function*(){var s;try{(s=A.focus)==null||s.call(A)}catch(o){}A.scrollIntoView({block:"center",inline:"center",behavior:"instant"});let e=A.getBoundingClientRect();e.width===0&&e.height===0&&(yield d_(),e=A.getBoundingClientRect());const t=e.left+e.width/2,n=e.top+e.height/2,r={bubbles:!0,cancelable:!0,clientX:t,clientY:n};typeof PointerEvent=="function"&&A.dispatchEvent(new PointerEvent("pointerdown",r)),A.dispatchEvent(new MouseEvent("mousedown",r)),typeof PointerEvent=="function"&&A.dispatchEvent(new PointerEvent("pointerup",r)),A.dispatchEvent(new MouseEvent("mouseup",r)),A.click()})}function d_(){return new Promise(A=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>A()):setTimeout(A,16)})}function p_(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Tc={exports:{}};/*!
1913
+ `}strong({tokens:A}){return`<strong>${this.parser.parseInline(A)}</strong>`}em({tokens:A}){return`<em>${this.parser.parseInline(A)}</em>`}codespan({text:A}){return`<code>${pt(A,!0)}</code>`}br(A){return"<br>"}del({tokens:A}){return`<del>${this.parser.parseInline(A)}</del>`}link({href:A,title:e,tokens:t}){let n=this.parser.parseInline(t),r=_h(A);if(r===null)return n;A=r;let s='<a href="'+A+'"';return e&&(s+=' title="'+pt(e)+'"'),s+=">"+n+"</a>",s}image({href:A,title:e,text:t,tokens:n}){n&&(t=this.parser.parseInline(n,this.parser.textRenderer));let r=_h(A);if(r===null)return pt(t);A=r;let s=`<img src="${A}" alt="${pt(t)}"`;return e&&(s+=` title="${pt(e)}"`),s+=">",s}text(A){return"tokens"in A&&A.tokens?this.parser.parseInline(A.tokens):"escaped"in A&&A.escaped?A.text:pt(A.text)}},kc=class{strong({text:A}){return A}em({text:A}){return A}codespan({text:A}){return A}del({text:A}){return A}html({text:A}){return A}text({text:A}){return A}link({text:A}){return""+A}image({text:A}){return""+A}br(){return""}checkbox({raw:A}){return A}},Ze=class cl{constructor(e){gA(this,"options");gA(this,"renderer");gA(this,"textRenderer");this.options=e||wn,this.options.renderer=this.options.renderer||new Yo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new kc}static parse(e,t){return new cl(t).parse(e)}static parseInline(e,t){return new cl(t).parseInline(e)}parse(e){var n,r;this.renderer.parser=this;let t="";for(let s=0;s<e.length;s++){let o=e[s];if((r=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&r[o.type]){let i=o,c=this.options.extensions.renderers[i.type].call({parser:this},i);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(i.type)){t+=c||"";continue}}let a=o;switch(a.type){case"space":{t+=this.renderer.space(a);break}case"hr":{t+=this.renderer.hr(a);break}case"heading":{t+=this.renderer.heading(a);break}case"code":{t+=this.renderer.code(a);break}case"table":{t+=this.renderer.table(a);break}case"blockquote":{t+=this.renderer.blockquote(a);break}case"list":{t+=this.renderer.list(a);break}case"checkbox":{t+=this.renderer.checkbox(a);break}case"html":{t+=this.renderer.html(a);break}case"def":{t+=this.renderer.def(a);break}case"paragraph":{t+=this.renderer.paragraph(a);break}case"text":{t+=this.renderer.text(a);break}default:{let i='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return t}parseInline(e,t=this.renderer){var r,s;this.renderer.parser=this;let n="";for(let o=0;o<e.length;o++){let a=e[o];if((s=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&s[a.type]){let c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(a.type)){n+=c||"";continue}}let i=a;switch(i.type){case"escape":{n+=t.text(i);break}case"html":{n+=t.html(i);break}case"link":{n+=t.link(i);break}case"image":{n+=t.image(i);break}case"checkbox":{n+=t.checkbox(i);break}case"strong":{n+=t.strong(i);break}case"em":{n+=t.em(i);break}case"codespan":{n+=t.codespan(i);break}case"br":{n+=t.br(i);break}case"del":{n+=t.del(i);break}case"text":{n+=t.text(i);break}default:{let c='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}},os=(bi=class{constructor(A){gA(this,"options");gA(this,"block");this.options=A||wn}preprocess(A){return A}postprocess(A){return A}processAllTokens(A){return A}emStrongMask(A){return A}provideLexer(A=this.block){return A?Ge.lex:Ge.lexInline}provideParser(A=this.block){return A?Ze.parse:Ze.parseInline}},gA(bi,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),gA(bi,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),bi),zv=class{constructor(...A){gA(this,"defaults",wc());gA(this,"options",this.setOptions);gA(this,"parse",this.parseMarkdown(!0));gA(this,"parseInline",this.parseMarkdown(!1));gA(this,"Parser",Ze);gA(this,"Renderer",Yo);gA(this,"TextRenderer",kc);gA(this,"Lexer",Ge);gA(this,"Tokenizer",jo);gA(this,"Hooks",os);this.use(...A)}walkTokens(A,e){var n,r;let t=[];for(let s of A)switch(t=t.concat(e.call(this,s)),s.type){case"table":{let o=s;for(let a of o.header)t=t.concat(this.walkTokens(a.tokens,e));for(let a of o.rows)for(let i of a)t=t.concat(this.walkTokens(i.tokens,e));break}case"list":{let o=s;t=t.concat(this.walkTokens(o.items,e));break}default:{let o=s;(r=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&r[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{let i=o[a].flat(1/0);t=t.concat(this.walkTokens(i,e))}):o.tokens&&(t=t.concat(this.walkTokens(o.tokens,e)))}}return t}use(...A){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return A.forEach(t=>{let n=F({},t);if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let s=e.renderers[r.name];s?e.renderers[r.name]=function(...o){let a=r.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=e[r.level];s?s.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),n.extensions=e),t.renderer){let r=this.defaults.renderer||new Yo(this.defaults);for(let s in t.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,a=t.renderer[o],i=r[o];r[o]=(...c)=>{let u=a.apply(r,c);return u===!1&&(u=i.apply(r,c)),u||""}}n.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new jo(this.defaults);for(let s in t.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,a=t.tokenizer[o],i=r[o];r[o]=(...c)=>{let u=a.apply(r,c);return u===!1&&(u=i.apply(r,c)),u}}n.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new os;for(let s in t.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,a=t.hooks[o],i=r[o];os.passThroughHooks.has(s)?r[o]=c=>{if(this.defaults.async&&os.passThroughHooksRespectAsync.has(s))return I(this,null,function*(){let h=yield a.call(r,c);return i.call(r,h)});let u=a.call(r,c);return i.call(r,u)}:r[o]=(...c)=>{if(this.defaults.async)return I(this,null,function*(){let h=yield a.apply(r,c);return h===!1&&(h=yield i.apply(r,c)),h});let u=a.apply(r,c);return u===!1&&(u=i.apply(r,c)),u}}n.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,s=t.walkTokens;n.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),r&&(a=a.concat(r.call(this,o))),a}}this.defaults=F(F({},this.defaults),n)}),this}setOptions(A){return this.defaults=F(F({},this.defaults),A),this}lexer(A,e){return Ge.lex(A,e!=null?e:this.defaults)}parser(A,e){return Ze.parse(A,e!=null?e:this.defaults)}parseMarkdown(A){return(e,t)=>{let n=F({},t),r=F(F({},this.defaults),n),s=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=A),r.async)return I(this,null,function*(){let o=r.hooks?yield r.hooks.preprocess(e):e,a=yield(r.hooks?yield r.hooks.provideLexer(A):A?Ge.lex:Ge.lexInline)(o,r),i=r.hooks?yield r.hooks.processAllTokens(a):a;r.walkTokens&&(yield Promise.all(this.walkTokens(i,r.walkTokens)));let c=yield(r.hooks?yield r.hooks.provideParser(A):A?Ze.parse:Ze.parseInline)(i,r);return r.hooks?yield r.hooks.postprocess(c):c}).catch(s);try{r.hooks&&(e=r.hooks.preprocess(e));let o=(r.hooks?r.hooks.provideLexer(A):A?Ge.lex:Ge.lexInline)(e,r);r.hooks&&(o=r.hooks.processAllTokens(o)),r.walkTokens&&this.walkTokens(o,r.walkTokens);let a=(r.hooks?r.hooks.provideParser(A):A?Ze.parse:Ze.parseInline)(o,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(o){return s(o)}}}onError(A,e){return t=>{if(t.message+=`
1914
+ Please report this to https://github.com/markedjs/marked.`,A){let n="<p>An error occurred:</p><pre>"+pt(t.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(t);throw t}}},Cn=new zv;function pA(A,e){return Cn.parse(A,e)}pA.options=pA.setOptions=function(A){return Cn.setOptions(A),pA.defaults=Cn.defaults,gh(pA.defaults),pA},pA.getDefaults=wc,pA.defaults=wn;function Vv(...A){return Cn.use(...A),pA.defaults=Cn.defaults,gh(pA.defaults),pA}pA.use=Vv,pA.walkTokens=function(A,e){return Cn.walkTokens(A,e)},pA.parseInline=Cn.parseInline,pA.Parser=Ze,pA.parser=Ze.parse,pA.Renderer=Yo,pA.TextRenderer=kc,pA.Lexer=Ge,pA.lexer=Ge.lex,pA.Tokenizer=jo,pA.Hooks=os,pA.parse=pA,pA.options,pA.setOptions,pA.walkTokens,pA.parseInline,Ze.parse,Ge.lex;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Th,setPrototypeOf:Hh,isFrozen:Gv,getPrototypeOf:Zv,getOwnPropertyDescriptor:Xv}=Object;let{freeze:ce,seal:Te,create:Fc}=Object,{apply:vc,construct:_c}=typeof Reflect!="undefined"&&Reflect;ce||(ce=function(e){return e}),Te||(Te=function(e){return e}),vc||(vc=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return e.apply(t,r)}),_c||(_c=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const qo=ue(Array.prototype.forEach),Wv=ue(Array.prototype.lastIndexOf),Lh=ue(Array.prototype.pop),is=ue(Array.prototype.push),Jv=ue(Array.prototype.splice),Ai=ue(String.prototype.toLowerCase),xc=ue(String.prototype.toString),Sc=ue(String.prototype.match),as=ue(String.prototype.replace),jv=ue(String.prototype.indexOf),Yv=ue(String.prototype.trim),Xe=ue(Object.prototype.hasOwnProperty),le=ue(RegExp.prototype.test),cs=qv(TypeError);function ue(A){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return vc(A,e,n)}}function qv(A){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _c(A,t)}}function eA(A,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ai;Hh&&Hh(A,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const s=t(r);s!==r&&(Gv(e)||(e[n]=s),r=s)}A[r]=!0}return A}function A_(A){for(let e=0;e<A.length;e++)Xe(A,e)||(A[e]=null);return A}function ht(A){const e=Fc(null);for(const[t,n]of Th(A))Xe(A,t)&&(Array.isArray(n)?e[t]=A_(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=ht(n):e[t]=n);return e}function ls(A,e){for(;A!==null;){const n=Xv(A,e);if(n){if(n.get)return ue(n.get);if(typeof n.value=="function")return ue(n.value)}A=Zv(A)}function t(){return null}return t}const Rh=ce(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ic=ce(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Tc=ce(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),e_=ce(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Hc=ce(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),t_=ce(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Dh=ce(["#text"]),Oh=ce(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Lc=ce(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ph=ce(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ei=ce(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),n_=Te(/\{\{[\w\W]*|[\w\W]*\}\}/gm),r_=Te(/<%[\w\W]*|[\w\W]*%>/gm),s_=Te(/\$\{[\w\W]*/gm),o_=Te(/^data-[\-\w.\u00B7-\uFFFF]+$/),i_=Te(/^aria-[\-\w]+$/),Mh=Te(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),a_=Te(/^(?:\w+script|data):/i),c_=Te(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nh=Te(/^html$/i),l_=Te(/^[a-z][.\w]*(-[.\w]+)+$/i);var Kh=Object.freeze({__proto__:null,ARIA_ATTR:i_,ATTR_WHITESPACE:c_,CUSTOM_ELEMENT:l_,DATA_ATTR:o_,DOCTYPE_NAME:Nh,ERB_EXPR:r_,IS_ALLOWED_URI:Mh,IS_SCRIPT_OR_DATA:a_,MUSTACHE_EXPR:n_,TMPLIT_EXPR:s_});const us={element:1,text:3,progressingInstruction:7,comment:8,document:9},u_=function(){return typeof window=="undefined"?null:window},d_=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch(o){return console.warn("TrustedTypes policy "+s+" could not be created."),null}},$h=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function zh(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u_();const e=G=>zh(G);if(e.version="3.3.1",e.removed=[],!A||!A.document||A.document.nodeType!==us.document||!A.Element)return e.isSupported=!1,e;let{document:t}=A;const n=t,r=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:i,NodeFilter:c,NamedNodeMap:u=A.NamedNodeMap||A.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:g}=A,m=i.prototype,b=ls(m,"cloneNode"),E=ls(m,"remove"),k=ls(m,"nextSibling"),v=ls(m,"childNodes"),y=ls(m,"parentNode");if(typeof o=="function"){const G=t.createElement("template");G.content&&G.content.ownerDocument&&(t=G.content.ownerDocument)}let U,x="";const{implementation:R,createNodeIterator:H,createDocumentFragment:X,getElementsByTagName:N}=t,{importNode:W}=n;let K=$h();e.isSupported=typeof Th=="function"&&typeof y=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:nA,ERB_EXPR:hA,TMPLIT_EXPR:_A,DATA_ATTR:jA,ARIA_ATTR:he,IS_SCRIPT_OR_DATA:Ye,ATTR_WHITESPACE:xn,CUSTOM_ELEMENT:bs}=Kh;let{IS_ALLOWED_URI:Br}=Kh,xA=null;const wr=eA({},[...Rh,...Ic,...Tc,...Hc,...Dh]);let SA=null;const St=eA({},[...Oh,...Lc,...Ph,...ei]);let lA=Object.seal(Fc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),YA=null,qe=null;const be=Object.seal(Fc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let IA=!0,OA=!0,Sn=!1,In=!0,GA=!1,wt=!0,De=!1,Oe=!1,It=!1,At=!1,mt=!1,Ct=!1,Tn=!0,en=!1;const mr="user-content-";let ZA=!0,bt=!1,et={},fe=null;const Qs=eA({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let BA=null;const Qi=eA({},["audio","video","img","source","image","track"]);let ys=null;const yi=eA({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Cr="http://www.w3.org/1998/Math/MathML",br="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let tn=tt,Hn=!1,Ln=null;const Jc=eA({},[Cr,br,tt],xc);let Qr=eA({},["mi","mo","mn","ms","mtext"]),yr=eA({},["annotation-xml"]);const jc=eA({},["title","style","font","a","script"]);let Tt=null;const nt=["application/xhtml+xml","text/html"],Yc="text/html";let wA=null,nn=null;const Ui=t.createElement("form"),Us=function(Q){return Q instanceof RegExp||Q instanceof Function},Ur=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(nn&&nn===Q)){if((!Q||typeof Q!="object")&&(Q={}),Q=ht(Q),Tt=nt.indexOf(Q.PARSER_MEDIA_TYPE)===-1?Yc:Q.PARSER_MEDIA_TYPE,wA=Tt==="application/xhtml+xml"?xc:Ai,xA=Xe(Q,"ALLOWED_TAGS")?eA({},Q.ALLOWED_TAGS,wA):wr,SA=Xe(Q,"ALLOWED_ATTR")?eA({},Q.ALLOWED_ATTR,wA):St,Ln=Xe(Q,"ALLOWED_NAMESPACES")?eA({},Q.ALLOWED_NAMESPACES,xc):Jc,ys=Xe(Q,"ADD_URI_SAFE_ATTR")?eA(ht(yi),Q.ADD_URI_SAFE_ATTR,wA):yi,BA=Xe(Q,"ADD_DATA_URI_TAGS")?eA(ht(Qi),Q.ADD_DATA_URI_TAGS,wA):Qi,fe=Xe(Q,"FORBID_CONTENTS")?eA({},Q.FORBID_CONTENTS,wA):Qs,YA=Xe(Q,"FORBID_TAGS")?eA({},Q.FORBID_TAGS,wA):ht({}),qe=Xe(Q,"FORBID_ATTR")?eA({},Q.FORBID_ATTR,wA):ht({}),et=Xe(Q,"USE_PROFILES")?Q.USE_PROFILES:!1,IA=Q.ALLOW_ARIA_ATTR!==!1,OA=Q.ALLOW_DATA_ATTR!==!1,Sn=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,In=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,GA=Q.SAFE_FOR_TEMPLATES||!1,wt=Q.SAFE_FOR_XML!==!1,De=Q.WHOLE_DOCUMENT||!1,At=Q.RETURN_DOM||!1,mt=Q.RETURN_DOM_FRAGMENT||!1,Ct=Q.RETURN_TRUSTED_TYPE||!1,It=Q.FORCE_BODY||!1,Tn=Q.SANITIZE_DOM!==!1,en=Q.SANITIZE_NAMED_PROPS||!1,ZA=Q.KEEP_CONTENT!==!1,bt=Q.IN_PLACE||!1,Br=Q.ALLOWED_URI_REGEXP||Mh,tn=Q.NAMESPACE||tt,Qr=Q.MATHML_TEXT_INTEGRATION_POINTS||Qr,yr=Q.HTML_INTEGRATION_POINTS||yr,lA=Q.CUSTOM_ELEMENT_HANDLING||{},Q.CUSTOM_ELEMENT_HANDLING&&Us(Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(lA.tagNameCheck=Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&Us(Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(lA.attributeNameCheck=Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(lA.allowCustomizedBuiltInElements=Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),GA&&(OA=!1),mt&&(At=!0),et&&(xA=eA({},Dh),SA=[],et.html===!0&&(eA(xA,Rh),eA(SA,Oh)),et.svg===!0&&(eA(xA,Ic),eA(SA,Lc),eA(SA,ei)),et.svgFilters===!0&&(eA(xA,Tc),eA(SA,Lc),eA(SA,ei)),et.mathMl===!0&&(eA(xA,Hc),eA(SA,Ph),eA(SA,ei))),Q.ADD_TAGS&&(typeof Q.ADD_TAGS=="function"?be.tagCheck=Q.ADD_TAGS:(xA===wr&&(xA=ht(xA)),eA(xA,Q.ADD_TAGS,wA))),Q.ADD_ATTR&&(typeof Q.ADD_ATTR=="function"?be.attributeCheck=Q.ADD_ATTR:(SA===St&&(SA=ht(SA)),eA(SA,Q.ADD_ATTR,wA))),Q.ADD_URI_SAFE_ATTR&&eA(ys,Q.ADD_URI_SAFE_ATTR,wA),Q.FORBID_CONTENTS&&(fe===Qs&&(fe=ht(fe)),eA(fe,Q.FORBID_CONTENTS,wA)),Q.ADD_FORBID_CONTENTS&&(fe===Qs&&(fe=ht(fe)),eA(fe,Q.ADD_FORBID_CONTENTS,wA)),ZA&&(xA["#text"]=!0),De&&eA(xA,["html","head","body"]),xA.table&&(eA(xA,["tbody"]),delete YA.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw cs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');U=Q.TRUSTED_TYPES_POLICY,x=U.createHTML("")}else U===void 0&&(U=d_(g,r)),U!==null&&typeof x=="string"&&(x=U.createHTML(""));ce&&ce(Q),nn=Q}},Es=eA({},[...Ic,...Tc,...e_]),Ei=eA({},[...Hc,...t_]),qc=function(Q){let T=y(Q);(!T||!T.tagName)&&(T={namespaceURI:tn,tagName:"template"});const P=Ai(Q.tagName),fA=Ai(T.tagName);return Ln[Q.namespaceURI]?Q.namespaceURI===br?T.namespaceURI===tt?P==="svg":T.namespaceURI===Cr?P==="svg"&&(fA==="annotation-xml"||Qr[fA]):!!Es[P]:Q.namespaceURI===Cr?T.namespaceURI===tt?P==="math":T.namespaceURI===br?P==="math"&&yr[fA]:!!Ei[P]:Q.namespaceURI===tt?T.namespaceURI===br&&!yr[fA]||T.namespaceURI===Cr&&!Qr[fA]?!1:!Ei[P]&&(jc[P]||!Es[P]):!!(Tt==="application/xhtml+xml"&&Ln[Q.namespaceURI]):!1},Pe=function(Q){is(e.removed,{element:Q});try{y(Q).removeChild(Q)}catch(T){E(Q)}},Me=function(Q,T){try{is(e.removed,{attribute:T.getAttributeNode(Q),from:T})}catch(P){is(e.removed,{attribute:null,from:T})}if(T.removeAttribute(Q),Q==="is")if(At||mt)try{Pe(T)}catch(P){}else try{T.setAttribute(Q,"")}catch(P){}},ki=function(Q){let T=null,P=null;if(It)Q="<remove></remove>"+Q;else{const TA=Sc(Q,/^[\r\n\t ]+/);P=TA&&TA[0]}Tt==="application/xhtml+xml"&&tn===tt&&(Q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Q+"</body></html>");const fA=U?U.createHTML(Q):Q;if(tn===tt)try{T=new f().parseFromString(fA,Tt)}catch(TA){}if(!T||!T.documentElement){T=R.createDocument(tn,"template",null);try{T.documentElement.innerHTML=Hn?x:fA}catch(TA){}}const qA=T.body||T.documentElement;return Q&&P&&qA.insertBefore(t.createTextNode(P),qA.childNodes[0]||null),tn===tt?N.call(T,De?"html":"body")[0]:De?T.documentElement:qA},ks=function(Q){return H.call(Q.ownerDocument||Q,Q,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Fs=function(Q){return Q instanceof h&&(typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||!(Q.attributes instanceof u)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function")},Fi=function(Q){return typeof a=="function"&&Q instanceof a};function rt(G,Q,T){qo(G,P=>{P.call(e,Q,T,nn)})}const vi=function(Q){let T=null;if(rt(K.beforeSanitizeElements,Q,null),Fs(Q))return Pe(Q),!0;const P=wA(Q.nodeName);if(rt(K.uponSanitizeElement,Q,{tagName:P,allowedTags:xA}),wt&&Q.hasChildNodes()&&!Fi(Q.firstElementChild)&&le(/<[/\w!]/g,Q.innerHTML)&&le(/<[/\w!]/g,Q.textContent)||Q.nodeType===us.progressingInstruction||wt&&Q.nodeType===us.comment&&le(/<[/\w]/g,Q.data))return Pe(Q),!0;if(!(be.tagCheck instanceof Function&&be.tagCheck(P))&&(!xA[P]||YA[P])){if(!YA[P]&&xi(P)&&(lA.tagNameCheck instanceof RegExp&&le(lA.tagNameCheck,P)||lA.tagNameCheck instanceof Function&&lA.tagNameCheck(P)))return!1;if(ZA&&!fe[P]){const fA=y(Q)||Q.parentNode,qA=v(Q)||Q.childNodes;if(qA&&fA){const TA=qA.length;for(let ie=TA-1;ie>=0;--ie){const st=b(qA[ie],!0);st.__removalCount=(Q.__removalCount||0)+1,fA.insertBefore(st,k(Q))}}}return Pe(Q),!0}return Q instanceof i&&!qc(Q)||(P==="noscript"||P==="noembed"||P==="noframes")&&le(/<\/no(script|embed|frames)/i,Q.innerHTML)?(Pe(Q),!0):(GA&&Q.nodeType===us.text&&(T=Q.textContent,qo([nA,hA,_A],fA=>{T=as(T,fA," ")}),Q.textContent!==T&&(is(e.removed,{element:Q.cloneNode()}),Q.textContent=T)),rt(K.afterSanitizeElements,Q,null),!1)},_i=function(Q,T,P){if(Tn&&(T==="id"||T==="name")&&(P in t||P in Ui))return!1;if(!(OA&&!qe[T]&&le(jA,T))){if(!(IA&&le(he,T))){if(!(be.attributeCheck instanceof Function&&be.attributeCheck(T,Q))){if(!SA[T]||qe[T]){if(!(xi(Q)&&(lA.tagNameCheck instanceof RegExp&&le(lA.tagNameCheck,Q)||lA.tagNameCheck instanceof Function&&lA.tagNameCheck(Q))&&(lA.attributeNameCheck instanceof RegExp&&le(lA.attributeNameCheck,T)||lA.attributeNameCheck instanceof Function&&lA.attributeNameCheck(T,Q))||T==="is"&&lA.allowCustomizedBuiltInElements&&(lA.tagNameCheck instanceof RegExp&&le(lA.tagNameCheck,P)||lA.tagNameCheck instanceof Function&&lA.tagNameCheck(P))))return!1}else if(!ys[T]){if(!le(Br,as(P,xn,""))){if(!((T==="src"||T==="xlink:href"||T==="href")&&Q!=="script"&&jv(P,"data:")===0&&BA[Q])){if(!(Sn&&!le(Ye,as(P,xn,"")))){if(P)return!1}}}}}}}return!0},xi=function(Q){return Q!=="annotation-xml"&&Sc(Q,bs)},vs=function(Q){rt(K.beforeSanitizeAttributes,Q,null);const{attributes:T}=Q;if(!T||Fs(Q))return;const P={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:SA,forceKeepAttr:void 0};let fA=T.length;for(;fA--;){const qA=T[fA],{name:TA,namespaceURI:ie,value:st}=qA,Qt=wA(TA),_s=st;let XA=TA==="value"?_s:Yv(_s);if(P.attrName=Qt,P.attrValue=XA,P.keepAttr=!0,P.forceKeepAttr=void 0,rt(K.uponSanitizeAttribute,Q,P),XA=P.attrValue,en&&(Qt==="id"||Qt==="name")&&(Me(TA,Q),XA=mr+XA),wt&&le(/((--!?|])>)|<\/(style|title|textarea)/i,XA)){Me(TA,Q);continue}if(Qt==="attributename"&&Sc(XA,"href")){Me(TA,Q);continue}if(P.forceKeepAttr)continue;if(!P.keepAttr){Me(TA,Q);continue}if(!In&&le(/\/>/i,XA)){Me(TA,Q);continue}GA&&qo([nA,hA,_A],Ii=>{XA=as(XA,Ii," ")});const Si=wA(Q.nodeName);if(!_i(Si,Qt,XA)){Me(TA,Q);continue}if(U&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!ie)switch(g.getAttributeType(Si,Qt)){case"TrustedHTML":{XA=U.createHTML(XA);break}case"TrustedScriptURL":{XA=U.createScriptURL(XA);break}}if(XA!==_s)try{ie?Q.setAttributeNS(ie,TA,XA):Q.setAttribute(TA,XA),Fs(Q)?Pe(Q):Lh(e.removed)}catch(Ii){Me(TA,Q)}}rt(K.afterSanitizeAttributes,Q,null)},Ht=function G(Q){let T=null;const P=ks(Q);for(rt(K.beforeSanitizeShadowDOM,Q,null);T=P.nextNode();)rt(K.uponSanitizeShadowNode,T,null),vi(T),vs(T),T.content instanceof s&&G(T.content);rt(K.afterSanitizeShadowDOM,Q,null)};return e.sanitize=function(G){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=null,P=null,fA=null,qA=null;if(Hn=!G,Hn&&(G="<!-->"),typeof G!="string"&&!Fi(G))if(typeof G.toString=="function"){if(G=G.toString(),typeof G!="string")throw cs("dirty is not a string, aborting")}else throw cs("toString is not a function");if(!e.isSupported)return G;if(Oe||Ur(Q),e.removed=[],typeof G=="string"&&(bt=!1),bt){if(G.nodeName){const st=wA(G.nodeName);if(!xA[st]||YA[st])throw cs("root node is forbidden and cannot be sanitized in-place")}}else if(G instanceof a)T=ki("<!---->"),P=T.ownerDocument.importNode(G,!0),P.nodeType===us.element&&P.nodeName==="BODY"||P.nodeName==="HTML"?T=P:T.appendChild(P);else{if(!At&&!GA&&!De&&G.indexOf("<")===-1)return U&&Ct?U.createHTML(G):G;if(T=ki(G),!T)return At?null:Ct?x:""}T&&It&&Pe(T.firstChild);const TA=ks(bt?G:T);for(;fA=TA.nextNode();)vi(fA),vs(fA),fA.content instanceof s&&Ht(fA.content);if(bt)return G;if(At){if(mt)for(qA=X.call(T.ownerDocument);T.firstChild;)qA.appendChild(T.firstChild);else qA=T;return(SA.shadowroot||SA.shadowrootmode)&&(qA=W.call(n,qA,!0)),qA}let ie=De?T.outerHTML:T.innerHTML;return De&&xA["!doctype"]&&T.ownerDocument&&T.ownerDocument.doctype&&T.ownerDocument.doctype.name&&le(Nh,T.ownerDocument.doctype.name)&&(ie="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
1915
+ `+ie),GA&&qo([nA,hA,_A],st=>{ie=as(ie,st," ")}),U&&Ct?U.createHTML(ie):ie},e.setConfig=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ur(G),Oe=!0},e.clearConfig=function(){nn=null,Oe=!1},e.isValidAttribute=function(G,Q,T){nn||Ur({});const P=wA(G),fA=wA(Q);return _i(P,fA,T)},e.addHook=function(G,Q){typeof Q=="function"&&is(K[G],Q)},e.removeHook=function(G,Q){if(Q!==void 0){const T=Wv(K[G],Q);return T===-1?void 0:Jv(K[G],T,1)[0]}return Lh(K[G])},e.removeHooks=function(G){K[G]=[]},e.removeAllHooks=function(){K=$h()},e}var p_=zh();function Vh(A){const e=pA.parse(A,{gfm:!0,breaks:!0,async:!1});return p_.sanitize(e)}function h_(A){return I(this,null,function*(){var s;try{(s=A.focus)==null||s.call(A)}catch(o){}A.scrollIntoView({block:"center",inline:"center",behavior:"instant"});let e=A.getBoundingClientRect();e.width===0&&e.height===0&&(yield f_(),e=A.getBoundingClientRect());const t=e.left+e.width/2,n=e.top+e.height/2,r={bubbles:!0,cancelable:!0,clientX:t,clientY:n};typeof PointerEvent=="function"&&A.dispatchEvent(new PointerEvent("pointerdown",r)),A.dispatchEvent(new MouseEvent("mousedown",r)),typeof PointerEvent=="function"&&A.dispatchEvent(new PointerEvent("pointerup",r)),A.dispatchEvent(new MouseEvent("mouseup",r)),A.click()})}function f_(){return new Promise(A=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>A()):setTimeout(A,16)})}function g_(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Rc={exports:{}};/*!
1917
1916
  * Pusher JavaScript Library v8.5.0
1918
1917
  * https://pusher.com/
1919
1918
  *
1920
1919
  * Copyright 2020, Pusher
1921
1920
  * Released under the MIT licence.
1922
- */var Nh;function h_(){return Nh||(Nh=1,(function(A,e){(function(n,r){A.exports=r()})(self,()=>(()=>{var t={594(o,a){var i=this&&this.__extends||(function(){var v=function(F,y){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,R){_.__proto__=R}||function(_,R){for(var H in R)R.hasOwnProperty(H)&&(_[H]=R[H])},v(F,y)};return function(F,y){v(F,y);function _(){this.constructor=F}F.prototype=y===null?Object.create(y):(_.prototype=y.prototype,new _)}})();Object.defineProperty(a,"__esModule",{value:!0});var c=256,u=(function(){function v(F){F===void 0&&(F="="),this._paddingCharacter=F}return v.prototype.encodedLength=function(F){return this._paddingCharacter?(F+2)/3*4|0:(F*8+5)/6|0},v.prototype.encode=function(F){for(var y="",_=0;_<F.length-2;_+=3){var R=F[_]<<16|F[_+1]<<8|F[_+2];y+=this._encodeByte(R>>>18&63),y+=this._encodeByte(R>>>12&63),y+=this._encodeByte(R>>>6&63),y+=this._encodeByte(R>>>0&63)}var H=F.length-_;if(H>0){var R=F[_]<<16|(H===2?F[_+1]<<8:0);y+=this._encodeByte(R>>>18&63),y+=this._encodeByte(R>>>12&63),H===2?y+=this._encodeByte(R>>>6&63):y+=this._paddingCharacter||"",y+=this._paddingCharacter||""}return y},v.prototype.maxDecodedLength=function(F){return this._paddingCharacter?F/4*3|0:(F*6+7)/8|0},v.prototype.decodedLength=function(F){return this.maxDecodedLength(F.length-this._getPaddingLength(F))},v.prototype.decode=function(F){if(F.length===0)return new Uint8Array(0);for(var y=this._getPaddingLength(F),_=F.length-y,R=new Uint8Array(this.maxDecodedLength(_)),H=0,z=0,K=0,G=0,W=0,sA=0,lA=0;z<_-4;z+=4)G=this._decodeChar(F.charCodeAt(z+0)),W=this._decodeChar(F.charCodeAt(z+1)),sA=this._decodeChar(F.charCodeAt(z+2)),lA=this._decodeChar(F.charCodeAt(z+3)),R[H++]=G<<2|W>>>4,R[H++]=W<<4|sA>>>2,R[H++]=sA<<6|lA,K|=G&c,K|=W&c,K|=sA&c,K|=lA&c;if(z<_-1&&(G=this._decodeChar(F.charCodeAt(z)),W=this._decodeChar(F.charCodeAt(z+1)),R[H++]=G<<2|W>>>4,K|=G&c,K|=W&c),z<_-2&&(sA=this._decodeChar(F.charCodeAt(z+2)),R[H++]=W<<4|sA>>>2,K|=sA&c),z<_-3&&(lA=this._decodeChar(F.charCodeAt(z+3)),R[H++]=sA<<6|lA,K|=lA&c),K!==0)throw new Error("Base64Coder: incorrect characters for decoding");return R},v.prototype._encodeByte=function(F){var y=F;return y+=65,y+=25-F>>>8&6,y+=51-F>>>8&-75,y+=61-F>>>8&-15,y+=62-F>>>8&3,String.fromCharCode(y)},v.prototype._decodeChar=function(F){var y=c;return y+=(42-F&F-44)>>>8&-c+F-43+62,y+=(46-F&F-48)>>>8&-c+F-47+63,y+=(47-F&F-58)>>>8&-c+F-48+52,y+=(64-F&F-91)>>>8&-c+F-65+0,y+=(96-F&F-123)>>>8&-c+F-97+26,y},v.prototype._getPaddingLength=function(F){var y=0;if(this._paddingCharacter){for(var _=F.length-1;_>=0&&F[_]===this._paddingCharacter;_--)y++;if(F.length<4||y>2)throw new Error("Base64Coder: incorrect padding")}return y},v})();a.Coder=u;var h=new u;function f(v){return h.encode(v)}a.encode=f;function g(v){return h.decode(v)}a.decode=g;var m=(function(v){i(F,v);function F(){return v!==null&&v.apply(this,arguments)||this}return F.prototype._encodeByte=function(y){var _=y;return _+=65,_+=25-y>>>8&6,_+=51-y>>>8&-75,_+=61-y>>>8&-13,_+=62-y>>>8&49,String.fromCharCode(_)},F.prototype._decodeChar=function(y){var _=c;return _+=(44-y&y-46)>>>8&-c+y-45+62,_+=(94-y&y-96)>>>8&-c+y-95+63,_+=(47-y&y-58)>>>8&-c+y-48+52,_+=(64-y&y-91)>>>8&-c+y-65+0,_+=(96-y&y-123)>>>8&-c+y-97+26,_},F})(u);a.URLSafeCoder=m;var b=new m;function U(v){return b.encode(v)}a.encodeURLSafe=U;function E(v){return b.decode(v)}a.decodeURLSafe=E,a.encodedLength=function(v){return h.encodedLength(v)},a.maxDecodedLength=function(v){return h.maxDecodedLength(v)},a.decodedLength=function(v){return h.decodedLength(v)}},978(o,a){var i="utf8: invalid source encoding";function c(u){for(var h=[],f=0;f<u.length;f++){var g=u[f];if(g&128){var m=void 0;if(g<224){if(f>=u.length)throw new Error(i);var b=u[++f];if((b&192)!==128)throw new Error(i);g=(g&31)<<6|b&63,m=128}else if(g<240){if(f>=u.length-1)throw new Error(i);var b=u[++f],U=u[++f];if((b&192)!==128||(U&192)!==128)throw new Error(i);g=(g&15)<<12|(b&63)<<6|U&63,m=2048}else if(g<248){if(f>=u.length-2)throw new Error(i);var b=u[++f],U=u[++f],E=u[++f];if((b&192)!==128||(U&192)!==128||(E&192)!==128)throw new Error(i);g=(g&15)<<18|(b&63)<<12|(U&63)<<6|E&63,m=65536}else throw new Error(i);if(g<m||g>=55296&&g<=57343)throw new Error(i);if(g>=65536){if(g>1114111)throw new Error(i);g-=65536,h.push(String.fromCharCode(55296|g>>10)),g=56320|g&1023}}h.push(String.fromCharCode(g))}return h.join("")}a.D4=c},721(o,a,i){o.exports=i(207).default},207(o,a,i){i.d(a,{default:()=>Hi});class c{constructor(l,d){this.lastId=0,this.prefix=l,this.name=d}create(l){this.lastId++;var d=this.lastId,B=this.prefix+d,C=this.name+"["+d+"]",S=!1,D=function(){S||(l.apply(null,arguments),S=!0)};return this[d]=D,{number:d,id:B,name:C,callback:D}}remove(l){delete this[l.number]}}var u=new c("_pusher_script_","Pusher.ScriptReceivers"),h={VERSION:"8.5.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""};const f=h;class g{constructor(l){this.options=l,this.receivers=l.receivers||u,this.loading={}}load(l,d,B){var C=this;if(C.loading[l]&&C.loading[l].length>0)C.loading[l].push(B);else{C.loading[l]=[B];var S=AA.createScriptRequest(C.getPath(l,d)),D=C.receivers.create(function(N){if(C.receivers.remove(D),C.loading[l]){var Y=C.loading[l];delete C.loading[l];for(var oA=function(MA){MA||S.cleanup()},dA=0;dA<Y.length;dA++)Y[dA](N,oA)}});S.send(D)}}getRoot(l){var d,B=AA.getDocument().location.protocol;return l&&l.useTLS||B==="https:"?d=this.options.cdn_https:d=this.options.cdn_http,d.replace(/\/*$/,"")+"/"+this.options.version}getPath(l,d){return this.getRoot(d)+"/"+l+this.options.suffix+".js"}}var m=new c("_pusher_dependencies","Pusher.DependenciesReceivers"),b=new g({cdn_http:f.cdn_http,cdn_https:f.cdn_https,version:f.VERSION,suffix:f.dependency_suffix,receivers:m});const U={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},v={buildLogSuffix:function(p){const l="See:",d=U.urls[p];if(!d)return"";let B;return d.fullUrl?B=d.fullUrl:d.path&&(B=U.baseUrl+d.path),B?`${l} ${B}`:""}};var F;(function(p){p.UserAuthentication="user-authentication",p.ChannelAuthorization="channel-authorization"})(F||(F={}));class y extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class _ extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class R extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class H extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class z extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class K extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class G extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class W extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class sA extends Error{constructor(l,d){super(d),this.status=l,Object.setPrototypeOf(this,new.target.prototype)}}const _A=function(p,l,d,B,C){const S=AA.createXHR();S.open("POST",d.endpoint,!0),S.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var D in d.headers)S.setRequestHeader(D,d.headers[D]);if(d.headersProvider!=null){let N=d.headersProvider();for(var D in N)S.setRequestHeader(D,N[D])}return S.onreadystatechange=function(){if(S.readyState===4)if(S.status===200){let N,Y=!1;try{N=JSON.parse(S.responseText),Y=!0}catch(oA){C(new sA(200,`JSON returned from ${B.toString()} endpoint was invalid, yet status code was 200. Data was: ${S.responseText}`),null)}Y&&C(null,N)}else{let N="";switch(B){case F.UserAuthentication:N=v.buildLogSuffix("authenticationEndpoint");break;case F.ChannelAuthorization:N=`Clients must be authorized to join private or presence channels. ${v.buildLogSuffix("authorizationEndpoint")}`;break}C(new sA(S.status,`Unable to retrieve auth string from ${B.toString()} endpoint - received status: ${S.status} from ${d.endpoint}. ${N}`),null)}},S.send(l),S};function Ce(p){return SA(Cs(p))}var pe=String.fromCharCode,De="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fr=function(p){var l=p.charCodeAt(0);return l<128?p:l<2048?pe(192|l>>>6)+pe(128|l&63):pe(224|l>>>12&15)+pe(128|l>>>6&63)+pe(128|l&63)},Cs=function(p){return p.replace(/[^\x00-\x7F]/g,fr)},gr=function(p){var l=[0,2,1][p.length%3],d=p.charCodeAt(0)<<16|(p.length>1?p.charCodeAt(1):0)<<8|(p.length>2?p.charCodeAt(2):0),B=[De.charAt(d>>>18),De.charAt(d>>>12&63),l>=2?"=":De.charAt(d>>>6&63),l>=1?"=":De.charAt(d&63)];return B.join("")},SA=window.btoa||function(p){return p.replace(/[\s\S]{1,3}/g,gr)};class Br{constructor(l,d,B,C){this.clear=d,this.timer=l(()=>{this.timer&&(this.timer=C(this.timer))},B)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}const BA=Br;function vt(p){window.clearTimeout(p)}function uA(p){window.clearInterval(p)}class ZA extends BA{constructor(l,d){super(setTimeout,vt,l,function(B){return d(),null})}}class Yt extends BA{constructor(l,d){super(setInterval,uA,l,function(B){return d(),B})}}var Ye={now(){return Date.now?Date.now():new Date().valueOf()},defer(p){return new ZA(0,p)},method(p,...l){var d=Array.prototype.slice.call(arguments,1);return function(B){return B[p].apply(B,d.concat(arguments))}}};const IA=Ye;function PA(p,...l){for(var d=0;d<l.length;d++){var B=l[d];for(var C in B)B[C]&&B[C].constructor&&B[C].constructor===Object?p[C]=PA(p[C]||{},B[C]):p[C]=B[C]}return p}function _n(){for(var p=["Pusher"],l=0;l<arguments.length;l++)typeof arguments[l]=="string"?p.push(arguments[l]):p.push(he(arguments[l]));return p.join(" : ")}function qt(p,l){var d=Array.prototype.indexOf;if(p===null)return-1;if(d&&p.indexOf===d)return p.indexOf(l);for(var B=0,C=p.length;B<C;B++)if(p[B]===l)return B;return-1}function XA(p,l){for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&l(p[d],d,p)}function Bt(p){var l=[];return XA(p,function(d,B){l.push(B)}),l}function Re(p){var l=[];return XA(p,function(d){l.push(d)}),l}function Oe(p,l,d){for(var B=0;B<p.length;B++)l.call(d||window,p[B],B,p)}function _t(p,l){for(var d=[],B=0;B<p.length;B++)d.push(l(p[B],B,p,d));return d}function qe(p,l){var d={};return XA(p,function(B,C){d[C]=l(B)}),d}function wt(p,l){l=l||function(C){return!!C};for(var d=[],B=0;B<p.length;B++)l(p[B],B,p,d)&&d.push(p[B]);return d}function mt(p,l){var d={};return XA(p,function(B,C){(l&&l(B,C,p,d)||B)&&(d[C]=B)}),d}function xn(p){var l=[];return XA(p,function(d,B){l.push([B,d])}),l}function WA(p,l){for(var d=0;d<p.length;d++)if(l(p[d],d,p))return!0;return!1}function wr(p,l){for(var d=0;d<p.length;d++)if(!l(p[d],d,p))return!1;return!0}function bs(p){return qe(p,function(l){return typeof l=="object"&&(l=he(l)),encodeURIComponent(Ce(l.toString()))})}function Sn(p){var l=mt(p,function(B){return B!==void 0}),d=_t(xn(bs(l)),IA.method("join","=")).join("&");return d}function An(p){var l=[],d=[];return(function B(C,S){var D,N,Y;switch(typeof C){case"object":if(!C)return null;for(D=0;D<l.length;D+=1)if(l[D]===C)return{$ref:d[D]};if(l.push(C),d.push(S),Object.prototype.toString.apply(C)==="[object Array]")for(Y=[],D=0;D<C.length;D+=1)Y[D]=B(C[D],S+"["+D+"]");else{Y={};for(N in C)Object.prototype.hasOwnProperty.call(C,N)&&(Y[N]=B(C[N],S+"["+JSON.stringify(N)+"]"))}return Y;case"number":case"string":case"boolean":return C}})(p,"$")}function he(p){try{return JSON.stringify(p)}catch(l){return JSON.stringify(An(p))}}class Qs{constructor(){this.globalLog=l=>{window.console&&window.console.log&&window.console.log(l)}}debug(...l){this.log(this.globalLog,l)}warn(...l){this.log(this.globalLogWarn,l)}error(...l){this.log(this.globalLogError,l)}globalLogWarn(l){window.console&&window.console.warn?window.console.warn(l):this.globalLog(l)}globalLogError(l){window.console&&window.console.error?window.console.error(l):this.globalLogWarn(l)}log(l,...d){var B=_n.apply(this,arguments);Hi.log?Hi.log(B):Hi.logToConsole&&l.bind(this)(B)}}const wA=new Qs;var bi=function(p,l,d,B,C){(d.headers!==void 0||d.headersProvider!=null)&&wA.warn(`To send headers with the ${B.toString()} request, you must use AJAX, rather than JSONP.`);var S=p.nextAuthCallbackID.toString();p.nextAuthCallbackID++;var D=p.getDocument(),N=D.createElement("script");p.auth_callbacks[S]=function(dA){C(null,dA)};var Y="Pusher.auth_callbacks['"+S+"']";N.src=d.endpoint+"?callback="+encodeURIComponent(Y)+"&"+l;var oA=D.getElementsByTagName("head")[0]||D.documentElement;oA.insertBefore(N,oA.firstChild)};const ys=bi;class Qi{constructor(l){this.src=l}send(l){var d=this,B="Error loading "+d.src;d.script=document.createElement("script"),d.script.id=l.id,d.script.src=d.src,d.script.type="text/javascript",d.script.charset="UTF-8",d.script.addEventListener?(d.script.onerror=function(){l.callback(B)},d.script.onload=function(){l.callback(null)}):d.script.onreadystatechange=function(){(d.script.readyState==="loaded"||d.script.readyState==="complete")&&l.callback(null)},d.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(d.errorScript=document.createElement("script"),d.errorScript.id=l.id+"_error",d.errorScript.text=l.name+"('"+B+"');",d.script.async=d.errorScript.async=!1):d.script.async=!0;var C=document.getElementsByTagName("head")[0];C.insertBefore(d.script,C.firstChild),d.errorScript&&C.insertBefore(d.errorScript,d.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class mr{constructor(l,d){this.url=l,this.data=d}send(l){if(!this.request){var d=Sn(this.data),B=this.url+"/"+l.number+"?"+d;this.request=AA.createScriptRequest(B),this.request.send(l)}}cleanup(){this.request&&this.request.cleanup()}}var Cr=function(p,l){return function(d,B){var C="http"+(l?"s":"")+"://",S=C+(p.host||p.options.host)+p.options.path,D=AA.createJSONPRequest(S,d),N=AA.ScriptReceivers.create(function(Y,oA){u.remove(N),D.cleanup(),oA&&oA.host&&(p.host=oA.host),B&&B(Y,oA)});D.send(N)}},At={name:"jsonp",getAgent:Cr};const en=At;function In(p,l,d){var B=p+(l.useTLS?"s":""),C=l.useTLS?l.hostTLS:l.hostNonTLS;return B+"://"+C+d}function Tn(p,l){var d="/app/"+p,B="?protocol="+f.PROTOCOL+"&client=js&version="+f.VERSION+(l?"&"+l:"");return d+B}var Zc={getInitial:function(p,l){var d=(l.httpPath||"")+Tn(p,"flash=false");return In("ws",l,d)}},br={getInitial:function(p,l){var d=(l.httpPath||"/pusher")+Tn(p);return In("http",l,d)}},Qr={getInitial:function(p,l){return In("http",l,l.httpPath||"/pusher")},getPath:function(p,l){return Tn(p)}};class Xc{constructor(){this._callbacks={}}get(l){return this._callbacks[xt(l)]}add(l,d,B){var C=xt(l);this._callbacks[C]=this._callbacks[C]||[],this._callbacks[C].push({fn:d,context:B})}remove(l,d,B){if(!l&&!d&&!B){this._callbacks={};return}var C=l?[xt(l)]:Bt(this._callbacks);d||B?this.removeCallback(C,d,B):this.removeAllCallbacks(C)}removeCallback(l,d,B){Oe(l,function(C){this._callbacks[C]=wt(this._callbacks[C]||[],function(S){return d&&d!==S.fn||B&&B!==S.context}),this._callbacks[C].length===0&&delete this._callbacks[C]},this)}removeAllCallbacks(l){Oe(l,function(d){delete this._callbacks[d]},this)}}function xt(p){return"_"+p}class et{constructor(l){this.callbacks=new Xc,this.global_callbacks=[],this.failThrough=l}bind(l,d,B){return this.callbacks.add(l,d,B),this}bind_global(l){return this.global_callbacks.push(l),this}unbind(l,d,B){return this.callbacks.remove(l,d,B),this}unbind_global(l){return l?(this.global_callbacks=wt(this.global_callbacks||[],d=>d!==l),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(l,d,B){for(var C=0;C<this.global_callbacks.length;C++)this.global_callbacks[C](l,d);var S=this.callbacks.get(l),D=[];if(B?D.push(d,B):d&&D.push(d),S&&S.length>0)for(var C=0;C<S.length;C++)S[C].fn.apply(S[C].context||window,D);else this.failThrough&&this.failThrough(l,d);return this}}class Wc extends et{constructor(l,d,B,C,S){super(),this.initialize=AA.transportConnectionInitializer,this.hooks=l,this.name=d,this.priority=B,this.key=C,this.options=S,this.state="new",this.timeline=S.timeline,this.activityTimeout=S.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var l=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(l,this.options)}catch(d){return IA.defer(()=>{this.onError(d),this.changeState("closed")}),!1}return this.bindListeners(),wA.debug("Connecting",{transport:this.name,url:l}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(l){return this.state==="open"?(IA.defer(()=>{this.socket&&this.socket.send(l)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(l){this.emit("error",{type:"WebSocketError",error:l}),this.timeline.error(this.buildTimelineMessage({error:l.toString()}))}onClose(l){l?this.changeState("closed",{code:l.code,reason:l.reason,wasClean:l.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(l){this.emit("message",l)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=l=>{this.onError(l)},this.socket.onclose=l=>{this.onClose(l)},this.socket.onmessage=l=>{this.onMessage(l)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(l,d){this.state=l,this.timeline.info(this.buildTimelineMessage({state:l,params:d})),this.emit(l,d)}buildTimelineMessage(l){return PA({cid:this.id},l)}}class mA{constructor(l){this.hooks=l}isSupported(l){return this.hooks.isSupported(l)}createConnection(l,d,B,C){return new Wc(this.hooks,l,d,B,C)}}var tn=new mA({urls:Zc,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!AA.getWebSocketAPI()},isSupported:function(){return!!AA.getWebSocketAPI()},getSocket:function(p){return AA.createWebSocket(p)}}),yi={urls:br,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Us=PA({getSocket:function(p){return AA.HTTPFactory.createStreamingSocket(p)}},yi),yr=PA({getSocket:function(p){return AA.HTTPFactory.createPollingSocket(p)}},yi),Es={isSupported:function(){return AA.isXHRSupported()}},Ui=new mA(PA({},Us,Es)),Jc=new mA(PA({},yr,Es)),Pe={ws:tn,xhr_streaming:Ui,xhr_polling:Jc};const Me=Pe;var Ei=new mA({file:"sockjs",urls:Qr,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(p,l){return new window.SockJS(p,null,{js_path:b.getPath("sockjs",{useTLS:l.useTLS}),ignore_null_origin:l.ignoreNullOrigin})},beforeOpen:function(p,l){p.send(JSON.stringify({path:l}))}}),ks={isSupported:function(p){var l=AA.isXDRSupported(p.useTLS);return l}},Fs=new mA(PA({},Us,ks)),ki=new mA(PA({},yr,ks));Me.xdr_streaming=Fs,Me.xdr_polling=ki,Me.sockjs=Ei;const tt=Me;class Fi extends et{constructor(){super();var l=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){l.emit("online")},!1),window.addEventListener("offline",function(){l.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var vi=new Fi;class _i{constructor(l,d,B){this.manager=l,this.transport=d,this.minPingDelay=B.minPingDelay,this.maxPingDelay=B.maxPingDelay,this.pingDelay=void 0}createConnection(l,d,B,C){C=PA({},C,{activityTimeout:this.pingDelay});var S=this.transport.createConnection(l,d,B,C),D=null,N=function(){S.unbind("open",N),S.bind("closed",Y),D=IA.now()},Y=oA=>{if(S.unbind("closed",Y),oA.code===1002||oA.code===1003)this.manager.reportDeath();else if(!oA.wasClean&&D){var dA=IA.now()-D;dA<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(dA/2,this.minPingDelay))}};return S.bind("open",N),S}isSupported(l){return this.manager.isAlive()&&this.transport.isSupported(l)}}const vs={decodeMessage:function(p){try{var l=JSON.parse(p.data),d=l.data;if(typeof d=="string")try{d=JSON.parse(l.data)}catch(C){}var B={event:l.event,channel:l.channel,data:d};return l.user_id&&(B.user_id=l.user_id),B}catch(C){throw{type:"MessageParseError",error:C,data:p.data}}},encodeMessage:function(p){return JSON.stringify(p)},processHandshake:function(p){var l=vs.decodeMessage(p);if(l.event==="pusher:connection_established"){if(!l.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:l.data.socket_id,activityTimeout:l.data.activity_timeout*1e3}}else{if(l.event==="pusher:error")return{action:this.getCloseAction(l.data),error:this.getCloseError(l.data)};throw"Invalid handshake"}},getCloseAction:function(p){return p.code<4e3?p.code>=1002&&p.code<=1004?"backoff":null:p.code===4e3?"tls_only":p.code<4100?"refused":p.code<4200?"backoff":p.code<4300?"retry":"refused"},getCloseError:function(p){return p.code!==1e3&&p.code!==1001?{type:"PusherError",data:{code:p.code,message:p.reason||p.message}}:null}},St=vs;class Z extends et{constructor(l,d){super(),this.id=l,this.transport=d,this.activityTimeout=d.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(l){return this.transport.send(l)}send_event(l,d,B){var C={event:l,data:d};return B&&(C.channel=B),wA.debug("Event sent",C),this.send(St.encodeMessage(C))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var l={message:B=>{var C;try{C=St.decodeMessage(B)}catch(S){this.emit("error",{type:"MessageParseError",error:S,data:B.data})}if(C!==void 0){switch(wA.debug("Event recd",C),C.event){case"pusher:error":this.emit("error",{type:"PusherError",data:C.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",C)}},activity:()=>{this.emit("activity")},error:B=>{this.emit("error",B)},closed:B=>{d(),B&&B.code&&this.handleCloseEvent(B),this.transport=null,this.emit("closed")}},d=()=>{XA(l,(B,C)=>{this.transport.unbind(C,B)})};XA(l,(B,C)=>{this.transport.bind(C,B)})}handleCloseEvent(l){var d=St.getCloseAction(l),B=St.getCloseError(l);B&&this.emit("error",B),d&&this.emit(d,{action:d,error:B})}}class Q{constructor(l,d){this.transport=l,this.callback=d,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=l=>{this.unbindListeners();var d;try{d=St.processHandshake(l)}catch(B){this.finish("error",{error:B}),this.transport.close();return}d.action==="connected"?this.finish("connected",{connection:new Z(d.id,this.transport),activityTimeout:d.activityTimeout}):(this.finish(d.action,{error:d.error}),this.transport.close())},this.onClosed=l=>{this.unbindListeners();var d=St.getCloseAction(l)||"backoff",B=St.getCloseError(l);this.finish(d,{error:B})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(l,d){this.callback(PA({transport:this.transport,action:l},d))}}class T{constructor(l,d){this.timeline=l,this.options=d||{}}send(l,d){this.timeline.isEmpty()||this.timeline.send(AA.TimelineTransport.getAgent(this,l),d)}}class P extends et{constructor(l,d){super(function(B,C){wA.debug("No callbacks on "+l+" for "+B)}),this.name=l,this.pusher=d,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(l,d){return d(null,{auth:""})}trigger(l,d){if(l.indexOf("client-")!==0)throw new y("Event '"+l+"' does not start with 'client-'");if(!this.subscribed){var B=v.buildLogSuffix("triggeringClientEvents");wA.warn(`Client event triggered before channel 'subscription_succeeded' event . ${B}`)}return this.pusher.send_event(l,d,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(l){var d=l.event,B=l.data;if(d==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(l);else if(d==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(l);else if(d.indexOf("pusher_internal:")!==0){var C={};this.emit(d,B,C)}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",l.data)}handleSubscriptionCountEvent(l){l.data.subscription_count&&(this.subscriptionCount=l.data.subscription_count),this.emit("pusher:subscription_count",l.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(l,d)=>{l?(this.subscriptionPending=!1,wA.error(l.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:l.message},l instanceof sA?{status:l.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:d.auth,channel_data:d.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class fA extends P{authorize(l,d){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:l},d)}}class YA{constructor(){this.reset()}get(l){return Object.prototype.hasOwnProperty.call(this.members,l)?{id:l,info:this.members[l]}:null}each(l){XA(this.members,(d,B)=>{l(this.get(B))})}setMyID(l){this.myID=l}onSubscription(l){this.members=l.presence.hash,this.count=l.presence.count,this.me=this.get(this.myID)}addMember(l){return this.get(l.user_id)===null&&this.count++,this.members[l.user_id]=l.user_info,this.get(l.user_id)}removeMember(l){var d=this.get(l.user_id);return d&&(delete this.members[l.user_id],this.count--),d}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var TA=function(p,l,d,B){function C(S){return S instanceof d?S:new d(function(D){D(S)})}return new(d||(d=Promise))(function(S,D){function N(dA){try{oA(B.next(dA))}catch(MA){D(MA)}}function Y(dA){try{oA(B.throw(dA))}catch(MA){D(MA)}}function oA(dA){dA.done?S(dA.value):C(dA.value).then(N,Y)}oA((B=B.apply(p,l||[])).next())})};class oe extends fA{constructor(l,d){super(l,d),this.members=new YA}authorize(l,d){super.authorize(l,(B,C)=>TA(this,void 0,void 0,function*(){if(!B)if(C=C,C.channel_data!=null){var S=JSON.parse(C.channel_data);this.members.setMyID(S.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let D=v.buildLogSuffix("authorizationEndpoint");wA.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${D}, or the user should be signed in.`),d("Invalid auth response");return}d(B,C)}))}handleEvent(l){var d=l.event;if(d.indexOf("pusher_internal:")===0)this.handleInternalEvent(l);else{var B=l.data,C={};l.user_id&&(C.user_id=l.user_id),this.emit(d,B,C)}}handleInternalEvent(l){var d=l.event,B=l.data;switch(d){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(l);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(l);break;case"pusher_internal:member_added":var C=this.members.addMember(B);this.emit("pusher:member_added",C);break;case"pusher_internal:member_removed":var S=this.members.removeMember(B);S&&this.emit("pusher:member_removed",S);break}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(l.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var nt=i(978),Ct=i(594);class _s extends fA{constructor(l,d,B){super(l,d),this.key=null,this.nacl=B}authorize(l,d){super.authorize(l,(B,C)=>{if(B){d(B,C);return}let S=C.shared_secret;if(!S){d(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=(0,Ct.decode)(S),delete C.shared_secret,d(null,C)})}trigger(l,d){throw new K("Client events are not currently supported for encrypted channels")}handleEvent(l){var d=l.event,B=l.data;if(d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0){super.handleEvent(l);return}this.handleEncryptedEvent(d,B)}handleEncryptedEvent(l,d){if(!this.key){wA.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!d.ciphertext||!d.nonce){wA.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+d);return}let B=(0,Ct.decode)(d.ciphertext);if(B.length<this.nacl.secretbox.overheadLength){wA.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${B.length}`);return}let C=(0,Ct.decode)(d.nonce);if(C.length<this.nacl.secretbox.nonceLength){wA.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${C.length}`);return}let S=this.nacl.secretbox.open(B,C,this.key);if(S===null){wA.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(D,N)=>{if(D){wA.error(`Failed to make a request to the authEndpoint: ${N}. Unable to fetch new key, so dropping encrypted event`);return}if(S=this.nacl.secretbox.open(B,C,this.key),S===null){wA.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(l,this.getDataToEmit(S))});return}this.emit(l,this.getDataToEmit(S))}getDataToEmit(l){let d=(0,nt.D4)(l);try{return JSON.parse(d)}catch(B){return d}}}class JA extends et{constructor(l,d){super(),this.state="initialized",this.connection=null,this.key=l,this.options=d,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var B=AA.getNetwork();B.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),B.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(l){this.key=l,this.updateStrategy(),this.retryIn(0)}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(l){return this.connection?this.connection.send(l):!1}send_event(l,d,B){return this.connection?this.connection.send_event(l,d,B):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var l=(d,B)=>{d?this.runner=this.strategy.connect(0,l):B.action==="error"?(this.emit("error",{type:"HandshakeError",error:B.error}),this.timeline.error({handshakeError:B.error})):(this.abortConnecting(),this.handshakeCallbacks[B.action](B))};this.runner=this.strategy.connect(0,l)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var l=this.abandonConnection();l.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(l){this.timeline.info({action:"retry",delay:l}),l>0&&this.emit("connecting_in",Math.round(l/1e3)),this.retryTimer=new ZA(l||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new ZA(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new ZA(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new ZA(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(l){return PA({},l,{message:d=>{this.resetActivityCheck(),this.emit("message",d)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:d=>{this.emit("error",d)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(l){return PA({},l,{connected:d=>{this.activityTimeout=Math.min(this.options.activityTimeout,d.activityTimeout,d.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(d.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let l=d=>B=>{B.error&&this.emit("error",{type:"WebSocketError",error:B.error}),d(B)};return{tls_only:l(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:l(()=>{this.disconnect()}),backoff:l(()=>{this.retryIn(1e3)}),retry:l(()=>{this.retryIn(0)})}}setConnection(l){this.connection=l;for(var d in this.connectionCallbacks)this.connection.bind(d,this.connectionCallbacks[d]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var l in this.connectionCallbacks)this.connection.unbind(l,this.connectionCallbacks[l]);var d=this.connection;return this.connection=null,d}}updateState(l,d){var B=this.state;if(this.state=l,B!==l){var C=l;C==="connected"&&(C+=" with new socket ID "+d.socket_id),wA.debug("State changed",B+" -> "+C),this.timeline.info({state:l,params:d}),this.emit("state_change",{previous:B,current:l}),this.emit(l,d)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class xi{constructor(){this.channels={}}add(l,d){return this.channels[l]||(this.channels[l]=Si(l,d)),this.channels[l]}all(){return Re(this.channels)}find(l){return this.channels[l]}remove(l){var d=this.channels[l];return delete this.channels[l],d}disconnect(){XA(this.channels,function(l){l.disconnect()})}}function Si(p,l){if(p.indexOf("private-encrypted-")===0){if(l.config.nacl)return It.createEncryptedChannel(p,l,l.config.nacl);let d="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",B=v.buildLogSuffix("encryptedChannelSupport");throw new K(`${d}. ${B}`)}else{if(p.indexOf("private-")===0)return It.createPrivateChannel(p,l);if(p.indexOf("presence-")===0)return It.createPresenceChannel(p,l);if(p.indexOf("#")===0)throw new _('Cannot create a channel with name "'+p+'".');return It.createChannel(p,l)}}var Ex={createChannels(){return new xi},createConnectionManager(p,l){return new JA(p,l)},createChannel(p,l){return new P(p,l)},createPrivateChannel(p,l){return new fA(p,l)},createPresenceChannel(p,l){return new oe(p,l)},createEncryptedChannel(p,l,d){return new _s(p,l,d)},createTimelineSender(p,l){return new T(p,l)},createHandshake(p,l){return new Q(p,l)},createAssistantToTheTransportManager(p,l,d){return new _i(p,l,d)}};const It=Ex;class Lf{constructor(l){this.options=l||{},this.livesLeft=this.options.lives||1/0}getAssistant(l){return It.createAssistantToTheTransportManager(this,l,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Hn{constructor(l,d){this.strategies=l,this.loop=!!d.loop,this.failFast=!!d.failFast,this.timeout=d.timeout,this.timeoutLimit=d.timeoutLimit}isSupported(){return WA(this.strategies,IA.method("isSupported"))}connect(l,d){var B=this.strategies,C=0,S=this.timeout,D=null,N=(Y,oA)=>{oA?d(null,oA):(C=C+1,this.loop&&(C=C%B.length),C<B.length?(S&&(S=S*2,this.timeoutLimit&&(S=Math.min(S,this.timeoutLimit))),D=this.tryStrategy(B[C],l,{timeout:S,failFast:this.failFast},N)):d(!0))};return D=this.tryStrategy(B[C],l,{timeout:S,failFast:this.failFast},N),{abort:function(){D.abort()},forceMinPriority:function(Y){l=Y,D&&D.forceMinPriority(Y)}}}tryStrategy(l,d,B,C){var S=null,D=null;return B.timeout>0&&(S=new ZA(B.timeout,function(){D.abort(),C(!0)})),D=l.connect(d,function(N,Y){N&&S&&S.isRunning()&&!B.failFast||(S&&S.ensureAborted(),C(N,Y))}),{abort:function(){S&&S.ensureAborted(),D.abort()},forceMinPriority:function(N){D.forceMinPriority(N)}}}}class jc{constructor(l){this.strategies=l}isSupported(){return WA(this.strategies,IA.method("isSupported"))}connect(l,d){return kx(this.strategies,l,function(B,C){return function(S,D){if(C[B].error=S,S){Fx(C)&&d(!0);return}Oe(C,function(N){N.forceMinPriority(D.transport.priority)}),d(null,D)}})}}function kx(p,l,d){var B=_t(p,function(C,S,D,N){return C.connect(l,d(S,N))});return{abort:function(){Oe(B,vx)},forceMinPriority:function(C){Oe(B,function(S){S.forceMinPriority(C)})}}}function Fx(p){return wr(p,function(l){return!!l.error})}function vx(p){!p.error&&!p.aborted&&(p.abort(),p.aborted=!0)}class _x{constructor(l,d,B){this.strategy=l,this.transports=d,this.ttl=B.ttl||18e5,this.usingTLS=B.useTLS,this.timeline=B.timeline}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.usingTLS,C=xx(B),S=C&&C.cacheSkipCount?C.cacheSkipCount:0,D=[this.strategy];if(C&&C.timestamp+this.ttl>=IA.now()){var N=this.transports[C.transport];N&&(["ws","wss"].includes(C.transport)||S>3?(this.timeline.info({cached:!0,transport:C.transport,latency:C.latency}),D.push(new Hn([N],{timeout:C.latency*2+1e3,failFast:!0}))):S++)}var Y=IA.now(),oA=D.pop().connect(l,function dA(MA,Li){MA?(Df(B),D.length>0?(Y=IA.now(),oA=D.pop().connect(l,dA)):d(MA)):(Sx(B,Li.transport.name,IA.now()-Y,S),d(null,Li))});return{abort:function(){oA.abort()},forceMinPriority:function(dA){l=dA,oA&&oA.forceMinPriority(dA)}}}}function Yc(p){return"pusherTransport"+(p?"TLS":"NonTLS")}function xx(p){var l=AA.getLocalStorage();if(l)try{var d=l[Yc(p)];if(d)return JSON.parse(d)}catch(B){Df(p)}return null}function Sx(p,l,d,B){var C=AA.getLocalStorage();if(C)try{C[Yc(p)]=he({timestamp:IA.now(),transport:l,latency:d,cacheSkipCount:B})}catch(S){}}function Df(p){var l=AA.getLocalStorage();if(l)try{delete l[Yc(p)]}catch(d){}}class Ii{constructor(l,{delay:d}){this.strategy=l,this.options={delay:d}}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.strategy,C,S=new ZA(this.options.delay,function(){C=B.connect(l,d)});return{abort:function(){S.ensureAborted(),C&&C.abort()},forceMinPriority:function(D){l=D,C&&C.forceMinPriority(D)}}}}class xs{constructor(l,d,B){this.test=l,this.trueBranch=d,this.falseBranch=B}isSupported(){var l=this.test()?this.trueBranch:this.falseBranch;return l.isSupported()}connect(l,d){var B=this.test()?this.trueBranch:this.falseBranch;return B.connect(l,d)}}class Ix{constructor(l){this.strategy=l}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.strategy.connect(l,function(C,S){S&&B.abort(),d(C,S)});return B}}function Ss(p){return function(){return p.isSupported()}}var Tx=function(p,l,d){var B={};function C(Wf,xS,SS,IS,TS){var Jf=d(p,Wf,xS,SS,IS,TS);return B[Wf]=Jf,Jf}var S=Object.assign({},l,{hostNonTLS:p.wsHost+":"+p.wsPort,hostTLS:p.wsHost+":"+p.wssPort,httpPath:p.wsPath}),D=Object.assign({},S,{useTLS:!0}),N=Object.assign({},l,{hostNonTLS:p.httpHost+":"+p.httpPort,hostTLS:p.httpHost+":"+p.httpsPort,httpPath:p.httpPath}),Y={loop:!0,timeout:15e3,timeoutLimit:6e4},oA=new Lf({minPingDelay:1e4,maxPingDelay:p.activityTimeout}),dA=new Lf({lives:2,minPingDelay:1e4,maxPingDelay:p.activityTimeout}),MA=C("ws","ws",3,S,oA),Li=C("wss","ws",3,D,oA),ES=C("sockjs","sockjs",1,N),$f=C("xhr_streaming","xhr_streaming",1,N,dA),kS=C("xdr_streaming","xdr_streaming",1,N,dA),zf=C("xhr_polling","xhr_polling",1,N),FS=C("xdr_polling","xdr_polling",1,N),Vf=new Hn([MA],Y),vS=new Hn([Li],Y),_S=new Hn([ES],Y),Gf=new Hn([new xs(Ss($f),$f,kS)],Y),Zf=new Hn([new xs(Ss(zf),zf,FS)],Y),Xf=new Hn([new xs(Ss(Gf),new jc([Gf,new Ii(Zf,{delay:4e3})]),Zf)],Y),el=new xs(Ss(Xf),Xf,_S),tl;return l.useTLS?tl=new jc([Vf,new Ii(el,{delay:2e3})]):tl=new jc([Vf,new Ii(vS,{delay:2e3}),new Ii(el,{delay:5e3})]),new _x(new Ix(new xs(Ss(MA),tl,el)),B,{ttl:18e5,timeline:l.timeline,useTLS:l.useTLS})};const Hx=Tx;function Lx(){var p=this;p.timeline.info(p.buildTimelineMessage({transport:p.name+(p.options.useTLS?"s":"")})),p.hooks.isInitialized()?p.changeState("initialized"):p.hooks.file?(p.changeState("initializing"),b.load(p.hooks.file,{useTLS:p.options.useTLS},function(l,d){p.hooks.isInitialized()?(p.changeState("initialized"),d(!0)):(l&&p.onError(l),p.onClose(),d(!1))})):p.onClose()}var Dx={getRequest:function(p){var l=new window.XDomainRequest;return l.ontimeout=function(){p.emit("error",new R),p.close()},l.onerror=function(d){p.emit("error",d),p.close()},l.onprogress=function(){l.responseText&&l.responseText.length>0&&p.onChunk(200,l.responseText)},l.onload=function(){l.responseText&&l.responseText.length>0&&p.onChunk(200,l.responseText),p.emit("finished",200),p.close()},l},abortRequest:function(p){p.ontimeout=p.onerror=p.onprogress=p.onload=null,p.abort()}};const Rx=Dx,Ox=256*1024;class Px extends et{constructor(l,d,B){super(),this.hooks=l,this.method=d,this.url=B}start(l){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},AA.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(l)}close(){this.unloader&&(AA.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(l,d){for(;;){var B=this.advanceBuffer(d);if(B)this.emit("chunk",{status:l,data:B});else break}this.isBufferTooLong(d)&&this.emit("buffer_too_long")}advanceBuffer(l){var d=l.slice(this.position),B=d.indexOf(`
1923
- `);return B!==-1?(this.position+=B+1,d.slice(0,B)):null}isBufferTooLong(l){return this.position===l.length&&l.length>Ox}}var qc;(function(p){p[p.CONNECTING=0]="CONNECTING",p[p.OPEN=1]="OPEN",p[p.CLOSED=3]="CLOSED"})(qc||(qc={}));const Ln=qc;var Mx=1;class Kx{constructor(l,d){this.hooks=l,this.session=Of(1e3)+"/"+Vx(8),this.location=Nx(d),this.readyState=Ln.CONNECTING,this.openStream()}send(l){return this.sendRaw(JSON.stringify([l]))}ping(){this.hooks.sendHeartbeat(this)}close(l,d){this.onClose(l,d,!0)}sendRaw(l){if(this.readyState===Ln.OPEN)try{return AA.createSocketRequest("POST",Rf($x(this.location,this.session))).start(l),!0}catch(d){return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(l,d,B){this.closeStream(),this.readyState=Ln.CLOSED,this.onclose&&this.onclose({code:l,reason:d,wasClean:B})}onChunk(l){if(l.status===200){this.readyState===Ln.OPEN&&this.onActivity();var d,B=l.data.slice(0,1);switch(B){case"o":d=JSON.parse(l.data.slice(1)||"{}"),this.onOpen(d);break;case"a":d=JSON.parse(l.data.slice(1)||"[]");for(var C=0;C<d.length;C++)this.onEvent(d[C]);break;case"m":d=JSON.parse(l.data.slice(1)||"null"),this.onEvent(d);break;case"h":this.hooks.onHeartbeat(this);break;case"c":d=JSON.parse(l.data.slice(1)||"[]"),this.onClose(d[0],d[1],!0);break}}}onOpen(l){this.readyState===Ln.CONNECTING?(l&&l.hostname&&(this.location.base=zx(this.location.base,l.hostname)),this.readyState=Ln.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(l){this.readyState===Ln.OPEN&&this.onmessage&&this.onmessage({data:l})}onActivity(){this.onactivity&&this.onactivity()}onError(l){this.onerror&&this.onerror(l)}openStream(){this.stream=AA.createSocketRequest("POST",Rf(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",l=>{this.onChunk(l)}),this.stream.bind("finished",l=>{this.hooks.onFinished(this,l)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(l){IA.defer(()=>{this.onError(l),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Nx(p){var l=/([^\?]*)\/*(\??.*)/.exec(p);return{base:l[1],queryString:l[2]}}function $x(p,l){return p.base+"/"+l+"/xhr_send"}function Rf(p){var l=p.indexOf("?")===-1?"?":"&";return p+l+"t="+ +new Date+"&n="+Mx++}function zx(p,l){var d=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(p);return d[1]+l+d[3]}function Of(p){return AA.randomInt(p)}function Vx(p){for(var l=[],d=0;d<p;d++)l.push(Of(32).toString(32));return l.join("")}const Gx=Kx;var Zx={getReceiveURL:function(p,l){return p.base+"/"+l+"/xhr_streaming"+p.queryString},onHeartbeat:function(p){p.sendRaw("[]")},sendHeartbeat:function(p){p.sendRaw("[]")},onFinished:function(p,l){p.onClose(1006,"Connection interrupted ("+l+")",!1)}};const Xx=Zx;var Wx={getReceiveURL:function(p,l){return p.base+"/"+l+"/xhr"+p.queryString},onHeartbeat:function(){},sendHeartbeat:function(p){p.sendRaw("[]")},onFinished:function(p,l){l===200?p.reconnect():p.onClose(1006,"Connection interrupted ("+l+")",!1)}};const Jx=Wx;var jx={getRequest:function(p){var l=AA.getXHRAPI(),d=new l;return d.onreadystatechange=d.onprogress=function(){switch(d.readyState){case 3:d.responseText&&d.responseText.length>0&&p.onChunk(d.status,d.responseText);break;case 4:d.responseText&&d.responseText.length>0&&p.onChunk(d.status,d.responseText),p.emit("finished",d.status),p.close();break}},d},abortRequest:function(p){p.onreadystatechange=null,p.abort()}};const Yx=jx;var qx={createStreamingSocket(p){return this.createSocket(Xx,p)},createPollingSocket(p){return this.createSocket(Jx,p)},createSocket(p,l){return new Gx(p,l)},createXHR(p,l){return this.createRequest(Yx,p,l)},createRequest(p,l,d){return new Px(p,l,d)}};const Pf=qx;Pf.createXDR=function(p,l){return this.createRequest(Rx,p,l)};var AS={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:u,DependenciesReceivers:m,getDefaultStrategy:Hx,Transports:tt,transportConnectionInitializer:Lx,HTTPFactory:Pf,TimelineTransport:en,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(p){window.Pusher=p;var l=()=>{this.onDocumentBody(p.ready)};window.JSON?l():b.load("json2",{},l)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:_A,jsonp:ys}},onDocumentBody(p){document.body?p():setTimeout(()=>{this.onDocumentBody(p)},0)},createJSONPRequest(p,l){return new mr(p,l)},createScriptRequest(p){return new Qi(p)},getLocalStorage(){try{return window.localStorage}catch(p){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var p=this.getXHRAPI();return new p},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return vi},createWebSocket(p){var l=this.getWebSocketAPI();return new l(p)},createSocketRequest(p,l){if(this.isXHRSupported())return this.HTTPFactory.createXHR(p,l);if(this.isXDRSupported(l.indexOf("https:")===0))return this.HTTPFactory.createXDR(p,l);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var p=this.getXHRAPI();return!!p&&new p().withCredentials!==void 0},isXDRSupported(p){var l=p?"https:":"http:",d=this.getProtocol();return!!window.XDomainRequest&&d===l},addUnloadListener(p){window.addEventListener!==void 0?window.addEventListener("unload",p,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",p)},removeUnloadListener(p){window.addEventListener!==void 0?window.removeEventListener("unload",p,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",p)},randomInt(p){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*p)}};const AA=AS;var Al;(function(p){p[p.ERROR=3]="ERROR",p[p.INFO=6]="INFO",p[p.DEBUG=7]="DEBUG"})(Al||(Al={}));const Ti=Al;class eS{constructor(l,d,B){this.key=l,this.session=d,this.events=[],this.options=B||{},this.sent=0,this.uniqueID=0}log(l,d){l<=this.options.level&&(this.events.push(PA({},d,{timestamp:IA.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(l){this.log(Ti.ERROR,l)}info(l){this.log(Ti.INFO,l)}debug(l){this.log(Ti.DEBUG,l)}isEmpty(){return this.events.length===0}send(l,d){var B=PA({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],l(B,(C,S)=>{C||this.sent++,d&&d(C,S)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class tS{constructor(l,d,B,C){this.name=l,this.priority=d,this.transport=B,this.options=C||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(l,d){if(this.isSupported()){if(this.priority<l)return Mf(new H,d)}else return Mf(new W,d);var B=!1,C=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),S=null,D=function(){C.unbind("initialized",D),C.connect()},N=function(){S=It.createHandshake(C,function(MA){B=!0,dA(),d(null,MA)})},Y=function(MA){dA(),d(MA)},oA=function(){dA();var MA;MA=he(C),d(new z(MA))},dA=function(){C.unbind("initialized",D),C.unbind("open",N),C.unbind("error",Y),C.unbind("closed",oA)};return C.bind("initialized",D),C.bind("open",N),C.bind("error",Y),C.bind("closed",oA),C.initialize(),{abort:()=>{B||(dA(),S?S.close():C.close())},forceMinPriority:MA=>{B||this.priority<MA&&(S?S.close():C.close())}}}}function Mf(p,l){return IA.defer(function(){l(p)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:nS}=AA;var rS=function(p,l,d,B,C,S){var D=nS[d];if(!D)throw new G(d);var N=(!p.enabledTransports||qt(p.enabledTransports,l)!==-1)&&(!p.disabledTransports||qt(p.disabledTransports,l)===-1),Y;return N?(C=Object.assign({ignoreNullOrigin:p.ignoreNullOrigin},C),Y=new tS(l,B,S?S.getAssistant(D):D,C)):Y=sS,Y},sS={isSupported:function(){return!1},connect:function(p,l){var d=IA.defer(function(){l(new W)});return{abort:function(){d.ensureAborted()},forceMinPriority:function(){}}}};function oS(p){if(p==null)throw"You must pass an options object";if(p.cluster==null)throw"Options object must provide a cluster";"disableStats"in p&&wA.warn("The disableStats option is deprecated in favor of enableStats")}const iS=(p,l)=>{var d="socket_id="+encodeURIComponent(p.socketId);for(var B in l.params)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(l.params[B]);if(l.paramsProvider!=null){let C=l.paramsProvider();for(var B in C)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(C[B])}return d},aS=p=>{if(typeof AA.getAuthorizers()[p.transport]=="undefined")throw`'${p.transport}' is not a recognized auth transport`;return(l,d)=>{const B=iS(l,p);AA.getAuthorizers()[p.transport](AA,B,p,F.UserAuthentication,d)}},cS=(p,l)=>{var d="socket_id="+encodeURIComponent(p.socketId);d+="&channel_name="+encodeURIComponent(p.channelName);for(var B in l.params)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(l.params[B]);if(l.paramsProvider!=null){let C=l.paramsProvider();for(var B in C)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(C[B])}return d},lS=p=>{if(typeof AA.getAuthorizers()[p.transport]=="undefined")throw`'${p.transport}' is not a recognized auth transport`;return(l,d)=>{const B=cS(l,p);AA.getAuthorizers()[p.transport](AA,B,p,F.ChannelAuthorization,d)}},uS=(p,l,d)=>{const B={authTransport:l.transport,authEndpoint:l.endpoint,auth:{params:l.params,headers:l.headers}};return(C,S)=>{const D=p.channel(C.channelName);d(D,B).authorize(C.socketId,S)}};function Kf(p,l){let d={activityTimeout:p.activityTimeout||f.activityTimeout,cluster:p.cluster,httpPath:p.httpPath||f.httpPath,httpPort:p.httpPort||f.httpPort,httpsPort:p.httpsPort||f.httpsPort,pongTimeout:p.pongTimeout||f.pongTimeout,statsHost:p.statsHost||f.stats_host,unavailableTimeout:p.unavailableTimeout||f.unavailableTimeout,wsPath:p.wsPath||f.wsPath,wsPort:p.wsPort||f.wsPort,wssPort:p.wssPort||f.wssPort,enableStats:gS(p),httpHost:dS(p),useTLS:fS(p),wsHost:pS(p),userAuthenticator:BS(p),channelAuthorizer:mS(p,l)};return"disabledTransports"in p&&(d.disabledTransports=p.disabledTransports),"enabledTransports"in p&&(d.enabledTransports=p.enabledTransports),"ignoreNullOrigin"in p&&(d.ignoreNullOrigin=p.ignoreNullOrigin),"timelineParams"in p&&(d.timelineParams=p.timelineParams),"nacl"in p&&(d.nacl=p.nacl),d}function dS(p){return p.httpHost?p.httpHost:p.cluster?`sockjs-${p.cluster}.pusher.com`:f.httpHost}function pS(p){return p.wsHost?p.wsHost:hS(p.cluster)}function hS(p){return`ws-${p}.pusher.com`}function fS(p){return AA.getProtocol()==="https:"?!0:p.forceTLS!==!1}function gS(p){return"enableStats"in p?p.enableStats:"disableStats"in p?!p.disableStats:!1}const Nf=p=>"customHandler"in p&&p.customHandler!=null;function BS(p){const l=Object.assign(Object.assign({},f.userAuthentication),p.userAuthentication);return Nf(l)?l.customHandler:aS(l)}function wS(p,l){let d;if("channelAuthorization"in p)d=Object.assign(Object.assign({},f.channelAuthorization),p.channelAuthorization);else if(d={transport:p.authTransport||f.authTransport,endpoint:p.authEndpoint||f.authEndpoint},"auth"in p&&("params"in p.auth&&(d.params=p.auth.params),"headers"in p.auth&&(d.headers=p.auth.headers)),"authorizer"in p)return{customHandler:uS(l,d,p.authorizer)};return d}function mS(p,l){const d=wS(p,l);return Nf(d)?d.customHandler:lS(d)}class CS extends et{constructor(l){super(function(d,B){wA.debug(`No callbacks on watchlist events for ${d}`)}),this.pusher=l,this.bindWatchlistInternalEvent()}handleEvent(l){l.data.events.forEach(d=>{this.emit(d.name,d)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",l=>{var d=l.event;d==="pusher_internal:watchlist_events"&&this.handleEvent(l)})}}function bS(){let p,l;return{promise:new Promise((B,C)=>{p=B,l=C}),resolve:p,reject:l}}const QS=bS;class yS extends et{constructor(l){super(function(d,B){wA.debug("No callbacks on user for "+d)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(d,B)=>{if(d){wA.warn(`Error during signin: ${d}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:B.auth,user_data:B.user_data})},this.pusher=l,this.pusher.connection.bind("state_change",({previous:d,current:B})=>{d!=="connected"&&B==="connected"&&this._signin(),d==="connected"&&B!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new CS(l),this.pusher.connection.bind("message",d=>{var B=d.event;B==="pusher:signin_success"&&this._onSigninSuccess(d.data),this.serverToUserChannel&&this.serverToUserChannel.name===d.channel&&this.serverToUserChannel.handleEvent(d)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(l){try{this.user_data=JSON.parse(l.user_data)}catch(d){wA.error(`Failed parsing user data after signin: ${l.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){wA.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const l=d=>{d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.pusher.connection.state==="connected"&&d.subscribe()};this.serverToUserChannel=new P(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((d,B)=>{d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0||this.emit(d,B)}),l(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:l,resolve:d}=QS();l.done=!1;const B=()=>{l.done=!0};l.then(B).catch(B),this.signinDonePromise=l,this._signinDoneResolve=d}}class te{static ready(){te.isReady=!0;for(var l=0,d=te.instances.length;l<d;l++)te.instances[l].connect()}static getClientFeatures(){return Bt(mt({ws:AA.Transports.ws},function(l){return l.isSupported({})}))}constructor(l,d){US(l),oS(d),this.key=l,this.options=d,this.config=Kf(this.options,this),this.channels=It.createChannels(),this.global_emitter=new et,this.sessionID=AA.randomInt(1e9),this.timeline=new eS(this.key,this.sessionID,{cluster:this.config.cluster,features:te.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Ti.INFO,version:f.VERSION}),this.config.enableStats&&(this.timelineSender=It.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+AA.TimelineTransport.name}));var B=C=>AA.getDefaultStrategy(this.config,C,rS);this.connection=It.createConnectionManager(this.key,{getStrategy:B,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",C=>{var S=C.event,D=S.indexOf("pusher_internal:")===0;if(C.channel){var N=this.channel(C.channel);N&&N.handleEvent(C)}D||this.global_emitter.emit(C.event,C.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",C=>{wA.warn(C)}),te.instances.push(this),this.timeline.info({instances:te.instances.length}),this.user=new yS(this),te.isReady&&this.connect()}switchCluster(l){const{appKey:d,cluster:B}=l;this.key=d,this.options=Object.assign(Object.assign({},this.options),{cluster:B}),this.config=Kf(this.options,this),this.connection.switchCluster(this.key)}channel(l){return this.channels.find(l)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var l=this.connection.isUsingTLS(),d=this.timelineSender;this.timelineSenderTimer=new Yt(6e4,function(){d.send(l)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(l,d,B){return this.global_emitter.bind(l,d,B),this}unbind(l,d,B){return this.global_emitter.unbind(l,d,B),this}bind_global(l){return this.global_emitter.bind_global(l),this}unbind_global(l){return this.global_emitter.unbind_global(l),this}unbind_all(l){return this.global_emitter.unbind_all(),this}subscribeAll(){var l;for(l in this.channels.channels)this.channels.channels.hasOwnProperty(l)&&this.subscribe(l)}subscribe(l){var d=this.channels.add(l,this);return d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.connection.state==="connected"&&d.subscribe(),d}unsubscribe(l){var d=this.channels.find(l);d&&d.subscriptionPending?d.cancelSubscription():(d=this.channels.remove(l),d&&d.subscribed&&d.unsubscribe())}send_event(l,d,B){return this.connection.send_event(l,d,B)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}te.instances=[],te.isReady=!1,te.logToConsole=!1,te.Runtime=AA,te.ScriptReceivers=AA.ScriptReceivers,te.DependenciesReceivers=AA.DependenciesReceivers,te.auth_callbacks=AA.auth_callbacks;const Hi=te;function US(p){if(p==null)throw"You must pass your app key when you instantiate Pusher."}AA.setup(te)}},n={};function r(o){var a=n[o];if(a!==void 0)return a.exports;var i=n[o]={exports:{}};return t[o].call(i.exports,i,i.exports,r),i.exports}r.d=(o,a)=>{for(var i in a)r.o(a,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:a[i]})},r.o=(o,a)=>Object.prototype.hasOwnProperty.call(o,a);var s=r(721);return s})())})(Tc)),Tc.exports}var f_=h_();const g_=p_(f_);let We=null,rr=null;function B_(A){return I(this,null,function*(){return rr||(rr=I(null,null,function*(){const e=A.backendUrl.replace(/\/+$/,""),t=yield Sr(`${e}/api/settings`,{headers:{Authorization:`Bearer ${A.token}`}});if(!t.ok)throw new Error(`Failed to fetch settings: HTTP ${t.status}`);const n=yield t.json();We=new g_(n.pusher.key,{cluster:n.pusher.cluster||"local",forceTLS:!0,wsHost:n.pusher.wsHost||void 0,wsPort:n.pusher.wssPort,wssPort:n.pusher.wssPort,enabledTransports:n.pusher.wsHost?["ws"]:void 0,channelAuthorization:{customHandler:({socketId:r,channelName:s},o)=>{Sr(`${e}/api/pusher/auth`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.token}`},body:JSON.stringify({socket_id:r,channel_name:s})}).then(a=>a.json()).then(a=>o(null,a)).catch(a=>o(a instanceof Error?a:new Error(String(a)),null))}}})}),rr.catch(()=>{rr=null}),rr)})}function w_(A){if(!A||!We)return null;let e=!1;const t=({current:n})=>{n==="connected"&&e?(e=!1,A()):n!=="connected"&&(e=!0)};return We.connection.bind("state_change",t),()=>We==null?void 0:We.connection.unbind("state_change",t)}function m_(A,e,t){return I(this,null,function*(){if(yield B_(A),!We)return()=>{};const n=We.subscribe(`private-task-${e}`);t.onStatusUpdate&&n.bind(Ks.TASK_STATUS_UPDATED,t.onStatusUpdate),t.onInteractionCreated&&n.bind(Ks.TASK_INTERACTION_CREATED,t.onInteractionCreated),t.onInteractionAnswered&&n.bind(Ks.TASK_INTERACTION_ANSWERED,t.onInteractionAnswered),t.onBrowserCommandCreated&&n.bind(Ks.TASK_BROWSER_COMMAND_CREATED,t.onBrowserCommandCreated);const r=w_(t.onReconnect);return()=>{n.unbind_all(),We==null||We.unsubscribe(`private-task-${e}`),r==null||r()}})}function $h(A,e){const t=a=>I(null,null,function*(){if(w.currentTaskId!==A||!w.runnerEl||w.state.kind!=="idle"&&w.state.kind!=="connecting"||w.handledCommandIds.has(a.commandId))return;w.handledCommandIds.add(a.commandId);const i={id:a.commandId,taskId:a.taskId,action:a.action,selector:a.selector,value:a.value,description:a.description,status:"pending",createdAt:new Date().toISOString()};bn({kind:"executing",command:i,actionsRun:w.state.kind==="idle"?w.state.actionsRun:0}),yield Vh(i,e,A)}),n=a=>{if(!(w.currentTaskId!==A||!w.runnerEl)&&T_.has(a)){if(w.state.kind==="executing")bn({kind:"finishing",status:a,actionsRun:w.state.actionsRun});else if(w.state.kind==="connecting"||w.state.kind==="idle"){const i=w.state.kind==="idle"?w.state.actionsRun:0;bn({kind:"finished",status:a,actionsRun:i})}}},r=a=>{w.currentTaskId!==A||!w.runnerEl||(a.outputChunk&&Zh([a.outputChunk]),n(a.status))},s=()=>I(null,null,function*(){var a;if(!(w.currentTaskId!==A||!w.runnerEl))try{const i=yield Ys(e,A);w.currentTaskId===A&&w.runnerEl&&(w.currentQuestion=(a=i[0])!=null?a:null,Cn())}catch(i){}}),o=()=>I(null,null,function*(){var a;try{const[i,c,u,h]=yield Promise.all([Su(e,A),Qb(e,A),Ys(e,A),Cb(e,A)]);if(w.currentTaskId!==A||!w.runnerEl)return;Zh(c),w.currentQuestion=(a=u[0])!=null?a:null,Cn(),n(i.status),h&&h.status==="pending"&&(w.state.kind==="idle"||w.state.kind==="connecting")&&!w.handledCommandIds.has(h.id)?(w.handledCommandIds.add(h.id),bn({kind:"executing",command:h,actionsRun:w.state.kind==="idle"?w.state.actionsRun:0}),yield Vh(h,e,A)):w.state.kind==="connecting"&&bn({kind:"idle",actionsRun:0})}catch(i){}});o(),m_(e,A,{onStatusUpdate:r,onInteractionCreated:s,onInteractionAnswered:s,onBrowserCommandCreated:t,onReconnect:()=>{o()}}).then(a=>{if(w.currentTaskId!==A||w.state.kind==="finished"){a();return}w.unsubscribeTaskChannel=a})}function ei(){var e;w.cancelArmed=!1,w.cancelArmTimeout&&(clearTimeout(w.cancelArmTimeout),w.cancelArmTimeout=null),w.cancelDisarmDocListener&&(document.removeEventListener("click",w.cancelDisarmDocListener,!0),w.cancelDisarmDocListener=null);const A=(e=w.runnerEl)==null?void 0:e.querySelector("[data-ap-runner-cancel]");A&&(A.textContent="Cancel task")}function C_(A,e){return I(this,null,function*(){if(w.currentTaskId!==e||!w.runnerEl)return;const t=w.runnerEl.querySelector("[data-ap-runner-cancel]");t&&(t.disabled=!0);try{yield Ub(A,e)}catch(n){t&&(t.disabled=!1)}})}function zh(){if(!w.currentTaskId||!w.currentApiOpts||!w.currentBackendUrl||!w.currentCaptureTitle)return;const A=w.currentTaskId,e=w.currentApiOpts;lh({taskId:A,backendUrl:w.currentBackendUrl,title:w.currentCaptureTitle}),w.timerHandle&&clearInterval(w.timerHandle),ni(),w.timerHandle=setInterval(ni,Xh);const t=w.state.kind==="finished"?w.state.actionsRun:0;w.handledCommandIds=new Set,w.state={kind:"idle",actionsRun:t},Hc(),$h(A,e)}function Vh(A,e,t){return I(this,null,function*(){var o,a,i;let n="done",r;try{if(A.action==="getContext"){const c=A.selector?document.querySelector(A.selector):document.body;if(!c)throw new Error(`element not found (${A.selector})`);if(wl(c))throw new Error("Target element is in a sensitive or excluded region and cannot be automated");(o=w.highlightOverlay)==null||o.update(c),r=U_(c)}else{if(!A.selector)throw new Error(`${A.action} command is missing a selector`);const c=document.querySelector(A.selector);if(!c)throw new Error(`element not found (${A.selector})`);if(wl(c))throw new Error("Target element is in a sensitive or excluded region and cannot be automated");if((a=w.highlightOverlay)==null||a.update(c),A.action==="click")yield u_(c),r="Clicked";else{if(A.value===void 0)throw new Error("inputText command is missing a value");E_(c,A.value),r="Entered text"}}}catch(c){n="error",r=c instanceof Error?c.message:"Unknown error executing command"}if(w.currentTaskId===t&&w.runnerEl&&v_(n,A,r),yield y_(e,t,A.id,n,r),w.currentTaskId!==t||!w.runnerEl)return;(i=w.highlightOverlay)==null||i.hide();const s=(w.state.kind==="executing"||w.state.kind==="finishing"?w.state.actionsRun:0)+1;w.state.kind==="finishing"?bn({kind:"finished",status:w.state.status,actionsRun:s}):w.state.kind==="executing"&&bn({kind:"idle",actionsRun:s})})}function b_(A){return I(this,null,function*(){var n;if(!w.runnerEl||!w.currentQuestion||!w.currentTaskId||w.chatSubmitInFlight)return;const e=w.currentTaskId,t=w.currentApiOpts;if(t){w.chatSubmitInFlight=!0;try{const r={selectedOption:A};yield Hu(t,e,w.currentQuestion.id,r),w.currentQuestion=null,Cn();const s=yield Ys(t,e);w.currentTaskId===e&&w.runnerEl&&(w.currentQuestion=(n=s[0])!=null?n:null,Cn())}catch(r){const s=w.runnerEl.querySelector("[data-ap-runner-chat-error]");s&&(s.textContent="Failed to send your answer — try again.",s.style.display="block")}finally{w.chatSubmitInFlight=!1}}})}function Q_(A,e){return I(this,null,function*(){var o;if(!w.runnerEl||w.chatSubmitInFlight||w.state.kind==="finished"&&w.state.status==="failed")return;const t=w.runnerEl.querySelector("[data-ap-runner-chat-input]"),n=w.runnerEl.querySelector("[data-ap-runner-chat-error]"),r=w.runnerEl.querySelector("[data-ap-runner-chat-send]");if(!t||!n||!r)return;const s=t.value.trim();if(s){w.chatSubmitInFlight=!0,r.disabled=!0,n.style.display="none";try{if(w.currentQuestion){yield Hu(A,e,w.currentQuestion.id,s),w.currentQuestion=null,Cn();try{const a=yield Ys(A,e);w.currentTaskId===e&&w.runnerEl&&(w.currentQuestion=(o=a[0])!=null?o:null,Cn())}catch(a){}}else yield yb(A,e,s),w.state.kind==="finished"&&zh();t.value=""}catch(a){n.textContent=a instanceof Error?a.message:"Failed to send — try again.",n.style.display="block"}finally{w.chatSubmitInFlight=!1,r.disabled=!1}}})}function y_(A,e,t,n,r){return I(this,null,function*(){try{yield bb(A,e,t,n,r)}catch(s){}})}function U_(A){const e=A.cloneNode(!0);e.querySelectorAll("script, style, noscript").forEach(r=>r.remove()),ml(e),Ni(e);let t=e.outerHTML,n=!1;return t.length>Wh&&(t=t.slice(0,Wh),n=!0),`URL: ${location.href}
1921
+ */var Gh;function B_(){return Gh||(Gh=1,(function(A,e){(function(n,r){A.exports=r()})(self,()=>(()=>{var t={594(o,a){var i=this&&this.__extends||(function(){var v=function(y,U){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,R){x.__proto__=R}||function(x,R){for(var H in R)R.hasOwnProperty(H)&&(x[H]=R[H])},v(y,U)};return function(y,U){v(y,U);function x(){this.constructor=y}y.prototype=U===null?Object.create(U):(x.prototype=U.prototype,new x)}})();Object.defineProperty(a,"__esModule",{value:!0});var c=256,u=(function(){function v(y){y===void 0&&(y="="),this._paddingCharacter=y}return v.prototype.encodedLength=function(y){return this._paddingCharacter?(y+2)/3*4|0:(y*8+5)/6|0},v.prototype.encode=function(y){for(var U="",x=0;x<y.length-2;x+=3){var R=y[x]<<16|y[x+1]<<8|y[x+2];U+=this._encodeByte(R>>>18&63),U+=this._encodeByte(R>>>12&63),U+=this._encodeByte(R>>>6&63),U+=this._encodeByte(R>>>0&63)}var H=y.length-x;if(H>0){var R=y[x]<<16|(H===2?y[x+1]<<8:0);U+=this._encodeByte(R>>>18&63),U+=this._encodeByte(R>>>12&63),H===2?U+=this._encodeByte(R>>>6&63):U+=this._paddingCharacter||"",U+=this._paddingCharacter||""}return U},v.prototype.maxDecodedLength=function(y){return this._paddingCharacter?y/4*3|0:(y*6+7)/8|0},v.prototype.decodedLength=function(y){return this.maxDecodedLength(y.length-this._getPaddingLength(y))},v.prototype.decode=function(y){if(y.length===0)return new Uint8Array(0);for(var U=this._getPaddingLength(y),x=y.length-U,R=new Uint8Array(this.maxDecodedLength(x)),H=0,X=0,N=0,W=0,K=0,nA=0,hA=0;X<x-4;X+=4)W=this._decodeChar(y.charCodeAt(X+0)),K=this._decodeChar(y.charCodeAt(X+1)),nA=this._decodeChar(y.charCodeAt(X+2)),hA=this._decodeChar(y.charCodeAt(X+3)),R[H++]=W<<2|K>>>4,R[H++]=K<<4|nA>>>2,R[H++]=nA<<6|hA,N|=W&c,N|=K&c,N|=nA&c,N|=hA&c;if(X<x-1&&(W=this._decodeChar(y.charCodeAt(X)),K=this._decodeChar(y.charCodeAt(X+1)),R[H++]=W<<2|K>>>4,N|=W&c,N|=K&c),X<x-2&&(nA=this._decodeChar(y.charCodeAt(X+2)),R[H++]=K<<4|nA>>>2,N|=nA&c),X<x-3&&(hA=this._decodeChar(y.charCodeAt(X+3)),R[H++]=nA<<6|hA,N|=hA&c),N!==0)throw new Error("Base64Coder: incorrect characters for decoding");return R},v.prototype._encodeByte=function(y){var U=y;return U+=65,U+=25-y>>>8&6,U+=51-y>>>8&-75,U+=61-y>>>8&-15,U+=62-y>>>8&3,String.fromCharCode(U)},v.prototype._decodeChar=function(y){var U=c;return U+=(42-y&y-44)>>>8&-c+y-43+62,U+=(46-y&y-48)>>>8&-c+y-47+63,U+=(47-y&y-58)>>>8&-c+y-48+52,U+=(64-y&y-91)>>>8&-c+y-65+0,U+=(96-y&y-123)>>>8&-c+y-97+26,U},v.prototype._getPaddingLength=function(y){var U=0;if(this._paddingCharacter){for(var x=y.length-1;x>=0&&y[x]===this._paddingCharacter;x--)U++;if(y.length<4||U>2)throw new Error("Base64Coder: incorrect padding")}return U},v})();a.Coder=u;var h=new u;function f(v){return h.encode(v)}a.encode=f;function g(v){return h.decode(v)}a.decode=g;var m=(function(v){i(y,v);function y(){return v!==null&&v.apply(this,arguments)||this}return y.prototype._encodeByte=function(U){var x=U;return x+=65,x+=25-U>>>8&6,x+=51-U>>>8&-75,x+=61-U>>>8&-13,x+=62-U>>>8&49,String.fromCharCode(x)},y.prototype._decodeChar=function(U){var x=c;return x+=(44-U&U-46)>>>8&-c+U-45+62,x+=(94-U&U-96)>>>8&-c+U-95+63,x+=(47-U&U-58)>>>8&-c+U-48+52,x+=(64-U&U-91)>>>8&-c+U-65+0,x+=(96-U&U-123)>>>8&-c+U-97+26,x},y})(u);a.URLSafeCoder=m;var b=new m;function E(v){return b.encode(v)}a.encodeURLSafe=E;function k(v){return b.decode(v)}a.decodeURLSafe=k,a.encodedLength=function(v){return h.encodedLength(v)},a.maxDecodedLength=function(v){return h.maxDecodedLength(v)},a.decodedLength=function(v){return h.decodedLength(v)}},978(o,a){var i="utf8: invalid source encoding";function c(u){for(var h=[],f=0;f<u.length;f++){var g=u[f];if(g&128){var m=void 0;if(g<224){if(f>=u.length)throw new Error(i);var b=u[++f];if((b&192)!==128)throw new Error(i);g=(g&31)<<6|b&63,m=128}else if(g<240){if(f>=u.length-1)throw new Error(i);var b=u[++f],E=u[++f];if((b&192)!==128||(E&192)!==128)throw new Error(i);g=(g&15)<<12|(b&63)<<6|E&63,m=2048}else if(g<248){if(f>=u.length-2)throw new Error(i);var b=u[++f],E=u[++f],k=u[++f];if((b&192)!==128||(E&192)!==128||(k&192)!==128)throw new Error(i);g=(g&15)<<18|(b&63)<<12|(E&63)<<6|k&63,m=65536}else throw new Error(i);if(g<m||g>=55296&&g<=57343)throw new Error(i);if(g>=65536){if(g>1114111)throw new Error(i);g-=65536,h.push(String.fromCharCode(55296|g>>10)),g=56320|g&1023}}h.push(String.fromCharCode(g))}return h.join("")}a.D4=c},721(o,a,i){o.exports=i(207).default},207(o,a,i){i.d(a,{default:()=>Li});class c{constructor(l,d){this.lastId=0,this.prefix=l,this.name=d}create(l){this.lastId++;var d=this.lastId,B=this.prefix+d,C=this.name+"["+d+"]",S=!1,D=function(){S||(l.apply(null,arguments),S=!0)};return this[d]=D,{number:d,id:B,name:C,callback:D}}remove(l){delete this[l.number]}}var u=new c("_pusher_script_","Pusher.ScriptReceivers"),h={VERSION:"8.5.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""};const f=h;class g{constructor(l){this.options=l,this.receivers=l.receivers||u,this.loading={}}load(l,d,B){var C=this;if(C.loading[l]&&C.loading[l].length>0)C.loading[l].push(B);else{C.loading[l]=[B];var S=AA.createScriptRequest(C.getPath(l,d)),D=C.receivers.create(function($){if(C.receivers.remove(D),C.loading[l]){var Y=C.loading[l];delete C.loading[l];for(var oA=function(MA){MA||S.cleanup()},uA=0;uA<Y.length;uA++)Y[uA]($,oA)}});S.send(D)}}getRoot(l){var d,B=AA.getDocument().location.protocol;return l&&l.useTLS||B==="https:"?d=this.options.cdn_https:d=this.options.cdn_http,d.replace(/\/*$/,"")+"/"+this.options.version}getPath(l,d){return this.getRoot(d)+"/"+l+this.options.suffix+".js"}}var m=new c("_pusher_dependencies","Pusher.DependenciesReceivers"),b=new g({cdn_http:f.cdn_http,cdn_https:f.cdn_https,version:f.VERSION,suffix:f.dependency_suffix,receivers:m});const E={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},v={buildLogSuffix:function(p){const l="See:",d=E.urls[p];if(!d)return"";let B;return d.fullUrl?B=d.fullUrl:d.path&&(B=E.baseUrl+d.path),B?`${l} ${B}`:""}};var y;(function(p){p.UserAuthentication="user-authentication",p.ChannelAuthorization="channel-authorization"})(y||(y={}));class U extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class x extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class R extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class H extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class X extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class N extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class W extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class K extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class nA extends Error{constructor(l,d){super(d),this.status=l,Object.setPrototypeOf(this,new.target.prototype)}}const _A=function(p,l,d,B,C){const S=AA.createXHR();S.open("POST",d.endpoint,!0),S.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var D in d.headers)S.setRequestHeader(D,d.headers[D]);if(d.headersProvider!=null){let $=d.headersProvider();for(var D in $)S.setRequestHeader(D,$[D])}return S.onreadystatechange=function(){if(S.readyState===4)if(S.status===200){let $,Y=!1;try{$=JSON.parse(S.responseText),Y=!0}catch(oA){C(new nA(200,`JSON returned from ${B.toString()} endpoint was invalid, yet status code was 200. Data was: ${S.responseText}`),null)}Y&&C(null,$)}else{let $="";switch(B){case y.UserAuthentication:$=v.buildLogSuffix("authenticationEndpoint");break;case y.ChannelAuthorization:$=`Clients must be authorized to join private or presence channels. ${v.buildLogSuffix("authorizationEndpoint")}`;break}C(new nA(S.status,`Unable to retrieve auth string from ${B.toString()} endpoint - received status: ${S.status} from ${d.endpoint}. ${$}`),null)}},S.send(l),S};function jA(p){return xA(bs(p))}var he=String.fromCharCode,Ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xn=function(p){var l=p.charCodeAt(0);return l<128?p:l<2048?he(192|l>>>6)+he(128|l&63):he(224|l>>>12&15)+he(128|l>>>6&63)+he(128|l&63)},bs=function(p){return p.replace(/[^\x00-\x7F]/g,xn)},Br=function(p){var l=[0,2,1][p.length%3],d=p.charCodeAt(0)<<16|(p.length>1?p.charCodeAt(1):0)<<8|(p.length>2?p.charCodeAt(2):0),B=[Ye.charAt(d>>>18),Ye.charAt(d>>>12&63),l>=2?"=":Ye.charAt(d>>>6&63),l>=1?"=":Ye.charAt(d&63)];return B.join("")},xA=window.btoa||function(p){return p.replace(/[\s\S]{1,3}/g,Br)};class wr{constructor(l,d,B,C){this.clear=d,this.timer=l(()=>{this.timer&&(this.timer=C(this.timer))},B)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}const SA=wr;function St(p){window.clearTimeout(p)}function lA(p){window.clearInterval(p)}class YA extends SA{constructor(l,d){super(setTimeout,St,l,function(B){return d(),null})}}class qe extends SA{constructor(l,d){super(setInterval,lA,l,function(B){return d(),B})}}var be={now(){return Date.now?Date.now():new Date().valueOf()},defer(p){return new YA(0,p)},method(p,...l){var d=Array.prototype.slice.call(arguments,1);return function(B){return B[p].apply(B,d.concat(arguments))}}};const IA=be;function OA(p,...l){for(var d=0;d<l.length;d++){var B=l[d];for(var C in B)B[C]&&B[C].constructor&&B[C].constructor===Object?p[C]=OA(p[C]||{},B[C]):p[C]=B[C]}return p}function Sn(){for(var p=["Pusher"],l=0;l<arguments.length;l++)typeof arguments[l]=="string"?p.push(arguments[l]):p.push(fe(arguments[l]));return p.join(" : ")}function In(p,l){var d=Array.prototype.indexOf;if(p===null)return-1;if(d&&p.indexOf===d)return p.indexOf(l);for(var B=0,C=p.length;B<C;B++)if(p[B]===l)return B;return-1}function GA(p,l){for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&l(p[d],d,p)}function wt(p){var l=[];return GA(p,function(d,B){l.push(B)}),l}function De(p){var l=[];return GA(p,function(d){l.push(d)}),l}function Oe(p,l,d){for(var B=0;B<p.length;B++)l.call(d||window,p[B],B,p)}function It(p,l){for(var d=[],B=0;B<p.length;B++)d.push(l(p[B],B,p,d));return d}function At(p,l){var d={};return GA(p,function(B,C){d[C]=l(B)}),d}function mt(p,l){l=l||function(C){return!!C};for(var d=[],B=0;B<p.length;B++)l(p[B],B,p,d)&&d.push(p[B]);return d}function Ct(p,l){var d={};return GA(p,function(B,C){(l&&l(B,C,p,d)||B)&&(d[C]=B)}),d}function Tn(p){var l=[];return GA(p,function(d,B){l.push([B,d])}),l}function en(p,l){for(var d=0;d<p.length;d++)if(l(p[d],d,p))return!0;return!1}function mr(p,l){for(var d=0;d<p.length;d++)if(!l(p[d],d,p))return!1;return!0}function ZA(p){return At(p,function(l){return typeof l=="object"&&(l=fe(l)),encodeURIComponent(jA(l.toString()))})}function bt(p){var l=Ct(p,function(B){return B!==void 0}),d=It(Tn(ZA(l)),IA.method("join","=")).join("&");return d}function et(p){var l=[],d=[];return(function B(C,S){var D,$,Y;switch(typeof C){case"object":if(!C)return null;for(D=0;D<l.length;D+=1)if(l[D]===C)return{$ref:d[D]};if(l.push(C),d.push(S),Object.prototype.toString.apply(C)==="[object Array]")for(Y=[],D=0;D<C.length;D+=1)Y[D]=B(C[D],S+"["+D+"]");else{Y={};for($ in C)Object.prototype.hasOwnProperty.call(C,$)&&(Y[$]=B(C[$],S+"["+JSON.stringify($)+"]"))}return Y;case"number":case"string":case"boolean":return C}})(p,"$")}function fe(p){try{return JSON.stringify(p)}catch(l){return JSON.stringify(et(p))}}class Qs{constructor(){this.globalLog=l=>{window.console&&window.console.log&&window.console.log(l)}}debug(...l){this.log(this.globalLog,l)}warn(...l){this.log(this.globalLogWarn,l)}error(...l){this.log(this.globalLogError,l)}globalLogWarn(l){window.console&&window.console.warn?window.console.warn(l):this.globalLog(l)}globalLogError(l){window.console&&window.console.error?window.console.error(l):this.globalLogWarn(l)}log(l,...d){var B=Sn.apply(this,arguments);Li.log?Li.log(B):Li.logToConsole&&l.bind(this)(B)}}const BA=new Qs;var Qi=function(p,l,d,B,C){(d.headers!==void 0||d.headersProvider!=null)&&BA.warn(`To send headers with the ${B.toString()} request, you must use AJAX, rather than JSONP.`);var S=p.nextAuthCallbackID.toString();p.nextAuthCallbackID++;var D=p.getDocument(),$=D.createElement("script");p.auth_callbacks[S]=function(uA){C(null,uA)};var Y="Pusher.auth_callbacks['"+S+"']";$.src=d.endpoint+"?callback="+encodeURIComponent(Y)+"&"+l;var oA=D.getElementsByTagName("head")[0]||D.documentElement;oA.insertBefore($,oA.firstChild)};const ys=Qi;class yi{constructor(l){this.src=l}send(l){var d=this,B="Error loading "+d.src;d.script=document.createElement("script"),d.script.id=l.id,d.script.src=d.src,d.script.type="text/javascript",d.script.charset="UTF-8",d.script.addEventListener?(d.script.onerror=function(){l.callback(B)},d.script.onload=function(){l.callback(null)}):d.script.onreadystatechange=function(){(d.script.readyState==="loaded"||d.script.readyState==="complete")&&l.callback(null)},d.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(d.errorScript=document.createElement("script"),d.errorScript.id=l.id+"_error",d.errorScript.text=l.name+"('"+B+"');",d.script.async=d.errorScript.async=!1):d.script.async=!0;var C=document.getElementsByTagName("head")[0];C.insertBefore(d.script,C.firstChild),d.errorScript&&C.insertBefore(d.errorScript,d.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class Cr{constructor(l,d){this.url=l,this.data=d}send(l){if(!this.request){var d=bt(this.data),B=this.url+"/"+l.number+"?"+d;this.request=AA.createScriptRequest(B),this.request.send(l)}}cleanup(){this.request&&this.request.cleanup()}}var br=function(p,l){return function(d,B){var C="http"+(l?"s":"")+"://",S=C+(p.host||p.options.host)+p.options.path,D=AA.createJSONPRequest(S,d),$=AA.ScriptReceivers.create(function(Y,oA){u.remove($),D.cleanup(),oA&&oA.host&&(p.host=oA.host),B&&B(Y,oA)});D.send($)}},tt={name:"jsonp",getAgent:br};const tn=tt;function Hn(p,l,d){var B=p+(l.useTLS?"s":""),C=l.useTLS?l.hostTLS:l.hostNonTLS;return B+"://"+C+d}function Ln(p,l){var d="/app/"+p,B="?protocol="+f.PROTOCOL+"&client=js&version="+f.VERSION+(l?"&"+l:"");return d+B}var Jc={getInitial:function(p,l){var d=(l.httpPath||"")+Ln(p,"flash=false");return Hn("ws",l,d)}},Qr={getInitial:function(p,l){var d=(l.httpPath||"/pusher")+Ln(p);return Hn("http",l,d)}},yr={getInitial:function(p,l){return Hn("http",l,l.httpPath||"/pusher")},getPath:function(p,l){return Ln(p)}};class jc{constructor(){this._callbacks={}}get(l){return this._callbacks[Tt(l)]}add(l,d,B){var C=Tt(l);this._callbacks[C]=this._callbacks[C]||[],this._callbacks[C].push({fn:d,context:B})}remove(l,d,B){if(!l&&!d&&!B){this._callbacks={};return}var C=l?[Tt(l)]:wt(this._callbacks);d||B?this.removeCallback(C,d,B):this.removeAllCallbacks(C)}removeCallback(l,d,B){Oe(l,function(C){this._callbacks[C]=mt(this._callbacks[C]||[],function(S){return d&&d!==S.fn||B&&B!==S.context}),this._callbacks[C].length===0&&delete this._callbacks[C]},this)}removeAllCallbacks(l){Oe(l,function(d){delete this._callbacks[d]},this)}}function Tt(p){return"_"+p}class nt{constructor(l){this.callbacks=new jc,this.global_callbacks=[],this.failThrough=l}bind(l,d,B){return this.callbacks.add(l,d,B),this}bind_global(l){return this.global_callbacks.push(l),this}unbind(l,d,B){return this.callbacks.remove(l,d,B),this}unbind_global(l){return l?(this.global_callbacks=mt(this.global_callbacks||[],d=>d!==l),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(l,d,B){for(var C=0;C<this.global_callbacks.length;C++)this.global_callbacks[C](l,d);var S=this.callbacks.get(l),D=[];if(B?D.push(d,B):d&&D.push(d),S&&S.length>0)for(var C=0;C<S.length;C++)S[C].fn.apply(S[C].context||window,D);else this.failThrough&&this.failThrough(l,d);return this}}class Yc extends nt{constructor(l,d,B,C,S){super(),this.initialize=AA.transportConnectionInitializer,this.hooks=l,this.name=d,this.priority=B,this.key=C,this.options=S,this.state="new",this.timeline=S.timeline,this.activityTimeout=S.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var l=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(l,this.options)}catch(d){return IA.defer(()=>{this.onError(d),this.changeState("closed")}),!1}return this.bindListeners(),BA.debug("Connecting",{transport:this.name,url:l}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(l){return this.state==="open"?(IA.defer(()=>{this.socket&&this.socket.send(l)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(l){this.emit("error",{type:"WebSocketError",error:l}),this.timeline.error(this.buildTimelineMessage({error:l.toString()}))}onClose(l){l?this.changeState("closed",{code:l.code,reason:l.reason,wasClean:l.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(l){this.emit("message",l)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=l=>{this.onError(l)},this.socket.onclose=l=>{this.onClose(l)},this.socket.onmessage=l=>{this.onMessage(l)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(l,d){this.state=l,this.timeline.info(this.buildTimelineMessage({state:l,params:d})),this.emit(l,d)}buildTimelineMessage(l){return OA({cid:this.id},l)}}class wA{constructor(l){this.hooks=l}isSupported(l){return this.hooks.isSupported(l)}createConnection(l,d,B,C){return new Yc(this.hooks,l,d,B,C)}}var nn=new wA({urls:Jc,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!AA.getWebSocketAPI()},isSupported:function(){return!!AA.getWebSocketAPI()},getSocket:function(p){return AA.createWebSocket(p)}}),Ui={urls:Qr,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Us=OA({getSocket:function(p){return AA.HTTPFactory.createStreamingSocket(p)}},Ui),Ur=OA({getSocket:function(p){return AA.HTTPFactory.createPollingSocket(p)}},Ui),Es={isSupported:function(){return AA.isXHRSupported()}},Ei=new wA(OA({},Us,Es)),qc=new wA(OA({},Ur,Es)),Pe={ws:nn,xhr_streaming:Ei,xhr_polling:qc};const Me=Pe;var ki=new wA({file:"sockjs",urls:yr,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(p,l){return new window.SockJS(p,null,{js_path:b.getPath("sockjs",{useTLS:l.useTLS}),ignore_null_origin:l.ignoreNullOrigin})},beforeOpen:function(p,l){p.send(JSON.stringify({path:l}))}}),ks={isSupported:function(p){var l=AA.isXDRSupported(p.useTLS);return l}},Fs=new wA(OA({},Us,ks)),Fi=new wA(OA({},Ur,ks));Me.xdr_streaming=Fs,Me.xdr_polling=Fi,Me.sockjs=ki;const rt=Me;class vi extends nt{constructor(){super();var l=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){l.emit("online")},!1),window.addEventListener("offline",function(){l.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var _i=new vi;class xi{constructor(l,d,B){this.manager=l,this.transport=d,this.minPingDelay=B.minPingDelay,this.maxPingDelay=B.maxPingDelay,this.pingDelay=void 0}createConnection(l,d,B,C){C=OA({},C,{activityTimeout:this.pingDelay});var S=this.transport.createConnection(l,d,B,C),D=null,$=function(){S.unbind("open",$),S.bind("closed",Y),D=IA.now()},Y=oA=>{if(S.unbind("closed",Y),oA.code===1002||oA.code===1003)this.manager.reportDeath();else if(!oA.wasClean&&D){var uA=IA.now()-D;uA<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(uA/2,this.minPingDelay))}};return S.bind("open",$),S}isSupported(l){return this.manager.isAlive()&&this.transport.isSupported(l)}}const vs={decodeMessage:function(p){try{var l=JSON.parse(p.data),d=l.data;if(typeof d=="string")try{d=JSON.parse(l.data)}catch(C){}var B={event:l.event,channel:l.channel,data:d};return l.user_id&&(B.user_id=l.user_id),B}catch(C){throw{type:"MessageParseError",error:C,data:p.data}}},encodeMessage:function(p){return JSON.stringify(p)},processHandshake:function(p){var l=vs.decodeMessage(p);if(l.event==="pusher:connection_established"){if(!l.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:l.data.socket_id,activityTimeout:l.data.activity_timeout*1e3}}else{if(l.event==="pusher:error")return{action:this.getCloseAction(l.data),error:this.getCloseError(l.data)};throw"Invalid handshake"}},getCloseAction:function(p){return p.code<4e3?p.code>=1002&&p.code<=1004?"backoff":null:p.code===4e3?"tls_only":p.code<4100?"refused":p.code<4200?"backoff":p.code<4300?"retry":"refused"},getCloseError:function(p){return p.code!==1e3&&p.code!==1001?{type:"PusherError",data:{code:p.code,message:p.reason||p.message}}:null}},Ht=vs;class G extends nt{constructor(l,d){super(),this.id=l,this.transport=d,this.activityTimeout=d.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(l){return this.transport.send(l)}send_event(l,d,B){var C={event:l,data:d};return B&&(C.channel=B),BA.debug("Event sent",C),this.send(Ht.encodeMessage(C))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var l={message:B=>{var C;try{C=Ht.decodeMessage(B)}catch(S){this.emit("error",{type:"MessageParseError",error:S,data:B.data})}if(C!==void 0){switch(BA.debug("Event recd",C),C.event){case"pusher:error":this.emit("error",{type:"PusherError",data:C.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",C)}},activity:()=>{this.emit("activity")},error:B=>{this.emit("error",B)},closed:B=>{d(),B&&B.code&&this.handleCloseEvent(B),this.transport=null,this.emit("closed")}},d=()=>{GA(l,(B,C)=>{this.transport.unbind(C,B)})};GA(l,(B,C)=>{this.transport.bind(C,B)})}handleCloseEvent(l){var d=Ht.getCloseAction(l),B=Ht.getCloseError(l);B&&this.emit("error",B),d&&this.emit(d,{action:d,error:B})}}class Q{constructor(l,d){this.transport=l,this.callback=d,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=l=>{this.unbindListeners();var d;try{d=Ht.processHandshake(l)}catch(B){this.finish("error",{error:B}),this.transport.close();return}d.action==="connected"?this.finish("connected",{connection:new G(d.id,this.transport),activityTimeout:d.activityTimeout}):(this.finish(d.action,{error:d.error}),this.transport.close())},this.onClosed=l=>{this.unbindListeners();var d=Ht.getCloseAction(l)||"backoff",B=Ht.getCloseError(l);this.finish(d,{error:B})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(l,d){this.callback(OA({transport:this.transport,action:l},d))}}class T{constructor(l,d){this.timeline=l,this.options=d||{}}send(l,d){this.timeline.isEmpty()||this.timeline.send(AA.TimelineTransport.getAgent(this,l),d)}}class P extends nt{constructor(l,d){super(function(B,C){BA.debug("No callbacks on "+l+" for "+B)}),this.name=l,this.pusher=d,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(l,d){return d(null,{auth:""})}trigger(l,d){if(l.indexOf("client-")!==0)throw new U("Event '"+l+"' does not start with 'client-'");if(!this.subscribed){var B=v.buildLogSuffix("triggeringClientEvents");BA.warn(`Client event triggered before channel 'subscription_succeeded' event . ${B}`)}return this.pusher.send_event(l,d,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(l){var d=l.event,B=l.data;if(d==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(l);else if(d==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(l);else if(d.indexOf("pusher_internal:")!==0){var C={};this.emit(d,B,C)}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",l.data)}handleSubscriptionCountEvent(l){l.data.subscription_count&&(this.subscriptionCount=l.data.subscription_count),this.emit("pusher:subscription_count",l.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(l,d)=>{l?(this.subscriptionPending=!1,BA.error(l.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:l.message},l instanceof nA?{status:l.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:d.auth,channel_data:d.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class fA extends P{authorize(l,d){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:l},d)}}class qA{constructor(){this.reset()}get(l){return Object.prototype.hasOwnProperty.call(this.members,l)?{id:l,info:this.members[l]}:null}each(l){GA(this.members,(d,B)=>{l(this.get(B))})}setMyID(l){this.myID=l}onSubscription(l){this.members=l.presence.hash,this.count=l.presence.count,this.me=this.get(this.myID)}addMember(l){return this.get(l.user_id)===null&&this.count++,this.members[l.user_id]=l.user_info,this.get(l.user_id)}removeMember(l){var d=this.get(l.user_id);return d&&(delete this.members[l.user_id],this.count--),d}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var TA=function(p,l,d,B){function C(S){return S instanceof d?S:new d(function(D){D(S)})}return new(d||(d=Promise))(function(S,D){function $(uA){try{oA(B.next(uA))}catch(MA){D(MA)}}function Y(uA){try{oA(B.throw(uA))}catch(MA){D(MA)}}function oA(uA){uA.done?S(uA.value):C(uA.value).then($,Y)}oA((B=B.apply(p,l||[])).next())})};class ie extends fA{constructor(l,d){super(l,d),this.members=new qA}authorize(l,d){super.authorize(l,(B,C)=>TA(this,void 0,void 0,function*(){if(!B)if(C=C,C.channel_data!=null){var S=JSON.parse(C.channel_data);this.members.setMyID(S.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let D=v.buildLogSuffix("authorizationEndpoint");BA.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${D}, or the user should be signed in.`),d("Invalid auth response");return}d(B,C)}))}handleEvent(l){var d=l.event;if(d.indexOf("pusher_internal:")===0)this.handleInternalEvent(l);else{var B=l.data,C={};l.user_id&&(C.user_id=l.user_id),this.emit(d,B,C)}}handleInternalEvent(l){var d=l.event,B=l.data;switch(d){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(l);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(l);break;case"pusher_internal:member_added":var C=this.members.addMember(B);this.emit("pusher:member_added",C);break;case"pusher_internal:member_removed":var S=this.members.removeMember(B);S&&this.emit("pusher:member_removed",S);break}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(l.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var st=i(978),Qt=i(594);class _s extends fA{constructor(l,d,B){super(l,d),this.key=null,this.nacl=B}authorize(l,d){super.authorize(l,(B,C)=>{if(B){d(B,C);return}let S=C.shared_secret;if(!S){d(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=(0,Qt.decode)(S),delete C.shared_secret,d(null,C)})}trigger(l,d){throw new N("Client events are not currently supported for encrypted channels")}handleEvent(l){var d=l.event,B=l.data;if(d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0){super.handleEvent(l);return}this.handleEncryptedEvent(d,B)}handleEncryptedEvent(l,d){if(!this.key){BA.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!d.ciphertext||!d.nonce){BA.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+d);return}let B=(0,Qt.decode)(d.ciphertext);if(B.length<this.nacl.secretbox.overheadLength){BA.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${B.length}`);return}let C=(0,Qt.decode)(d.nonce);if(C.length<this.nacl.secretbox.nonceLength){BA.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${C.length}`);return}let S=this.nacl.secretbox.open(B,C,this.key);if(S===null){BA.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(D,$)=>{if(D){BA.error(`Failed to make a request to the authEndpoint: ${$}. Unable to fetch new key, so dropping encrypted event`);return}if(S=this.nacl.secretbox.open(B,C,this.key),S===null){BA.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(l,this.getDataToEmit(S))});return}this.emit(l,this.getDataToEmit(S))}getDataToEmit(l){let d=(0,st.D4)(l);try{return JSON.parse(d)}catch(B){return d}}}class XA extends nt{constructor(l,d){super(),this.state="initialized",this.connection=null,this.key=l,this.options=d,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var B=AA.getNetwork();B.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),B.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}switchCluster(l){this.key=l,this.updateStrategy(),this.retryIn(0)}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(l){return this.connection?this.connection.send(l):!1}send_event(l,d,B){return this.connection?this.connection.send_event(l,d,B):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var l=(d,B)=>{d?this.runner=this.strategy.connect(0,l):B.action==="error"?(this.emit("error",{type:"HandshakeError",error:B.error}),this.timeline.error({handshakeError:B.error})):(this.abortConnecting(),this.handshakeCallbacks[B.action](B))};this.runner=this.strategy.connect(0,l)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var l=this.abandonConnection();l.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(l){this.timeline.info({action:"retry",delay:l}),l>0&&this.emit("connecting_in",Math.round(l/1e3)),this.retryTimer=new YA(l||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new YA(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new YA(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new YA(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(l){return OA({},l,{message:d=>{this.resetActivityCheck(),this.emit("message",d)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:d=>{this.emit("error",d)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(l){return OA({},l,{connected:d=>{this.activityTimeout=Math.min(this.options.activityTimeout,d.activityTimeout,d.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(d.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let l=d=>B=>{B.error&&this.emit("error",{type:"WebSocketError",error:B.error}),d(B)};return{tls_only:l(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:l(()=>{this.disconnect()}),backoff:l(()=>{this.retryIn(1e3)}),retry:l(()=>{this.retryIn(0)})}}setConnection(l){this.connection=l;for(var d in this.connectionCallbacks)this.connection.bind(d,this.connectionCallbacks[d]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var l in this.connectionCallbacks)this.connection.unbind(l,this.connectionCallbacks[l]);var d=this.connection;return this.connection=null,d}}updateState(l,d){var B=this.state;if(this.state=l,B!==l){var C=l;C==="connected"&&(C+=" with new socket ID "+d.socket_id),BA.debug("State changed",B+" -> "+C),this.timeline.info({state:l,params:d}),this.emit("state_change",{previous:B,current:l}),this.emit(l,d)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class Si{constructor(){this.channels={}}add(l,d){return this.channels[l]||(this.channels[l]=Ii(l,d)),this.channels[l]}all(){return De(this.channels)}find(l){return this.channels[l]}remove(l){var d=this.channels[l];return delete this.channels[l],d}disconnect(){GA(this.channels,function(l){l.disconnect()})}}function Ii(p,l){if(p.indexOf("private-encrypted-")===0){if(l.config.nacl)return Lt.createEncryptedChannel(p,l,l.config.nacl);let d="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",B=v.buildLogSuffix("encryptedChannelSupport");throw new N(`${d}. ${B}`)}else{if(p.indexOf("private-")===0)return Lt.createPrivateChannel(p,l);if(p.indexOf("presence-")===0)return Lt.createPresenceChannel(p,l);if(p.indexOf("#")===0)throw new x('Cannot create a channel with name "'+p+'".');return Lt.createChannel(p,l)}}var vx={createChannels(){return new Si},createConnectionManager(p,l){return new XA(p,l)},createChannel(p,l){return new P(p,l)},createPrivateChannel(p,l){return new fA(p,l)},createPresenceChannel(p,l){return new ie(p,l)},createEncryptedChannel(p,l,d){return new _s(p,l,d)},createTimelineSender(p,l){return new T(p,l)},createHandshake(p,l){return new Q(p,l)},createAssistantToTheTransportManager(p,l,d){return new xi(p,l,d)}};const Lt=vx;class Mf{constructor(l){this.options=l||{},this.livesLeft=this.options.lives||1/0}getAssistant(l){return Lt.createAssistantToTheTransportManager(this,l,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Rn{constructor(l,d){this.strategies=l,this.loop=!!d.loop,this.failFast=!!d.failFast,this.timeout=d.timeout,this.timeoutLimit=d.timeoutLimit}isSupported(){return en(this.strategies,IA.method("isSupported"))}connect(l,d){var B=this.strategies,C=0,S=this.timeout,D=null,$=(Y,oA)=>{oA?d(null,oA):(C=C+1,this.loop&&(C=C%B.length),C<B.length?(S&&(S=S*2,this.timeoutLimit&&(S=Math.min(S,this.timeoutLimit))),D=this.tryStrategy(B[C],l,{timeout:S,failFast:this.failFast},$)):d(!0))};return D=this.tryStrategy(B[C],l,{timeout:S,failFast:this.failFast},$),{abort:function(){D.abort()},forceMinPriority:function(Y){l=Y,D&&D.forceMinPriority(Y)}}}tryStrategy(l,d,B,C){var S=null,D=null;return B.timeout>0&&(S=new YA(B.timeout,function(){D.abort(),C(!0)})),D=l.connect(d,function($,Y){$&&S&&S.isRunning()&&!B.failFast||(S&&S.ensureAborted(),C($,Y))}),{abort:function(){S&&S.ensureAborted(),D.abort()},forceMinPriority:function($){D.forceMinPriority($)}}}}class Al{constructor(l){this.strategies=l}isSupported(){return en(this.strategies,IA.method("isSupported"))}connect(l,d){return _x(this.strategies,l,function(B,C){return function(S,D){if(C[B].error=S,S){xx(C)&&d(!0);return}Oe(C,function($){$.forceMinPriority(D.transport.priority)}),d(null,D)}})}}function _x(p,l,d){var B=It(p,function(C,S,D,$){return C.connect(l,d(S,$))});return{abort:function(){Oe(B,Sx)},forceMinPriority:function(C){Oe(B,function(S){S.forceMinPriority(C)})}}}function xx(p){return mr(p,function(l){return!!l.error})}function Sx(p){!p.error&&!p.aborted&&(p.abort(),p.aborted=!0)}class Ix{constructor(l,d,B){this.strategy=l,this.transports=d,this.ttl=B.ttl||18e5,this.usingTLS=B.useTLS,this.timeline=B.timeline}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.usingTLS,C=Tx(B),S=C&&C.cacheSkipCount?C.cacheSkipCount:0,D=[this.strategy];if(C&&C.timestamp+this.ttl>=IA.now()){var $=this.transports[C.transport];$&&(["ws","wss"].includes(C.transport)||S>3?(this.timeline.info({cached:!0,transport:C.transport,latency:C.latency}),D.push(new Rn([$],{timeout:C.latency*2+1e3,failFast:!0}))):S++)}var Y=IA.now(),oA=D.pop().connect(l,function uA(MA,Ri){MA?(Nf(B),D.length>0?(Y=IA.now(),oA=D.pop().connect(l,uA)):d(MA)):(Hx(B,Ri.transport.name,IA.now()-Y,S),d(null,Ri))});return{abort:function(){oA.abort()},forceMinPriority:function(uA){l=uA,oA&&oA.forceMinPriority(uA)}}}}function el(p){return"pusherTransport"+(p?"TLS":"NonTLS")}function Tx(p){var l=AA.getLocalStorage();if(l)try{var d=l[el(p)];if(d)return JSON.parse(d)}catch(B){Nf(p)}return null}function Hx(p,l,d,B){var C=AA.getLocalStorage();if(C)try{C[el(p)]=fe({timestamp:IA.now(),transport:l,latency:d,cacheSkipCount:B})}catch(S){}}function Nf(p){var l=AA.getLocalStorage();if(l)try{delete l[el(p)]}catch(d){}}class Ti{constructor(l,{delay:d}){this.strategy=l,this.options={delay:d}}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.strategy,C,S=new YA(this.options.delay,function(){C=B.connect(l,d)});return{abort:function(){S.ensureAborted(),C&&C.abort()},forceMinPriority:function(D){l=D,C&&C.forceMinPriority(D)}}}}class xs{constructor(l,d,B){this.test=l,this.trueBranch=d,this.falseBranch=B}isSupported(){var l=this.test()?this.trueBranch:this.falseBranch;return l.isSupported()}connect(l,d){var B=this.test()?this.trueBranch:this.falseBranch;return B.connect(l,d)}}class Lx{constructor(l){this.strategy=l}isSupported(){return this.strategy.isSupported()}connect(l,d){var B=this.strategy.connect(l,function(C,S){S&&B.abort(),d(C,S)});return B}}function Ss(p){return function(){return p.isSupported()}}var Rx=function(p,l,d){var B={};function C(Ag,TS,HS,LS,RS){var eg=d(p,Ag,TS,HS,LS,RS);return B[Ag]=eg,eg}var S=Object.assign({},l,{hostNonTLS:p.wsHost+":"+p.wsPort,hostTLS:p.wsHost+":"+p.wssPort,httpPath:p.wsPath}),D=Object.assign({},S,{useTLS:!0}),$=Object.assign({},l,{hostNonTLS:p.httpHost+":"+p.httpPort,hostTLS:p.httpHost+":"+p.httpsPort,httpPath:p.httpPath}),Y={loop:!0,timeout:15e3,timeoutLimit:6e4},oA=new Mf({minPingDelay:1e4,maxPingDelay:p.activityTimeout}),uA=new Mf({lives:2,minPingDelay:1e4,maxPingDelay:p.activityTimeout}),MA=C("ws","ws",3,S,oA),Ri=C("wss","ws",3,D,oA),vS=C("sockjs","sockjs",1,$),Xf=C("xhr_streaming","xhr_streaming",1,$,uA),_S=C("xdr_streaming","xdr_streaming",1,$,uA),Wf=C("xhr_polling","xhr_polling",1,$),xS=C("xdr_polling","xdr_polling",1,$),Jf=new Rn([MA],Y),SS=new Rn([Ri],Y),IS=new Rn([vS],Y),jf=new Rn([new xs(Ss(Xf),Xf,_S)],Y),Yf=new Rn([new xs(Ss(Wf),Wf,xS)],Y),qf=new Rn([new xs(Ss(jf),new Al([jf,new Ti(Yf,{delay:4e3})]),Yf)],Y),rl=new xs(Ss(qf),qf,IS),sl;return l.useTLS?sl=new Al([Jf,new Ti(rl,{delay:2e3})]):sl=new Al([Jf,new Ti(SS,{delay:2e3}),new Ti(rl,{delay:5e3})]),new Ix(new Lx(new xs(Ss(MA),sl,rl)),B,{ttl:18e5,timeline:l.timeline,useTLS:l.useTLS})};const Dx=Rx;function Ox(){var p=this;p.timeline.info(p.buildTimelineMessage({transport:p.name+(p.options.useTLS?"s":"")})),p.hooks.isInitialized()?p.changeState("initialized"):p.hooks.file?(p.changeState("initializing"),b.load(p.hooks.file,{useTLS:p.options.useTLS},function(l,d){p.hooks.isInitialized()?(p.changeState("initialized"),d(!0)):(l&&p.onError(l),p.onClose(),d(!1))})):p.onClose()}var Px={getRequest:function(p){var l=new window.XDomainRequest;return l.ontimeout=function(){p.emit("error",new R),p.close()},l.onerror=function(d){p.emit("error",d),p.close()},l.onprogress=function(){l.responseText&&l.responseText.length>0&&p.onChunk(200,l.responseText)},l.onload=function(){l.responseText&&l.responseText.length>0&&p.onChunk(200,l.responseText),p.emit("finished",200),p.close()},l},abortRequest:function(p){p.ontimeout=p.onerror=p.onprogress=p.onload=null,p.abort()}};const Mx=Px,Nx=256*1024;class Kx extends nt{constructor(l,d,B){super(),this.hooks=l,this.method=d,this.url=B}start(l){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},AA.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(l)}close(){this.unloader&&(AA.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(l,d){for(;;){var B=this.advanceBuffer(d);if(B)this.emit("chunk",{status:l,data:B});else break}this.isBufferTooLong(d)&&this.emit("buffer_too_long")}advanceBuffer(l){var d=l.slice(this.position),B=d.indexOf(`
1922
+ `);return B!==-1?(this.position+=B+1,d.slice(0,B)):null}isBufferTooLong(l){return this.position===l.length&&l.length>Nx}}var tl;(function(p){p[p.CONNECTING=0]="CONNECTING",p[p.OPEN=1]="OPEN",p[p.CLOSED=3]="CLOSED"})(tl||(tl={}));const Dn=tl;var $x=1;class zx{constructor(l,d){this.hooks=l,this.session=$f(1e3)+"/"+Xx(8),this.location=Vx(d),this.readyState=Dn.CONNECTING,this.openStream()}send(l){return this.sendRaw(JSON.stringify([l]))}ping(){this.hooks.sendHeartbeat(this)}close(l,d){this.onClose(l,d,!0)}sendRaw(l){if(this.readyState===Dn.OPEN)try{return AA.createSocketRequest("POST",Kf(Gx(this.location,this.session))).start(l),!0}catch(d){return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(l,d,B){this.closeStream(),this.readyState=Dn.CLOSED,this.onclose&&this.onclose({code:l,reason:d,wasClean:B})}onChunk(l){if(l.status===200){this.readyState===Dn.OPEN&&this.onActivity();var d,B=l.data.slice(0,1);switch(B){case"o":d=JSON.parse(l.data.slice(1)||"{}"),this.onOpen(d);break;case"a":d=JSON.parse(l.data.slice(1)||"[]");for(var C=0;C<d.length;C++)this.onEvent(d[C]);break;case"m":d=JSON.parse(l.data.slice(1)||"null"),this.onEvent(d);break;case"h":this.hooks.onHeartbeat(this);break;case"c":d=JSON.parse(l.data.slice(1)||"[]"),this.onClose(d[0],d[1],!0);break}}}onOpen(l){this.readyState===Dn.CONNECTING?(l&&l.hostname&&(this.location.base=Zx(this.location.base,l.hostname)),this.readyState=Dn.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(l){this.readyState===Dn.OPEN&&this.onmessage&&this.onmessage({data:l})}onActivity(){this.onactivity&&this.onactivity()}onError(l){this.onerror&&this.onerror(l)}openStream(){this.stream=AA.createSocketRequest("POST",Kf(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",l=>{this.onChunk(l)}),this.stream.bind("finished",l=>{this.hooks.onFinished(this,l)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(l){IA.defer(()=>{this.onError(l),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Vx(p){var l=/([^\?]*)\/*(\??.*)/.exec(p);return{base:l[1],queryString:l[2]}}function Gx(p,l){return p.base+"/"+l+"/xhr_send"}function Kf(p){var l=p.indexOf("?")===-1?"?":"&";return p+l+"t="+ +new Date+"&n="+$x++}function Zx(p,l){var d=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(p);return d[1]+l+d[3]}function $f(p){return AA.randomInt(p)}function Xx(p){for(var l=[],d=0;d<p;d++)l.push($f(32).toString(32));return l.join("")}const Wx=zx;var Jx={getReceiveURL:function(p,l){return p.base+"/"+l+"/xhr_streaming"+p.queryString},onHeartbeat:function(p){p.sendRaw("[]")},sendHeartbeat:function(p){p.sendRaw("[]")},onFinished:function(p,l){p.onClose(1006,"Connection interrupted ("+l+")",!1)}};const jx=Jx;var Yx={getReceiveURL:function(p,l){return p.base+"/"+l+"/xhr"+p.queryString},onHeartbeat:function(){},sendHeartbeat:function(p){p.sendRaw("[]")},onFinished:function(p,l){l===200?p.reconnect():p.onClose(1006,"Connection interrupted ("+l+")",!1)}};const qx=Yx;var AS={getRequest:function(p){var l=AA.getXHRAPI(),d=new l;return d.onreadystatechange=d.onprogress=function(){switch(d.readyState){case 3:d.responseText&&d.responseText.length>0&&p.onChunk(d.status,d.responseText);break;case 4:d.responseText&&d.responseText.length>0&&p.onChunk(d.status,d.responseText),p.emit("finished",d.status),p.close();break}},d},abortRequest:function(p){p.onreadystatechange=null,p.abort()}};const eS=AS;var tS={createStreamingSocket(p){return this.createSocket(jx,p)},createPollingSocket(p){return this.createSocket(qx,p)},createSocket(p,l){return new Wx(p,l)},createXHR(p,l){return this.createRequest(eS,p,l)},createRequest(p,l,d){return new Kx(p,l,d)}};const zf=tS;zf.createXDR=function(p,l){return this.createRequest(Mx,p,l)};var nS={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:u,DependenciesReceivers:m,getDefaultStrategy:Dx,Transports:rt,transportConnectionInitializer:Ox,HTTPFactory:zf,TimelineTransport:tn,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(p){window.Pusher=p;var l=()=>{this.onDocumentBody(p.ready)};window.JSON?l():b.load("json2",{},l)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:_A,jsonp:ys}},onDocumentBody(p){document.body?p():setTimeout(()=>{this.onDocumentBody(p)},0)},createJSONPRequest(p,l){return new Cr(p,l)},createScriptRequest(p){return new yi(p)},getLocalStorage(){try{return window.localStorage}catch(p){return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var p=this.getXHRAPI();return new p},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return _i},createWebSocket(p){var l=this.getWebSocketAPI();return new l(p)},createSocketRequest(p,l){if(this.isXHRSupported())return this.HTTPFactory.createXHR(p,l);if(this.isXDRSupported(l.indexOf("https:")===0))return this.HTTPFactory.createXDR(p,l);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var p=this.getXHRAPI();return!!p&&new p().withCredentials!==void 0},isXDRSupported(p){var l=p?"https:":"http:",d=this.getProtocol();return!!window.XDomainRequest&&d===l},addUnloadListener(p){window.addEventListener!==void 0?window.addEventListener("unload",p,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",p)},removeUnloadListener(p){window.addEventListener!==void 0?window.removeEventListener("unload",p,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",p)},randomInt(p){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*p)}};const AA=nS;var nl;(function(p){p[p.ERROR=3]="ERROR",p[p.INFO=6]="INFO",p[p.DEBUG=7]="DEBUG"})(nl||(nl={}));const Hi=nl;class rS{constructor(l,d,B){this.key=l,this.session=d,this.events=[],this.options=B||{},this.sent=0,this.uniqueID=0}log(l,d){l<=this.options.level&&(this.events.push(OA({},d,{timestamp:IA.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(l){this.log(Hi.ERROR,l)}info(l){this.log(Hi.INFO,l)}debug(l){this.log(Hi.DEBUG,l)}isEmpty(){return this.events.length===0}send(l,d){var B=OA({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],l(B,(C,S)=>{C||this.sent++,d&&d(C,S)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class sS{constructor(l,d,B,C){this.name=l,this.priority=d,this.transport=B,this.options=C||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(l,d){if(this.isSupported()){if(this.priority<l)return Vf(new H,d)}else return Vf(new K,d);var B=!1,C=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),S=null,D=function(){C.unbind("initialized",D),C.connect()},$=function(){S=Lt.createHandshake(C,function(MA){B=!0,uA(),d(null,MA)})},Y=function(MA){uA(),d(MA)},oA=function(){uA();var MA;MA=fe(C),d(new X(MA))},uA=function(){C.unbind("initialized",D),C.unbind("open",$),C.unbind("error",Y),C.unbind("closed",oA)};return C.bind("initialized",D),C.bind("open",$),C.bind("error",Y),C.bind("closed",oA),C.initialize(),{abort:()=>{B||(uA(),S?S.close():C.close())},forceMinPriority:MA=>{B||this.priority<MA&&(S?S.close():C.close())}}}}function Vf(p,l){return IA.defer(function(){l(p)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:oS}=AA;var iS=function(p,l,d,B,C,S){var D=oS[d];if(!D)throw new W(d);var $=(!p.enabledTransports||In(p.enabledTransports,l)!==-1)&&(!p.disabledTransports||In(p.disabledTransports,l)===-1),Y;return $?(C=Object.assign({ignoreNullOrigin:p.ignoreNullOrigin},C),Y=new sS(l,B,S?S.getAssistant(D):D,C)):Y=aS,Y},aS={isSupported:function(){return!1},connect:function(p,l){var d=IA.defer(function(){l(new K)});return{abort:function(){d.ensureAborted()},forceMinPriority:function(){}}}};function cS(p){if(p==null)throw"You must pass an options object";if(p.cluster==null)throw"Options object must provide a cluster";"disableStats"in p&&BA.warn("The disableStats option is deprecated in favor of enableStats")}const lS=(p,l)=>{var d="socket_id="+encodeURIComponent(p.socketId);for(var B in l.params)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(l.params[B]);if(l.paramsProvider!=null){let C=l.paramsProvider();for(var B in C)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(C[B])}return d},uS=p=>{if(typeof AA.getAuthorizers()[p.transport]=="undefined")throw`'${p.transport}' is not a recognized auth transport`;return(l,d)=>{const B=lS(l,p);AA.getAuthorizers()[p.transport](AA,B,p,y.UserAuthentication,d)}},dS=(p,l)=>{var d="socket_id="+encodeURIComponent(p.socketId);d+="&channel_name="+encodeURIComponent(p.channelName);for(var B in l.params)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(l.params[B]);if(l.paramsProvider!=null){let C=l.paramsProvider();for(var B in C)d+="&"+encodeURIComponent(B)+"="+encodeURIComponent(C[B])}return d},pS=p=>{if(typeof AA.getAuthorizers()[p.transport]=="undefined")throw`'${p.transport}' is not a recognized auth transport`;return(l,d)=>{const B=dS(l,p);AA.getAuthorizers()[p.transport](AA,B,p,y.ChannelAuthorization,d)}},hS=(p,l,d)=>{const B={authTransport:l.transport,authEndpoint:l.endpoint,auth:{params:l.params,headers:l.headers}};return(C,S)=>{const D=p.channel(C.channelName);d(D,B).authorize(C.socketId,S)}};function Gf(p,l){let d={activityTimeout:p.activityTimeout||f.activityTimeout,cluster:p.cluster,httpPath:p.httpPath||f.httpPath,httpPort:p.httpPort||f.httpPort,httpsPort:p.httpsPort||f.httpsPort,pongTimeout:p.pongTimeout||f.pongTimeout,statsHost:p.statsHost||f.stats_host,unavailableTimeout:p.unavailableTimeout||f.unavailableTimeout,wsPath:p.wsPath||f.wsPath,wsPort:p.wsPort||f.wsPort,wssPort:p.wssPort||f.wssPort,enableStats:mS(p),httpHost:fS(p),useTLS:wS(p),wsHost:gS(p),userAuthenticator:CS(p),channelAuthorizer:QS(p,l)};return"disabledTransports"in p&&(d.disabledTransports=p.disabledTransports),"enabledTransports"in p&&(d.enabledTransports=p.enabledTransports),"ignoreNullOrigin"in p&&(d.ignoreNullOrigin=p.ignoreNullOrigin),"timelineParams"in p&&(d.timelineParams=p.timelineParams),"nacl"in p&&(d.nacl=p.nacl),d}function fS(p){return p.httpHost?p.httpHost:p.cluster?`sockjs-${p.cluster}.pusher.com`:f.httpHost}function gS(p){return p.wsHost?p.wsHost:BS(p.cluster)}function BS(p){return`ws-${p}.pusher.com`}function wS(p){return AA.getProtocol()==="https:"?!0:p.forceTLS!==!1}function mS(p){return"enableStats"in p?p.enableStats:"disableStats"in p?!p.disableStats:!1}const Zf=p=>"customHandler"in p&&p.customHandler!=null;function CS(p){const l=Object.assign(Object.assign({},f.userAuthentication),p.userAuthentication);return Zf(l)?l.customHandler:uS(l)}function bS(p,l){let d;if("channelAuthorization"in p)d=Object.assign(Object.assign({},f.channelAuthorization),p.channelAuthorization);else if(d={transport:p.authTransport||f.authTransport,endpoint:p.authEndpoint||f.authEndpoint},"auth"in p&&("params"in p.auth&&(d.params=p.auth.params),"headers"in p.auth&&(d.headers=p.auth.headers)),"authorizer"in p)return{customHandler:hS(l,d,p.authorizer)};return d}function QS(p,l){const d=bS(p,l);return Zf(d)?d.customHandler:pS(d)}class yS extends nt{constructor(l){super(function(d,B){BA.debug(`No callbacks on watchlist events for ${d}`)}),this.pusher=l,this.bindWatchlistInternalEvent()}handleEvent(l){l.data.events.forEach(d=>{this.emit(d.name,d)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",l=>{var d=l.event;d==="pusher_internal:watchlist_events"&&this.handleEvent(l)})}}function US(){let p,l;return{promise:new Promise((B,C)=>{p=B,l=C}),resolve:p,reject:l}}const ES=US;class kS extends nt{constructor(l){super(function(d,B){BA.debug("No callbacks on user for "+d)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(d,B)=>{if(d){BA.warn(`Error during signin: ${d}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:B.auth,user_data:B.user_data})},this.pusher=l,this.pusher.connection.bind("state_change",({previous:d,current:B})=>{d!=="connected"&&B==="connected"&&this._signin(),d==="connected"&&B!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new yS(l),this.pusher.connection.bind("message",d=>{var B=d.event;B==="pusher:signin_success"&&this._onSigninSuccess(d.data),this.serverToUserChannel&&this.serverToUserChannel.name===d.channel&&this.serverToUserChannel.handleEvent(d)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(l){try{this.user_data=JSON.parse(l.user_data)}catch(d){BA.error(`Failed parsing user data after signin: ${l.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){BA.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const l=d=>{d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.pusher.connection.state==="connected"&&d.subscribe()};this.serverToUserChannel=new P(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((d,B)=>{d.indexOf("pusher_internal:")===0||d.indexOf("pusher:")===0||this.emit(d,B)}),l(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:l,resolve:d}=ES();l.done=!1;const B=()=>{l.done=!0};l.then(B).catch(B),this.signinDonePromise=l,this._signinDoneResolve=d}}class ne{static ready(){ne.isReady=!0;for(var l=0,d=ne.instances.length;l<d;l++)ne.instances[l].connect()}static getClientFeatures(){return wt(Ct({ws:AA.Transports.ws},function(l){return l.isSupported({})}))}constructor(l,d){FS(l),cS(d),this.key=l,this.options=d,this.config=Gf(this.options,this),this.channels=Lt.createChannels(),this.global_emitter=new nt,this.sessionID=AA.randomInt(1e9),this.timeline=new rS(this.key,this.sessionID,{cluster:this.config.cluster,features:ne.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Hi.INFO,version:f.VERSION}),this.config.enableStats&&(this.timelineSender=Lt.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+AA.TimelineTransport.name}));var B=C=>AA.getDefaultStrategy(this.config,C,iS);this.connection=Lt.createConnectionManager(this.key,{getStrategy:B,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",C=>{var S=C.event,D=S.indexOf("pusher_internal:")===0;if(C.channel){var $=this.channel(C.channel);$&&$.handleEvent(C)}D||this.global_emitter.emit(C.event,C.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",C=>{BA.warn(C)}),ne.instances.push(this),this.timeline.info({instances:ne.instances.length}),this.user=new kS(this),ne.isReady&&this.connect()}switchCluster(l){const{appKey:d,cluster:B}=l;this.key=d,this.options=Object.assign(Object.assign({},this.options),{cluster:B}),this.config=Gf(this.options,this),this.connection.switchCluster(this.key)}channel(l){return this.channels.find(l)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var l=this.connection.isUsingTLS(),d=this.timelineSender;this.timelineSenderTimer=new qe(6e4,function(){d.send(l)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(l,d,B){return this.global_emitter.bind(l,d,B),this}unbind(l,d,B){return this.global_emitter.unbind(l,d,B),this}bind_global(l){return this.global_emitter.bind_global(l),this}unbind_global(l){return this.global_emitter.unbind_global(l),this}unbind_all(l){return this.global_emitter.unbind_all(),this}subscribeAll(){var l;for(l in this.channels.channels)this.channels.channels.hasOwnProperty(l)&&this.subscribe(l)}subscribe(l){var d=this.channels.add(l,this);return d.subscriptionPending&&d.subscriptionCancelled?d.reinstateSubscription():!d.subscriptionPending&&this.connection.state==="connected"&&d.subscribe(),d}unsubscribe(l){var d=this.channels.find(l);d&&d.subscriptionPending?d.cancelSubscription():(d=this.channels.remove(l),d&&d.subscribed&&d.unsubscribe())}send_event(l,d,B){return this.connection.send_event(l,d,B)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}ne.instances=[],ne.isReady=!1,ne.logToConsole=!1,ne.Runtime=AA,ne.ScriptReceivers=AA.ScriptReceivers,ne.DependenciesReceivers=AA.DependenciesReceivers,ne.auth_callbacks=AA.auth_callbacks;const Li=ne;function FS(p){if(p==null)throw"You must pass your app key when you instantiate Pusher."}AA.setup(ne)}},n={};function r(o){var a=n[o];if(a!==void 0)return a.exports;var i=n[o]={exports:{}};return t[o].call(i.exports,i,i.exports,r),i.exports}r.d=(o,a)=>{for(var i in a)r.o(a,i)&&!r.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:a[i]})},r.o=(o,a)=>Object.prototype.hasOwnProperty.call(o,a);var s=r(721);return s})())})(Rc)),Rc.exports}var w_=B_();const m_=g_(w_);let We=null,or=null;function C_(A){return I(this,null,function*(){return or||(or=I(null,null,function*(){const e=A.backendUrl.replace(/\/+$/,""),t=yield Ir(`${e}/api/settings`,{headers:{Authorization:`Bearer ${A.token}`}});if(!t.ok)throw new Error(`Failed to fetch settings: HTTP ${t.status}`);const n=yield t.json();We=new m_(n.pusher.key,{cluster:n.pusher.cluster||"local",forceTLS:!0,wsHost:n.pusher.wsHost||void 0,wsPort:n.pusher.wssPort,wssPort:n.pusher.wssPort,enabledTransports:n.pusher.wsHost?["ws"]:void 0,channelAuthorization:{customHandler:({socketId:r,channelName:s},o)=>{Ir(`${e}/api/pusher/auth`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${A.token}`},body:JSON.stringify({socket_id:r,channel_name:s})}).then(a=>a.json()).then(a=>o(null,a)).catch(a=>o(a instanceof Error?a:new Error(String(a)),null))}}})}),or.catch(()=>{or=null}),or)})}function b_(A){if(!A||!We)return null;let e=!1;const t=({current:n})=>{n==="connected"&&e?(e=!1,A()):n!=="connected"&&(e=!0)};return We.connection.bind("state_change",t),()=>We==null?void 0:We.connection.unbind("state_change",t)}function Q_(A,e,t){return I(this,null,function*(){if(yield C_(A),!We)return()=>{};const n=We.subscribe(`private-task-${e}`);t.onStatusUpdate&&n.bind($s.TASK_STATUS_UPDATED,t.onStatusUpdate),t.onInteractionCreated&&n.bind($s.TASK_INTERACTION_CREATED,t.onInteractionCreated),t.onInteractionAnswered&&n.bind($s.TASK_INTERACTION_ANSWERED,t.onInteractionAnswered),t.onBrowserCommandCreated&&n.bind($s.TASK_BROWSER_COMMAND_CREATED,t.onBrowserCommandCreated);const r=b_(t.onReconnect);return()=>{n.unbind_all(),We==null||We.unsubscribe(`private-task-${e}`),r==null||r()}})}function Zh(A,e){const t=a=>I(null,null,function*(){if(w.currentTaskId!==A||!w.runnerEl||w.state.kind!=="idle"&&w.state.kind!=="connecting"||w.handledCommandIds.has(a.commandId))return;w.handledCommandIds.add(a.commandId);const i={id:a.commandId,taskId:a.taskId,action:a.action,selector:a.selector,value:a.value,description:a.description,status:"pending",createdAt:new Date().toISOString()};Qn({kind:"executing",command:i,actionsRun:w.state.kind==="idle"?w.state.actionsRun:0}),yield Wh(i,e,A)}),n=a=>{if(!(w.currentTaskId!==A||!w.runnerEl)&&R_.has(a)){if(w.state.kind==="executing")Qn({kind:"finishing",status:a,actionsRun:w.state.actionsRun});else if(w.state.kind==="connecting"||w.state.kind==="idle"){const i=w.state.kind==="idle"?w.state.actionsRun:0;Qn({kind:"finished",status:a,actionsRun:i})}}},r=a=>{w.currentTaskId!==A||!w.runnerEl||(a.outputChunk&&jh([a.outputChunk]),n(a.status))},s=()=>I(null,null,function*(){var a;if(!(w.currentTaskId!==A||!w.runnerEl))try{const i=yield Ao(e,A);w.currentTaskId===A&&w.runnerEl&&(w.currentQuestion=(a=i[0])!=null?a:null,bn())}catch(i){}}),o=()=>I(null,null,function*(){var a;try{const[i,c,u,h]=yield Promise.all([Hu(e,A),Eb(e,A),Ao(e,A),yb(e,A)]);if(w.currentTaskId!==A||!w.runnerEl)return;jh(c),w.currentQuestion=(a=u[0])!=null?a:null,bn(),n(i.status),h&&h.status==="pending"&&(w.state.kind==="idle"||w.state.kind==="connecting")&&!w.handledCommandIds.has(h.id)?(w.handledCommandIds.add(h.id),Qn({kind:"executing",command:h,actionsRun:w.state.kind==="idle"?w.state.actionsRun:0}),yield Wh(h,e,A)):w.state.kind==="connecting"&&Qn({kind:"idle",actionsRun:0})}catch(i){}});o(),Q_(e,A,{onStatusUpdate:r,onInteractionCreated:s,onInteractionAnswered:s,onBrowserCommandCreated:t,onReconnect:()=>{o()}}).then(a=>{if(w.currentTaskId!==A||w.state.kind==="finished"){a();return}w.unsubscribeTaskChannel=a})}function ti(){var e;w.cancelArmed=!1,w.cancelArmTimeout&&(clearTimeout(w.cancelArmTimeout),w.cancelArmTimeout=null),w.cancelDisarmDocListener&&(document.removeEventListener("click",w.cancelDisarmDocListener,!0),w.cancelDisarmDocListener=null);const A=(e=w.runnerEl)==null?void 0:e.querySelector("[data-ap-runner-cancel]");A&&(A.textContent="Cancel task")}function y_(A,e){return I(this,null,function*(){if(w.currentTaskId!==e||!w.runnerEl)return;const t=w.runnerEl.querySelector("[data-ap-runner-cancel]");t&&(t.disabled=!0);try{yield Fb(A,e)}catch(n){t&&(t.disabled=!1)}})}function Xh(){if(!w.currentTaskId||!w.currentApiOpts||!w.currentBackendUrl||!w.currentCaptureTitle)return;const A=w.currentTaskId,e=w.currentApiOpts;hh({taskId:A,backendUrl:w.currentBackendUrl,title:w.currentCaptureTitle}),w.timerHandle&&clearInterval(w.timerHandle),ri(),w.timerHandle=setInterval(ri,Yh);const t=w.state.kind==="finished"?w.state.actionsRun:0;w.handledCommandIds=new Set,w.state={kind:"idle",actionsRun:t},Dc(),Zh(A,e)}function Wh(A,e,t){return I(this,null,function*(){var o,a,i;let n="done",r;try{if(A.action==="getContext"){const c=A.selector?document.querySelector(A.selector):document.body;if(!c)throw new Error(`element not found (${A.selector})`);if(bl(c))throw new Error("Target element is in a sensitive or excluded region and cannot be automated");(o=w.highlightOverlay)==null||o.update(c),r=F_(c)}else{if(!A.selector)throw new Error(`${A.action} command is missing a selector`);const c=document.querySelector(A.selector);if(!c)throw new Error(`element not found (${A.selector})`);if(bl(c))throw new Error("Target element is in a sensitive or excluded region and cannot be automated");if((a=w.highlightOverlay)==null||a.update(c),A.action==="click")yield h_(c),r="Clicked";else{if(A.value===void 0)throw new Error("inputText command is missing a value");v_(c,A.value),r="Entered text"}}}catch(c){n="error",r=c instanceof Error?c.message:"Unknown error executing command"}if(w.currentTaskId===t&&w.runnerEl&&S_(n,A,r),yield k_(e,t,A.id,n,r),w.currentTaskId!==t||!w.runnerEl)return;(i=w.highlightOverlay)==null||i.hide();const s=(w.state.kind==="executing"||w.state.kind==="finishing"?w.state.actionsRun:0)+1;w.state.kind==="finishing"?Qn({kind:"finished",status:w.state.status,actionsRun:s}):w.state.kind==="executing"&&Qn({kind:"idle",actionsRun:s})})}function U_(A){return I(this,null,function*(){var n;if(!w.runnerEl||!w.currentQuestion||!w.currentTaskId||w.chatSubmitInFlight)return;const e=w.currentTaskId,t=w.currentApiOpts;if(t){w.chatSubmitInFlight=!0;try{const r={selectedOption:A};yield Du(t,e,w.currentQuestion.id,r),w.currentQuestion=null,bn();const s=yield Ao(t,e);w.currentTaskId===e&&w.runnerEl&&(w.currentQuestion=(n=s[0])!=null?n:null,bn())}catch(r){const s=w.runnerEl.querySelector("[data-ap-runner-chat-error]");s&&(s.textContent="Failed to send your answer — try again.",s.style.display="block")}finally{w.chatSubmitInFlight=!1}}})}function E_(A,e){return I(this,null,function*(){var o;if(!w.runnerEl||w.chatSubmitInFlight||w.state.kind==="finished"&&w.state.status==="failed")return;const t=w.runnerEl.querySelector("[data-ap-runner-chat-input]"),n=w.runnerEl.querySelector("[data-ap-runner-chat-error]"),r=w.runnerEl.querySelector("[data-ap-runner-chat-send]");if(!t||!n||!r)return;const s=t.value.trim();if(s){w.chatSubmitInFlight=!0,r.disabled=!0,n.style.display="none";try{if(w.currentQuestion){yield Du(A,e,w.currentQuestion.id,s),w.currentQuestion=null,bn();try{const a=yield Ao(A,e);w.currentTaskId===e&&w.runnerEl&&(w.currentQuestion=(o=a[0])!=null?o:null,bn())}catch(a){}}else yield kb(A,e,s),w.state.kind==="finished"&&Xh();t.value=""}catch(a){n.textContent=a instanceof Error?a.message:"Failed to send — try again.",n.style.display="block"}finally{w.chatSubmitInFlight=!1,r.disabled=!1}}})}function k_(A,e,t,n,r){return I(this,null,function*(){try{yield Ub(A,e,t,n,r)}catch(s){}})}function F_(A){const e=A.cloneNode(!0);e.querySelectorAll("script, style, noscript").forEach(r=>r.remove()),Ql(e),$i(e);let t=e.outerHTML,n=!1;return t.length>qh&&(t=t.slice(0,qh),n=!0),`URL: ${location.href}
1924
1923
  Title: ${document.title}
1925
1924
 
1926
1925
  ${t}${n?`
1927
- … (truncated)`:""}`}function E_(A,e){var s;const n=A instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,r=(s=Object.getOwnPropertyDescriptor(n,"value"))==null?void 0:s.set;if(!r)throw new Error("target element does not accept text input");r.call(A,e),A.dispatchEvent(new Event("input",{bubbles:!0})),A.dispatchEvent(new Event("change",{bubbles:!0}))}function k_(A){if(!w.runnerEl||!w.currentTaskId||!w.currentBackendUrl)return;const e=w.runnerEl.querySelector("[data-ap-runner-summary]");if(!e)return;const t=`${w.currentBackendUrl.replace(/\/+$/,"")}/tasks/${w.currentTaskId}`,n=A==="completed"?"Automation complete!":"Automation ended",r=A==="completed",s=r?"ap-sdk-panel__btn--secondary":"ap-sdk-panel__btn--primary";e.style.display="block",e.innerHTML=`
1926
+ … (truncated)`:""}`}function v_(A,e){var s;const n=A instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,r=(s=Object.getOwnPropertyDescriptor(n,"value"))==null?void 0:s.set;if(!r)throw new Error("target element does not accept text input");r.call(A,e),A.dispatchEvent(new Event("input",{bubbles:!0})),A.dispatchEvent(new Event("change",{bubbles:!0}))}function __(A){if(!w.runnerEl||!w.currentTaskId||!w.currentBackendUrl)return;const e=w.runnerEl.querySelector("[data-ap-runner-summary]");if(!e)return;const t=`${w.currentBackendUrl.replace(/\/+$/,"")}/tasks/${w.currentTaskId}`,n=A==="completed"?"Automation complete!":"Automation ended",r=A==="completed",s=r?"ap-sdk-panel__btn--secondary":"ap-sdk-panel__btn--primary";e.style.display="block",e.innerHTML=`
1928
1927
  <div class="ap-sdk-success-card">
1929
- <p class="ap-sdk-success-headline">${Lc(n)}</p>
1928
+ <p class="ap-sdk-success-headline">${Oc(n)}</p>
1930
1929
  ${r?`
1931
1930
  <div class="ap-sdk-runner__approval" data-ap-runner-approval>
1932
1931
  <div class="ap-sdk-runner__approval-actions">
@@ -1946,11 +1945,11 @@ ${t}${n?`
1946
1945
  <button class="ap-sdk-runner__text-btn" data-ap-runner-close>Close</button>
1947
1946
  </div>
1948
1947
  </div>
1949
- `,e.querySelector("[data-ap-runner-view]").addEventListener("click",()=>window.open(t,"_blank","noopener,noreferrer")),e.querySelector("[data-ap-runner-close]").addEventListener("click",()=>{const o=w.closeHandler;Dc(),o==null||o()}),r&&F_(e)}function F_(A){const e=A.querySelector("[data-ap-runner-approve]"),t=A.querySelector("[data-ap-runner-reject]"),n=A.querySelector("[data-ap-runner-reject-form]"),r=A.querySelector("[data-ap-runner-reject-feedback]"),s=A.querySelector("[data-ap-runner-reject-submit]"),o=A.querySelector("[data-ap-runner-approval-error]"),a=A.querySelector(".ap-sdk-runner__approval-actions"),i=u=>{o.textContent=u,o.style.display="block"};e.addEventListener("click",()=>I(null,null,function*(){if(!w.currentTaskId||!w.currentApiOpts)return;const u=w.currentTaskId,h=w.currentApiOpts;e.disabled=!0,t.disabled=!0,o.style.display="none";try{yield Eb(h,u),a.innerHTML='<span class="ap-sdk-status-badge ap-sdk-status-badge--approved">✓ Approved</span>',n.style.display="none"}catch(f){e.disabled=!1,t.disabled=!1,i(f instanceof Error?f.message:"Failed to approve — try again.")}})),t.addEventListener("click",()=>{n.style.display=n.style.display==="none"?"block":"none",n.style.display==="block"&&r.focus()});const c=()=>{s.textContent=r.value.trim()?"Reject & Continue":"Reject Permanently"};r.addEventListener("input",c),s.addEventListener("click",()=>I(null,null,function*(){if(!w.currentTaskId||!w.currentApiOpts)return;const u=w.currentTaskId,h=w.currentApiOpts,f=r.value.trim();s.disabled=!0,e.disabled=!0,o.style.display="none",s.textContent="Rejecting…";try{yield kb(h,u,f),f?zh():(a.innerHTML='<span class="ap-sdk-status-badge ap-sdk-status-badge--rejected">✕ Rejected</span>',n.style.display="none")}catch(g){s.disabled=!1,e.disabled=!1,c(),i(g instanceof Error?g.message:"Failed to reject — try again.")}}))}function Gh(){var e;const A=(e=w.runnerEl)==null?void 0:e.querySelector("[data-ap-runner-log]");A&&(A.scrollTop=A.scrollHeight)}function ti(){if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-scroll-toggle]");A&&(A.textContent=w.autoScrollEnabled?"Auto ↓":"Manual",A.title=w.autoScrollEnabled?"Disable auto-scroll":"Enable auto-scroll",A.classList.toggle("ap-sdk-runner__scroll-toggle--active",w.autoScrollEnabled))}function Hc(){if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-status]"),e=w.runnerEl.querySelector("[data-ap-runner-counter]"),t=w.runnerEl.querySelector("[data-ap-runner-log]"),n=w.runnerEl.querySelector("[data-ap-runner-hint]");if(!A||!e||!t||!n)return;const r="actionsRun"in w.state?w.state.actionsRun:0;e.textContent=`${r} action${r===1?"":"s"}`,ti(),w.state.kind==="finished"?(A.textContent=w.state.status.replace(/_/g," "),A.className=`ap-sdk-status-badge ap-sdk-status-badge--${w.state.status.replace(/_/g,"-")}`,n.style.display="none",k_(w.state.status)):(A.textContent="running",A.className="ap-sdk-status-badge ap-sdk-status-badge--in-progress",n.style.display="block");const s=t.querySelector("[data-ap-runner-placeholder]");if(w.logEntries.length===0&&(w.state.kind==="connecting"||w.state.kind==="idle")){if(!s){const u=document.createElement("div");u.className="ap-sdk-runner__placeholder",u.setAttribute("data-ap-runner-placeholder","1"),u.textContent="Waiting for the agent's first action…",t.appendChild(u)}}else s==null||s.remove();Cn();const o=w.runnerEl.querySelector("[data-ap-runner-chat-input]"),a=w.runnerEl.querySelector("[data-ap-runner-chat-send]");if(o&&a){const u=w.state.kind==="finished"&&w.state.status==="failed";o.disabled=u,a.disabled=u||w.chatSubmitInFlight,u&&(o.placeholder="This task failed — start a new automation to continue.")}const i=w.runnerEl.querySelector("[data-ap-runner-cancel]");i&&(i.style.display=w.state.kind==="finished"?"none":"");const c=w.runnerEl.querySelector("[data-ap-runner-summary]");c&&w.state.kind!=="finished"&&(c.style.display="none",c.innerHTML="")}function Cn(){var r;if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-question]"),e=w.runnerEl.querySelector("[data-ap-runner-chat-input]");if(!A||!e)return;if(!w.currentQuestion){A.style.display="none",A.innerHTML="",e.placeholder="Send a message to the agent…";return}const t=w.currentQuestion.questionMetadata,n=(r=t==null?void 0:t.options)!=null?r:[];if(e.placeholder="Type your answer…",A.style.display="block",A.innerHTML=`
1950
- <div class="ap-sdk-runner__question-label">${Lc((t==null?void 0:t.header)||"The agent has a question")}</div>
1951
- <div class="ap-sdk-runner__question-text ap-sdk-markdown">${Kh((t==null?void 0:t.question)||w.currentQuestion.question)}</div>
1948
+ `,e.querySelector("[data-ap-runner-view]").addEventListener("click",()=>window.open(t,"_blank","noopener,noreferrer")),e.querySelector("[data-ap-runner-close]").addEventListener("click",()=>{const o=w.closeHandler;Pc(),o==null||o()}),r&&x_(e)}function x_(A){const e=A.querySelector("[data-ap-runner-approve]"),t=A.querySelector("[data-ap-runner-reject]"),n=A.querySelector("[data-ap-runner-reject-form]"),r=A.querySelector("[data-ap-runner-reject-feedback]"),s=A.querySelector("[data-ap-runner-reject-submit]"),o=A.querySelector("[data-ap-runner-approval-error]"),a=A.querySelector(".ap-sdk-runner__approval-actions"),i=u=>{o.textContent=u,o.style.display="block"};e.addEventListener("click",()=>I(null,null,function*(){if(!w.currentTaskId||!w.currentApiOpts)return;const u=w.currentTaskId,h=w.currentApiOpts;e.disabled=!0,t.disabled=!0,o.style.display="none";try{yield vb(h,u),a.innerHTML='<span class="ap-sdk-status-badge ap-sdk-status-badge--approved">✓ Approved</span>',n.style.display="none"}catch(f){e.disabled=!1,t.disabled=!1,i(f instanceof Error?f.message:"Failed to approve — try again.")}})),t.addEventListener("click",()=>{n.style.display=n.style.display==="none"?"block":"none",n.style.display==="block"&&r.focus()});const c=()=>{s.textContent=r.value.trim()?"Reject & Continue":"Reject Permanently"};r.addEventListener("input",c),s.addEventListener("click",()=>I(null,null,function*(){if(!w.currentTaskId||!w.currentApiOpts)return;const u=w.currentTaskId,h=w.currentApiOpts,f=r.value.trim();s.disabled=!0,e.disabled=!0,o.style.display="none",s.textContent="Rejecting…";try{yield _b(h,u,f),f?Xh():(a.innerHTML='<span class="ap-sdk-status-badge ap-sdk-status-badge--rejected">✕ Rejected</span>',n.style.display="none")}catch(g){s.disabled=!1,e.disabled=!1,c(),i(g instanceof Error?g.message:"Failed to reject — try again.")}}))}function Jh(){var e;const A=(e=w.runnerEl)==null?void 0:e.querySelector("[data-ap-runner-log]");A&&(A.scrollTop=A.scrollHeight)}function ni(){if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-scroll-toggle]");A&&(A.textContent=w.autoScrollEnabled?"Auto ↓":"Manual",A.title=w.autoScrollEnabled?"Disable auto-scroll":"Enable auto-scroll",A.classList.toggle("ap-sdk-runner__scroll-toggle--active",w.autoScrollEnabled))}function Dc(){if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-status]"),e=w.runnerEl.querySelector("[data-ap-runner-counter]"),t=w.runnerEl.querySelector("[data-ap-runner-log]"),n=w.runnerEl.querySelector("[data-ap-runner-hint]");if(!A||!e||!t||!n)return;const r="actionsRun"in w.state?w.state.actionsRun:0;e.textContent=`${r} action${r===1?"":"s"}`,ni(),w.state.kind==="finished"?(A.textContent=w.state.status.replace(/_/g," "),A.className=`ap-sdk-status-badge ap-sdk-status-badge--${w.state.status.replace(/_/g,"-")}`,n.style.display="none",__(w.state.status)):(A.textContent="running",A.className="ap-sdk-status-badge ap-sdk-status-badge--in-progress",n.style.display="block");const s=t.querySelector("[data-ap-runner-placeholder]");if(w.logEntries.length===0&&(w.state.kind==="connecting"||w.state.kind==="idle")){if(!s){const u=document.createElement("div");u.className="ap-sdk-runner__placeholder",u.setAttribute("data-ap-runner-placeholder","1"),u.textContent="Waiting for the agent's first action…",t.appendChild(u)}}else s==null||s.remove();bn();const o=w.runnerEl.querySelector("[data-ap-runner-chat-input]"),a=w.runnerEl.querySelector("[data-ap-runner-chat-send]");if(o&&a){const u=w.state.kind==="finished"&&w.state.status==="failed";o.disabled=u,a.disabled=u||w.chatSubmitInFlight,u&&(o.placeholder="This task failed — start a new automation to continue.")}const i=w.runnerEl.querySelector("[data-ap-runner-cancel]");i&&(i.style.display=w.state.kind==="finished"?"none":"");const c=w.runnerEl.querySelector("[data-ap-runner-summary]");c&&w.state.kind!=="finished"&&(c.style.display="none",c.innerHTML="")}function bn(){var r;if(!w.runnerEl)return;const A=w.runnerEl.querySelector("[data-ap-runner-question]"),e=w.runnerEl.querySelector("[data-ap-runner-chat-input]");if(!A||!e)return;if(!w.currentQuestion){A.style.display="none",A.innerHTML="",e.placeholder="Send a message to the agent…";return}const t=w.currentQuestion.questionMetadata,n=(r=t==null?void 0:t.options)!=null?r:[];if(e.placeholder="Type your answer…",A.style.display="block",A.innerHTML=`
1949
+ <div class="ap-sdk-runner__question-label">${Oc((t==null?void 0:t.header)||"The agent has a question")}</div>
1950
+ <div class="ap-sdk-runner__question-text ap-sdk-markdown">${Vh((t==null?void 0:t.question)||w.currentQuestion.question)}</div>
1952
1951
  ${n.length>0?'<div class="ap-sdk-runner__question-options" data-ap-runner-question-options></div>':""}
1953
- `,n.length>0){const s=A.querySelector("[data-ap-runner-question-options]");for(const o of n){const a=document.createElement("button");a.type="button",a.className="ap-sdk-panel__btn ap-sdk-panel__btn--ghost ap-sdk-runner__question-option",a.textContent=o.label,a.addEventListener("click",()=>void b_(o.label)),s.appendChild(a)}}}function ni(){if(!w.runnerEl||w.runStartedAt===null)return;const A=w.runnerEl.querySelector("[data-ap-runner-timer]");if(!A)return;const e=Math.max(0,Math.floor((Date.now()-w.runStartedAt)/1e3)),t=String(Math.floor(e/60)).padStart(2,"0"),n=String(e%60).padStart(2,"0");A.textContent=`${t}:${n}`}function v_(A,e,t){var u,h;const n=A==="done"?"✓":"✗",r=e.selector?` \`${e.selector}\``:"",s=e.description||`${e.action}${r}`,o=A==="done"&&e.action==="getContext"?`read context (${(u=t==null?void 0:t.length)!=null?u:0} chars)`:t,a=o?` — ${o}`:"";if(w.logEntries.push({status:A,text:`${n} ${s}${a}`}),!w.runnerEl)return;const i=w.runnerEl.querySelector("[data-ap-runner-log]");if(!i)return;(h=i.querySelector("[data-ap-runner-placeholder]"))==null||h.remove();const c=document.createElement("div");c.className=`ap-sdk-runner__log-entry ap-sdk-runner__log-entry--${A}`,c.textContent=w.logEntries[w.logEntries.length-1].text,i.appendChild(c),w.autoScrollEnabled&&(i.scrollTop=i.scrollHeight)}function __(A){var e,t;return(t=(e=A.display)==null?void 0:e.variant)!=null?t:A.sdkEventType}function x_(A){const e=__(A);return(A.stream==="stdout"||A.stream==="stderr"||A.stream==="sdk_event"&&(e==="text"||e==="thinking"))&&A.data.trim()||null}function Zh(A){var n;const e=A.filter(r=>r.sequence>w.lastRenderedChunkSequence).sort((r,s)=>r.sequence-s.sequence);if(e.length===0||(w.lastRenderedChunkSequence=Math.max(w.lastRenderedChunkSequence,...e.map(r=>r.sequence)),!w.runnerEl))return;const t=w.runnerEl.querySelector("[data-ap-runner-log]");if(t)for(const r of e){const s=x_(r);if(!s)continue;(n=t.querySelector("[data-ap-runner-placeholder]"))==null||n.remove();const o=document.createElement("div");o.className=`ap-sdk-runner__log-entry ap-sdk-runner__log-entry--output ap-sdk-runner__log-entry--${r.stream}`,r.stream==="sdk_event"?(o.classList.add("ap-sdk-markdown"),o.innerHTML=Kh(s)):o.textContent=s,t.appendChild(o),w.autoScrollEnabled&&(t.scrollTop=t.scrollHeight)}}function S_(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Lc(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const Xh=1e3,I_=32,Wh=15e3,T_=new Set(["completed","failed","cancelled"]),H_=4e3,w={runnerEl:null,runnerResizeCleanup:null,runnerDragCleanup:null,timerHandle:null,highlightOverlay:null,closeHandler:null,currentCaptureTitle:null,cancelArmed:!1,cancelArmTimeout:null,cancelDisarmDocListener:null,state:{kind:"connecting"},logEntries:[],autoScrollEnabled:!0,runStartedAt:null,currentTaskId:null,currentBackendUrl:null,currentApiOpts:null,lastRenderedChunkSequence:-1,currentQuestion:null,chatSubmitInFlight:!1,unsubscribeTaskChannel:null,handledCommandIds:new Set};function bn(A){var e,t;w.state=A,w.state.kind==="idle"&&w.runStartedAt===null&&(w.runStartedAt=Date.now(),ni(),w.timerHandle=setInterval(ni,Xh)),w.state.kind==="finished"&&(w.timerHandle&&(clearInterval(w.timerHandle),w.timerHandle=null),(e=w.unsubscribeTaskChannel)==null||e.call(w),w.unsubscribeTaskChannel=null,(t=w.highlightOverlay)==null||t.hide(),uh()),Hc()}function Dc(){var A,e,t,n,r;ei(),uh(),w.timerHandle&&clearInterval(w.timerHandle),w.timerHandle=null,(A=w.unsubscribeTaskChannel)==null||A.call(w),w.unsubscribeTaskChannel=null,(e=w.highlightOverlay)==null||e.destroy(),w.highlightOverlay=null,w.runnerEl&&st(w.runnerEl),(t=w.runnerEl)==null||t.remove(),w.runnerEl=null,(n=w.runnerResizeCleanup)==null||n.call(w),w.runnerResizeCleanup=null,(r=w.runnerDragCleanup)==null||r.call(w),w.runnerDragCleanup=null,w.closeHandler=null,w.state={kind:"connecting"},w.logEntries=[],w.autoScrollEnabled=!0,w.runStartedAt=null,w.currentTaskId=null,w.currentBackendUrl=null,w.currentApiOpts=null,w.currentCaptureTitle=null,w.lastRenderedChunkSequence=-1,w.currentQuestion=null,w.chatSubmitInFlight=!1,w.handledCommandIds=new Set}function Rc(A,e,t,n,r){w.runnerEl&&Dc(),w.closeHandler=r!=null?r:null,w.state={kind:"connecting"},w.logEntries=[],w.autoScrollEnabled=!0,w.runStartedAt=null,w.lastRenderedChunkSequence=-1,w.currentQuestion=null,w.chatSubmitInFlight=!1,w.handledCommandIds=new Set,w.currentTaskId=A,w.currentBackendUrl=t,w.currentApiOpts=e,w.currentCaptureTitle=n,lh({taskId:A,backendUrl:t,title:n});const s=document.createElement("div");w.runnerEl=s,s.className="ap-sdk-panel",s.setAttribute("data-ap-sdk","1"),s.setAttribute("role","dialog"),s.setAttribute("aria-modal","true"),s.setAttribute("aria-label","Automation in progress");const o=n.length>55?`${n.slice(0,52)}…`:n;s.innerHTML=`
1952
+ `,n.length>0){const s=A.querySelector("[data-ap-runner-question-options]");for(const o of n){const a=document.createElement("button");a.type="button",a.className="ap-sdk-panel__btn ap-sdk-panel__btn--ghost ap-sdk-runner__question-option",a.textContent=o.label,a.addEventListener("click",()=>void U_(o.label)),s.appendChild(a)}}}function ri(){if(!w.runnerEl||w.runStartedAt===null)return;const A=w.runnerEl.querySelector("[data-ap-runner-timer]");if(!A)return;const e=Math.max(0,Math.floor((Date.now()-w.runStartedAt)/1e3)),t=String(Math.floor(e/60)).padStart(2,"0"),n=String(e%60).padStart(2,"0");A.textContent=`${t}:${n}`}function S_(A,e,t){var u,h;const n=A==="done"?"✓":"✗",r=e.selector?` \`${e.selector}\``:"",s=e.description||`${e.action}${r}`,o=A==="done"&&e.action==="getContext"?`read context (${(u=t==null?void 0:t.length)!=null?u:0} chars)`:t,a=o?` — ${o}`:"";if(w.logEntries.push({status:A,text:`${n} ${s}${a}`}),!w.runnerEl)return;const i=w.runnerEl.querySelector("[data-ap-runner-log]");if(!i)return;(h=i.querySelector("[data-ap-runner-placeholder]"))==null||h.remove();const c=document.createElement("div");c.className=`ap-sdk-runner__log-entry ap-sdk-runner__log-entry--${A}`,c.textContent=w.logEntries[w.logEntries.length-1].text,i.appendChild(c),w.autoScrollEnabled&&(i.scrollTop=i.scrollHeight)}function I_(A){var e,t;return(t=(e=A.display)==null?void 0:e.variant)!=null?t:A.sdkEventType}function T_(A){const e=I_(A);return(A.stream==="stdout"||A.stream==="stderr"||A.stream==="sdk_event"&&(e==="text"||e==="thinking"))&&A.data.trim()||null}function jh(A){var n;const e=A.filter(r=>r.sequence>w.lastRenderedChunkSequence).sort((r,s)=>r.sequence-s.sequence);if(e.length===0||(w.lastRenderedChunkSequence=Math.max(w.lastRenderedChunkSequence,...e.map(r=>r.sequence)),!w.runnerEl))return;const t=w.runnerEl.querySelector("[data-ap-runner-log]");if(t)for(const r of e){const s=T_(r);if(!s)continue;(n=t.querySelector("[data-ap-runner-placeholder]"))==null||n.remove();const o=document.createElement("div");o.className=`ap-sdk-runner__log-entry ap-sdk-runner__log-entry--output ap-sdk-runner__log-entry--${r.stream}`,r.stream==="sdk_event"?(o.classList.add("ap-sdk-markdown"),o.innerHTML=Vh(s)):o.textContent=s,t.appendChild(o),w.autoScrollEnabled&&(t.scrollTop=t.scrollHeight)}}function H_(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Oc(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const Yh=1e3,L_=32,qh=15e3,R_=new Set(["completed","failed","cancelled"]),D_=4e3,w={runnerEl:null,runnerResizeCleanup:null,runnerDragCleanup:null,timerHandle:null,highlightOverlay:null,closeHandler:null,currentCaptureTitle:null,cancelArmed:!1,cancelArmTimeout:null,cancelDisarmDocListener:null,state:{kind:"connecting"},logEntries:[],autoScrollEnabled:!0,runStartedAt:null,currentTaskId:null,currentBackendUrl:null,currentApiOpts:null,lastRenderedChunkSequence:-1,currentQuestion:null,chatSubmitInFlight:!1,unsubscribeTaskChannel:null,handledCommandIds:new Set};function Qn(A){var e,t;w.state=A,w.state.kind==="idle"&&w.runStartedAt===null&&(w.runStartedAt=Date.now(),ri(),w.timerHandle=setInterval(ri,Yh)),w.state.kind==="finished"&&(w.timerHandle&&(clearInterval(w.timerHandle),w.timerHandle=null),(e=w.unsubscribeTaskChannel)==null||e.call(w),w.unsubscribeTaskChannel=null,(t=w.highlightOverlay)==null||t.hide(),fh()),Dc()}function Pc(){var A,e,t,n,r;ti(),fh(),w.timerHandle&&clearInterval(w.timerHandle),w.timerHandle=null,(A=w.unsubscribeTaskChannel)==null||A.call(w),w.unsubscribeTaskChannel=null,(e=w.highlightOverlay)==null||e.destroy(),w.highlightOverlay=null,w.runnerEl&&it(w.runnerEl),(t=w.runnerEl)==null||t.remove(),w.runnerEl=null,(n=w.runnerResizeCleanup)==null||n.call(w),w.runnerResizeCleanup=null,(r=w.runnerDragCleanup)==null||r.call(w),w.runnerDragCleanup=null,w.closeHandler=null,w.state={kind:"connecting"},w.logEntries=[],w.autoScrollEnabled=!0,w.runStartedAt=null,w.currentTaskId=null,w.currentBackendUrl=null,w.currentApiOpts=null,w.currentCaptureTitle=null,w.lastRenderedChunkSequence=-1,w.currentQuestion=null,w.chatSubmitInFlight=!1,w.handledCommandIds=new Set}function Mc(A,e,t,n,r){w.runnerEl&&Pc(),w.closeHandler=r!=null?r:null,w.state={kind:"connecting"},w.logEntries=[],w.autoScrollEnabled=!0,w.runStartedAt=null,w.lastRenderedChunkSequence=-1,w.currentQuestion=null,w.chatSubmitInFlight=!1,w.handledCommandIds=new Set,w.currentTaskId=A,w.currentBackendUrl=t,w.currentApiOpts=e,w.currentCaptureTitle=n,hh({taskId:A,backendUrl:t,title:n});const s=document.createElement("div");w.runnerEl=s,s.className="ap-sdk-panel",s.setAttribute("data-ap-sdk","1"),s.setAttribute("role","dialog"),s.setAttribute("aria-modal","true"),s.setAttribute("aria-label","Automation in progress");const o=n.length>55?`${n.slice(0,52)}…`:n;s.innerHTML=`
1954
1953
  <div class="ap-sdk-panel__header">
1955
1954
  <span class="ap-sdk-panel__title">
1956
1955
  <span class="ap-sdk-panel__logo">AP</span>
@@ -1963,7 +1962,7 @@ ${t}${n?`
1963
1962
  <div class="ap-sdk-runner__meta">
1964
1963
  <div class="ap-sdk-runner__meta-row">
1965
1964
  <span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--automate">Automate</span>
1966
- <span class="ap-sdk-runner__title" title="${S_(n)}">${Lc(o)}</span>
1965
+ <span class="ap-sdk-runner__title" title="${H_(n)}">${Oc(o)}</span>
1967
1966
  </div>
1968
1967
  <div class="ap-sdk-runner__meta-row ap-sdk-runner__meta-row--controls">
1969
1968
  <span class="ap-sdk-runner__counter" data-ap-runner-counter>0 actions</span>
@@ -1993,14 +1992,14 @@ ${t}${n?`
1993
1992
  </div>
1994
1993
  <div class="ap-sdk-runner__hint" data-ap-runner-hint>Closing keeps the task running — resume anytime from My Captures.</div>
1995
1994
  <div class="ap-sdk-panel__status" data-ap-runner-summary style="display:none"></div>
1996
- `,s.addEventListener("wheel",a=>{a.stopPropagation()},{passive:!0}),s.addEventListener("touchmove",a=>{a.stopPropagation()},{passive:!0}),document.body.appendChild(s),w.highlightOverlay=Pi(),rt(s),w.runnerResizeCleanup=oa(s,sa),w.runnerDragCleanup=Tr(s,Ir),s.querySelector("[data-ap-close]").addEventListener("click",()=>{Dc(),r==null||r()}),s.querySelector("[data-ap-runner-chat-form]").addEventListener("submit",a=>{a.preventDefault(),Q_(e,A)}),s.querySelector("[data-ap-runner-cancel]").addEventListener("click",a=>{a.stopPropagation();const i=a.currentTarget;if(!w.cancelArmed){w.cancelArmed=!0,i.textContent="Confirm",w.cancelArmTimeout=setTimeout(ei,H_),w.cancelDisarmDocListener=c=>{c.target!==i&&ei()},document.addEventListener("click",w.cancelDisarmDocListener,!0);return}ei(),C_(e,A)}),s.querySelector("[data-ap-runner-scroll-toggle]").addEventListener("click",()=>{w.autoScrollEnabled=!w.autoScrollEnabled,w.autoScrollEnabled&&Gh(),ti()}),s.querySelector("[data-ap-runner-scroll-jump]").addEventListener("click",()=>{w.autoScrollEnabled=!0,Gh(),ti()}),s.querySelector("[data-ap-runner-log]").addEventListener("scroll",()=>{if(!w.autoScrollEnabled||!w.runnerEl)return;const a=w.runnerEl.querySelector("[data-ap-runner-log]");a.scrollHeight-a.scrollTop-a.clientHeight>I_&&(w.autoScrollEnabled=!1,ti())}),Hc(),$h(A,e)}const Oc="ap-sdk-captures",L_=50;function sr(){try{const A=localStorage.getItem(Oc);return A?JSON.parse(A):[]}catch(A){return[]}}function D_(A){const e=sr(),t=[A,...e].slice(0,L_);try{localStorage.setItem(Oc,JSON.stringify(t))}catch(n){}}function R_(){try{localStorage.removeItem(Oc)}catch(A){}}function Jh(A){var o,a,i,c,u;if(A.id){const h=document.querySelector(`label[for="${CSS.escape(A.id)}"]`),f=(o=h==null?void 0:h.textContent)==null?void 0:o.trim();if(f)return f}const e=A.closest("label"),t=(a=e==null?void 0:e.textContent)==null?void 0:a.trim();if(t)return t;const n=(i=A.getAttribute("aria-label"))==null?void 0:i.trim();if(n)return n;const r=(c=A.placeholder)==null?void 0:c.trim();if(r)return r;const s=(u=A.getAttribute("name"))==null?void 0:u.trim();return s||A.tagName.toLowerCase()}function O_(A,e){return`Click "${A}" ${e.toLowerCase()}`}function jh(A,e,t){return t?`Typed [redacted] into ${A}`:`Typed "${e}" into ${A}`}function Yh(A,e){return`Scrolled to (${A}, ${e})`}function P_(A,e){return e?`Pressed "${A}" in ${e}`:`Pressed "${A}"`}function qh(A){return A.map((e,t)=>`${t+1}. ${e.description}`).join(`
1997
- `)}const M_=400,K_=new Set(["Enter","Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),N_=new Set(["Control","Meta","Alt","Shift"]);function $_(A){if(N_.has(A.key))return null;const e=[];return A.ctrlKey&&e.push("Ctrl"),A.metaKey&&e.push("Cmd"),A.altKey&&e.push("Alt"),e.length>0?(e.push(A.key.length===1?A.key.toUpperCase():A.key),e.join("+")):K_.has(A.key)?A.key:null}function z_(A){return A instanceof HTMLInputElement||A instanceof HTMLTextAreaElement||A instanceof HTMLSelectElement?Jh(A):Ds(A)||A.tagName.toLowerCase()}let or=[],ue=null,ri=null,me=null,ht=null,ft=null;function Af(){ri&&(ri.textContent=`● Recording — ${or.length} step${or.length===1?"":"s"}`)}function Pc(){ft&&(clearTimeout(ft),ft=null),ht&&(or.push(ht),ht=null,Af())}function Mc(A){Pc(),or.push(A),Af()}function V_(A){var e,t,n;return A instanceof HTMLSelectElement&&(n=(t=(e=A.selectedOptions[0])==null?void 0:e.textContent)==null?void 0:t.trim())!=null?n:A.value}function G_(A,e){me&&me(),or=[],ht=null,ue=document.createElement("div"),ue.className="ap-sdk-recorder-bar",ue.setAttribute("data-ap-sdk","1"),ue.innerHTML=`
1995
+ `,s.addEventListener("wheel",a=>{a.stopPropagation()},{passive:!0}),s.addEventListener("touchmove",a=>{a.stopPropagation()},{passive:!0}),document.body.appendChild(s),w.highlightOverlay=Mi(),ot(s),w.runnerResizeCleanup=ca(s,aa),w.runnerDragCleanup=Hr(s,Tr),s.querySelector("[data-ap-close]").addEventListener("click",()=>{Pc(),r==null||r()}),s.querySelector("[data-ap-runner-chat-form]").addEventListener("submit",a=>{a.preventDefault(),E_(e,A)}),s.querySelector("[data-ap-runner-cancel]").addEventListener("click",a=>{a.stopPropagation();const i=a.currentTarget;if(!w.cancelArmed){w.cancelArmed=!0,i.textContent="Confirm",w.cancelArmTimeout=setTimeout(ti,D_),w.cancelDisarmDocListener=c=>{c.target!==i&&ti()},document.addEventListener("click",w.cancelDisarmDocListener,!0);return}ti(),y_(e,A)}),s.querySelector("[data-ap-runner-scroll-toggle]").addEventListener("click",()=>{w.autoScrollEnabled=!w.autoScrollEnabled,w.autoScrollEnabled&&Jh(),ni()}),s.querySelector("[data-ap-runner-scroll-jump]").addEventListener("click",()=>{w.autoScrollEnabled=!0,Jh(),ni()}),s.querySelector("[data-ap-runner-log]").addEventListener("scroll",()=>{if(!w.autoScrollEnabled||!w.runnerEl)return;const a=w.runnerEl.querySelector("[data-ap-runner-log]");a.scrollHeight-a.scrollTop-a.clientHeight>L_&&(w.autoScrollEnabled=!1,ni())}),Dc(),Zh(A,e)}const Nc="ap-sdk-captures",O_=50;function ir(){try{const A=localStorage.getItem(Nc);return A?JSON.parse(A):[]}catch(A){return[]}}function P_(A){const e=ir(),t=[A,...e].slice(0,O_);try{localStorage.setItem(Nc,JSON.stringify(t))}catch(n){}}function M_(){try{localStorage.removeItem(Nc)}catch(A){}}function Af(A){var o,a,i,c,u;if(A.id){const h=document.querySelector(`label[for="${CSS.escape(A.id)}"]`),f=(o=h==null?void 0:h.textContent)==null?void 0:o.trim();if(f)return f}const e=A.closest("label"),t=(a=e==null?void 0:e.textContent)==null?void 0:a.trim();if(t)return t;const n=(i=A.getAttribute("aria-label"))==null?void 0:i.trim();if(n)return n;const r=(c=A.placeholder)==null?void 0:c.trim();if(r)return r;const s=(u=A.getAttribute("name"))==null?void 0:u.trim();return s||A.tagName.toLowerCase()}function N_(A,e){return`Click "${A}" ${e.toLowerCase()}`}function ef(A,e,t){return t?`Typed [redacted] into ${A}`:`Typed "${e}" into ${A}`}function tf(A,e){return`Scrolled to (${A}, ${e})`}function K_(A,e){return e?`Pressed "${A}" in ${e}`:`Pressed "${A}"`}function nf(A){return A.map((e,t)=>`${t+1}. ${e.description}`).join(`
1996
+ `)}const $_=400,z_=new Set(["Enter","Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),V_=new Set(["Control","Meta","Alt","Shift"]);function G_(A){if(V_.has(A.key))return null;const e=[];return A.ctrlKey&&e.push("Ctrl"),A.metaKey&&e.push("Cmd"),A.altKey&&e.push("Alt"),e.length>0?(e.push(A.key.length===1?A.key.toUpperCase():A.key),e.join("+")):z_.has(A.key)?A.key:null}function Z_(A){return A instanceof HTMLInputElement||A instanceof HTMLTextAreaElement||A instanceof HTMLSelectElement?Af(A):Rs(A)||A.tagName.toLowerCase()}let ar=[],de=null,si=null,Ce=null,ft=null,gt=null;function rf(){si&&(si.textContent=`● Recording — ${ar.length} step${ar.length===1?"":"s"}`)}function Kc(){gt&&(clearTimeout(gt),gt=null),ft&&(ar.push(ft),ft=null,rf())}function $c(A){Kc(),ar.push(A),rf()}function X_(A){var e,t,n;return A instanceof HTMLSelectElement&&(n=(t=(e=A.selectedOptions[0])==null?void 0:e.textContent)==null?void 0:t.trim())!=null?n:A.value}function W_(A,e){Ce&&Ce(),ar=[],ft=null,de=document.createElement("div"),de.className="ap-sdk-recorder-bar",de.setAttribute("data-ap-sdk","1"),de.innerHTML=`
1998
1997
  <span class="ap-sdk-recorder-bar__counter" data-ap-recorder-counter>● Recording — 0 steps</span>
1999
1998
  <button class="ap-sdk-recorder-bar__btn ap-sdk-recorder-bar__btn--stop" data-ap-recorder-stop type="button">Stop</button>
2000
1999
  <button class="ap-sdk-recorder-bar__btn ap-sdk-recorder-bar__btn--discard" data-ap-recorder-discard type="button">Discard</button>
2001
- `,document.body.appendChild(ue),rt(ue),ri=ue.querySelector("[data-ap-recorder-counter]");const t=()=>{Pc();const i=or;me==null||me(),A(i)},n=()=>{me==null||me()};ue.querySelector("[data-ap-recorder-stop]").addEventListener("click",t),ue.querySelector("[data-ap-recorder-discard]").addEventListener("click",n);const r=i=>{if(Fr(i.target))return;const c=i.target;Mc({action:"click",cssSelector:Ls(c),elementText:Ds(c),description:O_(Ds(c),c.tagName),capturedAt:new Date().toISOString()})},s=i=>{if(Fr(i.target))return;const c=i.target;if(!(c instanceof HTMLInputElement)&&!(c instanceof HTMLTextAreaElement)&&!(c instanceof HTMLSelectElement))return;const u=Jh(c),h=Bl(c),f=h?"[redacted]":V_(c);Mc($(k({action:"inputText",cssSelector:Ls(c),elementText:u,value:f},h?{redacted:!0}:{}),{description:jh(u,f,h),capturedAt:new Date().toISOString()}))},o=()=>{const i=Math.round(window.scrollX),c=Math.round(window.scrollY);ht?(ht.scrollX=i,ht.scrollY=c,ht.description=Yh(i,c)):ht={action:"scroll",scrollX:i,scrollY:c,description:Yh(i,c),capturedAt:new Date().toISOString()},ft&&clearTimeout(ft),ft=setTimeout(()=>{ft=null,Pc()},M_)},a=i=>{if(i.key==="Escape"){n();return}if(Fr(i.target))return;const c=$_(i);if(!c)return;const u=i.target instanceof Element?i.target:document.body,h=z_(u);Mc({action:"keypress",cssSelector:Ls(u),elementText:h,key:c,description:P_(c,h),capturedAt:new Date().toISOString()})};document.addEventListener("click",r,{capture:!0}),document.addEventListener("change",s,{capture:!0}),window.addEventListener("scroll",o,{capture:!0,passive:!0}),document.addEventListener("keydown",a,{capture:!0}),me=()=>{document.removeEventListener("click",r,{capture:!0}),document.removeEventListener("change",s,{capture:!0}),window.removeEventListener("scroll",o,{capture:!0}),document.removeEventListener("keydown",a,{capture:!0}),ft&&(clearTimeout(ft),ft=null),ht=null,ue&&st(ue),ue==null||ue.remove(),ue=null,ri=null,me=null}}function Z_(){me==null||me()}function si(){return me!==null}const X_="data-ap-sdk",W_="ap-sdk-fab",ef="ap-sdk-fab--dragging",Kc="ap-sdk-fab--open",tf="ap-sdk-fab-pos",oi="ap-sdk-fab--left-edge",J_='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg>',j_='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 3 7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/><path d="m13 13 6 6"/></svg>',Y_='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="12" r="8"/></svg>',q_='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>';let M=null,gt=null,Wt=null,Jt=null,Te=null,ir=null,ar=null,cr=null,ii=null,us=null,lr=null,ai=null,ci=null,li=null,nf=0,rf=0,sf=0,of=0,ur=!1,Je=!1,ds=null,Qn=null;function Ax(){ds=A=>{if(!M){ui();return}if(!ur){if(Math.hypot(A.clientX-sf,A.clientY-of)<5)return;ur=!0,Je=!0,M.classList.add(ef)}ex(A.clientX-nf,A.clientY-rf)},Qn=()=>{if(!M){ui();return}ur?(ur=!1,M.classList.remove(ef),M.style.transition="",tx(M.getBoundingClientRect())):M.style.transition="",ui()},window.addEventListener("pointermove",ds),window.addEventListener("pointerup",Qn),window.addEventListener("pointercancel",Qn)}function ui(){ds&&(window.removeEventListener("pointermove",ds),ds=null),Qn&&(window.removeEventListener("pointerup",Qn),window.removeEventListener("pointercancel",Qn),Qn=null)}function ex(A,e){if(!M)return;const t=M.offsetWidth||52,n=M.offsetHeight||52;M.style.top=`${Math.max(0,Math.min(e,window.innerHeight-n))}px`,M.style.left=`${Math.max(0,Math.min(A,window.innerWidth-t))}px`,M.style.bottom="auto",M.style.right="auto"}function tx(A){if(!M)return;const t=Math.max(16,Math.min(window.innerHeight-A.bottom,window.innerHeight-52-16)),n=A.left+A.width/2<window.innerWidth/2?"left":"right";M.style.top="auto",M.style.bottom=`${t}px`,n==="left"?(M.style.right="auto",M.style.left="16px",M.classList.add(oi)):(M.style.left="auto",M.style.right="16px",M.classList.remove(oi));try{localStorage.setItem(tf,JSON.stringify({edge:n,bottom:t}))}catch(r){}}function nx(){if(M)try{const A=localStorage.getItem(tf);if(!A)return;const e=JSON.parse(A);if(typeof e.bottom!="number"||e.edge!=="left"&&e.edge!=="right")return;const n=Math.max(16,Math.min(e.bottom,window.innerHeight-52-16));M.style.top="auto",M.style.bottom=`${n}px`,e.edge==="left"?(M.style.right="auto",M.style.left="16px",M.classList.add(oi)):(M.style.left="auto",M.style.right="16px",M.classList.remove(oi))}catch(A){}}function dr(){M==null||M.classList.remove(Kc),lr&&(window.removeEventListener("pointerdown",lr,{capture:!0}),lr=null)}function rx(){M&&(M.classList.add(Kc),lr=A=>{!M||M.contains(A.target)||dr()},requestAnimationFrame(()=>{lr&&window.addEventListener("pointerdown",lr,{capture:!0})}))}function di(A){return new DOMParser().parseFromString(A,"text/html").body.firstElementChild}function af(A,e,t){var a;if(ai=A,ci=e,li=t,M)return;M=document.createElement("div"),M.className=W_,M.setAttribute(X_,"1"),ir=document.createElement("div"),ir.className="ap-sdk-fab__row";const n=document.createElement("span");n.className="ap-sdk-fab__label",n.textContent="View captures",Te=document.createElement("button"),Te.className="ap-sdk-fab__list ap-sdk-fab__sub",Te.setAttribute("aria-label","My captures"),Te.setAttribute("title","View my captures"),Te.appendChild(di(q_));const r=document.createElement("span");r.className="ap-sdk-fab__badge",r.setAttribute("data-ap-badge",""),r.style.display="none",Te.appendChild(r),ir.appendChild(n),ir.appendChild(Te),ar=document.createElement("div"),ar.className="ap-sdk-fab__row";const s=document.createElement("span");s.className="ap-sdk-fab__label",s.textContent="Capture element",Wt=document.createElement("button"),Wt.className="ap-sdk-fab__capture ap-sdk-fab__sub",Wt.setAttribute("aria-label","Capture element"),Wt.setAttribute("title","Capture element to Agent Platform"),Wt.appendChild(di(j_)),ar.appendChild(s),ar.appendChild(Wt),cr=document.createElement("div"),cr.className="ap-sdk-fab__row";const o=document.createElement("span");o.className="ap-sdk-fab__label",o.textContent="Record interaction",Jt=document.createElement("button"),Jt.className="ap-sdk-fab__record ap-sdk-fab__sub",Jt.setAttribute("aria-label","Record interaction"),Jt.setAttribute("title","Record a sequence of interactions"),Jt.appendChild(di(Y_)),cr.appendChild(o),cr.appendChild(Jt),gt=document.createElement("button"),gt.className="ap-sdk-fab__main",gt.setAttribute("aria-label","Agent Platform"),gt.setAttribute("title","Agent Platform"),gt.appendChild(di(J_)),M.appendChild(ir),M.appendChild(ar),M.appendChild(cr),M.appendChild(gt),gt.addEventListener("click",i=>{if(Je){Je=!1;return}i.preventDefault(),i.stopPropagation(),M!=null&&M.classList.contains(Kc)?dr():rx()}),Wt.addEventListener("click",i=>{if(Je){Je=!1;return}i.preventDefault(),i.stopPropagation(),dr(),!Pn()&&!si()&&ai&&ai()}),Jt.addEventListener("click",i=>{if(Je){Je=!1;return}i.preventDefault(),i.stopPropagation(),dr(),!Pn()&&!si()&&ci&&ci()}),Te.addEventListener("click",i=>{if(Je){Je=!1;return}i.preventDefault(),i.stopPropagation(),dr(),li&&li()}),us=i=>{if(!M||!(M===i.target||M.contains(i.target)))return;const c=M.getBoundingClientRect();nf=i.clientX-c.left,rf=i.clientY-c.top,sf=i.clientX,of=i.clientY,ur=!1,Je=!1,M.style.transition="none",i.stopPropagation(),Ax()},window.addEventListener("pointerdown",us,{capture:!0}),((a=document.body)!=null?a:document.documentElement).appendChild(M),rt(M),nx(),ii=setInterval(()=>{gt&&gt.classList.toggle("ap-sdk-fab__main--active",Pn()||si())},200)}function yn(A){const e=Te==null?void 0:Te.querySelector("[data-ap-badge]");e&&(A>0?(e.textContent=String(A),e.style.display=""):e.style.display="none")}function cf(){ur=!1,Je=!1,ui(),dr(),ii&&(clearInterval(ii),ii=null),us&&(window.removeEventListener("pointerdown",us,{capture:!0}),us=null),M&&st(M),M==null||M.remove(),M=null,gt=null,Wt=null,Jt=null,Te=null,ir=null,ar=null,cr=null,ai=null,ci=null,li=null}function lf(A,e){return I(this,null,function*(){try{if(A.type==="planning"){const n=yield wb(e,A.id);return{capture:A,status:n.status,approved:n.status==="approved"}}const t=yield Su(e,A.id);return{capture:A,status:t.status,approved:t.approved===!0}}catch(t){return{capture:A,status:"unavailable",approved:!1}}})}function uf(A){return A.filter(e=>!e.approved).length}function df(A){return I(this,null,function*(){const e=sr();if(!A||e.length===0){yn(e.length);return}const t=yield Promise.all(e.map(n=>lf(n,A)));yn(uf(t))})}function pf(A){return A.screenshotBlob?`
2000
+ `,document.body.appendChild(de),ot(de),si=de.querySelector("[data-ap-recorder-counter]");const t=()=>{Kc();const i=ar;Ce==null||Ce(),A(i)},n=()=>{Ce==null||Ce()};de.querySelector("[data-ap-recorder-stop]").addEventListener("click",t),de.querySelector("[data-ap-recorder-discard]").addEventListener("click",n);const r=i=>{if(vr(i.target))return;const c=i.target;$c({action:"click",cssSelector:Ls(c),elementText:Rs(c),description:N_(Rs(c),c.tagName),capturedAt:new Date().toISOString()})},s=i=>{if(vr(i.target))return;const c=i.target;if(!(c instanceof HTMLInputElement)&&!(c instanceof HTMLTextAreaElement)&&!(c instanceof HTMLSelectElement))return;const u=Af(c),h=Cl(c),f=h?"[redacted]":X_(c);$c(z(F({action:"inputText",cssSelector:Ls(c),elementText:u,value:f},h?{redacted:!0}:{}),{description:ef(u,f,h),capturedAt:new Date().toISOString()}))},o=()=>{const i=Math.round(window.scrollX),c=Math.round(window.scrollY);ft?(ft.scrollX=i,ft.scrollY=c,ft.description=tf(i,c)):ft={action:"scroll",scrollX:i,scrollY:c,description:tf(i,c),capturedAt:new Date().toISOString()},gt&&clearTimeout(gt),gt=setTimeout(()=>{gt=null,Kc()},$_)},a=i=>{if(i.key==="Escape"){n();return}if(vr(i.target))return;const c=G_(i);if(!c)return;const u=i.target instanceof Element?i.target:document.body,h=Z_(u);$c({action:"keypress",cssSelector:Ls(u),elementText:h,key:c,description:K_(c,h),capturedAt:new Date().toISOString()})};document.addEventListener("click",r,{capture:!0}),document.addEventListener("change",s,{capture:!0}),window.addEventListener("scroll",o,{capture:!0,passive:!0}),document.addEventListener("keydown",a,{capture:!0}),Ce=()=>{document.removeEventListener("click",r,{capture:!0}),document.removeEventListener("change",s,{capture:!0}),window.removeEventListener("scroll",o,{capture:!0}),document.removeEventListener("keydown",a,{capture:!0}),gt&&(clearTimeout(gt),gt=null),ft=null,de&&it(de),de==null||de.remove(),de=null,si=null,Ce=null}}function J_(){Ce==null||Ce()}function oi(){return Ce!==null}const j_="data-ap-sdk",Y_="ap-sdk-fab",sf="ap-sdk-fab--dragging",zc="ap-sdk-fab--open",of="ap-sdk-fab-pos",ii="ap-sdk-fab--left-edge",q_='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg>',Ax='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 3 7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/><path d="m13 13 6 6"/></svg>',ex='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="12" r="8"/></svg>',tx='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>';let M=null,Bt=null,Yt=null,qt=null,He=null,cr=null,lr=null,ur=null,ai=null,ds=null,dr=null,ci=null,li=null,ui=null,af=0,cf=0,lf=0,uf=0,pr=!1,Je=!1,ps=null,yn=null;function nx(){ps=A=>{if(!M){di();return}if(!pr){if(Math.hypot(A.clientX-lf,A.clientY-uf)<5)return;pr=!0,Je=!0,M.classList.add(sf)}rx(A.clientX-af,A.clientY-cf)},yn=()=>{if(!M){di();return}pr?(pr=!1,M.classList.remove(sf),M.style.transition="",sx(M.getBoundingClientRect())):M.style.transition="",di()},window.addEventListener("pointermove",ps),window.addEventListener("pointerup",yn),window.addEventListener("pointercancel",yn)}function di(){ps&&(window.removeEventListener("pointermove",ps),ps=null),yn&&(window.removeEventListener("pointerup",yn),window.removeEventListener("pointercancel",yn),yn=null)}function rx(A,e){if(!M)return;const t=M.offsetWidth||52,n=M.offsetHeight||52;M.style.top=`${Math.max(0,Math.min(e,window.innerHeight-n))}px`,M.style.left=`${Math.max(0,Math.min(A,window.innerWidth-t))}px`,M.style.bottom="auto",M.style.right="auto"}function sx(A){if(!M)return;const t=Math.max(16,Math.min(window.innerHeight-A.bottom,window.innerHeight-52-16)),n=A.left+A.width/2<window.innerWidth/2?"left":"right";M.style.top="auto",M.style.bottom=`${t}px`,n==="left"?(M.style.right="auto",M.style.left="16px",M.classList.add(ii)):(M.style.left="auto",M.style.right="16px",M.classList.remove(ii));try{localStorage.setItem(of,JSON.stringify({edge:n,bottom:t}))}catch(r){}}function ox(){if(M)try{const A=localStorage.getItem(of);if(!A)return;const e=JSON.parse(A);if(typeof e.bottom!="number"||e.edge!=="left"&&e.edge!=="right")return;const n=Math.max(16,Math.min(e.bottom,window.innerHeight-52-16));M.style.top="auto",M.style.bottom=`${n}px`,e.edge==="left"?(M.style.right="auto",M.style.left="16px",M.classList.add(ii)):(M.style.left="auto",M.style.right="16px",M.classList.remove(ii))}catch(A){}}function hr(){M==null||M.classList.remove(zc),dr&&(window.removeEventListener("pointerdown",dr,{capture:!0}),dr=null)}function ix(){M&&(M.classList.add(zc),dr=A=>{!M||M.contains(A.target)||hr()},requestAnimationFrame(()=>{dr&&window.addEventListener("pointerdown",dr,{capture:!0})}))}function pi(A){return new DOMParser().parseFromString(A,"text/html").body.firstElementChild}function df(A,e,t){var a;if(ci=A,li=e,ui=t,M)return;M=document.createElement("div"),M.className=Y_,M.setAttribute(j_,"1"),cr=document.createElement("div"),cr.className="ap-sdk-fab__row";const n=document.createElement("span");n.className="ap-sdk-fab__label",n.textContent="View captures",He=document.createElement("button"),He.className="ap-sdk-fab__list ap-sdk-fab__sub",He.setAttribute("aria-label","My captures"),He.setAttribute("title","View my captures"),He.appendChild(pi(tx));const r=document.createElement("span");r.className="ap-sdk-fab__badge",r.setAttribute("data-ap-badge",""),r.style.display="none",He.appendChild(r),cr.appendChild(n),cr.appendChild(He),lr=document.createElement("div"),lr.className="ap-sdk-fab__row";const s=document.createElement("span");s.className="ap-sdk-fab__label",s.textContent="Capture element",Yt=document.createElement("button"),Yt.className="ap-sdk-fab__capture ap-sdk-fab__sub",Yt.setAttribute("aria-label","Capture element"),Yt.setAttribute("title","Capture element to Agent Platform"),Yt.appendChild(pi(Ax)),lr.appendChild(s),lr.appendChild(Yt),ur=document.createElement("div"),ur.className="ap-sdk-fab__row";const o=document.createElement("span");o.className="ap-sdk-fab__label",o.textContent="Record interaction",qt=document.createElement("button"),qt.className="ap-sdk-fab__record ap-sdk-fab__sub",qt.setAttribute("aria-label","Record interaction"),qt.setAttribute("title","Record a sequence of interactions"),qt.appendChild(pi(ex)),ur.appendChild(o),ur.appendChild(qt),Bt=document.createElement("button"),Bt.className="ap-sdk-fab__main",Bt.setAttribute("aria-label","Agent Platform"),Bt.setAttribute("title","Agent Platform"),Bt.appendChild(pi(q_)),M.appendChild(cr),M.appendChild(lr),M.appendChild(ur),M.appendChild(Bt),Bt.addEventListener("click",i=>{if(Je){Je=!1;return}i.preventDefault(),i.stopPropagation(),M!=null&&M.classList.contains(zc)?hr():ix()}),Yt.addEventListener("click",i=>{if(Je){Je=!1;return}i.preventDefault(),i.stopPropagation(),hr(),!Nn()&&!oi()&&ci&&ci()}),qt.addEventListener("click",i=>{if(Je){Je=!1;return}i.preventDefault(),i.stopPropagation(),hr(),!Nn()&&!oi()&&li&&li()}),He.addEventListener("click",i=>{if(Je){Je=!1;return}i.preventDefault(),i.stopPropagation(),hr(),ui&&ui()}),ds=i=>{if(!M||!(M===i.target||M.contains(i.target)))return;const c=M.getBoundingClientRect();af=i.clientX-c.left,cf=i.clientY-c.top,lf=i.clientX,uf=i.clientY,pr=!1,Je=!1,M.style.transition="none",i.stopPropagation(),nx()},window.addEventListener("pointerdown",ds,{capture:!0}),((a=document.body)!=null?a:document.documentElement).appendChild(M),ot(M),ox(),ai=setInterval(()=>{Bt&&Bt.classList.toggle("ap-sdk-fab__main--active",Nn()||oi())},200)}function Un(A){const e=He==null?void 0:He.querySelector("[data-ap-badge]");e&&(A>0?(e.textContent=String(A),e.style.display=""):e.style.display="none")}function pf(){pr=!1,Je=!1,di(),hr(),ai&&(clearInterval(ai),ai=null),ds&&(window.removeEventListener("pointerdown",ds,{capture:!0}),ds=null),M&&it(M),M==null||M.remove(),M=null,Bt=null,Yt=null,qt=null,He=null,cr=null,lr=null,ur=null,ci=null,li=null,ui=null}function hf(A,e){return I(this,null,function*(){try{if(A.type==="planning"){const n=yield bb(e,A.id);return{capture:A,status:n.status,approved:n.status==="approved"}}const t=yield Hu(e,A.id);return{capture:A,status:t.status,approved:t.approved===!0}}catch(t){return{capture:A,status:"unavailable",approved:!1}}})}function ff(A){return A.filter(e=>!e.approved).length}function gf(A){return I(this,null,function*(){const e=ir();if(!A||e.length===0){Un(e.length);return}const t=yield Promise.all(e.map(n=>hf(n,A)));Un(ff(t))})}function Bf(A){return A.screenshotBlob?`
2002
2001
 
2003
- (A screenshot of the selected element is attached.)`:""}function sx(A){return A.map((e,t)=>{var r,s;const n=[`## Pick ${t+1}`,""];return(r=e.ctx.interactionSteps)!=null&&r.length?n.push("Recorded steps:",qh(e.ctx.interactionSteps)):(n.push(`Element: ${e.ctx.elementText||"(no text)"}`),e.ctx.cssSelector&&n.push(`Selector: ${e.ctx.cssSelector}`),e.ctx.ancestry&&n.push(`Ancestry: ${e.ctx.ancestry}`)),n.push(`Page: ${e.ctx.pageTitle} (${e.ctx.pageUrl})`),(s=e.ctx.innerTree)!=null&&s.trim()&&n.push(`
2002
+ (A screenshot of the selected element is attached.)`:""}function ax(A){return A.map((e,t)=>{var r,s;const n=[`## Pick ${t+1}`,""];return(r=e.ctx.interactionSteps)!=null&&r.length?n.push("Recorded steps:",nf(e.ctx.interactionSteps)):(n.push(`Element: ${e.ctx.elementText||"(no text)"}`),e.ctx.cssSelector&&n.push(`Selector: ${e.ctx.cssSelector}`),e.ctx.ancestry&&n.push(`Ancestry: ${e.ctx.ancestry}`)),n.push(`Page: ${e.ctx.pageTitle} (${e.ctx.pageUrl})`),(s=e.ctx.innerTree)!=null&&s.trim()&&n.push(`
2004
2003
  Element tree:
2005
2004
  ${e.ctx.innerTree}`),e.screenshotBlob&&n.push(`Screenshot: attached (see screenshot-${t+1}.png)`),n.push("",`Instruction:
2006
2005
  ${e.instruction}`),n.join(`
@@ -2008,15 +2007,15 @@ ${e.instruction}`),n.join(`
2008
2007
 
2009
2008
  ---
2010
2009
 
2011
- `)}function ox(i){return I(this,arguments,function*({opts:A,advancedOpts:e,allPicks:t,captureType:n,note:r,allowSubmit:s,project:o,projectCode:a}){var m,b;const u=t.some(U=>!!U.screenshotBlob)?(yield Promise.all(t.map((U,E)=>U.screenshotBlob?ub(A,U.screenshotBlob,`screenshot-${E+1}.png`).then(v=>v.id).catch(()=>null):Promise.resolve(null)))).filter(U=>U!==null):[],h={id:o==null?void 0:o.id,key:a};let f,g;if(t.length===1){const U=r+pf(t[0]),E=t[0].ctx;if(n==="task")f=(yield na(A,{project:h,note:U,ctx:E,advancedOpts:e,extraFileIds:u})).id,g=r.slice(0,120)||E.pageTitle||"Browser capture";else if(n==="planning"){let v=ug(r,$(k({},E),{ancestry:E.outerTree||E.ancestry}));(m=E.innerTree)!=null&&m.trim()&&(v+=`
2010
+ `)}function cx(i){return I(this,arguments,function*({opts:A,advancedOpts:e,allPicks:t,captureType:n,note:r,allowSubmit:s,project:o,projectCode:a}){var m,b;const u=t.some(E=>!!E.screenshotBlob)?(yield Promise.all(t.map((E,k)=>E.screenshotBlob?fb(A,E.screenshotBlob,`screenshot-${k+1}.png`).then(v=>v.id).catch(()=>null):Promise.resolve(null)))).filter(E=>E!==null):[],h={id:o==null?void 0:o.id,key:a};let f,g;if(t.length===1){const E=r+Bf(t[0]),k=t[0].ctx;if(n==="task")f=(yield sa(A,{project:h,note:E,ctx:k,advancedOpts:e,extraFileIds:u})).id,g=r.slice(0,120)||k.pageTitle||"Browser capture";else if(n==="planning"){let v=gg(r,z(F({},k),{ancestry:k.outerTree||k.ancestry}));(m=k.innerTree)!=null&&m.trim()&&(v+=`
2012
2011
 
2013
2012
  Element tree:
2014
- ${E.innerTree}`),(b=E.interactionSteps)!=null&&b.length&&(v+=`
2013
+ ${k.innerTree}`),(b=k.interactionSteps)!=null&&b.length&&(v+=`
2015
2014
 
2016
2015
  Recorded steps:
2017
- ${qh(E.interactionSteps)}`),v+=pf(t[0]),f=(yield xu(A,h,v,e,u)).id,g=r.slice(0,120)||E.pageTitle||"Planning session"}else f=(yield _u(A,{project:h,note:U,ctx:E,advancedOpts:e,allowSubmit:s,extraFileIds:u})).id,g=r.slice(0,120)||E.pageTitle||"Browser automation"}else{const U=sx(t),E=t[0].instruction.slice(0,120)||t[0].ctx.pageTitle||"Multi-element capture",v=t.map(F=>F.instruction).filter(Boolean).join(`
2016
+ ${nf(k.interactionSteps)}`),v+=Bf(t[0]),f=(yield Tu(A,h,v,e,u)).id,g=r.slice(0,120)||k.pageTitle||"Planning session"}else f=(yield Iu(A,{project:h,note:E,ctx:k,advancedOpts:e,allowSubmit:s,extraFileIds:u})).id,g=r.slice(0,120)||k.pageTitle||"Browser automation"}else{const E=ax(t),k=t[0].instruction.slice(0,120)||t[0].ctx.pageTitle||"Multi-element capture",v=t.map(y=>y.instruction).filter(Boolean).join(`
2018
2017
 
2019
- `);n==="task"?(f=(yield na(A,{project:h,note:U,ctx:t[0].ctx,advancedOpts:e,titleOverride:E,type:Uu,titleInstruction:v,extraFileIds:u})).id,g=E):n==="planning"?(f=(yield xu(A,h,U,e,u)).id,g=E):(f=(yield _u(A,{project:h,note:U,ctx:t[0].ctx,advancedOpts:e,titleOverride:E,titleInstruction:v,allowSubmit:s,extraFileIds:u})).id,g=E)}return{createdId:f,captureType:n,captureTitle:g}})}function ix(A){const{state:e,apiOpts:t,project:n,projectCode:r,needsCredentials:s,statusEl:o,submitBtn:a,panelEl:i,screenshotEl:c,noteEl:u,advancedOptionsRef:h,onClose:f,onCredentialsSaved:g,closeAndCleanup:m,clearTrackCleanup:b,hideHighlight:U}=A,E=()=>I(null,null,function*(){if(e.submitting)return;if(s){Vt(o,"error","Connect to Agent Platform first.");return}const v=t.backendUrl,F=t.token,y=u.value.trim();if(!y){Vt(o,"error","Please enter an instruction.");return}e.submitting=!0,cc(i,!0),Vt(o,null,""),a.textContent="Submitting…";const _={backendUrl:v,token:F},R=h.getOptions(),H=[...e.completedPicks,{ctx:e.currentCtx,instruction:y,screenshotBlob:e.screenshotIncluded?e.currentScreenshotBlob:null}];try{const{createdId:z,captureType:K,captureTitle:G}=yield ox({opts:_,advancedOpts:R,allPicks:H,captureType:e.captureType,note:y,allowSubmit:e.allowSubmit,project:n,projectCode:r});if(D_({id:z,type:K,title:G,backendUrl:v,createdAt:new Date().toISOString()}),ia(),df(_).catch(()=>{}),K==="automate"){m(),Rc(z,_,v,G,f);return}const W=K==="task"?`${v.replace(/\/+$/,"")}/tasks/${z}`:`${v.replace(/\/+$/,"")}/planning/${z}`;DF(o,K,G,W,m),i.classList.add("ap-sdk-panel--success"),b(),U(),c.style.display="none",e.submitting=!1,cc(i,!1)}catch(z){z instanceof Fu?PF(o,()=>I(null,null,function*(){const{code:K}=yield lc(v),{token:G,expiresAt:W}=yield ra({backendUrl:v},K,window.location.origin);Go({backendUrl:v,token:G,projectCode:r,expiresAt:W}),t.token=G,g({backendUrl:v,token:G}),yield E()})):Vt(o,"error",z instanceof Error?z.message:"An unexpected error occurred."),e.submitting=!1,cc(i,!1),a.textContent="Submit"}});return E}let q=null,de=null,Ft=null,ps=null,hs=null;function fs(){return q!==null}function gs(){q&&st(q),q==null||q.remove(),q=null,Ft==null||Ft(),Ft=null,ps==null||ps(),ps=null,hs==null||hs(),hs=null,de==null||de.destroy(),de=null}function hf(A,e,t,n,r,s,o,a,i,c,u=null,h){var _n,qt,XA,Bt,Re,Oe,_t,qe,wt,mt,xn;q&&gs();const f=!t.backendUrl||!t.token,g=Tu(u,"tasks:write"),m=Tu(u,"planning-sessions:write"),b=!g&&m?"planning":"task",U=h?null:$u(),E={captureType:(qt=(_n=h==null?void 0:h.captureType)!=null?_n:U==null?void 0:U.captureType)!=null?qt:b,submitting:!1,completedPicks:(Bt=(XA=h==null?void 0:h.completedPicks)!=null?XA:U==null?void 0:U.completedPicks)!=null?Bt:[],currentCtx:A,currentPickedEl:e,awaitingPick:!1,allowSubmit:(Oe=(Re=h==null?void 0:h.allowSubmit)!=null?Re:U==null?void 0:U.allowSubmit)!=null?Oe:!1,currentScreenshotBlob:(_t=h==null?void 0:h.currentScreenshotBlob)!=null?_t:null,screenshotCapturing:!1,screenshotIncluded:(qe=h==null?void 0:h.screenshotIncluded)!=null?qe:!1,screenshotError:(wt=h==null?void 0:h.screenshotError)!=null?wt:null};q=document.createElement("div"),q.className="ap-sdk-panel",q.setAttribute("data-ap-sdk","1"),q.setAttribute("role","dialog"),q.setAttribute("aria-modal","true"),q.setAttribute("aria-label","Capture to Agent Platform"),q.innerHTML=LF(A,{needsCredentials:f,canCreateTask:g,canCreatePlanning:m,captureType:E.captureType,hasOnReselect:!!i,hasOnAddAnother:!!a}),q.addEventListener("wheel",WA=>{WA.stopPropagation()},{passive:!0}),q.addEventListener("touchmove",WA=>{WA.stopPropagation()},{passive:!0});const v=q.querySelector(".ap-sdk-panel__body"),F=Fb(v,t,(mt=n==null?void 0:n.id)!=null?mt:null),y=q.querySelector("[data-ap-note]"),_=Sb(y,t,(xn=n==null?void 0:n.id)!=null?xn:null),R={getOptions(){return k(k({},F.getOptions()),_.getSelection())}};document.body.appendChild(q),de=Pi(),E.currentPickedEl&&de.update(E.currentPickedEl),rt(q),ps=oa(q,sa),hs=Tr(q,Ir);const H=q.querySelector("[data-ap-close]"),z=q.querySelector("[data-ap-cancel]"),K=q.querySelector("[data-ap-submit]"),G=q.querySelector("[data-ap-note]"),W=q.querySelector("[data-ap-status]"),sA=q.querySelectorAll("[data-ap-type]"),lA=q.querySelector("[data-ap-automate-options]"),_A=q.querySelector("[data-ap-allow-submit]"),Ce=q.querySelector("[data-ap-pick-list]"),pe=q.querySelector("[data-ap-context]"),De=q.querySelector("[data-ap-screenshot]"),fr=q.querySelector("[data-ap-add-another]"),Cs=q.querySelector("[data-ap-pick-actions]"),gr=q.querySelector("[data-ap-select-parent]"),SA=q.querySelector("[data-ap-reselect]"),Br=q.querySelector("[data-ap-clear-selections]"),BA=RF(E,De),vt=()=>{E.currentPickedEl&&(de==null||de.update(E.currentPickedEl))};window.addEventListener("scroll",vt,{capture:!0,passive:!0}),window.addEventListener("resize",vt),Ft=()=>{window.removeEventListener("scroll",vt,!0),window.removeEventListener("resize",vt),BA.cleanup()};const uA=OF({state:E,els:{contextEl:pe,pickListEl:Ce,pickActionsEl:Cs,noteEl:G,addAnotherBtn:fr,selectParentBtn:gr,reselectBtn:SA,clearSelectionsBtn:Br,typeButtons:sA,allowSubmitCheckbox:_A,automateOptionsEl:lA,statusEl:W},screenshotCtl:BA,defaultCaptureType:b,updateHighlight:WA=>de==null?void 0:de.update(WA),onReselect:i,onAddAnother:a});h?(G.value=h.note,_A.checked=h.allowSubmit,lA.style.display=E.captureType==="automate"?"":"none",uA.renderPickList(),Vt(W,"success","Reconnected — your draft was kept."),BA.renderScreenshotUi()):U?(G.value=U.note,_A.checked=U.allowSubmit,lA.style.display=E.captureType==="automate"?"":"none",uA.renderPickList(),Vt(W,"success","Restored your previous selections."),BA.renderScreenshotUi()):E.currentPickedEl&&BA.captureScreenshotFor(E.currentPickedEl);const ZA=()=>{gs(),c==null||c()},Yt=()=>({captureType:E.captureType,note:G.value,completedPicks:E.completedPicks,currentCtx:E.currentCtx,currentPickedEl:E.currentPickedEl,allowSubmit:E.allowSubmit,currentScreenshotBlob:E.currentScreenshotBlob,screenshotIncluded:E.screenshotIncluded,screenshotError:E.screenshotError});H.addEventListener("click",ZA),z.addEventListener("click",ZA);const Ye=q.querySelector("[data-ap-connect-required]");Ye&&o&&Ye.addEventListener("click",()=>{const WA=Yt();ZA(),o(WA)}),sA.forEach(WA=>{WA.addEventListener("click",()=>{E.captureType=WA.dataset.apType,sA.forEach(wr=>wr.classList.toggle("ap-sdk-active",wr===WA)),lA.style.display=E.captureType==="automate"?"":"none",uA.persistDraft()})}),_A.addEventListener("change",()=>{E.allowSubmit=_A.checked,uA.persistDraft()}),G.addEventListener("input",uA.persistDraft);const IA=q.querySelector("[data-ap-reconfigure]");o?IA.addEventListener("click",()=>{const WA=Yt();ZA(),o(WA)}):IA.style.display="none";const PA=ix({state:E,apiOpts:t,project:n,projectCode:r,needsCredentials:f,statusEl:W,submitBtn:K,panelEl:q,screenshotEl:De,noteEl:G,advancedOptionsRef:R,onClose:c,onCredentialsSaved:s,closeAndCleanup:ZA,clearTrackCleanup:()=>{Ft==null||Ft(),Ft=null},hideHighlight:()=>de==null?void 0:de.hide()});K.addEventListener("click",PA),setTimeout(()=>G.focus(),50)}let cA=null,Bs=null,ws=null;function ff(){return cA!==null}function Un(){cA&&st(cA),cA==null||cA.remove(),cA=null,Bs==null||Bs(),Bs=null,ws==null||ws(),ws=null}function ax(A){return A==="task"?"Task":A==="planning"?"Planning":"Automate"}function cx(A){if(cA){Un();return}cA=document.createElement("div"),cA.className="ap-sdk-panel",cA.setAttribute("data-ap-sdk","1"),cA.setAttribute("role","dialog"),cA.setAttribute("aria-modal","true"),cA.setAttribute("aria-label","My captures"),cA.addEventListener("wheel",e=>{e.stopPropagation()},{passive:!0}),cA.addEventListener("touchmove",e=>{e.stopPropagation()},{passive:!0}),cA.innerHTML=`
2018
+ `);n==="task"?(f=(yield sa(A,{project:h,note:E,ctx:t[0].ctx,advancedOpts:e,titleOverride:k,type:Gi,titleInstruction:v,extraFileIds:u})).id,g=k):n==="planning"?(f=(yield Tu(A,h,E,e,u)).id,g=k):(f=(yield Iu(A,{project:h,note:E,ctx:t[0].ctx,advancedOpts:e,titleOverride:k,titleInstruction:v,allowSubmit:s,extraFileIds:u})).id,g=k)}return{createdId:f,captureType:n,captureTitle:g}})}function lx(A){const{state:e,apiOpts:t,project:n,projectCode:r,needsCredentials:s,statusEl:o,submitBtn:a,panelEl:i,screenshotEl:c,noteEl:u,advancedOptionsRef:h,instructionComposerRef:f,onClose:g,onCredentialsSaved:m,closeAndCleanup:b,clearTrackCleanup:E,hideHighlight:k}=A,v=()=>I(null,null,function*(){if(e.submitting)return;if(s){Ft(o,"error","Connect to Agent Platform first.");return}const y=t.backendUrl,U=t.token,x=u.value.trim(),R=h.getOptions();if(!R.instructionTemplateId&&!x){Ft(o,"error","Please enter an instruction.");return}if(R.instructionTemplateId&&!f.isValid()){Ft(o,"error","Please fill in the required template fields.");return}e.submitting=!0,dc(i,!0),Ft(o,null,""),a.textContent="Submitting…";const H={backendUrl:y,token:U},X=[...e.completedPicks,{ctx:e.currentCtx,instruction:x,screenshotBlob:e.screenshotIncluded?e.currentScreenshotBlob:null}];try{const{createdId:N,captureType:W,captureTitle:K}=yield cx({opts:H,advancedOpts:R,allPicks:X,captureType:e.captureType,note:x,allowSubmit:e.allowSubmit,project:n,projectCode:r});if(P_({id:N,type:W,title:K,backendUrl:y,createdAt:new Date().toISOString()}),la(),gf(H).catch(()=>{}),W==="automate"){b(),Mc(N,H,y,K,g);return}const nA=W==="task"?`${y.replace(/\/+$/,"")}/tasks/${N}`:`${y.replace(/\/+$/,"")}/planning/${N}`;PF(o,W,K,nA,b),i.classList.add("ap-sdk-panel--success"),E(),k(),c.style.display="none",e.submitting=!1,dc(i,!1)}catch(N){N instanceof xu?KF(o,()=>I(null,null,function*(){const{code:W}=yield pc(y),{token:K,expiresAt:nA}=yield oa({backendUrl:y},W,window.location.origin);Zo({backendUrl:y,token:K,projectCode:r,expiresAt:nA}),t.token=K,m({backendUrl:y,token:K}),yield v()})):Ft(o,"error",N instanceof Error?N.message:"An unexpected error occurred."),e.submitting=!1,dc(i,!1),a.textContent="Submit"}});return v}const wf={task:{entityType:Ns.TASK,taskType:Gi,scenario:Ks.CREATE},automate:{entityType:Ns.TASK,taskType:El,scenario:Ks.CREATE},planning:{entityType:Ns.PLANNING_SESSION,scenario:Ks.CREATE}};let q=null,pe=null,xt=null,hs=null,fs=null;function gs(){return q!==null}function Bs(){q&&it(q),q==null||q.remove(),q=null,xt==null||xt(),xt=null,hs==null||hs(),hs=null,fs==null||fs(),fs=null,pe==null||pe.destroy(),pe=null}function mf(A,e,t,n,r,s,o,a,i,c,u=null,h){var GA,wt,De,Oe,It,At,mt,Ct,Tn,en,mr;q&&Bs();const f=!t.backendUrl||!t.token,g=Ru(u,"tasks:write"),m=Ru(u,"planning-sessions:write"),b=!g&&m?"planning":"task",E=h?null:Zu(),k={captureType:(wt=(GA=h==null?void 0:h.captureType)!=null?GA:E==null?void 0:E.captureType)!=null?wt:b,submitting:!1,completedPicks:(Oe=(De=h==null?void 0:h.completedPicks)!=null?De:E==null?void 0:E.completedPicks)!=null?Oe:[],currentCtx:A,currentPickedEl:e,awaitingPick:!1,allowSubmit:(At=(It=h==null?void 0:h.allowSubmit)!=null?It:E==null?void 0:E.allowSubmit)!=null?At:!1,currentScreenshotBlob:(mt=h==null?void 0:h.currentScreenshotBlob)!=null?mt:null,screenshotCapturing:!1,screenshotIncluded:(Ct=h==null?void 0:h.screenshotIncluded)!=null?Ct:!1,screenshotError:(Tn=h==null?void 0:h.screenshotError)!=null?Tn:null};q=document.createElement("div"),q.className="ap-sdk-panel",q.setAttribute("data-ap-sdk","1"),q.setAttribute("role","dialog"),q.setAttribute("aria-modal","true"),q.setAttribute("aria-label","Capture to Agent Platform"),q.innerHTML=OF(A,{needsCredentials:f,canCreateTask:g,canCreatePlanning:m,captureType:k.captureType,hasOnReselect:!!i,hasOnAddAnother:!!a}),q.addEventListener("wheel",ZA=>{ZA.stopPropagation()},{passive:!0}),q.addEventListener("touchmove",ZA=>{ZA.stopPropagation()},{passive:!0});const v=q.querySelector(".ap-sdk-panel__body"),y=xb(v,t,(en=n==null?void 0:n.id)!=null?en:null);let U=()=>{};const x=q.querySelector("[data-ap-note]");let R=Ou(x,t,(mr=n==null?void 0:n.id)!=null?mr:null,wf[k.captureType],()=>U());const H={getOptions(){return F(F({},y.getOptions()),R.getSelection())}};document.body.appendChild(q),pe=Mi(),k.currentPickedEl&&pe.update(k.currentPickedEl),ot(q),hs=ca(q,aa),fs=Hr(q,Tr);const X=q.querySelector("[data-ap-close]"),N=q.querySelector("[data-ap-cancel]"),W=q.querySelector("[data-ap-submit]"),K=q.querySelector("[data-ap-note]"),nA=q.querySelector("[data-ap-status]"),hA=q.querySelectorAll("[data-ap-type]"),_A=q.querySelector("[data-ap-automate-options]"),jA=q.querySelector("[data-ap-allow-submit]"),he=q.querySelector("[data-ap-pick-list]"),Ye=q.querySelector("[data-ap-context]"),xn=q.querySelector("[data-ap-screenshot]"),bs=q.querySelector("[data-ap-add-another]"),Br=q.querySelector("[data-ap-pick-actions]"),xA=q.querySelector("[data-ap-select-parent]"),wr=q.querySelector("[data-ap-reselect]"),SA=q.querySelector("[data-ap-clear-selections]"),St=()=>{W.disabled=k.submitting||!R.getSelection().instructionTemplateId&&!K.value.trim()||!R.isValid()};U=St;const lA=MF(k,xn),YA=()=>{k.currentPickedEl&&(pe==null||pe.update(k.currentPickedEl))};window.addEventListener("scroll",YA,{capture:!0,passive:!0}),window.addEventListener("resize",YA),xt=()=>{window.removeEventListener("scroll",YA,!0),window.removeEventListener("resize",YA),lA.cleanup()};const qe=NF({state:k,els:{contextEl:Ye,pickListEl:he,pickActionsEl:Br,noteEl:K,addAnotherBtn:bs,selectParentBtn:xA,reselectBtn:wr,clearSelectionsBtn:SA,typeButtons:hA,allowSubmitCheckbox:jA,automateOptionsEl:_A,statusEl:nA},screenshotCtl:lA,defaultCaptureType:b,updateHighlight:ZA=>pe==null?void 0:pe.update(ZA),onReselect:i,onAddAnother:a});h?(K.value=h.note,jA.checked=h.allowSubmit,_A.style.display=k.captureType==="automate"?"":"none",qe.renderPickList(),Ft(nA,"success","Reconnected — your draft was kept."),lA.renderScreenshotUi()):E?(K.value=E.note,jA.checked=E.allowSubmit,_A.style.display=k.captureType==="automate"?"":"none",qe.renderPickList(),Ft(nA,"success","Restored your previous selections."),lA.renderScreenshotUi()):k.currentPickedEl&&lA.handleNewPick(k.currentPickedEl),St();const be=()=>{Bs(),c==null||c()},IA=()=>({captureType:k.captureType,note:K.value,completedPicks:k.completedPicks,currentCtx:k.currentCtx,currentPickedEl:k.currentPickedEl,allowSubmit:k.allowSubmit,currentScreenshotBlob:k.currentScreenshotBlob,screenshotIncluded:k.screenshotIncluded,screenshotError:k.screenshotError});X.addEventListener("click",be),N.addEventListener("click",be);const OA=q.querySelector("[data-ap-connect-required]");OA&&o&&OA.addEventListener("click",()=>{const ZA=IA();be(),o(ZA)}),hA.forEach(ZA=>{ZA.addEventListener("click",()=>{var bt;k.captureType=ZA.dataset.apType,hA.forEach(et=>et.classList.toggle("ap-sdk-active",et===ZA)),_A.style.display=k.captureType==="automate"?"":"none",R=Ou(x,t,(bt=n==null?void 0:n.id)!=null?bt:null,wf[k.captureType],()=>U()),St(),qe.persistDraft()})}),jA.addEventListener("change",()=>{k.allowSubmit=jA.checked,qe.persistDraft()}),K.addEventListener("input",qe.persistDraft),K.addEventListener("input",St);const Sn=q.querySelector("[data-ap-reconfigure]");o?Sn.addEventListener("click",()=>{const ZA=IA();be(),o(ZA)}):Sn.style.display="none";const In=lx({state:k,apiOpts:t,project:n,projectCode:r,needsCredentials:f,statusEl:nA,submitBtn:W,panelEl:q,screenshotEl:xn,noteEl:K,advancedOptionsRef:H,instructionComposerRef:{isValid:()=>R.isValid()},onClose:c,onCredentialsSaved:s,closeAndCleanup:be,clearTrackCleanup:()=>{xt==null||xt(),xt=null},hideHighlight:()=>pe==null?void 0:pe.hide()});W.addEventListener("click",In),setTimeout(()=>K.focus(),50)}let cA=null,ws=null,ms=null;function Cf(){return cA!==null}function En(){cA&&it(cA),cA==null||cA.remove(),cA=null,ws==null||ws(),ws=null,ms==null||ms(),ms=null}function ux(A){return A==="task"?"Task":A==="planning"?"Planning":"Automate"}function dx(A){if(cA){En();return}cA=document.createElement("div"),cA.className="ap-sdk-panel",cA.setAttribute("data-ap-sdk","1"),cA.setAttribute("role","dialog"),cA.setAttribute("aria-modal","true"),cA.setAttribute("aria-label","My captures"),cA.addEventListener("wheel",e=>{e.stopPropagation()},{passive:!0}),cA.addEventListener("touchmove",e=>{e.stopPropagation()},{passive:!0}),cA.innerHTML=`
2020
2019
  <div class="ap-sdk-panel__header">
2021
2020
  <span class="ap-sdk-panel__title">
2022
2021
  <span class="ap-sdk-panel__logo">AP</span>
@@ -2029,27 +2028,27 @@ ${qh(E.interactionSteps)}`),v+=pf(t[0]),f=(yield xu(A,h,v,e,u)).id,g=r.slice(0,1
2029
2028
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-clear-history>Clear history</button>
2030
2029
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-close-list>Close</button>
2031
2030
  </div>
2032
- `,document.body.appendChild(cA),rt(cA),Bs=oa(cA,sa),ws=Tr(cA,Ir),cA.querySelector("[data-ap-close]").addEventListener("click",()=>{Un()}),cA.querySelector("[data-ap-close-list]").addEventListener("click",()=>{Un()}),cA.querySelector("[data-ap-clear-history]").addEventListener("click",()=>{R_(),yn(0),gf(A)}),gf(A)}function gf(A){if(!cA)return;const e=cA.querySelector("[data-ap-list-body]"),t=sr();if(t.length===0){e.innerHTML='<p class="ap-sdk-list-empty">No captures yet. Use the capture button to get started.</p>';return}if(e.innerHTML=t.map(n=>`
2031
+ `,document.body.appendChild(cA),ot(cA),ws=ca(cA,aa),ms=Hr(cA,Tr),cA.querySelector("[data-ap-close]").addEventListener("click",()=>{En()}),cA.querySelector("[data-ap-close-list]").addEventListener("click",()=>{En()}),cA.querySelector("[data-ap-clear-history]").addEventListener("click",()=>{M_(),Un(0),bf(A)}),bf(A)}function bf(A){if(!cA)return;const e=cA.querySelector("[data-ap-list-body]"),t=ir();if(t.length===0){e.innerHTML='<p class="ap-sdk-list-empty">No captures yet. Use the capture button to get started.</p>';return}if(e.innerHTML=t.map(n=>`
2033
2032
  <div class="ap-sdk-list-item">
2034
2033
  <div class="ap-sdk-list-item__row">
2035
- <span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${n.type}">${ax(n.type)}</span>
2036
- <span class="ap-sdk-list-item__title" title="${pi(n.title)}">${dx(n.title)}</span>
2034
+ <span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${n.type}">${ux(n.type)}</span>
2035
+ <span class="ap-sdk-list-item__title" title="${hi(n.title)}">${fx(n.title)}</span>
2037
2036
  </div>
2038
2037
  <div class="ap-sdk-list-item__row">
2039
- <span class="ap-sdk-status-badge" data-ap-status="${pi(n.id)}">${A?"…":"—"}</span>
2040
- ${n.type==="automate"&&A?`<button class="ap-sdk-list-item__link" data-ap-resume="${pi(n.id)}">Resume →</button>`:`<a class="ap-sdk-list-item__link" href="${pi(ux(n))}" target="_blank" rel="noopener noreferrer">View →</a>`}
2038
+ <span class="ap-sdk-status-badge" data-ap-status="${hi(n.id)}">${A?"…":"—"}</span>
2039
+ ${n.type==="automate"&&A?`<button class="ap-sdk-list-item__link" data-ap-resume="${hi(n.id)}">Resume →</button>`:`<a class="ap-sdk-list-item__link" href="${hi(hx(n))}" target="_blank" rel="noopener noreferrer">View →</a>`}
2041
2040
  </div>
2042
2041
  </div>
2043
- `).join(""),A){const n=A;Promise.all(t.map(r=>lx(r,n))).then(r=>{yn(uf(r))}),e.querySelectorAll("[data-ap-resume]").forEach(r=>{r.addEventListener("click",()=>{const s=r.dataset.apResume,o=t.find(a=>a.id===s);o&&(Un(),Rc(o.id,n,o.backendUrl,o.title,()=>{}))})})}}function lx(A,e){return I(this,null,function*(){const t=yield lf(A,e),n=cA==null?void 0:cA.querySelector(`[data-ap-status="${CSS.escape(A.id)}"]`);return n&&(n.textContent=t.status.replace(/_/g," "),n.className=`ap-sdk-status-badge ap-sdk-status-badge--${t.status.replace(/_/g,"-")}`),t})}function ux(A){const e=A.backendUrl.replace(/\/+$/,"");return A.type==="planning"?`${e}/planning/${A.id}`:`${e}/tasks/${A.id}`}function pi(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function dx(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}let He=null,hi=!1;function px(){He==null||He.disconnect(),Array.from(document.body.querySelectorAll(':scope > [data-ap-sdk="1"]')).forEach(A=>document.body.appendChild(A)),He&&He.observe(document.body,{childList:!0}),hi=!1}function Bf(){He||(He=new MutationObserver(A=>{!A.some(t=>Array.from(t.addedNodes).some(n=>n instanceof Element&&n.getAttribute("data-ap-sdk")!=="1"))||hi||(hi=!0,queueMicrotask(px))}),He.observe(document.body,{childList:!0}))}function hx(){He==null||He.disconnect(),He=null,hi=!1}let se=null;function En(){se&&st(se),se==null||se.remove(),se=null}function wf(A){const e=A.note.trim();return e?e.length>80?`${e.slice(0,77)}…`:e:A.completedPicks.length>0?`${A.completedPicks.length} saved pick${A.completedPicks.length===1?"":"s"}`:"Untitled draft"}function mf(A){if(se)return;const e=$u();e&&(se=document.createElement("div"),se.className="ap-sdk-resume-banner",se.setAttribute("data-ap-sdk","1"),se.setAttribute("role","status"),se.innerHTML=`
2042
+ `).join(""),A){const n=A;Promise.all(t.map(r=>px(r,n))).then(r=>{Un(ff(r))}),e.querySelectorAll("[data-ap-resume]").forEach(r=>{r.addEventListener("click",()=>{const s=r.dataset.apResume,o=t.find(a=>a.id===s);o&&(En(),Mc(o.id,n,o.backendUrl,o.title,()=>{}))})})}}function px(A,e){return I(this,null,function*(){const t=yield hf(A,e),n=cA==null?void 0:cA.querySelector(`[data-ap-status="${CSS.escape(A.id)}"]`);return n&&(n.textContent=t.status.replace(/_/g," "),n.className=`ap-sdk-status-badge ap-sdk-status-badge--${t.status.replace(/_/g,"-")}`),t})}function hx(A){const e=A.backendUrl.replace(/\/+$/,"");return A.type==="planning"?`${e}/planning/${A.id}`:`${e}/tasks/${A.id}`}function hi(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function fx(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}let Le=null,fi=!1;function gx(){Le==null||Le.disconnect(),Array.from(document.body.querySelectorAll(':scope > [data-ap-sdk="1"]')).forEach(A=>document.body.appendChild(A)),Le&&Le.observe(document.body,{childList:!0}),fi=!1}function Qf(){Le||(Le=new MutationObserver(A=>{!A.some(t=>Array.from(t.addedNodes).some(n=>n instanceof Element&&n.getAttribute("data-ap-sdk")!=="1"))||fi||(fi=!0,queueMicrotask(gx))}),Le.observe(document.body,{childList:!0}))}function Bx(){Le==null||Le.disconnect(),Le=null,fi=!1}let oe=null;function kn(){oe&&it(oe),oe==null||oe.remove(),oe=null}function yf(A){const e=A.note.trim();return e?e.length>80?`${e.slice(0,77)}…`:e:A.completedPicks.length>0?`${A.completedPicks.length} saved pick${A.completedPicks.length===1?"":"s"}`:"Untitled draft"}function Uf(A){if(oe)return;const e=Zu();e&&(oe=document.createElement("div"),oe.className="ap-sdk-resume-banner",oe.setAttribute("data-ap-sdk","1"),oe.setAttribute("role","status"),oe.innerHTML=`
2044
2043
  <div>
2045
2044
  <span class="ap-sdk-resume-banner__title">Resume your draft?</span>
2046
- <span class="ap-sdk-resume-banner__summary" title="${fx(wf(e))}">${Cf(wf(e))}</span>
2045
+ <span class="ap-sdk-resume-banner__summary" title="${wx(yf(e))}">${Ef(yf(e))}</span>
2047
2046
  </div>
2048
2047
  <div class="ap-sdk-resume-banner__actions">
2049
2048
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-resume-draft type="button">Resume</button>
2050
2049
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--secondary" data-ap-discard-draft type="button">Discard</button>
2051
2050
  </div>
2052
- `,document.body.appendChild(se),rt(se),se.querySelector("[data-ap-resume-draft]").addEventListener("click",()=>{En(),A(e)}),se.querySelector("[data-ap-discard-draft]").addEventListener("click",()=>{ia(),En()}))}function Cf(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function fx(A){return Cf(A)}const gx={click:"🖱",inputText:"⌨",scroll:"↕",keypress:"⌤"};let RA=null,jt=[],ms=null;function fi(){RA&&st(RA),RA==null||RA.remove(),RA=null,jt=[],ms==null||ms(),ms=null}function Bx(A,e,t){RA&&fi(),jt=[...A],RA=document.createElement("div"),RA.className="ap-sdk-panel ap-sdk-record-review",RA.setAttribute("data-ap-sdk","1"),RA.setAttribute("role","dialog"),RA.setAttribute("aria-modal","true"),RA.setAttribute("aria-label","Review recorded steps"),RA.innerHTML=`
2051
+ `,document.body.appendChild(oe),ot(oe),oe.querySelector("[data-ap-resume-draft]").addEventListener("click",()=>{kn(),A(e)}),oe.querySelector("[data-ap-discard-draft]").addEventListener("click",()=>{la(),kn()}))}function Ef(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function wx(A){return Ef(A)}const mx={click:"🖱",inputText:"⌨",scroll:"↕",keypress:"⌤"};let DA=null,An=[],Cs=null;function gi(){DA&&it(DA),DA==null||DA.remove(),DA=null,An=[],Cs==null||Cs(),Cs=null}function Cx(A,e,t){DA&&gi(),An=[...A],DA=document.createElement("div"),DA.className="ap-sdk-panel ap-sdk-record-review",DA.setAttribute("data-ap-sdk","1"),DA.setAttribute("role","dialog"),DA.setAttribute("aria-modal","true"),DA.setAttribute("aria-label","Review recorded steps"),DA.innerHTML=`
2053
2052
  <div class="ap-sdk-panel__header">
2054
2053
  <span class="ap-sdk-panel__title">
2055
2054
  <span class="ap-sdk-panel__logo">AP</span>
@@ -2064,11 +2063,11 @@ ${qh(E.interactionSteps)}`),v+=pf(t[0]),f=(yield xu(A,h,v,e,u)).id,g=r.slice(0,1
2064
2063
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-review-continue>Continue</button>
2065
2064
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--ghost" data-ap-review-cancel>Cancel</button>
2066
2065
  </div>
2067
- `,document.body.appendChild(RA),rt(RA),ms=Tr(RA,Ir);const n=RA.querySelector("[data-ap-review-list]"),r=RA.querySelector("[data-ap-review-continue]"),s=()=>{if(jt.length===0){n.innerHTML='<p class="ap-sdk-list-empty">No steps recorded.</p>',r.disabled=!0;return}r.disabled=!1,n.innerHTML=jt.map((a,i)=>{var c;return`
2066
+ `,document.body.appendChild(DA),ot(DA),Cs=Hr(DA,Tr);const n=DA.querySelector("[data-ap-review-list]"),r=DA.querySelector("[data-ap-review-continue]"),s=()=>{if(An.length===0){n.innerHTML='<p class="ap-sdk-list-empty">No steps recorded.</p>',r.disabled=!0;return}r.disabled=!1,n.innerHTML=An.map((a,i)=>{var c;return`
2068
2067
  <div class="ap-sdk-record-step" data-step-index="${i}">
2069
- <span class="ap-sdk-record-step__icon">${gx[a.action]}</span>
2070
- ${a.action==="inputText"&&!a.redacted?`<input class="ap-sdk-record-step__input" type="text" value="${wx((c=a.value)!=null?c:"")}" data-ap-step-value />`:`<span class="ap-sdk-record-step__description">${bf(a.description)}</span>`}
2068
+ <span class="ap-sdk-record-step__icon">${mx[a.action]}</span>
2069
+ ${a.action==="inputText"&&!a.redacted?`<input class="ap-sdk-record-step__input" type="text" value="${bx((c=a.value)!=null?c:"")}" data-ap-step-value />`:`<span class="ap-sdk-record-step__description">${kf(a.description)}</span>`}
2071
2070
  <button class="ap-sdk-record-step__remove" data-ap-step-remove="${i}" aria-label="Remove step ${i+1}">✕</button>
2072
2071
  </div>
2073
- `}).join(""),n.querySelectorAll("[data-ap-step-remove]").forEach(a=>{a.addEventListener("click",()=>{const i=parseInt(a.dataset.apStepRemove,10);jt.splice(i,1),s()})}),n.querySelectorAll("[data-ap-step-value]").forEach(a=>{const i=a.closest("[data-step-index]"),c=parseInt(i.dataset.stepIndex,10);a.addEventListener("input",()=>{var h;const u=jt[c];u.value=a.value,u.description=jh((h=u.elementText)!=null?h:"",a.value,!1)})})};s();const o=()=>{fi()};RA.querySelector("[data-ap-review-close]").addEventListener("click",o),RA.querySelector("[data-ap-review-cancel]").addEventListener("click",o),r.addEventListener("click",()=>{if(jt.length===0)return;const a=jt,i=$(k({},dl()),{pageUrl:window.location.href,pageTitle:document.title,interactionSteps:a});fi(),e(i)})}function bf(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function wx(A){return bf(A)}let X=null,gi=null,Bi=null,wi=null;function Nc(A,e,t){gi=A,Bi=e,wi=t,af(A,e,t)}const Qf="#agent-platform-web-sdk",yf="ap-sdk-fab-unlocked";let kn=null;function Uf(){try{if(localStorage.getItem(yf)==="1")return!0}catch(A){}return window.location.hash===Qf}function Ef(){try{localStorage.setItem(yf,"1")}catch(A){}}function kf(A){return I(this,null,function*(){var t,n,r,s,o;if(Er(),A.requestTimeoutMs!=null&&lb(A.requestTimeoutMs),gg((t=A.exclusionSelector)!=null?t:null),X&&X.projectCode===A.projectCode&&X.backendUrl===((n=A.backendUrl)!=null?n:null)&&X.token===((r=A.token)!=null?r:null))return;X={projectCode:A.projectCode,backendUrl:(s=A.backendUrl)!=null?s:null,token:(o=A.token)!=null?o:null,project:null,resolvingProject:!1,permissions:null},Nc(()=>vf(),()=>Cx(),()=>Gc()),yn(sr().length);let e=!1;if(X.backendUrl&&X.token){const a=X.backendUrl,i=X.token;yield Tf(),df({backendUrl:a,token:i}).catch(()=>{}),If({backendUrl:a,token:i}).catch(()=>{});const c=VF();c&&(Rc(c.taskId,{backendUrl:a,token:i},c.backendUrl,c.title,()=>{}),e=!0)}e||mf(Ff),Bf()})}function $c(A,e){return I(this,null,function*(){if(!X)throw new Error("AgentPlatformSDK: call init() first.");X.backendUrl=A,X.token=e,X.project=null,X.permissions=null,yield Tf(),If({backendUrl:A,token:e}).catch(()=>{})})}function zc(A,e,t){if(!X)throw new Error("AgentPlatformSDK: call init() first.");hf(A,e,{backendUrl:X.backendUrl,token:X.token},X.project,X.projectCode,n=>I(null,null,function*(){yield $c(n.backendUrl,n.token)}),n=>{dc(r=>{Go(r),mi(r).then(()=>zc(n.currentCtx,n.currentPickedEl,n)).catch(console.error)})},n=>{$i((r,s)=>{fs()&&n(r,s)},()=>{_f()})},(n,r)=>{$i((s,o)=>{fs()&&n(s,o)},()=>{fs()&&r()})},()=>{Pn()&&zi()},X.permissions,t)}function Vc(A,e){if(!X)throw new Error("AgentPlatformSDK: call init() first.");hf(A,null,{backendUrl:X.backendUrl,token:X.token},X.project,X.projectCode,t=>I(null,null,function*(){yield $c(t.backendUrl,t.token)}),t=>{dc(n=>{Go(n),mi(n).then(()=>Vc(t.currentCtx,t)).catch(console.error)})},void 0,void 0,()=>{},X.permissions,e)}function Ff(A){var e;if(!X){pr();return}(e=A.currentCtx.interactionSteps)!=null&&e.length?Vc(A.currentCtx,void 0):zc(A.currentCtx,null,void 0)}function vf(){if(!X)throw new Error("AgentPlatformSDK: call init() first.");Pn()||(En(),Er(),$i((A,e)=>I(null,null,function*(){ff()&&Un(),zc(A,e)}),()=>{}))}function mx(){zi()}function Cx(){if(!X)throw new Error("AgentPlatformSDK: call init() first.");si()||(En(),Er(),G_(A=>{Bx(A,e=>Vc(e))}))}function _f(){fs()&&gs()}function bx(){return Pn()}function xf(){hx(),kn&&(window.removeEventListener("hashchange",kn),kn=null),zi(),Z_(),fi(),gs(),Un(),En(),cf(),gi=null,Bi=null,wi=null,X=null}function Sf(){if(typeof window=="undefined"||typeof document=="undefined")return;Er();const A=NF(),e=()=>{A?mi(A).catch(console.error):(Nc(()=>pr(),()=>pr(),()=>Gc()),yn(sr().length),mf(Ff),Bf())};if(Uf()){Ef(),e();return}kn=()=>{window.location.hash===Qf&&(Ef(),window.removeEventListener("hashchange",kn),kn=null,e())},window.addEventListener("hashchange",kn)}function Qx(){gi&&Bi&&wi&&af(gi,Bi,wi)}function yx(){cf()}function pr(){En(),dc(A=>{Go(A),mi(A).catch(console.error)})}function Ux(){ih(),xf(),Er(),Uf()&&(Nc(()=>pr(),()=>pr(),()=>Gc()),yn(sr().length))}function mi(A){return I(this,null,function*(){yield kf({projectCode:A.projectCode,backendUrl:A.backendUrl,token:A.token})})}function Gc(){if(ff()){Un();return}En(),fs()&&gs();const A=X!=null&&X.backendUrl&&(X!=null&&X.token)?{backendUrl:X.backendUrl,token:X.token}:null;cx(A)}function If(A){return I(this,null,function*(){const e=yield mb(A);X&&(X.permissions=e.permissions)})}function Tf(){return I(this,null,function*(){if(!(!X||!X.backendUrl||!X.token||X.project||X.resolvingProject)){X.resolvingProject=!0;try{X.project=yield db({backendUrl:X.backendUrl,token:X.token},X.projectCode)}catch(A){}finally{X&&(X.resolvingProject=!1)}}})}return Sf(),pA.activateElementPicker=vf,pA.autoInit=Sf,pA.clearConfig=Ux,pA.closePanelIfOpen=_f,pA.configure=pr,pA.deactivateElementPicker=mx,pA.destroy=xf,pA.hideFab=yx,pA.init=kf,pA.isPickerRunning=bx,pA.showFab=Qx,pA.updateCredentials=$c,Object.defineProperty(pA,Symbol.toStringTag,{value:"Module"}),pA})({});
2072
+ `}).join(""),n.querySelectorAll("[data-ap-step-remove]").forEach(a=>{a.addEventListener("click",()=>{const i=parseInt(a.dataset.apStepRemove,10);An.splice(i,1),s()})}),n.querySelectorAll("[data-ap-step-value]").forEach(a=>{const i=a.closest("[data-step-index]"),c=parseInt(i.dataset.stepIndex,10);a.addEventListener("input",()=>{var h;const u=An[c];u.value=a.value,u.description=ef((h=u.elementText)!=null?h:"",a.value,!1)})})};s();const o=()=>{gi()};DA.querySelector("[data-ap-review-close]").addEventListener("click",o),DA.querySelector("[data-ap-review-cancel]").addEventListener("click",o),r.addEventListener("click",()=>{if(An.length===0)return;const a=An,i=z(F({},fl()),{pageUrl:window.location.href,pageTitle:document.title,interactionSteps:a});gi(),e(i)})}function kf(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function bx(A){return kf(A)}let Z=null,Bi=null,wi=null,mi=null;function Vc(A,e,t){Bi=A,wi=e,mi=t,df(A,e,t)}const Ff="#agent-platform-web-sdk",vf="ap-sdk-fab-unlocked";let Fn=null;function _f(){try{if(localStorage.getItem(vf)==="1")return!0}catch(A){}return window.location.hash===Ff}function xf(){try{localStorage.setItem(vf,"1")}catch(A){}}function Sf(A){return I(this,null,function*(){var t,n,r,s,o;if(kr(),A.requestTimeoutMs!=null&&hb(A.requestTimeoutMs),bg((t=A.exclusionSelector)!=null?t:null),Z&&Z.projectCode===A.projectCode&&Z.backendUrl===((n=A.backendUrl)!=null?n:null)&&Z.token===((r=A.token)!=null?r:null))return;Z={projectCode:A.projectCode,backendUrl:(s=A.backendUrl)!=null?s:null,token:(o=A.token)!=null?o:null,project:null,resolvingProject:!1,permissions:null},Vc(()=>Tf(),()=>yx(),()=>Wc()),Un(ir().length);let e=!1;if(Z.backendUrl&&Z.token){const a=Z.backendUrl,i=Z.token;yield Of(),gf({backendUrl:a,token:i}).catch(()=>{}),Df({backendUrl:a,token:i}).catch(()=>{});const c=XF();c&&(Mc(c.taskId,{backendUrl:a,token:i},c.backendUrl,c.title,()=>{}),e=!0)}e||Uf(If),Qf()})}function Gc(A,e){return I(this,null,function*(){if(!Z)throw new Error("AgentPlatformSDK: call init() first.");Z.backendUrl=A,Z.token=e,Z.project=null,Z.permissions=null,yield Of(),Df({backendUrl:A,token:e}).catch(()=>{})})}function Zc(A,e,t){if(!Z)throw new Error("AgentPlatformSDK: call init() first.");mf(A,e,{backendUrl:Z.backendUrl,token:Z.token},Z.project,Z.projectCode,n=>I(null,null,function*(){yield Gc(n.backendUrl,n.token)}),n=>{fc(r=>{Zo(r),Ci(r).then(()=>Zc(n.currentCtx,n.currentPickedEl,n)).catch(console.error)})},n=>{zi((r,s)=>{gs()&&n(r,s)},()=>{Hf()})},(n,r)=>{zi((s,o)=>{gs()&&n(s,o)},()=>{gs()&&r()})},()=>{Nn()&&Vi()},Z.permissions,t)}function Xc(A,e){if(!Z)throw new Error("AgentPlatformSDK: call init() first.");mf(A,null,{backendUrl:Z.backendUrl,token:Z.token},Z.project,Z.projectCode,t=>I(null,null,function*(){yield Gc(t.backendUrl,t.token)}),t=>{fc(n=>{Zo(n),Ci(n).then(()=>Xc(t.currentCtx,t)).catch(console.error)})},void 0,void 0,()=>{},Z.permissions,e)}function If(A){var e;if(!Z){fr();return}(e=A.currentCtx.interactionSteps)!=null&&e.length?Xc(A.currentCtx,void 0):Zc(A.currentCtx,null,void 0)}function Tf(){if(!Z)throw new Error("AgentPlatformSDK: call init() first.");Nn()||(kn(),kr(),zi((A,e)=>I(null,null,function*(){Cf()&&En(),Zc(A,e)}),()=>{}))}function Qx(){Vi()}function yx(){if(!Z)throw new Error("AgentPlatformSDK: call init() first.");oi()||(kn(),kr(),W_(A=>{Cx(A,e=>Xc(e))}))}function Hf(){gs()&&Bs()}function Ux(){return Nn()}function Lf(){Bx(),Fn&&(window.removeEventListener("hashchange",Fn),Fn=null),Vi(),J_(),gi(),Bs(),En(),kn(),pf(),Bi=null,wi=null,mi=null,Z=null}function Rf(){if(typeof window=="undefined"||typeof document=="undefined")return;kr();const A=VF(),e=()=>{A?Ci(A).catch(console.error):(Vc(()=>fr(),()=>fr(),()=>Wc()),Un(ir().length),Uf(If),Qf())};if(_f()){xf(),e();return}Fn=()=>{window.location.hash===Ff&&(xf(),window.removeEventListener("hashchange",Fn),Fn=null,e())},window.addEventListener("hashchange",Fn)}function Ex(){Bi&&wi&&mi&&df(Bi,wi,mi)}function kx(){pf()}function fr(){kn(),fc(A=>{Zo(A),Ci(A).catch(console.error)})}function Fx(){uh(),Lf(),kr(),_f()&&(Vc(()=>fr(),()=>fr(),()=>Wc()),Un(ir().length))}function Ci(A){return I(this,null,function*(){yield Sf({projectCode:A.projectCode,backendUrl:A.backendUrl,token:A.token})})}function Wc(){if(Cf()){En();return}kn(),gs()&&Bs();const A=Z!=null&&Z.backendUrl&&(Z!=null&&Z.token)?{backendUrl:Z.backendUrl,token:Z.token}:null;dx(A)}function Df(A){return I(this,null,function*(){const e=yield Qb(A);Z&&(Z.permissions=e.permissions)})}function Of(){return I(this,null,function*(){if(!(!Z||!Z.backendUrl||!Z.token||Z.project||Z.resolvingProject)){Z.resolvingProject=!0;try{Z.project=yield gb({backendUrl:Z.backendUrl,token:Z.token},Z.projectCode)}catch(A){}finally{Z&&(Z.resolvingProject=!1)}}})}return Rf(),dA.activateElementPicker=Tf,dA.autoInit=Rf,dA.clearConfig=Fx,dA.closePanelIfOpen=Hf,dA.configure=fr,dA.deactivateElementPicker=Qx,dA.destroy=Lf,dA.hideFab=kx,dA.init=Sf,dA.isPickerRunning=Ux,dA.showFab=Ex,dA.updateCredentials=Gc,Object.defineProperty(dA,Symbol.toStringTag,{value:"Module"}),dA})({});
2074
2073
  //# sourceMappingURL=web-sdk.min.js.map