Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

newtab: settings breadcrumb follows history and updates route; validate quicklinks on import

Claudec72aba1791c8
diff --git a/newtab/src/components/Elements/MainModal/Main.jsx b/newtab/src/components/Elements/MainModal/Main.jsx
index 0a301dd99..0384d42ca 100644
--- a/newtab/src/components/Elements/MainModal/Main.jsx
+++ b/newtab/src/components/Elements/MainModal/Main.jsx
@@ -59,9 +59,11 @@ function MainModal({ modalClose, deepLinkData }) {
return () => window.removeEventListener('popstate', handlePopState);
}, [modalClose]);
- const handleSectionChange = (section, sectionName) => {
+ const handleSectionChange = (section, sectionName, { fromHistory = false } = {}) => {
setCurrentSection(section);
setCurrentSectionName(sectionName);
+ // Back / Forward already moved the route (and set the sub-section from it).
+ if (fromHistory) return;
// Clear sub-section when changing sections
setCurrentSubSection(null);
if (sectionName) {
diff --git a/newtab/src/components/Elements/MainModal/backend/Tabs.jsx b/newtab/src/components/Elements/MainModal/backend/Tabs.jsx
index d952b10cc..b42e0fc8e 100644
--- a/newtab/src/components/Elements/MainModal/backend/Tabs.jsx
+++ b/newtab/src/components/Elements/MainModal/backend/Tabs.jsx
@@ -91,6 +91,8 @@ const Tabs = ({
if (contentRef.current) {
contentRef.current.scrollTop = 0;
}
+ // Keep the breadcrumb in step; the route is already right, so don't rewrite it.
+ onSectionChange?.(label, section.name, { fromHistory: true });
}
}
}, [navigationTrigger, sections, t]);
diff --git a/newtab/src/components/Elements/MainModal/components/ModalTopBar.jsx b/newtab/src/components/Elements/MainModal/components/ModalTopBar.jsx
index 83077b8df..1a4f17ed3 100644
--- a/newtab/src/components/Elements/MainModal/components/ModalTopBar.jsx
+++ b/newtab/src/components/Elements/MainModal/components/ModalTopBar.jsx
@@ -52,7 +52,7 @@ function ModalTopBar({
// Show: Tab > Section or Tab > Section > Sub-Section
breadcrumbPath.push({
label: currentSection,
- onClick: currentSubSection ? () => onSubSectionChange(null) : null, // Clickable if sub-section is active
+ onClick: currentSubSection ? () => onSubSectionChange(null, currentSectionName) : null, // Clickable if sub-section is active
});
// Add sub-section if present
diff --git a/newtab/src/utils/settings/import.js b/newtab/src/utils/settings/import.js
index bb964c723..2c0fe1e9a 100644
--- a/newtab/src/utils/settings/import.js
+++ b/newtab/src/utils/settings/import.js
@@ -87,6 +87,7 @@ const JSON_ARRAY_ENTRIES = {
applinks: (e) => isObject(e) && isString(e.name) && isString(e.url),
backgroundExclude: isString,
customEvents: (e) => isObject(e) && isString(e.name) && Number.isFinite(e.month) && Number.isFinite(e.date),
+ quicklinks: (e) => isObject(e) && isString(e.name) && isString(e.url),
messages: isString,
order: isString,
todo: (e) => isObject(e) && isString(e.value),
diff --git a/src/chrome/newtab/assets/Settings-CuZKKPjT.js b/src/chrome/newtab/assets/Settings-CuZKKPjT.js
new file mode 100644
index 000000000..32da45bc5
--- /dev/null
+++ b/src/chrome/newtab/assets/Settings-CuZKKPjT.js
@@ -0,0 +1,53 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-WbVrDO2P.js","./index-CEGyrx1j.js","./index-BmeAAROj.css"])))=>i.map(i=>d[i]);
+import{g as Bs,a as ve,s as Pi,v as d,y as RA,r as Xi,E as hA,c as Jn,b as rr,d as b,j as i,B as vA,M as Ji,e as Wi,f as Yi,h as ds,S as at,R as m,i as fs,u as Qt,k as Zi,D as zi,l as hs,m as he,n as Wn,T as Yn,q as ws,o as qi,p as ps,t as Bt,w as un,x as dt,z as Cs,C as mA,A as KA,F as $i,G as Ao,H as eo,I as to,J as kr,K as Qs,L as nr,N as ar,O as Bn,P as ms,Q as vs,U as Us,V as ro,W as Fs,X as sr,Y as bs,Z as ys,_ as Es,$ as xs,a0 as Is,a1 as Hs,a2 as Ss,a3 as no,a4 as Ls,a5 as Zn,a6 as ao,a7 as ks,a8 as bt,a9 as so,aa as io,ab as yt,ac as zn,ad as oo,ae as qn,af as lo,ag as co,ah as go,ai as Ms,aj as uo,ak as Bo,al as fo,am as $n,an as ho,ao as wo,ap as po,aq as Co,ar as Qo,as as mo,at as vo,au as Uo,av as Fo,aw as bo,ax as yo,ay as Eo,az as On}from"./index-CEGyrx1j.js";const Ks="wbBackgroundsBackup";async function xo(){const e={};Object.keys(localStorage).forEach(n=>{e[n]=localStorage.getItem(n)});try{const n=await Bs(),a=n>0?await ve():[];a.length===n&&(e[Ks]=a.map(({id:s,...o})=>o))}catch(n){console.error("Could not include uploaded backgrounds in the backup:",n)}const A=new Date,t=`webbrain_newtab_settings_backup_${`${A.getFullYear()}-${(A.getMonth()+1).toString().padStart(2,"0")}-${A.getDate().toString().padStart(2,"0")}_${A.getHours().toString().padStart(2,"0")}-${A.getMinutes().toString().padStart(2,"0")}-${A.getSeconds().toString().padStart(2,"0")}`}.json`;Pi(e,t),d.stats.postEvent("tab","Settings exported")}async function Io(e,A=!1){let r,t;try{const s=JSON.parse(e);if(!s||typeof s!="object"||Array.isArray(s))throw new Error("settings file is not an object");({[Ks]:r,...t}=s);const o=So(t);if(o)throw new Error(`invalid settings: ${o}`)}catch(s){return console.error("Could not read the settings file:",s),RA(d.getMessage("toasts.error")),!1}let n=null;const a=new Map;try{Array.isArray(r)&&(n=await Lo(r)),Object.keys(t).forEach(s=>{a.has(s)||a.set(s,localStorage.getItem(s)),localStorage.setItem(s,t[s])})}catch(s){return console.error("Settings import failed, rolling back:",s),a.forEach((o,l)=>{try{o===null?localStorage.removeItem(l):localStorage.setItem(l,o)}catch{}}),n&&await n(),RA(d.getMessage("toasts.error")),!1}return RA(d.getMessage("toasts.imported")),A||d.stats.postEvent("tab","Settings imported"),Xi?setTimeout(()=>window.location.reload(),1200):hA.emit("settingsimported"),!0}const Et=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),ne=e=>typeof e=="string",Ho={applinks:e=>Et(e)&&ne(e.name)&&ne(e.url),backgroundExclude:ne,customEvents:e=>Et(e)&&ne(e.name)&&Number.isFinite(e.month)&&Number.isFinite(e.date),quicklinks:e=>Et(e)&&ne(e.name)&&ne(e.url),messages:ne,order:ne,todo:e=>Et(e)&&ne(e.value)};function So(e){for(const[A,r]of Object.entries(e))if(r!==null&&typeof r=="object")return`${A} is not a plain value`;for(const[A,r]of Object.entries(Ho)){if(!(A in e))continue;let t;try{t=JSON.parse(e[A])}catch{return`${A} is not valid JSON`}if(!Array.isArray(t))return`${A} is not a list`;if(!t.every(r))return`${A} has an entry of the wrong shape`}if("favourite"in e&&e.favourite!=="null")try{const A=JSON.parse(e.favourite);if(A!==null&&(typeof A!="object"||Array.isArray(A)))return"favourite is not an object"}catch{return"favourite is not valid JSON"}return null}const Aa=({id:e,...A})=>A;async function Lo(e){const A=e.filter(a=>a&&typeof a.url=="string").map(Aa),r=await Bs(),t=r>0?(await ve()).map(Aa):[];if(t.length!==r)throw new Error("current gallery could not be read");const n=async()=>{try{await Jn();for(const a of t)await rr(a)}catch(a){console.error("Rollback of the background gallery failed:",a)}};try{await Jn();for(const a of A)await rr(a)}catch(a){throw await n(),a}return n}function TA(e){const[A,r]=b.useState(localStorage.getItem(e.setting)==="true");b.useEffect(()=>{r(localStorage.getItem(e.setting)==="true")},[e.setting]);const t=()=>{const s=localStorage.getItem(e.setting)==="true";if(localStorage.setItem(e.setting,!s),r(!s),d.stats.postEvent("setting",`${e.name} ${A===!0?"enabled":"disabled"}`),hA.emit("toggle",e.setting),e.element&&!document.querySelector(e.element)){ds();return}hA.emit("refresh",e.category)},n=()=>i.jsx(vA,{type:"settings",onClick:t,icon:A?i.jsx(Ji,{}):i.jsx(Wi,{}),label:A?"Hide":"Show"}),a=()=>i.jsx(vA,{type:"settings",onClick:()=>window.open(`${d.constants.BUG_REPORT}?title=${encodeURIComponent(e.title)}`,"_blank"),icon:i.jsx(Yi,{}),label:d.getMessage("modals.main.settings.sections.header.report_issue")});return i.jsxs("div",{className:"modalHeader",children:[i.jsx("span",{className:"mainTitle",children:e.secondaryTitle||e.title}),i.jsxs("div",{className:"headerActions",children:[e.visibilityToggle&&i.jsx(n,{}),e.report!==!1&&i.jsx(a,{}),e.children]})]})}function rA(e){const A=`${e.final?"settingsRow settingsNoBorder":"settingsRow"} ${e.inactive?"preferencesInactive":""}`;return i.jsx("div",{className:A,children:e.children})}function nA(e){return i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:e.title}),i.jsx("span",{className:"subtitle",children:e.subtitle})]})}function cA(e){return i.jsx("div",{className:"action",children:e.children})}const ko=[{value:10,label:"0.1x"},{value:100,label:"1x"},{value:200,label:"2x"},{value:400,label:"4x"}],Mo=[{value:500,label:"0.5s"},{value:1e3,label:"1s"},{value:1500,label:"1.5s"},{value:2e3,label:"2s"},{value:2500,label:"2.5s"},{value:3e3,label:"3s"},{value:4e3,label:"4s"},{value:5e3,label:"5s"}],Ko=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],st={zoom:ko,toast:Mo,background:Ko},mt=({children:e,...A})=>{const[r,t]=b.useState(localStorage.getItem(A.setting)==="true");return b.useEffect(()=>{const n=a=>{a===A.setting&&t(localStorage.getItem(A.setting)==="true")};return hA.on("toggle",n),()=>hA.off("toggle",n)},[A.setting]),i.jsxs("div",{className:r?"preferences":"preferencesInactive",children:[A.zoomSetting&&i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.widget_zoom"),subtitle:d.getMessage("modals.main.settings.sections.header.size")}),i.jsx(cA,{children:i.jsx(at,{name:A.zoomSetting,min:"10",max:"400",default:"100",display:"%",marks:st.zoom,category:A.zoomCategory||A.category})})]}),e]})};function Rn({title:e,subtitle:A,icon:r,onClick:t,children:n}){return i.jsxs("div",{className:"moreSettings",onClick:t,children:[i.jsxs("div",{className:"left",children:[r,i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:e}),i.jsx("span",{className:"subtitle",children:A})]})]}),i.jsx("div",{className:"action",children:m.Children.count(n)===0?i.jsx(fs,{}):n})]})}function To({label:e,currentTab:A,onClick:r,navbarTab:t}){const n=Qt(),[a,s]=b.useState(!0);b.useEffect(()=>{s(localStorage.getItem("experimental")!=="false")},[]);const o=Zi(e,{getMessage:n}),l=zi.some(p=>n(p)===e),B=`${t?"navbar-item":"tab-list-item"}${A===e?` ${t?"navbar-item-active":"tab-list-active"}`:""}`;return e===n("modals.main.settings.sections.experimental.title")&&!a?i.jsx("hr",{}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{className:B,onClick:()=>r(e),children:[o&&i.jsx(o,{})," ",i.jsx("span",{children:e})]}),l&&i.jsx("hr",{})]})}const Do=b.memo(To),Oo=({isVisible:e,onHide:A})=>e?i.jsxs("div",{className:"reminder-info",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.reminder.title")}),i.jsx("span",{className:"closeModal",onClick:A,children:i.jsx(hs,{})})]}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.reminder.message")}),i.jsxs("button",{onClick:()=>window.location.reload(),children:[i.jsx(he,{}),d.getMessage("modals.main.error_boundary.refresh")]})]}):null;class Ro extends b.PureComponent{constructor(A){super(A),this.state={error:!1,errorData:"",showReport:!0}}static getDerivedStateFromError(A){return console.error(A),{error:!0,errorData:A}}reportError(){window.open(d.constants.BUG_REPORT,"_blank","noopener,noreferrer"),this.setState({showReport:!1})}render(){return this.state.error?i.jsx("div",{className:"emptyItems",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Wn,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.error_boundary.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.message")}),i.jsxs("div",{className:"buttonsRow",children:[this.state.showReport?i.jsx(vA,{type:"settings",icon:i.jsx(Wn,{}),label:d.getMessage("modals.main.error_boundary.report_error"),onClick:()=>this.reportError()}):i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.sent")}),i.jsx(vA,{type:"settings",icon:i.jsx(he,{}),label:d.getMessage("modals.main.error_boundary.refresh"),onClick:()=>window.location.reload()})]})]})}):this.props.children}}const No=({children:e,navbar:A=!1,currentTab:r,onSectionChange:t,resetToFirst:n,deepLinkData:a,navigationTrigger:s,sections:o})=>{const l=Qt(),g=(()=>{if(a?.section&&o){const E=o.find(h=>h.name===a.section);if(E)return{label:l(E.label),name:E.name}}return{label:e[0]?.props.label,name:e[0]?.props.name}})(),[B,u]=b.useState(g.label),[p,Q]=b.useState(g.name),[C,x]=b.useState(localStorage.getItem("showReminder")==="true"),U=b.useRef(null),y=(E,h)=>{h!==p&&d.stats.postEvent("tab",`Opened ${h}`),u(E),Q(h),U.current&&(U.current.scrollTop=0),t&&t(E,h)};b.useEffect(()=>{t&&B&&t(B,p)},[]),b.useEffect(()=>{if(o&&p){const E=o.find(h=>h.name===p);if(E){const h=l(E.label);u(h)}}},[l,o,p]),b.useEffect(()=>{if(s?.type==="settings-section"&&o){const E=o.find(h=>h.name===s.data);if(E){const h=l(E.label);u(h),Q(E.name),U.current&&(U.current.scrollTop=0),t?.(h,E.name,{fromHistory:!0})}}},[s,o,l]),b.useEffect(()=>{n&&(u(e[0]?.props.label),Q(e[0]?.props.name),U.current&&(U.current.scrollTop=0),t&&t(e[0]?.props.label,e[0]?.props.name))},[n]),b.useEffect(()=>{const E=()=>x(!0);return hA.on("reminder",E),()=>hA.off("reminder",E)},[]);const L=()=>{localStorage.setItem("showReminder","false"),x(!1)},S=r===Yn.SETTINGS||r===Yn.DISCOVER;return i.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},children:[S?i.jsxs("div",{className:"modalSidebar",children:[e.map((E,h)=>i.jsx(Do,{currentTab:B,label:E.props.label,onClick:I=>y(I,E.props.name),navbarTab:A},h)),i.jsx(Oo,{isVisible:C,onHide:L})]}):null,i.jsx("div",{className:"modalTabContent",ref:U,children:e.map((E,h)=>E.props.label!==B?null:i.jsx(Ro,{children:E.props.children},`error-boundary-${h}`))})]})};async function ir(e){const A=String(e??"").trim();try{return new URL(/^[a-z][a-z0-9+.-]*:/i.test(A)?A:`https://${A}`).hostname.replace(/^www\./i,"")||A}catch{return A}}function ft(e){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(e)}function or(e){let A=String(e??"").trim();if(!A)return null;const r=/^https?:\/\//i.exec(A);A=r?r[0].toLowerCase()+A.slice(r[0].length):`https://${A}`;try{if(!/^https?:$/.test(new URL(A).protocol))return null}catch{return null}return ft(A)?A:null}const _o=({item:e,deleteLink:A,startEditLink:r,draggable:t=!1,onDragStart:n,onDragOver:a,onDrop:s,onDragEnd:o,isDragOver:l=!1,isDragging:c=!1})=>{let g,B=null;if(localStorage.getItem("quicklinksnewtab")==="true"&&(g="_blank",B="noopener noreferrer"),localStorage.getItem("quicklinksText")==="true")return i.jsx("a",{className:"quicklinkstext",onContextMenu:C=>A(e.key,C),href:e.url,target:g,rel:B,draggable:!1,children:e.name});const p=e.icon||ws(e.url,e.name),Q=`messageMap ${c?"dragging":""} ${l?"drag-over":""}`;return i.jsxs("div",{className:Q,draggable:t,onDragStart:C=>n&&n(C,e.key),onDragOver:C=>a&&a(C,e.key),onDrop:C=>s&&s(C,e.key),onDragEnd:C=>o&&o(C),children:[i.jsx("div",{className:"dragHandle","aria-hidden":!0,children:i.jsx(qi,{})}),i.jsx("div",{className:"icon",children:i.jsx("img",{src:p,alt:e.name,draggable:!1,style:{height:"30px",width:"30px"}})}),i.jsxs("div",{className:"messageText",children:[i.jsx("div",{className:"title",children:e.name}),i.jsx("div",{className:"subtitle",children:i.jsx("a",{className:"quicklinknostyle",target:"_blank",rel:"noopener noreferrer",href:e.url,children:e.url})})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsx(vA,{type:"settings",onClick:()=>r(e),icon:i.jsx(ps,{}),label:d.getMessage("modals.main.settings.sections.quicklinks.edit")}),i.jsx(vA,{type:"settings",onClick:C=>A(e.key,C),icon:i.jsx(Bt,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]})};function Go({appsEnabled:e}){const A=Qt(),[r,t]=b.useState({newLink:!1,edit:!1,items:JSON.parse(localStorage.getItem("applinks")),urlError:"",iconError:"",editData:null}),n=async(l,c,g)=>{const B=JSON.parse(localStorage.getItem("applinks"));if(c=or(c),!c)return t(u=>({...u,urlError:A("widgets.quicklinks.url_error")}));if(g.length>0&&ft(g)===!1)return t(u=>({...u,iconError:A("widgets.quicklinks.icon_error")}));B.push({name:l||await ir(c),url:c,icon:g||"",key:Math.random().toString(36).substring(7)+1}),localStorage.setItem("applinks",JSON.stringify(B)),t({newLink:!1,edit:!1,items:B,urlError:"",iconError:""}),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link add")},a=l=>{t(c=>({...c,edit:!0,editData:l}))},s=async(l,c,g,B)=>{const u=JSON.parse(localStorage.getItem("applinks")),p=u.find(Q=>Q.key===l.key);if(p){if(g=or(g),!g)return t(Q=>({...Q,urlError:A("widgets.quicklinks.url_error")}));if(B.length>0&&ft(B)===!1)return t(Q=>({...Q,iconError:A("widgets.quicklinks.icon_error")}));p.name=c||await ir(g),p.url=g,p.icon=B||"",localStorage.setItem("applinks",JSON.stringify(u)),t(Q=>({...Q,items:u,edit:!1,newLink:!1})),hA.emit("refresh","navbar")}},o=(l,c)=>{c.preventDefault();const g=JSON.parse(localStorage.getItem("applinks")).filter(B=>B.key!==l);localStorage.setItem("applinks",JSON.stringify(g)),t(B=>({...B,items:g})),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link delete")};return i.jsxs(i.Fragment,{children:[i.jsxs(rA,{final:!0,inactive:!e,children:[i.jsx(nA,{title:A("widgets.navbar.apps.title"),subtitle:A("modals.main.settings.sections.appearance.navbar.apps_subtitle")}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>t(l=>({...l,newLink:!0})),icon:i.jsx(un,{}),label:A("modals.main.settings.sections.quicklinks.add_link")})})]}),i.jsx("div",{className:"messagesContainer",children:r.items.map((l,c)=>i.jsx(_o,{item:l,startEditLink:()=>a(l),deleteLink:(g,B)=>o(g,B)},c))}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>t(l=>({...l,newLink:!1,edit:!1})),isOpen:r.edit||r.newLink,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Cs,{urlError:r.urlError,iconError:r.iconError,addLink:(l,c,g)=>n(l,c,g),editLink:(l,c,g,B)=>s(l,c,g,B),edit:r.edit,editData:r.editData,closeModal:()=>t(l=>({...l,newLink:!1,edit:!1}))})})]})}function jo(){const e=Qt(),[A,r]=b.useState(localStorage.getItem("refresh")==="true"),[t,n]=b.useState(localStorage.getItem("appsEnabled")==="true"||!1),a="modals.main.settings.sections.appearance.navbar",s=()=>i.jsxs(rA,{final:!1,children:[i.jsx(nA,{title:e("modals.main.settings.additional_settings"),subtitle:e("modals.main.settings.sections.appearance.navbar.additional")}),i.jsx(cA,{children:i.jsx(mA,{name:"navbarHover",text:e(`${a}.hover`),category:"navbar"})})]}),o=()=>{const c=({icon:B,messageKey:u,settingName:p})=>{const[Q,C]=b.useState(localStorage.getItem(p)!=="true"),x=()=>{localStorage.setItem(p,Q),p==="refresh"?r(!A):p==="appsEnabled"&&n(!t),C(!Q),d.stats.postEvent("setting",`${p} ${Q?"disabled":"enabled"}`),hA.emit("refresh","navbar")};return i.jsxs("button",{onClick:x,className:`navbarButtonOption ${Q===!0?"disabled":""}`,children:[B,i.jsx("span",{className:"subtitle",children:e(u)})]})},g=[{icon:i.jsx($i,{}),settingName:"view",messageKey:"modals.main.settings.sections.background.buttons.view"},{icon:i.jsx(Ao,{}),settingName:"notesEnabled",messageKey:`${a}.notes`},{icon:i.jsx(eo,{}),settingName:"todoEnabled",messageKey:"widgets.navbar.todo.title"},{icon:i.jsx(he,{}),settingName:"refresh",messageKey:`${a}.refresh`},{icon:i.jsx(to,{}),settingName:"appsEnabled",messageKey:"widgets.navbar.apps.title"}];return i.jsxs(rA,{children:[i.jsx(nA,{title:e("modals.main.settings.sections.appearance.navbar.widgets")}),i.jsx(cA,{children:i.jsx("div",{className:"navbarButtonOptions",children:g.map((B,u)=>i.jsx(c,{...B},u))})})]})},l=()=>i.jsxs(rA,{final:!1,inactive:!A,children:[i.jsx(nA,{title:e(`${a}.refresh`),subtitle:e("modals.main.settings.sections.appearance.navbar.refresh_subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"refreshOption",category:"navbar",items:[{value:"page",text:e("modals.main.settings.sections.appearance.navbar.refresh_options.page")},{value:"background",text:e("modals.main.settings.sections.background.title")}]})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:e(`${a}.title`),setting:"navbar",category:"widgets",zoomSetting:"zoomNavbar",zoomCategory:"navbar"}),i.jsx(s,{}),i.jsx(o,{}),i.jsx(l,{}),i.jsx(Go,{appsEnabled:t})]})}const Vo=b.memo(jo),ea=[{id:"widgets.greeting.christmas",name:"Merry Christmas",month:12,date:25},{id:"widgets.greeting.newyear",name:"Happy New Year",month:1,date:1},{id:"widgets.greeting.halloween",name:"Happy Halloween",month:10,date:31}],Po=e=>{const[A,r,t]=String(e).split("-").map(Number);return A&&r&&t?new Date(A,r-1,t):new Date},Xo=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,Jo=({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(JSON.parse(localStorage.getItem("customEvents"))||[]),[a,s]=b.useState(()=>{const h=localStorage.getItem("birthday");return h?new Date(h):new Date}),[o,l]=b.useState(localStorage.getItem("birthdayenabled")==="true"?"preferences":"preferencesInactive"),[c,g]=b.useState(localStorage.getItem("events")==="true"?"preferences":"preferencesInactive"),B=h=>{const I=h.target.value?Po(h.target.value):new Date;localStorage.setItem("birthday",I),s(I)},u="modals.main.settings.sections.greeting",p=()=>{const h=JSON.parse(localStorage.getItem("customEvents"))||[],I={id:"widgets.greeting.halloween",name:"",month:1,date:1},M=[...h,I];h.push(I),localStorage.setItem("customEvents",JSON.stringify(h)),n(M)},Q=h=>{const I=t.filter((M,k)=>k!==h);localStorage.setItem("customEvents",JSON.stringify(I)),n(I)},C=()=>{localStorage.setItem("customEvents",JSON.stringify(ea)),n(ea),RA(d.getMessage("toasts.reset"))},x=(h,I)=>{n(k=>{const R=[...k];return R[h]=I,R});const M=JSON.parse(localStorage.getItem("customEvents")||"[]");M[h]=I,localStorage.setItem("customEvents",JSON.stringify(M))},U=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${u}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"defaultGreetingMessage",text:d.getMessage(`${u}.default`),category:"greeting"}),i.jsx(ar,{title:d.getMessage(`${u}.name`),name:"greetingName",category:"greeting"})]})]}),y=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.birthday`),subtitle:d.getMessage("modals.main.settings.sections.greeting.birthday_subtitle")}),i.jsxs(cA,{children:[i.jsx(Qs,{name:"birthdayenabled",text:d.getMessage("modals.main.settings.enabled"),category:"greeting",onChange:h=>{l(h?"preferences":"preferencesInactive")}}),i.jsxs("div",{className:o,children:[i.jsx(mA,{name:"birthdayage",text:d.getMessage(`${u}.birthday_age`),category:"greeting"}),i.jsx("p",{style:{marginRight:"auto"},children:d.getMessage(`${u}.birthday_date`)}),i.jsx("input",{type:"date",onChange:B,value:Xo(a),required:!0})]})]})]}),L=()=>i.jsxs("div",{className:c,children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${u}.custom`)}),i.jsx(cA,{children:i.jsxs("div",{className:"headerActions",children:[i.jsx(vA,{type:"settings",onClick:C,icon:i.jsx(he,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(nr,{}),label:d.getMessage("widgets.quicklinks.add")})]})})]}),i.jsx("div",{className:"messagesContainer",children:t.map((h,I)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(kr,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.event_name`)}),i.jsx("input",{type:"text",className:"text-field-input",value:h.name,placeholder:d.getMessage(`${u}.event_name`),onChange:M=>{const k={...h,name:M.target.value};x(I,k)}})]})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsxs("div",{className:"eventDateSelection",children:[i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.day`),":"]}),i.jsx("input",{id:"day",type:"number",min:"1",max:"31",value:h.date,onChange:M=>{const k=parseInt(M.target.value,10);if(k>=1&&k<=31){const R={...h,date:k};x(I,R)}}}),i.jsx("hr",{}),i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.month`),":"]}),i.jsx("input",{id:"month",type:"number",min:"1",max:"12",value:h.month,onChange:M=>{const k=parseInt(M.target.value,10);if(k>=1&&k<=12){const R={...h,month:k};x(I,R)}}})]}),i.jsx(vA,{type:"settings",onClick:()=>Q(I),icon:i.jsx(Bt,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]},I))}),t.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(kr,{}),i.jsx("span",{className:"title",children:d.getMessage(`${u}.no_events`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.no_events_description`)}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(nr,{}),label:d.getMessage(`${u}.add_event`)})]})})]}),S=e==="events";let E;return S?E=i.jsx(TA,{title:d.getMessage(`${u}.title`),secondaryTitle:d.getMessage(`${u}.events.title`),goBack:()=>A(null,r),report:!1}):E=i.jsx(TA,{title:d.getMessage(`${u}.title`),setting:"greeting",category:"widgets",zoomSetting:"zoomGreeting",visibilityToggle:!0}),i.jsxs(i.Fragment,{children:[E,S?i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.enable_events`)}),i.jsx(cA,{children:i.jsx(mA,{name:"events",text:d.getMessage(`${u}.events`),category:"greeting",onChange:h=>{g(h?"preferences":"preferencesInactive")}})})]}),y(),L()]}):i.jsxs(mt,{setting:"greeting",zoomSetting:"zoomGreeting",category:"greeting",visibilityToggle:!0,children:[i.jsx(U,{}),i.jsx(Rn,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.events_description`),onClick:()=>A("events",r),icon:i.jsx(kr,{})})]})]})},Wo=()=>{const[e,A]=b.useState(localStorage.getItem("timeType")||"digital"),[r,t]=b.useState(localStorage.getItem("hourColour")||"#ffffff"),[n,a]=b.useState(localStorage.getItem("minuteColour")||"#ffffff"),[s,o]=b.useState(localStorage.getItem("secondColour")||"#ffffff"),l="modals.main.settings.sections.time",c=(C,x)=>{const U=x.target.value;C==="hourColour"?t(U):C==="minuteColour"?a(U):C==="secondColour"&&o(U),localStorage.setItem(C,U)},g=()=>i.jsxs(rA,{final:e==="percentageComplete",children:[i.jsx(nA,{title:d.getMessage(`${l}.type`),subtitle:d.getMessage(`${l}.type_subtitle`)}),i.jsx(cA,{children:i.jsx(KA,{name:"timeType",onChange:C=>A(C),category:"clock",items:[{value:"digital",text:d.getMessage(`${l}.digital.title`)},{value:"analogue",text:d.getMessage(`${l}.analogue.title`)},{value:"percentageComplete",text:d.getMessage(`${l}.percentage_complete`)},{value:"verticalClock",text:d.getMessage(`${l}.vertical_clock.title`)}]})})]}),B=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.digital.title`),subtitle:d.getMessage(`${l}.digital.subtitle`)}),i.jsxs(cA,{children:[i.jsx(Bn,{name:"timeformat",options:[{name:d.getMessage(`${l}.digital.twentyfourhour`),value:"twentyfourhour"},{name:d.getMessage(`${l}.digital.twelvehour`),value:"twelvehour"}],smallTitle:!0,category:"clock"}),i.jsx(mA,{name:"seconds",text:d.getMessage(`${l}.digital.seconds`),category:"clock"}),i.jsx(mA,{name:"zero",text:d.getMessage(`${l}.digital.zero`),category:"clock"})]})]}),u=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.analogue.title`),subtitle:d.getMessage(`${l}.analogue.subtitle`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"secondHand",text:d.getMessage(`${l}.analogue.second_hand`),category:"clock"}),i.jsx(mA,{name:"minuteHand",text:d.getMessage(`${l}.analogue.minute_hand`),category:"clock"}),i.jsx(mA,{name:"hourHand",text:d.getMessage(`${l}.analogue.hour_hand`),category:"clock"}),i.jsx(mA,{name:"hourMarks",text:d.getMessage(`${l}.analogue.hour_marks`),category:"clock"}),i.jsx(mA,{name:"minuteMarks",text:d.getMessage(`${l}.analogue.minute_marks`),category:"clock"}),i.jsx(mA,{name:"roundClock",text:d.getMessage(`${l}.analogue.round_clock`),category:"clock"})]})]}),p=i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_hour_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"hourColour",className:"minuteColour",onChange:C=>c("hourColour",C),value:r}),i.jsx("label",{htmlFor:"hourColour",className:"customBackgroundHex",children:r})]}),i.jsxs("span",{className:"link",onClick:()=>c("hourColour",{target:{value:"#ffffff"}}),children:[i.jsx(he,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_minute_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"minuteColour",className:"minuteColour",onChange:C=>c("minuteColour",C),value:n}),i.jsx("label",{htmlFor:"minuteColour",className:"customBackgroundHex",children:n})]}),i.jsxs("span",{className:"link",onClick:()=>c("minuteColour",{target:{value:"#ffffff"}}),children:[i.jsx(he,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_second_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"secondColour",className:"secondColour",onChange:C=>c("secondColour",C),value:s}),i.jsx("label",{htmlFor:"secondColour",className:"customBackgroundHex",children:s})]}),i.jsxs("span",{className:"link",onClick:()=>c("secondColour",{target:{value:"#ffffff"}}),children:[i.jsx(he,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),B]}),Q=()=>{switch(e){case"digital":return B;case"analogue":return u;case"verticalClock":return p;default:return null}};return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${l}.title`),setting:"time",category:"widgets",zoomSetting:"zoomClock",visibilityToggle:!0}),i.jsxs(mt,{setting:"time",zoomSetting:"zoomClock",category:"clock",visibilityToggle:!0,children:[i.jsx(g,{}),Q()]})]})};function Yo(){const[e,A]=b.useState(localStorage.getItem("dateType")||"long"),r=["DMY","MDY","YMD"],t=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.long_format"),name:"longFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(mA,{name:"dayofweek",text:d.getMessage("modals.main.settings.sections.date.day_of_week"),category:"date"}),i.jsx(mA,{name:"datenth",text:d.getMessage("modals.main.settings.sections.date.datenth"),category:"date"})]}),n=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_format"),name:"dateFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_separator.title"),name:"shortFormat",category:"date",items:[{value:"dash",text:d.getMessage("modals.main.settings.sections.date.short_separator.dash")},{value:"dots",text:d.getMessage("modals.main.settings.sections.date.short_separator.dots")},{value:"gaps",text:d.getMessage("modals.main.settings.sections.date.short_separator.gaps")},{value:"slashes",text:d.getMessage("modals.main.settings.sections.date.short_separator.slashes")}]})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.date.title"),setting:"date",category:"widgets",zoomSetting:"zoomDate",visibilityToggle:!0}),i.jsxs(mt,{setting:"date",visibilityToggle:!0,category:"date",zoomSetting:"zoomDate",children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.type"),subtitle:d.getMessage("modals.main.settings.sections.date.type.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"dateType",onChange:a=>{A(a),localStorage.setItem("dateType",a)},category:"date",items:[{value:"long",text:d.getMessage("modals.main.settings.sections.date.type.long")},{value:"short",text:d.getMessage("modals.main.settings.sections.date.type.short")}]})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:e==="long"?d.getMessage("modals.main.settings.sections.date.type.long"):d.getMessage("modals.main.settings.sections.date.type.short"),subtitle:d.getMessage("modals.main.settings.sections.date.type_settings")}),i.jsxs(cA,{children:[e==="long"?t:n,i.jsx(mA,{name:"weeknumber",text:d.getMessage("modals.main.settings.sections.date.week_number"),category:"date"}),i.jsx(mA,{name:"datezero",text:d.getMessage("modals.main.settings.sections.time.digital.zero"),category:"date"})]})]})]})]})}const Zo=()=>i.jsx("div",{className:"quicklink-drag-handle","aria-hidden":"true",children:i.jsx(ms,{})}),zo=({value:e,enabled:A,startEditLink:r,deleteLink:t})=>{const{attributes:n,listeners:a,setNodeRef:s,transform:o,transition:l,isDragging:c}=vs({id:e.key,disabled:!A}),g={transform:Us.Transform.toString(o),transition:l,opacity:c?.5:1},B=u=>u.icon||ws(u.url,u.name);return i.jsxs("div",{ref:s,style:g,...n,...a,className:`quicklink-item ${A?"":"disabled"}`,role:"listitem",children:[i.jsx(Zo,{}),i.jsx("div",{className:"quicklink-icon",children:i.jsx("img",{src:B(e),alt:e.name,draggable:!1})}),i.jsxs("div",{className:"quicklink-content",children:[i.jsx("div",{className:"quicklink-name",children:e.name}),i.jsx("div",{className:"quicklink-url",children:e.url})]}),i.jsxs("div",{className:"quicklink-actions",children:[i.jsxs("button",{className:"quicklink-action-btn",onClick:u=>{A&&(u.stopPropagation(),r(e))},title:"Edit",disabled:!A,"aria-disabled":!A,children:[i.jsx(ps,{}),i.jsx("span",{children:"Edit"})]}),i.jsxs("button",{className:"quicklink-action-btn quicklink-remove-btn",onClick:u=>{A&&(u.stopPropagation(),t(e.key,u))},title:"Remove",disabled:!A,"aria-disabled":!A,children:[i.jsx(ro,{}),i.jsx("span",{children:"Remove"})]})]})]})},qo=({items:e,enabled:A,onDragEnd:r,startEditLink:t,deleteLink:n})=>{const a=Fs(sr(Es,{activationConstraint:{distance:6}}),sr(ys,{coordinateGetter:bs}));return i.jsx(xs,{sensors:a,collisionDetection:Is,onDragEnd:r,children:i.jsx(Hs,{items:e.map(s=>s.key),strategy:Ss,children:i.jsx("div",{className:"quicklinks-list",role:"list",children:e.map(s=>i.jsx(zo,{value:s,enabled:A,startEditLink:t,deleteLink:n},s.key))})})})},Xe=()=>{try{const e=localStorage.getItem("quicklinks");if(!e)return[];const A=JSON.parse(e);return Array.isArray(A)?A:[]}catch(e){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",e),[]}},$o=()=>{const[e,A]=b.useState(Xe()),[r,t]=b.useState(!1),[n,a]=b.useState(""),[s,o]=b.useState(""),[l,c]=b.useState(!1),[g,B]=b.useState(""),[u,p]=b.useState(localStorage.getItem("quicklinksenabled")!=="false"),Q=b.useRef(),C=b.useRef(!1),x=R=>{if(!Q||!Q.current)return;const O=Q.current;O.classList.toggle("disabled",!R),R?O.removeAttribute("aria-hidden"):O.setAttribute("aria-hidden","true")},U=(R,O)=>{O.preventDefault();const D=Xe().filter(z=>z.key!==R);C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),A(D),d.stats.postEvent("feature","Quicklink delete"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},y=async(R,O,Z)=>{const D=Xe();if(O=or(O),!O){a(d.getMessage("widgets.quicklinks.url_error"));return}if(Z.length>0&&ft(Z)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}const z={name:R||await ir(O),url:O,icon:Z||"",key:Date.now().toString()+Math.random().toString(36).substring(2)};D.push(z),C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),A(D),t(!1),a(""),o(""),d.stats.postEvent("feature","Quicklink add"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},L=R=>{c(!0),B(R),t(!0)},S=async(R,O,Z,D)=>{const z=Xe(),eA=z.find(tA=>tA.key===R.key);if(eA){if(Z=or(Z),!Z){a(d.getMessage("widgets.quicklinks.url_error"));return}if(D.length>0&&ft(D)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}eA.name=O||await ir(Z),eA.url=Z,eA.icon=D||"",C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(z)),A(z),t(!1),c(!1),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)}},E=R=>{const{active:O,over:Z}=R;if(!Z||!u||O.id===Z.id)return;const D=e.findIndex(tA=>tA.key===O.id),z=e.findIndex(tA=>tA.key===Z.id);if(D===-1||z===-1)return;const eA=Ls(e,D,z);C.current=!0,A(eA),localStorage.setItem("quicklinks",JSON.stringify(eA)),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)};b.useEffect(()=>{x(u)},[u]),b.useEffect(()=>{x(u);const R=O=>{if(O!=="quicklinks"||C.current)return;const Z=localStorage.getItem("quicklinksenabled")!=="false",D=Xe(),z=e||[],eA=z.length===D.length&&z.every(tA=>D.some(AA=>AA.key===tA.key));(Z!==u||!eA)&&(x(Z),A(D),p(Z))};return hA.on("refresh",R),()=>{hA.off("refresh",R)}},[u,e]);const h="modals.main.settings.sections.quicklinks",I=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${h}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"quicklinksnewtab",text:d.getMessage(`${h}.open_new`),category:"quicklinks"}),i.jsx(mA,{name:"quicklinkstooltip",text:d.getMessage(`${h}.tooltip`),category:"quicklinks"})]})]}),M=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${h}.styling`),subtitle:d.getMessage("modals.main.settings.sections.quicklinks.styling_description")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage(`${h}.style`),name:"quickLinksStyle",category:"quicklinks",items:[{value:"icon",text:d.getMessage(`${h}.options.icon`)},{value:"text",text:d.getMessage(`${h}.options.text_only`)},{value:"metro",text:d.getMessage(`${h}.options.metro`)}]})})]}),k=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${h}.title`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>u&&t(!0),icon:i.jsx(un,{}),label:d.getMessage(`${h}.add_link`),disabled:!u})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${h}.title`),setting:"quicklinksenabled",category:"widgets",zoomSetting:"zoomQuicklinks",visibilityToggle:!0}),i.jsxs(mt,{setting:"quicklinksenabled",category:"quicklinks",visibilityToggle:!0,zoomSetting:"zoomQuicklinks",children:[i.jsx(I,{}),i.jsx(M,{}),i.jsx(k,{}),e.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(no,{}),i.jsx("span",{className:"title",children:d.getMessage(`${h}.no_quicklinks`)}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.message.add_some")}),i.jsx(vA,{type:"settings",onClick:()=>t(!0),icon:i.jsx(un,{}),label:d.getMessage(`${h}.add_link`)})]})})]}),i.jsx("div",{className:`quicklinks-container ${u?"":"disabled"}`,ref:Q,"aria-hidden":!u,children:i.jsx("div",{className:`messagesContainer ${u?"":"disabled"}`,children:i.jsx(qo,{items:e,enabled:u,onDragEnd:E,startEditLink:R=>L(R),deleteLink:(R,O)=>U(R,O)})})}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a(""),o(""),c(!1),B("")},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Cs,{urlError:n,iconError:s,addLink:(R,O,Z)=>y(R,O,Z),editLink:(R,O,Z,D)=>S(R,O,Z,D),edit:l,editData:g,closeModal:()=>{t(!1),a(""),o(""),c(!1)}})})]})},Al=()=>{const[e,A]=b.useState(JSON.parse(localStorage.getItem("messages"))||[]),r=(a,s)=>{const o=[...e];a==="add"?o.push(""):o.splice(s,1),A(o),localStorage.setItem("messages",JSON.stringify(o)),hA.emit("refresh","message")},t=(a,s,o)=>{const l=a.target.value,c=[...e];c[o]=l,A(c),localStorage.setItem("messages",JSON.stringify(c)),ds()},n="modals.main.settings.sections.message";return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${n}.title`),setting:"message",category:"widgets",zoomSetting:"zoomMessage",visibilityToggle:!0}),i.jsxs(mt,{setting:"message",visibilityToggle:!0,category:"message",zoomSetting:"zoomMessage",children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${n}.messages`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(nr,{}),label:d.getMessage(`${n}.add`)})})]}),i.jsx("div",{className:"messagesContainer",children:e.map((a,s)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(Zn,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.title`)}),i.jsx(ao,{value:e[s],placeholder:d.getMessage("modals.main.settings.sections.message.content"),onChange:o=>t(o,!0,s),minRows:2})]})]}),i.jsx("div",{children:i.jsx("div",{className:"messageAction",children:i.jsx(vA,{type:"settings",onClick:()=>r("remove",s),icon:i.jsx(Bt,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})})})]},s))}),e.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Zn,{}),i.jsx("span",{className:"title",children:d.getMessage(`${n}.no_messages`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.add_some`)}),i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(nr,{}),label:d.getMessage(`${n}.add`)})]})})]})]})};var Mr={exports:{}},ta;function el(){return ta||(ta=1,(function(e){(function(A){var r=/^\s+/,t=/\s+$/,n=0,a=A.round,s=A.min,o=A.max,l=A.random;function c(f,v){if(f=f||"",v=v||{},f instanceof c)return f;if(!(this instanceof c))return new c(f,v);var w=g(f);this._originalInput=f,this._r=w.r,this._g=w.g,this._b=w.b,this._a=w.a,this._roundA=a(100*this._a)/100,this._format=v.format||w.format,this._gradientType=v.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=w.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var f=this.toRgb();return(f.r*299+f.g*587+f.b*114)/1e3},getLuminance:function(){var f=this.toRgb(),v,w,K,W,P,oA;return v=f.r/255,w=f.g/255,K=f.b/255,v<=.03928?W=v/12.92:W=A.pow((v+.055)/1.055,2.4),w<=.03928?P=w/12.92:P=A.pow((w+.055)/1.055,2.4),K<=.03928?oA=K/12.92:oA=A.pow((K+.055)/1.055,2.4),.2126*W+.7152*P+.0722*oA},setAlpha:function(f){return this._a=aA(f),this._roundA=a(100*this._a)/100,this},toHsv:function(){var f=Q(this._r,this._g,this._b);return{h:f.h*360,s:f.s,v:f.v,a:this._a}},toHsvString:function(){var f=Q(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.v*100);return this._a==1?"hsv("+v+", "+w+"%, "+K+"%)":"hsva("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var f=u(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=u(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.l*100);return this._a==1?"hsl("+v+", "+w+"%, "+K+"%)":"hsla("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHex:function(f){return x(this._r,this._g,this._b,f)},toHexString:function(f){return"#"+this.toHex(f)},toHex8:function(f){return U(this._r,this._g,this._b,this._a,f)},toHex8String:function(f){return"#"+this.toHex8(f)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(q(this._r,255)*100)+"%",g:a(q(this._g,255)*100)+"%",b:a(q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%)":"rgba("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:AA[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var v="#"+y(this._r,this._g,this._b,this._a),w=v,K=this._gradientType?"GradientType = 1, ":"";if(f){var W=c(f);w="#"+y(W._r,W._g,W._b,W._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+v+",endColorstr="+w+")"},toString:function(f){var v=!!f;f=f||this._format;var w=!1,K=this._a<1&&this._a>=0,W=!v&&K&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return W?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(w=this.toRgbString()),f==="prgb"&&(w=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(w=this.toHexString()),f==="hex3"&&(w=this.toHexString(!0)),f==="hex4"&&(w=this.toHex8String(!0)),f==="hex8"&&(w=this.toHex8String()),f==="name"&&(w=this.toName()),f==="hsl"&&(w=this.toHslString()),f==="hsv"&&(w=this.toHsvString()),w||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(f,v){var w=f.apply(null,[this].concat([].slice.call(v)));return this._r=w._r,this._g=w._g,this._b=w._b,this.setAlpha(w._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(L,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(f,v){return f.apply(null,[this].concat([].slice.call(v)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(eA,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(Z,arguments)}},c.fromRatio=function(f,v){if(typeof f=="object"){var w={};for(var K in f)f.hasOwnProperty(K)&&(K==="a"?w[K]=f[K]:w[K]=F(f[K]));f=w}return c(f,v)};function g(f){var v={r:0,g:0,b:0},w=1,K=null,W=null,P=null,oA=!1,fA=!1;return typeof f=="string"&&(f=$(f)),typeof f=="object"&&(J(f.r)&&J(f.g)&&J(f.b)?(v=B(f.r,f.g,f.b),oA=!0,fA=String(f.r).substr(-1)==="%"?"prgb":"rgb"):J(f.h)&&J(f.s)&&J(f.v)?(K=F(f.s),W=F(f.v),v=C(f.h,K,W),oA=!0,fA="hsv"):J(f.h)&&J(f.s)&&J(f.l)&&(K=F(f.s),P=F(f.l),v=p(f.h,K,P),oA=!0,fA="hsl"),f.hasOwnProperty("a")&&(w=f.a)),w=aA(w),{ok:oA,format:f.format||fA,r:s(255,o(v.r,0)),g:s(255,o(v.g,0)),b:s(255,o(v.b,0)),a:w}}function B(f,v,w){return{r:q(f,255)*255,g:q(v,255)*255,b:q(w,255)*255}}function u(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),P,oA,fA=(K+W)/2;if(K==W)P=oA=0;else{var UA=K-W;switch(oA=fA>.5?UA/(2-K-W):UA/(K+W),K){case f:P=(v-w)/UA+(v<w?6:0);break;case v:P=(w-f)/UA+2;break;case w:P=(f-v)/UA+4;break}P/=6}return{h:P,s:oA,l:fA}}function p(f,v,w){var K,W,P;f=q(f,360),v=q(v,100),w=q(w,100);function oA(jA,Pe,YA){return YA<0&&(YA+=1),YA>1&&(YA-=1),YA<1/6?jA+(Pe-jA)*6*YA:YA<1/2?Pe:YA<2/3?jA+(Pe-jA)*(2/3-YA)*6:jA}if(v===0)K=W=P=w;else{var fA=w<.5?w*(1+v):w+v-w*v,UA=2*w-fA;K=oA(UA,fA,f+1/3),W=oA(UA,fA,f),P=oA(UA,fA,f-1/3)}return{r:K*255,g:W*255,b:P*255}}function Q(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),P,oA,fA=K,UA=K-W;if(oA=K===0?0:UA/K,K==W)P=0;else{switch(K){case f:P=(v-w)/UA+(v<w?6:0);break;case v:P=(w-f)/UA+2;break;case w:P=(f-v)/UA+4;break}P/=6}return{h:P,s:oA,v:fA}}function C(f,v,w){f=q(f,360)*6,v=q(v,100),w=q(w,100);var K=A.floor(f),W=f-K,P=w*(1-v),oA=w*(1-W*v),fA=w*(1-(1-W)*v),UA=K%6,jA=[w,oA,P,P,fA,w][UA],Pe=[fA,w,w,oA,P,P][UA],YA=[P,P,fA,w,w,oA][UA];return{r:jA*255,g:Pe*255,b:YA*255}}function x(f,v,w,K){var W=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return K&&W[0].charAt(0)==W[0].charAt(1)&&W[1].charAt(0)==W[1].charAt(1)&&W[2].charAt(0)==W[2].charAt(1)?W[0].charAt(0)+W[1].charAt(0)+W[2].charAt(0):W.join("")}function U(f,v,w,K,W){var P=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16)),_(N(K))];return W&&P[0].charAt(0)==P[0].charAt(1)&&P[1].charAt(0)==P[1].charAt(1)&&P[2].charAt(0)==P[2].charAt(1)&&P[3].charAt(0)==P[3].charAt(1)?P[0].charAt(0)+P[1].charAt(0)+P[2].charAt(0)+P[3].charAt(0):P.join("")}function y(f,v,w,K){var W=[_(N(K)),_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return W.join("")}c.equals=function(f,v){return!f||!v?!1:c(f).toRgbString()==c(v).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})};function L(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s-=v/100,w.s=lA(w.s),c(w)}function S(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s+=v/100,w.s=lA(w.s),c(w)}function E(f){return c(f).desaturate(100)}function h(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l+=v/100,w.l=lA(w.l),c(w)}function I(f,v){v=v===0?0:v||10;var w=c(f).toRgb();return w.r=o(0,s(255,w.r-a(255*-(v/100)))),w.g=o(0,s(255,w.g-a(255*-(v/100)))),w.b=o(0,s(255,w.b-a(255*-(v/100)))),c(w)}function M(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l-=v/100,w.l=lA(w.l),c(w)}function k(f,v){var w=c(f).toHsl(),K=(w.h+v)%360;return w.h=K<0?360+K:K,c(w)}function R(f){var v=c(f).toHsl();return v.h=(v.h+180)%360,c(v)}function O(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+120)%360,s:v.s,l:v.l}),c({h:(w+240)%360,s:v.s,l:v.l})]}function Z(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+90)%360,s:v.s,l:v.l}),c({h:(w+180)%360,s:v.s,l:v.l}),c({h:(w+270)%360,s:v.s,l:v.l})]}function D(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+72)%360,s:v.s,l:v.l}),c({h:(w+216)%360,s:v.s,l:v.l})]}function z(f,v,w){v=v||6,w=w||30;var K=c(f).toHsl(),W=360/w,P=[c(f)];for(K.h=(K.h-(W*v>>1)+720)%360;--v;)K.h=(K.h+W)%360,P.push(c(K));return P}function eA(f,v){v=v||6;for(var w=c(f).toHsv(),K=w.h,W=w.s,P=w.v,oA=[],fA=1/v;v--;)oA.push(c({h:K,s:W,v:P})),P=(P+fA)%1;return oA}c.mix=function(f,v,w){w=w===0?0:w||50;var K=c(f).toRgb(),W=c(v).toRgb(),P=w/100,oA={r:(W.r-K.r)*P+K.r,g:(W.g-K.g)*P+K.g,b:(W.b-K.b)*P+K.b,a:(W.a-K.a)*P+K.a};return c(oA)},c.readability=function(f,v){var w=c(f),K=c(v);return(A.max(w.getLuminance(),K.getLuminance())+.05)/(A.min(w.getLuminance(),K.getLuminance())+.05)},c.isReadable=function(f,v,w){var K=c.readability(f,v),W,P;switch(P=!1,W=pA(w),W.level+W.size){case"AAsmall":case"AAAlarge":P=K>=4.5;break;case"AAlarge":P=K>=3;break;case"AAAsmall":P=K>=7;break}return P},c.mostReadable=function(f,v,w){var K=null,W=0,P,oA,fA,UA;w=w||{},oA=w.includeFallbackColors,fA=w.level,UA=w.size;for(var jA=0;jA<v.length;jA++)P=c.readability(f,v[jA]),P>W&&(W=P,K=c(v[jA]));return c.isReadable(f,K,{level:fA,size:UA})||!oA?K:(w.includeFallbackColors=!1,c.mostReadable(f,["#fff","#000"],w))};var tA=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},AA=c.hexNames=dA(tA);function dA(f){var v={};for(var w in f)f.hasOwnProperty(w)&&(v[f[w]]=w);return v}function aA(f){return f=parseFloat(f),(isNaN(f)||f<0||f>1)&&(f=1),f}function q(f,v){H(f)&&(f="100%");var w=j(f);return f=s(v,o(0,parseFloat(f))),w&&(f=parseInt(f*v,10)/100),A.abs(f-v)<1e-6?1:f%v/parseFloat(v)}function lA(f){return s(1,o(0,f))}function sA(f){return parseInt(f,16)}function H(f){return typeof f=="string"&&f.indexOf(".")!=-1&&parseFloat(f)===1}function j(f){return typeof f=="string"&&f.indexOf("%")!=-1}function _(f){return f.length==1?"0"+f:""+f}function F(f){return f<=1&&(f=f*100+"%"),f}function N(f){return A.round(parseFloat(f)*255).toString(16)}function T(f){return sA(f)/255}var G=(function(){var f="[-\\+]?\\d+%?",v="[-\\+]?\\d*\\.\\d+%?",w="(?:"+v+")|(?:"+f+")",K="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?",W="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?";return{CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function J(f){return!!G.CSS_UNIT.exec(f)}function $(f){f=f.replace(r,"").replace(t,"").toLowerCase();var v=!1;if(tA[f])f=tA[f],v=!0;else if(f=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var w;return(w=G.rgb.exec(f))?{r:w[1],g:w[2],b:w[3]}:(w=G.rgba.exec(f))?{r:w[1],g:w[2],b:w[3],a:w[4]}:(w=G.hsl.exec(f))?{h:w[1],s:w[2],l:w[3]}:(w=G.hsla.exec(f))?{h:w[1],s:w[2],l:w[3],a:w[4]}:(w=G.hsv.exec(f))?{h:w[1],s:w[2],v:w[3]}:(w=G.hsva.exec(f))?{h:w[1],s:w[2],v:w[3],a:w[4]}:(w=G.hex8.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),a:T(w[4]),format:v?"name":"hex8"}:(w=G.hex6.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),format:v?"name":"hex"}:(w=G.hex4.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),a:T(w[4]+""+w[4]),format:v?"name":"hex8"}:(w=G.hex3.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),format:v?"name":"hex"}:!1}function pA(f){var v,w;return f=f||{level:"AA",size:"small"},v=(f.level||"AA").toUpperCase(),w=(f.size||"small").toLowerCase(),v!=="AA"&&v!=="AAA"&&(v="AA"),w!=="small"&&w!=="large"&&(w="small"),{level:v,size:w}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(Mr)),Mr.exports}var tl=el();const SA=ks(tl);var Oe=function(){return Oe=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Oe.apply(this,arguments)},rl=function(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||Array.prototype.slice.call(A))},nl=function(e){e===void 0&&(e="");var A={linearGradient:/^(-(webkit|o|ms|moz)-)?(linear-gradient)/i,repeatingLinearGradient:/^(-(webkit|o|ms|moz)-)?(repeating-linear-gradient)/i,radialGradient:/^(-(webkit|o|ms|moz)-)?(radial-gradient)/i,repeatingRadialGradient:/^(-(webkit|o|ms|moz)-)?(repeating-radial-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,spacedRgbColor:/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s+\/\s+([0-1](\.\d+)?)/,rgbaColor:/^rgba/i,hslColor:/^hsl/i,hsvColor:/^hsv/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/};function r(H){var j=new Error(e+": "+H);throw j}function t(H){e=e.substr(H)}function n(H){var j=/^[\n\r\t\s]+/.exec(e);j&&t(j[0].length);var _=H.exec(e);return _&&t(_[0].length),_}function a(H){var j=H(),_=[];if(j)for(_.push(j);n(A.comma);)j=H(),j?_.push(j):r("One extra comma");return _}function s(H,j,_){var F=n(j);if(F)return{type:H,value:F[_]}}function o(){var H=s("hex",A.hexColor,1);if(H?.value){var j=SA(H?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}var l=function(H){var j=Ue(H?.[0]);return{value:"".concat(j?"RGBA":"rgba","(").concat(a(AA),")")}};function c(H,j){var _=n(H);if(_){n(A.startCall)||r("Missing (");var F=j(_);return n(A.endCall)||r("Missing )"),F}}function g(){return c(A.hslColor,dA)}function B(){return c(A.rgbaColor,l)}function u(){return c(A.rgbColor,q)}function p(){var H=s("literal",A.literalColor,0);if(H?.value){var j=SA(H?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}function Q(){return c(A.hsvColor,aA)}function C(){return o()||g()||B()||u()||p()||Q()}function x(){var H,j=C();return j||r("Expected color definition"),j.left=parseInt((H=lA())===null||H===void 0?void 0:H.value),j}function U(H,j,_){return c(j,function(){var F=_();return F&&(n(A.comma)||r("Missing comma before color stops")),{type:H,orientation:F,colorStops:a(x)}})}function y(){return h()||I()}function L(){return U("linear-gradient",A.linearGradient,y)||U("repeating-linear-gradient",A.repeatingLinearGradient,y)||U("radial-gradient",A.radialGradient,M)||U("repeating-radial-gradient",A.repeatingRadialGradient,M)}function S(){return a(L)}function E(){var H,j=S();e.length>0&&r("Invalid input not EOF");var _=j[0],F=(H=_?.colorStops)===null||H===void 0?void 0:H.filter(function(T){return Ue(T.value)}).length,N=function(){if(F>0)return _;var T=function(G,J){return J===0?vr(G):vt(G)};return Oe(Oe({},_),{colorStops:_.colorStops.map(function(G,J){return Oe(Oe({},G),{value:T(G,J)})})})};return N()}function h(){return s("directional",A.sideOrCorner,1)}function I(){return s("angular",A.angleValue,1)}function M(){var H,j=k(),_;return j&&(H=[],H.push(j),_=e,n(A.comma)&&(j=k(),j?H.push(j):e=_)),H}function k(){var H=O()||Z();if(H)H.at=z();else{var j=D();if(j){H=j;var _=z();_&&(H.at=_)}else{var F=eA();F&&(H={type:"default-radial",at:F})}}return H}function R(){return s("px",A.pixelValue,1)||s("em",A.emValue,1)}function O(){var H=s("shape",/^(circle)/i,0);return H&&(H.style=R()||D()),H}function Z(){var H=s("shape",/^(ellipse)/i,0);return H&&(H.style=lA()||D()),H}function D(){return s("extent-keyword",A.extentKeywords,1)}function z(){if(s("position",/^at/,0)){var H=eA();return H||r("Missing positioning value"),H}}function eA(){var H=tA();if(H.x||H.y)return{type:"position",value:H}}function tA(){return{x:lA(),y:lA()}}function AA(){return n(A.number)[1]}var dA=function(H){var j=Ue(H?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],l:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,J=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(J,")")}},aA=function(H){var j=Ue(H?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],v:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,J=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(J,")")}},q=function(H){var j=Ue(H?.[0]),_=n(A.spacedRgbColor),F=_||rl([null],a(AA),!0),N=F[1],T=F[2],G=F[3],J=F[4],$=J===void 0?1:J;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat($,")")}};function lA(){return s("%",A.percentageValue,1)||sA()||R()}function sA(){return s("position-keyword",A.positionKeywords,1)}return E()},vt=function(e){return e.value.toLowerCase()},vr=function(e){return e.value.toUpperCase()},al=function(e,A,r){var t=e?.includes("gradient");if(t){var n=e?.includes("conic"),a=n?r:e;n&&console.log("Sorry we cant handle conic gradients yet");var s=nl(a);return s?.colorStops}else{var a=e||A;return[{value:a}]}},_e=function(e,A,r){return isNaN(e)||e<A?A:e>r?r:e},ee=function(e){return Math.round(e)},lr=function(){return lr=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},lr.apply(this,arguments)},Ts=function(e){var A=e.target.parentNode.getBoundingClientRect(),r=e.target.className,t=r==="c-resize ps-rl"?15:0;return{offsetLeft:A?.x+t,offsetTop:A?.y,clientWidth:A?.width,clientHeight:A?.height}};function Ge(e,A){var r=Ts(e),t=r.offsetLeft,n=r.clientWidth,a=e.clientX-t-A/2,s=n-18,o=_e(a,0,s);return Math.round(o/(s/100))}function sl(e,A,r,t,n){var a=e*r-n/2,s=(100-A)/100*t-n/2;return[a,s]}var il=function(e){if(e.clientX)return{clientX:e.clientX,clientY:e.clientY};var A=e.touches[0]||{};return{clientX:A.clientX,clientY:A.clientY}};function ol(e,A){var r=Ts(e),t=r.offsetLeft,n=r.offsetTop,a=r.clientWidth,s=r.clientHeight,o=il(e),l=o.clientX,c=o.clientY,g=function(){var u=l-t-A/2;return _e(u,-9,a-10)},B=function(){var u=c-n-A/2;return _e(u,-9,s-10)};return[g(),B()]}var Ue=function(e){var A;return e?.[0]===((A=e?.[0])===null||A===void 0?void 0:A.toUpperCase())},Ds=function(e){if(e==="to top")return 0;if(e==="to bottom")return 180;if(e==="to left")return 270;if(e==="to right")return 90;if(e==="to top right")return 45;if(e==="to bottom right")return 135;if(e==="to bottom left")return 225;if(e==="to top left")return 315;var A=e||0;return parseInt(A)},ll=function(e){var A,r,t,n,a;if(typeof e=="string")return e;if(!((A=e?.type)===null||A===void 0)&&A.includes("gradient")){var s=(r=e?.colorStops)===null||r===void 0?void 0:r.sort(function(u,p){return u?.left-p?.left}),o=(t=s?.map(function(u){return"".concat(u?.value," ").concat(u?.left,"%")}))===null||t===void 0?void 0:t.join(", "),l=e?.type,c=Ds((n=e?.orientation)===null||n===void 0?void 0:n.value),g=l==="linear-gradient"?"".concat(c,"deg"):"circle";return"".concat(l,"(").concat(g,", ").concat(o,")")}else{var B=((a=e?.colorStops[0])===null||a===void 0?void 0:a.value)||"rgba(175, 51, 242, 1)";return B}},cl=function(e,A){var r=e?.map(function(a,s){return lr(lr({},a),{index:s})}),t=r?.find(function(a){return Ue(a.value)}),n=t||r[0];return{currentColor:n?.value||A,selectedColor:n?.index||0,currentLeft:n?.left||0}},gl=function(e){var A,r=e?.split(",")[0],t=(A=r?.split("(")[1])===null||A===void 0?void 0:A.replace("deg","");return Ds(t)},ul=function(e){var A=e?.includes("gradient"),r=e?.split("(")[0],t=gl(e),n=r==="linear-gradient"?"".concat(t,"deg"):"circle";return{degrees:t,degreeStr:n,isGradient:A,gradientType:r}},DA=function(){return DA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},DA.apply(this,arguments)},Bl=function(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||Array.prototype.slice.call(A))},Os=b.createContext(null);function dl(e){var A,r,t,n,a=e.value,s=e.children,o=e.onChange,l=e.isDarkMode,c=e.squareWidth,g=e.hideOpacity,B=e.showHexAlpha,u=e.squareHeight,p=e.passedConfig,Q=e.defaultStyles,C=e.pickerIdSuffix,x={barSize:(A=p.barSize)!==null&&A!==void 0?A:xt.barSize,crossSize:(r=p.crossSize)!==null&&r!==void 0?r:xt.crossSize,defaultColor:(t=p.defaultColor)!==null&&t!==void 0?t:xt.defaultColor,defaultGradient:(n=p.defaultGradient)!==null&&n!==void 0?n:xt.defaultGradient},U=al(a,x.defaultColor,x.defaultGradient),y=ul(a),L=y.degrees,S=y.degreeStr,E=y.isGradient,h=y.gradientType,I=cl(U,x.defaultGradient),M=I.currentColor,k=I.selectedColor,R=I.currentLeft,O=b.useState("rgb"),Z=O[0],D=O[1],z=b.useState({}),eA=z[0],tA=z[1],AA=SA(M),dA=AA.toRgb(),aA=AA.toHsv(),q=b.useState(DA(DA({},dA),aA)),lA=q[0],sA=q[1];b.useEffect(function(){aA?.s===0?sA(DA(DA(DA({},dA),aA),{h:lA?.h})):sA(DA(DA({},dA),aA))},[M]);var H=function(T){var G=T.sort(function(pA,f){return pA.left-f.left}),J=G?.map(function(pA){return"".concat(pA?.value," ").concat(pA.left,"%")}),$="".concat(h,"(").concat(S,", ").concat(J.join(", "),")");tA(DA(DA({},eA),{gradient:$})),o($)},j=function(T,G){var J=U?.filter(function(pA){return!Ue(pA.value)}),$=Bl([{value:T.toUpperCase(),left:G??R}],J,!0);H($)},_=function(T){E?j(T):(tA(DA(DA({},eA),{color:T})),o(T))},F=function(){if(U?.length>2){var T=U?.map(function(J,$){return DA(DA({},J),{value:$===k-1?vr(J):vt(J)})}),G=T?.filter(function(J,$){return $!==k});H(G)}},N={hc:lA,setHc:sA,value:a,colors:U,config:x,degrees:L,onChange:o,previous:eA,inputType:Z,tinyColor:AA,isDarkMode:l,isGradient:E,squareWidth:c,hideOpacity:g,currentLeft:R,deletePoint:F,showHexAlpha:B,squareHeight:u,setInputType:D,gradientType:h,handleChange:_,currentColor:M,selectedColor:k,defaultStyles:Q,handleGradient:j,pickerIdSuffix:C,createGradientStr:H};return m.createElement(Os.Provider,{value:N},s)}function BA(){var e=b.useContext(Os);if(!e)throw new Error("usePicker has to be used within <PickerContext.Provider>");return e}var xt={barSize:18,crossSize:18,defaultColor:"rgba(175, 51, 242, 1)",defaultGradient:"linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%)"},fl=function(e,A){b.useEffect(function(){var r,t=(r=e?.current)===null||r===void 0?void 0:r.getContext("2d",{willReadFrequently:!0});if(t){t.rect(0,0,A,14);for(var n=t.createLinearGradient(0,0,A,0),a=0;a<=360;a+=30)n.addColorStop(a/360,"hsl(".concat(a,", 100%, 50%)"));t.fillStyle=n,t.fill()}},[e,A])},hl=function(e,A,r,t){b.useEffect(function(){var n,a=(n=e?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(A,", ").concat(o,"%, ").concat(r,"%)"));a.fillStyle=s,a.fill()}},[e,A,r,t])},wl=function(e,A,r,t){b.useEffect(function(){var n,a=(n=e?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(A,", ").concat(r,"%, ").concat(o,"%)"));a.fillStyle=s,a.fill()}},[e,A,r,t])},pl=function(e,A,r,t){b.useEffect(function(){var n,a=(n=e?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10){var l=SA({h:A,s:r,v:o});s.addColorStop(o/100,l.toHslString())}a.fillStyle=s,a.fill()}},[e,A,r,t])},cr=function(){return cr=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},cr.apply(this,arguments)},Cl=function(){var e=b.useRef(null),A=BA(),r=A.config,t=A.handleChange,n=A.squareWidth,a=A.hc,s=A.setHc,o=A.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],B=r.barSize;fl(e,n);var u=function(){g(!1)},p=function(){g(!0)},Q=function(U){var y=Ge(U,B)*3.6,L=SA({h:y,s:a?.s,v:a?.v}),S=L.toRgb(),E=S.r,h=S.g,I=S.b;t("rgba(".concat(E,", ").concat(h,", ").concat(I,", ").concat(a.a,")")),s(cr(cr({},a),{h:y}))},C=function(U){c&&Q(U)},x=function(U){c||Q(U)};return b.useEffect(function(){var U=function(){u()};return window.addEventListener("mouseup",U),function(){window.removeEventListener("mouseup",U)}},[]),m.createElement("div",{style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},onMouseMove:function(U){return C(U)},id:"rbgcp-hue-wrap".concat(o)},m.createElement("div",{tabIndex:0,role:"button",style:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 10ms linear",position:"absolute",left:a?.h*((n-18)/360),top:-2,cursor:"ew-resize",boxSizing:"border-box"},onMouseDown:p,id:"rbgcp-hue-handle".concat(o)}),m.createElement("canvas",{ref:e,height:"14px",width:"".concat(n,"px"),onClick:function(U){return x(U)},id:"rbgcp-hue-bar".concat(o),style:{borderRadius:14,position:"relative",verticalAlign:"top"}}))};function Ql(e,A,r){var t=0,n=0,a=0,s=0;if(e===null||A===null||r===null||isNaN(e)||isNaN(A)||isNaN(r))return console.log("Please enter numeric RGB values!"),{c:0,m:0,k:0,y:1};if(e<0||A<0||r<0||e>255||A>255||r>255)return console.log("RGB values must be in the range 0 to 255."),{c:0,m:0,k:0,y:1};if(e===0&&A===0&&r===0)return s=1,{c:0,m:0,k:0,y:1};t=1-e/255,n=1-A/255,a=1-r/255;var o=Math.min(t,Math.min(n,a));return t=(t-o)/(1-o),n=(n-o)/(1-o),a=(a-o)/(1-o),s=o,{c:t,m:n,y:a,k:s}}var ml=function(e){var A=e.c,r=e.m,t=e.y,n=e.k,a=255*(1-A)*(1-n),s=255*(1-r)*(1-n),o=255*(1-t)*(1-n);return{r:a,g:s,b:o}},vl=function(e){return typeof e!="number"?"FF":e<0?"00":e>1?"FF":Math.round(e*255).toString(16).padStart(2,"0").toUpperCase()},WA=function(){return WA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},WA.apply(this,arguments)},_A=function(e){var A=e.label,r=e.value,t=e.callback,n=e.max,a=n===void 0?100:n,s=e.hideOpacity,o=e.defaultStyles,l=e.pickerIdSuffix,c=b.useState(r),g=c[0],B=c[1],u=s?"25%":"20%";b.useEffect(function(){B(r)},[r]);var p=function(Q){var C=_e(parseFloat(Q.target.value),0,a);B(C),t(C)};return m.createElement("div",{style:{width:u,flexShrink:1},id:"rbgcp-".concat(A,"-input-wrapper").concat(l)},m.createElement("input",{value:g,onChange:function(Q){return p(Q)},style:WA({},o.rbgcpInput),id:"rbgcp-".concat(A,"-input").concat(l)}),m.createElement("div",{style:WA({},o.rbgcpInputLabel)},A))},Ul=function(e){var A=e.opacity,r=e.tinyColor,t=e.showHexAlpha,n=e.handleChange,a=e.defaultStyles,s=e.pickerIdSuffix,o=b.useState(""),l=o[0],c=o[1],g=r.toHex(),B=b.useState(g),u=B[0],p=B[1];b.useEffect(function(){l!=="hex"&&p(g)},[r,l,g]);var Q=function(){c("hex")},C=function(){c("")},x=function(S){var E=SA(S.target.value);if(p(S.target.value),E.isValid()){var h=E.toRgb(),I=h.r,M=h.g,k=h.b,R="rgba(".concat(I,", ").concat(M,", ").concat(k,", ").concat(A,")");n(R)}},U=t?"".concat(u).concat(vl(A)):u,y=t?"HEXA":"HEX",L=t?88:76;return m.createElement("div",{style:{width:L,flexShrink:0},id:"rbgcp-hex-input-wrapper".concat(s)},m.createElement("input",{onBlur:C,onFocus:Q,onChange:function(S){return x(S)},value:U?.toUpperCase(),id:"rbgcp-hex-input".concat(s),style:WA(WA({},a.rbgcpInput),a.rbgcpHexInput)}),m.createElement("div",{style:WA({},a.rbgcpInputLabel)},y))},Fl=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,s=function(o){var l=o.r,c=o.g,g=o.b;t("rgba(".concat(l,", ").concat(c,", ").concat(g,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"R",max:255,value:A?.r,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:o,g:A?.g,b:A?.b})}}),m.createElement(_A,{label:"G",max:255,value:A?.g,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:A?.r,g:o,b:A?.b})}}),m.createElement(_A,{label:"B",max:255,value:A?.b,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:A?.r,g:A?.g,b:o})}}))},bl=function(e){var A=e.hc,r=e.setHc,t=e.tinyColor,n=e.hideOpacity,a=e.handleChange,s=e.defaultStyles,o=e.pickerIdSuffix,l=t.toHsl(),c=l.s,g=l.l,B=function(p,Q,C){var x=SA({h:p,s:Q,l:C}).toRgb(),U=x.r,y=x.g,L=x.b;a("rgba(".concat(U,", ").concat(y,", ").concat(L,", ").concat(A?.a,")")),r(WA(WA({},A),{h:p}))},u=function(p){var Q=SA(p).toRgb(),C=Q.r,x=Q.g,U=Q.b;a("rgba(".concat(C,", ").concat(x,", ").concat(U,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"H",max:360,value:ee(A?.h),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return B(p,c,g)}}),m.createElement(_A,{label:"S",value:ee(c*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:p,l:g})}}),m.createElement(_A,{label:"L",value:ee(g*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:c,l:p})}}))},yl=function(e){var A=e.hc,r=e.setHc,t=e.hideOpacity,n=e.handleChange,a=e.defaultStyles,s=e.pickerIdSuffix,o=function(c,g,B){var u=SA({h:c,s:g,v:B}).toRgb(),p=u.r,Q=u.g,C=u.b;n("rgba(".concat(p,", ").concat(Q,", ").concat(C,", ").concat(A?.a,")")),r(WA(WA({},A),{h:c}))},l=function(c){var g=SA(c).toRgb(),B=g.r,u=g.g,p=g.b;n("rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"H",max:360,value:ee(A?.h),hideOpacity:t,defaultStyles:a,pickerIdSuffix:s,callback:function(c){return o(c,A?.s,A?.v)}}),m.createElement(_A,{label:"S",hideOpacity:t,value:ee(A?.s*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:A?.h,s:c,v:A?.v})}}),m.createElement(_A,{label:"V",hideOpacity:t,value:ee(A?.v*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:A?.h,s:A?.s,v:c})}}))},El=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,s=Ql(A?.r,A?.g,A?.b),o=s.c,l=s.m,c=s.y,g=s.k,B=function(u){var p=ml(u),Q=p.r,C=p.g,x=p.b;t("rgba(".concat(Q,", ").concat(C,", ").concat(x,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"C",value:ee(o*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:u/100,m:l,y:c,k:g})}}),m.createElement(_A,{label:"M",value:ee(l*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:u/100,y:c,k:g})}}),m.createElement(_A,{label:"Y",value:ee(c*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:u/100,k:g})}}),m.createElement(_A,{label:"K",value:ee(g*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:c,k:u/100})}}))},xl=function(){var e=BA(),A=e.hc,r=e.setHc,t=e.inputType,n=e.tinyColor,a=e.hideOpacity,s=e.showHexAlpha,o=e.handleChange,l=e.defaultStyles,c=e.pickerIdSuffix;return m.createElement("div",{style:WA({columnGap:6,paddingTop:14,display:"flex",justifyContent:"space-between"},l.rbgcpInputsWrap),id:"rbgcp-inputs-wrap".concat(c)},t!=="cmyk"&&m.createElement(Ul,{opacity:A?.a,tinyColor:n,showHexAlpha:s,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsl"&&m.createElement(bl,{hc:A,setHc:r,tinyColor:n,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="rgb"&&m.createElement(Fl,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsv"&&m.createElement(yl,{hc:A,setHc:r,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="cmyk"&&m.createElement(El,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),!a&&m.createElement(_A,{label:"A",hideOpacity:a,defaultStyles:l,value:Math.round(A?.a*100),pickerIdSuffix:c,callback:function(g){return o("rgba(".concat(A?.r,", ").concat(A?.g,", ").concat(A?.b,", ").concat(g/100,")"))}}))},Il=function(e,A,r,t){b.useEffect(function(){if(e.current){var n=e.current.getContext("2d",{willReadFrequently:!0});if(n){n.fillStyle="hsl(".concat(A,", 100%, 50%)"),n.fillRect(0,0,r,t);var a=n.createLinearGradient(0,0,r,0);a.addColorStop(0,"rgba(255, 255, 255, 1)"),a.addColorStop(1,"rgba(255, 255, 255, 0)"),n.fillStyle=a,n.fillRect(0,0,r,t);var s=n.createLinearGradient(0,0,0,t);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=s,n.fillRect(0,0,r,t)}}},[e,A,r,t])},Kr,ra;function Hl(){if(ra)return Kr;ra=1;var e="Expected a function",A=NaN,r="[object Symbol]",t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,l=typeof bt=="object"&&bt&&bt.Object===Object&&bt,c=typeof self=="object"&&self&&self.Object===Object&&self,g=l||c||Function("return this")(),B=Object.prototype,u=B.toString,p=Math.max,Q=Math.min,C=function(){return g.Date.now()};function x(h,I,M){var k,R,O,Z,D,z,eA=0,tA=!1,AA=!1,dA=!0;if(typeof h!="function")throw new TypeError(e);I=E(I)||0,y(M)&&(tA=!!M.leading,AA="maxWait"in M,O=AA?p(E(M.maxWait)||0,I):O,dA="trailing"in M?!!M.trailing:dA);function aA(T){var G=k,J=R;return k=R=void 0,eA=T,Z=h.apply(J,G),Z}function q(T){return eA=T,D=setTimeout(H,I),tA?aA(T):Z}function lA(T){var G=T-z,J=T-eA,$=I-G;return AA?Q($,O-J):$}function sA(T){var G=T-z,J=T-eA;return z===void 0||G>=I||G<0||AA&&J>=O}function H(){var T=C();if(sA(T))return j(T);D=setTimeout(H,lA(T))}function j(T){return D=void 0,dA&&k?aA(T):(k=R=void 0,Z)}function _(){D!==void 0&&clearTimeout(D),eA=0,k=z=R=D=void 0}function F(){return D===void 0?Z:j(C())}function N(){var T=C(),G=sA(T);if(k=arguments,R=this,z=T,G){if(D===void 0)return q(z);if(AA)return D=setTimeout(H,I),aA(z)}return D===void 0&&(D=setTimeout(H,I)),Z}return N.cancel=_,N.flush=F,N}function U(h,I,M){var k=!0,R=!0;if(typeof h!="function")throw new TypeError(e);return y(M)&&(k="leading"in M?!!M.leading:k,R="trailing"in M?!!M.trailing:R),x(h,I,{leading:k,maxWait:I,trailing:R})}function y(h){var I=typeof h;return!!h&&(I=="object"||I=="function")}function L(h){return!!h&&typeof h=="object"}function S(h){return typeof h=="symbol"||L(h)&&u.call(h)==r}function E(h){if(typeof h=="number")return h;if(S(h))return A;if(y(h)){var I=typeof h.valueOf=="function"?h.valueOf():h;h=y(I)?I+"":I}if(typeof h!="string")return h===0?h:+h;h=h.replace(t,"");var M=a.test(h);return M||s.test(h)?o(h.slice(2),M?2:8):n.test(h)?A:+h}return Kr=U,Kr}var Sl=Hl();const Ll=ks(Sl);var Fe=function(){return Fe=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Fe.apply(this,arguments)},kl=function(){var e,A,r=BA(),t=r.hc,n=r.config,a=r.squareWidth,s=r.squareHeight,o=r.handleChange,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.crossSize,B=b.useState(!1),u=B[0],p=B[1],Q=b.useRef(null),C=sl(t?.s,t?.v*100,a,s,g),x=C[0],U=C[1],y=b.useState({x,y:U}),L=y[0],S=y[1];Il(Q,t?.h,a,s),b.useEffect(function(){u||S({x:t?.v===0?L.x:x,y:U})},[x,U]);var E=function(O){var Z=Ll(function(){var D=ol(O,g),z=D[0],eA=D[1];if(z&&eA){var tA=Math.min(z+g/2,a-1),AA=Math.min(eA+g/2,s-1),dA=tA/a*100,aA=100-AA/s*100;S({x:aA===0?L?.x:z,y:eA});var q=SA("hsva(".concat(t?.h,", ").concat(dA,"%, ").concat(aA,"%, ").concat(t?.a,")"));o(q.toRgbString())}},250);Z()},h=function(){p(!1)},I=function(O){u&&E(O)},M=function(O){u||E(O)},k=function(){p(!0)},R=function(O){p(!0),E(O)};return b.useEffect(function(){var O=function(){h()};return window.addEventListener("mouseup",O),function(){window.removeEventListener("mouseup",O)}},[]),m.createElement("div",{style:{position:"relative",marginBottom:12},id:"rbgcp-square-wrapper".concat(c)},m.createElement("div",{onMouseUp:h,onTouchEnd:h,onMouseDown:R,onTouchStart:R,onMouseMove:function(O){return I(O)},id:"rbgcp-square".concat(c),style:{position:"relative",cursor:"ew-cross"}},m.createElement("div",{style:Fe(Fe(Fe({},l.rbgcpHandle),{transform:"translate(".concat((e=L?.x)!==null&&e!==void 0?e:0,"px, ").concat((A=L?.y)!==null&&A!==void 0?A:0,"px)")}),u?{transition:""}:{}),onMouseDown:k,id:"rbgcp-square-handle".concat(c)}),m.createElement("div",{style:Fe(Fe({},l.rbgcpCanvasWrapper),{height:s}),id:"rbgcp-square-canvas-wrapper".concat(c),onClick:function(O){return M(O)}},m.createElement("canvas",{ref:Q,width:"".concat(a,"px"),height:"".concat(s,"px"),id:"rbgcp-square-canvas".concat(c)}))))},ge=function(){return ge=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},ge.apply(this,arguments)},Ml=function(){var e=BA(),A=e.config,r=e.hc,t=r===void 0?{}:r,n=e.squareWidth,a=e.handleChange,s=e.defaultStyles,o=e.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],B=t.r,u=t.g,p=t.b,Q="linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(".concat(B,",").concat(u,",").concat(p,",.5) 100%)"),C=A.barSize,x=function(){g(!1)},U=function(){g(!0)},y=function(h){var I=Ge(h,C)/100,M="rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(I,")");a(M)},L=function(h){c&&y(h)},S=function(h){c||y(h)},E=n-18;return b.useEffect(function(){var h=function(){x()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{onMouseDown:U,onMouseMove:function(h){return L(h)},style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},id:"rbgcp-opacity-wrapper".concat(o)},m.createElement("div",{id:"rbgcp-opacity-checkered-bg".concat(o),style:ge(ge({},s.rbgcpCheckered),{width:"100%",height:14})}),m.createElement("div",{id:"rbgcp-opacity-handle".concat(o),style:ge(ge({},s.rbgcpHandle),{left:E*t?.a,top:-2})}),m.createElement("div",{style:ge(ge({},s.rbgcpOpacityOverlay),{background:Q}),id:"rbgcp-opacity-overlay".concat(o),onClick:function(h){return S(h)}}))},Kl={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}},Tl=["rgba(0,0,0,1)","rgba(128,128,128, 1)","rgba(192,192,192, 1)","rgba(255,255,255, 1)","rgba(0,0,128,1)","rgba(0,0,255,1)","rgba(0,255,255, 1)","rgba(0,128,0,1)","rgba(128,128,0, 1)","rgba(0,128,128,1)","rgba(0,255,0, 1)","rgba(128,0,0, 1)","rgba(128,0,128, 1)","rgba(175, 51, 242, 1)","rgba(255,0,255, 1)","rgba(255,0,0, 1)","rgba(240, 103, 46, 1)","rgba(255,255,0, 1)"],Dl=function(e){var A=e.presets,r=A===void 0?[]:A,t=BA(),n=t.value,a=t.onChange,s=t.isDarkMode,o=t.squareWidth,l=t.handleChange,c=t.pickerIdSuffix,g=function(){return r?.length>0?r?.slice(0,18):Tl},B=function(p){p?.includes("gradient")?a(p):l(p)},u=function(p){if(!p||s)return"";var Q=p?.replace(" ","");return Q==="rgba(255,255,255,1)"?"1px solid #96959c":""};return m.createElement("div",{style:{marginTop:14,display:"flex",justifyContent:"space-between"},id:"rbgcp-footer-wrapper".concat(c)},m.createElement("div",{style:{width:50,height:50,flexShrink:0,borderRadius:6,background:n,border:u(n)},id:"rbgcp-preview".concat(c)}),m.createElement("div",{style:{rowGap:3,display:"flex",flexWrap:"wrap",width:o-57,justifyContent:"space-between"},id:"rbgcp-presets-wrapper".concat(c)},g().map(function(p,Q){return m.createElement("div",{key:"".concat(p,"-").concat(Q),id:"rbgcp-preset-".concat(Q,"-wrapper").concat(c),style:{width:"calc(100% / 9)",paddingLeft:3}},m.createElement("div",{style:{height:23.5,width:"100%",background:p,borderRadius:4,border:u(p)},onClick:function(){return B(p)},id:"rbgcp-preset-".concat(Q).concat(c)}))})))},Y=function(){return Y=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Y.apply(this,arguments)},Ol=function(){var e=BA().defaultStyles,A={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y({},A),e.rbgcpControlIcon),points:"17.96 4.31 2.04 4.3 3.75 4.3 4.81 17.29 5.16 17.96 5.74 18.47 6.59 18.62 13.64 18.62 14.52 18.32 15.07 17.68 15.29 17.12 16.28 4.3 12.87 4.3 12.87 2.38 12.48 1.75 11.83 1.46 8.4 1.46 7.64 1.68 7.26 2.21 7.16 2.52 7.17 4.23"}))},Rl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:14}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"0.9 12.73 0.9 19.1 7.27 19.1 0.9 19.1 19.1 0.9 12.73 0.9 19.1 0.9 19.1 7.27"}))},Nl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"9"}),m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"5"}))},_l=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"},a={strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"3.74 2.75 3.74 12.69 0.9 12.71 6.59 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"3.74",y1:"17.26",x2:"3.74",y2:"15.21"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.1 17.25 10.1 7.31 12.95 7.29 7.26 7.29"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"10.1",y1:"2.74",x2:"10.1",y2:"4.79"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"16.26 2.75 16.26 12.69 13.41 12.71 19.1 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},Gl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M6.35,2.72a4.85,4.85,0,0,1,1.86.16,7.94,7.94,0,0,1,.88.43,3.66,3.66,0,0,0,.85.49c.25,0,.58-.27.81-.39A8.25,8.25,0,0,1,11.7,3a4,4,0,0,1,1.79-.23,3.21,3.21,0,0,0-1.34.09,6.39,6.39,0,0,0-1.47.63c-.45.25-.7.3-.7.86s0,1.18,0,1.78c0,1.3,0,2.61,0,3.92h0v5.63a2.46,2.46,0,0,1,0,.47c-.07.28-.43.42-.7.57a5.29,5.29,0,0,1-2.94.61A9.3,9.3,0,0,0,8,17.15l1.09-.37.89-.52c.06,0,.48.21.56.25.32.14.64.27,1,.38a8.54,8.54,0,0,0,2.12.4"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M7.57,5.73C6,5.7,4.5,5.65,3,5.77a2.28,2.28,0,0,0-1.76.74A2.3,2.3,0,0,0,.94,7.83l0,3.82A4.73,4.73,0,0,0,1,12.9a1.64,1.64,0,0,0,.68,1,2.44,2.44,0,0,0,1,.27,25,25,0,0,0,4.74.09"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M12.43,14.32a44.12,44.12,0,0,0,4.6,0,2.24,2.24,0,0,0,1.76-.74,2.29,2.29,0,0,0,.27-1.32l0-3.81A4.81,4.81,0,0,0,19,7.15a1.62,1.62,0,0,0-.68-1,2.31,2.31,0,0,0-1-.28,26.8,26.8,0,0,0-4.74-.09"}))},jl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={strokeMiterlimit:10,strokeWidth:"0.5px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"9.36",cy:"5.07",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"13.93",cy:"6.91",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.8",cy:"7.55",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.45",cy:"12.04",r:"1.71"}),m.createElement("path",{style:Y(Y(Y(Y({},n),r.rbgcpControlIcon),r.rbgcpControlIcon2),t&&{fill:t,stroke:t}),d:"M19.1,10c0,3.58-2.12,2.94-4.06,2.35-1.15-.34-2.24-.67-2.77-.08-.68.78-.54,2.07-.39,3.33.2,1.79.39,3.5-1.88,3.5A9.1,9.1,0,1,1,19.1,10ZM10,18c.7,0,.74-.19.75-.2a2.67,2.67,0,0,0,.07-1.27c0-.19,0-.42-.06-.67-.06-.53-.13-1.15-.14-1.67a3.82,3.82,0,0,1,.8-2.63,2.14,2.14,0,0,1,1.45-.7,4.36,4.36,0,0,1,1.32.12c.39.08.8.21,1.16.32h0c.39.12.74.23,1.08.3.74.17,1,.1,1.13,0S18,11.32,18,10a8,8,0,1,0-8,8Z"}))},Vl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"13.86 2.01 1.7 16.99 18.77 16.99"}),m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.96 16.38 10.96 16.38 10.74 15.7 10.44 14.97 10.06 14.21 9.72 13.63 9.21 12.89 8.85 12.44 8.41 11.95 7.91 11.45 7.51 11.1"}))},Pl=function(){var e=BA().defaultStyles;return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:20,marginRight:1}},m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M2.39,8c-.63,0-1,.21-1,.63A.49.49,0,0,0,1.67,9a6.48,6.48,0,0,0,1.11.43A3,3,0,0,1,4,10.09a1.47,1.47,0,0,1,.35,1.09,1.75,1.75,0,0,1-.57,1.42,2.21,2.21,0,0,1-1.48.48,8.32,8.32,0,0,1-1.68-.21l-.31-.06.12-.94a13.7,13.7,0,0,0,1.8.16c.61,0,.92-.26.92-.77a.52.52,0,0,0-.21-.44,3.13,3.13,0,0,0-.85-.34A3.32,3.32,0,0,1,.66,9.79a1.43,1.43,0,0,1-.42-1.1A1.6,1.6,0,0,1,.78,7.36a2.32,2.32,0,0,1,1.49-.44,10.46,10.46,0,0,1,1.64.17l.32.07-.1.95C3.31,8,2.73,8,2.39,8Z"}),m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M14,12.34a2.25,2.25,0,0,1-1.91.74,2.24,2.24,0,0,1-1.91-.74A3.85,3.85,0,0,1,9.61,10a4,4,0,0,1,.56-2.34,2.2,2.2,0,0,1,1.91-.77A2.21,2.21,0,0,1,14,7.69,4,4,0,0,1,14.55,10,3.85,3.85,0,0,1,14,12.34Zm-2.88-.77a1,1,0,0,0,1,.46,1,1,0,0,0,1-.46A3.25,3.25,0,0,0,13.3,10,3.45,3.45,0,0,0,13,8.46a1,1,0,0,0-1-.49,1,1,0,0,0-1,.49A3.43,3.43,0,0,0,10.85,10,3.38,3.38,0,0,0,11.11,11.57Z"}),m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M17.77,11.24h-1V13H15.58V7h2.19a1.85,1.85,0,0,1,2.11,2.07,2.21,2.21,0,0,1-.54,1.6A2.07,2.07,0,0,1,17.77,11.24Zm-1-1h1c.6,0,.9-.37.9-1.12a1.18,1.18,0,0,0-.22-.79.88.88,0,0,0-.68-.24h-1Z"}))},Xl=function(e){var A,r=e.children,t="id"+Math.random().toString(16).slice(2),n=b.useRef((A=document.getElementById(t))!==null&&A!==void 0?A:document.createElement("div")),a=b.useState(!n.current.parentElement)[0];return b.useEffect(function(){var s=n.current;return a&&(n.current.id=t,document.body.appendChild(n.current)),function(){a&&s.parentElement&&s.parentElement.removeChild(s)}},[t]),so.createPortal(r,n.current)};const Jl=b.memo(Xl);var dn=function(e,A){return dn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},dn(e,A)};function zA(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");dn(e,A);function r(){this.constructor=e}e.prototype=A===null?Object.create(A):(r.prototype=A.prototype,new r)}var fn=function(){return fn=Object.assign||function(A){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(A[a]=r[a])}return A},fn.apply(this,arguments)};function OA(e,A,r,t){function n(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function o(g){try{c(t.next(g))}catch(B){s(B)}}function l(g){try{c(t.throw(g))}catch(B){s(B)}}function c(g){g.done?a(g.value):n(g.value).then(o,l)}c((t=t.apply(e,[])).next())})}function kA(e,A){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(g){return l([c,g])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,n&&(a=c[0]&2?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=A.call(e,r)}catch(g){c=[6,g],n=0}finally{t=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function It(e,A,r){if(arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||A)}var oe=(function(){function e(A,r,t,n){this.left=A,this.top=r,this.width=t,this.height=n}return e.prototype.add=function(A,r,t,n){return new e(this.left+A,this.top+r,this.width+t,this.height+n)},e.fromClientRect=function(A,r){return new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(A,r){var t=Array.from(r).find(function(n){return n.width!==0});return t?new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),Ur=function(e,A){return oe.fromClientRect(e,A.getBoundingClientRect())},Wl=function(e){var A=e.body,r=e.documentElement;if(!A||!r)throw new Error("Unable to get document size");var t=Math.max(Math.max(A.scrollWidth,r.scrollWidth),Math.max(A.offsetWidth,r.offsetWidth),Math.max(A.clientWidth,r.clientWidth)),n=Math.max(Math.max(A.scrollHeight,r.scrollHeight),Math.max(A.offsetHeight,r.offsetHeight),Math.max(A.clientHeight,r.clientHeight));return new oe(0,0,t,n)},Fr=function(e){for(var A=[],r=0,t=e.length;r<t;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=e.charCodeAt(r++);(a&64512)===56320?A.push(((n&1023)<<10)+(a&1023)+65536):(A.push(n),r--)}else A.push(n)}return A},bA=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=e[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ht=0;Ht<na.length;Ht++)Yl[na.charCodeAt(Ht)]=Ht;var aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var St=0;St<aa.length;St++)qe[aa.charCodeAt(St)]=St;var Zl=function(e){var A=e.length*.75,r=e.length,t,n=0,a,s,o,l;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=qe[e.charCodeAt(t)],s=qe[e.charCodeAt(t+1)],o=qe[e.charCodeAt(t+2)],l=qe[e.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},zl=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},ql=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},xe=5,Nn=11,Tr=2,$l=Nn-xe,Rs=65536>>xe,Ac=1<<xe,Dr=Ac-1,ec=1024>>xe,tc=Rs+ec,rc=tc,nc=32,ac=rc+nc,sc=65536>>Nn,ic=1<<$l,oc=ic-1,sa=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},lc=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},cc=function(e,A){var r=Zl(e),t=Array.isArray(r)?ql(r):new Uint32Array(r),n=Array.isArray(r)?zl(r):new Uint16Array(r),a=24,s=sa(n,a/2,t[4]/2),o=t[5]===2?sa(n,(a+t[4])/2):lc(t,Math.ceil((a+t[4])/4));return new gc(t[0],t[1],t[2],t[3],s,o)},gc=(function(){function e(A,r,t,n,a,s){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>xe],r=(r<<Tr)+(A&Dr),this.data[r];if(A<=65535)return r=this.index[Rs+(A-55296>>xe)],r=(r<<Tr)+(A&Dr),this.data[r];if(A<this.highStart)return r=ac-sc+(A>>Nn),r=this.index[r],r+=A>>xe&oc,r=this.index[r],r=(r<<Tr)+(A&Dr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Lt=0;Lt<ia.length;Lt++)uc[ia.charCodeAt(Lt)]=Lt;var Bc="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJAp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LAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGU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iCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAM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ywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA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gAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAe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gAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAC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AB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYA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AB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB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AeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQA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JQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",oa=50,dc=1,Ns=2,_s=3,fc=4,hc=5,la=7,Gs=8,ca=9,Be=10,hn=11,ga=12,wn=13,wc=14,$e=15,pn=16,kt=17,Je=18,pc=19,ua=20,Cn=21,We=22,Or=23,He=24,GA=25,At=26,et=27,Se=28,Cc=29,be=30,Qc=31,Mt=32,Kt=33,Qn=34,mn=35,vn=36,ht=37,Un=38,$t=39,Ar=40,Rr=41,js=42,mc=43,vc=[9001,65288],Vs="!",iA="×",Tt="÷",Fn=cc(Bc),ae=[be,vn],bn=[dc,Ns,_s,hc],Ps=[Be,Gs],Ba=[et,At],Uc=bn.concat(Ps),da=[Un,$t,Ar,Qn,mn],Fc=[$e,wn],bc=function(e,A){A===void 0&&(A="strict");var r=[],t=[],n=[];return e.forEach(function(a,s){var o=Fn.get(a);if(o>oa?(n.push(!0),o-=oa):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(s),r.push(pn);if(o===fc||o===hn){if(s===0)return t.push(s),r.push(be);var l=r[s-1];return Uc.indexOf(l)===-1?(t.push(t[s-1]),r.push(l)):(t.push(s),r.push(be))}if(t.push(s),o===Qc)return r.push(A==="strict"?Cn:ht);if(o===js||o===Cc)return r.push(be);if(o===mc)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(ht):r.push(be);r.push(o)}),[t,r,n]},Nr=function(e,A,r,t){var n=t[r];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var a=r;a<=t.length;){a++;var s=t[a];if(s===A)return!0;if(s!==Be)break}if(n===Be)for(var a=r;a>0;){a--;var o=t[a];if(Array.isArray(e)?e.indexOf(o)!==-1:e===o)for(var l=r;l<=t.length;){l++;var s=t[l];if(s===A)return!0;if(s!==Be)break}if(o!==Be)break}return!1},fa=function(e,A){for(var r=e;r>=0;){var t=A[r];if(t===Be)r--;else return t}return 0},yc=function(e,A,r,t,n){if(r[t]===0)return iA;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return iA;var s=a-1,o=a+1,l=A[a],c=s>=0?A[s]:0,g=A[o];if(l===Ns&&g===_s)return iA;if(bn.indexOf(l)!==-1)return Vs;if(bn.indexOf(g)!==-1||Ps.indexOf(g)!==-1)return iA;if(fa(a,A)===Gs)return Tt;if(Fn.get(e[a])===hn||(l===Mt||l===Kt)&&Fn.get(e[o])===hn||l===la||g===la||l===ca||[Be,wn,$e].indexOf(l)===-1&&g===ca||[kt,Je,pc,He,Se].indexOf(g)!==-1||fa(a,A)===We||Nr(Or,We,a,A)||Nr([kt,Je],Cn,a,A)||Nr(ga,ga,a,A))return iA;if(l===Be)return Tt;if(l===Or||g===Or)return iA;if(g===pn||l===pn)return Tt;if([wn,$e,Cn].indexOf(g)!==-1||l===wc||c===vn&&Fc.indexOf(l)!==-1||l===Se&&g===vn||g===ua||ae.indexOf(g)!==-1&&l===GA||ae.indexOf(l)!==-1&&g===GA||l===et&&[ht,Mt,Kt].indexOf(g)!==-1||[ht,Mt,Kt].indexOf(l)!==-1&&g===At||ae.indexOf(l)!==-1&&Ba.indexOf(g)!==-1||Ba.indexOf(l)!==-1&&ae.indexOf(g)!==-1||[et,At].indexOf(l)!==-1&&(g===GA||[We,$e].indexOf(g)!==-1&&A[o+1]===GA)||[We,$e].indexOf(l)!==-1&&g===GA||l===GA&&[GA,Se,He].indexOf(g)!==-1)return iA;if([GA,Se,He,kt,Je].indexOf(g)!==-1)for(var B=a;B>=0;){var u=A[B];if(u===GA)return iA;if([Se,He].indexOf(u)!==-1)B--;else break}if([et,At].indexOf(g)!==-1)for(var B=[kt,Je].indexOf(l)!==-1?s:a;B>=0;){var u=A[B];if(u===GA)return iA;if([Se,He].indexOf(u)!==-1)B--;else break}if(Un===l&&[Un,$t,Qn,mn].indexOf(g)!==-1||[$t,Qn].indexOf(l)!==-1&&[$t,Ar].indexOf(g)!==-1||[Ar,mn].indexOf(l)!==-1&&g===Ar||da.indexOf(l)!==-1&&[ua,At].indexOf(g)!==-1||da.indexOf(g)!==-1&&l===et||ae.indexOf(l)!==-1&&ae.indexOf(g)!==-1||l===He&&ae.indexOf(g)!==-1||ae.concat(GA).indexOf(l)!==-1&&g===We&&vc.indexOf(e[o])===-1||ae.concat(GA).indexOf(g)!==-1&&l===Je)return iA;if(l===Rr&&g===Rr){for(var p=r[a],Q=1;p>0&&(p--,A[p]===Rr);)Q++;if(Q%2!==0)return iA}return l===Mt&&g===Kt?iA:Tt},Ec=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var r=bc(e,A.lineBreak),t=r[0],n=r[1],a=r[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(o){return[GA,be,js].indexOf(o)!==-1?ht:o}));var s=A.wordBreak==="keep-all"?a.map(function(o,l){return o&&e[l]>=19968&&e[l]<=40959}):void 0;return[t,n,s]},xc=(function(){function e(A,r,t,n){this.codePoints=A,this.required=r===Vs,this.start=t,this.end=n}return e.prototype.slice=function(){return bA.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),Ic=function(e,A){var r=Fr(e),t=Ec(r,A),n=t[0],a=t[1],s=t[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var g=iA;c<o&&(g=yc(r,a,n,++c,s))===iA;);if(g!==iA||c===o){var B=new xc(r,g,l,c);return l=c,{value:B,done:!1}}return{done:!0,value:null}}}},Hc=1,Sc=2,Ut=4,ha=8,gr=10,wa=47,it=92,Lc=9,kc=32,Dt=34,Ye=61,Mc=35,Kc=36,Tc=37,Ot=39,Rt=40,Ze=41,Dc=95,NA=45,Oc=33,Rc=60,Nc=62,_c=64,Gc=91,jc=93,Vc=61,Pc=123,Nt=63,Xc=125,pa=124,Jc=126,Wc=128,Ca=65533,_r=42,Ee=43,Yc=44,Zc=58,zc=59,wt=46,qc=0,$c=8,Ag=11,eg=14,tg=31,rg=127,qA=-1,Xs=48,Js=97,Ws=101,ng=102,ag=117,sg=122,Ys=65,Zs=69,zs=70,ig=85,og=90,MA=function(e){return e>=Xs&&e<=57},lg=function(e){return e>=55296&&e<=57343},Le=function(e){return MA(e)||e>=Ys&&e<=zs||e>=Js&&e<=ng},cg=function(e){return e>=Js&&e<=sg},gg=function(e){return e>=Ys&&e<=og},ug=function(e){return cg(e)||gg(e)},Bg=function(e){return e>=Wc},_t=function(e){return e===gr||e===Lc||e===kc},ur=function(e){return ug(e)||Bg(e)||e===Dc},Qa=function(e){return ur(e)||MA(e)||e===NA},dg=function(e){return e>=qc&&e<=$c||e===Ag||e>=eg&&e<=tg||e===rg},ue=function(e,A){return e!==it?!1:A!==gr},Gt=function(e,A,r){return e===NA?ur(A)||ue(A,r):ur(e)?!0:!!(e===it&&ue(e,A))},Gr=function(e,A,r){return e===Ee||e===NA?MA(A)?!0:A===wt&&MA(r):MA(e===wt?A:e)},fg=function(e){var A=0,r=1;(e[A]===Ee||e[A]===NA)&&(e[A]===NA&&(r=-1),A++);for(var t=[];MA(e[A]);)t.push(e[A++]);var n=t.length?parseInt(bA.apply(void 0,t),10):0;e[A]===wt&&A++;for(var a=[];MA(e[A]);)a.push(e[A++]);var s=a.length,o=s?parseInt(bA.apply(void 0,a),10):0;(e[A]===Zs||e[A]===Ws)&&A++;var l=1;(e[A]===Ee||e[A]===NA)&&(e[A]===NA&&(l=-1),A++);for(var c=[];MA(e[A]);)c.push(e[A++]);var g=c.length?parseInt(bA.apply(void 0,c),10):0;return r*(n+o*Math.pow(10,-s))*Math.pow(10,l*g)},hg={type:2},wg={type:3},pg={type:4},Cg={type:13},Qg={type:8},mg={type:21},vg={type:9},Ug={type:10},Fg={type:11},bg={type:12},yg={type:14},jt={type:23},Eg={type:1},xg={type:25},Ig={type:24},Hg={type:26},Sg={type:27},Lg={type:28},kg={type:29},Mg={type:31},yn={type:32},qs=(function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(Fr(A))},e.prototype.read=function(){for(var A=[],r=this.consumeToken();r!==yn;)A.push(r),r=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Dt:return this.consumeStringToken(Dt);case Mc:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Qa(r)||ue(t,n)){var a=Gt(r,t,n)?Sc:Hc,s=this.consumeName();return{type:5,value:s,flags:a}}break;case Kc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Cg;break;case Ot:return this.consumeStringToken(Ot);case Rt:return hg;case Ze:return wg;case _r:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),yg;break;case Ee:if(Gr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Yc:return pg;case NA:var o=A,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Gr(o,l,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Gt(o,l,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(l===NA&&c===Nc)return this.consumeCodePoint(),this.consumeCodePoint(),Ig;break;case wt:if(Gr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case wa:if(this.peekCodePoint(0)===_r)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===_r&&(g=this.consumeCodePoint(),g===wa))return this.consumeToken();if(g===qA)return this.consumeToken()}break;case Zc:return Hg;case zc:return Sg;case Rc:if(this.peekCodePoint(0)===Oc&&this.peekCodePoint(1)===NA&&this.peekCodePoint(2)===NA)return this.consumeCodePoint(),this.consumeCodePoint(),xg;break;case _c:var B=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(Gt(B,u,p)){var s=this.consumeName();return{type:7,value:s}}break;case Gc:return Lg;case it:if(ue(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case jc:return kg;case Vc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Qg;break;case Pc:return Fg;case Xc:return bg;case ag:case ig:var Q=this.peekCodePoint(0),C=this.peekCodePoint(1);return Q===Ee&&(Le(C)||C===Nt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case pa:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),vg;if(this.peekCodePoint(0)===pa)return this.consumeCodePoint(),mg;break;case Jc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Ug;break;case qA:return yn}return _t(A)?(this.consumeWhiteSpace(),Mg):MA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):ur(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:bA(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],r=this.consumeCodePoint();Le(r)&&A.length<6;)A.push(r),r=this.consumeCodePoint();for(var t=!1;r===Nt&&A.length<6;)A.push(r),r=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(bA.apply(void 0,A.map(function(l){return l===Nt?Xs:l})),16),a=parseInt(bA.apply(void 0,A.map(function(l){return l===Nt?zs:l})),16);return{type:30,start:n,end:a}}var s=parseInt(bA.apply(void 0,A),16);if(this.peekCodePoint(0)===NA&&Le(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];Le(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(bA.apply(void 0,o),16);return{type:30,start:s,end:a}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Rt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Rt?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===qA)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Ot||r===Dt){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===qA||this.peekCodePoint(0)===Ze)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),jt)}for(;;){var n=this.consumeCodePoint();if(n===qA||n===Ze)return{type:22,value:bA.apply(void 0,A)};if(_t(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===qA||this.peekCodePoint(0)===Ze?(this.consumeCodePoint(),{type:22,value:bA.apply(void 0,A)}):(this.consumeBadUrlRemnants(),jt);if(n===Dt||n===Ot||n===Rt||dg(n))return this.consumeBadUrlRemnants(),jt;if(n===it)if(ue(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),jt;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;_t(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Ze||A===qA)return;ue(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var r=5e4,t="";A>0;){var n=Math.min(r,A);t+=bA.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(A){var r="",t=0;do{var n=this._value[t];if(n===qA||n===void 0||n===A)return r+=this.consumeStringSlice(t),{type:0,value:r};if(n===gr)return this._value.splice(0,t),Eg;if(n===it){var a=this._value[t+1];a!==qA&&a!==void 0&&(a===gr?(r+=this.consumeStringSlice(t),t=-1,this._value.shift()):ue(n,a)&&(r+=this.consumeStringSlice(t),r+=bA(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},e.prototype.consumeNumber=function(){var A=[],r=Ut,t=this.peekCodePoint(0);for((t===Ee||t===NA)&&A.push(this.consumeCodePoint());MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===wt&&MA(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=ha;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===Zs||t===Ws)&&((n===Ee||n===NA)&&MA(a)||MA(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=ha;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[fg(A),r]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),r=A[0],t=A[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Gt(n,a,s)){var o=this.consumeName();return{type:15,number:r,flags:t,unit:o}}return n===Tc?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Le(A)){for(var r=bA(A);Le(this.peekCodePoint(0))&&r.length<6;)r+=bA(this.consumeCodePoint());_t(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||lg(t)||t>1114111?Ca:t}return A===qA?Ca:A},e.prototype.consumeName=function(){for(var A="";;){var r=this.consumeCodePoint();if(Qa(r))A+=bA(r);else if(ue(r,this.peekCodePoint(0)))A+=bA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),A}},e})(),$s=(function(){function e(A){this._tokens=A}return e.create=function(A){var r=new qs;return r.write(A),new e(r.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var r=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var r=this.consumeComponentValue();if(r.type===32)return A;A.push(r),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var r={type:A,values:[]},t=this.consumeToken();;){if(t.type===32||Tg(t,A))return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue()),t=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var r={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?yn:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e})(),Ft=function(e){return e.type===15},Ve=function(e){return e.type===17},uA=function(e){return e.type===20},Kg=function(e){return e.type===0},En=function(e,A){return uA(e)&&e.value===A},Ai=function(e){return e.type!==31},je=function(e){return e.type!==31&&e.type!==4},te=function(e){var A=[],r=[];return e.forEach(function(t){if(t.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(r),r=[];return}t.type!==31&&r.push(t)}),r.length&&A.push(r),A},Tg=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},Ce=function(e){return e.type===17||e.type===15},yA=function(e){return e.type===16||Ce(e)},ei=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},LA={type:17,number:0,flags:Ut},_n={type:16,number:50,flags:Ut},de={type:16,number:100,flags:Ut},tt=function(e,A,r){var t=e[0],n=e[1];return[wA(t,A),wA(typeof n<"u"?n:t,r)]},wA=function(e,A){if(e.type===16)return e.number/100*A;if(Ft(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},ti="deg",ri="grad",ni="rad",ai="turn",br={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case ti:return Math.PI*A.number/180;case ri:return Math.PI/200*A.number;case ni:return A.number;case ai:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},si=function(e){return e.type===15&&(e.unit===ti||e.unit===ri||e.unit===ni||e.unit===ai)},ii=function(e){var A=e.filter(uA).map(function(r){return r.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LA,LA];case"to top":case"bottom":return XA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LA,de];case"to right":case"left":return XA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[de,de];case"to bottom":case"top":return XA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[de,LA];case"to left":case"right":return XA(270)}return 0},XA=function(e){return Math.PI*e/180},we={name:"color",parse:function(e,A){if(A.type===18){var r=Dg[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return r(e,A.values)}if(A.type===5){if(A.value.length===3){var t=A.value.substring(0,1),n=A.value.substring(1,2),a=A.value.substring(2,3);return fe(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),1)}if(A.value.length===4){var t=A.value.substring(0,1),n=A.value.substring(1,2),a=A.value.substring(2,3),s=A.value.substring(3,4);return fe(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(A.value.length===6){var t=A.value.substring(0,2),n=A.value.substring(2,4),a=A.value.substring(4,6);return fe(parseInt(t,16),parseInt(n,16),parseInt(a,16),1)}if(A.value.length===8){var t=A.value.substring(0,2),n=A.value.substring(2,4),a=A.value.substring(4,6),s=A.value.substring(6,8);return fe(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(s,16)/255)}}if(A.type===20){var o=ie[A.value.toUpperCase()];if(typeof o<"u")return o}return ie.TRANSPARENT}},pe=function(e){return(255&e)===0},xA=function(e){var A=255&e,r=255&e>>8,t=255&e>>16,n=255&e>>24;return A<255?"rgba("+n+","+t+","+r+","+A/255+")":"rgb("+n+","+t+","+r+")"},fe=function(e,A,r,t){return(e<<24|A<<16|r<<8|Math.round(t*255)<<0)>>>0},ma=function(e,A){if(e.type===17)return e.number;if(e.type===16){var r=A===3?1:255;return A===3?e.number/100*r:Math.round(e.number/100*r)}return 0},va=function(e,A){var r=A.filter(je);if(r.length===3){var t=r.map(ma),n=t[0],a=t[1],s=t[2];return fe(n,a,s,1)}if(r.length===4){var o=r.map(ma),n=o[0],a=o[1],s=o[2],l=o[3];return fe(n,a,s,l)}return 0};function jr(e,A,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(A-e)*r*6+e:r<1/2?A:r<2/3?(A-e)*6*(2/3-r)+e:e}var Ua=function(e,A){var r=A.filter(je),t=r[0],n=r[1],a=r[2],s=r[3],o=(t.type===17?XA(t.number):br.parse(e,t))/(Math.PI*2),l=yA(n)?n.number/100:0,c=yA(a)?a.number/100:0,g=typeof s<"u"&&yA(s)?wA(s,1):1;if(l===0)return fe(c*255,c*255,c*255,1);var B=c<=.5?c*(l+1):c+l-c*l,u=c*2-B,p=jr(u,B,o+1/3),Q=jr(u,B,o),C=jr(u,B,o-1/3);return fe(p*255,Q*255,C*255,g)},Dg={hsl:Ua,hsla:Ua,rgb:va,rgba:va},ot=function(e,A){return we.parse(e,$s.create(A).parseComponentValue())},ie={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},Og={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Rg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yr=function(e,A){var r=we.parse(e,A[0]),t=A[1];return t&&yA(t)?{color:r,stop:t}:{color:r,stop:null}},Fa=function(e,A){var r=e[0],t=e[e.length-1];r.stop===null&&(r.stop=LA),t.stop===null&&(t.stop=de);for(var n=[],a=0,s=0;s<e.length;s++){var o=e[s].stop;if(o!==null){var l=wA(o,A);l>a?n.push(l):n.push(a),a=l}else n.push(null)}for(var c=null,s=0;s<n.length;s++){var g=n[s];if(g===null)c===null&&(c=s);else if(c!==null){for(var B=s-c,u=n[c-1],p=(g-u)/(B+1),Q=1;Q<=B;Q++)n[c+Q-1]=p*Q;c=null}}return e.map(function(C,x){var U=C.color;return{color:U,stop:Math.max(Math.min(1,n[x]/A),0)}})},Ng=function(e,A,r){var t=A/2,n=r/2,a=wA(e[0],A)-t,s=n-wA(e[1],r);return(Math.atan2(s,a)+Math.PI*2)%(Math.PI*2)},_g=function(e,A,r){var t=typeof e=="number"?e:Ng(e,A,r),n=Math.abs(A*Math.sin(t))+Math.abs(r*Math.cos(t)),a=A/2,s=r/2,o=n/2,l=Math.sin(t-Math.PI/2)*o,c=Math.cos(t-Math.PI/2)*o;return[n,a-c,a+c,s-l,s+l]},ZA=function(e,A){return Math.sqrt(e*e+A*A)},ba=function(e,A,r,t,n){var a=[[0,0],[0,A],[e,0],[e,A]];return a.reduce(function(s,o){var l=o[0],c=o[1],g=ZA(r-l,t-c);return(n?g<s.optimumDistance:g>s.optimumDistance)?{optimumCorner:o,optimumDistance:g}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Gg=function(e,A,r,t,n){var a=0,s=0;switch(e.size){case 0:e.shape===0?a=s=Math.min(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-n)):e.shape===1&&(a=Math.min(Math.abs(A),Math.abs(A-t)),s=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(e.shape===0)a=s=Math.min(ZA(A,r),ZA(A,r-n),ZA(A-t,r),ZA(A-t,r-n));else if(e.shape===1){var o=Math.min(Math.abs(r),Math.abs(r-n))/Math.min(Math.abs(A),Math.abs(A-t)),l=ba(t,n,A,r,!0),c=l[0],g=l[1];a=ZA(c-A,(g-r)/o),s=o*a}break;case 1:e.shape===0?a=s=Math.max(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-n)):e.shape===1&&(a=Math.max(Math.abs(A),Math.abs(A-t)),s=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(e.shape===0)a=s=Math.max(ZA(A,r),ZA(A,r-n),ZA(A-t,r),ZA(A-t,r-n));else if(e.shape===1){var o=Math.max(Math.abs(r),Math.abs(r-n))/Math.max(Math.abs(A),Math.abs(A-t)),B=ba(t,n,A,r,!1),c=B[0],g=B[1];a=ZA(c-A,(g-r)/o),s=o*a}break}return Array.isArray(e.size)&&(a=wA(e.size[0],t),s=e.size.length===2?wA(e.size[1],n):a),[a,s]},jg=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&s.value==="to"){r=ii(n);return}else if(si(s)){r=br.parse(e,s);return}}var o=yr(e,n);t.push(o)}),{angle:r,stops:t,type:1}},Vt=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){r=ii(n);return}else if(si(s)){r=(br.parse(e,s)+XA(270))%XA(360);return}}var o=yr(e,n);t.push(o)}),{angle:r,stops:t,type:1}},Vg=function(e,A){var r=XA(180),t=[],n=1,a=0,s=3,o=[];return te(A).forEach(function(l,c){var g=l[0];if(c===0){if(uA(g)&&g.value==="linear"){n=1;return}else if(uA(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var B=we.parse(e,g.values[0]);t.push({stop:LA,color:B})}else if(g.name==="to"){var B=we.parse(e,g.values[0]);t.push({stop:de,color:B})}else if(g.name==="color-stop"){var u=g.values.filter(je);if(u.length===2){var B=we.parse(e,u[1]),p=u[0];Ve(p)&&t.push({stop:{type:16,number:p.number*100,flags:p.flags},color:B})}}}}),n===1?{angle:(r+XA(180))%XA(360),stops:t,type:n}:{size:s,shape:a,stops:t,position:o,type:n}},oi="closest-side",li="farthest-side",ci="closest-corner",gi="farthest-corner",ui="circle",Bi="ellipse",di="cover",fi="contain",Pg=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(s,o){var l=!0;if(o===0){var c=!1;l=s.reduce(function(B,u){if(c)if(uA(u))switch(u.value){case"center":return a.push(_n),B;case"top":case"left":return a.push(LA),B;case"right":case"bottom":return a.push(de),B}else(yA(u)||Ce(u))&&a.push(u);else if(uA(u))switch(u.value){case ui:return r=0,!1;case Bi:return r=1,!1;case"at":return c=!0,!1;case oi:return t=0,!1;case di:case li:return t=1,!1;case fi:case ci:return t=2,!1;case gi:return t=3,!1}else if(Ce(u)||yA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return B},l)}if(l){var g=yr(e,s);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},Pt=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(s,o){var l=!0;if(o===0?l=s.reduce(function(g,B){if(uA(B))switch(B.value){case"center":return a.push(_n),!1;case"top":case"left":return a.push(LA),!1;case"right":case"bottom":return a.push(de),!1}else if(yA(B)||Ce(B))return a.push(B),!1;return g},l):o===1&&(l=s.reduce(function(g,B){if(uA(B))switch(B.value){case ui:return r=0,!1;case Bi:return r=1,!1;case fi:case oi:return t=0,!1;case li:return t=1,!1;case ci:return t=2,!1;case di:case gi:return t=3,!1}else if(Ce(B)||yA(B))return Array.isArray(t)||(t=[]),t.push(B),!1;return g},l)),l){var c=yr(e,s);n.push(c)}}),{size:t,shape:r,stops:n,position:a,type:2}},Xg=function(e){return e.type===1},Jg=function(e){return e.type===2},Gn={name:"image",parse:function(e,A){if(A.type===22){var r={url:A.value,type:0};return e.cache.addImage(A.value),r}if(A.type===18){var t=hi[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function Wg(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!hi[e.name])}var hi={"linear-gradient":jg,"-moz-linear-gradient":Vt,"-ms-linear-gradient":Vt,"-o-linear-gradient":Vt,"-webkit-linear-gradient":Vt,"radial-gradient":Pg,"-moz-radial-gradient":Pt,"-ms-radial-gradient":Pt,"-o-radial-gradient":Pt,"-webkit-radial-gradient":Pt,"-webkit-gradient":Vg},Yg={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var r=A[0];return r.type===20&&r.value==="none"?[]:A.filter(function(t){return je(t)&&Wg(t)}).map(function(t){return Gn.parse(e,t)})}},Zg={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},zg={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return te(A).map(function(r){return r.filter(yA)}).map(ei)}},qg={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(uA).map(function(t){return t.value}).join(" ")}).map($g)}},$g=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},Ne;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(Ne||(Ne={}));var Au={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(eu)})}},eu=function(e){return uA(e)||yA(e)},Er=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},tu=Er("top"),ru=Er("right"),nu=Er("bottom"),au=Er("left"),xr=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,r){return ei(r.filter(yA))}}},su=xr("top-left"),iu=xr("top-right"),ou=xr("bottom-right"),lu=xr("bottom-left"),Ir=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},cu=Ir("top"),gu=Ir("right"),uu=Ir("bottom"),Bu=Ir("left"),Hr=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,r){return Ft(r)?r.number:0}}},du=Hr("top"),fu=Hr("right"),hu=Hr("bottom"),wu=Hr("left"),pu={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Cu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return A==="rtl"?1:0}},Qu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(uA).reduce(function(r,t){return r|mu(t.value)},0)}},mu=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vu={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Uu={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},Br;(function(e){e.NORMAL="normal",e.STRICT="strict"})(Br||(Br={}));var Fu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="strict"?Br.STRICT:Br.NORMAL}},bu={name:"line-height",initialValue:"normal",prefix:!1,type:4},ya=function(e,A){return uA(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:yA(e)?wA(e,A):A},yu={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:Gn.parse(e,A)}},Eu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){return A==="inside"?0:1}},xn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Sr=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},xu=Sr("top"),Iu=Sr("right"),Hu=Sr("bottom"),Su=Sr("left"),Lu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(uA).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},ku={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="break-word"?"break-word":"normal"}},Lr=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Mu=Lr("top"),Ku=Lr("right"),Tu=Lr("bottom"),Du=Lr("left"),Ou={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Ru={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Nu={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&En(A[0],"none")?[]:te(A).map(function(r){for(var t={color:ie.TRANSPARENT,offsetX:LA,offsetY:LA,blur:LA},n=0,a=0;a<r.length;a++){var s=r[a];Ce(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:t.blur=s,n++):t.color=we.parse(e,s)}return t})}},_u={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Gu={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var r=Pu[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return r(A.values)}return null}},ju=function(e){var A=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return A.length===6?A:null},Vu=function(e){var A=e.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=A[0],t=A[1];A[2],A[3];var n=A[4],a=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],o=A[13];return A[14],A[15],A.length===16?[r,t,n,a,s,o]:null},Pu={matrix:ju,matrix3d:Vu},Ea={type:16,number:50,flags:Ut},Xu=[Ea,Ea],Ju={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var r=A.filter(yA);return r.length!==2?Xu:[r[0],r[1]]}},Wu={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}},lt;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(lt||(lt={}));var Yu={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return lt.BREAK_ALL;case"keep-all":return lt.KEEP_ALL;default:return lt.NORMAL}}},Zu={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(Ve(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},wi={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},zu={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:1}},qu={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$u={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(uA).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},AB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var r=[],t=[];return A.forEach(function(n){switch(n.type){case 20:case 0:r.push(n.value);break;case 17:r.push(n.number.toString());break;case 4:t.push(r.join(" ")),r.length=0;break}}),r.length&&t.push(r.join(" ")),t.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},eB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},tB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:uA(A)&&A.value==="bold"?700:400}},rB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(uA).map(function(r){return r.value})}},nB={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},EA=function(e,A){return(e&A)!==0},aB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var r=A[0];return r.type===20&&r.value==="none"?[]:A}},sB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;for(var t=[],n=A.filter(Ai),a=0;a<n.length;a++){var s=n[a],o=n[a+1];if(s.type===20){var l=o&&Ve(o)?o.number:1;t.push({counter:s.value,increment:l})}}return t}},iB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var r=[],t=A.filter(Ai),n=0;n<t.length;n++){var a=t[n],s=t[n+1];if(uA(a)&&a.value!=="none"){var o=s&&Ve(s)?s.number:0;r.push({counter:a.value,reset:o})}}return r}},oB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Ft).map(function(r){return wi.parse(e,r)})}},lB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;var t=[],n=A.filter(Kg);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var s=n[a].value,o=n[a+1].value;t.push({open:s,close:o})}return t}},xa=function(e,A,r){if(!e)return"";var t=e[Math.min(A,e.length-1)];return t?r?t.open:t.close:""},cB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&En(A[0],"none")?[]:te(A).map(function(r){for(var t={color:255,offsetX:LA,offsetY:LA,blur:LA,spread:LA,inset:!1},n=0,a=0;a<r.length;a++){var s=r[a];En(s,"inset")?t.inset=!0:Ce(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:n===2?t.blur=s:t.spread=s,n++):t.color=we.parse(e,s)}return t})}},gB={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var r=[0,1,2],t=[];return A.filter(uA).forEach(function(n){switch(n.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),r.forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),t}},uB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},BB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Ft(A)?A.number:0}},dB=(function(){function e(A,r){var t,n;this.animationDuration=X(A,oB,r.animationDuration),this.backgroundClip=X(A,Og,r.backgroundClip),this.backgroundColor=X(A,Rg,r.backgroundColor),this.backgroundImage=X(A,Yg,r.backgroundImage),this.backgroundOrigin=X(A,Zg,r.backgroundOrigin),this.backgroundPosition=X(A,zg,r.backgroundPosition),this.backgroundRepeat=X(A,qg,r.backgroundRepeat),this.backgroundSize=X(A,Au,r.backgroundSize),this.borderTopColor=X(A,tu,r.borderTopColor),this.borderRightColor=X(A,ru,r.borderRightColor),this.borderBottomColor=X(A,nu,r.borderBottomColor),this.borderLeftColor=X(A,au,r.borderLeftColor),this.borderTopLeftRadius=X(A,su,r.borderTopLeftRadius),this.borderTopRightRadius=X(A,iu,r.borderTopRightRadius),this.borderBottomRightRadius=X(A,ou,r.borderBottomRightRadius),this.borderBottomLeftRadius=X(A,lu,r.borderBottomLeftRadius),this.borderTopStyle=X(A,cu,r.borderTopStyle),this.borderRightStyle=X(A,gu,r.borderRightStyle),this.borderBottomStyle=X(A,uu,r.borderBottomStyle),this.borderLeftStyle=X(A,Bu,r.borderLeftStyle),this.borderTopWidth=X(A,du,r.borderTopWidth),this.borderRightWidth=X(A,fu,r.borderRightWidth),this.borderBottomWidth=X(A,hu,r.borderBottomWidth),this.borderLeftWidth=X(A,wu,r.borderLeftWidth),this.boxShadow=X(A,cB,r.boxShadow),this.color=X(A,pu,r.color),this.direction=X(A,Cu,r.direction),this.display=X(A,Qu,r.display),this.float=X(A,vu,r.cssFloat),this.fontFamily=X(A,AB,r.fontFamily),this.fontSize=X(A,eB,r.fontSize),this.fontStyle=X(A,nB,r.fontStyle),this.fontVariant=X(A,rB,r.fontVariant),this.fontWeight=X(A,tB,r.fontWeight),this.letterSpacing=X(A,Uu,r.letterSpacing),this.lineBreak=X(A,Fu,r.lineBreak),this.lineHeight=X(A,bu,r.lineHeight),this.listStyleImage=X(A,yu,r.listStyleImage),this.listStylePosition=X(A,Eu,r.listStylePosition),this.listStyleType=X(A,xn,r.listStyleType),this.marginTop=X(A,xu,r.marginTop),this.marginRight=X(A,Iu,r.marginRight),this.marginBottom=X(A,Hu,r.marginBottom),this.marginLeft=X(A,Su,r.marginLeft),this.opacity=X(A,zu,r.opacity);var a=X(A,Lu,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=X(A,ku,r.overflowWrap),this.paddingTop=X(A,Mu,r.paddingTop),this.paddingRight=X(A,Ku,r.paddingRight),this.paddingBottom=X(A,Tu,r.paddingBottom),this.paddingLeft=X(A,Du,r.paddingLeft),this.paintOrder=X(A,gB,r.paintOrder),this.position=X(A,Ru,r.position),this.textAlign=X(A,Ou,r.textAlign),this.textDecorationColor=X(A,qu,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=X(A,$u,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=X(A,Nu,r.textShadow),this.textTransform=X(A,_u,r.textTransform),this.transform=X(A,Gu,r.transform),this.transformOrigin=X(A,Ju,r.transformOrigin),this.visibility=X(A,Wu,r.visibility),this.webkitTextStrokeColor=X(A,uB,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=X(A,BB,r.webkitTextStrokeWidth),this.wordBreak=X(A,Yu,r.wordBreak),this.zIndex=X(A,Zu,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return pe(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return EA(this.display,4)||EA(this.display,33554432)||EA(this.display,268435456)||EA(this.display,536870912)||EA(this.display,67108864)||EA(this.display,134217728)},e})(),fB=(function(){function e(A,r){this.content=X(A,aB,r.content),this.quotes=X(A,lB,r.quotes)}return e})(),Ia=(function(){function e(A,r){this.counterIncrement=X(A,sB,r.counterIncrement),this.counterReset=X(A,iB,r.counterReset)}return e})(),X=function(e,A,r){var t=new qs,n=r!==null&&typeof r<"u"?r.toString():A.initialValue;t.write(n);var a=new $s(t.read());switch(A.type){case 2:var s=a.parseComponentValue();return A.parse(e,uA(s)?s.value:A.initialValue);case 0:return A.parse(e,a.parseComponentValue());case 1:return A.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(A.format){case"angle":return br.parse(e,a.parseComponentValue());case"color":return we.parse(e,a.parseComponentValue());case"image":return Gn.parse(e,a.parseComponentValue());case"length":var o=a.parseComponentValue();return Ce(o)?o:LA;case"length-percentage":var l=a.parseComponentValue();return yA(l)?l:LA;case"time":return wi.parse(e,a.parseComponentValue())}break}},hB="data-html2canvas-debug",wB=function(e){var A=e.getAttribute(hB);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},In=function(e,A){var r=wB(e);return r===1||A===r},re=(function(){function e(A,r){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,In(r,3))debugger;this.styles=new dB(A,window.getComputedStyle(r,null)),Ln(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Ur(this.context,r),In(r,4)&&(this.flags|=16)}return e})(),pB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC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IAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC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AAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ha="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Xt=0;Xt<Ha.length;Xt++)rt[Ha.charCodeAt(Xt)]=Xt;var CB=function(e){var A=e.length*.75,r=e.length,t,n=0,a,s,o,l;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=rt[e.charCodeAt(t)],s=rt[e.charCodeAt(t+1)],o=rt[e.charCodeAt(t+2)],l=rt[e.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},QB=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},mB=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},Ie=5,jn=11,Vr=2,vB=jn-Ie,pi=65536>>Ie,UB=1<<Ie,Pr=UB-1,FB=1024>>Ie,bB=pi+FB,yB=bB,EB=32,xB=yB+EB,IB=65536>>jn,HB=1<<vB,SB=HB-1,Sa=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},LB=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},kB=function(e,A){var r=CB(e),t=Array.isArray(r)?mB(r):new Uint32Array(r),n=Array.isArray(r)?QB(r):new Uint16Array(r),a=24,s=Sa(n,a/2,t[4]/2),o=t[5]===2?Sa(n,(a+t[4])/2):LB(t,Math.ceil((a+t[4])/4));return new MB(t[0],t[1],t[2],t[3],s,o)},MB=(function(){function e(A,r,t,n,a,s){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>Ie],r=(r<<Vr)+(A&Pr),this.data[r];if(A<=65535)return r=this.index[pi+(A-55296>>Ie)],r=(r<<Vr)+(A&Pr),this.data[r];if(A<this.highStart)return r=xB-IB+(A>>jn),r=this.index[r],r+=A>>Ie&SB,r=this.index[r],r=(r<<Vr)+(A&Pr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),La="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",KB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Jt=0;Jt<La.length;Jt++)KB[La.charCodeAt(Jt)]=Jt;var TB=1,Xr=2,Jr=3,ka=4,Ma=5,DB=7,Ka=8,Wr=9,Yr=10,Ta=11,Da=12,Oa=13,Ra=14,Zr=15,OB=function(e){for(var A=[],r=0,t=e.length;r<t;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=e.charCodeAt(r++);(a&64512)===56320?A.push(((n&1023)<<10)+(a&1023)+65536):(A.push(n),r--)}else A.push(n)}return A},RB=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=e[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},NB=kB(pB),VA="×",zr="÷",_B=function(e){return NB.get(e)},GB=function(e,A,r){var t=r-2,n=A[t],a=A[r-1],s=A[r];if(a===Xr&&s===Jr)return VA;if(a===Xr||a===Jr||a===ka||s===Xr||s===Jr||s===ka)return zr;if(a===Ka&&[Ka,Wr,Ta,Da].indexOf(s)!==-1||(a===Ta||a===Wr)&&(s===Wr||s===Yr)||(a===Da||a===Yr)&&s===Yr||s===Oa||s===Ma||s===DB||a===TB)return VA;if(a===Oa&&s===Ra){for(;n===Ma;)n=A[--t];if(n===Ra)return VA}if(a===Zr&&s===Zr){for(var o=0;n===Zr;)o++,n=A[--t];if(o%2===0)return VA}return zr},jB=function(e){var A=OB(e),r=A.length,t=0,n=0,a=A.map(_B);return{next:function(){if(t>=r)return{done:!0,value:null};for(var s=VA;t<r&&(s=GB(A,a,++t))===VA;);if(s!==VA||t===r){var o=RB.apply(null,A.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},VB=function(e){for(var A=jB(e),r=[],t;!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r},PB=function(e){var A=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var t=e.createElement("boundtest");t.style.height=A+"px",t.style.display="block",e.body.appendChild(t),r.selectNode(t);var n=r.getBoundingClientRect(),a=Math.round(n.height);if(e.body.removeChild(t),a===A)return!0}}return!1},XB=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var r=e.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var t=A.firstChild,n=Fr(t.data).map(function(l){return bA(l)}),a=0,s={},o=n.every(function(l,c){r.setStart(t,a),r.setEnd(t,a+l.length);var g=r.getBoundingClientRect();a+=l.length;var B=g.x>s.x||g.y>s.y;return s=g,c===0?!0:B});return e.body.removeChild(A),o},JB=function(){return typeof new Image().crossOrigin<"u"},WB=function(){return typeof new XMLHttpRequest().responseType=="string"},YB=function(e){var A=new Image,r=e.createElement("canvas"),t=r.getContext("2d");if(!t)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(A,0,0),r.toDataURL()}catch{return!1}return!0},Na=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},ZB=function(e){var A=e.createElement("canvas"),r=100;A.width=r,A.height=r;var t=A.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,r,r);var n=new Image,a=A.toDataURL();n.src=a;var s=Hn(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),_a(s).then(function(o){t.drawImage(o,0,0);var l=t.getImageData(0,0,r,r).data;t.fillStyle="red",t.fillRect(0,0,r,r);var c=e.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=r+"px",Na(l)?_a(Hn(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Na(t.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Hn=function(e,A,r,t,n){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",A.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",t.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},_a=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){return A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},HA={get SUPPORT_RANGE_BOUNDS(){var e=PB(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=HA.SUPPORT_RANGE_BOUNDS&&XB(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=YB(document);return Object.defineProperty(HA,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?ZB(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=JB();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=WB();return Object.defineProperty(HA,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(HA,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(HA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},ct=(function(){function e(A,r){this.text=A,this.bounds=r}return e})(),zB=function(e,A,r,t){var n=Ad(A,r),a=[],s=0;return n.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){var l=Ga(t,s,o.length).getClientRects();if(l.length>1){var c=Vn(o),g=0;c.forEach(function(u){a.push(new ct(u,oe.fromDOMRectList(e,Ga(t,g+s,u.length).getClientRects()))),g+=u.length})}else a.push(new ct(o,oe.fromDOMRectList(e,l)))}else{var B=t.splitText(o.length);a.push(new ct(o,qB(e,t))),t=B}else HA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));s+=o.length}),a},qB=function(e,A){var r=A.ownerDocument;if(r){var t=r.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(t,A);var a=Ur(e,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return oe.EMPTY},Ga=function(e,A,r){var t=e.ownerDocument;if(!t)throw new Error("Node has no owner document");var n=t.createRange();return n.setStart(e,A),n.setEnd(e,A+r),n},Vn=function(e){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(r){return r.segment})}return VB(e)},$B=function(e,A){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(t){return t.segment})}return td(e,A)},Ad=function(e,A){return A.letterSpacing!==0?Vn(e):$B(e,A)},ed=[32,160,4961,65792,65793,4153,4241],td=function(e,A){for(var r=Ic(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],n,a=function(){if(n.value){var s=n.value.slice(),o=Fr(s),l="";o.forEach(function(c){ed.indexOf(c)===-1?l+=bA(c):(l.length&&t.push(l),t.push(bA(c)),l="")}),l.length&&t.push(l)}};!(n=r.next()).done;)a();return t},rd=(function(){function e(A,r,t){this.text=nd(r.data,t.textTransform),this.textBounds=zB(A,this.text,t,r)}return e})(),nd=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(ad,sd);case 2:return e.toUpperCase();default:return e}},ad=/(^|\s|:|-|\(|\))([a-z])/g,sd=function(e,A,r){return e.length>0?A+r.toUpperCase():e},Ci=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return A})(re),Qi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return A})(re),mi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=new XMLSerializer,s=Ur(r,t);return t.setAttribute("width",s.width+"px"),t.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A})(re),vi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A})(re),Sn=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.start=t.start,n.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,n}return A})(re),id=[{type:15,flags:0,unit:"px",number:3}],od=[{type:16,flags:0,number:50}],ld=function(e){return e.width>e.height?new oe(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new oe(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},cd=function(e){var A=e.type===gd?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},dr="checkbox",fr="radio",gd="password",ja=707406591,Pn=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=cd(t),(n.type===dr||n.type===fr)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=ld(n.bounds)),n.type){case dr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=id;break;case fr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=od;break}return n}return A})(re),Ui=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=t.options[t.selectedIndex||0];return n.value=a&&a.text||"",n}return A})(re),Fi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A})(re),bi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=Ei(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?ot(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):ie.TRANSPARENT,s=t.contentWindow.document.body?ot(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):ie.TRANSPARENT;n.backgroundColor=pe(a)?pe(s)?n.styles.backgroundColor:s:a}}catch{}return n}return A})(re),ud=["OL","UL","MENU"],er=function(e,A,r,t){for(var n=A.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,xi(n)&&n.data.trim().length>0)r.textNodes.push(new rd(e,n,r.styles));else if(Re(n))if(Li(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return er(e,o,r,t)});else{var s=yi(e,n);s.styles.isVisible()&&(Bd(n,s,t)?s.flags|=4:dd(s.styles)&&(s.flags|=2),ud.indexOf(n.tagName)!==-1&&(s.flags|=8),r.elements.push(s),n.slot,n.shadowRoot?er(e,n.shadowRoot,s,t):!hr(n)&&!Ii(n)&&!wr(n)&&er(e,n,s,t))}},yi=function(e,A){return kn(A)?new Ci(e,A):Hi(A)?new Qi(e,A):Ii(A)?new mi(e,A):fd(A)?new vi(e,A):hd(A)?new Sn(e,A):wd(A)?new Pn(e,A):wr(A)?new Ui(e,A):hr(A)?new Fi(e,A):Si(A)?new bi(e,A):new re(e,A)},Ei=function(e,A){var r=yi(e,A);return r.flags|=4,er(e,A,r,r),r},Bd=function(e,A,r){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Xn(e)&&r.styles.isTransparent()},dd=function(e){return e.isPositioned()||e.isFloating()},xi=function(e){return e.nodeType===Node.TEXT_NODE},Re=function(e){return e.nodeType===Node.ELEMENT_NODE},Ln=function(e){return Re(e)&&typeof e.style<"u"&&!tr(e)},tr=function(e){return typeof e.className=="object"},fd=function(e){return e.tagName==="LI"},hd=function(e){return e.tagName==="OL"},wd=function(e){return e.tagName==="INPUT"},pd=function(e){return e.tagName==="HTML"},Ii=function(e){return e.tagName==="svg"},Xn=function(e){return e.tagName==="BODY"},Hi=function(e){return e.tagName==="CANVAS"},Va=function(e){return e.tagName==="VIDEO"},kn=function(e){return e.tagName==="IMG"},Si=function(e){return e.tagName==="IFRAME"},Pa=function(e){return e.tagName==="STYLE"},Cd=function(e){return e.tagName==="SCRIPT"},hr=function(e){return e.tagName==="TEXTAREA"},wr=function(e){return e.tagName==="SELECT"},Li=function(e){return e.tagName==="SLOT"},Xa=function(e){return e.tagName.indexOf("-")>0},Qd=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var r=this.counters[A];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(A){var r=this.counters[A];return r||[]},e.prototype.pop=function(A){var r=this;A.forEach(function(t){return r.counters[t].pop()})},e.prototype.parse=function(A){var r=this,t=A.counterIncrement,n=A.counterReset,a=!0;t!==null&&t.forEach(function(o){var l=r.counters[o.counter];l&&o.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=o.increment)});var s=[];return a&&n.forEach(function(o){var l=r.counters[o.counter];s.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),s},e})(),Ja={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"]},Wa={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},md={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},vd={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ke=function(e,A,r,t,n,a){return e<A||e>r?pt(e,n,a.length>0):t.integers.reduce(function(s,o,l){for(;e>=o;)e-=o,s+=t.values[l];return s},"")+a},ki=function(e,A,r,t){var n="";do r||e--,n=t(e)+n,e/=A;while(e*A>=A);return n},FA=function(e,A,r,t,n){var a=r-A+1;return(e<0?"-":"")+(ki(Math.abs(e),a,t,function(s){return bA(Math.floor(s%a)+A)})+n)},Qe=function(e,A,r){r===void 0&&(r=". ");var t=A.length;return ki(Math.abs(e),t,!1,function(n){return A[Math.floor(n%t)]})+r},Te=1,le=2,ce=4,nt=8,se=function(e,A,r,t,n,a){if(e<-9999||e>9999)return pt(e,4,n.length>0);var s=Math.abs(e),o=n;if(s===0)return A[0]+o;for(var l=0;s>0&&l<=4;l++){var c=s%10;c===0&&EA(a,Te)&&o!==""?o=A[c]+o:c>1||c===1&&l===0||c===1&&l===1&&EA(a,le)||c===1&&l===1&&EA(a,ce)&&e>100||c===1&&l>1&&EA(a,nt)?o=A[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),s=Math.floor(s/10)}return(e<0?t:"")+o},Ya="十百千萬",Za="拾佰仟萬",za="マイナス",qr="마이너스",pt=function(e,A,r){var t=r?". ":"",n=r?"、":"",a=r?", ":"",s=r?" ":"";switch(A){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=FA(e,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return Qe(e,"〇一二三四五六七八九",n);case 6:return ke(e,1,3999,Ja,3,t).toLowerCase();case 7:return ke(e,1,3999,Ja,3,t);case 8:return FA(e,945,969,!1,t);case 9:return FA(e,97,122,!1,t);case 10:return FA(e,65,90,!1,t);case 11:return FA(e,1632,1641,!0,t);case 12:case 49:return ke(e,1,9999,Wa,3,t);case 35:return ke(e,1,9999,Wa,3,t).toLowerCase();case 13:return FA(e,2534,2543,!0,t);case 14:case 30:return FA(e,6112,6121,!0,t);case 15:return Qe(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Qe(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return se(e,"零一二三四五六七八九",Ya,"負",n,le|ce|nt);case 47:return se(e,"零壹貳參肆伍陸柒捌玖",Za,"負",n,Te|le|ce|nt);case 42:return se(e,"零一二三四五六七八九",Ya,"负",n,le|ce|nt);case 41:return se(e,"零壹贰叁肆伍陆柒捌玖",Za,"负",n,Te|le|ce|nt);case 26:return se(e,"〇一二三四五六七八九","十百千万",za,n,0);case 25:return se(e,"零壱弐参四伍六七八九","拾百千万",za,n,Te|le|ce);case 31:return se(e,"영일이삼사오육칠팔구","십백천만",qr,a,Te|le|ce);case 33:return se(e,"零一二三四五六七八九","十百千萬",qr,a,0);case 32:return se(e,"零壹貳參四五六七八九","拾百千",qr,a,Te|le|ce);case 18:return FA(e,2406,2415,!0,t);case 20:return ke(e,1,19999,vd,3,t);case 21:return FA(e,2790,2799,!0,t);case 22:return FA(e,2662,2671,!0,t);case 22:return ke(e,1,10999,md,3,t);case 23:return Qe(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Qe(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return FA(e,3302,3311,!0,t);case 28:return Qe(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Qe(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return FA(e,3792,3801,!0,t);case 37:return FA(e,6160,6169,!0,t);case 38:return FA(e,4160,4169,!0,t);case 39:return FA(e,2918,2927,!0,t);case 40:return FA(e,1776,1785,!0,t);case 43:return FA(e,3046,3055,!0,t);case 44:return FA(e,3174,3183,!0,t);case 45:return FA(e,3664,3673,!0,t);case 46:return FA(e,3872,3881,!0,t);default:return FA(e,48,57,!0,t)}},Mi="data-html2canvas-ignore",qa=(function(){function e(A,r,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new Qd,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,r){var t=this,n=Ud(A,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,o=n.contentWindow,l=o.document,c=yd(n).then(function(){return OA(t,void 0,void 0,function(){var g,B;return kA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(Hd),o&&(o.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==r.top||o.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-r.left,o.scrollY-r.top,0,0))),g=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,bd(l)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(l,B)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(xd(document.doctype)+"<html></html>"),Id(this.referenceElement.ownerDocument,a,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(A){if(In(A,2))debugger;if(Hi(A))return this.createCanvasClone(A);if(Va(A))return this.createVideoClone(A);if(Pa(A))return this.createStyleClone(A);var r=A.cloneNode(!1);return kn(r)&&(kn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(r.src=A.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Xa(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(A){var r=document.createElement("html2canvascustomelement");return $r(A.style,r),r},e.prototype.createStyleClone=function(A){try{var r=A.sheet;if(r&&r.cssRules){var t=[].slice.call(r.cssRules,0).reduce(function(a,s){return s&&typeof s.cssText=="string"?a+s.cssText:a},""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var r;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var a=A.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&a)s.putImageData(a.getImageData(0,0,A.width,A.height),0,0);else{var o=(r=A.getContext("webgl2"))!==null&&r!==void 0?r:A.getContext("webgl");if(o){var l=o.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},e.prototype.createVideoClone=function(A){var r=A.ownerDocument.createElement("canvas");r.width=A.offsetWidth,r.height=A.offsetHeight;var t=r.getContext("2d");try{return t&&(t.drawImage(A,0,0,r.width,r.height),this.options.allowTaint||t.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},e.prototype.appendChildNode=function(A,r,t){(!Re(r)||!Cd(r)&&!r.hasAttribute(Mi)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Re(r)||!Pa(r))&&A.appendChild(this.cloneNode(r,t))},e.prototype.cloneChildNodes=function(A,r,t){for(var n=this,a=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;a;a=a.nextSibling)if(Re(a)&&Li(a)&&typeof a.assignedNodes=="function"){var s=a.assignedNodes();s.length&&s.forEach(function(o){return n.appendChildNode(r,o,t)})}else this.appendChildNode(r,a,t)},e.prototype.cloneNode=function(A,r){if(xi(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Re(A)&&(Ln(A)||tr(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var a=t.getComputedStyle(A),s=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&Ln(n)&&(this.clonedReferenceElement=n),Xn(n)&&kd(n);var l=this.counters.parse(new Ia(this.context,a)),c=this.resolvePseudoContent(A,n,s,gt.BEFORE);Xa(A)&&(r=!0),Va(A)||this.cloneChildNodes(A,n,r),c&&n.insertBefore(c,n.firstChild);var g=this.resolvePseudoContent(A,n,o,gt.AFTER);return g&&n.appendChild(g),this.counters.pop(l),(a&&(this.options.copyStyles||tr(A))&&!Si(A)||r)&&$r(a,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(hr(A)||wr(A))&&(hr(n)||wr(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,r,t,n){var a=this;if(t){var s=t.content,o=r.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||t.display==="none")){this.counters.parse(new Ia(this.context,t));var l=new fB(this.context,t),c=o.createElement("html2canvaspseudoelement");$r(t,c),l.content.forEach(function(B){if(B.type===0)c.appendChild(o.createTextNode(B.value));else if(B.type===22){var u=o.createElement("img");u.src=B.value,u.style.opacity="1",c.appendChild(u)}else if(B.type===18){if(B.name==="attr"){var p=B.values.filter(uA);p.length&&c.appendChild(o.createTextNode(A.getAttribute(p[0].value)||""))}else if(B.name==="counter"){var Q=B.values.filter(je),C=Q[0],x=Q[1];if(C&&uA(C)){var U=a.counters.getCounterValue(C.value),y=x&&uA(x)?xn.parse(a.context,x.value):3;c.appendChild(o.createTextNode(pt(U,y,!1)))}}else if(B.name==="counters"){var L=B.values.filter(je),C=L[0],S=L[1],x=L[2];if(C&&uA(C)){var E=a.counters.getCounterValues(C.value),h=x&&uA(x)?xn.parse(a.context,x.value):3,I=S&&S.type===0?S.value:"",M=E.map(function(O){return pt(O,h,!1)}).join(I);c.appendChild(o.createTextNode(M))}}}else if(B.type===20)switch(B.value){case"open-quote":c.appendChild(o.createTextNode(xa(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(xa(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(B.value))}}),c.className=Mn+" "+Kn;var g=n===gt.BEFORE?" "+Mn:" "+Kn;return tr(r)?r.className.baseValue+=g:r.className+=g,c}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e})(),gt;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(gt||(gt={}));var Ud=function(e,A){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=A.width.toString(),r.height=A.height.toString(),r.scrolling="no",r.setAttribute(Mi,"true"),e.body.appendChild(r),r},Fd=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},bd=function(e){return Promise.all([].slice.call(e.images,0).map(Fd))},yd=function(e){return new Promise(function(A,r){var t=e.contentWindow;if(!t)return r("No window assigned for iframe");var n=t.document;t.onload=e.onload=function(){t.onload=e.onload=null;var a=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(a),A(e))},50)}})},Ed=["all","d","content"],$r=function(e,A){for(var r=e.length-1;r>=0;r--){var t=e.item(r);Ed.indexOf(t)===-1&&A.style.setProperty(t,e.getPropertyValue(t))}return A},xd=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},Id=function(e,A,r){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,r)},Hd=function(e){var A=e[0],r=e[1],t=e[2];A.scrollLeft=r,A.scrollTop=t},Sd=":before",Ld=":after",Mn="___html2canvas___pseudoelement_before",Kn="___html2canvas___pseudoelement_after",$a=`{
+ content: "" !important;
+ display: none !important;
+}`,kd=function(e){Md(e,"."+Mn+Sd+$a+`
+ .`+Kn+Ld+$a)},Md=function(e,A){var r=e.ownerDocument;if(r){var t=r.createElement("style");t.textContent=A,e.appendChild(t)}},Ki=(function(){function e(){}return e.getOrigin=function(A){var r=e._link;return r?(r.href=A,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e})(),Kd=(function(){function e(A,r){this.context=A,this._options=r,this._cache={}}return e.prototype.addImage=function(A){var r=Promise.resolve();return this.has(A)||(en(A)||Rd(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),r},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return OA(this,void 0,void 0,function(){var r,t,n,a,s=this;return kA(this,function(o){switch(o.label){case 0:return r=Ki.isSameOrigin(A),t=!An(A)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!r,n=!An(A)&&!r&&!en(A)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!An(A)&&!en(A)&&!n&&!t?[2]:(a=A,n?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(l,c){var g=new Image;g.onload=function(){return l(g)},g.onerror=c,(Nd(a)||t)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(function(){return l(g)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(a,s){var o=HA.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")a(l.response);else{var B=new FileReader;B.addEventListener("load",function(){return a(B.result)},!1),B.addEventListener("error",function(u){return s(u)},!1),B.readAsDataURL(l.response)}else s("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=s;var c=t.indexOf("?")>-1?"&":"?";if(l.open("GET",""+t+c+"url="+encodeURIComponent(A)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),r._options.imageTimeout){var g=r._options.imageTimeout;l.timeout=g,l.ontimeout=function(){return s("Timed out ("+g+"ms) proxying "+n)}}l.send()})},e})(),Td=/^data:image\/svg\+xml/i,Dd=/^data:image\/.*;base64,/i,Od=/^data:image\/.*/i,Rd=function(e){return HA.SUPPORT_SVG_DRAWING||!_d(e)},An=function(e){return Od.test(e)},Nd=function(e){return Dd.test(e)},en=function(e){return e.substr(0,4)==="blob"},_d=function(e){return e.substr(-3).toLowerCase()==="svg"||Td.test(e)},V=(function(){function e(A,r){this.type=0,this.x=A,this.y=r}return e.prototype.add=function(A,r){return new e(this.x+A,this.y+r)},e})(),Me=function(e,A,r){return new V(e.x+(A.x-e.x)*r,e.y+(A.y-e.y)*r)},Wt=(function(){function e(A,r,t,n){this.type=1,this.start=A,this.startControl=r,this.endControl=t,this.end=n}return e.prototype.subdivide=function(A,r){var t=Me(this.start,this.startControl,A),n=Me(this.startControl,this.endControl,A),a=Me(this.endControl,this.end,A),s=Me(t,n,A),o=Me(n,a,A),l=Me(s,o,A);return r?new e(this.start,t,s,l):new e(l,o,a,this.end)},e.prototype.add=function(A,r){return new e(this.start.add(A,r),this.startControl.add(A,r),this.endControl.add(A,r),this.end.add(A,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),PA=function(e){return e.type===1},Gd=(function(){function e(A){var r=A.styles,t=A.bounds,n=tt(r.borderTopLeftRadius,t.width,t.height),a=n[0],s=n[1],o=tt(r.borderTopRightRadius,t.width,t.height),l=o[0],c=o[1],g=tt(r.borderBottomRightRadius,t.width,t.height),B=g[0],u=g[1],p=tt(r.borderBottomLeftRadius,t.width,t.height),Q=p[0],C=p[1],x=[];x.push((a+l)/t.width),x.push((Q+B)/t.width),x.push((s+C)/t.height),x.push((c+u)/t.height);var U=Math.max.apply(Math,x);U>1&&(a/=U,s/=U,l/=U,c/=U,B/=U,u/=U,Q/=U,C/=U);var y=t.width-l,L=t.height-u,S=t.width-B,E=t.height-C,h=r.borderTopWidth,I=r.borderRightWidth,M=r.borderBottomWidth,k=r.borderLeftWidth,R=wA(r.paddingTop,A.bounds.width),O=wA(r.paddingRight,A.bounds.width),Z=wA(r.paddingBottom,A.bounds.width),D=wA(r.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||s>0?QA(t.left+k/3,t.top+h/3,a-k/3,s-h/3,gA.TOP_LEFT):new V(t.left+k/3,t.top+h/3),this.topRightBorderDoubleOuterBox=a>0||s>0?QA(t.left+y,t.top+h/3,l-I/3,c-h/3,gA.TOP_RIGHT):new V(t.left+t.width-I/3,t.top+h/3),this.bottomRightBorderDoubleOuterBox=B>0||u>0?QA(t.left+S,t.top+L,B-I/3,u-M/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-I/3,t.top+t.height-M/3),this.bottomLeftBorderDoubleOuterBox=Q>0||C>0?QA(t.left+k/3,t.top+E,Q-k/3,C-M/3,gA.BOTTOM_LEFT):new V(t.left+k/3,t.top+t.height-M/3),this.topLeftBorderDoubleInnerBox=a>0||s>0?QA(t.left+k*2/3,t.top+h*2/3,a-k*2/3,s-h*2/3,gA.TOP_LEFT):new V(t.left+k*2/3,t.top+h*2/3),this.topRightBorderDoubleInnerBox=a>0||s>0?QA(t.left+y,t.top+h*2/3,l-I*2/3,c-h*2/3,gA.TOP_RIGHT):new V(t.left+t.width-I*2/3,t.top+h*2/3),this.bottomRightBorderDoubleInnerBox=B>0||u>0?QA(t.left+S,t.top+L,B-I*2/3,u-M*2/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-I*2/3,t.top+t.height-M*2/3),this.bottomLeftBorderDoubleInnerBox=Q>0||C>0?QA(t.left+k*2/3,t.top+E,Q-k*2/3,C-M*2/3,gA.BOTTOM_LEFT):new V(t.left+k*2/3,t.top+t.height-M*2/3),this.topLeftBorderStroke=a>0||s>0?QA(t.left+k/2,t.top+h/2,a-k/2,s-h/2,gA.TOP_LEFT):new V(t.left+k/2,t.top+h/2),this.topRightBorderStroke=a>0||s>0?QA(t.left+y,t.top+h/2,l-I/2,c-h/2,gA.TOP_RIGHT):new V(t.left+t.width-I/2,t.top+h/2),this.bottomRightBorderStroke=B>0||u>0?QA(t.left+S,t.top+L,B-I/2,u-M/2,gA.BOTTOM_RIGHT):new V(t.left+t.width-I/2,t.top+t.height-M/2),this.bottomLeftBorderStroke=Q>0||C>0?QA(t.left+k/2,t.top+E,Q-k/2,C-M/2,gA.BOTTOM_LEFT):new V(t.left+k/2,t.top+t.height-M/2),this.topLeftBorderBox=a>0||s>0?QA(t.left,t.top,a,s,gA.TOP_LEFT):new V(t.left,t.top),this.topRightBorderBox=l>0||c>0?QA(t.left+y,t.top,l,c,gA.TOP_RIGHT):new V(t.left+t.width,t.top),this.bottomRightBorderBox=B>0||u>0?QA(t.left+S,t.top+L,B,u,gA.BOTTOM_RIGHT):new V(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=Q>0||C>0?QA(t.left,t.top+E,Q,C,gA.BOTTOM_LEFT):new V(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||s>0?QA(t.left+k,t.top+h,Math.max(0,a-k),Math.max(0,s-h),gA.TOP_LEFT):new V(t.left+k,t.top+h),this.topRightPaddingBox=l>0||c>0?QA(t.left+Math.min(y,t.width-I),t.top+h,y>t.width+I?0:Math.max(0,l-I),Math.max(0,c-h),gA.TOP_RIGHT):new V(t.left+t.width-I,t.top+h),this.bottomRightPaddingBox=B>0||u>0?QA(t.left+Math.min(S,t.width-k),t.top+Math.min(L,t.height-M),Math.max(0,B-I),Math.max(0,u-M),gA.BOTTOM_RIGHT):new V(t.left+t.width-I,t.top+t.height-M),this.bottomLeftPaddingBox=Q>0||C>0?QA(t.left+k,t.top+Math.min(E,t.height-M),Math.max(0,Q-k),Math.max(0,C-M),gA.BOTTOM_LEFT):new V(t.left+k,t.top+t.height-M),this.topLeftContentBox=a>0||s>0?QA(t.left+k+D,t.top+h+R,Math.max(0,a-(k+D)),Math.max(0,s-(h+R)),gA.TOP_LEFT):new V(t.left+k+D,t.top+h+R),this.topRightContentBox=l>0||c>0?QA(t.left+Math.min(y,t.width+k+D),t.top+h+R,y>t.width+k+D?0:l-k+D,c-(h+R),gA.TOP_RIGHT):new V(t.left+t.width-(I+O),t.top+h+R),this.bottomRightContentBox=B>0||u>0?QA(t.left+Math.min(S,t.width-(k+D)),t.top+Math.min(L,t.height+h+R),Math.max(0,B-(I+O)),u-(M+Z),gA.BOTTOM_RIGHT):new V(t.left+t.width-(I+O),t.top+t.height-(M+Z)),this.bottomLeftContentBox=Q>0||C>0?QA(t.left+k+D,t.top+E,Math.max(0,Q-(k+D)),C-(M+Z),gA.BOTTOM_LEFT):new V(t.left+k+D,t.top+t.height-(M+Z))}return e})(),gA;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gA||(gA={}));var QA=function(e,A,r,t,n){var a=4*((Math.sqrt(2)-1)/3),s=r*a,o=t*a,l=e+r,c=A+t;switch(n){case gA.TOP_LEFT:return new Wt(new V(e,c),new V(e,c-o),new V(l-s,A),new V(l,A));case gA.TOP_RIGHT:return new Wt(new V(e,A),new V(e+s,A),new V(l,c-o),new V(l,c));case gA.BOTTOM_RIGHT:return new Wt(new V(l,A),new V(l,A+o),new V(e+s,c),new V(e,c));case gA.BOTTOM_LEFT:default:return new Wt(new V(l,c),new V(l-s,c),new V(e,A+o),new V(e,A))}},pr=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},jd=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Cr=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Vd=(function(){function e(A,r,t){this.offsetX=A,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return e})(),Yt=(function(){function e(A,r){this.path=A,this.target=r,this.type=1}return e})(),Pd=(function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e})(),Xd=function(e){return e.type===0},Ti=function(e){return e.type===1},Jd=function(e){return e.type===2},As=function(e,A){return e.length===A.length?e.some(function(r,t){return r===A[t]}):!1},Wd=function(e,A,r,t,n){return e.map(function(a,s){switch(s){case 0:return a.add(A,r);case 1:return a.add(A+t,r);case 2:return a.add(A+t,r+n);case 3:return a.add(A,r+n)}return a})},Di=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),Oi=(function(){function e(A,r){if(this.container=A,this.parent=r,this.effects=[],this.curves=new Gd(this.container),this.container.styles.opacity<1&&this.effects.push(new Pd(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new Vd(t,n,a))}if(this.container.styles.overflowX!==0){var s=pr(this.curves),o=Cr(this.curves);As(s,o)?this.effects.push(new Yt(s,6)):(this.effects.push(new Yt(s,2)),this.effects.push(new Yt(o,4)))}}return e.prototype.getEffects=function(A){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,n=this.effects.slice(0);t;){var a=t.effects.filter(function(l){return!Ti(l)});if(r||t.container.styles.position!==0||!t.parent){if(n.unshift.apply(n,a),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var s=pr(t.curves),o=Cr(t.curves);As(s,o)||n.unshift(new Yt(o,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(l){return EA(l.target,A)})},e})(),Tn=function(e,A,r,t){e.container.elements.forEach(function(n){var a=EA(n.flags,4),s=EA(n.flags,2),o=new Oi(n,e);EA(n.styles.display,2048)&&t.push(o);var l=EA(n.flags,8)?[]:t;if(a||s){var c=a||n.styles.isPositioned()?r:A,g=new Di(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var B=n.styles.zIndex.order;if(B<0){var u=0;c.negativeZIndex.some(function(Q,C){return B>Q.element.container.styles.zIndex.order?(u=C,!1):u>0}),c.negativeZIndex.splice(u,0,g)}else if(B>0){var p=0;c.positiveZIndex.some(function(Q,C){return B>=Q.element.container.styles.zIndex.order?(p=C+1,!1):p>0}),c.positiveZIndex.splice(p,0,g)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else n.styles.isFloating()?c.nonPositionedFloats.push(g):c.nonPositionedInlineLevel.push(g);Tn(o,g,a?g:r,l)}else n.styles.isInlineLevel()?A.inlineLevel.push(o):A.nonInlineLevel.push(o),Tn(o,A,r,l);EA(n.flags,8)&&Ri(n,l)})},Ri=function(e,A){for(var r=e instanceof Sn?e.start:1,t=e instanceof Sn?e.reversed:!1,n=0;n<A.length;n++){var a=A[n];a.container instanceof vi&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=pt(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},Yd=function(e){var A=new Oi(e,null),r=new Di(A),t=[];return Tn(A,r,r,t),Ri(A.container,t),r},es=function(e,A){switch(A){case 0:return JA(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return JA(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return JA(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return JA(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Zd=function(e,A){switch(A){case 0:return JA(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return JA(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return JA(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return JA(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},zd=function(e,A){switch(A){case 0:return JA(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return JA(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return JA(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return JA(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},qd=function(e,A){switch(A){case 0:return Zt(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Zt(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Zt(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Zt(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Zt=function(e,A){var r=[];return PA(e)?r.push(e.subdivide(.5,!1)):r.push(e),PA(A)?r.push(A.subdivide(.5,!0)):r.push(A),r},JA=function(e,A,r,t){var n=[];return PA(e)?n.push(e.subdivide(.5,!1)):n.push(e),PA(r)?n.push(r.subdivide(.5,!0)):n.push(r),PA(t)?n.push(t.subdivide(.5,!0).reverse()):n.push(t),PA(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},Ni=function(e){var A=e.bounds,r=e.styles;return A.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Qr=function(e){var A=e.styles,r=e.bounds,t=wA(A.paddingLeft,r.width),n=wA(A.paddingRight,r.width),a=wA(A.paddingTop,r.width),s=wA(A.paddingBottom,r.width);return r.add(t+A.borderLeftWidth,a+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+t+n),-(A.borderTopWidth+A.borderBottomWidth+a+s))},$d=function(e,A){return e===0?A.bounds:e===2?Qr(A):Ni(A)},Af=function(e,A){return e===0?A.bounds:e===2?Qr(A):Ni(A)},tn=function(e,A,r){var t=$d(De(e.styles.backgroundOrigin,A),e),n=Af(De(e.styles.backgroundClip,A),e),a=ef(De(e.styles.backgroundSize,A),r,t),s=a[0],o=a[1],l=tt(De(e.styles.backgroundPosition,A),t.width-s,t.height-o),c=tf(De(e.styles.backgroundRepeat,A),l,a,t,n),g=Math.round(t.left+l[0]),B=Math.round(t.top+l[1]);return[c,g,B,s,o]},Ke=function(e){return uA(e)&&e.value===Ne.AUTO},zt=function(e){return typeof e=="number"},ef=function(e,A,r){var t=A[0],n=A[1],a=A[2],s=e[0],o=e[1];if(!s)return[0,0];if(yA(s)&&o&&yA(o))return[wA(s,r.width),wA(o,r.height)];var l=zt(a);if(uA(s)&&(s.value===Ne.CONTAIN||s.value===Ne.COVER)){if(zt(a)){var c=r.width/r.height;return c<a!=(s.value===Ne.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var g=zt(t),B=zt(n),u=g||B;if(Ke(s)&&(!o||Ke(o))){if(g&&B)return[t,n];if(!l&&!u)return[r.width,r.height];if(u&&l){var p=g?t:n*a,Q=B?n:t/a;return[p,Q]}var C=g?t:r.width,x=B?n:r.height;return[C,x]}if(l){var U=0,y=0;return yA(s)?U=wA(s,r.width):yA(o)&&(y=wA(o,r.height)),Ke(s)?U=y*a:(!o||Ke(o))&&(y=U/a),[U,y]}var L=null,S=null;if(yA(s)?L=wA(s,r.width):o&&yA(o)&&(S=wA(o,r.height)),L!==null&&(!o||Ke(o))&&(S=g&&B?L/t*n:r.height),S!==null&&Ke(s)&&(L=g&&B?S/n*t:r.width),L!==null&&S!==null)return[L,S];throw new Error("Unable to calculate background-size for element")},De=function(e,A){var r=e[A];return typeof r>"u"?e[0]:r},tf=function(e,A,r,t,n){var a=A[0],s=A[1],o=r[0],l=r[1];switch(e){case 2:return[new V(Math.round(t.left),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(l+t.top+s)),new V(Math.round(t.left),Math.round(l+t.top+s))];case 3:return[new V(Math.round(t.left+a),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.height+t.top)),new V(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new V(Math.round(t.left+a),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s+l)),new V(Math.round(t.left+a),Math.round(t.top+s+l))];default:return[new V(Math.round(n.left),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.height+n.top)),new V(Math.round(n.left),Math.round(n.height+n.top))]}},rf="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ts="Hidden Text",nf=(function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,r){var t=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),s=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",s.appendChild(t),n.src=rf,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=A,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(ts)),t.appendChild(a),t.appendChild(n);var o=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode(ts)),t.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-t.offsetTop+2;return s.removeChild(t),{baseline:o,middle:l}},e.prototype.getMetrics=function(A,r){var t=A+" "+r;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(A,r)),this._data[t]},e})(),_i=(function(){function e(A,r){this.context=A,this.options=r}return e})(),af=1e4,sf=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new nf(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return A.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(n){return t.applyEffect(n)})},A.prototype.applyEffect=function(r){this.ctx.save(),Jd(r)&&(this.ctx.globalAlpha=r.opacity),Xd(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),Ti(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(r){return OA(this,void 0,void 0,function(){return kA(this,function(t){switch(t.label){case 0:if(EA(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(r,t,n){var a=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+n);else{var s=Vn(r.text);s.reduce(function(o,l){return a.ctx.fillText(l,o,r.bounds.top+n),o+a.ctx.measureText(l).width},r.bounds.left)}},A.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=uf(r.fontFamily).join(", "),a=Ft(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,t,r.fontWeight,a,n].join(" "),n,a]},A.prototype.renderTextNode=function(r,t){return OA(this,void 0,void 0,function(){var n,a,s,o,l,c,g,B,u=this;return kA(this,function(p){return n=this.createFontStyle(t),a=n[0],s=n[1],o=n[2],this.ctx.font=a,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,g=l.middle,B=t.paintOrder,r.textBounds.forEach(function(Q){B.forEach(function(C){switch(C){case 0:u.ctx.fillStyle=xA(t.color),u.renderTextWithLetterSpacing(Q,t.letterSpacing,c);var x=t.textShadow;x.length&&Q.text.trim().length&&(x.slice(0).reverse().forEach(function(U){u.ctx.shadowColor=xA(U.color),u.ctx.shadowOffsetX=U.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=U.offsetY.number*u.options.scale,u.ctx.shadowBlur=U.blur.number,u.renderTextWithLetterSpacing(Q,t.letterSpacing,c)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=xA(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(U){switch(U){case 1:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top+c),Q.bounds.width,1);break;case 2:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top),Q.bounds.width,1);break;case 3:u.ctx.fillRect(Q.bounds.left,Math.ceil(Q.bounds.top+g),Q.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&Q.text.trim().length&&(u.ctx.strokeStyle=xA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(Q.text,Q.bounds.left,Q.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(r,t,n){if(n&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=Qr(r),s=Cr(t);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,y,y,c,g,B,u,S,p,Q,E,C,x,U,y,L,S,E;return kA(this,function(h){switch(h.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,s=0,o=t.textNodes,h.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof Ci))return[3,8];h.label=5;case 5:return h.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,8];case 7:return h.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Qi&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof mi))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,12];case 11:return h.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof bi&&t.tree?(c=new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,c.render(t.tree)]):[3,14];case 13:g=h.sent(),t.width&&t.height&&this.ctx.drawImage(g,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),h.label=14;case 14:if(t instanceof Pn&&(B=Math.min(t.bounds.width,t.bounds.height),t.type===dr?t.checked&&(this.ctx.save(),this.path([new V(t.bounds.left+B*.39363,t.bounds.top+B*.79),new V(t.bounds.left+B*.16,t.bounds.top+B*.5549),new V(t.bounds.left+B*.27347,t.bounds.top+B*.44071),new V(t.bounds.left+B*.39694,t.bounds.top+B*.5649),new V(t.bounds.left+B*.72983,t.bounds.top+B*.23),new V(t.bounds.left+B*.84,t.bounds.top+B*.34085),new V(t.bounds.left+B*.39363,t.bounds.top+B*.79)]),this.ctx.fillStyle=xA(ja),this.ctx.fill(),this.ctx.restore()):t.type===fr&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+B/2,t.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=xA(ja),this.ctx.fill(),this.ctx.restore())),of(t)&&t.value.length){switch(u=this.createFontStyle(a),S=u[0],p=u[1],Q=this.fontMetrics.getMetrics(S,p).baseline,this.ctx.font=S,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=cf(t.styles.textAlign),E=Qr(t),C=0,t.styles.textAlign){case 1:C+=E.width/2;break;case 2:C+=E.width;break}x=E.add(C,0,0,-E.height/2+1),this.ctx.save(),this.path([new V(E.left,E.top),new V(E.left+E.width,E.top),new V(E.left+E.width,E.top+E.height),new V(E.left,E.top+E.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ct(t.value,x),a.letterSpacing,Q),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!EA(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(U=t.styles.listStyleImage,U.type!==0)return[3,18];y=void 0,L=U.url,h.label=15;case 15:return h.trys.push([15,17,,18]),[4,this.context.cache.match(L)];case 16:return y=h.sent(),this.ctx.drawImage(y,t.bounds.left-(y.width+10),t.bounds.top),[3,18];case 17:return h.sent(),this.context.logger.error("Error loading list-style-image "+L),[3,18];case 18:return[3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(S=this.createFontStyle(a)[0],this.ctx.font=S,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",E=new oe(t.bounds.left,t.bounds.top+wA(t.styles.paddingTop,t.bounds.width),t.bounds.width,ya(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ct(r.listValue,E),a.letterSpacing,ya(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),h.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(r){return OA(this,void 0,void 0,function(){var t,n,U,a,s,U,o,l,U,c,g,U,B,u,U,p,Q,U,C,x,U;return kA(this,function(y){switch(y.label){case 0:if(EA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:y.sent(),t=0,n=r.negativeZIndex,y.label=2;case 2:return t<n.length?(U=n[t],[4,this.renderStack(U)]):[3,5];case 3:y.sent(),y.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:y.sent(),a=0,s=r.nonInlineLevel,y.label=7;case 7:return a<s.length?(U=s[a],[4,this.renderNode(U)]):[3,10];case 8:y.sent(),y.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,y.label=11;case 11:return o<l.length?(U=l[o],[4,this.renderStack(U)]):[3,14];case 12:y.sent(),y.label=13;case 13:return o++,[3,11];case 14:c=0,g=r.nonPositionedInlineLevel,y.label=15;case 15:return c<g.length?(U=g[c],[4,this.renderStack(U)]):[3,18];case 16:y.sent(),y.label=17;case 17:return c++,[3,15];case 18:B=0,u=r.inlineLevel,y.label=19;case 19:return B<u.length?(U=u[B],[4,this.renderNode(U)]):[3,22];case 20:y.sent(),y.label=21;case 21:return B++,[3,19];case 22:p=0,Q=r.zeroOrAutoZIndexOrTransformedOrOpacity,y.label=23;case 23:return p<Q.length?(U=Q[p],[4,this.renderStack(U)]):[3,26];case 24:y.sent(),y.label=25;case 25:return p++,[3,23];case 26:C=0,x=r.positiveZIndex,y.label=27;case 27:return C<x.length?(U=x[C],[4,this.renderStack(U)]):[3,30];case 28:y.sent(),y.label=29;case 29:return C++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},A.prototype.formatPath=function(r){var t=this;r.forEach(function(n,a){var s=PA(n)?n.start:n;a===0?t.ctx.moveTo(s.x,s.y):t.ctx.lineTo(s.x,s.y),PA(n)&&t.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(r,t,n,a){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},A.prototype.resizeImage=function(r,t,n){var a;if(r.width===t&&r.height===n)return r;var s=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=s.createElement("canvas");o.width=Math.max(1,t),o.height=Math.max(1,n);var l=o.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,t,n),o},A.prototype.renderBackgroundImage=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l;return kA(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,n=function(g){var B,u,p,R,tA,AA,D,z,M,Q,R,tA,AA,D,z,C,x,U,y,L,S,E,h,I,M,k,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,H,j,_;return kA(this,function(F){switch(F.label){case 0:if(g.type!==0)return[3,5];B=void 0,u=g.url,F.label=1;case 1:return F.trys.push([1,3,,4]),[4,a.context.cache.match(u)];case 2:return B=F.sent(),[3,4];case 3:return F.sent(),a.context.logger.error("Error loading background-image "+u),[3,4];case 4:return B&&(p=tn(r,t,[B.width,B.height,B.width/B.height]),R=p[0],tA=p[1],AA=p[2],D=p[3],z=p[4],M=a.ctx.createPattern(a.resizeImage(B,D,z),"repeat"),a.renderRepeat(R,M,tA,AA)),[3,6];case 5:Xg(g)?(Q=tn(r,t,[null,null,null]),R=Q[0],tA=Q[1],AA=Q[2],D=Q[3],z=Q[4],C=_g(g.angle,D,z),x=C[0],U=C[1],y=C[2],L=C[3],S=C[4],E=document.createElement("canvas"),E.width=D,E.height=z,h=E.getContext("2d"),I=h.createLinearGradient(U,L,y,S),Fa(g.stops,x).forEach(function(N){return I.addColorStop(N.stop,xA(N.color))}),h.fillStyle=I,h.fillRect(0,0,D,z),D>0&&z>0&&(M=a.ctx.createPattern(E,"repeat"),a.renderRepeat(R,M,tA,AA))):Jg(g)&&(k=tn(r,t,[null,null,null]),R=k[0],O=k[1],Z=k[2],D=k[3],z=k[4],eA=g.position.length===0?[_n]:g.position,tA=wA(eA[0],D),AA=wA(eA[eA.length-1],z),dA=Gg(g,tA,AA,D,z),aA=dA[0],q=dA[1],aA>0&&q>0&&(lA=a.ctx.createRadialGradient(O+tA,Z+AA,0,O+tA,Z+AA,aA),Fa(g.stops,aA*2).forEach(function(N){return lA.addColorStop(N.stop,xA(N.color))}),a.path(R),a.ctx.fillStyle=lA,aA!==q?(sA=r.bounds.left+.5*r.bounds.width,H=r.bounds.top+.5*r.bounds.height,j=q/aA,_=1/j,a.ctx.save(),a.ctx.translate(sA,H),a.ctx.transform(1,0,0,j,0,0),a.ctx.translate(-sA,-H),a.ctx.fillRect(O,_*(Z-H)+H,D,z*_),a.ctx.restore()):a.ctx.fill())),F.label=6;case 6:return t--,[2]}})},a=this,s=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(r,t,n){return OA(this,void 0,void 0,function(){return kA(this,function(a){return this.path(es(n,t)),this.ctx.fillStyle=xA(r),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(r,t,n,a){return OA(this,void 0,void 0,function(){var s,o;return kA(this,function(l){switch(l.label){case 0:return t<3?[4,this.renderSolidBorder(r,n,a)]:[3,2];case 1:return l.sent(),[2];case 2:return s=Zd(a,n),this.path(s),this.ctx.fillStyle=xA(r),this.ctx.fill(),o=zd(a,n),this.path(o),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,c,g,B=this;return kA(this,function(u){switch(u.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,n=!pe(t.backgroundColor)||t.backgroundImage.length,a=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],s=lf(De(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),pe(t.backgroundColor)||(this.ctx.fillStyle=xA(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(p){B.ctx.save();var Q=pr(r.curves),C=p.inset?0:af,x=Wd(Q,-C+(p.inset?1:-1)*p.spread.number,(p.inset?1:-1)*p.spread.number,p.spread.number*(p.inset?-2:2),p.spread.number*(p.inset?-2:2));p.inset?(B.path(Q),B.ctx.clip(),B.mask(x)):(B.mask(Q),B.ctx.clip(),B.path(x)),B.ctx.shadowOffsetX=p.offsetX.number+C,B.ctx.shadowOffsetY=p.offsetY.number,B.ctx.shadowColor=xA(p.color),B.ctx.shadowBlur=p.blur.number,B.ctx.fillStyle=p.inset?xA(p.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),u.label=2;case 2:o=0,l=0,c=a,u.label=3;case 3:return l<c.length?(g=c[l],g.style!==0&&!pe(g.color)&&g.width>0?g.style!==2?[3,5]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return g.style!==3?[3,7]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,3)];case 6:return u.sent(),[3,11];case 7:return g.style!==4?[3,9]:[4,this.renderDoubleBorder(g.color,g.width,o,r.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(g.color,o,r.curves)];case 10:u.sent(),u.label=11;case 11:o++,u.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(r,t,n,a,s){return OA(this,void 0,void 0,function(){var o,l,c,g,B,u,p,Q,C,x,U,y,L,S,E,h,E,h;return kA(this,function(I){return this.ctx.save(),o=qd(a,n),l=es(a,n),s===2&&(this.path(l),this.ctx.clip()),PA(l[0])?(c=l[0].start.x,g=l[0].start.y):(c=l[0].x,g=l[0].y),PA(l[1])?(B=l[1].end.x,u=l[1].end.y):(B=l[1].x,u=l[1].y),n===0||n===2?p=Math.abs(c-B):p=Math.abs(g-u),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),Q=t<3?t*3:t*2,C=t<3?t*2:t,s===3&&(Q=t,C=t),x=!0,p<=Q*2?x=!1:p<=Q*2+C?(U=p/(2*Q+C),Q*=U,C*=U):(y=Math.floor((p+C)/(Q+C)),L=(p-y*Q)/(y-1),S=(p-(y+1)*Q)/y,C=S<=0||Math.abs(C-L)<Math.abs(C-S)?L:S),x&&(s===3?this.ctx.setLineDash([0,Q+C]):this.ctx.setLineDash([Q,C])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=xA(r),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(PA(l[0])&&(E=l[3],h=l[0],this.ctx.beginPath(),this.formatPath([new V(E.end.x,E.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke()),PA(l[1])&&(E=l[1],h=l[2],this.ctx.beginPath(),this.formatPath([new V(E.end.x,E.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Yd(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(_i),of=function(e){return e instanceof Fi||e instanceof Ui?!0:e instanceof Pn&&e.type!==fr&&e.type!==dr},lf=function(e,A){switch(e){case 0:return pr(A);case 2:return jd(A);default:return Cr(A)}},cf=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},gf=["-apple-system","system-ui"],uf=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return gf.indexOf(A)===-1}):e},Bf=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),n}return A.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t,n;return kA(this,function(a){switch(a.label){case 0:return t=Hn(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,df(t)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A})(_i),df=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},ff=(function(){function e(A){var r=A.id,t=A.enabled;this.id=r,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,It([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,It([this.id,this.getTime()+"ms"],A))},e.prototype.warn=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,It([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.error=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,It([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e})(),hf=(function(){function e(A,r){var t;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new ff({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new Kd(this,A)}return e.instanceCount=1,e})(),wf=function(e,A){return A===void 0&&(A={}),pf(e,A)};typeof window<"u"&&Ki.setContext(window);var pf=function(e,A){return OA(void 0,void 0,void 0,function(){var r,t,n,a,s,o,l,c,g,B,u,p,Q,C,x,U,y,L,S,E,I,h,I,M,k,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,H,j;return kA(this,function(_){switch(_.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return n={allowTaint:(M=A.allowTaint)!==null&&M!==void 0?M:!1,imageTimeout:(k=A.imageTimeout)!==null&&k!==void 0?k:15e3,proxy:A.proxy,useCORS:(R=A.useCORS)!==null&&R!==void 0?R:!1},a=fn({logging:(O=A.logging)!==null&&O!==void 0?O:!0,cache:A.cache},n),s={windowWidth:(Z=A.windowWidth)!==null&&Z!==void 0?Z:t.innerWidth,windowHeight:(D=A.windowHeight)!==null&&D!==void 0?D:t.innerHeight,scrollX:(z=A.scrollX)!==null&&z!==void 0?z:t.pageXOffset,scrollY:(eA=A.scrollY)!==null&&eA!==void 0?eA:t.pageYOffset},o=new oe(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new hf(a,o),c=(tA=A.foreignObjectRendering)!==null&&tA!==void 0?tA:!1,g={allowTaint:(AA=A.allowTaint)!==null&&AA!==void 0?AA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),B=new qa(l,e,g),u=B.clonedReferenceElement,u?[4,B.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=_.sent(),Q=Xn(u)||pd(u)?Wl(u.ownerDocument):Ur(l,u),C=Q.width,x=Q.height,U=Q.left,y=Q.top,L=Cf(l,u,A.backgroundColor),S={canvas:A.canvas,backgroundColor:L,scale:(aA=(dA=A.scale)!==null&&dA!==void 0?dA:t.devicePixelRatio)!==null&&aA!==void 0?aA:1,x:((q=A.x)!==null&&q!==void 0?q:0)+U,y:((lA=A.y)!==null&&lA!==void 0?lA:0)+y,width:(sA=A.width)!==null&&sA!==void 0?sA:Math.ceil(C),height:(H=A.height)!==null&&H!==void 0?H:Math.ceil(x)},c?(l.logger.debug("Document cloned, using foreign object rendering"),I=new Bf(l,S),[4,I.render(u)]):[3,3];case 2:return E=_.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+U+","+y+" with size "+C+"x"+x+" using computed rendering"),l.logger.debug("Starting DOM parsing"),h=Ei(l,u),L===h.styles.backgroundColor&&(h.styles.backgroundColor=ie.TRANSPARENT),l.logger.debug("Starting renderer for element at "+S.x+","+S.y+" with size "+S.width+"x"+S.height),I=new sf(l,S),[4,I.render(h)];case 4:E=_.sent(),_.label=5;case 5:return(!((j=A.removeContainer)!==null&&j!==void 0)||j)&&(qa.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,E]}})})},Cf=function(e,A,r){var t=A.ownerDocument,n=t.documentElement?ot(e,getComputedStyle(t.documentElement).backgroundColor):ie.TRANSPARENT,a=t.body?ot(e,getComputedStyle(t.body).backgroundColor):ie.TRANSPARENT,s=typeof r=="string"?ot(e,r):r===null?ie.TRANSPARENT:4294967295;return A===t.documentElement?pe(n)?pe(a)?s:a:n:s},rn={body:{background:"rgb(32, 32, 32)"},rbgcpInputLabel:{color:"rgb(212, 212, 212)"},rbgcpControlBtnWrapper:{background:"rgb(54, 54, 54)"},rbgcpInput:{border:"none",color:"white",background:"rgb(54, 54, 54)"},rbgcpControlBtn:{color:"rgb(212, 212, 212)"},rbgcpControlIcon:{stroke:"rgb(212, 212, 212)"},rbgcpControlIcon2:{fill:"rgb(212, 212, 212)"},rbgcpControlInput:{color:"white"},rbgcpControlBtnSelected:{background:"black",color:"#568cf5"},rbgcpDegreeIcon:{color:"rgb(212, 212, 212)"},rbgcpColorModelDropdown:{background:"rgb(32, 32, 32)"},rbgcpComparibleLabel:{color:"rgb(212, 212, 212)"}},IA=function(){return IA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},IA.apply(this,arguments)},Qf={body:{boxSizing:"border-box",background:"rgb(255, 255, 255)"},rbgcpControlBtn:{paddingLeft:"8px",paddingRight:"8px",lineHeight:"1",borderRadius:"4px",fontWeight:700,fontSize:"12px",height:"24px",transition:"all 160ms ease",display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0)",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0)",color:"rgb(86, 86, 86)"},rbgcpControlIcon:{stroke:"rgb(50, 49, 54)"},rbgcpControlIconBtn:{width:"30px",height:"24px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},rbgcpControlBtnWrapper:{height:"28px",background:"#e9e9f5",borderRadius:"6px",padding:"2px",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},rbgcpColorModelDropdown:{position:"absolute",right:"-2px",top:"34px",padding:"5px",background:"#e9e9f5",zIndex:1e8,borderRadius:"6px",boxShadow:"1px 1px 14px 1px rgba(0, 0, 0, 0.25)"},rbgcpEyedropperCover:{position:"fixed",left:"0px",top:"0px",zIndex:1e8,width:"100vw",height:"100vh",cursor:"copy"},rbgcpControlInput:{height:"24px",borderRadius:"4px",border:"none",outline:"none",textAlign:"center",width:"34px",fontWeight:500,color:"rgb(50, 49, 54)",fontSize:"13px",background:"transparent"},rbgcpInputLabel:{textAlign:"center",lineHeight:"1.2",fontWeight:700,color:"rgb(86, 86, 86)",fontSize:"11px"},rbgcpInput:{height:"32px",borderRadius:"6px",border:"1px solid #bebebe",width:"100%",padding:"2px",outline:"none",color:"black",fontWeight:400,textAlign:"center",background:"transparent",fontSize:"15px"},rbgcpHandle:{position:"absolute",border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 30ms linear",boxSizing:"border-box",willChange:"transform",outline:"none"},rbgcpCanvasWrapper:{borderRadius:"6px",overflow:"hidden",height:"294px"},rbgcpCheckered:{background:`linear-gradient(
+ 45deg,
+ rgba(0, 0, 0, 0.18) 25%,
+ transparent 25%,
+ transparent 75%,
+ rgba(0, 0, 0, 0.18) 75%,
+ rgba(0, 0, 0, 0.18) 0
+ ),
+ linear-gradient(
+ 45deg,
+ rgba(0, 0, 0, 0.18) 25%,
+ transparent 25%,
+ transparent 75%,
+ rgba(0, 0, 0, 0.18) 75%,
+ rgba(0, 0, 0, 0.18) 0
+ ),
+ white`,backgroundRepeat:"repeat, repeat",backgroundPosition:"0px 0, 7px 7px",transformOrigin:"0 0 0",backgroundOrigin:"padding-box, padding-box",backgroundClip:"border-box, border-box",backgroundSize:"14px 14px, 14px 14px",boxShadow:"none",textShadow:"none",transition:"none",transform:"scaleX(1) scaleY(1) scaleZ(1)",borderRadius:"10px"},rbgcpOpacityOverlay:{position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",borderRadius:"10px"},rbgcpGradientHandleWrap:{position:"absolute",zIndex:1e4,top:"-2px",outline:"none"},rbgcpGradientHandle:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"},rbgcpControlIcon2:{fill:"#323136"},rbgcpControlBtnSelected:{background:"white",color:"#568cf5",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0.2)"},rbgcpComparibleLabel:{color:"#323136"}},mf=function(e,A){var r=IA({},Qf);if(e)for(var t in rn)Object.prototype.hasOwnProperty.call(rn,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),rn[t]));for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),A[t]));return r},rs=function(e,A){return e?IA(IA({},A.rbgcpControlBtn),A.rbgcpControlBtnSelected):IA({},A.rbgcpControlBtn)},ut=function(e,A){return e?IA(IA({},A.rbgcpControlIconBtn),A.rbgcpControlBtnSelected):IA({},A.rbgcpControlIconBtn)},qt=function(e,A){return e?IA(IA(IA({},A.rbgcpControlBtn),A.rbgcpColorModelDropdownBtn),A.rbgcpControlBtnSelected):IA(IA({},A.rbgcpControlBtn),A.rbgcpColorModelDropdownBtn)},$A=function(){return $A=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},$A.apply(this,arguments)},vf=function(e){var A=e.color,r=BA().defaultStyles,t=A??"";return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:16}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:$A($A({fill:"none",strokeWidth:"1.4px"},r.rbgcpControlIcon),t&&{stroke:t}),d:"M15.6,7h0L7.78,14.86c-.37.37-1.61.38-2,.75s-.5,1.53-.76,2a3.53,3.53,0,0,1-.52.52,1.6,1.6,0,0,1-2.27-.06l-.32-.32a1.61,1.61,0,0,1-.06-2.27A3.25,3.25,0,0,1,2.4,15c.47-.26,1.65-.35,2-.73s.34-1.64.71-2c1.68-1.73,5.61-5.65,7.91-7.93h0l1.14,1.38L15.6,7Z"}),m.createElement("polygon",{strokeLinecap:"round",strokeLinejoin:"round",style:$A($A({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),points:"15.7 8.87 11.13 4.29 12.69 2.73 17.25 7.31 15.7 8.87"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:$A($A({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),d:"M18.18,3.71,16.36,5.53a1.33,1.33,0,0,1-1.88,0h0a1.34,1.34,0,0,1,0-1.89l1.81-1.82a1.34,1.34,0,0,1,1.89,0h0A1.34,1.34,0,0,1,18.18,3.71Z"}))},Uf=function(e){var A=e.onSelect,r=BA().defaultStyles,t=b.useState(null),n=t[0],a=t[1],s=b.useState(!1),o=s[0],l=s[1],c=b.useState(!1),g=c[0],B=c[1],u=function(){var C=document.getElementById("root");l(!0),wf(C).then(function(x){var U=document.createElement("canvas"),y=U.getContext("2d",{willReadFrequently:!0});C&&y&&(U.width=C.offsetWidth*2,U.height=C.offsetHeight*2,y.drawImage(x,0,0)),a(y)})},p=function(C){if(C.stopPropagation(),n){var x=C.pageX,U=C.pageY,y=x*2,L=U*2,S=n.getImageData(y,L,1,1).data;A("rgba(".concat(S[0],", ").concat(S[1],", ").concat(S[2],", 1)"))}B(!1),l(!1)},Q=function(){if(B(!0),!window.EyeDropper)u();else{var C=new window.EyeDropper,x=new window.AbortController;C.open({signal:x.signal}).then(function(U){var y=SA(U.sRGBHex),L=y.toRgb(),S=L.r,E=L.g,h=L.b;A("rgba(".concat(S,", ").concat(E,", ").concat(h,", 1)")),B(!1)}).catch(function(U){console.log(U),B(!1)})}};return m.createElement("div",null,m.createElement("div",{onClick:Q,id:"rbgcp-eyedropper-btn",style:$A($A({},r.rbgcpEyedropperBtn),ut(o,r))},m.createElement(vf,{color:g?"rgb(86, 140, 245)":""})),o&&m.createElement(Jl,null,m.createElement("div",{onClick:function(C){return p(C)},style:r.rbgcpEyedropperCover})))},Dn=function(){return Dn=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Dn.apply(this,arguments)},nn=function(e){var A=e.value,r=e.reffy,t=e.label,n=e.config,a=e.callback,s=e.squareWidth,o=e.openAdvanced,l=e.defaultStyles,c=e.pickerIdSuffix,g=n.barSize,B=b.useState(!1),u=B[0],p=B[1],Q=b.useState(2),C=Q[0],x=Q[1],U=A*(s-18);b.useEffect(function(){var h;x(((h=r?.current)===null||h===void 0?void 0:h.offsetTop)-2)},[o,r]);var y=function(){p(!1)},L=function(h){u&&a(Ge(h,g))},S=function(h){u||a(Ge(h,g))},E=function(){p(!0)};return b.useEffect(function(){var h=function(){y()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{style:{width:"100%",padding:"3px 0px 3px 0px"}},m.createElement("div",{onMouseMove:function(h){return L(h)},style:{cursor:"resize",position:"relative"},id:"rbgcp-advanced-bar-".concat(t,"-wrapper").concat(c)},m.createElement("div",{style:Dn({left:U,top:C},l.rbgcpHandle),id:"rbgcp-advanced-bar-".concat(t,"-handle").concat(c),onMouseDown:E,role:"button",tabIndex:0}),m.createElement("div",{style:{textAlign:"center",color:"#fff",fontSize:12,fontWeight:500,lineHeight:1,position:"absolute",left:"50%",transform:"translate(-50%, 0%)",top:C+2,zIndex:10,textShadow:"1px 1px 1px rgba(0,0,0,.6)"},id:"rbgcp-advanced-bar-".concat(t,"-label").concat(c),onMouseMove:function(h){return L(h)},onClick:function(h){return S(h)},tabIndex:0,role:"button",onKeyDown:function(){}},t),m.createElement("canvas",{ref:r,height:"14px",width:"".concat(s,"px"),onClick:function(h){return S(h)},style:{position:"relative",borderRadius:14},id:"rbgcp-advanced-bar-".concat(t,"-canvas").concat(c)})))},Ff=function(e){var A=e.openAdvanced,r=BA(),t=r.config,n=r.tinyColor,a=r.handleChange,s=r.squareWidth,o=r.hc,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.toHsl(),B=g.s,u=g.l,p=b.useRef(null),Q=b.useRef(null),C=b.useRef(null);hl(p,o?.h,u*100,s),wl(Q,o?.h,B*100,s),pl(C,o?.h,B*100,s);var x=function(L){var S=SA({h:o?.h,s:L/100,l:u}).toRgb(),E=S.r,h=S.g,I=S.b;a("rgba(".concat(E,",").concat(h,",").concat(I,",").concat(o?.a,")"))},U=function(L){var S=SA({h:o?.h,s:B,l:L/100}).toRgb(),E=S.r,h=S.g,I=S.b;a("rgba(".concat(E,",").concat(h,",").concat(I,",").concat(o?.a,")"))},y=function(L){var S=SA({h:o?.h,s:o?.s*100,v:L}).toRgb(),E=S.r,h=S.g,I=S.b;a("rgba(".concat(E,",").concat(h,",").concat(I,",").concat(o?.a,")"))};return m.createElement("div",{style:{width:"100%",height:A?98:0,transition:"all 120ms linear"},id:"rbgcp-advanced-controls-wrapper".concat(c)},m.createElement("div",{style:{paddingTop:11,display:A?"flex":"none",flexDirection:"column",justifyContent:"space-between",height:A?98:0,overflow:"hidden",transition:"height 100ms linear"},id:"rbgcp-advanced-controls-inner".concat(c)},m.createElement(nn,{value:B,reffy:p,config:t,label:"Saturation",callback:x,squareWidth:s,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),m.createElement(nn,{value:u,config:t,reffy:Q,label:"Lightness",callback:U,squareWidth:s,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),m.createElement(nn,{value:o?.v,config:t,reffy:C,label:"Brightness",callback:y,squareWidth:s,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c})))},ye=function(){return ye=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},ye.apply(this,arguments)},bf=function(e){var A=e.openComparibles,r=BA(),t=r.tinyColor,n=r.handleChange,a=r.defaultStyles,s=r.pickerIdSuffix,o=t.analogous(),l=t.monochromatic(),c=t.triad(),g=t.tetrad(),B=function(u){var p=u.toRgb(),Q=p.r,C=p.g,x=p.b,U=p.a;n("rgba(".concat(Q,",").concat(C,",").concat(x,",").concat(U,")"))};return m.createElement("div",{style:{width:"100%",transition:"all 120ms linear",height:A?216:0},id:"rbgcp-comparible-colors-wrapper".concat(s)},m.createElement("div",{style:{paddingTop:11,display:A?"":"none",position:"relative"},id:"rbgcp-comparible-colors-inner".concat(s)},m.createElement("div",{style:ye({textAlign:"center",fontSize:13,fontWeight:600,position:"absolute",top:6.5,left:2},a.rbgcpComparibleLabel),id:"rbgcp-comparible-color-guide-label".concat(s)},"Color Guide"),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-analogous-colors-label".concat(s)},"Analogous"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex"},id:"rbgcp-comparible-analogous-colors".concat(s)},o?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-analogous-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-monochromatic-colors-label".concat(s)},"Monochromatic"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-monochromatic-colors".concat(s)},l?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-monochromatic-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-triad-colors-label".concat(s)},"Triad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-triad-colors".concat(s)},c?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-triad-color-".concat(p).concat(s),style:{width:"calc(100% / 3)",height:28,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-tetrad-colors-label".concat(s)},"Tetrad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-tetrad-colors".concat(s)},g?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-tetrad-color-".concat(p).concat(s),style:{width:"25%",height:28,background:u.toHexString()},onClick:function(){return B(u)}})}))))},CA=function(){return CA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},CA.apply(this,arguments)},yf=function(){var e=BA(),A=e.gradientType,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,s=A==="linear-gradient",o=A==="radial-gradient",l=function(){var g=t.split(/,(.+)/)[1];r("linear-gradient(90deg, ".concat(g))},c=function(){var g=t.split(/,(.+)/)[1];r("radial-gradient(circle, ".concat(g))};return m.createElement("div",{style:n.rbgcpControlBtnWrapper},m.createElement("div",{onClick:l,id:"rbgcp-linear-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),s&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Rl,{color:s?"#568CF5":""})),m.createElement("div",{onClick:c,id:"rbgcp-radial-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),o&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Nl,{color:o?"#568CF5":""})))},Ef=function(){var e=BA(),A=e.currentLeft,r=e.currentColor,t=e.defaultStyles,n=e.handleGradient,a=e.pickerIdSuffix,s=function(o){n(r,_e(parseInt(o),0,100))};return m.createElement("div",{style:CA(CA(CA(CA({},t.rbgcpControlBtnWrapper),t.rbgcpControlInputWrap),t.rbgcpStopInputWrap),{paddingLeft:8}),id:"rbgcp-stop-input-wrapper".concat(a)},m.createElement(Pl,null),m.createElement("input",{value:A,id:"rbgcp-stop-input".concat(a),onChange:function(o){return s(o.target.value)},style:CA(CA({},t.rbgcpControlInput),t.rbgcpStopInput)}))},xf=function(){var e=BA(),A=e.degrees,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,s=function(o){var l=_e(o.target.value,0,360),c=t.split(/,(.+)/)[1];r("linear-gradient(".concat(l??0,"deg, ").concat(c))};return m.createElement("div",{style:CA(CA(CA({},n.rbgcpControlBtnWrapper),n.rbgcpControlInputWrap),n.rbgcpDegreeInputWrap),id:"rbgcp-degree-input-wrapper".concat(a)},m.createElement(Vl,null),m.createElement("input",{value:A,onChange:function(o){return s(o)},id:"rbgcp-degree-input".concat(a),style:CA(CA({},n.rbgcpControlInput),n.rbgcpDegreeInput)}),m.createElement("div",{style:CA(CA({},n.rbgcpDegreeIcon),{position:"absolute",right:A>99?0:A<10?7:3,top:1,fontWeight:400,fontSize:13})},"°"))},If=function(){var e=BA(),A=e.colors,r=e.selectedColor,t=e.createGradientStr,n=e.defaultStyles,a=e.pickerIdSuffix,s=function(){if(A?.length>2){var o=A?.map(function(c,g){return CA(CA({},c),{value:g===r-1?vr(c):vt(c)})}),l=o?.filter(function(c,g){return g!==r});t(l)}};return m.createElement("div",{onClick:s,style:CA(CA({},ut(!1,n)),{width:28}),id:"rbgcp-point-delete-btn".concat(a),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Ol,null))},ns=function(e){var A=e.hideGradientType,r=e.hideGradientAngle,t=e.hideGradientStop,n=BA(),a=n.gradientType,s=n.defaultStyles,o=n.pickerIdSuffix;return m.createElement("div",{style:CA(CA({},s.rbgcpControlBtnWrapper),{marginTop:12,marginBottom:-4,justifyContent:"space-between",paddingLeft:A?4:0}),id:"rbgcp-gradient-controls-wrap".concat(o)},!A&&m.createElement(yf,null),m.createElement("div",{style:{width:53}},!r&&a==="linear-gradient"&&m.createElement(xf,null)),!t&&m.createElement(Ef,null),m.createElement(If,null))},Ct=function(){return Ct=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Ct.apply(this,arguments)},Hf=function(e){var A,r,t=e.hideColorTypeBtns,n=e.setGradient,a=e.isGradient,s=e.setSolid,o=e.locales,l=BA(),c=l.defaultStyles,g=l.pickerIdSuffix;return t?m.createElement("div",{style:{width:1}}):m.createElement("div",{style:Ct({display:"flex",alignItems:"center"},c.rbgcpControlBtnWrapper),id:"rbgcp-color-type-btns".concat(g)},m.createElement("div",{onClick:s,id:"rbgcp-solid-btn".concat(g),style:rs(!a,c)},(A=o?.CONTROLS)===null||A===void 0?void 0:A.SOLID),m.createElement("div",{onClick:n,id:"rbgcp-gradient-btn".concat(g),style:rs(a??!1,c)},(r=o?.CONTROLS)===null||r===void 0?void 0:r.GRADIENT))},Sf=function(e){var A=e.openInputType,r=e.setOpenInputType,t=BA(),n=t.inputType,a=t.setInputType,s=t.defaultStyles,o=t.pickerIdSuffix,l=A?"visibility 0ms linear":"visibility 100ms linear 150ms",c=A?"z-index 0ms linear":"z-index 100ms linear 150ms",g=A?"opacity 120ms linear":"opacity 150ms linear 50ms",B=function(u,p){A&&(u.stopPropagation(),a(p),r(!1))};return m.createElement("div",{style:Ct({visibility:A?"visible":"hidden",zIndex:A?"":-100,opacity:A?1:0,transition:"".concat(g,", ").concat(l,", ").concat(c)},s.rbgcpColorModelDropdown),id:"rbgcp-color-model-dropdown".concat(o)},m.createElement("div",{id:"rbgcp-color-model-rgb-btn".concat(o),onClick:function(u){return B(u,"rgb")},style:qt(n==="rgb",s)},"RGB"),m.createElement("div",{id:"rbgcp-color-model-hsl-btn".concat(o),onClick:function(u){return B(u,"hsl")},style:qt(n==="hsl",s)},"HSL"),m.createElement("div",{id:"rbgcp-color-model-hsv-btn".concat(o),onClick:function(u){return B(u,"hsv")},style:qt(n==="hsv",s)},"HSV"),m.createElement("div",{id:"rbgcp-color-model-cmyk-btn".concat(o),onClick:function(u){return B(u,"cmyk")},style:qt(n==="cmyk",s)},"CMYK"))},Lf=function(e){var A,r,t=e.locales,n=e.hideEyeDrop,a=n===void 0?!1:n,s=e.hideAdvancedSliders,o=s===void 0?!1:s,l=e.hideColorGuide,c=l===void 0?!1:l,g=e.hideInputType,B=g===void 0?!1:g,u=e.hideColorTypeBtns,p=u===void 0?!1:u,Q=e.hideGradientControls,C=Q===void 0?!1:Q,x=e.hideGradientType,U=x===void 0?!1:x,y=e.hideGradientAngle,L=y===void 0?!1:y,S=e.hideGradientStop,E=S===void 0?!1:S,h=BA(),I=h.config,M=h.onChange,k=h.isGradient,R=h.handleChange,O=h.previous,Z=h.defaultStyles,D=h.pickerIdSuffix,z=I.defaultColor,eA=I.defaultGradient,tA=b.useState(!1),AA=tA[0],dA=tA[1],aA=b.useState(!1),q=aA[0],lA=aA[1],sA=b.useState(!1),H=sA[0],j=sA[1],_=a&&o&&c&&B,F=(A=O?.color)!==null&&A!==void 0?A:z,N=(r=O?.gradient)!==null&&r!==void 0?r:eA,T=function(){M(F)},G=function(){M(N)},J=a&&o&&c&&B,$=J&&p;return $?k&&!C?m.createElement(ns,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:E}):null:m.createElement("div",{style:{paddingBottom:4}},m.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},id:"rbgcp-controls-wrapper".concat(D)},m.createElement(Hf,{hideColorTypeBtns:p,setGradient:G,isGradient:k,setSolid:T,locales:t}),!J&&m.createElement("div",{style:Ct({display:_?"none":""},Z.rbgcpControlBtnWrapper),id:"rbgcp-control-rightside-wrapper".concat(D)},!a&&m.createElement(Uf,{onSelect:R}),!o&&m.createElement("div",{id:"rbgcp-advanced-btn".concat(D),onClick:function(){return j(!H)},style:ut(H,Z)},m.createElement(_l,{color:H?"#568CF5":""})),!c&&m.createElement("div",{style:ut(AA,Z),onClick:function(){return dA(!AA)},id:"rbgcp-comparibles-btn".concat(D)},m.createElement(jl,{color:AA?"#568CF5":""})),!B&&m.createElement("div",{id:"rbgcp-color-model-btn".concat(D),onClick:function(){return lA(!q)},style:ut(q,Z)},m.createElement(Gl,{color:q?"#568CF5":""}),m.createElement(Sf,{openInputType:q,setOpenInputType:lA})))),!o&&m.createElement(Ff,{openAdvanced:H}),!c&&m.createElement(bf,{openComparibles:AA}),k&&!C&&m.createElement(ns,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:E}))},Ae=function(){return Ae=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Ae.apply(this,arguments)},as=function(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||Array.prototype.slice.call(A))},kf=function(e){var A=e.left,r=e.i,t=e.setDragging,n=BA(),a=n.colors,s=n.squareWidth,o=n.selectedColor,l=n.defaultStyles,c=n.pickerIdSuffix,g=n.createGradientStr,B=o===r,u=(s-18)/100,p=function(C){var x=a?.map(function(U,y){return Ae(Ae({},U),{value:y===C?vr(U):vt(U)})});g(x)},Q=function(C){C.stopPropagation(),p(r),t(!0)};return m.createElement("div",{onMouseDown:function(C){return Q(C)},id:"rbgcp-gradient-handle-".concat(r).concat(c),style:Ae(Ae({},l.rbgcpGradientHandleWrap),{left:(A??0)*u})},m.createElement("div",{style:Ae(Ae({},l.rbgcpGradientHandle),B?{boxShadow:"0px 0px 5px 1px rgba(86, 140, 245,.95)",border:"2px solid white"}:{}),id:"rbgcp-gradient-handle-".concat(r,"-dot").concat(c)},B&&m.createElement("div",{style:{width:5,height:5,borderRadius:"50%",background:"white"},id:"rbgcp-gradient-handle-".concat(r,"-selected-dot").concat(c)})))},Mf=function(){var e=BA(),A=e.value,r=e.colors,t=e.config,n=e.squareWidth,a=e.currentColor,s=e.handleGradient,o=e.pickerIdSuffix,l=e.createGradientStr,c=t.barSize,g=b.useState(!1),B=g[0],u=g[1];function p(L){return L.replace(/(radial|linear)-gradient\([^,]+,/,"linear-gradient(90deg,")}var Q=function(L){var S,E=Ge(L,c),h=(S=as(as([],r.map(function(I){return Ae(Ae({},I),{value:vt(I)})}),!0),[{value:a,left:E}],!1))===null||S===void 0?void 0:S.sort(function(I,M){return I.left-M.left});l(h)},C=function(){u(!1)},x=function(L){B||(Q(L),u(!0))},U=function(L){B&&s(a,Ge(L,c))},y=function(){C()};return b.useEffect(function(){return window.addEventListener("mouseup",y),function(){window.removeEventListener("mouseup",y)}}),m.createElement("div",{style:{width:"100%",marginTop:17,marginBottom:4,position:"relative"},id:"rbgcp-gradient-bar".concat(o)},m.createElement("div",{style:{height:14,borderRadius:10,width:n,backgroundImage:p(A)},onMouseDown:function(L){return x(L)},onMouseMove:function(L){return U(L)},id:"rbgcp-gradient-bar-canvas".concat(o)}),r?.map(function(L,S){return m.createElement(kf,{i:S,left:L.left,key:"".concat(S,"-").concat(L),setDragging:u})}))},Kf=function(e){var A=e.locales,r=e.presets,t=e.hideHue,n=e.hideInputs,a=e.hidePresets,s=e.hideOpacity,o=e.hideEyeDrop,l=e.hideControls,c=e.hideInputType,g=e.hideColorGuide,B=e.hidePickerSquare,u=e.hideGradientType,p=e.hideGradientStop,Q=e.hideGradientAngle,C=e.hideColorTypeBtns,x=e.hideAdvancedSliders,U=e.hideGradientControls,y=BA(),L=y.isGradient,S=y.pickerIdSuffix;return m.createElement("div",{style:{userSelect:"none"},id:"rbgcp-color-picker".concat(S)},!B&&m.createElement(kl,null),!l&&m.createElement(Lf,{locales:A,hideEyeDrop:o,hideInputType:c,hideColorGuide:g,hideGradientType:u,hideGradientStop:p,hideColorTypeBtns:C,hideGradientAngle:Q,hideAdvancedSliders:x,hideGradientControls:U}),L&&m.createElement(Mf,null),!t&&m.createElement(Cl,null),!s&&m.createElement(Ml,null),!n&&m.createElement(xl,null),!a&&m.createElement(Dl,{presets:r}))},mr=function(){return mr=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},mr.apply(this,arguments)};function Tf(e){var A=e.idSuffix,r=e.value,t=r===void 0?"rgba(175, 51, 242, 1)":r,n=e.onChange,a=e.hideControls,s=a===void 0?!1:a,o=e.hideInputs,l=o===void 0?!1:o,c=e.hideOpacity,g=c===void 0?!1:c,B=e.hidePresets,u=B===void 0?!1:B,p=e.hideHue,Q=p===void 0?!1:p,C=e.presets,x=C===void 0?[]:C,U=e.hideEyeDrop,y=U===void 0?!1:U,L=e.hideAdvancedSliders,S=L===void 0?!1:L,E=e.hideColorGuide,h=E===void 0?!1:E,I=e.hideInputType,M=I===void 0?!1:I,k=e.hideColorTypeBtns,R=k===void 0?!1:k,O=e.hideGradientType,Z=O===void 0?!1:O,D=e.hideGradientAngle,z=D===void 0?!1:D,eA=e.hideGradientStop,tA=eA===void 0?!1:eA,AA=e.hideGradientControls,dA=AA===void 0?!1:AA,aA=e.locales,q=aA===void 0?Kl:aA,lA=e.width,sA=lA===void 0?294:lA,H=e.height,j=H===void 0?294:H,_=e.style,F=_===void 0?{}:_,N=e.className,T=e.disableDarkMode,G=T===void 0?!1:T,J=e.disableLightMode,$=J===void 0?!1:J,pA=e.hidePickerSquare,f=pA===void 0?!1:pA,v=e.showHexAlpha,w=v===void 0?!1:v,K=e.config,W=K===void 0?{}:K,P=ll(t),oA=typeof window>"u"||G?!1:!!(window.matchMedia("(prefers-color-scheme: dark)").matches||$),fA=mf(oA,F),UA=oA?"-dark".concat(A?"-".concat(A):""):A?"-".concat(A):"";return m.createElement("div",{className:N,style:mr(mr({},fA.body),{width:sA})},m.createElement(dl,{value:P,onChange:n,squareWidth:sA,passedConfig:W,squareHeight:j,isDarkMode:oA,hideOpacity:g,showHexAlpha:w,defaultStyles:fA,pickerIdSuffix:UA},m.createElement(Kf,{hideControls:s,hideInputs:l,hidePresets:u,hideOpacity:g,hideHue:Q,presets:x,hideEyeDrop:y,hideAdvancedSliders:S,hideColorGuide:h,hideInputType:M,hideColorTypeBtns:R,hideGradientType:Z,hideGradientAngle:z,hideGradientStop:tA,hideGradientControls:dA,hidePickerSquare:f,locales:q})))}const an="rgb(0, 0, 0)",Df=()=>{const[e,A]=b.useState(localStorage.getItem("customBackgroundColour")||an),r=n=>{A(n),localStorage.setItem("customBackgroundColour",n),hA.emit("refresh","background")},t=()=>{A(an),localStorage.setItem("customBackgroundColour",an),RA(d.getMessage("toasts.reset")),hA.emit("refresh","background")};return i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.custom_colour")}),i.jsxs(cA,{children:[i.jsx(Tf,{value:e,onChange:r,hideEyeDrop:!0,hideColorGuide:!0,hidePresets:!0,hideAdvancedSliders:!1,hideColorTypeBtns:!1,hideInputType:!1,height:147}),i.jsx("div",{className:"colourReset",children:i.jsxs("span",{className:"link",onClick:()=>t(),children:[i.jsx(he,{}),d.getMessage("modals.main.settings.buttons.reset")]})})]})]})};var Of=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],ze=(e,A)=>{var r="";for(let t=1;t<=A;t++){let n=Math.floor(e)/Math.pow(83,A-t)%83;r+=Of[Math.floor(n)]}return r},sn=e=>{let A=e/255;return A<=.04045?A/12.92:Math.pow((A+.055)/1.055,2.4)},on=e=>{let A=Math.max(0,Math.min(1,e));return A<=.0031308?Math.trunc(A*12.92*255+.5):Math.trunc((1.055*Math.pow(A,.4166666666666667)-.055)*255+.5)},Rf=e=>e<0?-1:1,ln=(e,A)=>Rf(e)*Math.pow(Math.abs(e),A),ss=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},is=4,Nf=(e,A,r,t)=>{let n=0,a=0,s=0,o=A*is;for(let c=0;c<A;c++){let g=is*c;for(let B=0;B<r;B++){let u=g+B*o,p=t(c,B);n+=p*sn(e[u]),a+=p*sn(e[u+1]),s+=p*sn(e[u+2])}}let l=1/(A*r);return[n*l,a*l,s*l]},_f=e=>{let A=on(e[0]),r=on(e[1]),t=on(e[2]);return(A<<16)+(r<<8)+t},Gf=(e,A)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(ln(e[0]/A,.5)*9+9.5)))),t=Math.floor(Math.max(0,Math.min(18,Math.floor(ln(e[1]/A,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(ln(e[2]/A,.5)*9+9.5))));return r*19*19+t*19+n},jf=(e,A,r,t,n)=>{if(t<1||t>9||n<1||n>9)throw new ss("BlurHash must have between 1 and 9 components");if(A*r*4!==e.length)throw new ss("Width and height must match the pixels array");let a=[];for(let B=0;B<n;B++)for(let u=0;u<t;u++){let p=u==0&&B==0?1:2,Q=Nf(e,A,r,(C,x)=>p*Math.cos(Math.PI*u*C/A)*Math.cos(Math.PI*B*x/r));a.push(Q)}let s=a[0],o=a.slice(1),l="",c=t-1+(n-1)*9;l+=ze(c,1);let g;if(o.length>0){let B=Math.max(...o.map(p=>Math.max(...p))),u=Math.floor(Math.max(0,Math.min(82,Math.floor(B*166-.5))));g=(u+1)/166,l+=ze(u,1)}else g=1,l+=ze(0,1);return l+=ze(_f(s),4),o.forEach(B=>{l+=ze(Gf(B,g),2)}),l},Vf=jf;async function os(e){return new Promise((A,r)=>{const t=new Image;t.onload=()=>{A({width:t.width,height:t.height}),typeof e!="string"&&URL.revokeObjectURL(t.src)},t.onerror=()=>r(new Error("Failed to load image")),typeof e=="string"?t.src=e:t.src=URL.createObjectURL(e)})}async function ls(e,A=4,r=3){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{try{const s=document.createElement("canvas"),o=s.getContext("2d"),l=64,c=Math.min(l/a.width,l/a.height);s.width=Math.floor(a.width*c),s.height=Math.floor(a.height*c),o.drawImage(a,0,0,s.width,s.height);const g=o.getImageData(0,0,s.width,s.height),B=Vf(g.data,g.width,g.height,A,r);typeof e!="string"&&URL.revokeObjectURL(a.src),t(B)}catch(s){n(s)}},a.onerror=()=>n(new Error("Failed to load image for blur hash")),typeof e=="string"?a.src=e:a.src=URL.createObjectURL(e)})}function cn(e){const A=e.split(",")[1];if(!A)return 0;const r=(A.match(/=/g)||[]).length;return Math.floor(A.length*3/4-r)}function cs(e,A){return e&&e.name?e.name:`Image ${A+1}`}function Pf(){const e={};return Object.keys(localStorage).forEach(A=>{e[A]=localStorage.getItem(A)}),new TextEncoder().encode(JSON.stringify(e)).length}function me(e){if(e===0)return"0 Bytes";if(!e)return"Unknown";const A=1024,r=["Bytes","KB","MB","GB"],t=Math.floor(Math.log(e)/Math.log(A));return Math.round(e/Math.pow(A,t)*10)/10+" "+r[t]}const Xf=({files:e,onConfirm:A,onCancel:r})=>{const[t,n]=b.useState(""),a=()=>{A(t.trim())};return i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.tag_images")}),i.jsx("button",{className:"closeModal",onClick:r,children:i.jsx(hs,{})})]}),i.jsxs("div",{className:"taggingModalContent",children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.tag_description",{count:e.length})}),i.jsxs("div",{className:"taggingInput",children:[i.jsx("label",{children:d.getMessage("modals.main.settings.sections.background.source.folder_name")}),i.jsx("input",{type:"text",placeholder:d.getMessage("modals.main.settings.sections.background.source.folder_placeholder"),value:t,onChange:s=>n(s.target.value),onKeyPress:s=>{s.key==="Enter"&&a()},autoFocus:!0})]})]}),i.jsxs("div",{className:"resetFooter",children:[i.jsx(vA,{type:"settings",onClick:r,label:d.getMessage("modals.main.settings.buttons.cancel")}),i.jsx(vA,{type:"settings",onClick:a,label:d.getMessage("modals.main.settings.buttons.continue")})]})]})},gn=e=>{try{localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(e.length))}catch{}},Gi=b.memo(()=>{const[e,A]=b.useState([]),[r,t]=b.useState(!1),[n,a]=b.useState([]),[s,o]=b.useState(!0),[l,c]=b.useState(!1),[g,B]=b.useState({current:0,total:0}),[u,p]=b.useState(!1),[Q,C]=b.useState(new Set),[x,U]=b.useState(localStorage.getItem("customImageSort")||"date_desc"),[y,L]=b.useState(!1),[S,E]=b.useState({usage:0,quota:0}),h=b.useRef(null),I=b.useRef(0),M=5e7;b.useEffect(()=>{(async()=>{if(navigator.storage&&navigator.storage.estimate)try{const N=await navigator.storage.estimate();E({usage:N.usage||0,quota:N.quota||M})}catch(N){console.warn("Could not get storage estimate:",N),E({usage:0,quota:M})}else E({usage:0,quota:M})})()},[e]),b.useEffect(()=>{(async()=>{try{await uo();const N=await ve();A(N),N.forEach(async T=>{if(!T.dimensions&&T.url&&!yt(T.url))try{const G=await os(T.url),J=await ls(T.url);await Bo(T.id,{dimensions:G,blurHash:J});const $=await ve();A($)}catch(G){console.warn("Could not extract metadata for existing image:",G)}})}catch(N){console.error("Error loading backgrounds:",N),RA(d.getMessage("toasts.error"))}finally{o(!1)}})()},[]);const k=b.useCallback(async(F,N,T,G=!1)=>{try{const J={url:N,name:T.name,uploadDate:Date.now(),dimensions:T.dimensions,fileSize:T.fileSize,folder:T.folder||"",blurHash:T.blurHash};await rr(J);const $=await ve();A($),gn($),G||hA.emit("refresh","background")}catch(J){console.error("Error saving background:",J),RA(d.getMessage("toasts.error"))}},[]),R=async(F,N="")=>{const T=e.reduce((J,$)=>$.url&&$.url.startsWith("data:")?J+cn($.url):J,0),G=S.quota||M;if(T/G>.9&&navigator.storage&&navigator.storage.persist)try{await navigator.storage.persist()&&console.log("Storage persistence granted")}catch(J){console.warn("Could not request storage persistence:",J)}if(yt(F.type)){if(T+F.size>G)throw new Error("no_storage");const J=new FileReader;return new Promise(($,pA)=>{J.onloadend=()=>{$({dataUrl:J.result,metadata:{name:cs(F,e.length),dimensions:null,fileSize:F.size,folder:N,blurHash:null}})},J.onerror=pA,J.readAsDataURL(F)})}else{const J=await $n.compressAccurately(F,{size:450,accuracy:.9}),$=S.quota||M;if(T+J.size>$)throw new Error("no_storage");const pA=await $n.filetoDataURL(J),[f,v]=await Promise.all([os(pA),ls(pA).catch(()=>null)]);return{dataUrl:pA,metadata:{name:cs(F,e.length),dimensions:f,fileSize:cn(pA),folder:N,blurHash:v}}}},O=async(F,N="")=>{c(!0),B({current:0,total:F.length});const T=[];for(let G=0;G<F.length;G++)try{const J=await R(F[G],N);await k(F[G],J.dataUrl,J.metadata,!0),B({current:G+1,total:F.length})}catch(J){if(J.message==="no_storage"){RA(d.getMessage("toasts.no_storage"));break}T.push(F[G].name)}T.length>0&&RA(d.getMessage("toasts.error")+`: ${T.join(", ")}`),hA.emit("refresh","background"),c(!1),B({current:0,total:0})},Z=async F=>{t(!1),await O(n,F),a([])},D=b.useCallback(async(F,N)=>{try{F==="add"?await rr(""):await io(N);const T=await ve();A(T),gn(T),C(new Set),hA.emit("refresh","backgroundrefresh")}catch(T){console.error("Error modifying background:",T),RA(d.getMessage("toasts.error"))}},[]),z=async()=>{if(Q.size!==0)try{const F=Array.from(Q).sort((T,G)=>G-T);await fo(F);const N=await ve();A(N),C(new Set),gn(N),hA.emit("refresh","backgroundrefresh"),RA(d.getMessage("toasts.deleted"))}catch(F){console.error("Error batch deleting:",F),RA(d.getMessage("toasts.error"))}},eA=F=>{const N=new Set(Q);N.has(F)?N.delete(F):N.add(F),C(N)},tA=F=>{U(F),localStorage.setItem("customImageSort",F)},AA=b.useCallback(()=>{document.getElementById("bg-input").click()},[]),dA=async F=>{F.length>1?(a(F),t(!0)):await O(F,"")},aA=[...e].sort((F,N)=>{switch(x){case"date_asc":return F.uploadDate-N.uploadDate;case"date_desc":return N.uploadDate-F.uploadDate;case"name_asc":return(F.name||"").localeCompare(N.name||"");case"name_desc":return(N.name||"").localeCompare(F.name||"");case"size_asc":return(F.fileSize||0)-(N.fileSize||0);case"size_desc":return(N.fileSize||0)-(F.fileSize||0);default:return 0}}),q=e.reduce((F,N)=>N.url&&N.url.startsWith("data:")?F+cn(N.url):F,0),lA=S.quota||M,sA=q/lA*100,H=Pf(),j=5242880;b.useEffect(()=>{const F=h.current;if(!F)return;const N=$=>{$.preventDefault(),$.stopPropagation()},T=$=>{$.preventDefault(),$.stopPropagation(),I.current++,$.dataTransfer.items&&$.dataTransfer.items.length>0&&p(!0)},G=$=>{$.preventDefault(),$.stopPropagation(),I.current--,I.current===0&&p(!1)},J=async $=>{$.preventDefault(),$.stopPropagation(),p(!1),I.current=0;const pA=Array.from($.dataTransfer.files);pA.length!==0&&(pA.length>1?(a(pA),t(!0)):await O(pA,""))};return F.ondragover=N,F.ondragenter=T,F.ondragleave=G,F.ondrop=J,()=>{F&&(F.ondragover=null,F.ondragenter=null,F.ondragleave=null,F.ondrop=null)}},[e.length,O]);const _=aA.filter(F=>F&&yt(F.url)).length>0;return s?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.loading")})]})}):l?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.uploading",{current:g.current,total:g.total})}),i.jsxs("span",{className:"subtitle",children:[Math.round(g.current/g.total*100),"%"]})]})}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`dropzone ${u?"dragging":""}`,ref:h,style:u?{outline:"2px dashed #ff5c25",outlineOffset:"-2px",backgroundColor:"rgba(255, 92, 37, 0.1)",transition:"all 0.2s ease"}:{},children:[i.jsxs("div",{className:"imagesTopBar",children:[i.jsxs("div",{className:"imagesTopBarTitle",children:[i.jsx(zn,{}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.custom_title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.custom_description")})]})]}),i.jsx("div",{className:"topbarbuttons",children:i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(oo,{}),label:d.getMessage("modals.main.settings.sections.background.source.upload")})})]}),i.jsxs("div",{className:"imagesControlBar",children:[i.jsxs("div",{className:"controlBarLeft",children:[i.jsxs("span",{className:"image-count",children:[e.length," ",e.length===1?"image":"images",i.jsxs("span",{className:"storage-info",children:[" ","· ",me(q)," / ",me(lA),sA>80&&navigator.storage&&navigator.storage.persist&&i.jsx(qn,{title:"Request persistent storage to prevent browser from automatically clearing your images",children:i.jsx("button",{className:"request-storage-link",onClick:async()=>{try{await navigator.storage.persist()?RA("Persistent storage granted - your images are protected from eviction"):RA("Persistent storage denied - images may be cleared if storage is low")}catch(F){console.error("Storage request error:",F),RA("Could not request persistent storage")}},children:"Protect images"})})]})]}),i.jsx("span",{className:"selection-separator",children:"·"}),Q.size>0?i.jsxs(i.Fragment,{children:[i.jsxs("span",{className:"selected-count",children:[Q.size," selected"]}),i.jsx("button",{className:"delete-link",onClick:z,children:"Delete"}),Q.size<e.length&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(e.map((N,T)=>T));C(F)},children:"Select all"}),Q.size===e.length&&i.jsx("button",{className:"select-all-link",onClick:()=>C(new Set),children:"Deselect all"})]}):e.length>0&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(e.map((N,T)=>T));C(F)},children:"Select all"})]}),i.jsx("div",{className:"controlBarRight",children:i.jsx(KA,{name:"customImageSort",category:"customImageSort",onChange:tA,items:[{value:"date_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_newest")},{value:"date_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_oldest")},{value:"name_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_asc")},{value:"name_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_desc")},{value:"size_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_small")},{value:"size_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_large")}]})})]}),i.jsx("div",{className:"dropzone-content",children:aA.length>0?i.jsx("div",{className:`images-grid ${Q.size>0?"selection-mode":""}`,children:aA.map(F=>{const N=e.findIndex(G=>G===F),T=F&&yt(F.url);return i.jsxs("div",{className:"image-card",onClick:G=>{G.target.closest(".delete-button")||eA(N)},children:[i.jsx("div",{className:"image-checkbox",children:i.jsx("input",{type:"checkbox",checked:Q.has(N),onChange:()=>eA(N)})}),i.jsxs("div",{className:"image-preview",children:[F.blurHash&&!T&&(()=>{const G=lo(F.blurHash,32,32);return G?i.jsx("div",{className:"blur-placeholder",style:{backgroundImage:`url(${G})`,filter:"blur(20px)",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}}):null})(),T?i.jsx("div",{className:"video-icon-wrapper",children:i.jsx(co,{className:"customvideoicon"})}):i.jsx("img",{alt:F.name||"Custom background",src:F.url,loading:"lazy",style:{position:"relative",zIndex:1}})]}),i.jsxs("div",{className:"image-metadata",children:[i.jsx("span",{className:"image-name",title:F.name,children:F.name||"Unnamed"}),i.jsxs("div",{className:"image-details",children:[F.dimensions&&i.jsxs("span",{className:"detail",children:[F.dimensions.width," × ",F.dimensions.height]}),F.fileSize&&i.jsx("span",{className:"detail",children:me(F.fileSize)}),F.folder&&i.jsx("span",{className:"detail folder-tag",children:F.folder})]})]}),i.jsx(qn,{title:d.getMessage("modals.main.settings.sections.background.source.remove"),children:i.jsx("button",{className:"delete-button",onClick:G=>{G.stopPropagation(),D("remove",N)},children:i.jsx(Bt,{})})})]},N)})}):i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(zn,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.drop_to_upload")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.formats",{list:"jpeg, png, webp, webm, gif, mp4, webm, ogg"})}),i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(go,{}),label:d.getMessage("modals.main.settings.sections.background.source.select")})]})})})]}),i.jsx(Ms,{id:"bg-input",accept:"image/jpeg, image/png, image/webp, image/webm, image/gif, video/mp4, video/webm, video/ogg",multiple:!0,loadFunction:async F=>{await dA(F)}}),_&&i.jsxs(i.Fragment,{children:[i.jsx(mA,{name:"backgroundVideoLoop",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.loop_video")}),i.jsx(mA,{name:"backgroundVideoMute",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.mute_video")})]}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a([])},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Xf,{files:n,onConfirm:Z,onCancel:()=>{t(!1),a([])}})}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>L(!1),isOpen:y,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.storage_info")}),i.jsx("button",{className:"closeModal",onClick:()=>L(!1),children:i.jsx(Bt,{})})]}),i.jsxs("div",{style:{padding:"20px"},children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.storage_description")}),i.jsxs("div",{style:{marginTop:"20px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Custom Backgrounds"}),i.jsxs("p",{className:"subtitle",children:[me(q)," / ",me(lA)," (",Math.round(sA),"%)"]})]}),i.jsxs("div",{style:{marginTop:"15px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Total localStorage Usage"}),i.jsxs("p",{className:"subtitle",children:[me(H)," / ",me(j)," (",Math.round(H/j*100),"%)"]}),i.jsx("p",{className:"subtitle",style:{marginTop:"8px",fontSize:"12px",opacity:.7},children:"Includes all Mue settings and custom images"})]})]}),i.jsx("div",{className:"resetFooter",children:i.jsx(vA,{type:"settings",onClick:()=>L(!1),label:d.getMessage("modals.main.settings.buttons.close")})})]})})]})});Gi.displayName="CustomSettings";const Jf=({usingImage:e})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.display"),subtitle:d.getMessage("modals.main.settings.sections.background.display_subtitle")}),i.jsxs(cA,{children:[i.jsx(mA,{name:"bgtransition",text:d.getMessage("modals.main.settings.sections.background.transition"),element:".other",disabled:!e}),i.jsx(mA,{name:"photoInformation",text:d.getMessage("modals.main.settings.sections.background.photo_information"),element:".other"}),i.jsx(mA,{name:"photoMap",text:d.getMessage("modals.main.settings.sections.background.show_map"),element:".other",disabled:!e})]})]});d.getMessage("modals.main.settings.sections.background.source.quality.original"),d.getMessage("modals.main.settings.sections.background.source.quality.high"),d.getMessage("modals.main.settings.sections.background.source.quality.normal"),d.getMessage("modals.main.settings.sections.background.source.quality.datasaver");const Wf=[{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.navbar.refresh_options.none")},{value:"grayscale",text:d.getMessage("modals.main.settings.sections.background.effects.filters.grayscale")},{value:"sepia",text:d.getMessage("modals.main.settings.sections.background.effects.filters.sepia")},{value:"invert",text:d.getMessage("modals.main.settings.sections.background.effects.filters.invert")},{value:"saturate",text:d.getMessage("modals.main.settings.sections.background.effects.filters.saturate")},{value:"contrast",text:d.getMessage("modals.main.settings.sections.background.effects.filters.contrast")}];function ji(){return[{value:"api",text:d.getMessage("wb.settings_bundled_photos")},{value:"custom",text:d.getMessage("modals.main.settings.sections.background.type.custom_image")},{value:"colour",text:d.getMessage("modals.main.settings.sections.background.type.custom_colour")},{value:"random_colour",text:d.getMessage("modals.main.settings.sections.background.type.random_colour")},{value:"random_gradient",text:d.getMessage("modals.main.settings.sections.background.type.random_gradient")}]}const Yf=({backgroundFilter:e,onFilterChange:A})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle")}),i.jsxs(cA,{children:[i.jsx(at,{title:d.getMessage("modals.main.settings.sections.background.effects.blur"),name:"blur",min:"0",max:"100",default:"0",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(at,{title:d.getMessage("modals.main.settings.sections.background.effects.brightness"),name:"brightness",min:"0",max:"100",default:"100",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.effects.filters.title"),name:"backgroundFilter",onChange:A,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo",items:Wf}),e!=="none"&&i.jsx(at,{title:d.getMessage("modals.main.settings.sections.background.effects.filters.amount"),name:"backgroundFilterAmount",min:"0",max:"100",default:"0",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"})]})]}),Zf=({backgroundType:e,onTypeChange:A})=>i.jsxs(rA,{final:e==="random_colour"||e==="random_gradient",children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:A,category:"background",items:ji()})})]}),gs=({icon:e,title:A,subtitle:r,onClick:t,action:n})=>i.jsxs("div",{className:"moreSettings",onClick:t,children:[i.jsxs("div",{className:"left",children:[i.jsx(e,{}),i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:A}),i.jsx("span",{className:"subtitle",children:r})]})]}),i.jsx("div",{className:"action",children:n||i.jsx(fs,{})})]}),Vi=b.memo(({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(localStorage.getItem("backgroundType")||"api"),[a,s]=b.useState(localStorage.getItem("backgroundFilter")||"none"),o=["colour","random_colour","random_gradient"].includes(t);b.useEffect(()=>{o&&e!=="source"&&A("source",r)},[o,e,A,r]);const l=()=>{switch(t){case"custom":return i.jsx(Gi,{});case"colour":return i.jsx(Df,{});default:return null}},c=t!=="colour"&&t!=="random_colour"&&t!=="random_gradient",g=t==="api"||t==="custom",B=()=>e==="effects"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.effects.title"),goBack:()=>A(null,r)}):e==="source"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.source.title"),goBack:()=>A(null,r)}):i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),setting:"background",category:"background",visibilityToggle:!0});return i.jsxs(i.Fragment,{children:[B(),!e&&i.jsxs(i.Fragment,{children:[i.jsx(gs,{icon:ho,title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle"),onClick:()=>A("source",r),action:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:u=>{n(u),u==="custom"&&hA.emit("refresh","background")},category:"background",items:ji()})}),g&&i.jsx(gs,{icon:wo,title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle"),onClick:()=>A("effects",r)})]}),!e&&g&&i.jsx(Jf,{usingImage:c}),e==="source"&&i.jsxs(i.Fragment,{children:[i.jsx(Zf,{backgroundType:t,onTypeChange:n}),l()]}),g&&e==="effects"&&i.jsx(Yf,{backgroundFilter:a,onFilterChange:u=>s(u)})]})});Vi.displayName="BackgroundOptions";function zf(){const e=[{value:"ask",text:d.getMessage("wb.ask")},{value:"act",text:d.getMessage("wb.act")},...po()?[{value:"search",text:d.getMessage("wb.search")}]:[]];return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_taskbox"),setting:"taskBox",category:"widgets",visibilityToggle:!0}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("wb.settings_default_mode"),subtitle:d.getMessage("wb.settings_taskbox_sub")}),i.jsx(cA,{children:i.jsx(KA,{name:"taskBoxMode",category:"widgets",items:e})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("wb.settings_recent")}),i.jsx(cA,{children:i.jsx(Qs,{name:"recentChats",category:"widgets"})})]})]})}const qf=["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"];function $f({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const[t,n]=b.useState(!1),a="modals.main.settings.sections.advanced",s=()=>localStorage.getItem("welcomePreview")!=="true"?i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.data"),subtitle:d.getMessage("modals.main.settings.sections.advanced.data_description")}),i.jsxs("div",{className:"resetDataButtonsLayout",children:[i.jsx(vA,{onClick:()=>n(!0),icon:i.jsx(mo,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{onClick:()=>xo(),icon:i.jsx(vo,{}),label:d.getMessage("modals.main.settings.buttons.export")}),i.jsx(vA,{onClick:()=>document.getElementById("file-input").click(),icon:i.jsx(Uo,{}),label:d.getMessage("modals.main.settings.buttons.import")})]}),i.jsx(Ms,{id:"file-input",accept:"application/json",type:"settings",loadFunction:c=>Io(c)})]}):i.jsx("div",{className:"emptyItems",children:i.jsx("div",{className:"emptyMessage",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx(Fo,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.description")})]})})}),o=e==="data";let l;return o?l=i.jsx(TA,{title:d.getMessage(`${a}.title`),secondaryTitle:d.getMessage(`${a}.data`),goBack:()=>A(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage(`${a}.title`),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsxs(i.Fragment,{children:[i.jsx(s,{}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>n(!1),isOpen:t,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Co,{modalClose:()=>n(!1)})})]}):i.jsxs(i.Fragment,{children:[i.jsx(Rn,{title:d.getMessage(`${a}.data`),subtitle:d.getMessage(`${a}.data_subtitle`),onClick:()=>A("data",r),icon:i.jsx(Qo,{})}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.timezone.title"),subtitle:d.getMessage("modals.main.settings.sections.advanced.timezone.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"timezone",category:"timezone",items:[{value:"auto",text:d.getMessage("modals.main.settings.sections.advanced.timezone.automatic")},...qf.map(c=>({value:c,text:c}))]})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.tab_name"),subtitle:d.getMessage("modals.main.settings.sections.advanced.tab_name_subtitle")}),i.jsx(cA,{children:i.jsx(ar,{name:"tabName",default:d.getMessage("tabname"),category:"other"})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.custom_css"),subtitle:d.getMessage("modals.main.settings.sections.advanced.custom_css_subtitle")}),i.jsx(cA,{children:i.jsx(ar,{name:"customcss",textarea:!0,category:"other",customcss:!0})})]})]})]})}function Ah({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const t=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.theme.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.theme.description")}),i.jsx(cA,{children:i.jsx(Bn,{name:"theme",options:[{name:d.getMessage("modals.main.settings.sections.appearance.theme.auto"),value:"auto"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.light"),value:"light"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.dark"),value:"dark"}],category:"other"})})]}),n=()=>{const c="modals.main.settings.sections.appearance.font.weight";return i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.font.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.font.description")}),i.jsxs(cA,{children:[i.jsx(ar,{title:d.getMessage("modals.main.settings.sections.appearance.font.custom"),name:"font",upperCaseFirst:!0,category:"other"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.weight.title"),name:"fontweight",category:"other",items:[{value:"100",text:d.getMessage(c+".thin")},{value:"200",text:d.getMessage(c+".extra_light")},{value:"300",text:d.getMessage(c+".light")},{value:"400",text:d.getMessage(c+".normal")},{value:"500",text:d.getMessage(c+".medium")},{value:"600",text:d.getMessage(c+".semi_bold")},{value:"700",text:d.getMessage(c+".bold")},{value:"800",text:d.getMessage(c+".extra_bold")}]}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.style.title"),name:"fontstyle",category:"other",items:[{value:"normal",text:d.getMessage("modals.main.settings.sections.appearance.font.style.normal")},{value:"italic",text:d.getMessage("modals.main.settings.sections.appearance.font.style.italic")},{value:"oblique",text:d.getMessage("modals.main.settings.sections.appearance.font.style.oblique")}]})]})]})},a=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.style.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.style.description")}),i.jsx(cA,{children:i.jsx(Bn,{name:"widgetStyle",element:".other",options:[{name:d.getMessage("modals.main.settings.sections.appearance.style.legacy"),value:"legacy"},{name:d.getMessage("modals.main.settings.sections.appearance.style.new"),value:"new"}],category:"widgets"})})]}),s=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description")}),i.jsxs(cA,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.title"),name:"textBorder",category:"other",items:[{value:"new",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.new")},{value:"true",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.old")},{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.none")}]}),i.jsx(mA,{text:d.getMessage("modals.main.settings.sections.appearance.accessibility.animations"),name:"animations",category:"other"}),i.jsx(at,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.toast_duration"),name:"toastDisplayTime",default:"2500",step:"100",min:"500",max:"5000",marks:st.toast,display:" "+d.getMessage("modals.main.settings.sections.appearance.accessibility.milliseconds")})]})]}),o=e==="accessibility";let l;return o?l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),goBack:()=>A(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsx(s,{}):i.jsxs(i.Fragment,{children:[i.jsx(Rn,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description"),icon:i.jsx(bo,{}),onClick:()=>A("accessibility",r)}),i.jsx(t,{}),i.jsx(n,{}),i.jsx(a,{})]})]})}const eh=b.memo(Ah),th=`BSD 3-Clause License
+
+Copyright (c) 2019-2026 The Mue Authors
+Copyright (c) 2018-2019 David Ralph
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+`;function rh(){const e=Object.keys(yo),{MUE_REPO_URL:A,MUE_VERSION:r,REPO_URL:t,WEBSITE_URL:n}=d.constants;return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_credits")}),i.jsx(rA,{children:i.jsx(nA,{title:"WebBrain",subtitle:"The WebBrain new tab is free software, licensed GPL-3.0-or-later, and makes no network requests of its own."})}),i.jsx(rA,{children:i.jsx(nA,{title:`Based on Mue ${r}`,subtitle:i.jsxs(i.Fragment,{children:["Derived from ",i.jsx("a",{href:A,target:"_blank",rel:"noreferrer",children:"Mue"})," by The Mue Authors and David Ralph, used under the BSD-3-Clause license reproduced below. Mue is not affiliated with or endorsing WebBrain."]})})}),i.jsx(rA,{children:i.jsx(nA,{title:d.getMessage("wb.settings_bundled_photos"),subtitle:`${e.join(", ")}. Offline images shipped with Mue (Unsplash, Pexels and Pixabay).`})}),i.jsx(rA,{children:i.jsx(nA,{title:"Fonts and icons",subtitle:"Inter, Lexend Deca and Montserrat (SIL Open Font License); Material Design icons via react-icons."})}),i.jsx(rA,{final:!0,children:i.jsx(nA,{title:"Mue license",subtitle:i.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},children:th})})}),i.jsxs("p",{style:{opacity:.7,fontSize:"0.85rem"},children:[i.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:n.replace("https://","")})," · ",i.jsx("a",{href:t,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})}function nh(){return i.jsx("span",{className:"greeting preview",children:"Good Morning"})}const ah=b.memo(nh),sh=b.lazy(()=>Eo(()=>import("./index-WbVrDO2P.js"),__vite__mapDeps([0,1,2]),import.meta.url));function ih(){return localStorage.getItem("timeType")==="analogue"?i.jsx(b.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx("div",{className:"clockBackground",children:i.jsx(sh,{className:"analogclock clock-container",value:"2022-10-07T17:00:00+00:00",size:50})})}):localStorage.getItem("timeType")==="percentageComplete"?i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"68%"}):localStorage.getItem("timeType")==="verticalClock"?i.jsxs("span",{className:"vertical-clock clock-container",style:{fontSize:"30px"},children:[i.jsx("div",{className:"hour",children:"10"}),i.jsx("div",{className:"minute",children:"23"})]}):i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"10:24"})}const oh=b.memo(ih);function lh(e){return On({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(e)}function ch(e){return On({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"},child:[]}]})(e)}function gh(e){return On({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17.625 1.499c-2.32 0-4.354 1.203-5.625 3.03-1.271-1.827-3.305-3.03-5.625-3.03C3.129 1.499 0 4.253 0 8.249c0 4.275 3.068 7.847 5.828 10.227a33.14 33.14 0 0 0 5.616 3.876l.028.017.008.003-.001.003c.163.085.342.126.521.125.179.001.358-.041.521-.125l-.001-.003.008-.003.028-.017a33.14 33.14 0 0 0 5.616-3.876C20.932 16.096 24 12.524 24 8.249c0-3.996-3.129-6.75-6.375-6.75zm-.919 15.275a30.766 30.766 0 0 1-4.703 3.316l-.004-.002-.004.002a30.955 30.955 0 0 1-4.703-3.316c-2.677-2.307-5.047-5.298-5.047-8.523 0-2.754 2.121-4.5 4.125-4.5 2.06 0 3.914 1.479 4.544 3.684.143.495.596.797 1.086.796.49.001.943-.302 1.085-.796.63-2.205 2.484-3.684 4.544-3.684 2.004 0 4.125 1.746 4.125 4.5 0 3.225-2.37 6.216-5.048 8.523z"},child:[]}]})(e)}function uh(){return i.jsx("div",{className:"quickLinksSkeleton",children:i.jsxs("div",{className:"circles",children:[i.jsx("div",{children:i.jsx(lh,{})}),i.jsx("div",{children:i.jsx(ch,{})}),i.jsx("div",{children:i.jsx(gh,{})})]})})}const Bh=b.memo(uh);function dh(){return i.jsx("span",{className:"date",children:"Thursday January 1st"})}const fh=b.memo(dh);function hh(){return i.jsx("h2",{className:"message",children:i.jsxs("span",{children:["Message",i.jsx("br",{})]})})}const wh=b.memo(hh),ph={greeting:d.getMessage("modals.main.settings.sections.greeting.title"),time:d.getMessage("modals.main.settings.sections.time.title"),quicklinks:d.getMessage("modals.main.settings.sections.quicklinks.title"),date:d.getMessage("modals.main.settings.sections.date.title"),message:d.getMessage("modals.main.settings.sections.message.title")},Ch=({id:e})=>{const{attributes:A,listeners:r,setNodeRef:t,transform:n,transition:a}=vs({id:e}),s={transform:Us.Transform.toString(n),transition:a};return i.jsxs("li",{ref:t,style:s,...A,...r,className:"sortableItem",children:[ph[e],i.jsx(ms,{})]})},Qh=()=>{const[e,A]=b.useState(()=>JSON.parse(localStorage.getItem("order"))||["greeting","time","quicklinks","date","message"]),r=Fs(sr(Es),sr(ys,{coordinateGetter:bs})),t=s=>{const{active:o,over:l}=s;l&&o.id!==l.id&&A(c=>{const g=c.indexOf(o.id),B=c.indexOf(l.id);return Ls(c,g,B)})},n=s=>s==="quicklinks"?localStorage.getItem("quicklinksenabled")==="true":localStorage.getItem(s)==="true",a=s=>{switch(s){case"greeting":return i.jsx(ah,{});case"time":return i.jsx(oh,{});case"quicklinks":return i.jsx(Bh,{});case"date":return i.jsx(fh,{});case"message":return i.jsx(wh,{});default:return null}};return b.useEffect(()=>{localStorage.setItem("order",JSON.stringify(e)),d.stats.postEvent("setting","Widget order"),hA.emit("refresh","widgets")},[e]),i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"mainTitle",children:d.getMessage("modals.main.marketplace.product.overview")}),i.jsxs("div",{className:"overviewGrid",children:[i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.welcome.buttons.preview")}),i.jsx("div",{className:"tabPreview",children:i.jsx("div",{className:"previewItem",style:{maxWidth:"50%"},children:e.map((s,o)=>n(s)?i.jsx("div",{className:"previewItem",children:a(s)},`item-${s}`):null)})})]}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.order.title")}),i.jsx(xs,{sensors:r,collisionDetection:Is,onDragEnd:t,children:i.jsx(Hs,{items:e,strategy:Ss,children:i.jsx("ul",{className:"sortableContainer",children:e.map(s=>n(s)?i.jsx(Ch,{id:s},s):null)})})})]})]})]})},us=[{label:"modals.main.marketplace.product.overview",name:"order",component:Qh},{label:"modals.main.settings.sections.appearance.navbar.title",name:"navbar",component:Vo},{label:"modals.main.settings.sections.greeting.title",name:"greeting",component:Jo},{label:"modals.main.settings.sections.time.title",name:"time",component:Wo},{label:"modals.main.settings.sections.quicklinks.title",name:"quicklinks",component:$o},{label:"modals.main.settings.sections.date.title",name:"date",component:Yo},{label:"modals.main.settings.sections.message.title",name:"message",component:Al},{label:"modals.main.settings.sections.background.title",name:"background",component:Vi},{label:"wb.settings_taskbox",name:"taskbox",component:zf},{label:"modals.main.settings.sections.appearance.title",name:"appearance",component:eh},{label:"modals.main.settings.sections.advanced.title",name:"advanced",component:$f},{label:"wb.settings_credits",name:"credits",component:rh}];function mh(e){const A=Qt(),r=b.useMemo(()=>us.map(t=>({...t,translatedLabel:A(t.label)})),[A]);return i.jsx(No,{changeTab:t=>e.changeTab(t),current:"settings",currentTab:e.currentTab,onSectionChange:e.onSectionChange,onSubSectionChange:e.onSubSectionChange,currentSubSection:e.currentSubSection,deepLinkData:e.deepLinkData,navigationTrigger:e.navigationTrigger,sections:us,children:r.map(({label:t,name:n,component:a,translatedLabel:s})=>i.jsx("div",{label:s,name:n,children:i.jsx(a,{currentSubSection:e.currentSubSection,onSubSectionChange:e.onSubSectionChange,sectionName:n})},n))})}const Uh=b.memo(mh);export{Uh as default};
diff --git a/src/chrome/newtab/assets/Settings-DPCKRiko.js b/src/chrome/newtab/assets/Settings-DPCKRiko.js
deleted file mode 100644
index 9615ab53d..000000000
--- a/src/chrome/newtab/assets/Settings-DPCKRiko.js
+++ /dev/null
@@ -1,53 +0,0 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-IXgZpYJT.js","./index-CdhTpdYh.js","./index-BmeAAROj.css"])))=>i.map(i=>d[i]);
-import{g as Bs,a as ve,s as Pi,v as d,y as RA,r as Xi,E as hA,c as Jn,b as tr,d as b,j as i,B as vA,M as Ji,e as Wi,f as Yi,h as ds,S as at,R as m,i as fs,u as Qt,k as Zi,D as zi,l as hs,m as fe,n as Wn,T as Yn,q as ws,o as qi,p as ps,t as Bt,w as un,x as dt,z as Cs,C as mA,A as KA,F as $i,G as Ao,H as eo,I as to,J as Lr,K as Qs,L as rr,N as nr,O as Bn,P as ms,Q as vs,U as Us,V as ro,W as Fs,X as ar,Y as bs,Z as ys,_ as Es,$ as xs,a0 as Is,a1 as Hs,a2 as Ss,a3 as no,a4 as Ls,a5 as Zn,a6 as ao,a7 as ks,a8 as bt,a9 as so,aa as io,ab as yt,ac as zn,ad as oo,ae as qn,af as lo,ag as co,ah as go,ai as Ms,aj as uo,ak as Bo,al as fo,am as $n,an as ho,ao as wo,ap as po,aq as Co,ar as Qo,as as mo,at as vo,au as Uo,av as Fo,aw as bo,ax as yo,ay as Eo,az as On}from"./index-CdhTpdYh.js";const Ks="wbBackgroundsBackup";async function xo(){const e={};Object.keys(localStorage).forEach(n=>{e[n]=localStorage.getItem(n)});try{const n=await Bs(),a=n>0?await ve():[];a.length===n&&(e[Ks]=a.map(({id:s,...o})=>o))}catch(n){console.error("Could not include uploaded backgrounds in the backup:",n)}const A=new Date,t=`webbrain_newtab_settings_backup_${`${A.getFullYear()}-${(A.getMonth()+1).toString().padStart(2,"0")}-${A.getDate().toString().padStart(2,"0")}_${A.getHours().toString().padStart(2,"0")}-${A.getMinutes().toString().padStart(2,"0")}-${A.getSeconds().toString().padStart(2,"0")}`}.json`;Pi(e,t),d.stats.postEvent("tab","Settings exported")}async function Io(e,A=!1){let r,t;try{const s=JSON.parse(e);if(!s||typeof s!="object"||Array.isArray(s))throw new Error("settings file is not an object");({[Ks]:r,...t}=s);const o=So(t);if(o)throw new Error(`invalid settings: ${o}`)}catch(s){return console.error("Could not read the settings file:",s),RA(d.getMessage("toasts.error")),!1}let n=null;const a=new Map;try{Array.isArray(r)&&(n=await Lo(r)),Object.keys(t).forEach(s=>{a.has(s)||a.set(s,localStorage.getItem(s)),localStorage.setItem(s,t[s])})}catch(s){return console.error("Settings import failed, rolling back:",s),a.forEach((o,l)=>{try{o===null?localStorage.removeItem(l):localStorage.setItem(l,o)}catch{}}),n&&await n(),RA(d.getMessage("toasts.error")),!1}return RA(d.getMessage("toasts.imported")),A||d.stats.postEvent("tab","Settings imported"),Xi?setTimeout(()=>window.location.reload(),1200):hA.emit("settingsimported"),!0}const kr=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Ce=e=>typeof e=="string",Ho={applinks:e=>kr(e)&&Ce(e.name)&&Ce(e.url),backgroundExclude:Ce,customEvents:e=>kr(e)&&Ce(e.name)&&Number.isFinite(e.month)&&Number.isFinite(e.date),messages:Ce,order:Ce,todo:e=>kr(e)&&Ce(e.value)};function So(e){for(const[A,r]of Object.entries(e))if(r!==null&&typeof r=="object")return`${A} is not a plain value`;for(const[A,r]of Object.entries(Ho)){if(!(A in e))continue;let t;try{t=JSON.parse(e[A])}catch{return`${A} is not valid JSON`}if(!Array.isArray(t))return`${A} is not a list`;if(!t.every(r))return`${A} has an entry of the wrong shape`}if("favourite"in e&&e.favourite!=="null")try{const A=JSON.parse(e.favourite);if(A!==null&&(typeof A!="object"||Array.isArray(A)))return"favourite is not an object"}catch{return"favourite is not valid JSON"}return null}const Aa=({id:e,...A})=>A;async function Lo(e){const A=e.filter(a=>a&&typeof a.url=="string").map(Aa),r=await Bs(),t=r>0?(await ve()).map(Aa):[];if(t.length!==r)throw new Error("current gallery could not be read");const n=async()=>{try{await Jn();for(const a of t)await tr(a)}catch(a){console.error("Rollback of the background gallery failed:",a)}};try{await Jn();for(const a of A)await tr(a)}catch(a){throw await n(),a}return n}function TA(e){const[A,r]=b.useState(localStorage.getItem(e.setting)==="true");b.useEffect(()=>{r(localStorage.getItem(e.setting)==="true")},[e.setting]);const t=()=>{const s=localStorage.getItem(e.setting)==="true";if(localStorage.setItem(e.setting,!s),r(!s),d.stats.postEvent("setting",`${e.name} ${A===!0?"enabled":"disabled"}`),hA.emit("toggle",e.setting),e.element&&!document.querySelector(e.element)){ds();return}hA.emit("refresh",e.category)},n=()=>i.jsx(vA,{type:"settings",onClick:t,icon:A?i.jsx(Ji,{}):i.jsx(Wi,{}),label:A?"Hide":"Show"}),a=()=>i.jsx(vA,{type:"settings",onClick:()=>window.open(`${d.constants.BUG_REPORT}?title=${encodeURIComponent(e.title)}`,"_blank"),icon:i.jsx(Yi,{}),label:d.getMessage("modals.main.settings.sections.header.report_issue")});return i.jsxs("div",{className:"modalHeader",children:[i.jsx("span",{className:"mainTitle",children:e.secondaryTitle||e.title}),i.jsxs("div",{className:"headerActions",children:[e.visibilityToggle&&i.jsx(n,{}),e.report!==!1&&i.jsx(a,{}),e.children]})]})}function rA(e){const A=`${e.final?"settingsRow settingsNoBorder":"settingsRow"} ${e.inactive?"preferencesInactive":""}`;return i.jsx("div",{className:A,children:e.children})}function nA(e){return i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:e.title}),i.jsx("span",{className:"subtitle",children:e.subtitle})]})}function cA(e){return i.jsx("div",{className:"action",children:e.children})}const ko=[{value:10,label:"0.1x"},{value:100,label:"1x"},{value:200,label:"2x"},{value:400,label:"4x"}],Mo=[{value:500,label:"0.5s"},{value:1e3,label:"1s"},{value:1500,label:"1.5s"},{value:2e3,label:"2s"},{value:2500,label:"2.5s"},{value:3e3,label:"3s"},{value:4e3,label:"4s"},{value:5e3,label:"5s"}],Ko=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],st={zoom:ko,toast:Mo,background:Ko},mt=({children:e,...A})=>{const[r,t]=b.useState(localStorage.getItem(A.setting)==="true");return b.useEffect(()=>{const n=a=>{a===A.setting&&t(localStorage.getItem(A.setting)==="true")};return hA.on("toggle",n),()=>hA.off("toggle",n)},[A.setting]),i.jsxs("div",{className:r?"preferences":"preferencesInactive",children:[A.zoomSetting&&i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.widget_zoom"),subtitle:d.getMessage("modals.main.settings.sections.header.size")}),i.jsx(cA,{children:i.jsx(at,{name:A.zoomSetting,min:"10",max:"400",default:"100",display:"%",marks:st.zoom,category:A.zoomCategory||A.category})})]}),e]})};function Rn({title:e,subtitle:A,icon:r,onClick:t,children:n}){return i.jsxs("div",{className:"moreSettings",onClick:t,children:[i.jsxs("div",{className:"left",children:[r,i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:e}),i.jsx("span",{className:"subtitle",children:A})]})]}),i.jsx("div",{className:"action",children:m.Children.count(n)===0?i.jsx(fs,{}):n})]})}function To({label:e,currentTab:A,onClick:r,navbarTab:t}){const n=Qt(),[a,s]=b.useState(!0);b.useEffect(()=>{s(localStorage.getItem("experimental")!=="false")},[]);const o=Zi(e,{getMessage:n}),l=zi.some(p=>n(p)===e),B=`${t?"navbar-item":"tab-list-item"}${A===e?` ${t?"navbar-item-active":"tab-list-active"}`:""}`;return e===n("modals.main.settings.sections.experimental.title")&&!a?i.jsx("hr",{}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{className:B,onClick:()=>r(e),children:[o&&i.jsx(o,{})," ",i.jsx("span",{children:e})]}),l&&i.jsx("hr",{})]})}const Do=b.memo(To),Oo=({isVisible:e,onHide:A})=>e?i.jsxs("div",{className:"reminder-info",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.reminder.title")}),i.jsx("span",{className:"closeModal",onClick:A,children:i.jsx(hs,{})})]}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.reminder.message")}),i.jsxs("button",{onClick:()=>window.location.reload(),children:[i.jsx(fe,{}),d.getMessage("modals.main.error_boundary.refresh")]})]}):null;class Ro extends b.PureComponent{constructor(A){super(A),this.state={error:!1,errorData:"",showReport:!0}}static getDerivedStateFromError(A){return console.error(A),{error:!0,errorData:A}}reportError(){window.open(d.constants.BUG_REPORT,"_blank","noopener,noreferrer"),this.setState({showReport:!1})}render(){return this.state.error?i.jsx("div",{className:"emptyItems",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Wn,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.error_boundary.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.message")}),i.jsxs("div",{className:"buttonsRow",children:[this.state.showReport?i.jsx(vA,{type:"settings",icon:i.jsx(Wn,{}),label:d.getMessage("modals.main.error_boundary.report_error"),onClick:()=>this.reportError()}):i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.sent")}),i.jsx(vA,{type:"settings",icon:i.jsx(fe,{}),label:d.getMessage("modals.main.error_boundary.refresh"),onClick:()=>window.location.reload()})]})]})}):this.props.children}}const No=({children:e,navbar:A=!1,currentTab:r,onSectionChange:t,resetToFirst:n,deepLinkData:a,navigationTrigger:s,sections:o})=>{const l=Qt(),g=(()=>{if(a?.section&&o){const E=o.find(h=>h.name===a.section);if(E)return{label:l(E.label),name:E.name}}return{label:e[0]?.props.label,name:e[0]?.props.name}})(),[B,u]=b.useState(g.label),[p,Q]=b.useState(g.name),[C,x]=b.useState(localStorage.getItem("showReminder")==="true"),U=b.useRef(null),y=(E,h)=>{h!==p&&d.stats.postEvent("tab",`Opened ${h}`),u(E),Q(h),U.current&&(U.current.scrollTop=0),t&&t(E,h)};b.useEffect(()=>{t&&B&&t(B,p)},[]),b.useEffect(()=>{if(o&&p){const E=o.find(h=>h.name===p);if(E){const h=l(E.label);u(h)}}},[l,o,p]),b.useEffect(()=>{if(s?.type==="settings-section"&&o){const E=o.find(h=>h.name===s.data);if(E){const h=l(E.label);u(h),Q(E.name),U.current&&(U.current.scrollTop=0)}}},[s,o,l]),b.useEffect(()=>{n&&(u(e[0]?.props.label),Q(e[0]?.props.name),U.current&&(U.current.scrollTop=0),t&&t(e[0]?.props.label,e[0]?.props.name))},[n]),b.useEffect(()=>{const E=()=>x(!0);return hA.on("reminder",E),()=>hA.off("reminder",E)},[]);const L=()=>{localStorage.setItem("showReminder","false"),x(!1)},S=r===Yn.SETTINGS||r===Yn.DISCOVER;return i.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},children:[S?i.jsxs("div",{className:"modalSidebar",children:[e.map((E,h)=>i.jsx(Do,{currentTab:B,label:E.props.label,onClick:I=>y(I,E.props.name),navbarTab:A},h)),i.jsx(Oo,{isVisible:C,onHide:L})]}):null,i.jsx("div",{className:"modalTabContent",ref:U,children:e.map((E,h)=>E.props.label!==B?null:i.jsx(Ro,{children:E.props.children},`error-boundary-${h}`))})]})};async function sr(e){const A=String(e??"").trim();try{return new URL(/^[a-z][a-z0-9+.-]*:/i.test(A)?A:`https://${A}`).hostname.replace(/^www\./i,"")||A}catch{return A}}function ft(e){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(e)}function ir(e){let A=String(e??"").trim();if(!A)return null;const r=/^https?:\/\//i.exec(A);A=r?r[0].toLowerCase()+A.slice(r[0].length):`https://${A}`;try{if(!/^https?:$/.test(new URL(A).protocol))return null}catch{return null}return ft(A)?A:null}const _o=({item:e,deleteLink:A,startEditLink:r,draggable:t=!1,onDragStart:n,onDragOver:a,onDrop:s,onDragEnd:o,isDragOver:l=!1,isDragging:c=!1})=>{let g,B=null;if(localStorage.getItem("quicklinksnewtab")==="true"&&(g="_blank",B="noopener noreferrer"),localStorage.getItem("quicklinksText")==="true")return i.jsx("a",{className:"quicklinkstext",onContextMenu:C=>A(e.key,C),href:e.url,target:g,rel:B,draggable:!1,children:e.name});const p=e.icon||ws(e.url,e.name),Q=`messageMap ${c?"dragging":""} ${l?"drag-over":""}`;return i.jsxs("div",{className:Q,draggable:t,onDragStart:C=>n&&n(C,e.key),onDragOver:C=>a&&a(C,e.key),onDrop:C=>s&&s(C,e.key),onDragEnd:C=>o&&o(C),children:[i.jsx("div",{className:"dragHandle","aria-hidden":!0,children:i.jsx(qi,{})}),i.jsx("div",{className:"icon",children:i.jsx("img",{src:p,alt:e.name,draggable:!1,style:{height:"30px",width:"30px"}})}),i.jsxs("div",{className:"messageText",children:[i.jsx("div",{className:"title",children:e.name}),i.jsx("div",{className:"subtitle",children:i.jsx("a",{className:"quicklinknostyle",target:"_blank",rel:"noopener noreferrer",href:e.url,children:e.url})})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsx(vA,{type:"settings",onClick:()=>r(e),icon:i.jsx(ps,{}),label:d.getMessage("modals.main.settings.sections.quicklinks.edit")}),i.jsx(vA,{type:"settings",onClick:C=>A(e.key,C),icon:i.jsx(Bt,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]})};function Go({appsEnabled:e}){const A=Qt(),[r,t]=b.useState({newLink:!1,edit:!1,items:JSON.parse(localStorage.getItem("applinks")),urlError:"",iconError:"",editData:null}),n=async(l,c,g)=>{const B=JSON.parse(localStorage.getItem("applinks"));if(c=ir(c),!c)return t(u=>({...u,urlError:A("widgets.quicklinks.url_error")}));if(g.length>0&&ft(g)===!1)return t(u=>({...u,iconError:A("widgets.quicklinks.icon_error")}));B.push({name:l||await sr(c),url:c,icon:g||"",key:Math.random().toString(36).substring(7)+1}),localStorage.setItem("applinks",JSON.stringify(B)),t({newLink:!1,edit:!1,items:B,urlError:"",iconError:""}),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link add")},a=l=>{t(c=>({...c,edit:!0,editData:l}))},s=async(l,c,g,B)=>{const u=JSON.parse(localStorage.getItem("applinks")),p=u.find(Q=>Q.key===l.key);if(p){if(g=ir(g),!g)return t(Q=>({...Q,urlError:A("widgets.quicklinks.url_error")}));if(B.length>0&&ft(B)===!1)return t(Q=>({...Q,iconError:A("widgets.quicklinks.icon_error")}));p.name=c||await sr(g),p.url=g,p.icon=B||"",localStorage.setItem("applinks",JSON.stringify(u)),t(Q=>({...Q,items:u,edit:!1,newLink:!1})),hA.emit("refresh","navbar")}},o=(l,c)=>{c.preventDefault();const g=JSON.parse(localStorage.getItem("applinks")).filter(B=>B.key!==l);localStorage.setItem("applinks",JSON.stringify(g)),t(B=>({...B,items:g})),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link delete")};return i.jsxs(i.Fragment,{children:[i.jsxs(rA,{final:!0,inactive:!e,children:[i.jsx(nA,{title:A("widgets.navbar.apps.title"),subtitle:A("modals.main.settings.sections.appearance.navbar.apps_subtitle")}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>t(l=>({...l,newLink:!0})),icon:i.jsx(un,{}),label:A("modals.main.settings.sections.quicklinks.add_link")})})]}),i.jsx("div",{className:"messagesContainer",children:r.items.map((l,c)=>i.jsx(_o,{item:l,startEditLink:()=>a(l),deleteLink:(g,B)=>o(g,B)},c))}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>t(l=>({...l,newLink:!1,edit:!1})),isOpen:r.edit||r.newLink,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Cs,{urlError:r.urlError,iconError:r.iconError,addLink:(l,c,g)=>n(l,c,g),editLink:(l,c,g,B)=>s(l,c,g,B),edit:r.edit,editData:r.editData,closeModal:()=>t(l=>({...l,newLink:!1,edit:!1}))})})]})}function jo(){const e=Qt(),[A,r]=b.useState(localStorage.getItem("refresh")==="true"),[t,n]=b.useState(localStorage.getItem("appsEnabled")==="true"||!1),a="modals.main.settings.sections.appearance.navbar",s=()=>i.jsxs(rA,{final:!1,children:[i.jsx(nA,{title:e("modals.main.settings.additional_settings"),subtitle:e("modals.main.settings.sections.appearance.navbar.additional")}),i.jsx(cA,{children:i.jsx(mA,{name:"navbarHover",text:e(`${a}.hover`),category:"navbar"})})]}),o=()=>{const c=({icon:B,messageKey:u,settingName:p})=>{const[Q,C]=b.useState(localStorage.getItem(p)!=="true"),x=()=>{localStorage.setItem(p,Q),p==="refresh"?r(!A):p==="appsEnabled"&&n(!t),C(!Q),d.stats.postEvent("setting",`${p} ${Q?"disabled":"enabled"}`),hA.emit("refresh","navbar")};return i.jsxs("button",{onClick:x,className:`navbarButtonOption ${Q===!0?"disabled":""}`,children:[B,i.jsx("span",{className:"subtitle",children:e(u)})]})},g=[{icon:i.jsx($i,{}),settingName:"view",messageKey:"modals.main.settings.sections.background.buttons.view"},{icon:i.jsx(Ao,{}),settingName:"notesEnabled",messageKey:`${a}.notes`},{icon:i.jsx(eo,{}),settingName:"todoEnabled",messageKey:"widgets.navbar.todo.title"},{icon:i.jsx(fe,{}),settingName:"refresh",messageKey:`${a}.refresh`},{icon:i.jsx(to,{}),settingName:"appsEnabled",messageKey:"widgets.navbar.apps.title"}];return i.jsxs(rA,{children:[i.jsx(nA,{title:e("modals.main.settings.sections.appearance.navbar.widgets")}),i.jsx(cA,{children:i.jsx("div",{className:"navbarButtonOptions",children:g.map((B,u)=>i.jsx(c,{...B},u))})})]})},l=()=>i.jsxs(rA,{final:!1,inactive:!A,children:[i.jsx(nA,{title:e(`${a}.refresh`),subtitle:e("modals.main.settings.sections.appearance.navbar.refresh_subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"refreshOption",category:"navbar",items:[{value:"page",text:e("modals.main.settings.sections.appearance.navbar.refresh_options.page")},{value:"background",text:e("modals.main.settings.sections.background.title")}]})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:e(`${a}.title`),setting:"navbar",category:"widgets",zoomSetting:"zoomNavbar",zoomCategory:"navbar"}),i.jsx(s,{}),i.jsx(o,{}),i.jsx(l,{}),i.jsx(Go,{appsEnabled:t})]})}const Vo=b.memo(jo),ea=[{id:"widgets.greeting.christmas",name:"Merry Christmas",month:12,date:25},{id:"widgets.greeting.newyear",name:"Happy New Year",month:1,date:1},{id:"widgets.greeting.halloween",name:"Happy Halloween",month:10,date:31}],Po=e=>{const[A,r,t]=String(e).split("-").map(Number);return A&&r&&t?new Date(A,r-1,t):new Date},Xo=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,Jo=({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(JSON.parse(localStorage.getItem("customEvents"))||[]),[a,s]=b.useState(()=>{const h=localStorage.getItem("birthday");return h?new Date(h):new Date}),[o,l]=b.useState(localStorage.getItem("birthdayenabled")==="true"?"preferences":"preferencesInactive"),[c,g]=b.useState(localStorage.getItem("events")==="true"?"preferences":"preferencesInactive"),B=h=>{const I=h.target.value?Po(h.target.value):new Date;localStorage.setItem("birthday",I),s(I)},u="modals.main.settings.sections.greeting",p=()=>{const h=JSON.parse(localStorage.getItem("customEvents"))||[],I={id:"widgets.greeting.halloween",name:"",month:1,date:1},M=[...h,I];h.push(I),localStorage.setItem("customEvents",JSON.stringify(h)),n(M)},Q=h=>{const I=t.filter((M,k)=>k!==h);localStorage.setItem("customEvents",JSON.stringify(I)),n(I)},C=()=>{localStorage.setItem("customEvents",JSON.stringify(ea)),n(ea),RA(d.getMessage("toasts.reset"))},x=(h,I)=>{n(k=>{const R=[...k];return R[h]=I,R});const M=JSON.parse(localStorage.getItem("customEvents")||"[]");M[h]=I,localStorage.setItem("customEvents",JSON.stringify(M))},U=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${u}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"defaultGreetingMessage",text:d.getMessage(`${u}.default`),category:"greeting"}),i.jsx(nr,{title:d.getMessage(`${u}.name`),name:"greetingName",category:"greeting"})]})]}),y=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.birthday`),subtitle:d.getMessage("modals.main.settings.sections.greeting.birthday_subtitle")}),i.jsxs(cA,{children:[i.jsx(Qs,{name:"birthdayenabled",text:d.getMessage("modals.main.settings.enabled"),category:"greeting",onChange:h=>{l(h?"preferences":"preferencesInactive")}}),i.jsxs("div",{className:o,children:[i.jsx(mA,{name:"birthdayage",text:d.getMessage(`${u}.birthday_age`),category:"greeting"}),i.jsx("p",{style:{marginRight:"auto"},children:d.getMessage(`${u}.birthday_date`)}),i.jsx("input",{type:"date",onChange:B,value:Xo(a),required:!0})]})]})]}),L=()=>i.jsxs("div",{className:c,children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${u}.custom`)}),i.jsx(cA,{children:i.jsxs("div",{className:"headerActions",children:[i.jsx(vA,{type:"settings",onClick:C,icon:i.jsx(fe,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(rr,{}),label:d.getMessage("widgets.quicklinks.add")})]})})]}),i.jsx("div",{className:"messagesContainer",children:t.map((h,I)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(Lr,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.event_name`)}),i.jsx("input",{type:"text",className:"text-field-input",value:h.name,placeholder:d.getMessage(`${u}.event_name`),onChange:M=>{const k={...h,name:M.target.value};x(I,k)}})]})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsxs("div",{className:"eventDateSelection",children:[i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.day`),":"]}),i.jsx("input",{id:"day",type:"number",min:"1",max:"31",value:h.date,onChange:M=>{const k=parseInt(M.target.value,10);if(k>=1&&k<=31){const R={...h,date:k};x(I,R)}}}),i.jsx("hr",{}),i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.month`),":"]}),i.jsx("input",{id:"month",type:"number",min:"1",max:"12",value:h.month,onChange:M=>{const k=parseInt(M.target.value,10);if(k>=1&&k<=12){const R={...h,month:k};x(I,R)}}})]}),i.jsx(vA,{type:"settings",onClick:()=>Q(I),icon:i.jsx(Bt,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]},I))}),t.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Lr,{}),i.jsx("span",{className:"title",children:d.getMessage(`${u}.no_events`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.no_events_description`)}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(rr,{}),label:d.getMessage(`${u}.add_event`)})]})})]}),S=e==="events";let E;return S?E=i.jsx(TA,{title:d.getMessage(`${u}.title`),secondaryTitle:d.getMessage(`${u}.events.title`),goBack:()=>A(null,r),report:!1}):E=i.jsx(TA,{title:d.getMessage(`${u}.title`),setting:"greeting",category:"widgets",zoomSetting:"zoomGreeting",visibilityToggle:!0}),i.jsxs(i.Fragment,{children:[E,S?i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.enable_events`)}),i.jsx(cA,{children:i.jsx(mA,{name:"events",text:d.getMessage(`${u}.events`),category:"greeting",onChange:h=>{g(h?"preferences":"preferencesInactive")}})})]}),y(),L()]}):i.jsxs(mt,{setting:"greeting",zoomSetting:"zoomGreeting",category:"greeting",visibilityToggle:!0,children:[i.jsx(U,{}),i.jsx(Rn,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.events_description`),onClick:()=>A("events",r),icon:i.jsx(Lr,{})})]})]})},Wo=()=>{const[e,A]=b.useState(localStorage.getItem("timeType")||"digital"),[r,t]=b.useState(localStorage.getItem("hourColour")||"#ffffff"),[n,a]=b.useState(localStorage.getItem("minuteColour")||"#ffffff"),[s,o]=b.useState(localStorage.getItem("secondColour")||"#ffffff"),l="modals.main.settings.sections.time",c=(C,x)=>{const U=x.target.value;C==="hourColour"?t(U):C==="minuteColour"?a(U):C==="secondColour"&&o(U),localStorage.setItem(C,U)},g=()=>i.jsxs(rA,{final:e==="percentageComplete",children:[i.jsx(nA,{title:d.getMessage(`${l}.type`),subtitle:d.getMessage(`${l}.type_subtitle`)}),i.jsx(cA,{children:i.jsx(KA,{name:"timeType",onChange:C=>A(C),category:"clock",items:[{value:"digital",text:d.getMessage(`${l}.digital.title`)},{value:"analogue",text:d.getMessage(`${l}.analogue.title`)},{value:"percentageComplete",text:d.getMessage(`${l}.percentage_complete`)},{value:"verticalClock",text:d.getMessage(`${l}.vertical_clock.title`)}]})})]}),B=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.digital.title`),subtitle:d.getMessage(`${l}.digital.subtitle`)}),i.jsxs(cA,{children:[i.jsx(Bn,{name:"timeformat",options:[{name:d.getMessage(`${l}.digital.twentyfourhour`),value:"twentyfourhour"},{name:d.getMessage(`${l}.digital.twelvehour`),value:"twelvehour"}],smallTitle:!0,category:"clock"}),i.jsx(mA,{name:"seconds",text:d.getMessage(`${l}.digital.seconds`),category:"clock"}),i.jsx(mA,{name:"zero",text:d.getMessage(`${l}.digital.zero`),category:"clock"})]})]}),u=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.analogue.title`),subtitle:d.getMessage(`${l}.analogue.subtitle`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"secondHand",text:d.getMessage(`${l}.analogue.second_hand`),category:"clock"}),i.jsx(mA,{name:"minuteHand",text:d.getMessage(`${l}.analogue.minute_hand`),category:"clock"}),i.jsx(mA,{name:"hourHand",text:d.getMessage(`${l}.analogue.hour_hand`),category:"clock"}),i.jsx(mA,{name:"hourMarks",text:d.getMessage(`${l}.analogue.hour_marks`),category:"clock"}),i.jsx(mA,{name:"minuteMarks",text:d.getMessage(`${l}.analogue.minute_marks`),category:"clock"}),i.jsx(mA,{name:"roundClock",text:d.getMessage(`${l}.analogue.round_clock`),category:"clock"})]})]}),p=i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_hour_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"hourColour",className:"minuteColour",onChange:C=>c("hourColour",C),value:r}),i.jsx("label",{htmlFor:"hourColour",className:"customBackgroundHex",children:r})]}),i.jsxs("span",{className:"link",onClick:()=>c("hourColour",{target:{value:"#ffffff"}}),children:[i.jsx(fe,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_minute_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"minuteColour",className:"minuteColour",onChange:C=>c("minuteColour",C),value:n}),i.jsx("label",{htmlFor:"minuteColour",className:"customBackgroundHex",children:n})]}),i.jsxs("span",{className:"link",onClick:()=>c("minuteColour",{target:{value:"#ffffff"}}),children:[i.jsx(fe,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_second_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"secondColour",className:"secondColour",onChange:C=>c("secondColour",C),value:s}),i.jsx("label",{htmlFor:"secondColour",className:"customBackgroundHex",children:s})]}),i.jsxs("span",{className:"link",onClick:()=>c("secondColour",{target:{value:"#ffffff"}}),children:[i.jsx(fe,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),B]}),Q=()=>{switch(e){case"digital":return B;case"analogue":return u;case"verticalClock":return p;default:return null}};return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${l}.title`),setting:"time",category:"widgets",zoomSetting:"zoomClock",visibilityToggle:!0}),i.jsxs(mt,{setting:"time",zoomSetting:"zoomClock",category:"clock",visibilityToggle:!0,children:[i.jsx(g,{}),Q()]})]})};function Yo(){const[e,A]=b.useState(localStorage.getItem("dateType")||"long"),r=["DMY","MDY","YMD"],t=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.long_format"),name:"longFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(mA,{name:"dayofweek",text:d.getMessage("modals.main.settings.sections.date.day_of_week"),category:"date"}),i.jsx(mA,{name:"datenth",text:d.getMessage("modals.main.settings.sections.date.datenth"),category:"date"})]}),n=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_format"),name:"dateFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_separator.title"),name:"shortFormat",category:"date",items:[{value:"dash",text:d.getMessage("modals.main.settings.sections.date.short_separator.dash")},{value:"dots",text:d.getMessage("modals.main.settings.sections.date.short_separator.dots")},{value:"gaps",text:d.getMessage("modals.main.settings.sections.date.short_separator.gaps")},{value:"slashes",text:d.getMessage("modals.main.settings.sections.date.short_separator.slashes")}]})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.date.title"),setting:"date",category:"widgets",zoomSetting:"zoomDate",visibilityToggle:!0}),i.jsxs(mt,{setting:"date",visibilityToggle:!0,category:"date",zoomSetting:"zoomDate",children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.type"),subtitle:d.getMessage("modals.main.settings.sections.date.type.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"dateType",onChange:a=>{A(a),localStorage.setItem("dateType",a)},category:"date",items:[{value:"long",text:d.getMessage("modals.main.settings.sections.date.type.long")},{value:"short",text:d.getMessage("modals.main.settings.sections.date.type.short")}]})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:e==="long"?d.getMessage("modals.main.settings.sections.date.type.long"):d.getMessage("modals.main.settings.sections.date.type.short"),subtitle:d.getMessage("modals.main.settings.sections.date.type_settings")}),i.jsxs(cA,{children:[e==="long"?t:n,i.jsx(mA,{name:"weeknumber",text:d.getMessage("modals.main.settings.sections.date.week_number"),category:"date"}),i.jsx(mA,{name:"datezero",text:d.getMessage("modals.main.settings.sections.time.digital.zero"),category:"date"})]})]})]})]})}const Zo=()=>i.jsx("div",{className:"quicklink-drag-handle","aria-hidden":"true",children:i.jsx(ms,{})}),zo=({value:e,enabled:A,startEditLink:r,deleteLink:t})=>{const{attributes:n,listeners:a,setNodeRef:s,transform:o,transition:l,isDragging:c}=vs({id:e.key,disabled:!A}),g={transform:Us.Transform.toString(o),transition:l,opacity:c?.5:1},B=u=>u.icon||ws(u.url,u.name);return i.jsxs("div",{ref:s,style:g,...n,...a,className:`quicklink-item ${A?"":"disabled"}`,role:"listitem",children:[i.jsx(Zo,{}),i.jsx("div",{className:"quicklink-icon",children:i.jsx("img",{src:B(e),alt:e.name,draggable:!1})}),i.jsxs("div",{className:"quicklink-content",children:[i.jsx("div",{className:"quicklink-name",children:e.name}),i.jsx("div",{className:"quicklink-url",children:e.url})]}),i.jsxs("div",{className:"quicklink-actions",children:[i.jsxs("button",{className:"quicklink-action-btn",onClick:u=>{A&&(u.stopPropagation(),r(e))},title:"Edit",disabled:!A,"aria-disabled":!A,children:[i.jsx(ps,{}),i.jsx("span",{children:"Edit"})]}),i.jsxs("button",{className:"quicklink-action-btn quicklink-remove-btn",onClick:u=>{A&&(u.stopPropagation(),t(e.key,u))},title:"Remove",disabled:!A,"aria-disabled":!A,children:[i.jsx(ro,{}),i.jsx("span",{children:"Remove"})]})]})]})},qo=({items:e,enabled:A,onDragEnd:r,startEditLink:t,deleteLink:n})=>{const a=Fs(ar(Es,{activationConstraint:{distance:6}}),ar(ys,{coordinateGetter:bs}));return i.jsx(xs,{sensors:a,collisionDetection:Is,onDragEnd:r,children:i.jsx(Hs,{items:e.map(s=>s.key),strategy:Ss,children:i.jsx("div",{className:"quicklinks-list",role:"list",children:e.map(s=>i.jsx(zo,{value:s,enabled:A,startEditLink:t,deleteLink:n},s.key))})})})},Xe=()=>{try{const e=localStorage.getItem("quicklinks");if(!e)return[];const A=JSON.parse(e);return Array.isArray(A)?A:[]}catch(e){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",e),[]}},$o=()=>{const[e,A]=b.useState(Xe()),[r,t]=b.useState(!1),[n,a]=b.useState(""),[s,o]=b.useState(""),[l,c]=b.useState(!1),[g,B]=b.useState(""),[u,p]=b.useState(localStorage.getItem("quicklinksenabled")!=="false"),Q=b.useRef(),C=b.useRef(!1),x=R=>{if(!Q||!Q.current)return;const O=Q.current;O.classList.toggle("disabled",!R),R?O.removeAttribute("aria-hidden"):O.setAttribute("aria-hidden","true")},U=(R,O)=>{O.preventDefault();const D=Xe().filter(z=>z.key!==R);C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),A(D),d.stats.postEvent("feature","Quicklink delete"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},y=async(R,O,Z)=>{const D=Xe();if(O=ir(O),!O){a(d.getMessage("widgets.quicklinks.url_error"));return}if(Z.length>0&&ft(Z)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}const z={name:R||await sr(O),url:O,icon:Z||"",key:Date.now().toString()+Math.random().toString(36).substring(2)};D.push(z),C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),A(D),t(!1),a(""),o(""),d.stats.postEvent("feature","Quicklink add"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},L=R=>{c(!0),B(R),t(!0)},S=async(R,O,Z,D)=>{const z=Xe(),eA=z.find(tA=>tA.key===R.key);if(eA){if(Z=ir(Z),!Z){a(d.getMessage("widgets.quicklinks.url_error"));return}if(D.length>0&&ft(D)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}eA.name=O||await sr(Z),eA.url=Z,eA.icon=D||"",C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(z)),A(z),t(!1),c(!1),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)}},E=R=>{const{active:O,over:Z}=R;if(!Z||!u||O.id===Z.id)return;const D=e.findIndex(tA=>tA.key===O.id),z=e.findIndex(tA=>tA.key===Z.id);if(D===-1||z===-1)return;const eA=Ls(e,D,z);C.current=!0,A(eA),localStorage.setItem("quicklinks",JSON.stringify(eA)),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)};b.useEffect(()=>{x(u)},[u]),b.useEffect(()=>{x(u);const R=O=>{if(O!=="quicklinks"||C.current)return;const Z=localStorage.getItem("quicklinksenabled")!=="false",D=Xe(),z=e||[],eA=z.length===D.length&&z.every(tA=>D.some(AA=>AA.key===tA.key));(Z!==u||!eA)&&(x(Z),A(D),p(Z))};return hA.on("refresh",R),()=>{hA.off("refresh",R)}},[u,e]);const h="modals.main.settings.sections.quicklinks",I=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${h}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"quicklinksnewtab",text:d.getMessage(`${h}.open_new`),category:"quicklinks"}),i.jsx(mA,{name:"quicklinkstooltip",text:d.getMessage(`${h}.tooltip`),category:"quicklinks"})]})]}),M=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${h}.styling`),subtitle:d.getMessage("modals.main.settings.sections.quicklinks.styling_description")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage(`${h}.style`),name:"quickLinksStyle",category:"quicklinks",items:[{value:"icon",text:d.getMessage(`${h}.options.icon`)},{value:"text",text:d.getMessage(`${h}.options.text_only`)},{value:"metro",text:d.getMessage(`${h}.options.metro`)}]})})]}),k=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${h}.title`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>u&&t(!0),icon:i.jsx(un,{}),label:d.getMessage(`${h}.add_link`),disabled:!u})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${h}.title`),setting:"quicklinksenabled",category:"widgets",zoomSetting:"zoomQuicklinks",visibilityToggle:!0}),i.jsxs(mt,{setting:"quicklinksenabled",category:"quicklinks",visibilityToggle:!0,zoomSetting:"zoomQuicklinks",children:[i.jsx(I,{}),i.jsx(M,{}),i.jsx(k,{}),e.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(no,{}),i.jsx("span",{className:"title",children:d.getMessage(`${h}.no_quicklinks`)}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.message.add_some")}),i.jsx(vA,{type:"settings",onClick:()=>t(!0),icon:i.jsx(un,{}),label:d.getMessage(`${h}.add_link`)})]})})]}),i.jsx("div",{className:`quicklinks-container ${u?"":"disabled"}`,ref:Q,"aria-hidden":!u,children:i.jsx("div",{className:`messagesContainer ${u?"":"disabled"}`,children:i.jsx(qo,{items:e,enabled:u,onDragEnd:E,startEditLink:R=>L(R),deleteLink:(R,O)=>U(R,O)})})}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a(""),o(""),c(!1),B("")},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Cs,{urlError:n,iconError:s,addLink:(R,O,Z)=>y(R,O,Z),editLink:(R,O,Z,D)=>S(R,O,Z,D),edit:l,editData:g,closeModal:()=>{t(!1),a(""),o(""),c(!1)}})})]})},Al=()=>{const[e,A]=b.useState(JSON.parse(localStorage.getItem("messages"))||[]),r=(a,s)=>{const o=[...e];a==="add"?o.push(""):o.splice(s,1),A(o),localStorage.setItem("messages",JSON.stringify(o)),hA.emit("refresh","message")},t=(a,s,o)=>{const l=a.target.value,c=[...e];c[o]=l,A(c),localStorage.setItem("messages",JSON.stringify(c)),ds()},n="modals.main.settings.sections.message";return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${n}.title`),setting:"message",category:"widgets",zoomSetting:"zoomMessage",visibilityToggle:!0}),i.jsxs(mt,{setting:"message",visibilityToggle:!0,category:"message",zoomSetting:"zoomMessage",children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${n}.messages`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(rr,{}),label:d.getMessage(`${n}.add`)})})]}),i.jsx("div",{className:"messagesContainer",children:e.map((a,s)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(Zn,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.title`)}),i.jsx(ao,{value:e[s],placeholder:d.getMessage("modals.main.settings.sections.message.content"),onChange:o=>t(o,!0,s),minRows:2})]})]}),i.jsx("div",{children:i.jsx("div",{className:"messageAction",children:i.jsx(vA,{type:"settings",onClick:()=>r("remove",s),icon:i.jsx(Bt,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})})})]},s))}),e.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Zn,{}),i.jsx("span",{className:"title",children:d.getMessage(`${n}.no_messages`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.add_some`)}),i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(rr,{}),label:d.getMessage(`${n}.add`)})]})})]})]})};var Mr={exports:{}},ta;function el(){return ta||(ta=1,(function(e){(function(A){var r=/^\s+/,t=/\s+$/,n=0,a=A.round,s=A.min,o=A.max,l=A.random;function c(f,v){if(f=f||"",v=v||{},f instanceof c)return f;if(!(this instanceof c))return new c(f,v);var w=g(f);this._originalInput=f,this._r=w.r,this._g=w.g,this._b=w.b,this._a=w.a,this._roundA=a(100*this._a)/100,this._format=v.format||w.format,this._gradientType=v.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=w.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var f=this.toRgb();return(f.r*299+f.g*587+f.b*114)/1e3},getLuminance:function(){var f=this.toRgb(),v,w,K,W,P,oA;return v=f.r/255,w=f.g/255,K=f.b/255,v<=.03928?W=v/12.92:W=A.pow((v+.055)/1.055,2.4),w<=.03928?P=w/12.92:P=A.pow((w+.055)/1.055,2.4),K<=.03928?oA=K/12.92:oA=A.pow((K+.055)/1.055,2.4),.2126*W+.7152*P+.0722*oA},setAlpha:function(f){return this._a=aA(f),this._roundA=a(100*this._a)/100,this},toHsv:function(){var f=Q(this._r,this._g,this._b);return{h:f.h*360,s:f.s,v:f.v,a:this._a}},toHsvString:function(){var f=Q(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.v*100);return this._a==1?"hsv("+v+", "+w+"%, "+K+"%)":"hsva("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var f=u(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=u(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.l*100);return this._a==1?"hsl("+v+", "+w+"%, "+K+"%)":"hsla("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHex:function(f){return x(this._r,this._g,this._b,f)},toHexString:function(f){return"#"+this.toHex(f)},toHex8:function(f){return U(this._r,this._g,this._b,this._a,f)},toHex8String:function(f){return"#"+this.toHex8(f)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(q(this._r,255)*100)+"%",g:a(q(this._g,255)*100)+"%",b:a(q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%)":"rgba("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:AA[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var v="#"+y(this._r,this._g,this._b,this._a),w=v,K=this._gradientType?"GradientType = 1, ":"";if(f){var W=c(f);w="#"+y(W._r,W._g,W._b,W._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+v+",endColorstr="+w+")"},toString:function(f){var v=!!f;f=f||this._format;var w=!1,K=this._a<1&&this._a>=0,W=!v&&K&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return W?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(w=this.toRgbString()),f==="prgb"&&(w=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(w=this.toHexString()),f==="hex3"&&(w=this.toHexString(!0)),f==="hex4"&&(w=this.toHex8String(!0)),f==="hex8"&&(w=this.toHex8String()),f==="name"&&(w=this.toName()),f==="hsl"&&(w=this.toHslString()),f==="hsv"&&(w=this.toHsvString()),w||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(f,v){var w=f.apply(null,[this].concat([].slice.call(v)));return this._r=w._r,this._g=w._g,this._b=w._b,this.setAlpha(w._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(L,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(f,v){return f.apply(null,[this].concat([].slice.call(v)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(eA,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(Z,arguments)}},c.fromRatio=function(f,v){if(typeof f=="object"){var w={};for(var K in f)f.hasOwnProperty(K)&&(K==="a"?w[K]=f[K]:w[K]=F(f[K]));f=w}return c(f,v)};function g(f){var v={r:0,g:0,b:0},w=1,K=null,W=null,P=null,oA=!1,fA=!1;return typeof f=="string"&&(f=$(f)),typeof f=="object"&&(J(f.r)&&J(f.g)&&J(f.b)?(v=B(f.r,f.g,f.b),oA=!0,fA=String(f.r).substr(-1)==="%"?"prgb":"rgb"):J(f.h)&&J(f.s)&&J(f.v)?(K=F(f.s),W=F(f.v),v=C(f.h,K,W),oA=!0,fA="hsv"):J(f.h)&&J(f.s)&&J(f.l)&&(K=F(f.s),P=F(f.l),v=p(f.h,K,P),oA=!0,fA="hsl"),f.hasOwnProperty("a")&&(w=f.a)),w=aA(w),{ok:oA,format:f.format||fA,r:s(255,o(v.r,0)),g:s(255,o(v.g,0)),b:s(255,o(v.b,0)),a:w}}function B(f,v,w){return{r:q(f,255)*255,g:q(v,255)*255,b:q(w,255)*255}}function u(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),P,oA,fA=(K+W)/2;if(K==W)P=oA=0;else{var UA=K-W;switch(oA=fA>.5?UA/(2-K-W):UA/(K+W),K){case f:P=(v-w)/UA+(v<w?6:0);break;case v:P=(w-f)/UA+2;break;case w:P=(f-v)/UA+4;break}P/=6}return{h:P,s:oA,l:fA}}function p(f,v,w){var K,W,P;f=q(f,360),v=q(v,100),w=q(w,100);function oA(jA,Pe,YA){return YA<0&&(YA+=1),YA>1&&(YA-=1),YA<1/6?jA+(Pe-jA)*6*YA:YA<1/2?Pe:YA<2/3?jA+(Pe-jA)*(2/3-YA)*6:jA}if(v===0)K=W=P=w;else{var fA=w<.5?w*(1+v):w+v-w*v,UA=2*w-fA;K=oA(UA,fA,f+1/3),W=oA(UA,fA,f),P=oA(UA,fA,f-1/3)}return{r:K*255,g:W*255,b:P*255}}function Q(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),P,oA,fA=K,UA=K-W;if(oA=K===0?0:UA/K,K==W)P=0;else{switch(K){case f:P=(v-w)/UA+(v<w?6:0);break;case v:P=(w-f)/UA+2;break;case w:P=(f-v)/UA+4;break}P/=6}return{h:P,s:oA,v:fA}}function C(f,v,w){f=q(f,360)*6,v=q(v,100),w=q(w,100);var K=A.floor(f),W=f-K,P=w*(1-v),oA=w*(1-W*v),fA=w*(1-(1-W)*v),UA=K%6,jA=[w,oA,P,P,fA,w][UA],Pe=[fA,w,w,oA,P,P][UA],YA=[P,P,fA,w,w,oA][UA];return{r:jA*255,g:Pe*255,b:YA*255}}function x(f,v,w,K){var W=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return K&&W[0].charAt(0)==W[0].charAt(1)&&W[1].charAt(0)==W[1].charAt(1)&&W[2].charAt(0)==W[2].charAt(1)?W[0].charAt(0)+W[1].charAt(0)+W[2].charAt(0):W.join("")}function U(f,v,w,K,W){var P=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16)),_(N(K))];return W&&P[0].charAt(0)==P[0].charAt(1)&&P[1].charAt(0)==P[1].charAt(1)&&P[2].charAt(0)==P[2].charAt(1)&&P[3].charAt(0)==P[3].charAt(1)?P[0].charAt(0)+P[1].charAt(0)+P[2].charAt(0)+P[3].charAt(0):P.join("")}function y(f,v,w,K){var W=[_(N(K)),_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return W.join("")}c.equals=function(f,v){return!f||!v?!1:c(f).toRgbString()==c(v).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})};function L(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s-=v/100,w.s=lA(w.s),c(w)}function S(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s+=v/100,w.s=lA(w.s),c(w)}function E(f){return c(f).desaturate(100)}function h(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l+=v/100,w.l=lA(w.l),c(w)}function I(f,v){v=v===0?0:v||10;var w=c(f).toRgb();return w.r=o(0,s(255,w.r-a(255*-(v/100)))),w.g=o(0,s(255,w.g-a(255*-(v/100)))),w.b=o(0,s(255,w.b-a(255*-(v/100)))),c(w)}function M(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l-=v/100,w.l=lA(w.l),c(w)}function k(f,v){var w=c(f).toHsl(),K=(w.h+v)%360;return w.h=K<0?360+K:K,c(w)}function R(f){var v=c(f).toHsl();return v.h=(v.h+180)%360,c(v)}function O(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+120)%360,s:v.s,l:v.l}),c({h:(w+240)%360,s:v.s,l:v.l})]}function Z(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+90)%360,s:v.s,l:v.l}),c({h:(w+180)%360,s:v.s,l:v.l}),c({h:(w+270)%360,s:v.s,l:v.l})]}function D(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+72)%360,s:v.s,l:v.l}),c({h:(w+216)%360,s:v.s,l:v.l})]}function z(f,v,w){v=v||6,w=w||30;var K=c(f).toHsl(),W=360/w,P=[c(f)];for(K.h=(K.h-(W*v>>1)+720)%360;--v;)K.h=(K.h+W)%360,P.push(c(K));return P}function eA(f,v){v=v||6;for(var w=c(f).toHsv(),K=w.h,W=w.s,P=w.v,oA=[],fA=1/v;v--;)oA.push(c({h:K,s:W,v:P})),P=(P+fA)%1;return oA}c.mix=function(f,v,w){w=w===0?0:w||50;var K=c(f).toRgb(),W=c(v).toRgb(),P=w/100,oA={r:(W.r-K.r)*P+K.r,g:(W.g-K.g)*P+K.g,b:(W.b-K.b)*P+K.b,a:(W.a-K.a)*P+K.a};return c(oA)},c.readability=function(f,v){var w=c(f),K=c(v);return(A.max(w.getLuminance(),K.getLuminance())+.05)/(A.min(w.getLuminance(),K.getLuminance())+.05)},c.isReadable=function(f,v,w){var K=c.readability(f,v),W,P;switch(P=!1,W=pA(w),W.level+W.size){case"AAsmall":case"AAAlarge":P=K>=4.5;break;case"AAlarge":P=K>=3;break;case"AAAsmall":P=K>=7;break}return P},c.mostReadable=function(f,v,w){var K=null,W=0,P,oA,fA,UA;w=w||{},oA=w.includeFallbackColors,fA=w.level,UA=w.size;for(var jA=0;jA<v.length;jA++)P=c.readability(f,v[jA]),P>W&&(W=P,K=c(v[jA]));return c.isReadable(f,K,{level:fA,size:UA})||!oA?K:(w.includeFallbackColors=!1,c.mostReadable(f,["#fff","#000"],w))};var tA=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},AA=c.hexNames=dA(tA);function dA(f){var v={};for(var w in f)f.hasOwnProperty(w)&&(v[f[w]]=w);return v}function aA(f){return f=parseFloat(f),(isNaN(f)||f<0||f>1)&&(f=1),f}function q(f,v){H(f)&&(f="100%");var w=j(f);return f=s(v,o(0,parseFloat(f))),w&&(f=parseInt(f*v,10)/100),A.abs(f-v)<1e-6?1:f%v/parseFloat(v)}function lA(f){return s(1,o(0,f))}function sA(f){return parseInt(f,16)}function H(f){return typeof f=="string"&&f.indexOf(".")!=-1&&parseFloat(f)===1}function j(f){return typeof f=="string"&&f.indexOf("%")!=-1}function _(f){return f.length==1?"0"+f:""+f}function F(f){return f<=1&&(f=f*100+"%"),f}function N(f){return A.round(parseFloat(f)*255).toString(16)}function T(f){return sA(f)/255}var G=(function(){var f="[-\\+]?\\d+%?",v="[-\\+]?\\d*\\.\\d+%?",w="(?:"+v+")|(?:"+f+")",K="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?",W="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?";return{CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function J(f){return!!G.CSS_UNIT.exec(f)}function $(f){f=f.replace(r,"").replace(t,"").toLowerCase();var v=!1;if(tA[f])f=tA[f],v=!0;else if(f=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var w;return(w=G.rgb.exec(f))?{r:w[1],g:w[2],b:w[3]}:(w=G.rgba.exec(f))?{r:w[1],g:w[2],b:w[3],a:w[4]}:(w=G.hsl.exec(f))?{h:w[1],s:w[2],l:w[3]}:(w=G.hsla.exec(f))?{h:w[1],s:w[2],l:w[3],a:w[4]}:(w=G.hsv.exec(f))?{h:w[1],s:w[2],v:w[3]}:(w=G.hsva.exec(f))?{h:w[1],s:w[2],v:w[3],a:w[4]}:(w=G.hex8.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),a:T(w[4]),format:v?"name":"hex8"}:(w=G.hex6.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),format:v?"name":"hex"}:(w=G.hex4.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),a:T(w[4]+""+w[4]),format:v?"name":"hex8"}:(w=G.hex3.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),format:v?"name":"hex"}:!1}function pA(f){var v,w;return f=f||{level:"AA",size:"small"},v=(f.level||"AA").toUpperCase(),w=(f.size||"small").toLowerCase(),v!=="AA"&&v!=="AAA"&&(v="AA"),w!=="small"&&w!=="large"&&(w="small"),{level:v,size:w}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(Mr)),Mr.exports}var tl=el();const SA=ks(tl);var Oe=function(){return Oe=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Oe.apply(this,arguments)},rl=function(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||Array.prototype.slice.call(A))},nl=function(e){e===void 0&&(e="");var A={linearGradient:/^(-(webkit|o|ms|moz)-)?(linear-gradient)/i,repeatingLinearGradient:/^(-(webkit|o|ms|moz)-)?(repeating-linear-gradient)/i,radialGradient:/^(-(webkit|o|ms|moz)-)?(radial-gradient)/i,repeatingRadialGradient:/^(-(webkit|o|ms|moz)-)?(repeating-radial-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,spacedRgbColor:/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s+\/\s+([0-1](\.\d+)?)/,rgbaColor:/^rgba/i,hslColor:/^hsl/i,hsvColor:/^hsv/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/};function r(H){var j=new Error(e+": "+H);throw j}function t(H){e=e.substr(H)}function n(H){var j=/^[\n\r\t\s]+/.exec(e);j&&t(j[0].length);var _=H.exec(e);return _&&t(_[0].length),_}function a(H){var j=H(),_=[];if(j)for(_.push(j);n(A.comma);)j=H(),j?_.push(j):r("One extra comma");return _}function s(H,j,_){var F=n(j);if(F)return{type:H,value:F[_]}}function o(){var H=s("hex",A.hexColor,1);if(H?.value){var j=SA(H?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}var l=function(H){var j=Ue(H?.[0]);return{value:"".concat(j?"RGBA":"rgba","(").concat(a(AA),")")}};function c(H,j){var _=n(H);if(_){n(A.startCall)||r("Missing (");var F=j(_);return n(A.endCall)||r("Missing )"),F}}function g(){return c(A.hslColor,dA)}function B(){return c(A.rgbaColor,l)}function u(){return c(A.rgbColor,q)}function p(){var H=s("literal",A.literalColor,0);if(H?.value){var j=SA(H?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}function Q(){return c(A.hsvColor,aA)}function C(){return o()||g()||B()||u()||p()||Q()}function x(){var H,j=C();return j||r("Expected color definition"),j.left=parseInt((H=lA())===null||H===void 0?void 0:H.value),j}function U(H,j,_){return c(j,function(){var F=_();return F&&(n(A.comma)||r("Missing comma before color stops")),{type:H,orientation:F,colorStops:a(x)}})}function y(){return h()||I()}function L(){return U("linear-gradient",A.linearGradient,y)||U("repeating-linear-gradient",A.repeatingLinearGradient,y)||U("radial-gradient",A.radialGradient,M)||U("repeating-radial-gradient",A.repeatingRadialGradient,M)}function S(){return a(L)}function E(){var H,j=S();e.length>0&&r("Invalid input not EOF");var _=j[0],F=(H=_?.colorStops)===null||H===void 0?void 0:H.filter(function(T){return Ue(T.value)}).length,N=function(){if(F>0)return _;var T=function(G,J){return J===0?mr(G):vt(G)};return Oe(Oe({},_),{colorStops:_.colorStops.map(function(G,J){return Oe(Oe({},G),{value:T(G,J)})})})};return N()}function h(){return s("directional",A.sideOrCorner,1)}function I(){return s("angular",A.angleValue,1)}function M(){var H,j=k(),_;return j&&(H=[],H.push(j),_=e,n(A.comma)&&(j=k(),j?H.push(j):e=_)),H}function k(){var H=O()||Z();if(H)H.at=z();else{var j=D();if(j){H=j;var _=z();_&&(H.at=_)}else{var F=eA();F&&(H={type:"default-radial",at:F})}}return H}function R(){return s("px",A.pixelValue,1)||s("em",A.emValue,1)}function O(){var H=s("shape",/^(circle)/i,0);return H&&(H.style=R()||D()),H}function Z(){var H=s("shape",/^(ellipse)/i,0);return H&&(H.style=lA()||D()),H}function D(){return s("extent-keyword",A.extentKeywords,1)}function z(){if(s("position",/^at/,0)){var H=eA();return H||r("Missing positioning value"),H}}function eA(){var H=tA();if(H.x||H.y)return{type:"position",value:H}}function tA(){return{x:lA(),y:lA()}}function AA(){return n(A.number)[1]}var dA=function(H){var j=Ue(H?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],l:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,J=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(J,")")}},aA=function(H){var j=Ue(H?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],v:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,J=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(J,")")}},q=function(H){var j=Ue(H?.[0]),_=n(A.spacedRgbColor),F=_||rl([null],a(AA),!0),N=F[1],T=F[2],G=F[3],J=F[4],$=J===void 0?1:J;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat($,")")}};function lA(){return s("%",A.percentageValue,1)||sA()||R()}function sA(){return s("position-keyword",A.positionKeywords,1)}return E()},vt=function(e){return e.value.toLowerCase()},mr=function(e){return e.value.toUpperCase()},al=function(e,A,r){var t=e?.includes("gradient");if(t){var n=e?.includes("conic"),a=n?r:e;n&&console.log("Sorry we cant handle conic gradients yet");var s=nl(a);return s?.colorStops}else{var a=e||A;return[{value:a}]}},_e=function(e,A,r){return isNaN(e)||e<A?A:e>r?r:e},ee=function(e){return Math.round(e)},or=function(){return or=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},or.apply(this,arguments)},Ts=function(e){var A=e.target.parentNode.getBoundingClientRect(),r=e.target.className,t=r==="c-resize ps-rl"?15:0;return{offsetLeft:A?.x+t,offsetTop:A?.y,clientWidth:A?.width,clientHeight:A?.height}};function Ge(e,A){var r=Ts(e),t=r.offsetLeft,n=r.clientWidth,a=e.clientX-t-A/2,s=n-18,o=_e(a,0,s);return Math.round(o/(s/100))}function sl(e,A,r,t,n){var a=e*r-n/2,s=(100-A)/100*t-n/2;return[a,s]}var il=function(e){if(e.clientX)return{clientX:e.clientX,clientY:e.clientY};var A=e.touches[0]||{};return{clientX:A.clientX,clientY:A.clientY}};function ol(e,A){var r=Ts(e),t=r.offsetLeft,n=r.offsetTop,a=r.clientWidth,s=r.clientHeight,o=il(e),l=o.clientX,c=o.clientY,g=function(){var u=l-t-A/2;return _e(u,-9,a-10)},B=function(){var u=c-n-A/2;return _e(u,-9,s-10)};return[g(),B()]}var Ue=function(e){var A;return e?.[0]===((A=e?.[0])===null||A===void 0?void 0:A.toUpperCase())},Ds=function(e){if(e==="to top")return 0;if(e==="to bottom")return 180;if(e==="to left")return 270;if(e==="to right")return 90;if(e==="to top right")return 45;if(e==="to bottom right")return 135;if(e==="to bottom left")return 225;if(e==="to top left")return 315;var A=e||0;return parseInt(A)},ll=function(e){var A,r,t,n,a;if(typeof e=="string")return e;if(!((A=e?.type)===null||A===void 0)&&A.includes("gradient")){var s=(r=e?.colorStops)===null||r===void 0?void 0:r.sort(function(u,p){return u?.left-p?.left}),o=(t=s?.map(function(u){return"".concat(u?.value," ").concat(u?.left,"%")}))===null||t===void 0?void 0:t.join(", "),l=e?.type,c=Ds((n=e?.orientation)===null||n===void 0?void 0:n.value),g=l==="linear-gradient"?"".concat(c,"deg"):"circle";return"".concat(l,"(").concat(g,", ").concat(o,")")}else{var B=((a=e?.colorStops[0])===null||a===void 0?void 0:a.value)||"rgba(175, 51, 242, 1)";return B}},cl=function(e,A){var r=e?.map(function(a,s){return or(or({},a),{index:s})}),t=r?.find(function(a){return Ue(a.value)}),n=t||r[0];return{currentColor:n?.value||A,selectedColor:n?.index||0,currentLeft:n?.left||0}},gl=function(e){var A,r=e?.split(",")[0],t=(A=r?.split("(")[1])===null||A===void 0?void 0:A.replace("deg","");return Ds(t)},ul=function(e){var A=e?.includes("gradient"),r=e?.split("(")[0],t=gl(e),n=r==="linear-gradient"?"".concat(t,"deg"):"circle";return{degrees:t,degreeStr:n,isGradient:A,gradientType:r}},DA=function(){return DA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},DA.apply(this,arguments)},Bl=function(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||Array.prototype.slice.call(A))},Os=b.createContext(null);function dl(e){var A,r,t,n,a=e.value,s=e.children,o=e.onChange,l=e.isDarkMode,c=e.squareWidth,g=e.hideOpacity,B=e.showHexAlpha,u=e.squareHeight,p=e.passedConfig,Q=e.defaultStyles,C=e.pickerIdSuffix,x={barSize:(A=p.barSize)!==null&&A!==void 0?A:Et.barSize,crossSize:(r=p.crossSize)!==null&&r!==void 0?r:Et.crossSize,defaultColor:(t=p.defaultColor)!==null&&t!==void 0?t:Et.defaultColor,defaultGradient:(n=p.defaultGradient)!==null&&n!==void 0?n:Et.defaultGradient},U=al(a,x.defaultColor,x.defaultGradient),y=ul(a),L=y.degrees,S=y.degreeStr,E=y.isGradient,h=y.gradientType,I=cl(U,x.defaultGradient),M=I.currentColor,k=I.selectedColor,R=I.currentLeft,O=b.useState("rgb"),Z=O[0],D=O[1],z=b.useState({}),eA=z[0],tA=z[1],AA=SA(M),dA=AA.toRgb(),aA=AA.toHsv(),q=b.useState(DA(DA({},dA),aA)),lA=q[0],sA=q[1];b.useEffect(function(){aA?.s===0?sA(DA(DA(DA({},dA),aA),{h:lA?.h})):sA(DA(DA({},dA),aA))},[M]);var H=function(T){var G=T.sort(function(pA,f){return pA.left-f.left}),J=G?.map(function(pA){return"".concat(pA?.value," ").concat(pA.left,"%")}),$="".concat(h,"(").concat(S,", ").concat(J.join(", "),")");tA(DA(DA({},eA),{gradient:$})),o($)},j=function(T,G){var J=U?.filter(function(pA){return!Ue(pA.value)}),$=Bl([{value:T.toUpperCase(),left:G??R}],J,!0);H($)},_=function(T){E?j(T):(tA(DA(DA({},eA),{color:T})),o(T))},F=function(){if(U?.length>2){var T=U?.map(function(J,$){return DA(DA({},J),{value:$===k-1?mr(J):vt(J)})}),G=T?.filter(function(J,$){return $!==k});H(G)}},N={hc:lA,setHc:sA,value:a,colors:U,config:x,degrees:L,onChange:o,previous:eA,inputType:Z,tinyColor:AA,isDarkMode:l,isGradient:E,squareWidth:c,hideOpacity:g,currentLeft:R,deletePoint:F,showHexAlpha:B,squareHeight:u,setInputType:D,gradientType:h,handleChange:_,currentColor:M,selectedColor:k,defaultStyles:Q,handleGradient:j,pickerIdSuffix:C,createGradientStr:H};return m.createElement(Os.Provider,{value:N},s)}function BA(){var e=b.useContext(Os);if(!e)throw new Error("usePicker has to be used within <PickerContext.Provider>");return e}var Et={barSize:18,crossSize:18,defaultColor:"rgba(175, 51, 242, 1)",defaultGradient:"linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%)"},fl=function(e,A){b.useEffect(function(){var r,t=(r=e?.current)===null||r===void 0?void 0:r.getContext("2d",{willReadFrequently:!0});if(t){t.rect(0,0,A,14);for(var n=t.createLinearGradient(0,0,A,0),a=0;a<=360;a+=30)n.addColorStop(a/360,"hsl(".concat(a,", 100%, 50%)"));t.fillStyle=n,t.fill()}},[e,A])},hl=function(e,A,r,t){b.useEffect(function(){var n,a=(n=e?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(A,", ").concat(o,"%, ").concat(r,"%)"));a.fillStyle=s,a.fill()}},[e,A,r,t])},wl=function(e,A,r,t){b.useEffect(function(){var n,a=(n=e?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(A,", ").concat(r,"%, ").concat(o,"%)"));a.fillStyle=s,a.fill()}},[e,A,r,t])},pl=function(e,A,r,t){b.useEffect(function(){var n,a=(n=e?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10){var l=SA({h:A,s:r,v:o});s.addColorStop(o/100,l.toHslString())}a.fillStyle=s,a.fill()}},[e,A,r,t])},lr=function(){return lr=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},lr.apply(this,arguments)},Cl=function(){var e=b.useRef(null),A=BA(),r=A.config,t=A.handleChange,n=A.squareWidth,a=A.hc,s=A.setHc,o=A.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],B=r.barSize;fl(e,n);var u=function(){g(!1)},p=function(){g(!0)},Q=function(U){var y=Ge(U,B)*3.6,L=SA({h:y,s:a?.s,v:a?.v}),S=L.toRgb(),E=S.r,h=S.g,I=S.b;t("rgba(".concat(E,", ").concat(h,", ").concat(I,", ").concat(a.a,")")),s(lr(lr({},a),{h:y}))},C=function(U){c&&Q(U)},x=function(U){c||Q(U)};return b.useEffect(function(){var U=function(){u()};return window.addEventListener("mouseup",U),function(){window.removeEventListener("mouseup",U)}},[]),m.createElement("div",{style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},onMouseMove:function(U){return C(U)},id:"rbgcp-hue-wrap".concat(o)},m.createElement("div",{tabIndex:0,role:"button",style:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 10ms linear",position:"absolute",left:a?.h*((n-18)/360),top:-2,cursor:"ew-resize",boxSizing:"border-box"},onMouseDown:p,id:"rbgcp-hue-handle".concat(o)}),m.createElement("canvas",{ref:e,height:"14px",width:"".concat(n,"px"),onClick:function(U){return x(U)},id:"rbgcp-hue-bar".concat(o),style:{borderRadius:14,position:"relative",verticalAlign:"top"}}))};function Ql(e,A,r){var t=0,n=0,a=0,s=0;if(e===null||A===null||r===null||isNaN(e)||isNaN(A)||isNaN(r))return console.log("Please enter numeric RGB values!"),{c:0,m:0,k:0,y:1};if(e<0||A<0||r<0||e>255||A>255||r>255)return console.log("RGB values must be in the range 0 to 255."),{c:0,m:0,k:0,y:1};if(e===0&&A===0&&r===0)return s=1,{c:0,m:0,k:0,y:1};t=1-e/255,n=1-A/255,a=1-r/255;var o=Math.min(t,Math.min(n,a));return t=(t-o)/(1-o),n=(n-o)/(1-o),a=(a-o)/(1-o),s=o,{c:t,m:n,y:a,k:s}}var ml=function(e){var A=e.c,r=e.m,t=e.y,n=e.k,a=255*(1-A)*(1-n),s=255*(1-r)*(1-n),o=255*(1-t)*(1-n);return{r:a,g:s,b:o}},vl=function(e){return typeof e!="number"?"FF":e<0?"00":e>1?"FF":Math.round(e*255).toString(16).padStart(2,"0").toUpperCase()},WA=function(){return WA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},WA.apply(this,arguments)},_A=function(e){var A=e.label,r=e.value,t=e.callback,n=e.max,a=n===void 0?100:n,s=e.hideOpacity,o=e.defaultStyles,l=e.pickerIdSuffix,c=b.useState(r),g=c[0],B=c[1],u=s?"25%":"20%";b.useEffect(function(){B(r)},[r]);var p=function(Q){var C=_e(parseFloat(Q.target.value),0,a);B(C),t(C)};return m.createElement("div",{style:{width:u,flexShrink:1},id:"rbgcp-".concat(A,"-input-wrapper").concat(l)},m.createElement("input",{value:g,onChange:function(Q){return p(Q)},style:WA({},o.rbgcpInput),id:"rbgcp-".concat(A,"-input").concat(l)}),m.createElement("div",{style:WA({},o.rbgcpInputLabel)},A))},Ul=function(e){var A=e.opacity,r=e.tinyColor,t=e.showHexAlpha,n=e.handleChange,a=e.defaultStyles,s=e.pickerIdSuffix,o=b.useState(""),l=o[0],c=o[1],g=r.toHex(),B=b.useState(g),u=B[0],p=B[1];b.useEffect(function(){l!=="hex"&&p(g)},[r,l,g]);var Q=function(){c("hex")},C=function(){c("")},x=function(S){var E=SA(S.target.value);if(p(S.target.value),E.isValid()){var h=E.toRgb(),I=h.r,M=h.g,k=h.b,R="rgba(".concat(I,", ").concat(M,", ").concat(k,", ").concat(A,")");n(R)}},U=t?"".concat(u).concat(vl(A)):u,y=t?"HEXA":"HEX",L=t?88:76;return m.createElement("div",{style:{width:L,flexShrink:0},id:"rbgcp-hex-input-wrapper".concat(s)},m.createElement("input",{onBlur:C,onFocus:Q,onChange:function(S){return x(S)},value:U?.toUpperCase(),id:"rbgcp-hex-input".concat(s),style:WA(WA({},a.rbgcpInput),a.rbgcpHexInput)}),m.createElement("div",{style:WA({},a.rbgcpInputLabel)},y))},Fl=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,s=function(o){var l=o.r,c=o.g,g=o.b;t("rgba(".concat(l,", ").concat(c,", ").concat(g,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"R",max:255,value:A?.r,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:o,g:A?.g,b:A?.b})}}),m.createElement(_A,{label:"G",max:255,value:A?.g,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:A?.r,g:o,b:A?.b})}}),m.createElement(_A,{label:"B",max:255,value:A?.b,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:A?.r,g:A?.g,b:o})}}))},bl=function(e){var A=e.hc,r=e.setHc,t=e.tinyColor,n=e.hideOpacity,a=e.handleChange,s=e.defaultStyles,o=e.pickerIdSuffix,l=t.toHsl(),c=l.s,g=l.l,B=function(p,Q,C){var x=SA({h:p,s:Q,l:C}).toRgb(),U=x.r,y=x.g,L=x.b;a("rgba(".concat(U,", ").concat(y,", ").concat(L,", ").concat(A?.a,")")),r(WA(WA({},A),{h:p}))},u=function(p){var Q=SA(p).toRgb(),C=Q.r,x=Q.g,U=Q.b;a("rgba(".concat(C,", ").concat(x,", ").concat(U,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"H",max:360,value:ee(A?.h),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return B(p,c,g)}}),m.createElement(_A,{label:"S",value:ee(c*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:p,l:g})}}),m.createElement(_A,{label:"L",value:ee(g*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:c,l:p})}}))},yl=function(e){var A=e.hc,r=e.setHc,t=e.hideOpacity,n=e.handleChange,a=e.defaultStyles,s=e.pickerIdSuffix,o=function(c,g,B){var u=SA({h:c,s:g,v:B}).toRgb(),p=u.r,Q=u.g,C=u.b;n("rgba(".concat(p,", ").concat(Q,", ").concat(C,", ").concat(A?.a,")")),r(WA(WA({},A),{h:c}))},l=function(c){var g=SA(c).toRgb(),B=g.r,u=g.g,p=g.b;n("rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"H",max:360,value:ee(A?.h),hideOpacity:t,defaultStyles:a,pickerIdSuffix:s,callback:function(c){return o(c,A?.s,A?.v)}}),m.createElement(_A,{label:"S",hideOpacity:t,value:ee(A?.s*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:A?.h,s:c,v:A?.v})}}),m.createElement(_A,{label:"V",hideOpacity:t,value:ee(A?.v*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:A?.h,s:A?.s,v:c})}}))},El=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,s=Ql(A?.r,A?.g,A?.b),o=s.c,l=s.m,c=s.y,g=s.k,B=function(u){var p=ml(u),Q=p.r,C=p.g,x=p.b;t("rgba(".concat(Q,", ").concat(C,", ").concat(x,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"C",value:ee(o*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:u/100,m:l,y:c,k:g})}}),m.createElement(_A,{label:"M",value:ee(l*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:u/100,y:c,k:g})}}),m.createElement(_A,{label:"Y",value:ee(c*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:u/100,k:g})}}),m.createElement(_A,{label:"K",value:ee(g*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:c,k:u/100})}}))},xl=function(){var e=BA(),A=e.hc,r=e.setHc,t=e.inputType,n=e.tinyColor,a=e.hideOpacity,s=e.showHexAlpha,o=e.handleChange,l=e.defaultStyles,c=e.pickerIdSuffix;return m.createElement("div",{style:WA({columnGap:6,paddingTop:14,display:"flex",justifyContent:"space-between"},l.rbgcpInputsWrap),id:"rbgcp-inputs-wrap".concat(c)},t!=="cmyk"&&m.createElement(Ul,{opacity:A?.a,tinyColor:n,showHexAlpha:s,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsl"&&m.createElement(bl,{hc:A,setHc:r,tinyColor:n,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="rgb"&&m.createElement(Fl,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsv"&&m.createElement(yl,{hc:A,setHc:r,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="cmyk"&&m.createElement(El,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),!a&&m.createElement(_A,{label:"A",hideOpacity:a,defaultStyles:l,value:Math.round(A?.a*100),pickerIdSuffix:c,callback:function(g){return o("rgba(".concat(A?.r,", ").concat(A?.g,", ").concat(A?.b,", ").concat(g/100,")"))}}))},Il=function(e,A,r,t){b.useEffect(function(){if(e.current){var n=e.current.getContext("2d",{willReadFrequently:!0});if(n){n.fillStyle="hsl(".concat(A,", 100%, 50%)"),n.fillRect(0,0,r,t);var a=n.createLinearGradient(0,0,r,0);a.addColorStop(0,"rgba(255, 255, 255, 1)"),a.addColorStop(1,"rgba(255, 255, 255, 0)"),n.fillStyle=a,n.fillRect(0,0,r,t);var s=n.createLinearGradient(0,0,0,t);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=s,n.fillRect(0,0,r,t)}}},[e,A,r,t])},Kr,ra;function Hl(){if(ra)return Kr;ra=1;var e="Expected a function",A=NaN,r="[object Symbol]",t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,l=typeof bt=="object"&&bt&&bt.Object===Object&&bt,c=typeof self=="object"&&self&&self.Object===Object&&self,g=l||c||Function("return this")(),B=Object.prototype,u=B.toString,p=Math.max,Q=Math.min,C=function(){return g.Date.now()};function x(h,I,M){var k,R,O,Z,D,z,eA=0,tA=!1,AA=!1,dA=!0;if(typeof h!="function")throw new TypeError(e);I=E(I)||0,y(M)&&(tA=!!M.leading,AA="maxWait"in M,O=AA?p(E(M.maxWait)||0,I):O,dA="trailing"in M?!!M.trailing:dA);function aA(T){var G=k,J=R;return k=R=void 0,eA=T,Z=h.apply(J,G),Z}function q(T){return eA=T,D=setTimeout(H,I),tA?aA(T):Z}function lA(T){var G=T-z,J=T-eA,$=I-G;return AA?Q($,O-J):$}function sA(T){var G=T-z,J=T-eA;return z===void 0||G>=I||G<0||AA&&J>=O}function H(){var T=C();if(sA(T))return j(T);D=setTimeout(H,lA(T))}function j(T){return D=void 0,dA&&k?aA(T):(k=R=void 0,Z)}function _(){D!==void 0&&clearTimeout(D),eA=0,k=z=R=D=void 0}function F(){return D===void 0?Z:j(C())}function N(){var T=C(),G=sA(T);if(k=arguments,R=this,z=T,G){if(D===void 0)return q(z);if(AA)return D=setTimeout(H,I),aA(z)}return D===void 0&&(D=setTimeout(H,I)),Z}return N.cancel=_,N.flush=F,N}function U(h,I,M){var k=!0,R=!0;if(typeof h!="function")throw new TypeError(e);return y(M)&&(k="leading"in M?!!M.leading:k,R="trailing"in M?!!M.trailing:R),x(h,I,{leading:k,maxWait:I,trailing:R})}function y(h){var I=typeof h;return!!h&&(I=="object"||I=="function")}function L(h){return!!h&&typeof h=="object"}function S(h){return typeof h=="symbol"||L(h)&&u.call(h)==r}function E(h){if(typeof h=="number")return h;if(S(h))return A;if(y(h)){var I=typeof h.valueOf=="function"?h.valueOf():h;h=y(I)?I+"":I}if(typeof h!="string")return h===0?h:+h;h=h.replace(t,"");var M=a.test(h);return M||s.test(h)?o(h.slice(2),M?2:8):n.test(h)?A:+h}return Kr=U,Kr}var Sl=Hl();const Ll=ks(Sl);var Fe=function(){return Fe=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Fe.apply(this,arguments)},kl=function(){var e,A,r=BA(),t=r.hc,n=r.config,a=r.squareWidth,s=r.squareHeight,o=r.handleChange,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.crossSize,B=b.useState(!1),u=B[0],p=B[1],Q=b.useRef(null),C=sl(t?.s,t?.v*100,a,s,g),x=C[0],U=C[1],y=b.useState({x,y:U}),L=y[0],S=y[1];Il(Q,t?.h,a,s),b.useEffect(function(){u||S({x:t?.v===0?L.x:x,y:U})},[x,U]);var E=function(O){var Z=Ll(function(){var D=ol(O,g),z=D[0],eA=D[1];if(z&&eA){var tA=Math.min(z+g/2,a-1),AA=Math.min(eA+g/2,s-1),dA=tA/a*100,aA=100-AA/s*100;S({x:aA===0?L?.x:z,y:eA});var q=SA("hsva(".concat(t?.h,", ").concat(dA,"%, ").concat(aA,"%, ").concat(t?.a,")"));o(q.toRgbString())}},250);Z()},h=function(){p(!1)},I=function(O){u&&E(O)},M=function(O){u||E(O)},k=function(){p(!0)},R=function(O){p(!0),E(O)};return b.useEffect(function(){var O=function(){h()};return window.addEventListener("mouseup",O),function(){window.removeEventListener("mouseup",O)}},[]),m.createElement("div",{style:{position:"relative",marginBottom:12},id:"rbgcp-square-wrapper".concat(c)},m.createElement("div",{onMouseUp:h,onTouchEnd:h,onMouseDown:R,onTouchStart:R,onMouseMove:function(O){return I(O)},id:"rbgcp-square".concat(c),style:{position:"relative",cursor:"ew-cross"}},m.createElement("div",{style:Fe(Fe(Fe({},l.rbgcpHandle),{transform:"translate(".concat((e=L?.x)!==null&&e!==void 0?e:0,"px, ").concat((A=L?.y)!==null&&A!==void 0?A:0,"px)")}),u?{transition:""}:{}),onMouseDown:k,id:"rbgcp-square-handle".concat(c)}),m.createElement("div",{style:Fe(Fe({},l.rbgcpCanvasWrapper),{height:s}),id:"rbgcp-square-canvas-wrapper".concat(c),onClick:function(O){return M(O)}},m.createElement("canvas",{ref:Q,width:"".concat(a,"px"),height:"".concat(s,"px"),id:"rbgcp-square-canvas".concat(c)}))))},ce=function(){return ce=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},ce.apply(this,arguments)},Ml=function(){var e=BA(),A=e.config,r=e.hc,t=r===void 0?{}:r,n=e.squareWidth,a=e.handleChange,s=e.defaultStyles,o=e.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],B=t.r,u=t.g,p=t.b,Q="linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(".concat(B,",").concat(u,",").concat(p,",.5) 100%)"),C=A.barSize,x=function(){g(!1)},U=function(){g(!0)},y=function(h){var I=Ge(h,C)/100,M="rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(I,")");a(M)},L=function(h){c&&y(h)},S=function(h){c||y(h)},E=n-18;return b.useEffect(function(){var h=function(){x()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{onMouseDown:U,onMouseMove:function(h){return L(h)},style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},id:"rbgcp-opacity-wrapper".concat(o)},m.createElement("div",{id:"rbgcp-opacity-checkered-bg".concat(o),style:ce(ce({},s.rbgcpCheckered),{width:"100%",height:14})}),m.createElement("div",{id:"rbgcp-opacity-handle".concat(o),style:ce(ce({},s.rbgcpHandle),{left:E*t?.a,top:-2})}),m.createElement("div",{style:ce(ce({},s.rbgcpOpacityOverlay),{background:Q}),id:"rbgcp-opacity-overlay".concat(o),onClick:function(h){return S(h)}}))},Kl={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}},Tl=["rgba(0,0,0,1)","rgba(128,128,128, 1)","rgba(192,192,192, 1)","rgba(255,255,255, 1)","rgba(0,0,128,1)","rgba(0,0,255,1)","rgba(0,255,255, 1)","rgba(0,128,0,1)","rgba(128,128,0, 1)","rgba(0,128,128,1)","rgba(0,255,0, 1)","rgba(128,0,0, 1)","rgba(128,0,128, 1)","rgba(175, 51, 242, 1)","rgba(255,0,255, 1)","rgba(255,0,0, 1)","rgba(240, 103, 46, 1)","rgba(255,255,0, 1)"],Dl=function(e){var A=e.presets,r=A===void 0?[]:A,t=BA(),n=t.value,a=t.onChange,s=t.isDarkMode,o=t.squareWidth,l=t.handleChange,c=t.pickerIdSuffix,g=function(){return r?.length>0?r?.slice(0,18):Tl},B=function(p){p?.includes("gradient")?a(p):l(p)},u=function(p){if(!p||s)return"";var Q=p?.replace(" ","");return Q==="rgba(255,255,255,1)"?"1px solid #96959c":""};return m.createElement("div",{style:{marginTop:14,display:"flex",justifyContent:"space-between"},id:"rbgcp-footer-wrapper".concat(c)},m.createElement("div",{style:{width:50,height:50,flexShrink:0,borderRadius:6,background:n,border:u(n)},id:"rbgcp-preview".concat(c)}),m.createElement("div",{style:{rowGap:3,display:"flex",flexWrap:"wrap",width:o-57,justifyContent:"space-between"},id:"rbgcp-presets-wrapper".concat(c)},g().map(function(p,Q){return m.createElement("div",{key:"".concat(p,"-").concat(Q),id:"rbgcp-preset-".concat(Q,"-wrapper").concat(c),style:{width:"calc(100% / 9)",paddingLeft:3}},m.createElement("div",{style:{height:23.5,width:"100%",background:p,borderRadius:4,border:u(p)},onClick:function(){return B(p)},id:"rbgcp-preset-".concat(Q).concat(c)}))})))},Y=function(){return Y=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Y.apply(this,arguments)},Ol=function(){var e=BA().defaultStyles,A={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y({},A),e.rbgcpControlIcon),points:"17.96 4.31 2.04 4.3 3.75 4.3 4.81 17.29 5.16 17.96 5.74 18.47 6.59 18.62 13.64 18.62 14.52 18.32 15.07 17.68 15.29 17.12 16.28 4.3 12.87 4.3 12.87 2.38 12.48 1.75 11.83 1.46 8.4 1.46 7.64 1.68 7.26 2.21 7.16 2.52 7.17 4.23"}))},Rl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:14}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"0.9 12.73 0.9 19.1 7.27 19.1 0.9 19.1 19.1 0.9 12.73 0.9 19.1 0.9 19.1 7.27"}))},Nl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"9"}),m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"5"}))},_l=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"},a={strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"3.74 2.75 3.74 12.69 0.9 12.71 6.59 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"3.74",y1:"17.26",x2:"3.74",y2:"15.21"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.1 17.25 10.1 7.31 12.95 7.29 7.26 7.29"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"10.1",y1:"2.74",x2:"10.1",y2:"4.79"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"16.26 2.75 16.26 12.69 13.41 12.71 19.1 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},Gl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M6.35,2.72a4.85,4.85,0,0,1,1.86.16,7.94,7.94,0,0,1,.88.43,3.66,3.66,0,0,0,.85.49c.25,0,.58-.27.81-.39A8.25,8.25,0,0,1,11.7,3a4,4,0,0,1,1.79-.23,3.21,3.21,0,0,0-1.34.09,6.39,6.39,0,0,0-1.47.63c-.45.25-.7.3-.7.86s0,1.18,0,1.78c0,1.3,0,2.61,0,3.92h0v5.63a2.46,2.46,0,0,1,0,.47c-.07.28-.43.42-.7.57a5.29,5.29,0,0,1-2.94.61A9.3,9.3,0,0,0,8,17.15l1.09-.37.89-.52c.06,0,.48.21.56.25.32.14.64.27,1,.38a8.54,8.54,0,0,0,2.12.4"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M7.57,5.73C6,5.7,4.5,5.65,3,5.77a2.28,2.28,0,0,0-1.76.74A2.3,2.3,0,0,0,.94,7.83l0,3.82A4.73,4.73,0,0,0,1,12.9a1.64,1.64,0,0,0,.68,1,2.44,2.44,0,0,0,1,.27,25,25,0,0,0,4.74.09"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M12.43,14.32a44.12,44.12,0,0,0,4.6,0,2.24,2.24,0,0,0,1.76-.74,2.29,2.29,0,0,0,.27-1.32l0-3.81A4.81,4.81,0,0,0,19,7.15a1.62,1.62,0,0,0-.68-1,2.31,2.31,0,0,0-1-.28,26.8,26.8,0,0,0-4.74-.09"}))},jl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={strokeMiterlimit:10,strokeWidth:"0.5px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"9.36",cy:"5.07",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"13.93",cy:"6.91",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.8",cy:"7.55",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.45",cy:"12.04",r:"1.71"}),m.createElement("path",{style:Y(Y(Y(Y({},n),r.rbgcpControlIcon),r.rbgcpControlIcon2),t&&{fill:t,stroke:t}),d:"M19.1,10c0,3.58-2.12,2.94-4.06,2.35-1.15-.34-2.24-.67-2.77-.08-.68.78-.54,2.07-.39,3.33.2,1.79.39,3.5-1.88,3.5A9.1,9.1,0,1,1,19.1,10ZM10,18c.7,0,.74-.19.75-.2a2.67,2.67,0,0,0,.07-1.27c0-.19,0-.42-.06-.67-.06-.53-.13-1.15-.14-1.67a3.82,3.82,0,0,1,.8-2.63,2.14,2.14,0,0,1,1.45-.7,4.36,4.36,0,0,1,1.32.12c.39.08.8.21,1.16.32h0c.39.12.74.23,1.08.3.74.17,1,.1,1.13,0S18,11.32,18,10a8,8,0,1,0-8,8Z"}))},Vl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"13.86 2.01 1.7 16.99 18.77 16.99"}),m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.96 16.38 10.96 16.38 10.74 15.7 10.44 14.97 10.06 14.21 9.72 13.63 9.21 12.89 8.85 12.44 8.41 11.95 7.91 11.45 7.51 11.1"}))},Pl=function(){var e=BA().defaultStyles;return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:20,marginRight:1}},m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M2.39,8c-.63,0-1,.21-1,.63A.49.49,0,0,0,1.67,9a6.48,6.48,0,0,0,1.11.43A3,3,0,0,1,4,10.09a1.47,1.47,0,0,1,.35,1.09,1.75,1.75,0,0,1-.57,1.42,2.21,2.21,0,0,1-1.48.48,8.32,8.32,0,0,1-1.68-.21l-.31-.06.12-.94a13.7,13.7,0,0,0,1.8.16c.61,0,.92-.26.92-.77a.52.52,0,0,0-.21-.44,3.13,3.13,0,0,0-.85-.34A3.32,3.32,0,0,1,.66,9.79a1.43,1.43,0,0,1-.42-1.1A1.6,1.6,0,0,1,.78,7.36a2.32,2.32,0,0,1,1.49-.44,10.46,10.46,0,0,1,1.64.17l.32.07-.1.95C3.31,8,2.73,8,2.39,8Z"}),m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M14,12.34a2.25,2.25,0,0,1-1.91.74,2.24,2.24,0,0,1-1.91-.74A3.85,3.85,0,0,1,9.61,10a4,4,0,0,1,.56-2.34,2.2,2.2,0,0,1,1.91-.77A2.21,2.21,0,0,1,14,7.69,4,4,0,0,1,14.55,10,3.85,3.85,0,0,1,14,12.34Zm-2.88-.77a1,1,0,0,0,1,.46,1,1,0,0,0,1-.46A3.25,3.25,0,0,0,13.3,10,3.45,3.45,0,0,0,13,8.46a1,1,0,0,0-1-.49,1,1,0,0,0-1,.49A3.43,3.43,0,0,0,10.85,10,3.38,3.38,0,0,0,11.11,11.57Z"}),m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M17.77,11.24h-1V13H15.58V7h2.19a1.85,1.85,0,0,1,2.11,2.07,2.21,2.21,0,0,1-.54,1.6A2.07,2.07,0,0,1,17.77,11.24Zm-1-1h1c.6,0,.9-.37.9-1.12a1.18,1.18,0,0,0-.22-.79.88.88,0,0,0-.68-.24h-1Z"}))},Xl=function(e){var A,r=e.children,t="id"+Math.random().toString(16).slice(2),n=b.useRef((A=document.getElementById(t))!==null&&A!==void 0?A:document.createElement("div")),a=b.useState(!n.current.parentElement)[0];return b.useEffect(function(){var s=n.current;return a&&(n.current.id=t,document.body.appendChild(n.current)),function(){a&&s.parentElement&&s.parentElement.removeChild(s)}},[t]),so.createPortal(r,n.current)};const Jl=b.memo(Xl);var dn=function(e,A){return dn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},dn(e,A)};function zA(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");dn(e,A);function r(){this.constructor=e}e.prototype=A===null?Object.create(A):(r.prototype=A.prototype,new r)}var fn=function(){return fn=Object.assign||function(A){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(A[a]=r[a])}return A},fn.apply(this,arguments)};function OA(e,A,r,t){function n(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function o(g){try{c(t.next(g))}catch(B){s(B)}}function l(g){try{c(t.throw(g))}catch(B){s(B)}}function c(g){g.done?a(g.value):n(g.value).then(o,l)}c((t=t.apply(e,[])).next())})}function kA(e,A){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(g){return l([c,g])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,n&&(a=c[0]&2?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=A.call(e,r)}catch(g){c=[6,g],n=0}finally{t=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function xt(e,A,r){if(arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||A)}var ie=(function(){function e(A,r,t,n){this.left=A,this.top=r,this.width=t,this.height=n}return e.prototype.add=function(A,r,t,n){return new e(this.left+A,this.top+r,this.width+t,this.height+n)},e.fromClientRect=function(A,r){return new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(A,r){var t=Array.from(r).find(function(n){return n.width!==0});return t?new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),vr=function(e,A){return ie.fromClientRect(e,A.getBoundingClientRect())},Wl=function(e){var A=e.body,r=e.documentElement;if(!A||!r)throw new Error("Unable to get document size");var t=Math.max(Math.max(A.scrollWidth,r.scrollWidth),Math.max(A.offsetWidth,r.offsetWidth),Math.max(A.clientWidth,r.clientWidth)),n=Math.max(Math.max(A.scrollHeight,r.scrollHeight),Math.max(A.offsetHeight,r.offsetHeight),Math.max(A.clientHeight,r.clientHeight));return new ie(0,0,t,n)},Ur=function(e){for(var A=[],r=0,t=e.length;r<t;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=e.charCodeAt(r++);(a&64512)===56320?A.push(((n&1023)<<10)+(a&1023)+65536):(A.push(n),r--)}else A.push(n)}return A},bA=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=e[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var It=0;It<na.length;It++)Yl[na.charCodeAt(It)]=It;var aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ht=0;Ht<aa.length;Ht++)qe[aa.charCodeAt(Ht)]=Ht;var Zl=function(e){var A=e.length*.75,r=e.length,t,n=0,a,s,o,l;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=qe[e.charCodeAt(t)],s=qe[e.charCodeAt(t+1)],o=qe[e.charCodeAt(t+2)],l=qe[e.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},zl=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},ql=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},xe=5,Nn=11,Tr=2,$l=Nn-xe,Rs=65536>>xe,Ac=1<<xe,Dr=Ac-1,ec=1024>>xe,tc=Rs+ec,rc=tc,nc=32,ac=rc+nc,sc=65536>>Nn,ic=1<<$l,oc=ic-1,sa=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},lc=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},cc=function(e,A){var r=Zl(e),t=Array.isArray(r)?ql(r):new Uint32Array(r),n=Array.isArray(r)?zl(r):new Uint16Array(r),a=24,s=sa(n,a/2,t[4]/2),o=t[5]===2?sa(n,(a+t[4])/2):lc(t,Math.ceil((a+t[4])/4));return new gc(t[0],t[1],t[2],t[3],s,o)},gc=(function(){function e(A,r,t,n,a,s){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>xe],r=(r<<Tr)+(A&Dr),this.data[r];if(A<=65535)return r=this.index[Rs+(A-55296>>xe)],r=(r<<Tr)+(A&Dr),this.data[r];if(A<this.highStart)return r=ac-sc+(A>>Nn),r=this.index[r],r+=A>>xe&oc,r=this.index[r],r=(r<<Tr)+(A&Dr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var St=0;St<ia.length;St++)uc[ia.charCodeAt(St)]=St;var Bc="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6B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sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB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AAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMA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gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQA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ABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAk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eAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcA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cAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAA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UABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4A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UABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUA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AFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",oa=50,dc=1,Ns=2,_s=3,fc=4,hc=5,la=7,Gs=8,ca=9,ue=10,hn=11,ga=12,wn=13,wc=14,$e=15,pn=16,Lt=17,Je=18,pc=19,ua=20,Cn=21,We=22,Or=23,He=24,GA=25,At=26,et=27,Se=28,Cc=29,be=30,Qc=31,kt=32,Mt=33,Qn=34,mn=35,vn=36,ht=37,Un=38,qt=39,$t=40,Rr=41,js=42,mc=43,vc=[9001,65288],Vs="!",iA="×",Kt="÷",Fn=cc(Bc),ne=[be,vn],bn=[dc,Ns,_s,hc],Ps=[ue,Gs],Ba=[et,At],Uc=bn.concat(Ps),da=[Un,qt,$t,Qn,mn],Fc=[$e,wn],bc=function(e,A){A===void 0&&(A="strict");var r=[],t=[],n=[];return e.forEach(function(a,s){var o=Fn.get(a);if(o>oa?(n.push(!0),o-=oa):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(s),r.push(pn);if(o===fc||o===hn){if(s===0)return t.push(s),r.push(be);var l=r[s-1];return Uc.indexOf(l)===-1?(t.push(t[s-1]),r.push(l)):(t.push(s),r.push(be))}if(t.push(s),o===Qc)return r.push(A==="strict"?Cn:ht);if(o===js||o===Cc)return r.push(be);if(o===mc)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(ht):r.push(be);r.push(o)}),[t,r,n]},Nr=function(e,A,r,t){var n=t[r];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var a=r;a<=t.length;){a++;var s=t[a];if(s===A)return!0;if(s!==ue)break}if(n===ue)for(var a=r;a>0;){a--;var o=t[a];if(Array.isArray(e)?e.indexOf(o)!==-1:e===o)for(var l=r;l<=t.length;){l++;var s=t[l];if(s===A)return!0;if(s!==ue)break}if(o!==ue)break}return!1},fa=function(e,A){for(var r=e;r>=0;){var t=A[r];if(t===ue)r--;else return t}return 0},yc=function(e,A,r,t,n){if(r[t]===0)return iA;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return iA;var s=a-1,o=a+1,l=A[a],c=s>=0?A[s]:0,g=A[o];if(l===Ns&&g===_s)return iA;if(bn.indexOf(l)!==-1)return Vs;if(bn.indexOf(g)!==-1||Ps.indexOf(g)!==-1)return iA;if(fa(a,A)===Gs)return Kt;if(Fn.get(e[a])===hn||(l===kt||l===Mt)&&Fn.get(e[o])===hn||l===la||g===la||l===ca||[ue,wn,$e].indexOf(l)===-1&&g===ca||[Lt,Je,pc,He,Se].indexOf(g)!==-1||fa(a,A)===We||Nr(Or,We,a,A)||Nr([Lt,Je],Cn,a,A)||Nr(ga,ga,a,A))return iA;if(l===ue)return Kt;if(l===Or||g===Or)return iA;if(g===pn||l===pn)return Kt;if([wn,$e,Cn].indexOf(g)!==-1||l===wc||c===vn&&Fc.indexOf(l)!==-1||l===Se&&g===vn||g===ua||ne.indexOf(g)!==-1&&l===GA||ne.indexOf(l)!==-1&&g===GA||l===et&&[ht,kt,Mt].indexOf(g)!==-1||[ht,kt,Mt].indexOf(l)!==-1&&g===At||ne.indexOf(l)!==-1&&Ba.indexOf(g)!==-1||Ba.indexOf(l)!==-1&&ne.indexOf(g)!==-1||[et,At].indexOf(l)!==-1&&(g===GA||[We,$e].indexOf(g)!==-1&&A[o+1]===GA)||[We,$e].indexOf(l)!==-1&&g===GA||l===GA&&[GA,Se,He].indexOf(g)!==-1)return iA;if([GA,Se,He,Lt,Je].indexOf(g)!==-1)for(var B=a;B>=0;){var u=A[B];if(u===GA)return iA;if([Se,He].indexOf(u)!==-1)B--;else break}if([et,At].indexOf(g)!==-1)for(var B=[Lt,Je].indexOf(l)!==-1?s:a;B>=0;){var u=A[B];if(u===GA)return iA;if([Se,He].indexOf(u)!==-1)B--;else break}if(Un===l&&[Un,qt,Qn,mn].indexOf(g)!==-1||[qt,Qn].indexOf(l)!==-1&&[qt,$t].indexOf(g)!==-1||[$t,mn].indexOf(l)!==-1&&g===$t||da.indexOf(l)!==-1&&[ua,At].indexOf(g)!==-1||da.indexOf(g)!==-1&&l===et||ne.indexOf(l)!==-1&&ne.indexOf(g)!==-1||l===He&&ne.indexOf(g)!==-1||ne.concat(GA).indexOf(l)!==-1&&g===We&&vc.indexOf(e[o])===-1||ne.concat(GA).indexOf(g)!==-1&&l===Je)return iA;if(l===Rr&&g===Rr){for(var p=r[a],Q=1;p>0&&(p--,A[p]===Rr);)Q++;if(Q%2!==0)return iA}return l===kt&&g===Mt?iA:Kt},Ec=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var r=bc(e,A.lineBreak),t=r[0],n=r[1],a=r[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(o){return[GA,be,js].indexOf(o)!==-1?ht:o}));var s=A.wordBreak==="keep-all"?a.map(function(o,l){return o&&e[l]>=19968&&e[l]<=40959}):void 0;return[t,n,s]},xc=(function(){function e(A,r,t,n){this.codePoints=A,this.required=r===Vs,this.start=t,this.end=n}return e.prototype.slice=function(){return bA.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),Ic=function(e,A){var r=Ur(e),t=Ec(r,A),n=t[0],a=t[1],s=t[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var g=iA;c<o&&(g=yc(r,a,n,++c,s))===iA;);if(g!==iA||c===o){var B=new xc(r,g,l,c);return l=c,{value:B,done:!1}}return{done:!0,value:null}}}},Hc=1,Sc=2,Ut=4,ha=8,cr=10,wa=47,it=92,Lc=9,kc=32,Tt=34,Ye=61,Mc=35,Kc=36,Tc=37,Dt=39,Ot=40,Ze=41,Dc=95,NA=45,Oc=33,Rc=60,Nc=62,_c=64,Gc=91,jc=93,Vc=61,Pc=123,Rt=63,Xc=125,pa=124,Jc=126,Wc=128,Ca=65533,_r=42,Ee=43,Yc=44,Zc=58,zc=59,wt=46,qc=0,$c=8,Ag=11,eg=14,tg=31,rg=127,qA=-1,Xs=48,Js=97,Ws=101,ng=102,ag=117,sg=122,Ys=65,Zs=69,zs=70,ig=85,og=90,MA=function(e){return e>=Xs&&e<=57},lg=function(e){return e>=55296&&e<=57343},Le=function(e){return MA(e)||e>=Ys&&e<=zs||e>=Js&&e<=ng},cg=function(e){return e>=Js&&e<=sg},gg=function(e){return e>=Ys&&e<=og},ug=function(e){return cg(e)||gg(e)},Bg=function(e){return e>=Wc},Nt=function(e){return e===cr||e===Lc||e===kc},gr=function(e){return ug(e)||Bg(e)||e===Dc},Qa=function(e){return gr(e)||MA(e)||e===NA},dg=function(e){return e>=qc&&e<=$c||e===Ag||e>=eg&&e<=tg||e===rg},ge=function(e,A){return e!==it?!1:A!==cr},_t=function(e,A,r){return e===NA?gr(A)||ge(A,r):gr(e)?!0:!!(e===it&&ge(e,A))},Gr=function(e,A,r){return e===Ee||e===NA?MA(A)?!0:A===wt&&MA(r):MA(e===wt?A:e)},fg=function(e){var A=0,r=1;(e[A]===Ee||e[A]===NA)&&(e[A]===NA&&(r=-1),A++);for(var t=[];MA(e[A]);)t.push(e[A++]);var n=t.length?parseInt(bA.apply(void 0,t),10):0;e[A]===wt&&A++;for(var a=[];MA(e[A]);)a.push(e[A++]);var s=a.length,o=s?parseInt(bA.apply(void 0,a),10):0;(e[A]===Zs||e[A]===Ws)&&A++;var l=1;(e[A]===Ee||e[A]===NA)&&(e[A]===NA&&(l=-1),A++);for(var c=[];MA(e[A]);)c.push(e[A++]);var g=c.length?parseInt(bA.apply(void 0,c),10):0;return r*(n+o*Math.pow(10,-s))*Math.pow(10,l*g)},hg={type:2},wg={type:3},pg={type:4},Cg={type:13},Qg={type:8},mg={type:21},vg={type:9},Ug={type:10},Fg={type:11},bg={type:12},yg={type:14},Gt={type:23},Eg={type:1},xg={type:25},Ig={type:24},Hg={type:26},Sg={type:27},Lg={type:28},kg={type:29},Mg={type:31},yn={type:32},qs=(function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(Ur(A))},e.prototype.read=function(){for(var A=[],r=this.consumeToken();r!==yn;)A.push(r),r=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Tt:return this.consumeStringToken(Tt);case Mc:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Qa(r)||ge(t,n)){var a=_t(r,t,n)?Sc:Hc,s=this.consumeName();return{type:5,value:s,flags:a}}break;case Kc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Cg;break;case Dt:return this.consumeStringToken(Dt);case Ot:return hg;case Ze:return wg;case _r:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),yg;break;case Ee:if(Gr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Yc:return pg;case NA:var o=A,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Gr(o,l,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(_t(o,l,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(l===NA&&c===Nc)return this.consumeCodePoint(),this.consumeCodePoint(),Ig;break;case wt:if(Gr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case wa:if(this.peekCodePoint(0)===_r)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===_r&&(g=this.consumeCodePoint(),g===wa))return this.consumeToken();if(g===qA)return this.consumeToken()}break;case Zc:return Hg;case zc:return Sg;case Rc:if(this.peekCodePoint(0)===Oc&&this.peekCodePoint(1)===NA&&this.peekCodePoint(2)===NA)return this.consumeCodePoint(),this.consumeCodePoint(),xg;break;case _c:var B=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(_t(B,u,p)){var s=this.consumeName();return{type:7,value:s}}break;case Gc:return Lg;case it:if(ge(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case jc:return kg;case Vc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Qg;break;case Pc:return Fg;case Xc:return bg;case ag:case ig:var Q=this.peekCodePoint(0),C=this.peekCodePoint(1);return Q===Ee&&(Le(C)||C===Rt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case pa:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),vg;if(this.peekCodePoint(0)===pa)return this.consumeCodePoint(),mg;break;case Jc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Ug;break;case qA:return yn}return Nt(A)?(this.consumeWhiteSpace(),Mg):MA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):gr(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:bA(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],r=this.consumeCodePoint();Le(r)&&A.length<6;)A.push(r),r=this.consumeCodePoint();for(var t=!1;r===Rt&&A.length<6;)A.push(r),r=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(bA.apply(void 0,A.map(function(l){return l===Rt?Xs:l})),16),a=parseInt(bA.apply(void 0,A.map(function(l){return l===Rt?zs:l})),16);return{type:30,start:n,end:a}}var s=parseInt(bA.apply(void 0,A),16);if(this.peekCodePoint(0)===NA&&Le(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];Le(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(bA.apply(void 0,o),16);return{type:30,start:s,end:a}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Ot?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ot?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===qA)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Dt||r===Tt){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===qA||this.peekCodePoint(0)===Ze)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Gt)}for(;;){var n=this.consumeCodePoint();if(n===qA||n===Ze)return{type:22,value:bA.apply(void 0,A)};if(Nt(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===qA||this.peekCodePoint(0)===Ze?(this.consumeCodePoint(),{type:22,value:bA.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Gt);if(n===Tt||n===Dt||n===Ot||dg(n))return this.consumeBadUrlRemnants(),Gt;if(n===it)if(ge(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Gt;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;Nt(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Ze||A===qA)return;ge(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var r=5e4,t="";A>0;){var n=Math.min(r,A);t+=bA.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(A){var r="",t=0;do{var n=this._value[t];if(n===qA||n===void 0||n===A)return r+=this.consumeStringSlice(t),{type:0,value:r};if(n===cr)return this._value.splice(0,t),Eg;if(n===it){var a=this._value[t+1];a!==qA&&a!==void 0&&(a===cr?(r+=this.consumeStringSlice(t),t=-1,this._value.shift()):ge(n,a)&&(r+=this.consumeStringSlice(t),r+=bA(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},e.prototype.consumeNumber=function(){var A=[],r=Ut,t=this.peekCodePoint(0);for((t===Ee||t===NA)&&A.push(this.consumeCodePoint());MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===wt&&MA(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=ha;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===Zs||t===Ws)&&((n===Ee||n===NA)&&MA(a)||MA(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=ha;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[fg(A),r]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),r=A[0],t=A[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),s=this.peekCodePoint(2);if(_t(n,a,s)){var o=this.consumeName();return{type:15,number:r,flags:t,unit:o}}return n===Tc?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Le(A)){for(var r=bA(A);Le(this.peekCodePoint(0))&&r.length<6;)r+=bA(this.consumeCodePoint());Nt(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||lg(t)||t>1114111?Ca:t}return A===qA?Ca:A},e.prototype.consumeName=function(){for(var A="";;){var r=this.consumeCodePoint();if(Qa(r))A+=bA(r);else if(ge(r,this.peekCodePoint(0)))A+=bA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),A}},e})(),$s=(function(){function e(A){this._tokens=A}return e.create=function(A){var r=new qs;return r.write(A),new e(r.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var r=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var r=this.consumeComponentValue();if(r.type===32)return A;A.push(r),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var r={type:A,values:[]},t=this.consumeToken();;){if(t.type===32||Tg(t,A))return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue()),t=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var r={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?yn:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e})(),Ft=function(e){return e.type===15},Ve=function(e){return e.type===17},uA=function(e){return e.type===20},Kg=function(e){return e.type===0},En=function(e,A){return uA(e)&&e.value===A},Ai=function(e){return e.type!==31},je=function(e){return e.type!==31&&e.type!==4},te=function(e){var A=[],r=[];return e.forEach(function(t){if(t.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(r),r=[];return}t.type!==31&&r.push(t)}),r.length&&A.push(r),A},Tg=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},pe=function(e){return e.type===17||e.type===15},yA=function(e){return e.type===16||pe(e)},ei=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},LA={type:17,number:0,flags:Ut},_n={type:16,number:50,flags:Ut},Be={type:16,number:100,flags:Ut},tt=function(e,A,r){var t=e[0],n=e[1];return[wA(t,A),wA(typeof n<"u"?n:t,r)]},wA=function(e,A){if(e.type===16)return e.number/100*A;if(Ft(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},ti="deg",ri="grad",ni="rad",ai="turn",Fr={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case ti:return Math.PI*A.number/180;case ri:return Math.PI/200*A.number;case ni:return A.number;case ai:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},si=function(e){return e.type===15&&(e.unit===ti||e.unit===ri||e.unit===ni||e.unit===ai)},ii=function(e){var A=e.filter(uA).map(function(r){return r.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LA,LA];case"to top":case"bottom":return XA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LA,Be];case"to right":case"left":return XA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Be,Be];case"to bottom":case"top":return XA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Be,LA];case"to left":case"right":return XA(270)}return 0},XA=function(e){return Math.PI*e/180},he={name:"color",parse:function(e,A){if(A.type===18){var r=Dg[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return r(e,A.values)}if(A.type===5){if(A.value.length===3){var t=A.value.substring(0,1),n=A.value.substring(1,2),a=A.value.substring(2,3);return de(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),1)}if(A.value.length===4){var t=A.value.substring(0,1),n=A.value.substring(1,2),a=A.value.substring(2,3),s=A.value.substring(3,4);return de(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(A.value.length===6){var t=A.value.substring(0,2),n=A.value.substring(2,4),a=A.value.substring(4,6);return de(parseInt(t,16),parseInt(n,16),parseInt(a,16),1)}if(A.value.length===8){var t=A.value.substring(0,2),n=A.value.substring(2,4),a=A.value.substring(4,6),s=A.value.substring(6,8);return de(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(s,16)/255)}}if(A.type===20){var o=se[A.value.toUpperCase()];if(typeof o<"u")return o}return se.TRANSPARENT}},we=function(e){return(255&e)===0},xA=function(e){var A=255&e,r=255&e>>8,t=255&e>>16,n=255&e>>24;return A<255?"rgba("+n+","+t+","+r+","+A/255+")":"rgb("+n+","+t+","+r+")"},de=function(e,A,r,t){return(e<<24|A<<16|r<<8|Math.round(t*255)<<0)>>>0},ma=function(e,A){if(e.type===17)return e.number;if(e.type===16){var r=A===3?1:255;return A===3?e.number/100*r:Math.round(e.number/100*r)}return 0},va=function(e,A){var r=A.filter(je);if(r.length===3){var t=r.map(ma),n=t[0],a=t[1],s=t[2];return de(n,a,s,1)}if(r.length===4){var o=r.map(ma),n=o[0],a=o[1],s=o[2],l=o[3];return de(n,a,s,l)}return 0};function jr(e,A,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(A-e)*r*6+e:r<1/2?A:r<2/3?(A-e)*6*(2/3-r)+e:e}var Ua=function(e,A){var r=A.filter(je),t=r[0],n=r[1],a=r[2],s=r[3],o=(t.type===17?XA(t.number):Fr.parse(e,t))/(Math.PI*2),l=yA(n)?n.number/100:0,c=yA(a)?a.number/100:0,g=typeof s<"u"&&yA(s)?wA(s,1):1;if(l===0)return de(c*255,c*255,c*255,1);var B=c<=.5?c*(l+1):c+l-c*l,u=c*2-B,p=jr(u,B,o+1/3),Q=jr(u,B,o),C=jr(u,B,o-1/3);return de(p*255,Q*255,C*255,g)},Dg={hsl:Ua,hsla:Ua,rgb:va,rgba:va},ot=function(e,A){return he.parse(e,$s.create(A).parseComponentValue())},se={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},Og={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Rg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},br=function(e,A){var r=he.parse(e,A[0]),t=A[1];return t&&yA(t)?{color:r,stop:t}:{color:r,stop:null}},Fa=function(e,A){var r=e[0],t=e[e.length-1];r.stop===null&&(r.stop=LA),t.stop===null&&(t.stop=Be);for(var n=[],a=0,s=0;s<e.length;s++){var o=e[s].stop;if(o!==null){var l=wA(o,A);l>a?n.push(l):n.push(a),a=l}else n.push(null)}for(var c=null,s=0;s<n.length;s++){var g=n[s];if(g===null)c===null&&(c=s);else if(c!==null){for(var B=s-c,u=n[c-1],p=(g-u)/(B+1),Q=1;Q<=B;Q++)n[c+Q-1]=p*Q;c=null}}return e.map(function(C,x){var U=C.color;return{color:U,stop:Math.max(Math.min(1,n[x]/A),0)}})},Ng=function(e,A,r){var t=A/2,n=r/2,a=wA(e[0],A)-t,s=n-wA(e[1],r);return(Math.atan2(s,a)+Math.PI*2)%(Math.PI*2)},_g=function(e,A,r){var t=typeof e=="number"?e:Ng(e,A,r),n=Math.abs(A*Math.sin(t))+Math.abs(r*Math.cos(t)),a=A/2,s=r/2,o=n/2,l=Math.sin(t-Math.PI/2)*o,c=Math.cos(t-Math.PI/2)*o;return[n,a-c,a+c,s-l,s+l]},ZA=function(e,A){return Math.sqrt(e*e+A*A)},ba=function(e,A,r,t,n){var a=[[0,0],[0,A],[e,0],[e,A]];return a.reduce(function(s,o){var l=o[0],c=o[1],g=ZA(r-l,t-c);return(n?g<s.optimumDistance:g>s.optimumDistance)?{optimumCorner:o,optimumDistance:g}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Gg=function(e,A,r,t,n){var a=0,s=0;switch(e.size){case 0:e.shape===0?a=s=Math.min(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-n)):e.shape===1&&(a=Math.min(Math.abs(A),Math.abs(A-t)),s=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(e.shape===0)a=s=Math.min(ZA(A,r),ZA(A,r-n),ZA(A-t,r),ZA(A-t,r-n));else if(e.shape===1){var o=Math.min(Math.abs(r),Math.abs(r-n))/Math.min(Math.abs(A),Math.abs(A-t)),l=ba(t,n,A,r,!0),c=l[0],g=l[1];a=ZA(c-A,(g-r)/o),s=o*a}break;case 1:e.shape===0?a=s=Math.max(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-n)):e.shape===1&&(a=Math.max(Math.abs(A),Math.abs(A-t)),s=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(e.shape===0)a=s=Math.max(ZA(A,r),ZA(A,r-n),ZA(A-t,r),ZA(A-t,r-n));else if(e.shape===1){var o=Math.max(Math.abs(r),Math.abs(r-n))/Math.max(Math.abs(A),Math.abs(A-t)),B=ba(t,n,A,r,!1),c=B[0],g=B[1];a=ZA(c-A,(g-r)/o),s=o*a}break}return Array.isArray(e.size)&&(a=wA(e.size[0],t),s=e.size.length===2?wA(e.size[1],n):a),[a,s]},jg=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&s.value==="to"){r=ii(n);return}else if(si(s)){r=Fr.parse(e,s);return}}var o=br(e,n);t.push(o)}),{angle:r,stops:t,type:1}},jt=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){r=ii(n);return}else if(si(s)){r=(Fr.parse(e,s)+XA(270))%XA(360);return}}var o=br(e,n);t.push(o)}),{angle:r,stops:t,type:1}},Vg=function(e,A){var r=XA(180),t=[],n=1,a=0,s=3,o=[];return te(A).forEach(function(l,c){var g=l[0];if(c===0){if(uA(g)&&g.value==="linear"){n=1;return}else if(uA(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var B=he.parse(e,g.values[0]);t.push({stop:LA,color:B})}else if(g.name==="to"){var B=he.parse(e,g.values[0]);t.push({stop:Be,color:B})}else if(g.name==="color-stop"){var u=g.values.filter(je);if(u.length===2){var B=he.parse(e,u[1]),p=u[0];Ve(p)&&t.push({stop:{type:16,number:p.number*100,flags:p.flags},color:B})}}}}),n===1?{angle:(r+XA(180))%XA(360),stops:t,type:n}:{size:s,shape:a,stops:t,position:o,type:n}},oi="closest-side",li="farthest-side",ci="closest-corner",gi="farthest-corner",ui="circle",Bi="ellipse",di="cover",fi="contain",Pg=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(s,o){var l=!0;if(o===0){var c=!1;l=s.reduce(function(B,u){if(c)if(uA(u))switch(u.value){case"center":return a.push(_n),B;case"top":case"left":return a.push(LA),B;case"right":case"bottom":return a.push(Be),B}else(yA(u)||pe(u))&&a.push(u);else if(uA(u))switch(u.value){case ui:return r=0,!1;case Bi:return r=1,!1;case"at":return c=!0,!1;case oi:return t=0,!1;case di:case li:return t=1,!1;case fi:case ci:return t=2,!1;case gi:return t=3,!1}else if(pe(u)||yA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return B},l)}if(l){var g=br(e,s);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},Vt=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(s,o){var l=!0;if(o===0?l=s.reduce(function(g,B){if(uA(B))switch(B.value){case"center":return a.push(_n),!1;case"top":case"left":return a.push(LA),!1;case"right":case"bottom":return a.push(Be),!1}else if(yA(B)||pe(B))return a.push(B),!1;return g},l):o===1&&(l=s.reduce(function(g,B){if(uA(B))switch(B.value){case ui:return r=0,!1;case Bi:return r=1,!1;case fi:case oi:return t=0,!1;case li:return t=1,!1;case ci:return t=2,!1;case di:case gi:return t=3,!1}else if(pe(B)||yA(B))return Array.isArray(t)||(t=[]),t.push(B),!1;return g},l)),l){var c=br(e,s);n.push(c)}}),{size:t,shape:r,stops:n,position:a,type:2}},Xg=function(e){return e.type===1},Jg=function(e){return e.type===2},Gn={name:"image",parse:function(e,A){if(A.type===22){var r={url:A.value,type:0};return e.cache.addImage(A.value),r}if(A.type===18){var t=hi[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function Wg(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!hi[e.name])}var hi={"linear-gradient":jg,"-moz-linear-gradient":jt,"-ms-linear-gradient":jt,"-o-linear-gradient":jt,"-webkit-linear-gradient":jt,"radial-gradient":Pg,"-moz-radial-gradient":Vt,"-ms-radial-gradient":Vt,"-o-radial-gradient":Vt,"-webkit-radial-gradient":Vt,"-webkit-gradient":Vg},Yg={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var r=A[0];return r.type===20&&r.value==="none"?[]:A.filter(function(t){return je(t)&&Wg(t)}).map(function(t){return Gn.parse(e,t)})}},Zg={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},zg={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return te(A).map(function(r){return r.filter(yA)}).map(ei)}},qg={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(uA).map(function(t){return t.value}).join(" ")}).map($g)}},$g=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},Ne;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(Ne||(Ne={}));var Au={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(eu)})}},eu=function(e){return uA(e)||yA(e)},yr=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},tu=yr("top"),ru=yr("right"),nu=yr("bottom"),au=yr("left"),Er=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,r){return ei(r.filter(yA))}}},su=Er("top-left"),iu=Er("top-right"),ou=Er("bottom-right"),lu=Er("bottom-left"),xr=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},cu=xr("top"),gu=xr("right"),uu=xr("bottom"),Bu=xr("left"),Ir=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,r){return Ft(r)?r.number:0}}},du=Ir("top"),fu=Ir("right"),hu=Ir("bottom"),wu=Ir("left"),pu={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Cu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return A==="rtl"?1:0}},Qu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(uA).reduce(function(r,t){return r|mu(t.value)},0)}},mu=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vu={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Uu={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},ur;(function(e){e.NORMAL="normal",e.STRICT="strict"})(ur||(ur={}));var Fu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="strict"?ur.STRICT:ur.NORMAL}},bu={name:"line-height",initialValue:"normal",prefix:!1,type:4},ya=function(e,A){return uA(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:yA(e)?wA(e,A):A},yu={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:Gn.parse(e,A)}},Eu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){return A==="inside"?0:1}},xn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Hr=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},xu=Hr("top"),Iu=Hr("right"),Hu=Hr("bottom"),Su=Hr("left"),Lu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(uA).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},ku={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="break-word"?"break-word":"normal"}},Sr=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Mu=Sr("top"),Ku=Sr("right"),Tu=Sr("bottom"),Du=Sr("left"),Ou={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Ru={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Nu={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&En(A[0],"none")?[]:te(A).map(function(r){for(var t={color:se.TRANSPARENT,offsetX:LA,offsetY:LA,blur:LA},n=0,a=0;a<r.length;a++){var s=r[a];pe(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:t.blur=s,n++):t.color=he.parse(e,s)}return t})}},_u={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Gu={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var r=Pu[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return r(A.values)}return null}},ju=function(e){var A=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return A.length===6?A:null},Vu=function(e){var A=e.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=A[0],t=A[1];A[2],A[3];var n=A[4],a=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],o=A[13];return A[14],A[15],A.length===16?[r,t,n,a,s,o]:null},Pu={matrix:ju,matrix3d:Vu},Ea={type:16,number:50,flags:Ut},Xu=[Ea,Ea],Ju={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var r=A.filter(yA);return r.length!==2?Xu:[r[0],r[1]]}},Wu={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}},lt;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(lt||(lt={}));var Yu={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return lt.BREAK_ALL;case"keep-all":return lt.KEEP_ALL;default:return lt.NORMAL}}},Zu={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(Ve(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},wi={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},zu={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:1}},qu={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$u={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(uA).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},AB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var r=[],t=[];return A.forEach(function(n){switch(n.type){case 20:case 0:r.push(n.value);break;case 17:r.push(n.number.toString());break;case 4:t.push(r.join(" ")),r.length=0;break}}),r.length&&t.push(r.join(" ")),t.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},eB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},tB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:uA(A)&&A.value==="bold"?700:400}},rB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(uA).map(function(r){return r.value})}},nB={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},EA=function(e,A){return(e&A)!==0},aB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var r=A[0];return r.type===20&&r.value==="none"?[]:A}},sB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;for(var t=[],n=A.filter(Ai),a=0;a<n.length;a++){var s=n[a],o=n[a+1];if(s.type===20){var l=o&&Ve(o)?o.number:1;t.push({counter:s.value,increment:l})}}return t}},iB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var r=[],t=A.filter(Ai),n=0;n<t.length;n++){var a=t[n],s=t[n+1];if(uA(a)&&a.value!=="none"){var o=s&&Ve(s)?s.number:0;r.push({counter:a.value,reset:o})}}return r}},oB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Ft).map(function(r){return wi.parse(e,r)})}},lB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;var t=[],n=A.filter(Kg);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var s=n[a].value,o=n[a+1].value;t.push({open:s,close:o})}return t}},xa=function(e,A,r){if(!e)return"";var t=e[Math.min(A,e.length-1)];return t?r?t.open:t.close:""},cB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&En(A[0],"none")?[]:te(A).map(function(r){for(var t={color:255,offsetX:LA,offsetY:LA,blur:LA,spread:LA,inset:!1},n=0,a=0;a<r.length;a++){var s=r[a];En(s,"inset")?t.inset=!0:pe(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:n===2?t.blur=s:t.spread=s,n++):t.color=he.parse(e,s)}return t})}},gB={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var r=[0,1,2],t=[];return A.filter(uA).forEach(function(n){switch(n.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),r.forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),t}},uB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},BB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Ft(A)?A.number:0}},dB=(function(){function e(A,r){var t,n;this.animationDuration=X(A,oB,r.animationDuration),this.backgroundClip=X(A,Og,r.backgroundClip),this.backgroundColor=X(A,Rg,r.backgroundColor),this.backgroundImage=X(A,Yg,r.backgroundImage),this.backgroundOrigin=X(A,Zg,r.backgroundOrigin),this.backgroundPosition=X(A,zg,r.backgroundPosition),this.backgroundRepeat=X(A,qg,r.backgroundRepeat),this.backgroundSize=X(A,Au,r.backgroundSize),this.borderTopColor=X(A,tu,r.borderTopColor),this.borderRightColor=X(A,ru,r.borderRightColor),this.borderBottomColor=X(A,nu,r.borderBottomColor),this.borderLeftColor=X(A,au,r.borderLeftColor),this.borderTopLeftRadius=X(A,su,r.borderTopLeftRadius),this.borderTopRightRadius=X(A,iu,r.borderTopRightRadius),this.borderBottomRightRadius=X(A,ou,r.borderBottomRightRadius),this.borderBottomLeftRadius=X(A,lu,r.borderBottomLeftRadius),this.borderTopStyle=X(A,cu,r.borderTopStyle),this.borderRightStyle=X(A,gu,r.borderRightStyle),this.borderBottomStyle=X(A,uu,r.borderBottomStyle),this.borderLeftStyle=X(A,Bu,r.borderLeftStyle),this.borderTopWidth=X(A,du,r.borderTopWidth),this.borderRightWidth=X(A,fu,r.borderRightWidth),this.borderBottomWidth=X(A,hu,r.borderBottomWidth),this.borderLeftWidth=X(A,wu,r.borderLeftWidth),this.boxShadow=X(A,cB,r.boxShadow),this.color=X(A,pu,r.color),this.direction=X(A,Cu,r.direction),this.display=X(A,Qu,r.display),this.float=X(A,vu,r.cssFloat),this.fontFamily=X(A,AB,r.fontFamily),this.fontSize=X(A,eB,r.fontSize),this.fontStyle=X(A,nB,r.fontStyle),this.fontVariant=X(A,rB,r.fontVariant),this.fontWeight=X(A,tB,r.fontWeight),this.letterSpacing=X(A,Uu,r.letterSpacing),this.lineBreak=X(A,Fu,r.lineBreak),this.lineHeight=X(A,bu,r.lineHeight),this.listStyleImage=X(A,yu,r.listStyleImage),this.listStylePosition=X(A,Eu,r.listStylePosition),this.listStyleType=X(A,xn,r.listStyleType),this.marginTop=X(A,xu,r.marginTop),this.marginRight=X(A,Iu,r.marginRight),this.marginBottom=X(A,Hu,r.marginBottom),this.marginLeft=X(A,Su,r.marginLeft),this.opacity=X(A,zu,r.opacity);var a=X(A,Lu,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=X(A,ku,r.overflowWrap),this.paddingTop=X(A,Mu,r.paddingTop),this.paddingRight=X(A,Ku,r.paddingRight),this.paddingBottom=X(A,Tu,r.paddingBottom),this.paddingLeft=X(A,Du,r.paddingLeft),this.paintOrder=X(A,gB,r.paintOrder),this.position=X(A,Ru,r.position),this.textAlign=X(A,Ou,r.textAlign),this.textDecorationColor=X(A,qu,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=X(A,$u,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=X(A,Nu,r.textShadow),this.textTransform=X(A,_u,r.textTransform),this.transform=X(A,Gu,r.transform),this.transformOrigin=X(A,Ju,r.transformOrigin),this.visibility=X(A,Wu,r.visibility),this.webkitTextStrokeColor=X(A,uB,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=X(A,BB,r.webkitTextStrokeWidth),this.wordBreak=X(A,Yu,r.wordBreak),this.zIndex=X(A,Zu,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return we(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return EA(this.display,4)||EA(this.display,33554432)||EA(this.display,268435456)||EA(this.display,536870912)||EA(this.display,67108864)||EA(this.display,134217728)},e})(),fB=(function(){function e(A,r){this.content=X(A,aB,r.content),this.quotes=X(A,lB,r.quotes)}return e})(),Ia=(function(){function e(A,r){this.counterIncrement=X(A,sB,r.counterIncrement),this.counterReset=X(A,iB,r.counterReset)}return e})(),X=function(e,A,r){var t=new qs,n=r!==null&&typeof r<"u"?r.toString():A.initialValue;t.write(n);var a=new $s(t.read());switch(A.type){case 2:var s=a.parseComponentValue();return A.parse(e,uA(s)?s.value:A.initialValue);case 0:return A.parse(e,a.parseComponentValue());case 1:return A.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(A.format){case"angle":return Fr.parse(e,a.parseComponentValue());case"color":return he.parse(e,a.parseComponentValue());case"image":return Gn.parse(e,a.parseComponentValue());case"length":var o=a.parseComponentValue();return pe(o)?o:LA;case"length-percentage":var l=a.parseComponentValue();return yA(l)?l:LA;case"time":return wi.parse(e,a.parseComponentValue())}break}},hB="data-html2canvas-debug",wB=function(e){var A=e.getAttribute(hB);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},In=function(e,A){var r=wB(e);return r===1||A===r},re=(function(){function e(A,r){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,In(r,3))debugger;this.styles=new dB(A,window.getComputedStyle(r,null)),Ln(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=vr(this.context,r),In(r,4)&&(this.flags|=16)}return e})(),pB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAI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kFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAg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BlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIAN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gAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ha="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Pt=0;Pt<Ha.length;Pt++)rt[Ha.charCodeAt(Pt)]=Pt;var CB=function(e){var A=e.length*.75,r=e.length,t,n=0,a,s,o,l;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=rt[e.charCodeAt(t)],s=rt[e.charCodeAt(t+1)],o=rt[e.charCodeAt(t+2)],l=rt[e.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},QB=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},mB=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},Ie=5,jn=11,Vr=2,vB=jn-Ie,pi=65536>>Ie,UB=1<<Ie,Pr=UB-1,FB=1024>>Ie,bB=pi+FB,yB=bB,EB=32,xB=yB+EB,IB=65536>>jn,HB=1<<vB,SB=HB-1,Sa=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},LB=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},kB=function(e,A){var r=CB(e),t=Array.isArray(r)?mB(r):new Uint32Array(r),n=Array.isArray(r)?QB(r):new Uint16Array(r),a=24,s=Sa(n,a/2,t[4]/2),o=t[5]===2?Sa(n,(a+t[4])/2):LB(t,Math.ceil((a+t[4])/4));return new MB(t[0],t[1],t[2],t[3],s,o)},MB=(function(){function e(A,r,t,n,a,s){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>Ie],r=(r<<Vr)+(A&Pr),this.data[r];if(A<=65535)return r=this.index[pi+(A-55296>>Ie)],r=(r<<Vr)+(A&Pr),this.data[r];if(A<this.highStart)return r=xB-IB+(A>>jn),r=this.index[r],r+=A>>Ie&SB,r=this.index[r],r=(r<<Vr)+(A&Pr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),La="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",KB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Xt=0;Xt<La.length;Xt++)KB[La.charCodeAt(Xt)]=Xt;var TB=1,Xr=2,Jr=3,ka=4,Ma=5,DB=7,Ka=8,Wr=9,Yr=10,Ta=11,Da=12,Oa=13,Ra=14,Zr=15,OB=function(e){for(var A=[],r=0,t=e.length;r<t;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=e.charCodeAt(r++);(a&64512)===56320?A.push(((n&1023)<<10)+(a&1023)+65536):(A.push(n),r--)}else A.push(n)}return A},RB=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=e[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},NB=kB(pB),VA="×",zr="÷",_B=function(e){return NB.get(e)},GB=function(e,A,r){var t=r-2,n=A[t],a=A[r-1],s=A[r];if(a===Xr&&s===Jr)return VA;if(a===Xr||a===Jr||a===ka||s===Xr||s===Jr||s===ka)return zr;if(a===Ka&&[Ka,Wr,Ta,Da].indexOf(s)!==-1||(a===Ta||a===Wr)&&(s===Wr||s===Yr)||(a===Da||a===Yr)&&s===Yr||s===Oa||s===Ma||s===DB||a===TB)return VA;if(a===Oa&&s===Ra){for(;n===Ma;)n=A[--t];if(n===Ra)return VA}if(a===Zr&&s===Zr){for(var o=0;n===Zr;)o++,n=A[--t];if(o%2===0)return VA}return zr},jB=function(e){var A=OB(e),r=A.length,t=0,n=0,a=A.map(_B);return{next:function(){if(t>=r)return{done:!0,value:null};for(var s=VA;t<r&&(s=GB(A,a,++t))===VA;);if(s!==VA||t===r){var o=RB.apply(null,A.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},VB=function(e){for(var A=jB(e),r=[],t;!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r},PB=function(e){var A=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var t=e.createElement("boundtest");t.style.height=A+"px",t.style.display="block",e.body.appendChild(t),r.selectNode(t);var n=r.getBoundingClientRect(),a=Math.round(n.height);if(e.body.removeChild(t),a===A)return!0}}return!1},XB=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var r=e.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var t=A.firstChild,n=Ur(t.data).map(function(l){return bA(l)}),a=0,s={},o=n.every(function(l,c){r.setStart(t,a),r.setEnd(t,a+l.length);var g=r.getBoundingClientRect();a+=l.length;var B=g.x>s.x||g.y>s.y;return s=g,c===0?!0:B});return e.body.removeChild(A),o},JB=function(){return typeof new Image().crossOrigin<"u"},WB=function(){return typeof new XMLHttpRequest().responseType=="string"},YB=function(e){var A=new Image,r=e.createElement("canvas"),t=r.getContext("2d");if(!t)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(A,0,0),r.toDataURL()}catch{return!1}return!0},Na=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},ZB=function(e){var A=e.createElement("canvas"),r=100;A.width=r,A.height=r;var t=A.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,r,r);var n=new Image,a=A.toDataURL();n.src=a;var s=Hn(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),_a(s).then(function(o){t.drawImage(o,0,0);var l=t.getImageData(0,0,r,r).data;t.fillStyle="red",t.fillRect(0,0,r,r);var c=e.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=r+"px",Na(l)?_a(Hn(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Na(t.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Hn=function(e,A,r,t,n){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",A.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",t.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},_a=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){return A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},HA={get SUPPORT_RANGE_BOUNDS(){var e=PB(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=HA.SUPPORT_RANGE_BOUNDS&&XB(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=YB(document);return Object.defineProperty(HA,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?ZB(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=JB();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=WB();return Object.defineProperty(HA,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(HA,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(HA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},ct=(function(){function e(A,r){this.text=A,this.bounds=r}return e})(),zB=function(e,A,r,t){var n=Ad(A,r),a=[],s=0;return n.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){var l=Ga(t,s,o.length).getClientRects();if(l.length>1){var c=Vn(o),g=0;c.forEach(function(u){a.push(new ct(u,ie.fromDOMRectList(e,Ga(t,g+s,u.length).getClientRects()))),g+=u.length})}else a.push(new ct(o,ie.fromDOMRectList(e,l)))}else{var B=t.splitText(o.length);a.push(new ct(o,qB(e,t))),t=B}else HA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));s+=o.length}),a},qB=function(e,A){var r=A.ownerDocument;if(r){var t=r.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(t,A);var a=vr(e,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return ie.EMPTY},Ga=function(e,A,r){var t=e.ownerDocument;if(!t)throw new Error("Node has no owner document");var n=t.createRange();return n.setStart(e,A),n.setEnd(e,A+r),n},Vn=function(e){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(r){return r.segment})}return VB(e)},$B=function(e,A){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(t){return t.segment})}return td(e,A)},Ad=function(e,A){return A.letterSpacing!==0?Vn(e):$B(e,A)},ed=[32,160,4961,65792,65793,4153,4241],td=function(e,A){for(var r=Ic(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],n,a=function(){if(n.value){var s=n.value.slice(),o=Ur(s),l="";o.forEach(function(c){ed.indexOf(c)===-1?l+=bA(c):(l.length&&t.push(l),t.push(bA(c)),l="")}),l.length&&t.push(l)}};!(n=r.next()).done;)a();return t},rd=(function(){function e(A,r,t){this.text=nd(r.data,t.textTransform),this.textBounds=zB(A,this.text,t,r)}return e})(),nd=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(ad,sd);case 2:return e.toUpperCase();default:return e}},ad=/(^|\s|:|-|\(|\))([a-z])/g,sd=function(e,A,r){return e.length>0?A+r.toUpperCase():e},Ci=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return A})(re),Qi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return A})(re),mi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=new XMLSerializer,s=vr(r,t);return t.setAttribute("width",s.width+"px"),t.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A})(re),vi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A})(re),Sn=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.start=t.start,n.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,n}return A})(re),id=[{type:15,flags:0,unit:"px",number:3}],od=[{type:16,flags:0,number:50}],ld=function(e){return e.width>e.height?new ie(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new ie(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},cd=function(e){var A=e.type===gd?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},Br="checkbox",dr="radio",gd="password",ja=707406591,Pn=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=cd(t),(n.type===Br||n.type===dr)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=ld(n.bounds)),n.type){case Br:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=id;break;case dr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=od;break}return n}return A})(re),Ui=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=t.options[t.selectedIndex||0];return n.value=a&&a.text||"",n}return A})(re),Fi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A})(re),bi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=Ei(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?ot(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):se.TRANSPARENT,s=t.contentWindow.document.body?ot(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):se.TRANSPARENT;n.backgroundColor=we(a)?we(s)?n.styles.backgroundColor:s:a}}catch{}return n}return A})(re),ud=["OL","UL","MENU"],Ar=function(e,A,r,t){for(var n=A.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,xi(n)&&n.data.trim().length>0)r.textNodes.push(new rd(e,n,r.styles));else if(Re(n))if(Li(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return Ar(e,o,r,t)});else{var s=yi(e,n);s.styles.isVisible()&&(Bd(n,s,t)?s.flags|=4:dd(s.styles)&&(s.flags|=2),ud.indexOf(n.tagName)!==-1&&(s.flags|=8),r.elements.push(s),n.slot,n.shadowRoot?Ar(e,n.shadowRoot,s,t):!fr(n)&&!Ii(n)&&!hr(n)&&Ar(e,n,s,t))}},yi=function(e,A){return kn(A)?new Ci(e,A):Hi(A)?new Qi(e,A):Ii(A)?new mi(e,A):fd(A)?new vi(e,A):hd(A)?new Sn(e,A):wd(A)?new Pn(e,A):hr(A)?new Ui(e,A):fr(A)?new Fi(e,A):Si(A)?new bi(e,A):new re(e,A)},Ei=function(e,A){var r=yi(e,A);return r.flags|=4,Ar(e,A,r,r),r},Bd=function(e,A,r){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Xn(e)&&r.styles.isTransparent()},dd=function(e){return e.isPositioned()||e.isFloating()},xi=function(e){return e.nodeType===Node.TEXT_NODE},Re=function(e){return e.nodeType===Node.ELEMENT_NODE},Ln=function(e){return Re(e)&&typeof e.style<"u"&&!er(e)},er=function(e){return typeof e.className=="object"},fd=function(e){return e.tagName==="LI"},hd=function(e){return e.tagName==="OL"},wd=function(e){return e.tagName==="INPUT"},pd=function(e){return e.tagName==="HTML"},Ii=function(e){return e.tagName==="svg"},Xn=function(e){return e.tagName==="BODY"},Hi=function(e){return e.tagName==="CANVAS"},Va=function(e){return e.tagName==="VIDEO"},kn=function(e){return e.tagName==="IMG"},Si=function(e){return e.tagName==="IFRAME"},Pa=function(e){return e.tagName==="STYLE"},Cd=function(e){return e.tagName==="SCRIPT"},fr=function(e){return e.tagName==="TEXTAREA"},hr=function(e){return e.tagName==="SELECT"},Li=function(e){return e.tagName==="SLOT"},Xa=function(e){return e.tagName.indexOf("-")>0},Qd=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var r=this.counters[A];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(A){var r=this.counters[A];return r||[]},e.prototype.pop=function(A){var r=this;A.forEach(function(t){return r.counters[t].pop()})},e.prototype.parse=function(A){var r=this,t=A.counterIncrement,n=A.counterReset,a=!0;t!==null&&t.forEach(function(o){var l=r.counters[o.counter];l&&o.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=o.increment)});var s=[];return a&&n.forEach(function(o){var l=r.counters[o.counter];s.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),s},e})(),Ja={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"]},Wa={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},md={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},vd={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ke=function(e,A,r,t,n,a){return e<A||e>r?pt(e,n,a.length>0):t.integers.reduce(function(s,o,l){for(;e>=o;)e-=o,s+=t.values[l];return s},"")+a},ki=function(e,A,r,t){var n="";do r||e--,n=t(e)+n,e/=A;while(e*A>=A);return n},FA=function(e,A,r,t,n){var a=r-A+1;return(e<0?"-":"")+(ki(Math.abs(e),a,t,function(s){return bA(Math.floor(s%a)+A)})+n)},Qe=function(e,A,r){r===void 0&&(r=". ");var t=A.length;return ki(Math.abs(e),t,!1,function(n){return A[Math.floor(n%t)]})+r},Te=1,oe=2,le=4,nt=8,ae=function(e,A,r,t,n,a){if(e<-9999||e>9999)return pt(e,4,n.length>0);var s=Math.abs(e),o=n;if(s===0)return A[0]+o;for(var l=0;s>0&&l<=4;l++){var c=s%10;c===0&&EA(a,Te)&&o!==""?o=A[c]+o:c>1||c===1&&l===0||c===1&&l===1&&EA(a,oe)||c===1&&l===1&&EA(a,le)&&e>100||c===1&&l>1&&EA(a,nt)?o=A[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),s=Math.floor(s/10)}return(e<0?t:"")+o},Ya="十百千萬",Za="拾佰仟萬",za="マイナス",qr="마이너스",pt=function(e,A,r){var t=r?". ":"",n=r?"、":"",a=r?", ":"",s=r?" ":"";switch(A){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=FA(e,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return Qe(e,"〇一二三四五六七八九",n);case 6:return ke(e,1,3999,Ja,3,t).toLowerCase();case 7:return ke(e,1,3999,Ja,3,t);case 8:return FA(e,945,969,!1,t);case 9:return FA(e,97,122,!1,t);case 10:return FA(e,65,90,!1,t);case 11:return FA(e,1632,1641,!0,t);case 12:case 49:return ke(e,1,9999,Wa,3,t);case 35:return ke(e,1,9999,Wa,3,t).toLowerCase();case 13:return FA(e,2534,2543,!0,t);case 14:case 30:return FA(e,6112,6121,!0,t);case 15:return Qe(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Qe(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ae(e,"零一二三四五六七八九",Ya,"負",n,oe|le|nt);case 47:return ae(e,"零壹貳參肆伍陸柒捌玖",Za,"負",n,Te|oe|le|nt);case 42:return ae(e,"零一二三四五六七八九",Ya,"负",n,oe|le|nt);case 41:return ae(e,"零壹贰叁肆伍陆柒捌玖",Za,"负",n,Te|oe|le|nt);case 26:return ae(e,"〇一二三四五六七八九","十百千万",za,n,0);case 25:return ae(e,"零壱弐参四伍六七八九","拾百千万",za,n,Te|oe|le);case 31:return ae(e,"영일이삼사오육칠팔구","십백천만",qr,a,Te|oe|le);case 33:return ae(e,"零一二三四五六七八九","十百千萬",qr,a,0);case 32:return ae(e,"零壹貳參四五六七八九","拾百千",qr,a,Te|oe|le);case 18:return FA(e,2406,2415,!0,t);case 20:return ke(e,1,19999,vd,3,t);case 21:return FA(e,2790,2799,!0,t);case 22:return FA(e,2662,2671,!0,t);case 22:return ke(e,1,10999,md,3,t);case 23:return Qe(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Qe(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return FA(e,3302,3311,!0,t);case 28:return Qe(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Qe(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return FA(e,3792,3801,!0,t);case 37:return FA(e,6160,6169,!0,t);case 38:return FA(e,4160,4169,!0,t);case 39:return FA(e,2918,2927,!0,t);case 40:return FA(e,1776,1785,!0,t);case 43:return FA(e,3046,3055,!0,t);case 44:return FA(e,3174,3183,!0,t);case 45:return FA(e,3664,3673,!0,t);case 46:return FA(e,3872,3881,!0,t);default:return FA(e,48,57,!0,t)}},Mi="data-html2canvas-ignore",qa=(function(){function e(A,r,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new Qd,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,r){var t=this,n=Ud(A,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,o=n.contentWindow,l=o.document,c=yd(n).then(function(){return OA(t,void 0,void 0,function(){var g,B;return kA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(Hd),o&&(o.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==r.top||o.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-r.left,o.scrollY-r.top,0,0))),g=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,bd(l)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(l,B)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(xd(document.doctype)+"<html></html>"),Id(this.referenceElement.ownerDocument,a,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(A){if(In(A,2))debugger;if(Hi(A))return this.createCanvasClone(A);if(Va(A))return this.createVideoClone(A);if(Pa(A))return this.createStyleClone(A);var r=A.cloneNode(!1);return kn(r)&&(kn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(r.src=A.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Xa(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(A){var r=document.createElement("html2canvascustomelement");return $r(A.style,r),r},e.prototype.createStyleClone=function(A){try{var r=A.sheet;if(r&&r.cssRules){var t=[].slice.call(r.cssRules,0).reduce(function(a,s){return s&&typeof s.cssText=="string"?a+s.cssText:a},""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var r;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var a=A.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&a)s.putImageData(a.getImageData(0,0,A.width,A.height),0,0);else{var o=(r=A.getContext("webgl2"))!==null&&r!==void 0?r:A.getContext("webgl");if(o){var l=o.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},e.prototype.createVideoClone=function(A){var r=A.ownerDocument.createElement("canvas");r.width=A.offsetWidth,r.height=A.offsetHeight;var t=r.getContext("2d");try{return t&&(t.drawImage(A,0,0,r.width,r.height),this.options.allowTaint||t.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},e.prototype.appendChildNode=function(A,r,t){(!Re(r)||!Cd(r)&&!r.hasAttribute(Mi)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Re(r)||!Pa(r))&&A.appendChild(this.cloneNode(r,t))},e.prototype.cloneChildNodes=function(A,r,t){for(var n=this,a=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;a;a=a.nextSibling)if(Re(a)&&Li(a)&&typeof a.assignedNodes=="function"){var s=a.assignedNodes();s.length&&s.forEach(function(o){return n.appendChildNode(r,o,t)})}else this.appendChildNode(r,a,t)},e.prototype.cloneNode=function(A,r){if(xi(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Re(A)&&(Ln(A)||er(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var a=t.getComputedStyle(A),s=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&Ln(n)&&(this.clonedReferenceElement=n),Xn(n)&&kd(n);var l=this.counters.parse(new Ia(this.context,a)),c=this.resolvePseudoContent(A,n,s,gt.BEFORE);Xa(A)&&(r=!0),Va(A)||this.cloneChildNodes(A,n,r),c&&n.insertBefore(c,n.firstChild);var g=this.resolvePseudoContent(A,n,o,gt.AFTER);return g&&n.appendChild(g),this.counters.pop(l),(a&&(this.options.copyStyles||er(A))&&!Si(A)||r)&&$r(a,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(fr(A)||hr(A))&&(fr(n)||hr(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,r,t,n){var a=this;if(t){var s=t.content,o=r.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||t.display==="none")){this.counters.parse(new Ia(this.context,t));var l=new fB(this.context,t),c=o.createElement("html2canvaspseudoelement");$r(t,c),l.content.forEach(function(B){if(B.type===0)c.appendChild(o.createTextNode(B.value));else if(B.type===22){var u=o.createElement("img");u.src=B.value,u.style.opacity="1",c.appendChild(u)}else if(B.type===18){if(B.name==="attr"){var p=B.values.filter(uA);p.length&&c.appendChild(o.createTextNode(A.getAttribute(p[0].value)||""))}else if(B.name==="counter"){var Q=B.values.filter(je),C=Q[0],x=Q[1];if(C&&uA(C)){var U=a.counters.getCounterValue(C.value),y=x&&uA(x)?xn.parse(a.context,x.value):3;c.appendChild(o.createTextNode(pt(U,y,!1)))}}else if(B.name==="counters"){var L=B.values.filter(je),C=L[0],S=L[1],x=L[2];if(C&&uA(C)){var E=a.counters.getCounterValues(C.value),h=x&&uA(x)?xn.parse(a.context,x.value):3,I=S&&S.type===0?S.value:"",M=E.map(function(O){return pt(O,h,!1)}).join(I);c.appendChild(o.createTextNode(M))}}}else if(B.type===20)switch(B.value){case"open-quote":c.appendChild(o.createTextNode(xa(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(xa(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(B.value))}}),c.className=Mn+" "+Kn;var g=n===gt.BEFORE?" "+Mn:" "+Kn;return er(r)?r.className.baseValue+=g:r.className+=g,c}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e})(),gt;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(gt||(gt={}));var Ud=function(e,A){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=A.width.toString(),r.height=A.height.toString(),r.scrolling="no",r.setAttribute(Mi,"true"),e.body.appendChild(r),r},Fd=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},bd=function(e){return Promise.all([].slice.call(e.images,0).map(Fd))},yd=function(e){return new Promise(function(A,r){var t=e.contentWindow;if(!t)return r("No window assigned for iframe");var n=t.document;t.onload=e.onload=function(){t.onload=e.onload=null;var a=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(a),A(e))},50)}})},Ed=["all","d","content"],$r=function(e,A){for(var r=e.length-1;r>=0;r--){var t=e.item(r);Ed.indexOf(t)===-1&&A.style.setProperty(t,e.getPropertyValue(t))}return A},xd=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},Id=function(e,A,r){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,r)},Hd=function(e){var A=e[0],r=e[1],t=e[2];A.scrollLeft=r,A.scrollTop=t},Sd=":before",Ld=":after",Mn="___html2canvas___pseudoelement_before",Kn="___html2canvas___pseudoelement_after",$a=`{
- content: "" !important;
- display: none !important;
-}`,kd=function(e){Md(e,"."+Mn+Sd+$a+`
- .`+Kn+Ld+$a)},Md=function(e,A){var r=e.ownerDocument;if(r){var t=r.createElement("style");t.textContent=A,e.appendChild(t)}},Ki=(function(){function e(){}return e.getOrigin=function(A){var r=e._link;return r?(r.href=A,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e})(),Kd=(function(){function e(A,r){this.context=A,this._options=r,this._cache={}}return e.prototype.addImage=function(A){var r=Promise.resolve();return this.has(A)||(en(A)||Rd(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),r},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return OA(this,void 0,void 0,function(){var r,t,n,a,s=this;return kA(this,function(o){switch(o.label){case 0:return r=Ki.isSameOrigin(A),t=!An(A)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!r,n=!An(A)&&!r&&!en(A)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!An(A)&&!en(A)&&!n&&!t?[2]:(a=A,n?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(l,c){var g=new Image;g.onload=function(){return l(g)},g.onerror=c,(Nd(a)||t)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(function(){return l(g)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(a,s){var o=HA.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")a(l.response);else{var B=new FileReader;B.addEventListener("load",function(){return a(B.result)},!1),B.addEventListener("error",function(u){return s(u)},!1),B.readAsDataURL(l.response)}else s("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=s;var c=t.indexOf("?")>-1?"&":"?";if(l.open("GET",""+t+c+"url="+encodeURIComponent(A)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),r._options.imageTimeout){var g=r._options.imageTimeout;l.timeout=g,l.ontimeout=function(){return s("Timed out ("+g+"ms) proxying "+n)}}l.send()})},e})(),Td=/^data:image\/svg\+xml/i,Dd=/^data:image\/.*;base64,/i,Od=/^data:image\/.*/i,Rd=function(e){return HA.SUPPORT_SVG_DRAWING||!_d(e)},An=function(e){return Od.test(e)},Nd=function(e){return Dd.test(e)},en=function(e){return e.substr(0,4)==="blob"},_d=function(e){return e.substr(-3).toLowerCase()==="svg"||Td.test(e)},V=(function(){function e(A,r){this.type=0,this.x=A,this.y=r}return e.prototype.add=function(A,r){return new e(this.x+A,this.y+r)},e})(),Me=function(e,A,r){return new V(e.x+(A.x-e.x)*r,e.y+(A.y-e.y)*r)},Jt=(function(){function e(A,r,t,n){this.type=1,this.start=A,this.startControl=r,this.endControl=t,this.end=n}return e.prototype.subdivide=function(A,r){var t=Me(this.start,this.startControl,A),n=Me(this.startControl,this.endControl,A),a=Me(this.endControl,this.end,A),s=Me(t,n,A),o=Me(n,a,A),l=Me(s,o,A);return r?new e(this.start,t,s,l):new e(l,o,a,this.end)},e.prototype.add=function(A,r){return new e(this.start.add(A,r),this.startControl.add(A,r),this.endControl.add(A,r),this.end.add(A,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),PA=function(e){return e.type===1},Gd=(function(){function e(A){var r=A.styles,t=A.bounds,n=tt(r.borderTopLeftRadius,t.width,t.height),a=n[0],s=n[1],o=tt(r.borderTopRightRadius,t.width,t.height),l=o[0],c=o[1],g=tt(r.borderBottomRightRadius,t.width,t.height),B=g[0],u=g[1],p=tt(r.borderBottomLeftRadius,t.width,t.height),Q=p[0],C=p[1],x=[];x.push((a+l)/t.width),x.push((Q+B)/t.width),x.push((s+C)/t.height),x.push((c+u)/t.height);var U=Math.max.apply(Math,x);U>1&&(a/=U,s/=U,l/=U,c/=U,B/=U,u/=U,Q/=U,C/=U);var y=t.width-l,L=t.height-u,S=t.width-B,E=t.height-C,h=r.borderTopWidth,I=r.borderRightWidth,M=r.borderBottomWidth,k=r.borderLeftWidth,R=wA(r.paddingTop,A.bounds.width),O=wA(r.paddingRight,A.bounds.width),Z=wA(r.paddingBottom,A.bounds.width),D=wA(r.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||s>0?QA(t.left+k/3,t.top+h/3,a-k/3,s-h/3,gA.TOP_LEFT):new V(t.left+k/3,t.top+h/3),this.topRightBorderDoubleOuterBox=a>0||s>0?QA(t.left+y,t.top+h/3,l-I/3,c-h/3,gA.TOP_RIGHT):new V(t.left+t.width-I/3,t.top+h/3),this.bottomRightBorderDoubleOuterBox=B>0||u>0?QA(t.left+S,t.top+L,B-I/3,u-M/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-I/3,t.top+t.height-M/3),this.bottomLeftBorderDoubleOuterBox=Q>0||C>0?QA(t.left+k/3,t.top+E,Q-k/3,C-M/3,gA.BOTTOM_LEFT):new V(t.left+k/3,t.top+t.height-M/3),this.topLeftBorderDoubleInnerBox=a>0||s>0?QA(t.left+k*2/3,t.top+h*2/3,a-k*2/3,s-h*2/3,gA.TOP_LEFT):new V(t.left+k*2/3,t.top+h*2/3),this.topRightBorderDoubleInnerBox=a>0||s>0?QA(t.left+y,t.top+h*2/3,l-I*2/3,c-h*2/3,gA.TOP_RIGHT):new V(t.left+t.width-I*2/3,t.top+h*2/3),this.bottomRightBorderDoubleInnerBox=B>0||u>0?QA(t.left+S,t.top+L,B-I*2/3,u-M*2/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-I*2/3,t.top+t.height-M*2/3),this.bottomLeftBorderDoubleInnerBox=Q>0||C>0?QA(t.left+k*2/3,t.top+E,Q-k*2/3,C-M*2/3,gA.BOTTOM_LEFT):new V(t.left+k*2/3,t.top+t.height-M*2/3),this.topLeftBorderStroke=a>0||s>0?QA(t.left+k/2,t.top+h/2,a-k/2,s-h/2,gA.TOP_LEFT):new V(t.left+k/2,t.top+h/2),this.topRightBorderStroke=a>0||s>0?QA(t.left+y,t.top+h/2,l-I/2,c-h/2,gA.TOP_RIGHT):new V(t.left+t.width-I/2,t.top+h/2),this.bottomRightBorderStroke=B>0||u>0?QA(t.left+S,t.top+L,B-I/2,u-M/2,gA.BOTTOM_RIGHT):new V(t.left+t.width-I/2,t.top+t.height-M/2),this.bottomLeftBorderStroke=Q>0||C>0?QA(t.left+k/2,t.top+E,Q-k/2,C-M/2,gA.BOTTOM_LEFT):new V(t.left+k/2,t.top+t.height-M/2),this.topLeftBorderBox=a>0||s>0?QA(t.left,t.top,a,s,gA.TOP_LEFT):new V(t.left,t.top),this.topRightBorderBox=l>0||c>0?QA(t.left+y,t.top,l,c,gA.TOP_RIGHT):new V(t.left+t.width,t.top),this.bottomRightBorderBox=B>0||u>0?QA(t.left+S,t.top+L,B,u,gA.BOTTOM_RIGHT):new V(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=Q>0||C>0?QA(t.left,t.top+E,Q,C,gA.BOTTOM_LEFT):new V(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||s>0?QA(t.left+k,t.top+h,Math.max(0,a-k),Math.max(0,s-h),gA.TOP_LEFT):new V(t.left+k,t.top+h),this.topRightPaddingBox=l>0||c>0?QA(t.left+Math.min(y,t.width-I),t.top+h,y>t.width+I?0:Math.max(0,l-I),Math.max(0,c-h),gA.TOP_RIGHT):new V(t.left+t.width-I,t.top+h),this.bottomRightPaddingBox=B>0||u>0?QA(t.left+Math.min(S,t.width-k),t.top+Math.min(L,t.height-M),Math.max(0,B-I),Math.max(0,u-M),gA.BOTTOM_RIGHT):new V(t.left+t.width-I,t.top+t.height-M),this.bottomLeftPaddingBox=Q>0||C>0?QA(t.left+k,t.top+Math.min(E,t.height-M),Math.max(0,Q-k),Math.max(0,C-M),gA.BOTTOM_LEFT):new V(t.left+k,t.top+t.height-M),this.topLeftContentBox=a>0||s>0?QA(t.left+k+D,t.top+h+R,Math.max(0,a-(k+D)),Math.max(0,s-(h+R)),gA.TOP_LEFT):new V(t.left+k+D,t.top+h+R),this.topRightContentBox=l>0||c>0?QA(t.left+Math.min(y,t.width+k+D),t.top+h+R,y>t.width+k+D?0:l-k+D,c-(h+R),gA.TOP_RIGHT):new V(t.left+t.width-(I+O),t.top+h+R),this.bottomRightContentBox=B>0||u>0?QA(t.left+Math.min(S,t.width-(k+D)),t.top+Math.min(L,t.height+h+R),Math.max(0,B-(I+O)),u-(M+Z),gA.BOTTOM_RIGHT):new V(t.left+t.width-(I+O),t.top+t.height-(M+Z)),this.bottomLeftContentBox=Q>0||C>0?QA(t.left+k+D,t.top+E,Math.max(0,Q-(k+D)),C-(M+Z),gA.BOTTOM_LEFT):new V(t.left+k+D,t.top+t.height-(M+Z))}return e})(),gA;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gA||(gA={}));var QA=function(e,A,r,t,n){var a=4*((Math.sqrt(2)-1)/3),s=r*a,o=t*a,l=e+r,c=A+t;switch(n){case gA.TOP_LEFT:return new Jt(new V(e,c),new V(e,c-o),new V(l-s,A),new V(l,A));case gA.TOP_RIGHT:return new Jt(new V(e,A),new V(e+s,A),new V(l,c-o),new V(l,c));case gA.BOTTOM_RIGHT:return new Jt(new V(l,A),new V(l,A+o),new V(e+s,c),new V(e,c));case gA.BOTTOM_LEFT:default:return new Jt(new V(l,c),new V(l-s,c),new V(e,A+o),new V(e,A))}},wr=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},jd=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},pr=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Vd=(function(){function e(A,r,t){this.offsetX=A,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return e})(),Wt=(function(){function e(A,r){this.path=A,this.target=r,this.type=1}return e})(),Pd=(function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e})(),Xd=function(e){return e.type===0},Ti=function(e){return e.type===1},Jd=function(e){return e.type===2},As=function(e,A){return e.length===A.length?e.some(function(r,t){return r===A[t]}):!1},Wd=function(e,A,r,t,n){return e.map(function(a,s){switch(s){case 0:return a.add(A,r);case 1:return a.add(A+t,r);case 2:return a.add(A+t,r+n);case 3:return a.add(A,r+n)}return a})},Di=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),Oi=(function(){function e(A,r){if(this.container=A,this.parent=r,this.effects=[],this.curves=new Gd(this.container),this.container.styles.opacity<1&&this.effects.push(new Pd(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new Vd(t,n,a))}if(this.container.styles.overflowX!==0){var s=wr(this.curves),o=pr(this.curves);As(s,o)?this.effects.push(new Wt(s,6)):(this.effects.push(new Wt(s,2)),this.effects.push(new Wt(o,4)))}}return e.prototype.getEffects=function(A){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,n=this.effects.slice(0);t;){var a=t.effects.filter(function(l){return!Ti(l)});if(r||t.container.styles.position!==0||!t.parent){if(n.unshift.apply(n,a),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var s=wr(t.curves),o=pr(t.curves);As(s,o)||n.unshift(new Wt(o,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(l){return EA(l.target,A)})},e})(),Tn=function(e,A,r,t){e.container.elements.forEach(function(n){var a=EA(n.flags,4),s=EA(n.flags,2),o=new Oi(n,e);EA(n.styles.display,2048)&&t.push(o);var l=EA(n.flags,8)?[]:t;if(a||s){var c=a||n.styles.isPositioned()?r:A,g=new Di(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var B=n.styles.zIndex.order;if(B<0){var u=0;c.negativeZIndex.some(function(Q,C){return B>Q.element.container.styles.zIndex.order?(u=C,!1):u>0}),c.negativeZIndex.splice(u,0,g)}else if(B>0){var p=0;c.positiveZIndex.some(function(Q,C){return B>=Q.element.container.styles.zIndex.order?(p=C+1,!1):p>0}),c.positiveZIndex.splice(p,0,g)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else n.styles.isFloating()?c.nonPositionedFloats.push(g):c.nonPositionedInlineLevel.push(g);Tn(o,g,a?g:r,l)}else n.styles.isInlineLevel()?A.inlineLevel.push(o):A.nonInlineLevel.push(o),Tn(o,A,r,l);EA(n.flags,8)&&Ri(n,l)})},Ri=function(e,A){for(var r=e instanceof Sn?e.start:1,t=e instanceof Sn?e.reversed:!1,n=0;n<A.length;n++){var a=A[n];a.container instanceof vi&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=pt(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},Yd=function(e){var A=new Oi(e,null),r=new Di(A),t=[];return Tn(A,r,r,t),Ri(A.container,t),r},es=function(e,A){switch(A){case 0:return JA(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return JA(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return JA(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return JA(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Zd=function(e,A){switch(A){case 0:return JA(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return JA(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return JA(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return JA(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},zd=function(e,A){switch(A){case 0:return JA(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return JA(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return JA(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return JA(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},qd=function(e,A){switch(A){case 0:return Yt(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Yt(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Yt(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Yt(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Yt=function(e,A){var r=[];return PA(e)?r.push(e.subdivide(.5,!1)):r.push(e),PA(A)?r.push(A.subdivide(.5,!0)):r.push(A),r},JA=function(e,A,r,t){var n=[];return PA(e)?n.push(e.subdivide(.5,!1)):n.push(e),PA(r)?n.push(r.subdivide(.5,!0)):n.push(r),PA(t)?n.push(t.subdivide(.5,!0).reverse()):n.push(t),PA(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},Ni=function(e){var A=e.bounds,r=e.styles;return A.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Cr=function(e){var A=e.styles,r=e.bounds,t=wA(A.paddingLeft,r.width),n=wA(A.paddingRight,r.width),a=wA(A.paddingTop,r.width),s=wA(A.paddingBottom,r.width);return r.add(t+A.borderLeftWidth,a+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+t+n),-(A.borderTopWidth+A.borderBottomWidth+a+s))},$d=function(e,A){return e===0?A.bounds:e===2?Cr(A):Ni(A)},Af=function(e,A){return e===0?A.bounds:e===2?Cr(A):Ni(A)},tn=function(e,A,r){var t=$d(De(e.styles.backgroundOrigin,A),e),n=Af(De(e.styles.backgroundClip,A),e),a=ef(De(e.styles.backgroundSize,A),r,t),s=a[0],o=a[1],l=tt(De(e.styles.backgroundPosition,A),t.width-s,t.height-o),c=tf(De(e.styles.backgroundRepeat,A),l,a,t,n),g=Math.round(t.left+l[0]),B=Math.round(t.top+l[1]);return[c,g,B,s,o]},Ke=function(e){return uA(e)&&e.value===Ne.AUTO},Zt=function(e){return typeof e=="number"},ef=function(e,A,r){var t=A[0],n=A[1],a=A[2],s=e[0],o=e[1];if(!s)return[0,0];if(yA(s)&&o&&yA(o))return[wA(s,r.width),wA(o,r.height)];var l=Zt(a);if(uA(s)&&(s.value===Ne.CONTAIN||s.value===Ne.COVER)){if(Zt(a)){var c=r.width/r.height;return c<a!=(s.value===Ne.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var g=Zt(t),B=Zt(n),u=g||B;if(Ke(s)&&(!o||Ke(o))){if(g&&B)return[t,n];if(!l&&!u)return[r.width,r.height];if(u&&l){var p=g?t:n*a,Q=B?n:t/a;return[p,Q]}var C=g?t:r.width,x=B?n:r.height;return[C,x]}if(l){var U=0,y=0;return yA(s)?U=wA(s,r.width):yA(o)&&(y=wA(o,r.height)),Ke(s)?U=y*a:(!o||Ke(o))&&(y=U/a),[U,y]}var L=null,S=null;if(yA(s)?L=wA(s,r.width):o&&yA(o)&&(S=wA(o,r.height)),L!==null&&(!o||Ke(o))&&(S=g&&B?L/t*n:r.height),S!==null&&Ke(s)&&(L=g&&B?S/n*t:r.width),L!==null&&S!==null)return[L,S];throw new Error("Unable to calculate background-size for element")},De=function(e,A){var r=e[A];return typeof r>"u"?e[0]:r},tf=function(e,A,r,t,n){var a=A[0],s=A[1],o=r[0],l=r[1];switch(e){case 2:return[new V(Math.round(t.left),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(l+t.top+s)),new V(Math.round(t.left),Math.round(l+t.top+s))];case 3:return[new V(Math.round(t.left+a),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.height+t.top)),new V(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new V(Math.round(t.left+a),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s+l)),new V(Math.round(t.left+a),Math.round(t.top+s+l))];default:return[new V(Math.round(n.left),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.height+n.top)),new V(Math.round(n.left),Math.round(n.height+n.top))]}},rf="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ts="Hidden Text",nf=(function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,r){var t=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),s=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",s.appendChild(t),n.src=rf,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=A,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(ts)),t.appendChild(a),t.appendChild(n);var o=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode(ts)),t.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-t.offsetTop+2;return s.removeChild(t),{baseline:o,middle:l}},e.prototype.getMetrics=function(A,r){var t=A+" "+r;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(A,r)),this._data[t]},e})(),_i=(function(){function e(A,r){this.context=A,this.options=r}return e})(),af=1e4,sf=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new nf(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return A.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(n){return t.applyEffect(n)})},A.prototype.applyEffect=function(r){this.ctx.save(),Jd(r)&&(this.ctx.globalAlpha=r.opacity),Xd(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),Ti(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(r){return OA(this,void 0,void 0,function(){return kA(this,function(t){switch(t.label){case 0:if(EA(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(r,t,n){var a=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+n);else{var s=Vn(r.text);s.reduce(function(o,l){return a.ctx.fillText(l,o,r.bounds.top+n),o+a.ctx.measureText(l).width},r.bounds.left)}},A.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=uf(r.fontFamily).join(", "),a=Ft(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,t,r.fontWeight,a,n].join(" "),n,a]},A.prototype.renderTextNode=function(r,t){return OA(this,void 0,void 0,function(){var n,a,s,o,l,c,g,B,u=this;return kA(this,function(p){return n=this.createFontStyle(t),a=n[0],s=n[1],o=n[2],this.ctx.font=a,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,g=l.middle,B=t.paintOrder,r.textBounds.forEach(function(Q){B.forEach(function(C){switch(C){case 0:u.ctx.fillStyle=xA(t.color),u.renderTextWithLetterSpacing(Q,t.letterSpacing,c);var x=t.textShadow;x.length&&Q.text.trim().length&&(x.slice(0).reverse().forEach(function(U){u.ctx.shadowColor=xA(U.color),u.ctx.shadowOffsetX=U.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=U.offsetY.number*u.options.scale,u.ctx.shadowBlur=U.blur.number,u.renderTextWithLetterSpacing(Q,t.letterSpacing,c)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=xA(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(U){switch(U){case 1:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top+c),Q.bounds.width,1);break;case 2:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top),Q.bounds.width,1);break;case 3:u.ctx.fillRect(Q.bounds.left,Math.ceil(Q.bounds.top+g),Q.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&Q.text.trim().length&&(u.ctx.strokeStyle=xA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(Q.text,Q.bounds.left,Q.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(r,t,n){if(n&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=Cr(r),s=pr(t);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,y,y,c,g,B,u,S,p,Q,E,C,x,U,y,L,S,E;return kA(this,function(h){switch(h.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,s=0,o=t.textNodes,h.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof Ci))return[3,8];h.label=5;case 5:return h.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,8];case 7:return h.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Qi&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof mi))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,12];case 11:return h.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof bi&&t.tree?(c=new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,c.render(t.tree)]):[3,14];case 13:g=h.sent(),t.width&&t.height&&this.ctx.drawImage(g,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),h.label=14;case 14:if(t instanceof Pn&&(B=Math.min(t.bounds.width,t.bounds.height),t.type===Br?t.checked&&(this.ctx.save(),this.path([new V(t.bounds.left+B*.39363,t.bounds.top+B*.79),new V(t.bounds.left+B*.16,t.bounds.top+B*.5549),new V(t.bounds.left+B*.27347,t.bounds.top+B*.44071),new V(t.bounds.left+B*.39694,t.bounds.top+B*.5649),new V(t.bounds.left+B*.72983,t.bounds.top+B*.23),new V(t.bounds.left+B*.84,t.bounds.top+B*.34085),new V(t.bounds.left+B*.39363,t.bounds.top+B*.79)]),this.ctx.fillStyle=xA(ja),this.ctx.fill(),this.ctx.restore()):t.type===dr&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+B/2,t.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=xA(ja),this.ctx.fill(),this.ctx.restore())),of(t)&&t.value.length){switch(u=this.createFontStyle(a),S=u[0],p=u[1],Q=this.fontMetrics.getMetrics(S,p).baseline,this.ctx.font=S,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=cf(t.styles.textAlign),E=Cr(t),C=0,t.styles.textAlign){case 1:C+=E.width/2;break;case 2:C+=E.width;break}x=E.add(C,0,0,-E.height/2+1),this.ctx.save(),this.path([new V(E.left,E.top),new V(E.left+E.width,E.top),new V(E.left+E.width,E.top+E.height),new V(E.left,E.top+E.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ct(t.value,x),a.letterSpacing,Q),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!EA(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(U=t.styles.listStyleImage,U.type!==0)return[3,18];y=void 0,L=U.url,h.label=15;case 15:return h.trys.push([15,17,,18]),[4,this.context.cache.match(L)];case 16:return y=h.sent(),this.ctx.drawImage(y,t.bounds.left-(y.width+10),t.bounds.top),[3,18];case 17:return h.sent(),this.context.logger.error("Error loading list-style-image "+L),[3,18];case 18:return[3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(S=this.createFontStyle(a)[0],this.ctx.font=S,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",E=new ie(t.bounds.left,t.bounds.top+wA(t.styles.paddingTop,t.bounds.width),t.bounds.width,ya(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ct(r.listValue,E),a.letterSpacing,ya(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),h.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(r){return OA(this,void 0,void 0,function(){var t,n,U,a,s,U,o,l,U,c,g,U,B,u,U,p,Q,U,C,x,U;return kA(this,function(y){switch(y.label){case 0:if(EA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:y.sent(),t=0,n=r.negativeZIndex,y.label=2;case 2:return t<n.length?(U=n[t],[4,this.renderStack(U)]):[3,5];case 3:y.sent(),y.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:y.sent(),a=0,s=r.nonInlineLevel,y.label=7;case 7:return a<s.length?(U=s[a],[4,this.renderNode(U)]):[3,10];case 8:y.sent(),y.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,y.label=11;case 11:return o<l.length?(U=l[o],[4,this.renderStack(U)]):[3,14];case 12:y.sent(),y.label=13;case 13:return o++,[3,11];case 14:c=0,g=r.nonPositionedInlineLevel,y.label=15;case 15:return c<g.length?(U=g[c],[4,this.renderStack(U)]):[3,18];case 16:y.sent(),y.label=17;case 17:return c++,[3,15];case 18:B=0,u=r.inlineLevel,y.label=19;case 19:return B<u.length?(U=u[B],[4,this.renderNode(U)]):[3,22];case 20:y.sent(),y.label=21;case 21:return B++,[3,19];case 22:p=0,Q=r.zeroOrAutoZIndexOrTransformedOrOpacity,y.label=23;case 23:return p<Q.length?(U=Q[p],[4,this.renderStack(U)]):[3,26];case 24:y.sent(),y.label=25;case 25:return p++,[3,23];case 26:C=0,x=r.positiveZIndex,y.label=27;case 27:return C<x.length?(U=x[C],[4,this.renderStack(U)]):[3,30];case 28:y.sent(),y.label=29;case 29:return C++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},A.prototype.formatPath=function(r){var t=this;r.forEach(function(n,a){var s=PA(n)?n.start:n;a===0?t.ctx.moveTo(s.x,s.y):t.ctx.lineTo(s.x,s.y),PA(n)&&t.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(r,t,n,a){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},A.prototype.resizeImage=function(r,t,n){var a;if(r.width===t&&r.height===n)return r;var s=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=s.createElement("canvas");o.width=Math.max(1,t),o.height=Math.max(1,n);var l=o.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,t,n),o},A.prototype.renderBackgroundImage=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l;return kA(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,n=function(g){var B,u,p,R,tA,AA,D,z,M,Q,R,tA,AA,D,z,C,x,U,y,L,S,E,h,I,M,k,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,H,j,_;return kA(this,function(F){switch(F.label){case 0:if(g.type!==0)return[3,5];B=void 0,u=g.url,F.label=1;case 1:return F.trys.push([1,3,,4]),[4,a.context.cache.match(u)];case 2:return B=F.sent(),[3,4];case 3:return F.sent(),a.context.logger.error("Error loading background-image "+u),[3,4];case 4:return B&&(p=tn(r,t,[B.width,B.height,B.width/B.height]),R=p[0],tA=p[1],AA=p[2],D=p[3],z=p[4],M=a.ctx.createPattern(a.resizeImage(B,D,z),"repeat"),a.renderRepeat(R,M,tA,AA)),[3,6];case 5:Xg(g)?(Q=tn(r,t,[null,null,null]),R=Q[0],tA=Q[1],AA=Q[2],D=Q[3],z=Q[4],C=_g(g.angle,D,z),x=C[0],U=C[1],y=C[2],L=C[3],S=C[4],E=document.createElement("canvas"),E.width=D,E.height=z,h=E.getContext("2d"),I=h.createLinearGradient(U,L,y,S),Fa(g.stops,x).forEach(function(N){return I.addColorStop(N.stop,xA(N.color))}),h.fillStyle=I,h.fillRect(0,0,D,z),D>0&&z>0&&(M=a.ctx.createPattern(E,"repeat"),a.renderRepeat(R,M,tA,AA))):Jg(g)&&(k=tn(r,t,[null,null,null]),R=k[0],O=k[1],Z=k[2],D=k[3],z=k[4],eA=g.position.length===0?[_n]:g.position,tA=wA(eA[0],D),AA=wA(eA[eA.length-1],z),dA=Gg(g,tA,AA,D,z),aA=dA[0],q=dA[1],aA>0&&q>0&&(lA=a.ctx.createRadialGradient(O+tA,Z+AA,0,O+tA,Z+AA,aA),Fa(g.stops,aA*2).forEach(function(N){return lA.addColorStop(N.stop,xA(N.color))}),a.path(R),a.ctx.fillStyle=lA,aA!==q?(sA=r.bounds.left+.5*r.bounds.width,H=r.bounds.top+.5*r.bounds.height,j=q/aA,_=1/j,a.ctx.save(),a.ctx.translate(sA,H),a.ctx.transform(1,0,0,j,0,0),a.ctx.translate(-sA,-H),a.ctx.fillRect(O,_*(Z-H)+H,D,z*_),a.ctx.restore()):a.ctx.fill())),F.label=6;case 6:return t--,[2]}})},a=this,s=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(r,t,n){return OA(this,void 0,void 0,function(){return kA(this,function(a){return this.path(es(n,t)),this.ctx.fillStyle=xA(r),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(r,t,n,a){return OA(this,void 0,void 0,function(){var s,o;return kA(this,function(l){switch(l.label){case 0:return t<3?[4,this.renderSolidBorder(r,n,a)]:[3,2];case 1:return l.sent(),[2];case 2:return s=Zd(a,n),this.path(s),this.ctx.fillStyle=xA(r),this.ctx.fill(),o=zd(a,n),this.path(o),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,c,g,B=this;return kA(this,function(u){switch(u.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,n=!we(t.backgroundColor)||t.backgroundImage.length,a=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],s=lf(De(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),we(t.backgroundColor)||(this.ctx.fillStyle=xA(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(p){B.ctx.save();var Q=wr(r.curves),C=p.inset?0:af,x=Wd(Q,-C+(p.inset?1:-1)*p.spread.number,(p.inset?1:-1)*p.spread.number,p.spread.number*(p.inset?-2:2),p.spread.number*(p.inset?-2:2));p.inset?(B.path(Q),B.ctx.clip(),B.mask(x)):(B.mask(Q),B.ctx.clip(),B.path(x)),B.ctx.shadowOffsetX=p.offsetX.number+C,B.ctx.shadowOffsetY=p.offsetY.number,B.ctx.shadowColor=xA(p.color),B.ctx.shadowBlur=p.blur.number,B.ctx.fillStyle=p.inset?xA(p.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),u.label=2;case 2:o=0,l=0,c=a,u.label=3;case 3:return l<c.length?(g=c[l],g.style!==0&&!we(g.color)&&g.width>0?g.style!==2?[3,5]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return g.style!==3?[3,7]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,3)];case 6:return u.sent(),[3,11];case 7:return g.style!==4?[3,9]:[4,this.renderDoubleBorder(g.color,g.width,o,r.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(g.color,o,r.curves)];case 10:u.sent(),u.label=11;case 11:o++,u.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(r,t,n,a,s){return OA(this,void 0,void 0,function(){var o,l,c,g,B,u,p,Q,C,x,U,y,L,S,E,h,E,h;return kA(this,function(I){return this.ctx.save(),o=qd(a,n),l=es(a,n),s===2&&(this.path(l),this.ctx.clip()),PA(l[0])?(c=l[0].start.x,g=l[0].start.y):(c=l[0].x,g=l[0].y),PA(l[1])?(B=l[1].end.x,u=l[1].end.y):(B=l[1].x,u=l[1].y),n===0||n===2?p=Math.abs(c-B):p=Math.abs(g-u),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),Q=t<3?t*3:t*2,C=t<3?t*2:t,s===3&&(Q=t,C=t),x=!0,p<=Q*2?x=!1:p<=Q*2+C?(U=p/(2*Q+C),Q*=U,C*=U):(y=Math.floor((p+C)/(Q+C)),L=(p-y*Q)/(y-1),S=(p-(y+1)*Q)/y,C=S<=0||Math.abs(C-L)<Math.abs(C-S)?L:S),x&&(s===3?this.ctx.setLineDash([0,Q+C]):this.ctx.setLineDash([Q,C])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=xA(r),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(PA(l[0])&&(E=l[3],h=l[0],this.ctx.beginPath(),this.formatPath([new V(E.end.x,E.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke()),PA(l[1])&&(E=l[1],h=l[2],this.ctx.beginPath(),this.formatPath([new V(E.end.x,E.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Yd(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(_i),of=function(e){return e instanceof Fi||e instanceof Ui?!0:e instanceof Pn&&e.type!==dr&&e.type!==Br},lf=function(e,A){switch(e){case 0:return wr(A);case 2:return jd(A);default:return pr(A)}},cf=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},gf=["-apple-system","system-ui"],uf=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return gf.indexOf(A)===-1}):e},Bf=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),n}return A.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t,n;return kA(this,function(a){switch(a.label){case 0:return t=Hn(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,df(t)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A})(_i),df=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},ff=(function(){function e(A){var r=A.id,t=A.enabled;this.id=r,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,xt([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,xt([this.id,this.getTime()+"ms"],A))},e.prototype.warn=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,xt([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.error=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,xt([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e})(),hf=(function(){function e(A,r){var t;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new ff({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new Kd(this,A)}return e.instanceCount=1,e})(),wf=function(e,A){return A===void 0&&(A={}),pf(e,A)};typeof window<"u"&&Ki.setContext(window);var pf=function(e,A){return OA(void 0,void 0,void 0,function(){var r,t,n,a,s,o,l,c,g,B,u,p,Q,C,x,U,y,L,S,E,I,h,I,M,k,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,H,j;return kA(this,function(_){switch(_.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return n={allowTaint:(M=A.allowTaint)!==null&&M!==void 0?M:!1,imageTimeout:(k=A.imageTimeout)!==null&&k!==void 0?k:15e3,proxy:A.proxy,useCORS:(R=A.useCORS)!==null&&R!==void 0?R:!1},a=fn({logging:(O=A.logging)!==null&&O!==void 0?O:!0,cache:A.cache},n),s={windowWidth:(Z=A.windowWidth)!==null&&Z!==void 0?Z:t.innerWidth,windowHeight:(D=A.windowHeight)!==null&&D!==void 0?D:t.innerHeight,scrollX:(z=A.scrollX)!==null&&z!==void 0?z:t.pageXOffset,scrollY:(eA=A.scrollY)!==null&&eA!==void 0?eA:t.pageYOffset},o=new ie(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new hf(a,o),c=(tA=A.foreignObjectRendering)!==null&&tA!==void 0?tA:!1,g={allowTaint:(AA=A.allowTaint)!==null&&AA!==void 0?AA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),B=new qa(l,e,g),u=B.clonedReferenceElement,u?[4,B.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=_.sent(),Q=Xn(u)||pd(u)?Wl(u.ownerDocument):vr(l,u),C=Q.width,x=Q.height,U=Q.left,y=Q.top,L=Cf(l,u,A.backgroundColor),S={canvas:A.canvas,backgroundColor:L,scale:(aA=(dA=A.scale)!==null&&dA!==void 0?dA:t.devicePixelRatio)!==null&&aA!==void 0?aA:1,x:((q=A.x)!==null&&q!==void 0?q:0)+U,y:((lA=A.y)!==null&&lA!==void 0?lA:0)+y,width:(sA=A.width)!==null&&sA!==void 0?sA:Math.ceil(C),height:(H=A.height)!==null&&H!==void 0?H:Math.ceil(x)},c?(l.logger.debug("Document cloned, using foreign object rendering"),I=new Bf(l,S),[4,I.render(u)]):[3,3];case 2:return E=_.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+U+","+y+" with size "+C+"x"+x+" using computed rendering"),l.logger.debug("Starting DOM parsing"),h=Ei(l,u),L===h.styles.backgroundColor&&(h.styles.backgroundColor=se.TRANSPARENT),l.logger.debug("Starting renderer for element at "+S.x+","+S.y+" with size "+S.width+"x"+S.height),I=new sf(l,S),[4,I.render(h)];case 4:E=_.sent(),_.label=5;case 5:return(!((j=A.removeContainer)!==null&&j!==void 0)||j)&&(qa.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,E]}})})},Cf=function(e,A,r){var t=A.ownerDocument,n=t.documentElement?ot(e,getComputedStyle(t.documentElement).backgroundColor):se.TRANSPARENT,a=t.body?ot(e,getComputedStyle(t.body).backgroundColor):se.TRANSPARENT,s=typeof r=="string"?ot(e,r):r===null?se.TRANSPARENT:4294967295;return A===t.documentElement?we(n)?we(a)?s:a:n:s},rn={body:{background:"rgb(32, 32, 32)"},rbgcpInputLabel:{color:"rgb(212, 212, 212)"},rbgcpControlBtnWrapper:{background:"rgb(54, 54, 54)"},rbgcpInput:{border:"none",color:"white",background:"rgb(54, 54, 54)"},rbgcpControlBtn:{color:"rgb(212, 212, 212)"},rbgcpControlIcon:{stroke:"rgb(212, 212, 212)"},rbgcpControlIcon2:{fill:"rgb(212, 212, 212)"},rbgcpControlInput:{color:"white"},rbgcpControlBtnSelected:{background:"black",color:"#568cf5"},rbgcpDegreeIcon:{color:"rgb(212, 212, 212)"},rbgcpColorModelDropdown:{background:"rgb(32, 32, 32)"},rbgcpComparibleLabel:{color:"rgb(212, 212, 212)"}},IA=function(){return IA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},IA.apply(this,arguments)},Qf={body:{boxSizing:"border-box",background:"rgb(255, 255, 255)"},rbgcpControlBtn:{paddingLeft:"8px",paddingRight:"8px",lineHeight:"1",borderRadius:"4px",fontWeight:700,fontSize:"12px",height:"24px",transition:"all 160ms ease",display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0)",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0)",color:"rgb(86, 86, 86)"},rbgcpControlIcon:{stroke:"rgb(50, 49, 54)"},rbgcpControlIconBtn:{width:"30px",height:"24px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},rbgcpControlBtnWrapper:{height:"28px",background:"#e9e9f5",borderRadius:"6px",padding:"2px",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},rbgcpColorModelDropdown:{position:"absolute",right:"-2px",top:"34px",padding:"5px",background:"#e9e9f5",zIndex:1e8,borderRadius:"6px",boxShadow:"1px 1px 14px 1px rgba(0, 0, 0, 0.25)"},rbgcpEyedropperCover:{position:"fixed",left:"0px",top:"0px",zIndex:1e8,width:"100vw",height:"100vh",cursor:"copy"},rbgcpControlInput:{height:"24px",borderRadius:"4px",border:"none",outline:"none",textAlign:"center",width:"34px",fontWeight:500,color:"rgb(50, 49, 54)",fontSize:"13px",background:"transparent"},rbgcpInputLabel:{textAlign:"center",lineHeight:"1.2",fontWeight:700,color:"rgb(86, 86, 86)",fontSize:"11px"},rbgcpInput:{height:"32px",borderRadius:"6px",border:"1px solid #bebebe",width:"100%",padding:"2px",outline:"none",color:"black",fontWeight:400,textAlign:"center",background:"transparent",fontSize:"15px"},rbgcpHandle:{position:"absolute",border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 30ms linear",boxSizing:"border-box",willChange:"transform",outline:"none"},rbgcpCanvasWrapper:{borderRadius:"6px",overflow:"hidden",height:"294px"},rbgcpCheckered:{background:`linear-gradient(
- 45deg,
- rgba(0, 0, 0, 0.18) 25%,
- transparent 25%,
- transparent 75%,
- rgba(0, 0, 0, 0.18) 75%,
- rgba(0, 0, 0, 0.18) 0
- ),
- linear-gradient(
- 45deg,
- rgba(0, 0, 0, 0.18) 25%,
- transparent 25%,
- transparent 75%,
- rgba(0, 0, 0, 0.18) 75%,
- rgba(0, 0, 0, 0.18) 0
- ),
- white`,backgroundRepeat:"repeat, repeat",backgroundPosition:"0px 0, 7px 7px",transformOrigin:"0 0 0",backgroundOrigin:"padding-box, padding-box",backgroundClip:"border-box, border-box",backgroundSize:"14px 14px, 14px 14px",boxShadow:"none",textShadow:"none",transition:"none",transform:"scaleX(1) scaleY(1) scaleZ(1)",borderRadius:"10px"},rbgcpOpacityOverlay:{position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",borderRadius:"10px"},rbgcpGradientHandleWrap:{position:"absolute",zIndex:1e4,top:"-2px",outline:"none"},rbgcpGradientHandle:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"},rbgcpControlIcon2:{fill:"#323136"},rbgcpControlBtnSelected:{background:"white",color:"#568cf5",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0.2)"},rbgcpComparibleLabel:{color:"#323136"}},mf=function(e,A){var r=IA({},Qf);if(e)for(var t in rn)Object.prototype.hasOwnProperty.call(rn,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),rn[t]));for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),A[t]));return r},rs=function(e,A){return e?IA(IA({},A.rbgcpControlBtn),A.rbgcpControlBtnSelected):IA({},A.rbgcpControlBtn)},ut=function(e,A){return e?IA(IA({},A.rbgcpControlIconBtn),A.rbgcpControlBtnSelected):IA({},A.rbgcpControlIconBtn)},zt=function(e,A){return e?IA(IA(IA({},A.rbgcpControlBtn),A.rbgcpColorModelDropdownBtn),A.rbgcpControlBtnSelected):IA(IA({},A.rbgcpControlBtn),A.rbgcpColorModelDropdownBtn)},$A=function(){return $A=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},$A.apply(this,arguments)},vf=function(e){var A=e.color,r=BA().defaultStyles,t=A??"";return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:16}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:$A($A({fill:"none",strokeWidth:"1.4px"},r.rbgcpControlIcon),t&&{stroke:t}),d:"M15.6,7h0L7.78,14.86c-.37.37-1.61.38-2,.75s-.5,1.53-.76,2a3.53,3.53,0,0,1-.52.52,1.6,1.6,0,0,1-2.27-.06l-.32-.32a1.61,1.61,0,0,1-.06-2.27A3.25,3.25,0,0,1,2.4,15c.47-.26,1.65-.35,2-.73s.34-1.64.71-2c1.68-1.73,5.61-5.65,7.91-7.93h0l1.14,1.38L15.6,7Z"}),m.createElement("polygon",{strokeLinecap:"round",strokeLinejoin:"round",style:$A($A({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),points:"15.7 8.87 11.13 4.29 12.69 2.73 17.25 7.31 15.7 8.87"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:$A($A({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),d:"M18.18,3.71,16.36,5.53a1.33,1.33,0,0,1-1.88,0h0a1.34,1.34,0,0,1,0-1.89l1.81-1.82a1.34,1.34,0,0,1,1.89,0h0A1.34,1.34,0,0,1,18.18,3.71Z"}))},Uf=function(e){var A=e.onSelect,r=BA().defaultStyles,t=b.useState(null),n=t[0],a=t[1],s=b.useState(!1),o=s[0],l=s[1],c=b.useState(!1),g=c[0],B=c[1],u=function(){var C=document.getElementById("root");l(!0),wf(C).then(function(x){var U=document.createElement("canvas"),y=U.getContext("2d",{willReadFrequently:!0});C&&y&&(U.width=C.offsetWidth*2,U.height=C.offsetHeight*2,y.drawImage(x,0,0)),a(y)})},p=function(C){if(C.stopPropagation(),n){var x=C.pageX,U=C.pageY,y=x*2,L=U*2,S=n.getImageData(y,L,1,1).data;A("rgba(".concat(S[0],", ").concat(S[1],", ").concat(S[2],", 1)"))}B(!1),l(!1)},Q=function(){if(B(!0),!window.EyeDropper)u();else{var C=new window.EyeDropper,x=new window.AbortController;C.open({signal:x.signal}).then(function(U){var y=SA(U.sRGBHex),L=y.toRgb(),S=L.r,E=L.g,h=L.b;A("rgba(".concat(S,", ").concat(E,", ").concat(h,", 1)")),B(!1)}).catch(function(U){console.log(U),B(!1)})}};return m.createElement("div",null,m.createElement("div",{onClick:Q,id:"rbgcp-eyedropper-btn",style:$A($A({},r.rbgcpEyedropperBtn),ut(o,r))},m.createElement(vf,{color:g?"rgb(86, 140, 245)":""})),o&&m.createElement(Jl,null,m.createElement("div",{onClick:function(C){return p(C)},style:r.rbgcpEyedropperCover})))},Dn=function(){return Dn=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Dn.apply(this,arguments)},nn=function(e){var A=e.value,r=e.reffy,t=e.label,n=e.config,a=e.callback,s=e.squareWidth,o=e.openAdvanced,l=e.defaultStyles,c=e.pickerIdSuffix,g=n.barSize,B=b.useState(!1),u=B[0],p=B[1],Q=b.useState(2),C=Q[0],x=Q[1],U=A*(s-18);b.useEffect(function(){var h;x(((h=r?.current)===null||h===void 0?void 0:h.offsetTop)-2)},[o,r]);var y=function(){p(!1)},L=function(h){u&&a(Ge(h,g))},S=function(h){u||a(Ge(h,g))},E=function(){p(!0)};return b.useEffect(function(){var h=function(){y()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{style:{width:"100%",padding:"3px 0px 3px 0px"}},m.createElement("div",{onMouseMove:function(h){return L(h)},style:{cursor:"resize",position:"relative"},id:"rbgcp-advanced-bar-".concat(t,"-wrapper").concat(c)},m.createElement("div",{style:Dn({left:U,top:C},l.rbgcpHandle),id:"rbgcp-advanced-bar-".concat(t,"-handle").concat(c),onMouseDown:E,role:"button",tabIndex:0}),m.createElement("div",{style:{textAlign:"center",color:"#fff",fontSize:12,fontWeight:500,lineHeight:1,position:"absolute",left:"50%",transform:"translate(-50%, 0%)",top:C+2,zIndex:10,textShadow:"1px 1px 1px rgba(0,0,0,.6)"},id:"rbgcp-advanced-bar-".concat(t,"-label").concat(c),onMouseMove:function(h){return L(h)},onClick:function(h){return S(h)},tabIndex:0,role:"button",onKeyDown:function(){}},t),m.createElement("canvas",{ref:r,height:"14px",width:"".concat(s,"px"),onClick:function(h){return S(h)},style:{position:"relative",borderRadius:14},id:"rbgcp-advanced-bar-".concat(t,"-canvas").concat(c)})))},Ff=function(e){var A=e.openAdvanced,r=BA(),t=r.config,n=r.tinyColor,a=r.handleChange,s=r.squareWidth,o=r.hc,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.toHsl(),B=g.s,u=g.l,p=b.useRef(null),Q=b.useRef(null),C=b.useRef(null);hl(p,o?.h,u*100,s),wl(Q,o?.h,B*100,s),pl(C,o?.h,B*100,s);var x=function(L){var S=SA({h:o?.h,s:L/100,l:u}).toRgb(),E=S.r,h=S.g,I=S.b;a("rgba(".concat(E,",").concat(h,",").concat(I,",").concat(o?.a,")"))},U=function(L){var S=SA({h:o?.h,s:B,l:L/100}).toRgb(),E=S.r,h=S.g,I=S.b;a("rgba(".concat(E,",").concat(h,",").concat(I,",").concat(o?.a,")"))},y=function(L){var S=SA({h:o?.h,s:o?.s*100,v:L}).toRgb(),E=S.r,h=S.g,I=S.b;a("rgba(".concat(E,",").concat(h,",").concat(I,",").concat(o?.a,")"))};return m.createElement("div",{style:{width:"100%",height:A?98:0,transition:"all 120ms linear"},id:"rbgcp-advanced-controls-wrapper".concat(c)},m.createElement("div",{style:{paddingTop:11,display:A?"flex":"none",flexDirection:"column",justifyContent:"space-between",height:A?98:0,overflow:"hidden",transition:"height 100ms linear"},id:"rbgcp-advanced-controls-inner".concat(c)},m.createElement(nn,{value:B,reffy:p,config:t,label:"Saturation",callback:x,squareWidth:s,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),m.createElement(nn,{value:u,config:t,reffy:Q,label:"Lightness",callback:U,squareWidth:s,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),m.createElement(nn,{value:o?.v,config:t,reffy:C,label:"Brightness",callback:y,squareWidth:s,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c})))},ye=function(){return ye=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},ye.apply(this,arguments)},bf=function(e){var A=e.openComparibles,r=BA(),t=r.tinyColor,n=r.handleChange,a=r.defaultStyles,s=r.pickerIdSuffix,o=t.analogous(),l=t.monochromatic(),c=t.triad(),g=t.tetrad(),B=function(u){var p=u.toRgb(),Q=p.r,C=p.g,x=p.b,U=p.a;n("rgba(".concat(Q,",").concat(C,",").concat(x,",").concat(U,")"))};return m.createElement("div",{style:{width:"100%",transition:"all 120ms linear",height:A?216:0},id:"rbgcp-comparible-colors-wrapper".concat(s)},m.createElement("div",{style:{paddingTop:11,display:A?"":"none",position:"relative"},id:"rbgcp-comparible-colors-inner".concat(s)},m.createElement("div",{style:ye({textAlign:"center",fontSize:13,fontWeight:600,position:"absolute",top:6.5,left:2},a.rbgcpComparibleLabel),id:"rbgcp-comparible-color-guide-label".concat(s)},"Color Guide"),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-analogous-colors-label".concat(s)},"Analogous"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex"},id:"rbgcp-comparible-analogous-colors".concat(s)},o?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-analogous-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-monochromatic-colors-label".concat(s)},"Monochromatic"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-monochromatic-colors".concat(s)},l?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-monochromatic-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-triad-colors-label".concat(s)},"Triad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-triad-colors".concat(s)},c?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-triad-color-".concat(p).concat(s),style:{width:"calc(100% / 3)",height:28,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-tetrad-colors-label".concat(s)},"Tetrad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-tetrad-colors".concat(s)},g?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-tetrad-color-".concat(p).concat(s),style:{width:"25%",height:28,background:u.toHexString()},onClick:function(){return B(u)}})}))))},CA=function(){return CA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},CA.apply(this,arguments)},yf=function(){var e=BA(),A=e.gradientType,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,s=A==="linear-gradient",o=A==="radial-gradient",l=function(){var g=t.split(/,(.+)/)[1];r("linear-gradient(90deg, ".concat(g))},c=function(){var g=t.split(/,(.+)/)[1];r("radial-gradient(circle, ".concat(g))};return m.createElement("div",{style:n.rbgcpControlBtnWrapper},m.createElement("div",{onClick:l,id:"rbgcp-linear-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),s&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Rl,{color:s?"#568CF5":""})),m.createElement("div",{onClick:c,id:"rbgcp-radial-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),o&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Nl,{color:o?"#568CF5":""})))},Ef=function(){var e=BA(),A=e.currentLeft,r=e.currentColor,t=e.defaultStyles,n=e.handleGradient,a=e.pickerIdSuffix,s=function(o){n(r,_e(parseInt(o),0,100))};return m.createElement("div",{style:CA(CA(CA(CA({},t.rbgcpControlBtnWrapper),t.rbgcpControlInputWrap),t.rbgcpStopInputWrap),{paddingLeft:8}),id:"rbgcp-stop-input-wrapper".concat(a)},m.createElement(Pl,null),m.createElement("input",{value:A,id:"rbgcp-stop-input".concat(a),onChange:function(o){return s(o.target.value)},style:CA(CA({},t.rbgcpControlInput),t.rbgcpStopInput)}))},xf=function(){var e=BA(),A=e.degrees,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,s=function(o){var l=_e(o.target.value,0,360),c=t.split(/,(.+)/)[1];r("linear-gradient(".concat(l??0,"deg, ").concat(c))};return m.createElement("div",{style:CA(CA(CA({},n.rbgcpControlBtnWrapper),n.rbgcpControlInputWrap),n.rbgcpDegreeInputWrap),id:"rbgcp-degree-input-wrapper".concat(a)},m.createElement(Vl,null),m.createElement("input",{value:A,onChange:function(o){return s(o)},id:"rbgcp-degree-input".concat(a),style:CA(CA({},n.rbgcpControlInput),n.rbgcpDegreeInput)}),m.createElement("div",{style:CA(CA({},n.rbgcpDegreeIcon),{position:"absolute",right:A>99?0:A<10?7:3,top:1,fontWeight:400,fontSize:13})},"°"))},If=function(){var e=BA(),A=e.colors,r=e.selectedColor,t=e.createGradientStr,n=e.defaultStyles,a=e.pickerIdSuffix,s=function(){if(A?.length>2){var o=A?.map(function(c,g){return CA(CA({},c),{value:g===r-1?mr(c):vt(c)})}),l=o?.filter(function(c,g){return g!==r});t(l)}};return m.createElement("div",{onClick:s,style:CA(CA({},ut(!1,n)),{width:28}),id:"rbgcp-point-delete-btn".concat(a),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Ol,null))},ns=function(e){var A=e.hideGradientType,r=e.hideGradientAngle,t=e.hideGradientStop,n=BA(),a=n.gradientType,s=n.defaultStyles,o=n.pickerIdSuffix;return m.createElement("div",{style:CA(CA({},s.rbgcpControlBtnWrapper),{marginTop:12,marginBottom:-4,justifyContent:"space-between",paddingLeft:A?4:0}),id:"rbgcp-gradient-controls-wrap".concat(o)},!A&&m.createElement(yf,null),m.createElement("div",{style:{width:53}},!r&&a==="linear-gradient"&&m.createElement(xf,null)),!t&&m.createElement(Ef,null),m.createElement(If,null))},Ct=function(){return Ct=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Ct.apply(this,arguments)},Hf=function(e){var A,r,t=e.hideColorTypeBtns,n=e.setGradient,a=e.isGradient,s=e.setSolid,o=e.locales,l=BA(),c=l.defaultStyles,g=l.pickerIdSuffix;return t?m.createElement("div",{style:{width:1}}):m.createElement("div",{style:Ct({display:"flex",alignItems:"center"},c.rbgcpControlBtnWrapper),id:"rbgcp-color-type-btns".concat(g)},m.createElement("div",{onClick:s,id:"rbgcp-solid-btn".concat(g),style:rs(!a,c)},(A=o?.CONTROLS)===null||A===void 0?void 0:A.SOLID),m.createElement("div",{onClick:n,id:"rbgcp-gradient-btn".concat(g),style:rs(a??!1,c)},(r=o?.CONTROLS)===null||r===void 0?void 0:r.GRADIENT))},Sf=function(e){var A=e.openInputType,r=e.setOpenInputType,t=BA(),n=t.inputType,a=t.setInputType,s=t.defaultStyles,o=t.pickerIdSuffix,l=A?"visibility 0ms linear":"visibility 100ms linear 150ms",c=A?"z-index 0ms linear":"z-index 100ms linear 150ms",g=A?"opacity 120ms linear":"opacity 150ms linear 50ms",B=function(u,p){A&&(u.stopPropagation(),a(p),r(!1))};return m.createElement("div",{style:Ct({visibility:A?"visible":"hidden",zIndex:A?"":-100,opacity:A?1:0,transition:"".concat(g,", ").concat(l,", ").concat(c)},s.rbgcpColorModelDropdown),id:"rbgcp-color-model-dropdown".concat(o)},m.createElement("div",{id:"rbgcp-color-model-rgb-btn".concat(o),onClick:function(u){return B(u,"rgb")},style:zt(n==="rgb",s)},"RGB"),m.createElement("div",{id:"rbgcp-color-model-hsl-btn".concat(o),onClick:function(u){return B(u,"hsl")},style:zt(n==="hsl",s)},"HSL"),m.createElement("div",{id:"rbgcp-color-model-hsv-btn".concat(o),onClick:function(u){return B(u,"hsv")},style:zt(n==="hsv",s)},"HSV"),m.createElement("div",{id:"rbgcp-color-model-cmyk-btn".concat(o),onClick:function(u){return B(u,"cmyk")},style:zt(n==="cmyk",s)},"CMYK"))},Lf=function(e){var A,r,t=e.locales,n=e.hideEyeDrop,a=n===void 0?!1:n,s=e.hideAdvancedSliders,o=s===void 0?!1:s,l=e.hideColorGuide,c=l===void 0?!1:l,g=e.hideInputType,B=g===void 0?!1:g,u=e.hideColorTypeBtns,p=u===void 0?!1:u,Q=e.hideGradientControls,C=Q===void 0?!1:Q,x=e.hideGradientType,U=x===void 0?!1:x,y=e.hideGradientAngle,L=y===void 0?!1:y,S=e.hideGradientStop,E=S===void 0?!1:S,h=BA(),I=h.config,M=h.onChange,k=h.isGradient,R=h.handleChange,O=h.previous,Z=h.defaultStyles,D=h.pickerIdSuffix,z=I.defaultColor,eA=I.defaultGradient,tA=b.useState(!1),AA=tA[0],dA=tA[1],aA=b.useState(!1),q=aA[0],lA=aA[1],sA=b.useState(!1),H=sA[0],j=sA[1],_=a&&o&&c&&B,F=(A=O?.color)!==null&&A!==void 0?A:z,N=(r=O?.gradient)!==null&&r!==void 0?r:eA,T=function(){M(F)},G=function(){M(N)},J=a&&o&&c&&B,$=J&&p;return $?k&&!C?m.createElement(ns,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:E}):null:m.createElement("div",{style:{paddingBottom:4}},m.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},id:"rbgcp-controls-wrapper".concat(D)},m.createElement(Hf,{hideColorTypeBtns:p,setGradient:G,isGradient:k,setSolid:T,locales:t}),!J&&m.createElement("div",{style:Ct({display:_?"none":""},Z.rbgcpControlBtnWrapper),id:"rbgcp-control-rightside-wrapper".concat(D)},!a&&m.createElement(Uf,{onSelect:R}),!o&&m.createElement("div",{id:"rbgcp-advanced-btn".concat(D),onClick:function(){return j(!H)},style:ut(H,Z)},m.createElement(_l,{color:H?"#568CF5":""})),!c&&m.createElement("div",{style:ut(AA,Z),onClick:function(){return dA(!AA)},id:"rbgcp-comparibles-btn".concat(D)},m.createElement(jl,{color:AA?"#568CF5":""})),!B&&m.createElement("div",{id:"rbgcp-color-model-btn".concat(D),onClick:function(){return lA(!q)},style:ut(q,Z)},m.createElement(Gl,{color:q?"#568CF5":""}),m.createElement(Sf,{openInputType:q,setOpenInputType:lA})))),!o&&m.createElement(Ff,{openAdvanced:H}),!c&&m.createElement(bf,{openComparibles:AA}),k&&!C&&m.createElement(ns,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:E}))},Ae=function(){return Ae=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Ae.apply(this,arguments)},as=function(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||Array.prototype.slice.call(A))},kf=function(e){var A=e.left,r=e.i,t=e.setDragging,n=BA(),a=n.colors,s=n.squareWidth,o=n.selectedColor,l=n.defaultStyles,c=n.pickerIdSuffix,g=n.createGradientStr,B=o===r,u=(s-18)/100,p=function(C){var x=a?.map(function(U,y){return Ae(Ae({},U),{value:y===C?mr(U):vt(U)})});g(x)},Q=function(C){C.stopPropagation(),p(r),t(!0)};return m.createElement("div",{onMouseDown:function(C){return Q(C)},id:"rbgcp-gradient-handle-".concat(r).concat(c),style:Ae(Ae({},l.rbgcpGradientHandleWrap),{left:(A??0)*u})},m.createElement("div",{style:Ae(Ae({},l.rbgcpGradientHandle),B?{boxShadow:"0px 0px 5px 1px rgba(86, 140, 245,.95)",border:"2px solid white"}:{}),id:"rbgcp-gradient-handle-".concat(r,"-dot").concat(c)},B&&m.createElement("div",{style:{width:5,height:5,borderRadius:"50%",background:"white"},id:"rbgcp-gradient-handle-".concat(r,"-selected-dot").concat(c)})))},Mf=function(){var e=BA(),A=e.value,r=e.colors,t=e.config,n=e.squareWidth,a=e.currentColor,s=e.handleGradient,o=e.pickerIdSuffix,l=e.createGradientStr,c=t.barSize,g=b.useState(!1),B=g[0],u=g[1];function p(L){return L.replace(/(radial|linear)-gradient\([^,]+,/,"linear-gradient(90deg,")}var Q=function(L){var S,E=Ge(L,c),h=(S=as(as([],r.map(function(I){return Ae(Ae({},I),{value:vt(I)})}),!0),[{value:a,left:E}],!1))===null||S===void 0?void 0:S.sort(function(I,M){return I.left-M.left});l(h)},C=function(){u(!1)},x=function(L){B||(Q(L),u(!0))},U=function(L){B&&s(a,Ge(L,c))},y=function(){C()};return b.useEffect(function(){return window.addEventListener("mouseup",y),function(){window.removeEventListener("mouseup",y)}}),m.createElement("div",{style:{width:"100%",marginTop:17,marginBottom:4,position:"relative"},id:"rbgcp-gradient-bar".concat(o)},m.createElement("div",{style:{height:14,borderRadius:10,width:n,backgroundImage:p(A)},onMouseDown:function(L){return x(L)},onMouseMove:function(L){return U(L)},id:"rbgcp-gradient-bar-canvas".concat(o)}),r?.map(function(L,S){return m.createElement(kf,{i:S,left:L.left,key:"".concat(S,"-").concat(L),setDragging:u})}))},Kf=function(e){var A=e.locales,r=e.presets,t=e.hideHue,n=e.hideInputs,a=e.hidePresets,s=e.hideOpacity,o=e.hideEyeDrop,l=e.hideControls,c=e.hideInputType,g=e.hideColorGuide,B=e.hidePickerSquare,u=e.hideGradientType,p=e.hideGradientStop,Q=e.hideGradientAngle,C=e.hideColorTypeBtns,x=e.hideAdvancedSliders,U=e.hideGradientControls,y=BA(),L=y.isGradient,S=y.pickerIdSuffix;return m.createElement("div",{style:{userSelect:"none"},id:"rbgcp-color-picker".concat(S)},!B&&m.createElement(kl,null),!l&&m.createElement(Lf,{locales:A,hideEyeDrop:o,hideInputType:c,hideColorGuide:g,hideGradientType:u,hideGradientStop:p,hideColorTypeBtns:C,hideGradientAngle:Q,hideAdvancedSliders:x,hideGradientControls:U}),L&&m.createElement(Mf,null),!t&&m.createElement(Cl,null),!s&&m.createElement(Ml,null),!n&&m.createElement(xl,null),!a&&m.createElement(Dl,{presets:r}))},Qr=function(){return Qr=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Qr.apply(this,arguments)};function Tf(e){var A=e.idSuffix,r=e.value,t=r===void 0?"rgba(175, 51, 242, 1)":r,n=e.onChange,a=e.hideControls,s=a===void 0?!1:a,o=e.hideInputs,l=o===void 0?!1:o,c=e.hideOpacity,g=c===void 0?!1:c,B=e.hidePresets,u=B===void 0?!1:B,p=e.hideHue,Q=p===void 0?!1:p,C=e.presets,x=C===void 0?[]:C,U=e.hideEyeDrop,y=U===void 0?!1:U,L=e.hideAdvancedSliders,S=L===void 0?!1:L,E=e.hideColorGuide,h=E===void 0?!1:E,I=e.hideInputType,M=I===void 0?!1:I,k=e.hideColorTypeBtns,R=k===void 0?!1:k,O=e.hideGradientType,Z=O===void 0?!1:O,D=e.hideGradientAngle,z=D===void 0?!1:D,eA=e.hideGradientStop,tA=eA===void 0?!1:eA,AA=e.hideGradientControls,dA=AA===void 0?!1:AA,aA=e.locales,q=aA===void 0?Kl:aA,lA=e.width,sA=lA===void 0?294:lA,H=e.height,j=H===void 0?294:H,_=e.style,F=_===void 0?{}:_,N=e.className,T=e.disableDarkMode,G=T===void 0?!1:T,J=e.disableLightMode,$=J===void 0?!1:J,pA=e.hidePickerSquare,f=pA===void 0?!1:pA,v=e.showHexAlpha,w=v===void 0?!1:v,K=e.config,W=K===void 0?{}:K,P=ll(t),oA=typeof window>"u"||G?!1:!!(window.matchMedia("(prefers-color-scheme: dark)").matches||$),fA=mf(oA,F),UA=oA?"-dark".concat(A?"-".concat(A):""):A?"-".concat(A):"";return m.createElement("div",{className:N,style:Qr(Qr({},fA.body),{width:sA})},m.createElement(dl,{value:P,onChange:n,squareWidth:sA,passedConfig:W,squareHeight:j,isDarkMode:oA,hideOpacity:g,showHexAlpha:w,defaultStyles:fA,pickerIdSuffix:UA},m.createElement(Kf,{hideControls:s,hideInputs:l,hidePresets:u,hideOpacity:g,hideHue:Q,presets:x,hideEyeDrop:y,hideAdvancedSliders:S,hideColorGuide:h,hideInputType:M,hideColorTypeBtns:R,hideGradientType:Z,hideGradientAngle:z,hideGradientStop:tA,hideGradientControls:dA,hidePickerSquare:f,locales:q})))}const an="rgb(0, 0, 0)",Df=()=>{const[e,A]=b.useState(localStorage.getItem("customBackgroundColour")||an),r=n=>{A(n),localStorage.setItem("customBackgroundColour",n),hA.emit("refresh","background")},t=()=>{A(an),localStorage.setItem("customBackgroundColour",an),RA(d.getMessage("toasts.reset")),hA.emit("refresh","background")};return i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.custom_colour")}),i.jsxs(cA,{children:[i.jsx(Tf,{value:e,onChange:r,hideEyeDrop:!0,hideColorGuide:!0,hidePresets:!0,hideAdvancedSliders:!1,hideColorTypeBtns:!1,hideInputType:!1,height:147}),i.jsx("div",{className:"colourReset",children:i.jsxs("span",{className:"link",onClick:()=>t(),children:[i.jsx(fe,{}),d.getMessage("modals.main.settings.buttons.reset")]})})]})]})};var Of=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],ze=(e,A)=>{var r="";for(let t=1;t<=A;t++){let n=Math.floor(e)/Math.pow(83,A-t)%83;r+=Of[Math.floor(n)]}return r},sn=e=>{let A=e/255;return A<=.04045?A/12.92:Math.pow((A+.055)/1.055,2.4)},on=e=>{let A=Math.max(0,Math.min(1,e));return A<=.0031308?Math.trunc(A*12.92*255+.5):Math.trunc((1.055*Math.pow(A,.4166666666666667)-.055)*255+.5)},Rf=e=>e<0?-1:1,ln=(e,A)=>Rf(e)*Math.pow(Math.abs(e),A),ss=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},is=4,Nf=(e,A,r,t)=>{let n=0,a=0,s=0,o=A*is;for(let c=0;c<A;c++){let g=is*c;for(let B=0;B<r;B++){let u=g+B*o,p=t(c,B);n+=p*sn(e[u]),a+=p*sn(e[u+1]),s+=p*sn(e[u+2])}}let l=1/(A*r);return[n*l,a*l,s*l]},_f=e=>{let A=on(e[0]),r=on(e[1]),t=on(e[2]);return(A<<16)+(r<<8)+t},Gf=(e,A)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(ln(e[0]/A,.5)*9+9.5)))),t=Math.floor(Math.max(0,Math.min(18,Math.floor(ln(e[1]/A,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(ln(e[2]/A,.5)*9+9.5))));return r*19*19+t*19+n},jf=(e,A,r,t,n)=>{if(t<1||t>9||n<1||n>9)throw new ss("BlurHash must have between 1 and 9 components");if(A*r*4!==e.length)throw new ss("Width and height must match the pixels array");let a=[];for(let B=0;B<n;B++)for(let u=0;u<t;u++){let p=u==0&&B==0?1:2,Q=Nf(e,A,r,(C,x)=>p*Math.cos(Math.PI*u*C/A)*Math.cos(Math.PI*B*x/r));a.push(Q)}let s=a[0],o=a.slice(1),l="",c=t-1+(n-1)*9;l+=ze(c,1);let g;if(o.length>0){let B=Math.max(...o.map(p=>Math.max(...p))),u=Math.floor(Math.max(0,Math.min(82,Math.floor(B*166-.5))));g=(u+1)/166,l+=ze(u,1)}else g=1,l+=ze(0,1);return l+=ze(_f(s),4),o.forEach(B=>{l+=ze(Gf(B,g),2)}),l},Vf=jf;async function os(e){return new Promise((A,r)=>{const t=new Image;t.onload=()=>{A({width:t.width,height:t.height}),typeof e!="string"&&URL.revokeObjectURL(t.src)},t.onerror=()=>r(new Error("Failed to load image")),typeof e=="string"?t.src=e:t.src=URL.createObjectURL(e)})}async function ls(e,A=4,r=3){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{try{const s=document.createElement("canvas"),o=s.getContext("2d"),l=64,c=Math.min(l/a.width,l/a.height);s.width=Math.floor(a.width*c),s.height=Math.floor(a.height*c),o.drawImage(a,0,0,s.width,s.height);const g=o.getImageData(0,0,s.width,s.height),B=Vf(g.data,g.width,g.height,A,r);typeof e!="string"&&URL.revokeObjectURL(a.src),t(B)}catch(s){n(s)}},a.onerror=()=>n(new Error("Failed to load image for blur hash")),typeof e=="string"?a.src=e:a.src=URL.createObjectURL(e)})}function cn(e){const A=e.split(",")[1];if(!A)return 0;const r=(A.match(/=/g)||[]).length;return Math.floor(A.length*3/4-r)}function cs(e,A){return e&&e.name?e.name:`Image ${A+1}`}function Pf(){const e={};return Object.keys(localStorage).forEach(A=>{e[A]=localStorage.getItem(A)}),new TextEncoder().encode(JSON.stringify(e)).length}function me(e){if(e===0)return"0 Bytes";if(!e)return"Unknown";const A=1024,r=["Bytes","KB","MB","GB"],t=Math.floor(Math.log(e)/Math.log(A));return Math.round(e/Math.pow(A,t)*10)/10+" "+r[t]}const Xf=({files:e,onConfirm:A,onCancel:r})=>{const[t,n]=b.useState(""),a=()=>{A(t.trim())};return i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.tag_images")}),i.jsx("button",{className:"closeModal",onClick:r,children:i.jsx(hs,{})})]}),i.jsxs("div",{className:"taggingModalContent",children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.tag_description",{count:e.length})}),i.jsxs("div",{className:"taggingInput",children:[i.jsx("label",{children:d.getMessage("modals.main.settings.sections.background.source.folder_name")}),i.jsx("input",{type:"text",placeholder:d.getMessage("modals.main.settings.sections.background.source.folder_placeholder"),value:t,onChange:s=>n(s.target.value),onKeyPress:s=>{s.key==="Enter"&&a()},autoFocus:!0})]})]}),i.jsxs("div",{className:"resetFooter",children:[i.jsx(vA,{type:"settings",onClick:r,label:d.getMessage("modals.main.settings.buttons.cancel")}),i.jsx(vA,{type:"settings",onClick:a,label:d.getMessage("modals.main.settings.buttons.continue")})]})]})},gn=e=>{try{localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(e.length))}catch{}},Gi=b.memo(()=>{const[e,A]=b.useState([]),[r,t]=b.useState(!1),[n,a]=b.useState([]),[s,o]=b.useState(!0),[l,c]=b.useState(!1),[g,B]=b.useState({current:0,total:0}),[u,p]=b.useState(!1),[Q,C]=b.useState(new Set),[x,U]=b.useState(localStorage.getItem("customImageSort")||"date_desc"),[y,L]=b.useState(!1),[S,E]=b.useState({usage:0,quota:0}),h=b.useRef(null),I=b.useRef(0),M=5e7;b.useEffect(()=>{(async()=>{if(navigator.storage&&navigator.storage.estimate)try{const N=await navigator.storage.estimate();E({usage:N.usage||0,quota:N.quota||M})}catch(N){console.warn("Could not get storage estimate:",N),E({usage:0,quota:M})}else E({usage:0,quota:M})})()},[e]),b.useEffect(()=>{(async()=>{try{await uo();const N=await ve();A(N),N.forEach(async T=>{if(!T.dimensions&&T.url&&!yt(T.url))try{const G=await os(T.url),J=await ls(T.url);await Bo(T.id,{dimensions:G,blurHash:J});const $=await ve();A($)}catch(G){console.warn("Could not extract metadata for existing image:",G)}})}catch(N){console.error("Error loading backgrounds:",N),RA(d.getMessage("toasts.error"))}finally{o(!1)}})()},[]);const k=b.useCallback(async(F,N,T,G=!1)=>{try{const J={url:N,name:T.name,uploadDate:Date.now(),dimensions:T.dimensions,fileSize:T.fileSize,folder:T.folder||"",blurHash:T.blurHash};await tr(J);const $=await ve();A($),gn($),G||hA.emit("refresh","background")}catch(J){console.error("Error saving background:",J),RA(d.getMessage("toasts.error"))}},[]),R=async(F,N="")=>{const T=e.reduce((J,$)=>$.url&&$.url.startsWith("data:")?J+cn($.url):J,0),G=S.quota||M;if(T/G>.9&&navigator.storage&&navigator.storage.persist)try{await navigator.storage.persist()&&console.log("Storage persistence granted")}catch(J){console.warn("Could not request storage persistence:",J)}if(yt(F.type)){if(T+F.size>G)throw new Error("no_storage");const J=new FileReader;return new Promise(($,pA)=>{J.onloadend=()=>{$({dataUrl:J.result,metadata:{name:cs(F,e.length),dimensions:null,fileSize:F.size,folder:N,blurHash:null}})},J.onerror=pA,J.readAsDataURL(F)})}else{const J=await $n.compressAccurately(F,{size:450,accuracy:.9}),$=S.quota||M;if(T+J.size>$)throw new Error("no_storage");const pA=await $n.filetoDataURL(J),[f,v]=await Promise.all([os(pA),ls(pA).catch(()=>null)]);return{dataUrl:pA,metadata:{name:cs(F,e.length),dimensions:f,fileSize:cn(pA),folder:N,blurHash:v}}}},O=async(F,N="")=>{c(!0),B({current:0,total:F.length});const T=[];for(let G=0;G<F.length;G++)try{const J=await R(F[G],N);await k(F[G],J.dataUrl,J.metadata,!0),B({current:G+1,total:F.length})}catch(J){if(J.message==="no_storage"){RA(d.getMessage("toasts.no_storage"));break}T.push(F[G].name)}T.length>0&&RA(d.getMessage("toasts.error")+`: ${T.join(", ")}`),hA.emit("refresh","background"),c(!1),B({current:0,total:0})},Z=async F=>{t(!1),await O(n,F),a([])},D=b.useCallback(async(F,N)=>{try{F==="add"?await tr(""):await io(N);const T=await ve();A(T),gn(T),C(new Set),hA.emit("refresh","backgroundrefresh")}catch(T){console.error("Error modifying background:",T),RA(d.getMessage("toasts.error"))}},[]),z=async()=>{if(Q.size!==0)try{const F=Array.from(Q).sort((T,G)=>G-T);await fo(F);const N=await ve();A(N),C(new Set),gn(N),hA.emit("refresh","backgroundrefresh"),RA(d.getMessage("toasts.deleted"))}catch(F){console.error("Error batch deleting:",F),RA(d.getMessage("toasts.error"))}},eA=F=>{const N=new Set(Q);N.has(F)?N.delete(F):N.add(F),C(N)},tA=F=>{U(F),localStorage.setItem("customImageSort",F)},AA=b.useCallback(()=>{document.getElementById("bg-input").click()},[]),dA=async F=>{F.length>1?(a(F),t(!0)):await O(F,"")},aA=[...e].sort((F,N)=>{switch(x){case"date_asc":return F.uploadDate-N.uploadDate;case"date_desc":return N.uploadDate-F.uploadDate;case"name_asc":return(F.name||"").localeCompare(N.name||"");case"name_desc":return(N.name||"").localeCompare(F.name||"");case"size_asc":return(F.fileSize||0)-(N.fileSize||0);case"size_desc":return(N.fileSize||0)-(F.fileSize||0);default:return 0}}),q=e.reduce((F,N)=>N.url&&N.url.startsWith("data:")?F+cn(N.url):F,0),lA=S.quota||M,sA=q/lA*100,H=Pf(),j=5242880;b.useEffect(()=>{const F=h.current;if(!F)return;const N=$=>{$.preventDefault(),$.stopPropagation()},T=$=>{$.preventDefault(),$.stopPropagation(),I.current++,$.dataTransfer.items&&$.dataTransfer.items.length>0&&p(!0)},G=$=>{$.preventDefault(),$.stopPropagation(),I.current--,I.current===0&&p(!1)},J=async $=>{$.preventDefault(),$.stopPropagation(),p(!1),I.current=0;const pA=Array.from($.dataTransfer.files);pA.length!==0&&(pA.length>1?(a(pA),t(!0)):await O(pA,""))};return F.ondragover=N,F.ondragenter=T,F.ondragleave=G,F.ondrop=J,()=>{F&&(F.ondragover=null,F.ondragenter=null,F.ondragleave=null,F.ondrop=null)}},[e.length,O]);const _=aA.filter(F=>F&&yt(F.url)).length>0;return s?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.loading")})]})}):l?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.uploading",{current:g.current,total:g.total})}),i.jsxs("span",{className:"subtitle",children:[Math.round(g.current/g.total*100),"%"]})]})}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`dropzone ${u?"dragging":""}`,ref:h,style:u?{outline:"2px dashed #ff5c25",outlineOffset:"-2px",backgroundColor:"rgba(255, 92, 37, 0.1)",transition:"all 0.2s ease"}:{},children:[i.jsxs("div",{className:"imagesTopBar",children:[i.jsxs("div",{className:"imagesTopBarTitle",children:[i.jsx(zn,{}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.custom_title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.custom_description")})]})]}),i.jsx("div",{className:"topbarbuttons",children:i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(oo,{}),label:d.getMessage("modals.main.settings.sections.background.source.upload")})})]}),i.jsxs("div",{className:"imagesControlBar",children:[i.jsxs("div",{className:"controlBarLeft",children:[i.jsxs("span",{className:"image-count",children:[e.length," ",e.length===1?"image":"images",i.jsxs("span",{className:"storage-info",children:[" ","· ",me(q)," / ",me(lA),sA>80&&navigator.storage&&navigator.storage.persist&&i.jsx(qn,{title:"Request persistent storage to prevent browser from automatically clearing your images",children:i.jsx("button",{className:"request-storage-link",onClick:async()=>{try{await navigator.storage.persist()?RA("Persistent storage granted - your images are protected from eviction"):RA("Persistent storage denied - images may be cleared if storage is low")}catch(F){console.error("Storage request error:",F),RA("Could not request persistent storage")}},children:"Protect images"})})]})]}),i.jsx("span",{className:"selection-separator",children:"·"}),Q.size>0?i.jsxs(i.Fragment,{children:[i.jsxs("span",{className:"selected-count",children:[Q.size," selected"]}),i.jsx("button",{className:"delete-link",onClick:z,children:"Delete"}),Q.size<e.length&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(e.map((N,T)=>T));C(F)},children:"Select all"}),Q.size===e.length&&i.jsx("button",{className:"select-all-link",onClick:()=>C(new Set),children:"Deselect all"})]}):e.length>0&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(e.map((N,T)=>T));C(F)},children:"Select all"})]}),i.jsx("div",{className:"controlBarRight",children:i.jsx(KA,{name:"customImageSort",category:"customImageSort",onChange:tA,items:[{value:"date_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_newest")},{value:"date_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_oldest")},{value:"name_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_asc")},{value:"name_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_desc")},{value:"size_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_small")},{value:"size_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_large")}]})})]}),i.jsx("div",{className:"dropzone-content",children:aA.length>0?i.jsx("div",{className:`images-grid ${Q.size>0?"selection-mode":""}`,children:aA.map(F=>{const N=e.findIndex(G=>G===F),T=F&&yt(F.url);return i.jsxs("div",{className:"image-card",onClick:G=>{G.target.closest(".delete-button")||eA(N)},children:[i.jsx("div",{className:"image-checkbox",children:i.jsx("input",{type:"checkbox",checked:Q.has(N),onChange:()=>eA(N)})}),i.jsxs("div",{className:"image-preview",children:[F.blurHash&&!T&&(()=>{const G=lo(F.blurHash,32,32);return G?i.jsx("div",{className:"blur-placeholder",style:{backgroundImage:`url(${G})`,filter:"blur(20px)",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}}):null})(),T?i.jsx("div",{className:"video-icon-wrapper",children:i.jsx(co,{className:"customvideoicon"})}):i.jsx("img",{alt:F.name||"Custom background",src:F.url,loading:"lazy",style:{position:"relative",zIndex:1}})]}),i.jsxs("div",{className:"image-metadata",children:[i.jsx("span",{className:"image-name",title:F.name,children:F.name||"Unnamed"}),i.jsxs("div",{className:"image-details",children:[F.dimensions&&i.jsxs("span",{className:"detail",children:[F.dimensions.width," × ",F.dimensions.height]}),F.fileSize&&i.jsx("span",{className:"detail",children:me(F.fileSize)}),F.folder&&i.jsx("span",{className:"detail folder-tag",children:F.folder})]})]}),i.jsx(qn,{title:d.getMessage("modals.main.settings.sections.background.source.remove"),children:i.jsx("button",{className:"delete-button",onClick:G=>{G.stopPropagation(),D("remove",N)},children:i.jsx(Bt,{})})})]},N)})}):i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(zn,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.drop_to_upload")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.formats",{list:"jpeg, png, webp, webm, gif, mp4, webm, ogg"})}),i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(go,{}),label:d.getMessage("modals.main.settings.sections.background.source.select")})]})})})]}),i.jsx(Ms,{id:"bg-input",accept:"image/jpeg, image/png, image/webp, image/webm, image/gif, video/mp4, video/webm, video/ogg",multiple:!0,loadFunction:async F=>{await dA(F)}}),_&&i.jsxs(i.Fragment,{children:[i.jsx(mA,{name:"backgroundVideoLoop",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.loop_video")}),i.jsx(mA,{name:"backgroundVideoMute",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.mute_video")})]}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a([])},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Xf,{files:n,onConfirm:Z,onCancel:()=>{t(!1),a([])}})}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>L(!1),isOpen:y,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.storage_info")}),i.jsx("button",{className:"closeModal",onClick:()=>L(!1),children:i.jsx(Bt,{})})]}),i.jsxs("div",{style:{padding:"20px"},children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.storage_description")}),i.jsxs("div",{style:{marginTop:"20px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Custom Backgrounds"}),i.jsxs("p",{className:"subtitle",children:[me(q)," / ",me(lA)," (",Math.round(sA),"%)"]})]}),i.jsxs("div",{style:{marginTop:"15px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Total localStorage Usage"}),i.jsxs("p",{className:"subtitle",children:[me(H)," / ",me(j)," (",Math.round(H/j*100),"%)"]}),i.jsx("p",{className:"subtitle",style:{marginTop:"8px",fontSize:"12px",opacity:.7},children:"Includes all Mue settings and custom images"})]})]}),i.jsx("div",{className:"resetFooter",children:i.jsx(vA,{type:"settings",onClick:()=>L(!1),label:d.getMessage("modals.main.settings.buttons.close")})})]})})]})});Gi.displayName="CustomSettings";const Jf=({usingImage:e})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.display"),subtitle:d.getMessage("modals.main.settings.sections.background.display_subtitle")}),i.jsxs(cA,{children:[i.jsx(mA,{name:"bgtransition",text:d.getMessage("modals.main.settings.sections.background.transition"),element:".other",disabled:!e}),i.jsx(mA,{name:"photoInformation",text:d.getMessage("modals.main.settings.sections.background.photo_information"),element:".other"}),i.jsx(mA,{name:"photoMap",text:d.getMessage("modals.main.settings.sections.background.show_map"),element:".other",disabled:!e})]})]});d.getMessage("modals.main.settings.sections.background.source.quality.original"),d.getMessage("modals.main.settings.sections.background.source.quality.high"),d.getMessage("modals.main.settings.sections.background.source.quality.normal"),d.getMessage("modals.main.settings.sections.background.source.quality.datasaver");const Wf=[{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.navbar.refresh_options.none")},{value:"grayscale",text:d.getMessage("modals.main.settings.sections.background.effects.filters.grayscale")},{value:"sepia",text:d.getMessage("modals.main.settings.sections.background.effects.filters.sepia")},{value:"invert",text:d.getMessage("modals.main.settings.sections.background.effects.filters.invert")},{value:"saturate",text:d.getMessage("modals.main.settings.sections.background.effects.filters.saturate")},{value:"contrast",text:d.getMessage("modals.main.settings.sections.background.effects.filters.contrast")}];function ji(){return[{value:"api",text:d.getMessage("wb.settings_bundled_photos")},{value:"custom",text:d.getMessage("modals.main.settings.sections.background.type.custom_image")},{value:"colour",text:d.getMessage("modals.main.settings.sections.background.type.custom_colour")},{value:"random_colour",text:d.getMessage("modals.main.settings.sections.background.type.random_colour")},{value:"random_gradient",text:d.getMessage("modals.main.settings.sections.background.type.random_gradient")}]}const Yf=({backgroundFilter:e,onFilterChange:A})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle")}),i.jsxs(cA,{children:[i.jsx(at,{title:d.getMessage("modals.main.settings.sections.background.effects.blur"),name:"blur",min:"0",max:"100",default:"0",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(at,{title:d.getMessage("modals.main.settings.sections.background.effects.brightness"),name:"brightness",min:"0",max:"100",default:"100",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.effects.filters.title"),name:"backgroundFilter",onChange:A,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo",items:Wf}),e!=="none"&&i.jsx(at,{title:d.getMessage("modals.main.settings.sections.background.effects.filters.amount"),name:"backgroundFilterAmount",min:"0",max:"100",default:"0",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"})]})]}),Zf=({backgroundType:e,onTypeChange:A})=>i.jsxs(rA,{final:e==="random_colour"||e==="random_gradient",children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:A,category:"background",items:ji()})})]}),gs=({icon:e,title:A,subtitle:r,onClick:t,action:n})=>i.jsxs("div",{className:"moreSettings",onClick:t,children:[i.jsxs("div",{className:"left",children:[i.jsx(e,{}),i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:A}),i.jsx("span",{className:"subtitle",children:r})]})]}),i.jsx("div",{className:"action",children:n||i.jsx(fs,{})})]}),Vi=b.memo(({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(localStorage.getItem("backgroundType")||"api"),[a,s]=b.useState(localStorage.getItem("backgroundFilter")||"none"),o=["colour","random_colour","random_gradient"].includes(t);b.useEffect(()=>{o&&e!=="source"&&A("source",r)},[o,e,A,r]);const l=()=>{switch(t){case"custom":return i.jsx(Gi,{});case"colour":return i.jsx(Df,{});default:return null}},c=t!=="colour"&&t!=="random_colour"&&t!=="random_gradient",g=t==="api"||t==="custom",B=()=>e==="effects"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.effects.title"),goBack:()=>A(null,r)}):e==="source"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.source.title"),goBack:()=>A(null,r)}):i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),setting:"background",category:"background",visibilityToggle:!0});return i.jsxs(i.Fragment,{children:[B(),!e&&i.jsxs(i.Fragment,{children:[i.jsx(gs,{icon:ho,title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle"),onClick:()=>A("source",r),action:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:u=>{n(u),u==="custom"&&hA.emit("refresh","background")},category:"background",items:ji()})}),g&&i.jsx(gs,{icon:wo,title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle"),onClick:()=>A("effects",r)})]}),!e&&g&&i.jsx(Jf,{usingImage:c}),e==="source"&&i.jsxs(i.Fragment,{children:[i.jsx(Zf,{backgroundType:t,onTypeChange:n}),l()]}),g&&e==="effects"&&i.jsx(Yf,{backgroundFilter:a,onFilterChange:u=>s(u)})]})});Vi.displayName="BackgroundOptions";function zf(){const e=[{value:"ask",text:d.getMessage("wb.ask")},{value:"act",text:d.getMessage("wb.act")},...po()?[{value:"search",text:d.getMessage("wb.search")}]:[]];return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_taskbox"),setting:"taskBox",category:"widgets",visibilityToggle:!0}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("wb.settings_default_mode"),subtitle:d.getMessage("wb.settings_taskbox_sub")}),i.jsx(cA,{children:i.jsx(KA,{name:"taskBoxMode",category:"widgets",items:e})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("wb.settings_recent")}),i.jsx(cA,{children:i.jsx(Qs,{name:"recentChats",category:"widgets"})})]})]})}const qf=["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"];function $f({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const[t,n]=b.useState(!1),a="modals.main.settings.sections.advanced",s=()=>localStorage.getItem("welcomePreview")!=="true"?i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.data"),subtitle:d.getMessage("modals.main.settings.sections.advanced.data_description")}),i.jsxs("div",{className:"resetDataButtonsLayout",children:[i.jsx(vA,{onClick:()=>n(!0),icon:i.jsx(mo,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{onClick:()=>xo(),icon:i.jsx(vo,{}),label:d.getMessage("modals.main.settings.buttons.export")}),i.jsx(vA,{onClick:()=>document.getElementById("file-input").click(),icon:i.jsx(Uo,{}),label:d.getMessage("modals.main.settings.buttons.import")})]}),i.jsx(Ms,{id:"file-input",accept:"application/json",type:"settings",loadFunction:c=>Io(c)})]}):i.jsx("div",{className:"emptyItems",children:i.jsx("div",{className:"emptyMessage",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx(Fo,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.description")})]})})}),o=e==="data";let l;return o?l=i.jsx(TA,{title:d.getMessage(`${a}.title`),secondaryTitle:d.getMessage(`${a}.data`),goBack:()=>A(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage(`${a}.title`),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsxs(i.Fragment,{children:[i.jsx(s,{}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>n(!1),isOpen:t,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Co,{modalClose:()=>n(!1)})})]}):i.jsxs(i.Fragment,{children:[i.jsx(Rn,{title:d.getMessage(`${a}.data`),subtitle:d.getMessage(`${a}.data_subtitle`),onClick:()=>A("data",r),icon:i.jsx(Qo,{})}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.timezone.title"),subtitle:d.getMessage("modals.main.settings.sections.advanced.timezone.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"timezone",category:"timezone",items:[{value:"auto",text:d.getMessage("modals.main.settings.sections.advanced.timezone.automatic")},...qf.map(c=>({value:c,text:c}))]})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.tab_name"),subtitle:d.getMessage("modals.main.settings.sections.advanced.tab_name_subtitle")}),i.jsx(cA,{children:i.jsx(nr,{name:"tabName",default:d.getMessage("tabname"),category:"other"})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.custom_css"),subtitle:d.getMessage("modals.main.settings.sections.advanced.custom_css_subtitle")}),i.jsx(cA,{children:i.jsx(nr,{name:"customcss",textarea:!0,category:"other",customcss:!0})})]})]})]})}function Ah({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const t=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.theme.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.theme.description")}),i.jsx(cA,{children:i.jsx(Bn,{name:"theme",options:[{name:d.getMessage("modals.main.settings.sections.appearance.theme.auto"),value:"auto"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.light"),value:"light"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.dark"),value:"dark"}],category:"other"})})]}),n=()=>{const c="modals.main.settings.sections.appearance.font.weight";return i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.font.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.font.description")}),i.jsxs(cA,{children:[i.jsx(nr,{title:d.getMessage("modals.main.settings.sections.appearance.font.custom"),name:"font",upperCaseFirst:!0,category:"other"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.weight.title"),name:"fontweight",category:"other",items:[{value:"100",text:d.getMessage(c+".thin")},{value:"200",text:d.getMessage(c+".extra_light")},{value:"300",text:d.getMessage(c+".light")},{value:"400",text:d.getMessage(c+".normal")},{value:"500",text:d.getMessage(c+".medium")},{value:"600",text:d.getMessage(c+".semi_bold")},{value:"700",text:d.getMessage(c+".bold")},{value:"800",text:d.getMessage(c+".extra_bold")}]}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.style.title"),name:"fontstyle",category:"other",items:[{value:"normal",text:d.getMessage("modals.main.settings.sections.appearance.font.style.normal")},{value:"italic",text:d.getMessage("modals.main.settings.sections.appearance.font.style.italic")},{value:"oblique",text:d.getMessage("modals.main.settings.sections.appearance.font.style.oblique")}]})]})]})},a=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.style.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.style.description")}),i.jsx(cA,{children:i.jsx(Bn,{name:"widgetStyle",element:".other",options:[{name:d.getMessage("modals.main.settings.sections.appearance.style.legacy"),value:"legacy"},{name:d.getMessage("modals.main.settings.sections.appearance.style.new"),value:"new"}],category:"widgets"})})]}),s=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description")}),i.jsxs(cA,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.title"),name:"textBorder",category:"other",items:[{value:"new",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.new")},{value:"true",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.old")},{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.none")}]}),i.jsx(mA,{text:d.getMessage("modals.main.settings.sections.appearance.accessibility.animations"),name:"animations",category:"other"}),i.jsx(at,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.toast_duration"),name:"toastDisplayTime",default:"2500",step:"100",min:"500",max:"5000",marks:st.toast,display:" "+d.getMessage("modals.main.settings.sections.appearance.accessibility.milliseconds")})]})]}),o=e==="accessibility";let l;return o?l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),goBack:()=>A(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsx(s,{}):i.jsxs(i.Fragment,{children:[i.jsx(Rn,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description"),icon:i.jsx(bo,{}),onClick:()=>A("accessibility",r)}),i.jsx(t,{}),i.jsx(n,{}),i.jsx(a,{})]})]})}const eh=b.memo(Ah),th=`BSD 3-Clause License
-
-Copyright (c) 2019-2026 The Mue Authors
-Copyright (c) 2018-2019 David Ralph
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-3. Neither the name of the copyright holder nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-`;function rh(){const e=Object.keys(yo),{MUE_REPO_URL:A,MUE_VERSION:r,REPO_URL:t,WEBSITE_URL:n}=d.constants;return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_credits")}),i.jsx(rA,{children:i.jsx(nA,{title:"WebBrain",subtitle:"The WebBrain new tab is free software, licensed GPL-3.0-or-later, and makes no network requests of its own."})}),i.jsx(rA,{children:i.jsx(nA,{title:`Based on Mue ${r}`,subtitle:i.jsxs(i.Fragment,{children:["Derived from ",i.jsx("a",{href:A,target:"_blank",rel:"noreferrer",children:"Mue"})," by The Mue Authors and David Ralph, used under the BSD-3-Clause license reproduced below. Mue is not affiliated with or endorsing WebBrain."]})})}),i.jsx(rA,{children:i.jsx(nA,{title:d.getMessage("wb.settings_bundled_photos"),subtitle:`${e.join(", ")}. Offline images shipped with Mue (Unsplash, Pexels and Pixabay).`})}),i.jsx(rA,{children:i.jsx(nA,{title:"Fonts and icons",subtitle:"Inter, Lexend Deca and Montserrat (SIL Open Font License); Material Design icons via react-icons."})}),i.jsx(rA,{final:!0,children:i.jsx(nA,{title:"Mue license",subtitle:i.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},children:th})})}),i.jsxs("p",{style:{opacity:.7,fontSize:"0.85rem"},children:[i.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:n.replace("https://","")})," · ",i.jsx("a",{href:t,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})}function nh(){return i.jsx("span",{className:"greeting preview",children:"Good Morning"})}const ah=b.memo(nh),sh=b.lazy(()=>Eo(()=>import("./index-IXgZpYJT.js"),__vite__mapDeps([0,1,2]),import.meta.url));function ih(){return localStorage.getItem("timeType")==="analogue"?i.jsx(b.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx("div",{className:"clockBackground",children:i.jsx(sh,{className:"analogclock clock-container",value:"2022-10-07T17:00:00+00:00",size:50})})}):localStorage.getItem("timeType")==="percentageComplete"?i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"68%"}):localStorage.getItem("timeType")==="verticalClock"?i.jsxs("span",{className:"vertical-clock clock-container",style:{fontSize:"30px"},children:[i.jsx("div",{className:"hour",children:"10"}),i.jsx("div",{className:"minute",children:"23"})]}):i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"10:24"})}const oh=b.memo(ih);function lh(e){return On({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(e)}function ch(e){return On({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"},child:[]}]})(e)}function gh(e){return On({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17.625 1.499c-2.32 0-4.354 1.203-5.625 3.03-1.271-1.827-3.305-3.03-5.625-3.03C3.129 1.499 0 4.253 0 8.249c0 4.275 3.068 7.847 5.828 10.227a33.14 33.14 0 0 0 5.616 3.876l.028.017.008.003-.001.003c.163.085.342.126.521.125.179.001.358-.041.521-.125l-.001-.003.008-.003.028-.017a33.14 33.14 0 0 0 5.616-3.876C20.932 16.096 24 12.524 24 8.249c0-3.996-3.129-6.75-6.375-6.75zm-.919 15.275a30.766 30.766 0 0 1-4.703 3.316l-.004-.002-.004.002a30.955 30.955 0 0 1-4.703-3.316c-2.677-2.307-5.047-5.298-5.047-8.523 0-2.754 2.121-4.5 4.125-4.5 2.06 0 3.914 1.479 4.544 3.684.143.495.596.797 1.086.796.49.001.943-.302 1.085-.796.63-2.205 2.484-3.684 4.544-3.684 2.004 0 4.125 1.746 4.125 4.5 0 3.225-2.37 6.216-5.048 8.523z"},child:[]}]})(e)}function uh(){return i.jsx("div",{className:"quickLinksSkeleton",children:i.jsxs("div",{className:"circles",children:[i.jsx("div",{children:i.jsx(lh,{})}),i.jsx("div",{children:i.jsx(ch,{})}),i.jsx("div",{children:i.jsx(gh,{})})]})})}const Bh=b.memo(uh);function dh(){return i.jsx("span",{className:"date",children:"Thursday January 1st"})}const fh=b.memo(dh);function hh(){return i.jsx("h2",{className:"message",children:i.jsxs("span",{children:["Message",i.jsx("br",{})]})})}const wh=b.memo(hh),ph={greeting:d.getMessage("modals.main.settings.sections.greeting.title"),time:d.getMessage("modals.main.settings.sections.time.title"),quicklinks:d.getMessage("modals.main.settings.sections.quicklinks.title"),date:d.getMessage("modals.main.settings.sections.date.title"),message:d.getMessage("modals.main.settings.sections.message.title")},Ch=({id:e})=>{const{attributes:A,listeners:r,setNodeRef:t,transform:n,transition:a}=vs({id:e}),s={transform:Us.Transform.toString(n),transition:a};return i.jsxs("li",{ref:t,style:s,...A,...r,className:"sortableItem",children:[ph[e],i.jsx(ms,{})]})},Qh=()=>{const[e,A]=b.useState(()=>JSON.parse(localStorage.getItem("order"))||["greeting","time","quicklinks","date","message"]),r=Fs(ar(Es),ar(ys,{coordinateGetter:bs})),t=s=>{const{active:o,over:l}=s;l&&o.id!==l.id&&A(c=>{const g=c.indexOf(o.id),B=c.indexOf(l.id);return Ls(c,g,B)})},n=s=>s==="quicklinks"?localStorage.getItem("quicklinksenabled")==="true":localStorage.getItem(s)==="true",a=s=>{switch(s){case"greeting":return i.jsx(ah,{});case"time":return i.jsx(oh,{});case"quicklinks":return i.jsx(Bh,{});case"date":return i.jsx(fh,{});case"message":return i.jsx(wh,{});default:return null}};return b.useEffect(()=>{localStorage.setItem("order",JSON.stringify(e)),d.stats.postEvent("setting","Widget order"),hA.emit("refresh","widgets")},[e]),i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"mainTitle",children:d.getMessage("modals.main.marketplace.product.overview")}),i.jsxs("div",{className:"overviewGrid",children:[i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.welcome.buttons.preview")}),i.jsx("div",{className:"tabPreview",children:i.jsx("div",{className:"previewItem",style:{maxWidth:"50%"},children:e.map((s,o)=>n(s)?i.jsx("div",{className:"previewItem",children:a(s)},`item-${s}`):null)})})]}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.order.title")}),i.jsx(xs,{sensors:r,collisionDetection:Is,onDragEnd:t,children:i.jsx(Hs,{items:e,strategy:Ss,children:i.jsx("ul",{className:"sortableContainer",children:e.map(s=>n(s)?i.jsx(Ch,{id:s},s):null)})})})]})]})]})},us=[{label:"modals.main.marketplace.product.overview",name:"order",component:Qh},{label:"modals.main.settings.sections.appearance.navbar.title",name:"navbar",component:Vo},{label:"modals.main.settings.sections.greeting.title",name:"greeting",component:Jo},{label:"modals.main.settings.sections.time.title",name:"time",component:Wo},{label:"modals.main.settings.sections.quicklinks.title",name:"quicklinks",component:$o},{label:"modals.main.settings.sections.date.title",name:"date",component:Yo},{label:"modals.main.settings.sections.message.title",name:"message",component:Al},{label:"modals.main.settings.sections.background.title",name:"background",component:Vi},{label:"wb.settings_taskbox",name:"taskbox",component:zf},{label:"modals.main.settings.sections.appearance.title",name:"appearance",component:eh},{label:"modals.main.settings.sections.advanced.title",name:"advanced",component:$f},{label:"wb.settings_credits",name:"credits",component:rh}];function mh(e){const A=Qt(),r=b.useMemo(()=>us.map(t=>({...t,translatedLabel:A(t.label)})),[A]);return i.jsx(No,{changeTab:t=>e.changeTab(t),current:"settings",currentTab:e.currentTab,onSectionChange:e.onSectionChange,onSubSectionChange:e.onSubSectionChange,currentSubSection:e.currentSubSection,deepLinkData:e.deepLinkData,navigationTrigger:e.navigationTrigger,sections:us,children:r.map(({label:t,name:n,component:a,translatedLabel:s})=>i.jsx("div",{label:s,name:n,children:i.jsx(a,{currentSubSection:e.currentSubSection,onSubSectionChange:e.onSubSectionChange,sectionName:n})},n))})}const Uh=b.memo(mh);export{Uh as default};
diff --git a/src/firefox/newtab/assets/index-CdhTpdYh.js b/src/chrome/newtab/assets/index-CEGyrx1j.js
similarity index 97%
rename from src/firefox/newtab/assets/index-CdhTpdYh.js
rename to src/chrome/newtab/assets/index-CEGyrx1j.js
index 1c05248d2..2cbd50a63 100644
--- a/src/firefox/newtab/assets/index-CdhTpdYh.js
+++ b/src/chrome/newtab/assets/index-CEGyrx1j.js
@@ -1,4 +1,4 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Clock-okasD9hI.css","./Settings-DPCKRiko.js","./Settings-BkGHEXAt.css"])))=>i.map(i=>d[i]);
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Clock-okasD9hI.css","./Settings-CuZKKPjT.js","./Settings-BkGHEXAt.css"])))=>i.map(i=>d[i]);
var XT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Em(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function ES(o){if(Object.prototype.hasOwnProperty.call(o,"__esModule"))return o;var n=o.default;if(typeof n=="function"){var u=function l(){var d=!1;try{d=this instanceof l}catch{}return d?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};u.prototype=n.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(o).forEach(function(l){var d=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(u,l,d.get?d:{enumerable:!0,get:function(){return o[l]}})}),u}var Kc={exports:{}},zs={};var b_;function jS(){if(b_)return zs;b_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function u(l,d,c){var f=null;if(c!==void 0&&(f=""+c),d.key!==void 0&&(f=""+d.key),"key"in d){c={};for(var p in d)p!=="key"&&(c[p]=d[p])}else c=d;return d=c.ref,{$$typeof:o,type:l,key:f,ref:d!==void 0?d:null,props:c}}return zs.Fragment=n,zs.jsx=u,zs.jsxs=u,zs}var y_;function DS(){return y_||(y_=1,Kc.exports=jS()),Kc.exports}var w=DS();const Lv="wbnt:";function Iv(o,n=Lv){const u=()=>{const d=[];for(let c=0;c<o.length;c+=1){const f=o.key(c);f!=null&&f.startsWith(n)&&d.push(f.slice(n.length))}return d},l={getItem:d=>o.getItem(n+String(d)),setItem:(d,c)=>o.setItem(n+String(d),String(c)),removeItem:d=>o.removeItem(n+String(d)),clear:()=>u().forEach(d=>o.removeItem(n+d)),key:d=>u()[d]??null};return new Proxy(Object.create(null),{get(d,c){if(c==="length")return u().length;if(Object.prototype.hasOwnProperty.call(l,c))return l[c];if(typeof c!="string")return;const f=o.getItem(n+c);return f===null?void 0:f},set(d,c,f){return typeof c!="string"?!1:(o.setItem(n+c,String(f)),!0)},deleteProperty(d,c){return typeof c=="string"&&o.removeItem(n+c),!0},has(d,c){return Object.prototype.hasOwnProperty.call(l,c)||c==="length"||typeof c=="string"&&o.getItem(n+c)!==null},ownKeys:()=>u(),getOwnPropertyDescriptor(d,c){if(typeof c!="string")return;const f=o.getItem(n+c);return f===null?void 0:{value:f,enumerable:!0,configurable:!0,writable:!0}}})}function OS(o=globalThis){const n=o.localStorage,u=Iv(n);return Object.defineProperty(o,"localStorage",{configurable:!0,get:()=>u}),{real:n,shim:u}}function qS(){const o=new Map;return{get length(){return o.size},key:n=>[...o.keys()][n]??null,getItem:n=>o.has(String(n))?o.get(String(n)):null,setItem:(n,u)=>{o.set(String(n),String(u))},removeItem:n=>{o.delete(String(n))},clear:()=>o.clear()}}let Ll=null;try{const o=`${Lv}__probe`;window.localStorage.setItem(o,"1");const n=window.localStorage.getItem(o);if(window.localStorage.removeItem(o),n!=="1")throw new Error("localStorage did not keep a value");Ll=OS(window).real}catch{try{const o=qS(),n=Iv(o);Object.defineProperty(window,"localStorage",{configurable:!0,get:()=>n})}catch{}Ll=null}var Yc={exports:{}},Ts={},Wc={exports:{}},Qc={};var k_;function RS(){return k_||(k_=1,(function(o){function n(I,T){var K=I.length;I.push(T);e:for(;0<K;){var ie=K-1>>>1,ne=I[ie];if(0<d(ne,T))I[ie]=T,I[K]=ne,K=ie;else break e}}function u(I){return I.length===0?null:I[0]}function l(I){if(I.length===0)return null;var T=I[0],K=I.pop();if(K!==T){I[0]=K;e:for(var ie=0,ne=I.length,ye=ne>>>1;ie<ye;){var Ce=2*(ie+1)-1,Ve=I[Ce],j=Ce+1,te=I[j];if(0>d(Ve,K))j<ne&&0>d(te,Ve)?(I[ie]=te,I[j]=K,ie=j):(I[ie]=Ve,I[Ce]=K,ie=Ce);else if(j<ne&&0>d(te,K))I[ie]=te,I[j]=K,ie=j;else break e}}return T}function d(I,T){var K=I.sortIndex-T.sortIndex;return K!==0?K:I.id-T.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;o.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();o.unstable_now=function(){return f.now()-p}}var h=[],y=[],_=1,g=null,b=3,S=!1,C=!1,z=!1,A=!1,E=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function G(I){for(var T=u(y);T!==null;){if(T.callback===null)l(y);else if(T.startTime<=I)l(y),T.sortIndex=T.expirationTime,n(h,T);else break;T=u(y)}}function Z(I){if(z=!1,G(I),!C)if(u(h)!==null)C=!0,H||(H=!0,ee());else{var T=u(y);T!==null&&Y(Z,T.startTime-I)}}var H=!1,D=-1,q=5,V=-1;function $(){return A?!0:!(o.unstable_now()-V<q)}function W(){if(A=!1,H){var I=o.unstable_now();V=I;var T=!0;try{e:{C=!1,z&&(z=!1,x(D),D=-1),S=!0;var K=b;try{t:{for(G(I),g=u(h);g!==null&&!(g.expirationTime>I&&$());){var ie=g.callback;if(typeof ie=="function"){g.callback=null,b=g.priorityLevel;var ne=ie(g.expirationTime<=I);if(I=o.unstable_now(),typeof ne=="function"){g.callback=ne,G(I),T=!0;break t}g===u(h)&&l(h),G(I)}else l(h);g=u(h)}if(g!==null)T=!0;else{var ye=u(y);ye!==null&&Y(Z,ye.startTime-I),T=!1}}break e}finally{g=null,b=K,S=!1}T=void 0}}finally{T?ee():H=!1}}}var ee;if(typeof L=="function")ee=function(){L(W)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,X=ae.port2;ae.port1.onmessage=W,ee=function(){X.postMessage(null)}}else ee=function(){E(W,0)};function Y(I,T){D=E(function(){I(o.unstable_now())},T)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(I){I.callback=null},o.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<I?Math.floor(1e3/I):5},o.unstable_getCurrentPriorityLevel=function(){return b},o.unstable_next=function(I){switch(b){case 1:case 2:case 3:var T=3;break;default:T=b}var K=b;b=T;try{return I()}finally{b=K}},o.unstable_requestPaint=function(){A=!0},o.unstable_runWithPriority=function(I,T){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var K=b;b=I;try{return T()}finally{b=K}},o.unstable_scheduleCallback=function(I,T,K){var ie=o.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ie+K:ie):K=ie,I){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=K+ne,I={id:_++,callback:T,priorityLevel:I,startTime:K,expirationTime:ne,sortIndex:-1},K>ie?(I.sortIndex=K,n(y,I),u(h)===null&&I===u(y)&&(z?(x(D),D=-1):z=!0,Y(Z,K-ie))):(I.sortIndex=ne,n(h,I),C||S||(C=!0,H||(H=!0,ee()))),I},o.unstable_shouldYield=$,o.unstable_wrapCallback=function(I){var T=b;return function(){var K=b;b=T;try{return I.apply(this,arguments)}finally{b=K}}}})(Qc)),Qc}var w_;function BS(){return w_||(w_=1,Wc.exports=RS()),Wc.exports}var Zc={exports:{}},be={};var S_;function LS(){if(S_)return be;S_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.for("react.view_transition"),S=Symbol.iterator;function C(j){return j===null||typeof j!="object"?null:(j=S&&j[S]||j["@@iterator"],typeof j=="function"?j:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,E={};function x(j,te,se){this.props=j,this.context=te,this.refs=E,this.updater=se||z}x.prototype.isReactComponent={},x.prototype.setState=function(j,te){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,te,"setState")},x.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function L(){}L.prototype=x.prototype;function G(j,te,se){this.props=j,this.context=te,this.refs=E,this.updater=se||z}var Z=G.prototype=new L;Z.constructor=G,A(Z,x.prototype),Z.isPureReactComponent=!0;var H=Array.isArray;function D(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function $(j,te,se){var ce=se.ref;return{$$typeof:o,type:j,key:te,ref:ce!==void 0?ce:null,props:se}}function W(j,te){return $(j.type,te,j.props)}function ee(j){return typeof j=="object"&&j!==null&&j.$$typeof===o}function ae(j){var te={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(se){return te[se]})}var X=/\/+/g;function Y(j,te){return typeof j=="object"&&j!==null&&j.key!=null?ae(""+j.key):te.toString(36)}function I(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(D,D):(j.status="pending",j.then(function(te){j.status==="pending"&&(j.status="fulfilled",j.value=te)},function(te){j.status==="pending"&&(j.status="rejected",j.reason=te)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function T(j,te,se,ce,ke){var we=typeof j;(we==="undefined"||we==="boolean")&&(j=null);var me=!1;if(j===null)me=!0;else switch(we){case"bigint":case"string":case"number":me=!0;break;case"object":switch(j.$$typeof){case o:case n:me=!0;break;case _:return me=j._init,T(me(j._payload),te,se,ce,ke)}}if(me)return ke=ke(j),me=ce===""?"."+Y(j,0):ce,H(ke)?(se="",me!=null&&(se=me.replace(X,"$&/")+"/"),T(ke,te,se,"",function(At){return At})):ke!=null&&(ee(ke)&&(ke=W(ke,se+(ke.key==null||j&&j.key===ke.key?"":(""+ke.key).replace(X,"$&/")+"/")+me)),te.push(ke)),1;me=0;var ue=ce===""?".":ce+":";if(H(j))for(var fe=0;fe<j.length;fe++)ce=j[fe],we=ue+Y(ce,fe),me+=T(ce,te,se,we,ke);else if(fe=C(j),typeof fe=="function")for(j=fe.call(j),fe=0;!(ce=j.next()).done;)ce=ce.value,we=ue+Y(ce,fe++),me+=T(ce,te,se,we,ke);else if(we==="object"){if(typeof j.then=="function")return T(I(j),te,se,ce,ke);throw te=String(j),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return me}function K(j,te,se){if(j==null)return j;var ce=[],ke=0;return T(j,ce,"","",function(we){return te.call(se,we,ke++)}),ce}function ie(j){if(j._status===-1){var te=j._result,se=te();se.then(function(ce){(j._status===0||j._status===-1)&&(j._status=1,j._result=ce,se.status===void 0&&(se.status="fulfilled",se.value=ce))},function(ce){(j._status===0||j._status===-1)&&(j._status=2,j._result=ce,se.status===void 0&&(se.status="rejected",se.reason=ce))}),j._status===-1&&(j._status=0,j._result=se)}if(j._status===1)return j._result.default;throw j._result}var ne=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)};function ye(j){var te=q.T,se={};se.types=te!==null?te.types:null,q.T=se;try{var ce=j(),ke=q.S;ke!==null&&ke(se,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(D,ne)}catch(we){ne(we)}finally{te!==null&&se.types!==null&&(te.types=se.types),q.T=te}}function Ce(j){var te=q.T;if(te!==null){var se=te.types;se===null?te.types=[j]:se.indexOf(j)===-1&&se.push(j)}else ye(Ce.bind(null,j))}var Ve={map:K,forEach:function(j,te,se){K(j,function(){te.apply(this,arguments)},se)},count:function(j){var te=0;return K(j,function(){te++}),te},toArray:function(j){return K(j,function(te){return te})||[]},only:function(j){if(!ee(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return be.Activity=g,be.Children=Ve,be.Component=x,be.Fragment=u,be.Profiler=d,be.PureComponent=G,be.StrictMode=l,be.Suspense=h,be.ViewTransition=b,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,be.__COMPILER_RUNTIME={__proto__:null,c:function(j){return q.H.useMemoCache(j)}},be.addTransitionType=Ce,be.cache=function(j){return function(){return j.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(j,te,se){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ce=A({},j.props),ke=j.key;if(te!=null)for(we in te.key!==void 0&&(ke=""+te.key),te)!V.call(te,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&te.ref===void 0||(ce[we]=te[we]);var we=arguments.length-2;if(we===1)ce.children=se;else if(1<we){for(var me=Array(we),ue=0;ue<we;ue++)me[ue]=arguments[ue+2];ce.children=me}return $(j.type,ke,ce)},be.createContext=function(j){return j={$$typeof:f,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:c,_context:j},j},be.createElement=function(j,te,se){var ce,ke={},we=null;if(te!=null)for(ce in te.key!==void 0&&(we=""+te.key),te)V.call(te,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(ke[ce]=te[ce]);var me=arguments.length-2;if(me===1)ke.children=se;else if(1<me){for(var ue=Array(me),fe=0;fe<me;fe++)ue[fe]=arguments[fe+2];ke.children=ue}if(j&&j.defaultProps)for(ce in me=j.defaultProps,me)ke[ce]===void 0&&(ke[ce]=me[ce]);return $(j,we,ke)},be.createRef=function(){return{current:null}},be.forwardRef=function(j){return{$$typeof:p,render:j}},be.isValidElement=ee,be.lazy=function(j){return{$$typeof:_,_payload:{_status:-1,_result:j},_init:ie}},be.memo=function(j,te){return{$$typeof:y,type:j,compare:te===void 0?null:te}},be.startTransition=ye,be.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},be.use=function(j){return q.H.use(j)},be.useActionState=function(j,te,se){return q.H.useActionState(j,te,se)},be.useCallback=function(j,te){return q.H.useCallback(j,te)},be.useContext=function(j){return q.H.useContext(j)},be.useDebugValue=function(){},be.useDeferredValue=function(j,te){return q.H.useDeferredValue(j,te)},be.useEffect=function(j,te){return q.H.useEffect(j,te)},be.useEffectEvent=function(j){return q.H.useEffectEvent(j)},be.useId=function(){return q.H.useId()},be.useImperativeHandle=function(j,te,se){return q.H.useImperativeHandle(j,te,se)},be.useInsertionEffect=function(j,te){return q.H.useInsertionEffect(j,te)},be.useLayoutEffect=function(j,te){return q.H.useLayoutEffect(j,te)},be.useMemo=function(j,te){return q.H.useMemo(j,te)},be.useOptimistic=function(j,te){return q.H.useOptimistic(j,te)},be.useReducer=function(j,te,se){return q.H.useReducer(j,te,se)},be.useRef=function(j){return q.H.useRef(j)},be.useState=function(j){return q.H.useState(j)},be.useSyncExternalStore=function(j,te,se){return q.H.useSyncExternalStore(j,te,se)},be.useTransition=function(){return q.H.useTransition()},be.version="19.3.1",be}var M_;function Ws(){return M_||(M_=1,Zc.exports=LS()),Zc.exports}var Xc={exports:{}},Mt={};var A_;function IS(){if(A_)return Mt;A_=1;var o=Ws();function n(_){var g="https://react.dev/errors/"+_;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+_+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var l={d:{f:u,r:function(){throw Error(n(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},d=Symbol.for("react.portal"),c=Symbol.for("react.recoverable"),f=Symbol.for("react.optimistic_key");function p(_,g,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:S==null?null:S===f?f:""+S,children:_,containerInfo:g,implementation:b}}var h=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(_,g){if(_==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Mt.browser=function(_){return{$$typeof:c,_reason:_}},Mt.createPortal=function(_,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return p(_,g,null,b)},Mt.flushSync=function(_){var g=h.T,b=l.p;try{if(h.T=null,l.p=2,_)return _()}finally{h.T=g,l.p=b,l.d.f()}},Mt.preconnect=function(_,g){typeof _=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(_,g))},Mt.prefetchDNS=function(_){typeof _=="string"&&l.d.D(_)},Mt.preinit=function(_,g){if(typeof _=="string"&&g&&typeof g.as=="string"){var b=g.as,S=y(b,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,z=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?l.d.S(_,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:z}):b==="script"&&l.d.X(_,{crossOrigin:S,integrity:C,fetchPriority:z,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Mt.preinitModule=function(_,g){if(typeof _=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=y(g.as,g.crossOrigin);l.d.M(_,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}}else g==null&&l.d.M(_)},Mt.preload=function(_,g){if(typeof _=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,S=y(b,g.crossOrigin);l.d.L(_,b,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Mt.preloadModule=function(_,g){if(typeof _=="string")if(g){var b=y(g.as,g.crossOrigin);l.d.m(_,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}else l.d.m(_)},Mt.requestFormReset=function(_){l.d.r(_)},Mt.unstable_batchedUpdates=function(_,g){return _(g)},Mt.useFormState=function(_,g,b){return h.H.useFormState(_,g,b)},Mt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Mt.version="19.3.1",Mt}var C_;function jm(){if(C_)return Xc.exports;C_=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(n){console.error(n)}}return o(),Xc.exports=IS(),Xc.exports}var x_;function US(){if(x_)return Ts;x_=1;var o=BS(),n=Ws(),u=jm();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(l(188))}function y(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,i=t;;){var s=a.return;if(s===null)break;var r=s.alternate;if(r===null){if(i=s.return,i!==null){a=i;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===a)return h(s),e;if(r===i)return h(s),t;r=r.sibling}throw Error(l(188))}if(a.return!==i.return)a=s,i=r;else{for(var m=!1,v=s.child;v;){if(v===a){m=!0,a=s,i=r;break}if(v===i){m=!0,i=s,a=r;break}v=v.sibling}if(!m){for(v=r.child;v;){if(v===a){m=!0,a=r,i=s;break}if(v===i){m=!0,i=r,a=s;break}v=v.sibling}if(!m)throw Error(l(189))}}if(a.alternate!==i)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}function g(e,t,a,i,s,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,i,s,r)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&g(e.child,t,a,i,s,r))return!0;e=e.sibling}return!1}function b(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function S(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function C(e){var t=[null,null],a=b(e);return a===null||z(t,e,a.child,{foundSelf:!1}),t}function z(e,t,a,i){for(;a!==null;){if(a===t)i.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(i.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&z(e,t,a.child,i))return!0;a=a.sibling}return!1}function A(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(l(559))}}var E=null,x=null;function L(e,t,a){return e===a?!0:e===t?(E=e,!0):!1}function G(e,t,a){return e===a?(x=e,!1):e===t?(x!==null&&(E=e),!0):!1}function Z(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function H(e,t,a){for(var i=0,s=e;s;s=a(s))i++;s=0;for(var r=t;r;r=a(r))s++;for(;0<i-s;)e=a(e),i--;for(;0<s-i;)t=a(t),s--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var D=Object.assign,q=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Ce=Symbol.for("react.legacy_hidden"),Ve=Symbol.for("react.memo_cache_sentinel"),j=Symbol.for("react.view_transition"),te=Symbol.for("react.recoverable"),se=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Symbol.for("react.client.reference");function we(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case ae:return"Profiler";case ee:return"StrictMode";case T:return"Suspense";case K:return"SuspenseList";case ye:return"Activity";case j:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case $:return"Portal";case Y:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}var me=Array.isArray,ue=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,At={pending:!1,data:null,method:null,action:null},Qt=[],Zt=-1;function _t(e){return{current:e}}function tt(e){0>Zt||(e.current=Qt[Zt],Qt[Zt]=null,Zt--)}function Le(e,t){Zt++,Qt[Zt]=e.current,e.current=t}var Bt=_t(null),Lt=_t(null),Xt=_t(null),Xa=_t(null);function Jo(e,t){switch(Le(Xt,t),Le(Lt,e),Le(Bt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?zh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=zh(t),e=Th(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}tt(Bt),Le(Bt,e)}function Ja(){tt(Bt),tt(Lt),tt(Xt)}function On(e){var t=e.memoizedState;t!==null&&(yn._currentValue=t.memoizedState,Le(Xa,e)),t=Bt.current;var a=Th(t,e.type);t!==a&&(Le(Lt,e),Le(Bt,a))}function Ni(e){Lt.current===e&&(tt(Bt),tt(Lt)),Xa.current===e&&(tt(Xa),yn._currentValue=At)}var Da,$a;function It(e){if(Da===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Da=t&&t[1]||"",$a=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Da+e+$a}var Ei=!1;function la(e,t){if(!e||Ei)return"";Ei=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(oe){var O=oe}Reflect.construct(e,[],J)}else{try{J.call()}catch(oe){O=oe}J=!1;try{var P=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),J=!0,new e}finally{J&&(P!==void 0?Object.defineProperty(e.prototype,"props",P):delete e.prototype.props)}}}else{try{throw Error()}catch(oe){O=oe}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(oe){if(oe&&O&&typeof oe.stack=="string")return[oe.stack,O.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=i.DetermineComponentFrameRoot(),m=r[0],v=r[1];if(m&&v){var M=m.split(`
@@ -847,7 +847,7 @@ Not: "{category}" kategorisine ait görselleri beğenmediyseniz, arka plan kayna
Примітка: якщо вам не подобаються "{category}" зображення, ви можете вимкнути цю категорію у налаштуваннях джерела фону.`,confirm:"Підтвердити"},search:"Пошук",quicklinks:{new:"Нове посилання",edit:"Редагувати посилання",name:"Ім'я",url:"URL",icon:"Іконка (необов'язково)",add:"Додати",name_error:"Необхідно вказати ім'я",url_error:"Необхідно вказати URL-адресу"},date:{week:"Тиждень"},weather:{not_found:"Не знайдено",meters:"{amount} метрів",extra_information:"Додаткова інформація",feels_like:"Відчувається як {amount}"},quote:{link_tooltip:"Відкрити у Вікіпедії",share:"Поділитися",copy:"Скопіювати",favourite:"Улюблене",unfavourite:"Неулюблене"},navbar:{tooltips:{refresh:"Оновити"},notes:{title:"Примітки",placeholder:"Введіть тут"},todo:{title:"Todo",pin:"Прикріпити",add:"Додати",no_todos:"Немає Todos"},apps:{title:"Додатки",no_apps:"Не знайдено жодного посилання на додаток"}}},LM=JSON.parse(`{"main":{"title":"Параметри","loading":"Завантаження...","file_upload_error":"Розмір файлу більше 2 МБ","navbar":{"settings":"Налаштування","library":"Доповнення","discover":"Маркетплейс"},"error_boundary":{"title":"Помилка","message":"Не вдалося завантажити цей компонент Mue","report_error":"Надіслати звіт про помилку","sent":"Відправлено!","refresh":"Оновити"},"settings":{"enabled":"Увімкнено","open_knowledgebase":"Відкрита база знань","additional_settings":"Додаткові налаштування","reminder":{"title":"ЗАМІТКА","message":"Щоб всі зміни набули чинності, сторінку необхідно оновити."},"sections":{"header":{"more_info":"Більше інформації","report_issue":"Повідомити про проблему","enabled":"Виберіть, показувати цей віджет чи ні","size":"Повзунок для керування розміром віджету"},"time":{"title":"Час","format":"Формат","type":"Тип","type_subtitle":"Виберіть, чи відображати час у цифровому форматі, аналоговому форматі або у відсотках від завершення дня","digital":{"title":"Цифровий","subtitle":"Змініть вигляд цифрового годинника","seconds":"Секунди","twentyfourhour":"24 години","twelvehour":"12 годин","zero":"Додатковий нуль"},"analogue":{"title":"Аналоговий","subtitle":"Змініть вигляд аналогового годинника","second_hand":"Секундна стрілка","minute_hand":"Хвилинна стрілка","hour_hand":"Годинникова стрілка","hour_marks":"Годинникові мітки","minute_marks":"Хвилинні мітки","round_clock":"Закруглений фон"},"percentage_complete":"Відсоток виконання","vertical_clock":{"title":"Вертикальний годинник","change_hour_colour":"Змінити колір тексту годинника","change_minute_colour":"Змінити колір хвилинного тексту","change_second_colour":"Змінити другий колір тексту"}},"date":{"title":"Дата","week_number":"Номер тижня","day_of_week":"День тижня","datenth":"Дата n-та","type":{"short":"Коротка","long":"Довга","subtitle":"Відображати дату в довгій чи в короткій формі"},"type_settings":"Налаштування та формат відображення для вибраного типу дати","short_date":"Коротка дата","short_format":"Короткий формат","long_format":"Довгий формат","short_separator":{"title":"Короткий сепаратор","dots":"Крапки","dash":"Тире","gaps":"Пробіли","slashes":"Слеши"}},"quote":{"title":"Цитата","additional":"Інші налаштування для налаштування стилю віджету котирувань","author_link":"Посилання на автора","author_details":"Інформація про автора","custom":"Користувацька цитата","custom_subtitle":"Встановіть свої власні користувацьки цитати","no_quotes":"Без лапок","author":"Автор","custom_buttons":"Кнопки","custom_author":"Користувацький автор","author_img":"Показати зображення автора","add":"Додати цитату","source_subtitle":"Виберіть, звідки отримувати цитати","buttons":{"title":"Кнопки","subtitle":"Виберіть, які кнопки показувати на цитаті","copy":"Скопіювати","tweet":"Твітнути","favourite":"Улюблене"}},"greeting":{"title":"Привітання","events":"Події","events_description":"Керуйте подіями на Mue, такими як дні народження.","enable_events":"Показувати повідомлення в особливі дні","default":"Привітання за замовчуванням","name":"Ім'я для привітання","birthday":"День народження","birthday_subtitle":"Показувати привітання з днем народження, коли твій день народження","birthday_age":"Рік народження","birthday_date":"Дата народження","additional":"Налаштування відображення привітання","custom":"Користувацькі події","event_name":"Назва події","day":"День","month":"Місяць","no_events":"Немає подій","no_events_description":"Додати кілька подій","add_event":"Додати подію"},"background":{"title":"Фон","transition":"Затухаючий перехід","photo_information":"Показати інформацію про фото","show_map":"Показувати карту місцезнаходження на інформації про фото, якщо вона доступна","categories":"Категорії","buttons":{"title":"Кнопки","view":"Перегляд","favourite":"Улюблені","download":"Завантажити'"},"effects":{"title":"Ефекти","subtitle":"Додати ефекти до фонових зображень","blur":"Розмиття","brightness":"Яскравість","filters":{"title":"Фільтр фону","amount":"Кількість фільтрів","grayscale":"Відтінки сірого","sepia":"Сепія","invert":"Негатив","saturate":"Насиченість","contrast":"Контраст"}},"type":{"title":"Тип","api":"API","custom_image":"Користувацьке зображення","custom_colour":"Користувацький колір/градієнт","random_colour":"Випадковий колір","random_gradient":"Випадковий градієнт"},"unsplash":{"title":"Колекція(ї) Unsplash","subtitle":"Виберіть колекцію(ї), яку ви хочете використати для фону","id":"Ідентифікатор(и) колекції","id_subtitle":"Введіть список ідентифікаторів Unsplash через кому"},"source":{"title":"Джерело","subtitle":"Виберіть, звідки взяти фонові зображення","api":"API для фону","custom_background":"Користувацький фон","custom_colour":"Користувацький колір фону","upload":"Вавантажити","add_colour":"Додати колір","add_background":"Додати фон","drop_to_upload":"Перетягніть для завантаження","formats":"Доступні формати: {list}","select":"Або виберіть","add_url":"Додати URL","disabled":"Вимкнено","loop_video":"Циклічне відео","mute_video":"Вимкнути звук відео","quality":{"title":"Якість","original":"Original","high":"Висока якість","normal":"Нормальна якість","datasaver":"Data Saver"},"custom_title":"Користувацькі зображення","custom_description":"Виберіть зображення з вашего локального комп'ютера","remove":"Видалити зображення","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Відображати","display_subtitle":"Зміна способу завантаження фону та інформації про фотографію","api":"Налаштування API","api_subtitle":"Варіанти отримання зображення із зовнішнього сервісу (API)"},"search":{"title":"Пошук","additional":"Додаткові параметри відображення та функціональності пошукового віджета","search_engine":"Пошукова система","search_engine_subtitle":"Виберіть пошукову систему в рядку пошуку","custom":"Користувацька URL-адреса пошуку","autocomplete":"Автозаповнення","autocomplete_provider":"Провайдер автозаповнення","autocomplete_provider_subtitle":"Пошукова система для автоматичного заповнення випадаючих результатів","voice_search":"Голосовий пошук","dropdown":"Випадаючий список пошуку","focus":"Фокус на відкритій вкладці","chrome_policy_warning":"У версії 7.2 можливість вибору пошукової системи в Mue була видалена відповідно до нових вимог Chrome Web Store. Тепер Mue використовує пошукову систему, встановлену за замовчуванням у вашому браузері. Ви можете змінити її в налаштуваннях Chrome."},"weather":{"title":"Погода","location":"Місцезнаходження","auto":"Auto","widget_type":"Тип віджету","temp_format":{"title":"Формат температури","celsius":"Цельсії","fahrenheit":"Фаренгейт","kelvin":"Кельвін"},"extra_info":{"title":"Extra information","show_location":"Показати розташування","show_description":"Показати опис","weather_description":"Опис погоди","cloudiness":"Хмарність","humidity":"Вологість","visibility":"Видимість","wind_speed":"Швидкість вітру","wind_direction":"Напрямок вітру","min_temp":"Мінімальна температура","max_temp":"Максимальна температура","atmospheric_pressure":"Атмосферний тиск"},"options":{"basic":"Базовий","standard":"Стандартний","expanded":"Розширений","custom":"Свій"},"custom_settings":"Користувацькі налаштування"},"quicklinks":{"title":"Швидкі посилання","additional":"Додаткові налаштування відображення швидких посилань і функцій","open_new":"Відкрити в новій вкладці","tooltip":"Спливаюча підказка","text_only":"Показувати тільки текст","add_link":"Додати посилання","no_quicklinks":"Немає швидких посилань","edit":"Редагувати","style":"Стиль","options":{"icon":"Іконка","text_only":"Тільки текст","metro":"Метро"},"styling":"Стиль швидких посилань","styling_description":"Налаштувати зовнішній вигляд швидких посилань"},"message":{"title":"Message","add":"Add message","messages":"Повідомлення","text":"Текст","no_messages":"Немає повідомлень","add_some":"Йдемо далі і додайте ще.","content":"Зміст повідомлення"},"appearance":{"title":"Оформлення","style":{"title":"Стиль віджетів","description":"Обирайте між двома стилями: застарілим (доступний для користувачів попередніх версій 7.0) та наш стильний і сучасний стиль.","legacy":"Застаріле","new":"Новий"},"theme":{"title":"Theme","description":"Змінити тему віджетів і модальних вікон Mue","auto":"Автоматично","light":"Світла","dark":"Темна"},"navbar":{"title":"Навігаційна панель","widgets":"Віджети навігаційної панелі","notes":"Примітки","refresh":"Оновити","refresh_subtitle":"Виберіть, що буде оновлюватися, коли ви натискаєте кнопку \\"Оновити\\"","hover":"Відображення тільки при наведенні","additional":"Налаштуйте стиль навігаційної панелі та кнопки, які ви хочете відображати","refresh_options":{"none":"None","page":"Сторінка"},"apps_subtitle":"Створіть ярлик для інших сайтів, які ви часто використовуєте."},"font":{"title":"Шрифт","description":"Змінити шрифт, який використовується у Mue","custom":"Користувацький шрифт","google":"Імпорт з Google Fonts","weight":{"title":"Товщина шрифту","thin":"Тонкий","extra_light":"Дуже тонкий","light":"Світло","normal":"Нормальний","medium":"Medium","semi_bold":"Напівжирний","bold":"Жирний","extra_bold":"Дуже жирний"},"style":{"title":"Стиль шрифту","normal":"Normal","italic":"Italic","oblique":"Курсив"}},"accessibility":{"title":"Доступність","description":"Налаштування спеціальних можливостей для Mue","animations":"Анімації","text_shadow":{"title":"Тінь тексту віджета","new":"Новий","old":"Старий","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Тривалість підказки","milliseconds":"мілісекунди"}},"order":{"title":"Порядок віджетів"},"advanced":{"title":"Додатково","offline_mode":"Офлайн режим","offline_subtitle":"Якщо ввімкнено, всі запити до онлайн-сервісів будуть вимкнені.","data":"Data","data_description":"Виберіть, чи потрібно експортувати налаштування Mue на комп'ютер, імпортувати існуючий файл налаштувань або скинути налаштування до значень за замовчуванням","data_subtitle":"Керуйте своїми даними на Mue.","reset_modal":{"title":"ПОПЕРЕДЖЕННЯ","question":"Ви хочете скинути Mue?","information":"Це призведе до видалення всіх даних. Якщо ви хочете зберегти свої дані та налаштування, будь ласка, спочатку експортуйте їх.","cancel":"Скасувати"},"customisation":"Кастомізація","custom_css":"Користувацький CSS","custom_css_subtitle":"Налаштуйте стиль Mue під себе за допомогою каскадних таблиць стилів (CSS).","custom_js":"Користувацький JS","tab_name":"Назва вкладки","tab_name_subtitle":"Змініть назву вкладки, яка з'являється у вашому браузері","timezone":{"title":"Часовий пояс","subtitle":"Виберіть часовий пояс зі списку замість автоматично встановленого на вашому комп'ютері","automatic":"Автоматичний"},"experimental_warning":"Зверніть увагу, що команда Mue не зможе надати підтримку, якщо у вас увімкнено експериментальний режим. Будь ласка, спочатку вимкніть його і перевірте, чи проблема не зникне, перш ніж звертатися до служби підтримки.","preview_data_disabled":{"title":"Налаштування даних вимкнено","description":"Налаштування даних вимкнено в режимі попереднього перегляду. Вийдіть із режиму попереднього перегляду, щоб скористатися цією функцією."}},"stats":{"title":"Статистика","sections":{"tabs_opened":"Відкриті вкладки","backgrounds_favourited":"Улюблені фони","backgrounds_downloaded":"Завантажені фони","quotes_favourited":"Улюблені цитати","quicklinks_added":"Додано швидкі посилання","settings_changed":"Змінено налаштування","addons_installed":"Встановлені доповнення"},"usage":"Статистика використання","achievements":"Досягнення","achievement_unlocked":"Досягнення розблоковано:{name}","unlocked":"{count} Розблоковано","locked":"Закрито","clear_modal":{"question":"Ви хочете очистити свою статистику?","information":"Це очистить усі досягнення та статистику використання."}},"experimental":{"title":"Експериментальний","warning":"Ці налаштування не були повністю протестовані/реалізовані і можуть працювати некоректно!","developer":"Developer"},"language":{"title":"Мова","quote":"Мова цитат","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Журнал змін","by":"Автор {author}"},"about":{"title":"О нас","version":{"title":"Версія","checking_update":"Перевірка наявності оновлень","update_available":"Доступне оновлення","no_update":"Оновлення не доступне","offline_mode":"Не вдається перевірити наявність оновлень в автономному режимі","error":{"title":"Не вдалося отримати інформацію про оновлення","description":"Виникла помилка"}},"contact_us":"Зв'яжіться з нами","support_mue":"Підтримайте Mue","support_subtitle":"Оскільки Mue є повністю безкоштовним, ми покладаємося на пожертви, щоб покрити рахунки за сервер і фінансувати розробку","support_donate":"Пожертвувати","form_button":"Форма","resources_used":{"title":"Використані ресурси","bg_images":"Офлайн фонові зображення"},"contributors":"Учасники","supporters":"Підтримка","no_supporters":"Наразі підтримки Муе немає","photographers":"Фотографи","curators":"Творці доповнень"}},"buttons":{"reset":"Скинути","import":"Імпорт","export":"Експорт","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"від {author}","all":"Усе","learn_more":"Дізнатися більше","photo_packs":"Набори фото","quote_packs":"Набори цитат","preset_settings":"Пресети налаштувань","no_items":"У цій категорії немає елементів","collection":"Колекція","explore_collection":"Дослідити колекцію","add_all":"Додати все до Муе","collections":"Колекції","cant_find":"Не можете знайти те, що шукаєте?","knowledgebase_one":"Завітайте на сторінку","knowledgebase_two":"база знань","knowledgebase_three":"щоб створити свій власний.","installing":"Встановлення","product":{"overview":"Огляд","information":"Інформація","last_updated":"Останнє оновлення","description":"Опис","details":"Деталі","more_from_curator":"Більше схоже на це від {name}","show_more":"Показати більше","show_less":"Показати менше","show_all":"Показати всі","showing":"Показати","no_images":"Ні. Зображення","no_quotes":"Ні. Цитати","version":"Версія","created_by":"Створено","updated_at":"Оновлено на","part_of":"Частина","explore":"Дослідити","buttons":{"addtomue":"Додати до","remove":"Видалити","update_addon":"Оновлення доповнення","back":"Назад","report":"Звіт","not_available_preview":"Недоступно в режимі попереднього перегляду"},"not_in_language":"Це доповнення недоступне вашою мовою","third_party_api":"Це доповнення використовує сторонній API","sideload_warning":"Це доповнення було завантажено збоку.","setting":"Налаштування'","value":"Значення"},"offline":{"title":"Схоже, ти не в мережі","description":"Будь ласка, підключіться до Інтернету"}},"addons":{"added":"Додано","check_updates":"Перевірте наявність оновлень","no_updates":"Оновлення не доступні","updates_available":"Доступні оновлення {amount}","empty":{"title":"Порожньо","description":"Аддони не встановлені"},"sideload":{"title":"Додаткове завантаження","description":"Встановіть аддон Mue, якого немає на маркетплейсі, зі свого комп'ютера","failed":"Не вдалося підвантажити аддон","errors":{"no_name":"Ім'я не вказано","no_author":"Автор не вказаний","no_type":"Тип не вказано","invalid_photos":"Об'єкт з недійсними фотографіями","invalid_quotes":"Неправильний об'єкт лапок"}},"sort":{"title":"Сортування","newest":"Встановлені (найновіші)","a_z":"За алфавітом (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Створити","moved_title":"Створення доповнення переїхало!","moved_description":"Після оновлення 7.1 створення аддонів було перенесено у веб-інтерфейс","moved_button":"Незабаром...."}}},"update":{"title":"Оновлення","offline":{"title":"Офлайн","description":"Неможливо отримати журнали оновлень в автономному режимі"},"error":{"title":"Помилка","description":"Не вдалося підключитися до сервера"}},"welcome":{"tip":"Коротка порада","sections":{"intro":{"title":"Ласкаво просимо до Mue Tab","description":"Дякуємо, що встановили Mue, сподіваємося, вам сподобається наше розширення.","notices":{"discord_title":"Приєднуйтесь до нашого Discord","discord_description":"Поспілкуйтеся зі спільнотою та розробниками Mue","discord_join":"Приєднатися","github_title":"Зробіть свій внесок на GitHub","github_description":"Повідомляйте про помилки, додавайте функції або зробіть пожертву","github_open":"Відкрито"}},"language":{"title":"Виберіть свою мову","description":"Mue може відображатися мовами, переліченими нижче. Ви також можете додавати нові переклади на нашій сторінці"},"theme":{"title":"Виберіть тему","description":"Mue доступний як у світлій, так і у темній темах, або може бути автоматично встановлений залежно від теми вашої системи.","tip":"За допомогою налаштувань Авто буде використано тему, встановлену на вашому комп'ютері. Цей параметр впливає на модальності і деякі віджети, що відображаються на екрані, такі як погода і нотатки."},"style":{"title":"Виберіть стиль","description":"Наразі Mue пропонує вибір між старим дизайном та нещодавно випущеним сучасним дизайном.","legacy":"Спадщина","modern":"Сучасний"},"settings":{"title":"Налаштування імпорту","description":"Встановлюєте Mue на новий пристрій? Не соромтеся імпортувати свої старі налаштування!","tip":"Ви можете експортувати свої старі налаштування, перейшовши на вкладку \\"Додатково\\" у вашому старому налаштуванні Mue. Потім вам потрібно натиснути кнопку експорту, яка завантажить JSON-файл. Ви можете завантажити цей файл сюди, щоб перенести ваші налаштування та уподобання з попередньої інсталяції Mue."},"privacy":{"title":"Параметри конфіденційності","description":"Увімкніть налаштування для додаткового захисту вашої конфіденційності за допомогою Mue.","offline_mode_description":"Увімкнення офлайн-режиму вимкне всі запити до будь-яких сервісів. Це призведе до вимкнення онлайн-фону, онлайн-котирувань, біржі, погоди, швидких посилань, журналу змін та деякої інформації про вкладки.","links":{"title":"Посилання","privacy_policy":"Політика конфіденційності","source_code":"Вихідний код"}},"final":{"title":"Останній крок","description":"Ваш досвід роботи з Mue Tab ось-ось почнеться.","changes":"Зміни","changes_description":"Щоб змінити налаштування пізніше, натисніть на іконку налаштувань у верхньому правому куті вкладки.","imported":"Імпортовані налаштування {amount}"}},"buttons":{"next":"Далі","preview":"Попередній перегляд","previous":"Попередні","close":"Закрити","finish":"Фініш"},"preview":{"description":"Наразі ви перебуваєте в режимі попереднього перегляду. Після закриття цієї вкладки налаштування буде скинуто.","continue":"Продовжити налаштування"}},"share":{"copy_link":"Скопіювати посилання","email":"Електронна пошта"}}`),IM={quote:"Скопійовані квоти",notes:"Нотатки скопійовано",reset:"Скидання успішно виконано",installed:"Успішно встановлено",uninstalled:"Успішно видалено",updated:"Успішно оновлено",error:"Щось пішло не так",imported:"Успішно імпортовано",no_storage:"Недостатньо місця для зберігання",link_copied:"Посилання скопійовано",stats_reset:"Статистику скинуто"},Sb={tabname:RM,widgets:BM,modals:LM,toasts:IM},UM="Tab mới",PM={greeting:{morning:"Chào buổi sáng",afternoon:"Chào buổi chiều",evening:"Chào buổi tối",christmas:"Merry Christmas",newyear:"Happy New Year",halloween:"Happy Halloween",birthday:"Happy Birthday"},background:{credit:"Photo by",unsplash:"on Unsplash",information:"Information",download:"Download",downloads:"Downloads",views:"Views",likes:"Likes",location:"Location",camera:"Camera",resolution:"Resolution",source:"Source",category:"Category",exclude:"Don't show again",exclude_confirm:`Are you sure you don't want to see this image again?
Note: if you don't like "{category}" images, you can deselect the category in the background source settings.`,confirm:"Confirm"},search:"Search",quicklinks:{new:"New Link",edit:"Edit Link",name:"Name",url:"URL",icon:"Icon (optional)",add:"Add",name_error:"Must provide name",url_error:"Must provide URL"},date:{week:"Week"},weather:{not_found:"Not Found",meters:"{amount} metres",extra_information:"Extra Information",feels_like:"Feels like {amount}"},quote:{link_tooltip:"Open on Wikipedia",share:"Share",copy:"Copy",favourite:"Favourite",unfavourite:"Unfavourite"},navbar:{tooltips:{refresh:"Refresh"},notes:{title:"Notes",placeholder:"Type here"},todo:{title:"Todo",pin:"Pin",add:"Add",no_todos:"No Todos"},apps:{title:"Apps",no_apps:"No app links found"}}},HM=JSON.parse(`{"main":{"title":"Options","loading":"Loading...","file_upload_error":"File is over 2MB","navbar":{"settings":"Settings","library":"Library","discover":"Discover"},"error_boundary":{"title":"Error","message":"Failed to load this component of Mue","report_error":"Send Error Report","sent":"Sent!","refresh":"Refresh"},"settings":{"enabled":"Enabled","open_knowledgebase":"Open Knowledgebase","additional_settings":"Additional Settings","reminder":{"title":"NOTICE","message":"In order for all of the changes to take place, the page must be refreshed."},"sections":{"header":{"more_info":"More info","report_issue":"Report Issue","enabled":"Choose whether or not to show this widget","size":"Slider to control how large the widget is"},"time":{"title":"Time","format":"Format","type":"Type","type_subtitle":"Choose whether to display the time in digital format, analogue format, or a percentage completion of the day","digital":{"title":"Digital","subtitle":"Change how the digital clock looks","seconds":"Seconds","twentyfourhour":"24 Hour","twelvehour":"12 hour","zero":"Zero-padded"},"analogue":{"title":"Analogue","subtitle":"Change how the analogue clock looks","second_hand":"Seconds hand","minute_hand":"Minutes hand","hour_hand":"Hours hand","hour_marks":"Hour marks","minute_marks":"Minute marks","round_clock":"Rounded background"},"percentage_complete":"Percentage complete","vertical_clock":{"title":"Vertical Clock","change_hour_colour":"Change hour text colour","change_minute_colour":"Change minute text colour","change_second_colour":"Change second text colour"}},"date":{"title":"Date","week_number":"Week number","day_of_week":"Day of week","datenth":"Date nth","type":{"short":"Short","long":"Long","subtitle":"Whether to display the date in long form or short form"},"type_settings":"Display settings and format for the selected date type","short_date":"Short date","short_format":"Short format","long_format":"Long format","short_separator":{"title":"Short separator","dots":"Dots","dash":"Dash","gaps":"Gaps","slashes":"Slashes"}},"quote":{"title":"Quote","additional":"Other settings to customise the style of the quote widget","author_link":"Author link","author_details":"Author details","custom":"Custom quote","custom_subtitle":"Set your own custom quotes","no_quotes":"No quotes","author":"Author","custom_buttons":"Buttons","custom_author":"Custom author","author_img":"Show author image","add":"Add quote","source_subtitle":"Choose where to get quotes from","buttons":{"title":"Buttons","subtitle":"Choose which buttons to show on the quote","copy":"Copy","tweet":"Tweet","favourite":"Favourite"}},"greeting":{"title":"Greeting","events":{"0":"E","1":"v","2":"e","3":"n","4":"t","5":"s","title":"Events"},"events_description":"Control events on Mue such as birthdays.","enable_events":"Show messages on special days","default":"Default greeting message","name":"Name for greeting","birthday":"Birthday","birthday_subtitle":"Show a Happy Birthday message when it is your birthday","birthday_age":"Birthday age","birthday_date":"Birthday date","additional":"Settings for the greeting display","custom":"Custom events","event_name":"Event Name","day":"Day","month":"Month","no_events":"No Events","no_events_description":"Add Some Events","add_event":"Add Event"},"background":{"title":"Background","transition":"Fade-in transition","photo_information":"Show photo information","show_map":"Show location map on photo information if available","categories":"Categories","buttons":{"title":"Buttons","view":"Maximise","favourite":"Favourite","download":"Download"},"effects":{"title":"Effects","subtitle":"Add effects to the background images","blur":"Adjust blur","brightness":"Adjust brightness","filters":{"title":"Background filter","amount":"Filter amount","grayscale":"Grayscale","sepia":"Sepia","invert":"Invert","saturate":"Saturate","contrast":"Contrast"}},"type":{"title":"Type","api":"API","custom_image":"Custom image","custom_colour":"Custom colour/gradient","random_colour":"Random colour","random_gradient":"Random gradient"},"unsplash":{"title":"Unsplash Collection(s)","subtitle":"Select the collection(s) you want to use for your background","id":"Collection ID(s)","id_subtitle":"Enter a comma separated list of Unsplash IDs"},"source":{"title":"Source","subtitle":"Select where to get background images from","api":"Background API","custom_background":"Custom background","custom_colour":"Custom background colour","upload":"Upload","add_colour":"Add colour","add_background":"Add background","drop_to_upload":"Drop to upload","formats":"Available formats: {list}","select":"Or Select","add_url":"Add URL","disabled":"Disabled","loop_video":"Loop video","mute_video":"Mute video","quality":{"title":"Quality","original":"Original","high":"High Quality","normal":"Normal Quality","datasaver":"Data Saver"},"custom_title":"Custom Images","custom_description":"Select images from your local computer","remove":"Remove Image","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Display","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"Search","additional":"Additional options for search widget display and functionality","search_engine":"Search Engine","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"Custom Search URL","autocomplete":"Autocomplete","autocomplete_provider":"Autocomplete Provider","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"Voice search","dropdown":"Search Dropdown","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"Weather","location":"Location","auto":"Auto","widget_type":"Widget Type","temp_format":{"title":"Temperature format","celsius":"Celsius","fahrenheit":"Fahrenheit","kelvin":"Kelvin"},"extra_info":{"title":"Extra information","show_location":"Show location","show_description":"Show description","weather_description":"Weather description","cloudiness":"Cloudiness","humidity":"Humidity","visibility":"Visibility","wind_speed":"Wind speed","wind_direction":"Wind direction","min_temp":"Minimum temperature","max_temp":"Maximum temperature","atmospheric_pressure":"Atmospheric pressure"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"Quick Links","additional":"Additional settings for quick links display and functions","open_new":"Open in new tab","tooltip":"Tooltip","text_only":"Show text only","add_link":"Add Link","no_quicklinks":"No quick links","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"Message","add":"Add message","messages":"Messages","text":"Text","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"Appearance","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"Theme","description":"Change the theme of the Mue widgets and modals","auto":"Auto","light":"Light","dark":"Dark"},"navbar":{"title":"Navbar","widgets":"Navbar Widgets","notes":"Notes","refresh":"Refresh","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"None","page":"Page"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"Font","description":"Change the font used in Mue","custom":"Custom font","google":"Import from Google Fonts","weight":{"title":"Font weight","thin":"Thin","extra_light":"Extra Light","light":"Light","normal":"Normal","medium":"Medium","semi_bold":"Semi-Bold","bold":"Bold","extra_bold":"Extra-Bold"},"style":{"title":"Font style","normal":"Normal","italic":"Italic","oblique":"Oblique"}},"accessibility":{"title":"Accessibility","description":"Make Mue comfortable and accessible","animations":"Animations","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Toast Duration","milliseconds":"milliseconds"}},"order":{"title":"Widget Order"},"advanced":{"title":"Advanced","offline_mode":"Offline mode","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"Data","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Manage your data on Mue.","reset_modal":{"title":"WARNING","question":"Do you want to reset Mue?","information":"This will delete all data. If you wish to keep your data and preferences, please export them first.","cancel":"Cancel"},"customisation":"Customisation","custom_css":"Custom CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"Custom JS","tab_name":"Tab name","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"Time Zone","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"Automatic"},"experimental_warning":"Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"Stats","sections":{"tabs_opened":"Tabs opened","backgrounds_favourited":"Backgrounds favourited","backgrounds_downloaded":"Backgrounds downloaded","quotes_favourited":"Quotes favourited","quicklinks_added":"Quicklinks added","settings_changed":"Settings changed","addons_installed":"Add-ons installed"},"usage":"Usage Stats","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"Experimental","warning":"These settings have not been fully tested/implemented and may not work correctly!","developer":"Developer"},"language":{"title":"Language","quote":"Quote language","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Change Log","by":"By {author}"},"about":{"title":"About","version":{"title":"Version","checking_update":"Checking for update","update_available":"Update available","no_update":"No update available","offline_mode":"Cannot check for update in offline mode","error":{"title":"Failed to get update information","description":"An error occured"}},"contact_us":"Contact Us","support_mue":"Support Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"Resources used","bg_images":"Offline background images"},"contributors":"Contributors","supporters":"Supporters","no_supporters":"There are currently no Mue supporters","photographers":"Photographers","curators":"Add-on creators"}},"buttons":{"reset":"Reset","import":"Import","export":"Export","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"Photo Packs","quote_packs":"Quote Packs","preset_settings":"Preset Settings","no_items":"No items in this category","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"Overview","information":"Information","last_updated":"Last Updated","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"Version","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"Add To","remove":"Remove","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"Looks like you're offline","description":"Please connect to the internet"}},"addons":{"added":"Added","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"Empty","description":"No addons are installed"},"sideload":{"title":"Sideload","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"Sort","newest":"Installed (Newest)","a_z":"Alphabetical (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Create","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Coming Soon...."}}},"update":{"title":"Update","offline":{"title":"Offline","description":"Cannot get update logs while in offline mode"},"error":{"title":"Error","description":"Could not connect to the server"}},"welcome":{"tip":"Quick Tip","sections":{"intro":{"title":"Welcome to Mue Tab","description":"Thank you for installing Mue, we hope you enjoy your time with our extension.","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"Choose your language","description":"Mue can be displayed the languages listed below. You can also add new translations on our"},"theme":{"title":"Select a theme","description":"Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.","tip":"Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"Import Settings","description":"Installing Mue on a new device? Feel free to import your old settings!","tip":"You can export your old settings by navigating to the Advanced tab in your old Mue setup. Then you need to click the export button which will download the JSON file. You can upload this file here to carry across your settings and preferences from your previous Mue installation."},"privacy":{"title":"Privacy Options","description":"Enable settings to further protect your privacy with Mue.","offline_mode_description":"Enabling offline mode will disable all requests to any service. This will result in online backgrounds, online quotes, marketplace, weather, quick links, change log and some about tab information to be disabled.","links":{"title":"Links","privacy_policy":"Privacy Policy","source_code":"Source Code"}},"final":{"title":"Final step","description":"Your Mue Tab experience is about to begin.","changes":"Changes","changes_description":"To change settings later click on the settings icon in the top right corner of your tab.","imported":"Imported {amount} settings"}},"buttons":{"next":"Next","preview":"Preview","previous":"Previous","close":"Close","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),FM={quote:"Quote copied",notes:"Notes copied",reset:"Reset successfully",installed:"Successfully installed",uninstalled:"Successfully removed",updated:"Successfully updated",error:"Something went wrong",imported:"Successfully imported",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Mb={tabname:UM,widgets:PM,modals:HM,toasts:FM},VM="新标签页",GM={greeting:{morning:"早上好",afternoon:"下午好",evening:"晚上好",christmas:"圣诞节快乐",newyear:"新年快乐",halloween:"万圣节快乐",birthday:"生日快乐"},background:{credit:"图像作者:",unsplash:"@ Unsplash",information:"信息",download:"下载",downloads:"下载",views:"风景",likes:"喜爱",location:"地点",camera:"摄影",resolution:"分辨率",source:"来源",category:"分类",exclude:"不再显示",exclude_confirm:`您确定不希望看到这张照片吗?
值得注意的是,如果你不喜欢 "{category}" 图片, 你可以在背景的来源设置中取消选择。`,confirm:"确认"},search:"搜索",quicklinks:{new:"新快捷方式",edit:"编辑链接",name:"名称",url:"链接",icon:"图标 (可选)",add:"添加",name_error:"请输入名称",url_error:"请输入链接"},date:{week:"周"},weather:{not_found:"未找到",meters:"{amount}米",extra_information:"更多信息",feels_like:"体感温度 {amount}"},quote:{link_tooltip:"在维基百科中打开",share:"分享",copy:"复制",favourite:"收藏",unfavourite:"不感兴趣"},navbar:{tooltips:{refresh:"刷新"},notes:{title:"便签",placeholder:"请键入内容"},todo:{title:"计划任务",pin:"固定",add:"添加",no_todos:"未找到任务"},apps:{title:"应用",no_apps:"未找到应用链接"}}},KM=JSON.parse(`{"main":{"title":"选项","loading":"载入中...","file_upload_error":"大小超过了 2MB","navbar":{"settings":"设置","library":"我的插件","discover":"插件市场"},"error_boundary":{"title":"错误","message":"无法载入该Mue组件","report_error":"发送错误报告","sent":"已发送!","refresh":"刷新"},"settings":{"enabled":"已启用","open_knowledgebase":"打开知识库","additional_settings":"更多设置","reminder":{"title":"注意","message":"刷新页面后设置才会生效"},"sections":{"header":{"more_info":"更多信息","report_issue":"报告 Issue","enabled":"选择是否显示此小部件","size":"滑动以控制该小部件的大小"},"time":{"title":"时间","format":"格式","type":"类型","type_subtitle":"选择时间显示类型(数字、模拟或百分比)","digital":{"title":"数字时钟","subtitle":"选择数字时钟的样式","seconds":"显示秒","twentyfourhour":"使用 24 小时制","twelvehour":"使用 12 小时制","zero":"加零补足两位数字"},"analogue":{"title":"模拟时钟","subtitle":"选择模拟时钟的样式","second_hand":"秒针","minute_hand":"分针","hour_hand":"时针","hour_marks":"时钟刻度","minute_marks":"分钟刻度","round_clock":"Rounded background"},"percentage_complete":"今天过去了%几","vertical_clock":{"title":"垂直时钟","change_hour_colour":"选择小时数颜色","change_minute_colour":"选择分钟数颜色","change_second_colour":"选择秒钟数颜色"}},"date":{"title":"显示日期","week_number":"第n周","day_of_week":"星期n","datenth":"添加th后缀","type":{"short":"短格式","long":"长格式","subtitle":"选择日期显示格式(短格式或长格式)"},"type_settings":"所选日期类型的显示设置和格式","short_date":"简写日期","short_format":"简写格式","long_format":"长格式","short_separator":{"title":"简写分隔","dots":"点","dash":"横杠","gaps":"空格","slashes":"斜杠"}},"quote":{"title":"名言警句","additional":"名言警句小部件的其他设置","author_link":"出处链接","author_details":"作者详情","custom":"自定义名言","custom_subtitle":"自定义名言","no_quotes":"没有名言","author":"作者","custom_buttons":"按钮","custom_author":"自定义出处","author_img":"显示作者图片","add":"继续添加名言","source_subtitle":"选择名言来源","buttons":{"title":"下方按钮","subtitle":"选择名言下显示的按钮","copy":"显示复制按钮","tweet":"显示发推按钮","favourite":"显示收藏按钮"}},"greeting":{"title":"问候","events":"节日问候","events_description":"设定 Mue 上的时间,如生日","enable_events":"在特定的事件显示节日问候","default":"常规问候","name":"您在问候中的名字","birthday":"生日","birthday_subtitle":"在您的生日时祝您生日快了","birthday_age":"显示年龄","birthday_date":"生日日期","additional":"设置显示的问候","custom":"自定义事件","event_name":"时间名","day":"日","month":"月","no_events":"没有事件","no_events_description":"试着添加一些事件","add_event":"添加事件"},"background":{"title":"背景","transition":"过渡动画","photo_information":"显示图片信息","show_map":"在图片信息内显示位置信息 (如果可用)","categories":"分类","buttons":{"title":"显示顶部按钮","view":"仅显示背景","favourite":"收藏","download":"下载"},"effects":{"title":"背景特效","subtitle":"为背景图片添加特效","blur":"模糊程度","brightness":"更改亮度","filters":{"title":"背景滤镜","amount":"数值","grayscale":"灰度","sepia":"相片","invert":"反色","saturate":"饱和度","contrast":"对比度"}},"type":{"title":"来源","api":"网络图像库API","custom_image":"自定义图像/视频","custom_colour":"自定义纯色背景","random_colour":"随机纯色背景","random_gradient":"随机渐变色背景"},"unsplash":{"title":"Unsplash 分类(s)","subtitle":"选择背景的分类","id":"分类 ID","id_subtitle":"输入 Unsplash 分类 ID,以英文逗号分隔"},"source":{"title":"来源","subtitle":"选择背景图片来与那","api":"背景来源","custom_background":"自定义背景 (支持图片/视频)","custom_colour":"自定义背景颜色","upload":"选择","add_colour":"添加颜色","add_background":"继续添加背景","drop_to_upload":"拖拽到此处上传","formats":"支持的格式: {list}","select":"或者选择文件","add_url":"添加 URL","disabled":"已禁用","loop_video":"循环播放","mute_video":"静音","quality":{"title":"画质","original":"原画","high":"高画质","normal":"普通画质","datasaver":"省流模式"},"custom_title":"自定义图片","custom_description":"从你的计算机本地选择图片","remove":"删除图片","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"显示","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"搜索栏","additional":"Additional options for search widget display and functionality","search_engine":"搜索引擎","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"自定义搜索链接","autocomplete":"搜索联想","autocomplete_provider":"联想功能提供引擎","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"语音搜索","dropdown":"搜索框左侧显示搜索引擎选择框","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"天气","location":"位置","auto":"自动定位","widget_type":"Widget Type","temp_format":{"title":"温度单位","celsius":"摄氏度","fahrenheit":"华氏度","kelvin":"开尔文"},"extra_info":{"title":"更多信息","show_location":"显示位置","show_description":"显示描述","weather_description":"Weather description","cloudiness":"云量","humidity":"湿度","visibility":"能见度","wind_speed":"风速","wind_direction":"风向","min_temp":"最低温度","max_temp":"最高温度","atmospheric_pressure":"大气压"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"快捷方式","additional":"Additional settings for quick links display and functions","open_new":"在新标签页打开","tooltip":"光标停留时下方显示标题","text_only":"仅显示标题","add_link":"Add Link","no_quicklinks":"No quicklinks","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Quick Links Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"消息","add":"继续添加消息","messages":"Messages","text":"文本","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"外观","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"主题","description":"Change the theme of the Mue widgets and modals","auto":"自动选择","light":"日间主题","dark":"夜间主题"},"navbar":{"title":"右上方功能键","widgets":"Navbar Widgets","notes":"便签","refresh":"刷新键","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"不显示","page":"页面"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"字体","description":"Change the font used in Mue","custom":"自定义字体","google":"从 Google Fonts 导入","weight":{"title":"字体粗细","thin":"极细","extra_light":"细字","light":"较细","normal":"一般","medium":"中等","semi_bold":"较粗","bold":"粗体","extra_bold":"加粗"},"style":{"title":"字体样式","normal":"常规","italic":"意大利斜体","oblique":"伪斜体"}},"accessibility":{"title":"无障碍设定","description":"Accessibility settings for Mue","animations":"动画效果","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"小部件缩放","toast_duration":"窗口弹出时间长度","milliseconds":"毫秒"}},"order":{"title":"小部件顺序"},"advanced":{"title":"高级","offline_mode":"启用离线模式","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"数据和设置","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","reset_modal":{"title":"警告","question":"您想要重置 Mue 的所有设置吗?","information":"本操作将删除所有数据。若您想保留数据及设置,请先将其导出。","cancel":"取消"},"customisation":"自定义","custom_css":"自定义 CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"自定义 JS","tab_name":"新标签页名称","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"时区","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"自动"},"experimental_warning":"请注意 Mue 团队无法提供实验性功能的支持。若您遇到问题,请先关闭实验性功能,再寻求帮助。","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"统计","sections":{"tabs_opened":"页面打开次数","backgrounds_favourited":"收藏的背景","backgrounds_downloaded":"下载过背景","quotes_favourited":"收藏的名言警句","quicklinks_added":"添加的快捷方式","settings_changed":"更改的设置","addons_installed":"添加的插件"},"usage":"启用统计","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"实验性功能","warning":"以下设置仍未完成编写或测试,可能无法正常运作!","developer":"开发者"},"language":{"title":"语言","quote":"名言语言","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"更新日志","by":"By {author}"},"about":{"title":"关于","version":{"title":"版本","checking_update":"正在检查更新……","update_available":"可下载更新","no_update":"无可下载更新","offline_mode":"离线模式下不能检查更新","error":{"title":"获取更新信息失败","description":"错误"}},"contact_us":"联系我们","support_mue":"支持 Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"使用资源","bg_images":"离线背景"},"contributors":"贡献者","supporters":"支持者","no_supporters":"There are currently no Mue supporters","photographers":"背景摄影者","curators":"Add-on creators"}},"buttons":{"reset":"重置","import":"导入","export":"导出","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"图片包","quote_packs":"名言包","preset_settings":"预设设定","no_items":"本类别为空","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"总览","information":"信息","last_updated":"更新日期","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"版本","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"添加至 Mue","remove":"卸载","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"您目前似乎离线","description":"请连接到互联网。"}},"addons":{"added":"已添加","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"这里空空如也","description":"请访问插件市场来添加插件。"},"sideload":{"title":"上传插件","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"排序","newest":"安装过 (从新到旧)","a_z":"首字母 (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"创建","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Get Started"}}},"update":{"title":"更新日志","offline":{"title":"离线模式已启用","description":"不能从官网获取更新日志"},"error":{"title":"错误","description":"无法连接到服务器"}},"welcome":{"tip":"快速提示","sections":{"intro":{"title":"欢迎使用 Mue 新标签插件","description":"感谢您的安装。祝您使用愉快。","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"更改语言","description":"Mue 支持以下语言。你也可以在这里添加新的翻译"},"theme":{"title":"选择一个主题","description":"Mue 支持日间和夜间主题,或者设置为自动选择,主题将跟随系统主题自动切换","tip":"使用自动选择将使用您的电脑的主题。这个设置也会影响设置界面和一些小组件的主题,比如天气和便签。"},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"导入设置","description":"在新设备上安装 Mue? 可以直接导入之前的设置!","tip":"您可以通过在之前设备上点击右上角的设置,打开高级选项卡,然后点击导出按钮,浏览器将自动下载一个 json 文件。你可以在上面点击导入按钮导入该 json 文件来导入你之前的设置和偏好。"},"privacy":{"title":"隐私设置","description":"进行一些设置来和 Mue 更好的保护您的隐私","offline_mode_description":"启用离线模式将会关闭所有服务的网络访问。该选项会关闭所有在线背景图片、在线名言警句、插件市场、天气、快捷方式、更新历史和一些关于信息的网络访问。","links":{"title":"链接","privacy_policy":"隐私政策","source_code":"源代码"}},"final":{"title":"最后一步","description":"马上即可开始使用 Mue!","changes":"更改的设置","changes_description":"如果需要进一步设置,点击右上角的设置图标即可弹出完整设置对话框。如果显示不正常,刷新即可。","imported":"导入{amount}设置"}},"buttons":{"next":"下一步","preview":"Preview","previous":"上一步","close":"关闭","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),YM={quote:"名言已复制",notes:"便签已复制",reset:"重置成功",installed:"安装成功",uninstalled:"卸载成功",updated:"Successfully updated",error:"发生错误",imported:"导入成功",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Ab={tabname:VM,widgets:GM,modals:KM,toasts:YM},WM="新分頁",QM={greeting:{morning:"早安",afternoon:"午安",evening:"晚安",christmas:"聖誕快樂",newyear:"新年快樂",halloween:"萬聖節快樂",birthday:"生日快樂"},background:{credit:"影像來自",unsplash:"在 Unsplash 上",information:"資訊",download:"下載",downloads:"下載",views:"檢視",likes:"喜歡",location:"地點",camera:"相機",resolution:"解析度",source:"來源",category:"類別",exclude:"不要再顯示",exclude_confirm:`你確定你不想再次看到此影像嗎?
-注意:如果你不喜歡「{category}」影像,你可以在背景來源設定中取消選擇該類別。`,confirm:"確認"},search:"搜尋",quicklinks:{new:"新增連結",edit:"編輯連結",name:"名稱",url:"網址",icon:"圖示(選擇性)",add:"增加",name_error:"必須提供名稱",url_error:"必須提供網址"},date:{week:"週"},weather:{not_found:"找不到",meters:"{amount} 公尺",extra_information:"額外資訊",feels_like:"感覺像 {amount}"},quote:{link_tooltip:"在維基百科上開啟",share:"分享",copy:"複製",favourite:"收藏",unfavourite:"取消收藏"},navbar:{tooltips:{refresh:"重新整理"},notes:{title:"筆記",placeholder:"在此輸入"},todo:{title:"待辦事項",pin:"釘選",add:"增加",no_todos:"無待辦事項"},apps:{title:"應用程式",no_apps:"找不到應用程式連結"}}},ZM=JSON.parse(`{"main":{"title":"選項","loading":"載入中…","file_upload_error":"檔案超過 2MB","navbar":{"settings":"設定","library":"附加元件","discover":"市場"},"error_boundary":{"title":"錯誤","message":"無法載入 Mue 的此元件","report_error":"傳送錯誤報告","sent":"已傳送!","refresh":"重新整理"},"settings":{"enabled":"已啟用","open_knowledgebase":"開啟知識庫","additional_settings":"附加設定","reminder":{"title":"注意","message":"為了使所有變更生效,必須重新整理頁面。"},"sections":{"header":{"more_info":"更多資訊","report_issue":"報告問題","enabled":"選擇是否顯示此小工具","size":"滑桿控制小部件的大小"},"time":{"title":"時間","format":"格式","type":"類型","type_subtitle":"選擇是否以數位格式、類比格式或當天完成百分比顯示時間","digital":{"title":"數位","subtitle":"變更數位時鐘的外觀","seconds":"秒","twentyfourhour":"24 小時制","twelvehour":"12 小時制","zero":"Zero-padded"},"analogue":{"title":"類比","subtitle":"變更類比時鐘的外觀","second_hand":"秒針","minute_hand":"分針","hour_hand":"時針","hour_marks":"小時刻度","minute_marks":"分鐘刻度","round_clock":"圓形背景"},"percentage_complete":"完成百分比","vertical_clock":{"title":"垂直時鐘","change_hour_colour":"變更小時文字顏色","change_minute_colour":"變更分鐘文字顏色","change_second_colour":"變更秒文字顏色"}},"date":{"title":"日期","week_number":"週數","day_of_week":"星期","datenth":"日期 th","type":{"short":"短","long":"長","subtitle":"Whether to display the date in long form or short form"},"type_settings":"Display settings and format for the selected date type","short_date":"Short date","short_format":"Short format","long_format":"Long format","short_separator":{"title":"Short separator","dots":"Dots","dash":"Dash","gaps":"Gaps","slashes":"Slashes"}},"quote":{"title":"Quote","additional":"Other settings to customise the style of the quote widget","author_link":"Author link","author_details":"作者詳細資訊","custom":"Custom quote","custom_subtitle":"Set your own custom quotes","no_quotes":"No quotes","author":"Author","custom_buttons":"Buttons","custom_author":"Custom author","author_img":"Show author image","add":"Add quote","source_subtitle":"Choose where to get quotes from","buttons":{"title":"Buttons","subtitle":"Choose which buttons to show on the quote","copy":"Copy","tweet":"Tweet","favourite":"Favourite"}},"greeting":{"title":"Greeting","events":{"0":"E","1":"v","2":"e","3":"n","4":"t","5":"s","title":"Events"},"events_description":"Control events on Mue such as birthdays.","enable_events":"Show messages on special days","default":"Default greeting message","name":"Name for greeting","birthday":"Birthday","birthday_subtitle":"Show a Happy Birthday message when it is your birthday","birthday_age":"Birthday age","birthday_date":"Birthday date","additional":"Settings for the greeting display","custom":"Custom events","event_name":"Event Name","day":"Day","month":"Month","no_events":"No Events","no_events_description":"Add Some Events","add_event":"Add Event"},"background":{"title":"Background","transition":"Fade-in transition","photo_information":"Show photo information","show_map":"Show location map on photo information if available","categories":"Categories","buttons":{"title":"Buttons","view":"Maximise","favourite":"Favourite","download":"Download"},"effects":{"title":"Effects","subtitle":"Add effects to the background images","blur":"Adjust blur","brightness":"Adjust brightness","filters":{"title":"Background filter","amount":"Filter amount","grayscale":"Grayscale","sepia":"Sepia","invert":"Invert","saturate":"Saturate","contrast":"Contrast"}},"type":{"title":"Type","api":"API","custom_image":"Custom image","custom_colour":"Custom colour/gradient","random_colour":"Random colour","random_gradient":"Random gradient"},"unsplash":{"title":"Unsplash Collection(s)","subtitle":"Select the collection(s) you want to use for your background","id":"Collection ID(s)","id_subtitle":"Enter a comma separated list of Unsplash IDs"},"source":{"title":"Source","subtitle":"Select where to get background images from","api":"Background API","custom_background":"Custom background","custom_colour":"Custom background colour","upload":"Upload","add_colour":"Add colour","add_background":"Add background","drop_to_upload":"Drop to upload","formats":"Available formats: {list}","select":"Or Select","add_url":"Add URL","disabled":"Disabled","loop_video":"Loop video","mute_video":"Mute video","quality":{"title":"Quality","original":"Original","high":"High Quality","normal":"Normal Quality","datasaver":"Data Saver"},"custom_title":"Custom Images","custom_description":"Select images from your local computer","remove":"Remove Image","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Display","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"Search","additional":"Additional options for search widget display and functionality","search_engine":"Search Engine","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"Custom Search URL","autocomplete":"Autocomplete","autocomplete_provider":"Autocomplete Provider","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"Voice search","dropdown":"Search Dropdown","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"Weather","location":"Location","auto":"Auto","widget_type":"Widget Type","temp_format":{"title":"Temperature format","celsius":"Celsius","fahrenheit":"Fahrenheit","kelvin":"Kelvin"},"extra_info":{"title":"Extra information","show_location":"Show location","show_description":"Show description","weather_description":"Weather description","cloudiness":"Cloudiness","humidity":"Humidity","visibility":"Visibility","wind_speed":"Wind speed","wind_direction":"Wind direction","min_temp":"Minimum temperature","max_temp":"Maximum temperature","atmospheric_pressure":"Atmospheric pressure"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"Quick Links","additional":"Additional settings for quick links display and functions","open_new":"Open in new tab","tooltip":"Tooltip","text_only":"Show text only","add_link":"Add Link","no_quicklinks":"No quick links","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"Message","add":"Add message","messages":"Messages","text":"Text","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"Appearance","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"Theme","description":"Change the theme of the Mue widgets and modals","auto":"Auto","light":"Light","dark":"Dark"},"navbar":{"title":"Navbar","widgets":"Navbar Widgets","notes":"Notes","refresh":"Refresh","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"None","page":"Page"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"Font","description":"Change the font used in Mue","custom":"Custom font","google":"Import from Google Fonts","weight":{"title":"Font weight","thin":"Thin","extra_light":"Extra Light","light":"Light","normal":"Normal","medium":"Medium","semi_bold":"Semi-Bold","bold":"Bold","extra_bold":"Extra-Bold"},"style":{"title":"Font style","normal":"Normal","italic":"Italic","oblique":"Oblique"}},"accessibility":{"title":"Accessibility","description":"Make Mue comfortable and accessible","animations":"Animations","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Toast Duration","milliseconds":"milliseconds"}},"order":{"title":"Widget Order"},"advanced":{"title":"Advanced","offline_mode":"Offline mode","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"Data","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Manage your data on Mue.","reset_modal":{"title":"WARNING","question":"Do you want to reset Mue?","information":"This will delete all data. If you wish to keep your data and preferences, please export them first.","cancel":"Cancel"},"customisation":"Customisation","custom_css":"Custom CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"Custom JS","tab_name":"Tab name","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"Time Zone","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"Automatic"},"experimental_warning":"Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"Stats","sections":{"tabs_opened":"Tabs opened","backgrounds_favourited":"Backgrounds favourited","backgrounds_downloaded":"Backgrounds downloaded","quotes_favourited":"Quotes favourited","quicklinks_added":"Quicklinks added","settings_changed":"Settings changed","addons_installed":"Add-ons installed"},"usage":"Usage Stats","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"Experimental","warning":"These settings have not been fully tested/implemented and may not work correctly!","developer":"Developer"},"language":{"title":"Language","quote":"Quote language","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Change Log","by":"By {author}"},"about":{"title":"About","version":{"title":"Version","checking_update":"Checking for update","update_available":"Update available","no_update":"No update available","offline_mode":"Cannot check for update in offline mode","error":{"title":"Failed to get update information","description":"An error occured"}},"contact_us":"Contact Us","support_mue":"Support Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"Resources used","bg_images":"Offline background images"},"contributors":"Contributors","supporters":"Supporters","no_supporters":"There are currently no Mue supporters","photographers":"Photographers","curators":"Add-on creators"}},"buttons":{"reset":"Reset","import":"Import","export":"Export","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"Photo Packs","quote_packs":"Quote Packs","preset_settings":"Preset Settings","no_items":"No items in this category","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"Overview","information":"Information","last_updated":"Last Updated","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"Version","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"Add To Mue","remove":"Remove","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"Looks like you're offline","description":"Please connect to the internet"}},"addons":{"added":"Added","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"Empty","description":"No addons are installed"},"sideload":{"title":"Sideload","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"Sort","newest":"Installed (Newest)","a_z":"Alphabetical (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Create","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Coming Soon...."}}},"update":{"title":"Update","offline":{"title":"Offline","description":"Cannot get update logs while in offline mode"},"error":{"title":"Error","description":"Could not connect to the server"}},"welcome":{"tip":"Quick Tip","sections":{"intro":{"title":"Welcome to Mue Tab","description":"Thank you for installing Mue, we hope you enjoy your time with our extension.","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"Choose your language","description":"Mue can be displayed the languages listed below. You can also add new translations on our"},"theme":{"title":"Select a theme","description":"Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.","tip":"Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"Import Settings","description":"Installing Mue on a new device? Feel free to import your old settings!","tip":"You can export your old settings by navigating to the Advanced tab in your old Mue setup. Then you need to click the export button which will download the JSON file. You can upload this file here to carry across your settings and preferences from your previous Mue installation."},"privacy":{"title":"Privacy Options","description":"Enable settings to further protect your privacy with Mue.","offline_mode_description":"Enabling offline mode will disable all requests to any service. This will result in online backgrounds, online quotes, marketplace, weather, quick links, change log and some about tab information to be disabled.","links":{"title":"Links","privacy_policy":"Privacy Policy","source_code":"Source Code"}},"final":{"title":"Final step","description":"Your Mue Tab experience is about to begin.","changes":"Changes","changes_description":"To change settings later click on the settings icon in the top right corner of your tab.","imported":"Imported {amount} settings"}},"buttons":{"next":"Next","preview":"Preview","previous":"Previous","close":"Close","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),XM={quote:"Quote copied",notes:"Notes copied",reset:"Reset successfully",installed:"Successfully installed",uninstalled:"Successfully removed",updated:"Successfully updated",error:"Something went wrong",imported:"Successfully imported",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Cb={tabname:WM,widgets:QM,modals:ZM,toasts:XM};function Dl(o){return new x0("en_GB",{ar:Wv,arz:Qv,az:Zv,azb:Xv,bn:Jv,de_DE:$v,el:eb,en_GB:tb,en_US:ab,es:ob,es_419:ib,et:nb,fa:sb,fr:rb,hu:lb,id_ID:ub,ja:db,lt:cb,lv:mb,nl:pb,no:fb,peo:gb,pt:hb,pt_BR:_b,ru:vb,sl:bb,sv:yb,ta:kb,tr_TR:wb,uk:Sb,vi:Mb,zh_CN:Ab,zh_Hant:Cb})}const JM={ar:Wv,arz:Qv,az:Zv,azb:Xv,bn:Jv,de_DE:$v,el:eb,en_GB:tb,en_US:ab,es:ob,es_419:ib,et:nb,fa:sb,fr:rb,hu:lb,id_ID:ub,ja:db,lt:cb,lv:mb,nl:pb,no:fb,peo:gb,pt:hb,pt_BR:_b,ru:vb,sl:bb,sv:yb,ta:kb,tr_TR:wb,uk:Sb,vi:Mb,zh_CN:Ab,zh_Hant:Cb},$M="https://webbrain.one",eA="https://webbrain.one/privacy",tA="https://github.com/esokullu/webbrain",aA="https://github.com/esokullu/webbrain/issues/new",oA="https://github.com/mue/mue",iA="7.6.0",nA="1.0.0",sA=Object.freeze(Object.defineProperty({__proto__:null,BUG_REPORT:aA,MUE_REPO_URL:oA,MUE_VERSION:iA,PRIVACY_URL:eA,REPO_URL:tA,VERSION:nA,WEBSITE_URL:$M},Symbol.toStringTag,{value:"Module"}));class rA{static async postEvent(){}static async tabLoad(){}}const pe={language:{},languagecode:"",stats:rA,constants:sA},lA={en:"en_GB",zh:"zh_CN",ar:"ar",bn:"bn",nl:"nl",fr:"fr",de:"de_DE",id:"id_ID",ja:"ja",fa:"fa",pt:"pt_BR",ru:"ru",es:"es",tr:"tr_TR",uk:"uk",vi:"vi"};function Dm(){let o;try{o=String(Ll?.getItem("wbLocale")||"").trim()}catch{o=""}return o||String(globalThis.navigator?.language||"en").slice(0,2).toLowerCase()}const uA=new Set(["ar","fa","he","ur"]);function dA(){const o=Dm(),n=String(o||"en").replace("_","-");return{lang:n,dir:uA.has(n.slice(0,2).toLowerCase())?"rtl":"ltr"}}function cA(){return lA[Dm()]||"en_GB"}const mA=["ask","act","search","placeholder_ask","placeholder_act","placeholder_search","go","act_hint","panel_failed","recent_title","recent_empty","recent_all","settings_taskbox","settings_taskbox_sub","settings_default_mode","settings_recent","settings_credits","settings_bundled_photos"],pA={en:["Ask","Act","Search","Ask WebBrain anything…","Tell WebBrain what to do…","Search or enter a URL","Go","WebBrain opens with your task ready. Press Enter there to run it.","Couldn't open the WebBrain panel. Click the WebBrain toolbar icon.","Recent chats","No chats yet","All history","Task box","Ask or act with WebBrain from the new tab.","Default mode","Show recent chats","Credits","Bundled photos"],es:["Preguntar","Actuar","Buscar","Pregunta lo que quieras a WebBrain…","Dile a WebBrain qué hacer…","Busca o escribe una URL","Ir","WebBrain se abre con tu tarea lista. Pulsa Intro allí para ejecutarla.","No se pudo abrir el panel de WebBrain. Haz clic en el icono de WebBrain de la barra.","Chats recientes","Aún no hay chats","Todo el historial","Cuadro de tareas","Pregunta o actúa con WebBrain desde la nueva pestaña.","Modo predeterminado","Mostrar chats recientes","Créditos","Fotos incluidas"],fr:["Demander","Agir","Rechercher","Posez n’importe quelle question à WebBrain…","Dites à WebBrain quoi faire…","Rechercher ou saisir une URL","OK","WebBrain s’ouvre avec votre tâche prête. Appuyez sur Entrée pour la lancer.","Impossible d’ouvrir le panneau WebBrain. Cliquez sur l’icône WebBrain de la barre d’outils.","Discussions récentes","Aucune discussion","Tout l’historique","Zone de tâche","Posez une question ou agissez avec WebBrain depuis le nouvel onglet.","Mode par défaut","Afficher les discussions récentes","Crédits","Photos incluses"],de:["Fragen","Handeln","Suchen","Frag WebBrain, was du willst…","Sag WebBrain, was zu tun ist…","Suchen oder URL eingeben","Los","WebBrain öffnet sich mit deiner Aufgabe. Drücke dort Enter, um sie auszuführen.","Das WebBrain-Panel konnte nicht geöffnet werden. Klicke auf das WebBrain-Symbol in der Symbolleiste.","Letzte Chats","Noch keine Chats","Gesamter Verlauf","Aufgabenfeld","Frage oder handle mit WebBrain direkt im neuen Tab.","Standardmodus","Letzte Chats anzeigen","Danksagungen","Mitgelieferte Fotos"],tr:["Sor","Yap","Ara","WebBrain’e her şeyi sor…","WebBrain’e ne yapacağını söyle…","Ara veya URL gir","Git","WebBrain, görevin hazır şekilde açılır. Çalıştırmak için orada Enter’a bas.","WebBrain paneli açılamadı. Araç çubuğundaki WebBrain simgesine tıkla.","Son sohbetler","Henüz sohbet yok","Tüm geçmiş","Görev kutusu","Yeni sekmeden WebBrain ile sor veya işlem yap.","Varsayılan mod","Son sohbetleri göster","Katkılar","Dahili fotoğraflar"],pt:["Perguntar","Agir","Pesquisar","Pergunte qualquer coisa ao WebBrain…","Diga ao WebBrain o que fazer…","Pesquise ou digite um URL","Ir","O WebBrain abre com sua tarefa pronta. Pressione Enter lá para executá-la.","Não foi possível abrir o painel do WebBrain. Clique no ícone do WebBrain na barra de ferramentas.","Conversas recentes","Ainda não há conversas","Todo o histórico","Caixa de tarefas","Pergunte ou aja com o WebBrain na nova guia.","Modo padrão","Mostrar conversas recentes","Créditos","Fotos incluídas"],ru:["Спросить","Действовать","Поиск","Спросите WebBrain о чём угодно…","Скажите WebBrain, что сделать…","Введите запрос или URL","Вперёд","WebBrain откроется с готовой задачей. Нажмите там Enter, чтобы запустить её.","Не удалось открыть панель WebBrain. Нажмите значок WebBrain на панели инструментов.","Недавние чаты","Чатов пока нет","Вся история","Поле задач","Спрашивайте и действуйте с WebBrain прямо на новой вкладке.","Режим по умолчанию","Показывать недавние чаты","Авторы и лицензии","Встроенные фото"],uk:["Запитати","Діяти","Пошук","Запитайте WebBrain про що завгодно…","Скажіть WebBrain, що зробити…","Введіть запит або URL","Вперед","WebBrain відкриється з готовим завданням. Натисніть там Enter, щоб запустити його.","Не вдалося відкрити панель WebBrain. Натисніть значок WebBrain на панелі інструментів.","Нещодавні чати","Чатів поки немає","Уся історія","Поле завдань","Запитуйте та виконуйте завдання з WebBrain просто на новій вкладці.","Режим за замовчуванням","Показувати нещодавні чати","Автори та ліцензії","Вбудовані фото"],zh:["提问","执行","搜索","向 WebBrain 提任何问题…","告诉 WebBrain 要做什么…","搜索或输入网址","前往","WebBrain 将带着你的任务打开。在那里按 Enter 即可运行。","无法打开 WebBrain 面板。请点击工具栏中的 WebBrain 图标。","最近的对话","还没有对话","全部历史","任务框","在新标签页中直接向 WebBrain 提问或下达任务。","默认模式","显示最近的对话","致谢","内置照片"],ja:["質問","実行","検索","WebBrain に何でも聞く…","WebBrain にやってほしいことを伝える…","検索または URL を入力","移動","タスクを入力した状態で WebBrain が開きます。そこで Enter を押すと実行されます。","WebBrain パネルを開けませんでした。ツールバーの WebBrain アイコンをクリックしてください。","最近のチャット","チャットはまだありません","すべての履歴","タスクボックス","新しいタブから WebBrain に質問したり操作を任せたりできます。","デフォルトのモード","最近のチャットを表示","クレジット","同梱の写真"],ko:["질문","실행","검색","WebBrain에게 무엇이든 물어보세요…","WebBrain에게 할 일을 알려주세요…","검색하거나 URL 입력","이동","작업이 입력된 상태로 WebBrain이 열립니다. 거기서 Enter를 누르면 실행됩니다.","WebBrain 패널을 열 수 없습니다. 도구 모음의 WebBrain 아이콘을 클릭하세요.","최근 대화","아직 대화가 없습니다","전체 기록","작업 상자","새 탭에서 바로 WebBrain에게 질문하거나 작업을 맡기세요.","기본 모드","최근 대화 표시","크레딧","기본 제공 사진"],ar:["اسأل","نفّذ","ابحث","اسأل WebBrain أي شيء…","أخبر WebBrain بما يجب فعله…","ابحث أو أدخل عنوان URL","انتقال","يفتح WebBrain ومعه مهمتك جاهزة. اضغط Enter هناك لتشغيلها.","تعذّر فتح لوحة WebBrain. انقر على أيقونة WebBrain في شريط الأدوات.","المحادثات الأخيرة","لا توجد محادثات بعد","السجل الكامل","مربع المهام","اسأل أو نفّذ مع WebBrain مباشرة من علامة التبويب الجديدة.","الوضع الافتراضي","إظهار المحادثات الأخيرة","الشكر والتقدير","الصور المضمّنة"],he:["שאלה","פעולה","חיפוש","שאלו את WebBrain כל דבר…","ספרו ל-WebBrain מה לעשות…","חפשו או הזינו כתובת URL","מעבר","WebBrain ייפתח כשהמשימה שלכם מוכנה. לחצו שם Enter כדי להריץ אותה.","לא ניתן היה לפתוח את לוח WebBrain. לחצו על סמל WebBrain בסרגל הכלים.","שיחות אחרונות","עדיין אין שיחות","כל ההיסטוריה","תיבת משימות","שאלו או פעלו עם WebBrain ישירות מהכרטיסייה החדשה.","מצב ברירת מחדל","הצגת שיחות אחרונות","קרדיטים","תמונות מובנות"],hi:["पूछें","करें","खोजें","WebBrain से कुछ भी पूछें…","WebBrain को बताएँ क्या करना है…","खोजें या URL दर्ज करें","जाएँ","WebBrain आपके कार्य के साथ खुलेगा। चलाने के लिए वहाँ Enter दबाएँ।","WebBrain पैनल नहीं खुल सका। टूलबार में WebBrain आइकन पर क्लिक करें।","हाल की चैट","अभी कोई चैट नहीं","पूरा इतिहास","कार्य बॉक्स","नए टैब से ही WebBrain से पूछें या काम करवाएँ।","डिफ़ॉल्ट मोड","हाल की चैट दिखाएँ","श्रेय","शामिल तस्वीरें"],id:["Tanya","Jalankan","Cari","Tanyakan apa saja ke WebBrain…","Beri tahu WebBrain apa yang harus dilakukan…","Cari atau masukkan URL","Buka","WebBrain terbuka dengan tugas Anda siap. Tekan Enter di sana untuk menjalankannya.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain di bilah alat.","Obrolan terbaru","Belum ada obrolan","Semua riwayat","Kotak tugas","Tanya atau jalankan tugas dengan WebBrain langsung dari tab baru.","Mode default","Tampilkan obrolan terbaru","Kredit","Foto bawaan"],ms:["Tanya","Laksana","Cari","Tanya apa sahaja kepada WebBrain…","Beritahu WebBrain apa yang perlu dilakukan…","Cari atau masukkan URL","Pergi","WebBrain dibuka dengan tugas anda sedia. Tekan Enter di sana untuk menjalankannya.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain pada bar alat.","Sembang terkini","Belum ada sembang","Semua sejarah","Kotak tugas","Tanya atau laksanakan tugas dengan WebBrain terus dari tab baharu.","Mod lalai","Tunjukkan sembang terkini","Kredit","Foto terbina dalam"],tl:["Magtanong","Gumawa","Maghanap","Magtanong ng kahit ano sa WebBrain…","Sabihin sa WebBrain kung ano ang gagawin…","Maghanap o maglagay ng URL","Pumunta","Magbubukas ang WebBrain na handa na ang iyong gawain. Pindutin ang Enter doon para patakbuhin ito.","Hindi mabuksan ang panel ng WebBrain. I-click ang icon ng WebBrain sa toolbar.","Mga kamakailang chat","Wala pang chat","Buong kasaysayan","Kahon ng gawain","Magtanong o mag-utos sa WebBrain mula mismo sa bagong tab.","Default na mode","Ipakita ang mga kamakailang chat","Mga kredito","Mga kasamang larawan"],pl:["Zapytaj","Wykonaj","Szukaj","Zapytaj WebBrain o cokolwiek…","Powiedz WebBrain, co ma zrobić…","Wyszukaj lub wpisz adres URL","Idź","WebBrain otworzy się z gotowym zadaniem. Naciśnij tam Enter, aby je uruchomić.","Nie udało się otworzyć panelu WebBrain. Kliknij ikonę WebBrain na pasku narzędzi.","Ostatnie czaty","Brak czatów","Cała historia","Pole zadań","Pytaj i zlecaj zadania WebBrain prosto z nowej karty.","Tryb domyślny","Pokaż ostatnie czaty","Autorzy i licencje","Dołączone zdjęcia"],th:["ถาม","ทำ","ค้นหา","ถามอะไรก็ได้กับ WebBrain…","บอก WebBrain ว่าต้องทำอะไร…","ค้นหาหรือป้อน URL","ไป","WebBrain จะเปิดพร้อมงานของคุณ กด Enter ที่นั่นเพื่อรัน","เปิดแผง WebBrain ไม่ได้ คลิกไอคอน WebBrain บนแถบเครื่องมือ","แชตล่าสุด","ยังไม่มีแชต","ประวัติทั้งหมด","ช่องงาน","ถามหรือสั่งงาน WebBrain ได้จากแท็บใหม่ทันที","โหมดเริ่มต้น","แสดงแชตล่าสุด","เครดิต","รูปภาพที่รวมมา"],vi:["Hỏi","Thực hiện","Tìm kiếm","Hỏi WebBrain bất cứ điều gì…","Nói với WebBrain cần làm gì…","Tìm kiếm hoặc nhập URL","Đi","WebBrain sẽ mở với tác vụ đã sẵn sàng. Nhấn Enter ở đó để chạy.","Không thể mở bảng WebBrain. Hãy nhấp vào biểu tượng WebBrain trên thanh công cụ.","Cuộc trò chuyện gần đây","Chưa có cuộc trò chuyện","Toàn bộ lịch sử","Hộp tác vụ","Hỏi hoặc giao việc cho WebBrain ngay từ tab mới.","Chế độ mặc định","Hiện cuộc trò chuyện gần đây","Ghi công","Ảnh đi kèm"],bn:["জিজ্ঞাসা","করুন","খুঁজুন","WebBrain-কে যেকোনো কিছু জিজ্ঞাসা করুন…","WebBrain-কে বলুন কী করতে হবে…","খুঁজুন বা URL লিখুন","যান","আপনার কাজ প্রস্তুত অবস্থায় WebBrain খুলবে। চালাতে সেখানে Enter চাপুন।","WebBrain প্যানেল খোলা যায়নি। টুলবারে WebBrain আইকনে ক্লিক করুন।","সাম্প্রতিক চ্যাট","এখনো কোনো চ্যাট নেই","সম্পূর্ণ ইতিহাস","টাস্ক বক্স","নতুন ট্যাব থেকেই WebBrain-কে জিজ্ঞাসা করুন বা কাজ দিন।","ডিফল্ট মোড","সাম্প্রতিক চ্যাট দেখান","কৃতজ্ঞতা","অন্তর্ভুক্ত ছবি"],fa:["بپرس","اجرا کن","جستجو","از WebBrain هر چیزی بپرسید…","به WebBrain بگویید چه کار کند…","جستجو کنید یا نشانی URL وارد کنید","برو","WebBrain با وظیفهٔ آمادهٔ شما باز می‌شود. برای اجرا، آن‌جا Enter را بزنید.","پنل WebBrain باز نشد. روی نماد WebBrain در نوار ابزار کلیک کنید.","گفتگوهای اخیر","هنوز گفتگویی نیست","کل تاریخچه","جعبهٔ وظیفه","از همین زبانهٔ جدید از WebBrain بپرسید یا کار بسپارید.","حالت پیش‌فرض","نمایش گفتگوهای اخیر","سپاس‌ها","عکس‌های همراه"],nl:["Vragen","Uitvoeren","Zoeken","Vraag WebBrain alles…","Zeg WebBrain wat te doen…","Zoek of voer een URL in","Ga","WebBrain opent met je taak klaar. Druk daar op Enter om te starten.","Het WebBrain-paneel kon niet worden geopend. Klik op het WebBrain-pictogram in de werkbalk.","Recente chats","Nog geen chats","Alle geschiedenis","Taakvak","Vraag of voer uit met WebBrain, direct vanaf het nieuwe tabblad.","Standaardmodus","Recente chats tonen","Met dank aan","Meegeleverde foto’s"]},ym=Object.fromEntries(Object.entries(pA).map(([o,n])=>[o,Object.fromEntries(mA.map((u,l)=>[`wb.${u}`,n[l]]))]));function ya(o,n=Dm()){return ym[n]?.[o]??ym.en[o]??o}const xb=o=>typeof o=="string"&&o.startsWith("wb.");function km(o=document.documentElement){const n=dA(),{lang:u,dir:l}=ym[n.lang]?n:{lang:"en",dir:"ltr"};return o.lang=u,o.dir=l,{lang:u,dir:l}}class _e{static listeners={};static register(n,u){this.listeners[n]||(this.listeners[n]=[]),u.first?this.listeners[n].unshift(u):this.listeners[n].push(u)}static on(n,u){const l=d=>u(d.detail);document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static emit(n,u){document.dispatchEvent(new CustomEvent(n,{detail:u}))}static off(n,u){if(typeof u!="function")return;const l=this.listeners[n]||[],d=l.filter(c=>c.callback===u||c.listener===u);d.forEach(c=>document.removeEventListener(n,c.listener,{capture:c.capture})),this.listeners[n]=l.filter(c=>!d.includes(c))}static once(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static prepend(n,u){const l=d=>u(d.detail);document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static prependOnce(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static getListeners(n){return this.listeners[n]||[]}static eventNames(){return Object.keys(this.listeners)}static removeAllListeners(){Object.keys(this.listeners).forEach(n=>{this.listeners[n].forEach(({listener:u,capture:l})=>{document.removeEventListener(n,u,{capture:l})})}),this.listeners={}}}const zb=k.createContext();function fA({children:o,initialLanguage:n}){const[u,l]=k.useState(n),d=k.useRef(Dl());k.useEffect(()=>{u!==n&&(d.current=Dl()),pe.language=d.current,pe.languagecode=u,km()},[u,n]);const c=k.useCallback(h=>{d.current=Dl(),pe.language=d.current,pe.languagecode=h,km();const y=localStorage.getItem("tabName"),_=d.current?.getMessage(u,"tabname");if(y===_||!y){const g=JM[h.replace("-","_")]?.tabname||d.current?.getMessage(h,"tabname")||"Mue";localStorage.setItem("tabName",g),document.title=g}localStorage.setItem("language",h),localStorage.removeItem("currentWeather"),l(h)},[u]),f=k.useCallback((h,y={})=>xb(h)?ya(h):d.current?d.current.getMessage(u,h,y):h,[u]);k.useEffect(()=>{const h=y=>{y?.language&&c(y.language)};return _e.on("languageChange",h),()=>{_e.off("languageChange",h)}},[c]),k.useEffect(()=>{pe.getMessage=(h,y={})=>f(h,y)},[f]);const p=k.useMemo(()=>({language:u,languagecode:u,changeLanguage:c,t:f}),[u,c,f]);return w.jsx(zb.Provider,{value:p,children:o})}function Tb(){const o=k.useContext(zb);if(!o)throw new Error("useTranslation must be used within a TranslationProvider");return o}function Qo(){const{t:o}=Tb();return o}function gA({info:o}){const n=Qo();return o.hidden===!0||!o.credit||localStorage.getItem("photoInformation")==="false"?null:w.jsx("div",{className:"photoInformation",style:{position:"absolute",left:"1rem",bottom:"1rem",padding:"4px 10px",borderRadius:"10px",fontSize:"0.8rem",color:"#fff",background:"rgba(0, 0, 0, 0.45)"},children:w.jsxs("span",{id:"credit",children:[n("widgets.background.credit")," ",o.credit]})})}const hA=k.memo(gA);var Nb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},j_=ve.createContext&&ve.createContext(Nb),_A=["attr","size","title"];function vA(o,n){if(o==null)return{};var u,l,d=bA(o,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(l=0;l<c.length;l++)u=c[l],n.indexOf(u)===-1&&{}.propertyIsEnumerable.call(o,u)&&(d[u]=o[u])}return d}function bA(o,n){if(o==null)return{};var u={};for(var l in o)if({}.hasOwnProperty.call(o,l)){if(n.indexOf(l)!==-1)continue;u[l]=o[l]}return u}function Il(){return Il=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var u=arguments[n];for(var l in u)({}).hasOwnProperty.call(u,l)&&(o[l]=u[l])}return o},Il.apply(null,arguments)}function D_(o,n){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);n&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),u.push.apply(u,l)}return u}function Ul(o){for(var n=1;n<arguments.length;n++){var u=arguments[n]!=null?arguments[n]:{};n%2?D_(Object(u),!0).forEach(function(l){yA(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):D_(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}function yA(o,n,u){return(n=kA(n))in o?Object.defineProperty(o,n,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[n]=u,o}function kA(o){var n=wA(o,"string");return typeof n=="symbol"?n:n+""}function wA(o,n){if(typeof o!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var l=u.call(o,n);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function Eb(o){return o&&o.map((n,u)=>ve.createElement(n.tag,Ul({key:u},n.attr),Eb(n.child)))}function le(o){return n=>ve.createElement(SA,Il({attr:Ul({},o.attr)},n),Eb(o.child))}function SA(o){var n=u=>{var l=o.attr,d=o.size,c=o.title,f=vA(o,_A),p=d||u.size||"1em",h;return u.className&&(h=u.className),o.className&&(h=(h?h+" ":"")+o.className),ve.createElement("svg",Il({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},u.attr,l,f,{className:h,style:Ul(Ul({color:o.color||u.color},u.style),o.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&ve.createElement("title",null,c),o.children)};return j_!==void 0?ve.createElement(j_.Consumer,null,u=>n(u)):n(Nb)}function MA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"4",r:"2"},child:[]},{tag:"path",attr:{d:"M15.89 8.11C15.5 7.72 14.83 7 13.53 7h-2.54C8.24 6.99 6 4.75 6 2H4c0 3.16 2.11 5.84 5 6.71V22h2v-6h2v6h2V10.05L18.95 14l1.41-1.41z"},child:[]}]})(o)}function $T(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 3H3c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5a2 2 0 0 0-2-2m0 14H3V5h18z"},child:[]}]})(o)}function eN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 10H7v2h10zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zm-5-5H7v2h7z"},child:[]}]})(o)}function Ls(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.96 7.96 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"},child:[]}]})(o)}function AA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"},child:[]}]})(o)}function jb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(o)}function Is(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(o)}function CA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(o)}function Om(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(o)}function tN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"},child:[]}]})(o)}function Db(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"},child:[]}]})(o)}function xA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"},child:[]}]})(o)}function zA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"},child:[]}]})(o)}function aN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"},child:[]}]})(o)}function TA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2m2 10H3v4c0 1.1.9 2 2 2h4v-2H5zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function NA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4z"},child:[]},{tag:"path",attr:{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 10-2.5-1.5L15 12V4h5z"},child:[]}]})(o)}function oN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"},child:[]}]})(o)}function iN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"},child:[]}]})(o)}function nN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"},child:[]}]})(o)}function EA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"},child:[]}]})(o)}function jA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"},child:[]}]})(o)}function Ob(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"},child:[]}]})(o)}function DA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4z"},child:[]}]})(o)}function sN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16zM4 15h16v-2H4z"},child:[]}]})(o)}function O_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"},child:[]}]})(o)}function qb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"},child:[]}]})(o)}function rN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11A4.99 4.99 0 0 0 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0"},child:[]}]})(o)}function OA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"},child:[]}]})(o)}function lN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"},child:[]}]})(o)}function qA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"},child:[]}]})(o)}function q_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0"},child:[]},{tag:"path",attr:{d:"M8 11h8v2H8zm12.1 1H22c0-2.76-2.24-5-5-5h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M19 12h-2v3h-3v2h3v3h2v-3h3v-2h-3z"},child:[]}]})(o)}function RA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function uN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"},child:[]}]})(o)}function BA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16z"},child:[]}]})(o)}function LA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8M6 13c0-1.65.67-3.15 1.76-4.24L6.34 7.34A8.01 8.01 0 0 0 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"},child:[]}]})(o)}function dN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95M12 19c-3.87 0-7-3.13-7-7 0-3.53 2.61-6.43 6-6.92V2.05c-5.06.5-9 4.76-9 9.95 0 5.52 4.47 10 9.99 10 3.31 0 6.24-1.61 8.06-4.09l-2.6-1.53A6.95 6.95 0 0 1 12 19"},child:[]}]})(o)}function IA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a9 9 0 0 0 0-18m0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"},child:[]}]})(o)}function cN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},child:[]}]})(o)}function mN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"},child:[]}]})(o)}function Rb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zM3 16h7v-2H3zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59z"},child:[]}]})(o)}function UA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2zM3 16h7v-2H3z"},child:[]}]})(o)}function PA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M19 3H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function HA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.87 15.07-2.54-2.51.03-.03A17.5 17.5 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"},child:[]}]})(o)}function pN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 10H6v-2h8zm4-4H6v-2h12z"},child:[]}]})(o)}function FA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"},child:[]}]})(o)}function qm(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},child:[]}]})(o)}function VA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function GA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"},child:[]}]})(o)}function KA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"},child:[]}]})(o)}function YA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"},child:[]}]})(o)}function WA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a6 6 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"},child:[]}]})(o)}function QA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 18 2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2"},child:[]}]})(o)}function R_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},child:[]}]})(o)}function fN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m9 7h-6v13h-2v-6h-2v6H9V9H3V7h18z"},child:[]}]})(o)}function B_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"},child:[]}]})(o)}function ZA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"},child:[]}]})(o)}function gN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zM11.5 9.5 9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"},child:[]}]})(o)}function hN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"},child:[]}]})(o)}function _N(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"},child:[]}]})(o)}function XA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18.62 18h-5.24l2-4H13V6h8v7.24zm-2-2h.76L19 12.76V8h-4v4h3.62zm-8 2H3.38l2-4H3V6h8v7.24zm-2-2h.76L9 12.76V8H5v4h3.62z"},child:[]}]})(o)}function JA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16zM7 9h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z"},child:[]}]})(o)}function $A(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-4.51 2.11.26 2.79-2.74.62-1.43 2.41L12 18.82l-2.58 1.11-1.43-2.41-2.74-.62.26-2.8L3.66 12l1.85-2.12-.26-2.78 2.74-.61 1.43-2.41L12 5.18l2.58-1.11 1.43 2.41 2.74.62-.26 2.79L20.34 12zM11 15h2v2h-2zm0-8h2v6h-2z"},child:[]}]})(o)}function vN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5 9.65 9.65 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6m-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14M2.01 3.87l2.68 2.68A11.74 11.74 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13m-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53"},child:[]}]})(o)}function bN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0 1 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"},child:[]}]})(o)}function eC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.6.6 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},child:[]}]})(o)}function tC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10.5 4.5c.28 0 .5.22.5.5v2h6v6h2c.28 0 .5.22.5.5s-.22.5-.5.5h-2v6h-2.12c-.68-1.75-2.39-3-4.38-3s-3.7 1.25-4.38 3H4v-2.12c1.75-.68 3-2.39 3-4.38S5.76 9.8 4.01 9.12L4 7h6V5c0-.28.22-.5.5-.5m0-2A2.5 2.5 0 0 0 8 5H4c-1.1 0-1.99.9-1.99 2v3.8h.29c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-.3c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7v.3H17c1.1 0 2-.9 2-2v-4a2.5 2.5 0 0 0 0-5V7c0-1.1-.9-2-2-2h-4a2.5 2.5 0 0 0-2.5-2.5"},child:[]}]})(o)}function aC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"},child:[]}]})(o)}function oC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"},child:[]}]})(o)}const Yo={SETTINGS:"settings"},Re={SETTINGS:zA,LIBRARY:QA,TASKBOX:Ob,DISCOVER:GA,NAVBAR:AA,GREETING:MA,TIME:IA,QUOTE:XA,QUICKLINKS:OA,DATE:YA,MESSAGE:JA,BACKGROUND:ZA,SEARCH:qm,WEATHER:jA,APPEARANCE:DA,LANGUAGE:HA,ADVANCED:eC,EXPERIMENTAL:WA,STATS:oC,CHANGELOG:$A,ABOUT:VA,ADDED:tC,CREATE:RA,OVERVIEW:PA,COLLECTIONS:NA},Fe={OVERVIEW:"modals.main.marketplace.product.overview",SETTINGS:"modals.main.navbar.settings",LIBRARY:"modals.main.navbar.library",DISCOVER:"modals.main.navbar.discover",NAVBAR:"modals.main.settings.sections.appearance.navbar.title",GREETING:"modals.main.settings.sections.greeting.title",TIME:"modals.main.settings.sections.time.title",QUICKLINKS:"modals.main.settings.sections.quicklinks.title",QUOTE:"modals.main.settings.sections.quote.title",DATE:"modals.main.settings.sections.date.title",MESSAGE:"modals.main.settings.sections.message.title",BACKGROUND:"modals.main.settings.sections.background.title",SEARCH:"modals.main.settings.sections.search.title",WEATHER:"modals.main.settings.sections.weather.title",APPEARANCE:"modals.main.settings.sections.appearance.title",LANGUAGE:"modals.main.settings.sections.language.title",ADVANCED:"modals.main.settings.sections.advanced.title",STATS:"modals.main.settings.sections.stats.title",EXPERIMENTAL:"modals.main.settings.sections.experimental.title",CHANGELOG:"modals.main.settings.sections.changelog.title",ABOUT:"modals.main.settings.sections.about.title",ADDED:"modals.main.addons.added",CREATE:"modals.main.addons.create.title",ALL_MARKETPLACE:"modals.main.marketplace.all",PHOTO_PACKS:"modals.main.marketplace.photo_packs",QUOTE_PACKS:"modals.main.marketplace.quote_packs",PRESET_SETTINGS:"modals.main.marketplace.preset_settings",COLLECTIONS:"modals.main.marketplace.collections"},yN=(o,n)=>({[n.getMessage(Fe.OVERVIEW)]:Re.OVERVIEW,[n.getMessage(Fe.SETTINGS)]:Re.SETTINGS,[n.getMessage(Fe.LIBRARY)]:Re.LIBRARY,[n.getMessage(Fe.DISCOVER)]:Re.DISCOVER,[n.getMessage(Fe.NAVBAR)]:Re.NAVBAR,[n.getMessage(Fe.GREETING)]:Re.GREETING,[n.getMessage(Fe.TIME)]:Re.TIME,[n.getMessage(Fe.QUICKLINKS)]:Re.QUICKLINKS,[n.getMessage(Fe.QUOTE)]:Re.QUOTE,[n.getMessage(Fe.DATE)]:Re.DATE,[n.getMessage(Fe.MESSAGE)]:Re.MESSAGE,[n.getMessage(Fe.BACKGROUND)]:Re.BACKGROUND,[n.getMessage(Fe.SEARCH)]:Re.SEARCH,[n.getMessage(Fe.WEATHER)]:Re.WEATHER,[n.getMessage(Fe.APPEARANCE)]:Re.APPEARANCE,[n.getMessage(Fe.LANGUAGE)]:Re.LANGUAGE,[n.getMessage(Fe.ADVANCED)]:Re.ADVANCED,[n.getMessage(Fe.STATS)]:Re.STATS,[n.getMessage(Fe.EXPERIMENTAL)]:Re.EXPERIMENTAL,[n.getMessage(Fe.CHANGELOG)]:Re.CHANGELOG,[n.getMessage(Fe.ABOUT)]:Re.ABOUT,[n.getMessage("wb.settings_credits")]:Re.ABOUT,[n.getMessage("wb.settings_taskbox")]:Re.TASKBOX,[n.getMessage(Fe.ADDED)]:Re.ADDED,[n.getMessage(Fe.CREATE)]:Re.CREATE,[n.getMessage(Fe.ALL_MARKETPLACE)]:Re.LIBRARY,[n.getMessage(Fe.PHOTO_PACKS)]:Re.BACKGROUND,[n.getMessage(Fe.QUOTE_PACKS)]:Re.QUOTE,[n.getMessage(Fe.PRESET_SETTINGS)]:Re.ADVANCED,[n.getMessage(Fe.COLLECTIONS)]:Re.COLLECTIONS})[o],iC=[{tab:Yo.SETTINGS,icon:Re.SETTINGS,messageKey:"modals.main.navbar.settings"}],kN=["modals.main.settings.sections.appearance.title","modals.main.settings.sections.advanced.title"],Pl=(o=window.location.hash)=>{if(!o||o==="#")return null;const[n,u,l]=o.slice(1).split("/");return n!==Yo.SETTINGS?null:{tab:n,section:u||void 0,subSection:l||void 0}},Hl=(o,n=!0)=>{window.history.pushState?n?window.history.pushState(null,null,o):window.history.replaceState(null,null,o):window.location.hash=o},nC=()=>Pl()!==null,sC="MueCustomBackgrounds",rC=1,zt="backgrounds";function Ti(){return new Promise((o,n)=>{const u=indexedDB.open(sC,rC);u.onerror=()=>n(u.error),u.onsuccess=()=>o(u.result),u.onupgradeneeded=l=>{const d=l.target.result;d.objectStoreNames.contains(zt)||d.createObjectStore(zt,{keyPath:"id",autoIncrement:!0}).createIndex("url","url",{unique:!1})}})}async function Bb(){try{const l=(await Ti()).transaction(zt,"readonly").objectStore(zt).getAll();return new Promise((d,c)=>{l.onsuccess=()=>{const f=l.result;d(f.map(p=>typeof p.url=="string"&&!p.name?{id:p.id,url:p.url,name:`Image ${p.id}`,uploadDate:p.createdAt||Date.now(),dimensions:null,fileSize:null,folder:"",blurHash:null}:p))},l.onerror=()=>c(l.error)})}catch(o){return console.error("Error getting backgrounds from IndexedDB:",o),[]}}async function lC(){return(await Bb()).map(n=>n.url||n)}async function uC(o){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt),d=typeof o=="string"?{url:o,name:"Image",uploadDate:Date.now(),folder:""}:{...o,uploadDate:o.uploadDate||Date.now()},c=l.add(d);return new Promise((f,p)=>{c.onsuccess=()=>f(c.result),c.onerror=()=>p(c.error)})}async function wN(o){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt),d=l.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result;if(p[o]){const h=l.delete(p[o].id);h.onsuccess=()=>c(),h.onerror=()=>f(h.error)}else c()},d.onerror=()=>f(d.error)})}async function SN(o){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt),d=l.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result,h=o.filter(g=>p[g]).map(g=>p[g].id);let y=0;const _=h.length;if(_===0){c();return}h.forEach(g=>{const b=l.delete(g);b.onsuccess=()=>{y++,y===_&&c()},b.onerror=()=>f(b.error)})},d.onerror=()=>f(d.error)})}async function Lb(){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt).clear();return new Promise((d,c)=>{l.onsuccess=()=>d(),l.onerror=()=>c(l.error)})}async function dC(){const l=(await Ti()).transaction(zt,"readonly").objectStore(zt).count();return new Promise((d,c)=>{l.onsuccess=()=>d(l.result),l.onerror=()=>c(l.error)})}async function MN(o,n){const d=(await Ti()).transaction(zt,"readwrite").objectStore(zt),c=d.get(o);return new Promise((f,p)=>{c.onsuccess=()=>{const h=c.result;if(h){Object.assign(h,n),h.updatedAt=Date.now();const y=d.put(h);y.onsuccess=()=>f(),y.onerror=()=>p(y.error)}else p(new Error("Background not found"))},c.onerror=()=>p(c.error)})}async function AN(){try{const o=localStorage.getItem("customBackground");if(!o||o==="null"||o==="[]")return!1;let n=[];try{n=JSON.parse(o),Array.isArray(n)||(n=[o])}catch{n=[o]}if(n=n.filter(l=>l&&l.trim()!==""),n.length===0||await dC()>0)return!1;try{for(const l of n)await uC(l)}catch(l){try{await Lb()}catch{}throw l}return console.log(`Migrated ${n.length} backgrounds from localStorage to IndexedDB`),localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(n.length)),localStorage.setItem("customBackgroundMigrated","true"),!0}catch(o){return console.error("Error migrating backgrounds:",o),!1}}function cC({photoInfo:o,currentAPI:n,url:u}){const l=localStorage.getItem("backgroundType")==="custom",[d,c]=k.useState([]),[f,p]=k.useState(!0);k.useEffect(()=>{(async()=>{if(l)try{const g=await lC();c(g||[])}catch(g){console.error("Failed to load custom backgrounds:",g),c([])}p(!1)})()},[l,u]);const h=l&&!f&&(!d||d.length===0),y=()=>{Hl("#settings/background/source"),_e.emit("modal","openMainModal")};return w.jsxs(w.Fragment,{children:[w.jsx("div",{id:"backgroundImage"}),h&&w.jsxs("div",{style:{position:"absolute",bottom:"20px",left:"20px",color:"white",background:"rgba(0, 0, 0, 0.6)",padding:"20px 30px",borderRadius:"10px",zIndex:1},children:[w.jsx("h2",{style:{margin:"0 0 10px 0",fontSize:"20px"},children:pe.getMessage("widgets.background.no_images_title")||"No Custom Images"}),w.jsx("p",{style:{margin:"0 0 15px 0",fontSize:"14px",opacity:.9},children:pe.getMessage("widgets.background.no_images_description")||"Please add custom images in the Background settings"}),w.jsx("button",{onClick:y,style:{background:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white",padding:"10px 20px",borderRadius:"5px",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"all 0.2s"},onMouseOver:_=>{_.target.style.background="rgba(255, 255, 255, 0.3)"},onMouseOut:_=>{_.target.style.background="rgba(255, 255, 255, 0.2)"},children:pe.getMessage("widgets.background.add_images_button")||"Add Images"})]}),o?.credit&&w.jsx(hA,{info:o,api:n,url:u})]})}const mC=k.memo(cC),L_=()=>({muted:localStorage.getItem("backgroundVideoMute")==="true",loop:localStorage.getItem("backgroundVideoLoop")==="true"});function pC({url:o,filterStyle:n}){const[{muted:u,loop:l},d]=k.useState(L_);return k.useEffect(()=>{const c=f=>{f==="backgroundvideo"&&d(L_())};return _e.on("refresh",c),()=>_e.off("refresh",c)},[]),w.jsx("video",{autoPlay:!0,muted:u,loop:l,style:n,id:"backgroundVideo",children:w.jsx("source",{src:o})},o)}const fC=k.memo(pC);function gC(){const[o,n]=k.useState({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!1,offline:!1,photographerURL:"",photoURL:""}}),u=k.useCallback(d=>{n(c=>({...c,...d,photoInfo:{...c.photoInfo,...d.photoInfo||{}}}))},[]),l=k.useCallback(()=>{n({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!0}})},[]);return{backgroundData:o,updateBackground:u,resetBackground:l}}const hC={photo:[5]},$c={"Ryan Hutton":{photo:[1]},"Francesco De Tommaso":{photo:[2]},"Andy Vu":{photo:[3]},"Sergi Ferrete":{photo:[4]},Pixabay:hC};function Ib(o){const n=Object.keys($c),u=n[Math.floor(Math.random()*n.length)],d={url:`src/assets/offline-images/${$c[u].photo[Math.floor(Math.random()*$c[u].photo.length)]}.webp`,type:o,photoInfo:{offline:!0,credit:u}};return localStorage.setItem("currentBackground",JSON.stringify(d)),d}function _C(o){const n=()=>"#000000".replace(/0/g,()=>(~~(Math.random()*16)).toString(16));let u=`background:${n()};`;if(o==="random_gradient"){const l=["to right","to left","to bottom","to top","to bottom right","to bottom left","to top right","to top left"];u=`background:linear-gradient(${l[Math.floor(Math.random()*l.length)]}, ${n()}, ${n()});`}return{type:"colour",style:u}}function Ub(o){return o.startsWith("data:video/")||o.startsWith("video/")||o.endsWith(".mp4")||o.endsWith(".webm")||o.endsWith(".ogg")}const Pb=(o,n=null)=>{const u=localStorage.getItem(o);if(u===null||u==="null")return n;try{const l=JSON.parse(u);return l!==null?l:n}catch{return n}};async function vC(){const o=localStorage.getItem("offlineMode")==="true"||localStorage.getItem("showWelcome")==="true",n=Pb("favourite");if(n)return n.type==="random_colour"||n.type==="random_gradient"?{type:"colour",style:`background:${n.url}`}:{url:n.url,photoInfo:{...n,url:n.url}};const u=localStorage.getItem("backgroundType");switch(u){case"api":return yC();case"colour":return bC();case"random_colour":case"random_gradient":return _C(u);case"custom":return await kC(o);default:return null}}function bC(){return{type:"colour",style:`background: ${localStorage.getItem("customBackgroundColour")||"rgb(0,0,0)"}`}}function yC(){return{...Ib("api"),currentAPI:localStorage.getItem("backgroundAPI")||"mue"}}async function kC(o){let n=await Bb();if(!n||n.length===0){const c=Pb("customBackground",[]);c&&c.length>0&&(n=c.map(f=>({url:f,photoInfo:{hidden:!0}})))}if(!n||n.length===0)return null;const u=n[Math.floor(Math.random()*n.length)];if(!u)return null;const l=u.url||u;if(o&&!l.startsWith("data:"))return Ib("custom");const d={url:l,type:"custom",video:Ub(l),photoInfo:{hidden:!0,blur_hash:u.blurHash||null}};try{localStorage.setItem("currentBackground",JSON.stringify({type:"custom",video:d.video,photoInfo:d.photoInfo}))}catch(c){console.warn("Could not save currentBackground to localStorage:",c)}return d}function wC(o,n){const u=k.useRef(0),l=k.useCallback(async()=>{const c=++u.current,f=()=>c!==u.current;try{if(localStorage.getItem("welcomeTab")){const y=localStorage.getItem("welcomeImage");if(y){o(JSON.parse(y));return}}const h=await vC();if(f())return;h&&o(h)}catch(p){console.error("Failed to load background:",p)}},[o]),d=k.useCallback(()=>{n(),l()},[l,n]);return k.useEffect(()=>{const c=localStorage.getItem("backgroundchange");(!localStorage.getItem("backgroundStartTime")||c==="refresh")&&localStorage.setItem("backgroundStartTime",Date.now()),l()},[l]),{loadBackground:l,refreshBackground:d}}async function SC(o){try{const n=await fetch(o,{mode:"cors",credentials:"omit"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const u=await n.blob();return URL.createObjectURL(u)}catch{return null}}const MC="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",Ol=(o,n,u)=>{let l=0;for(;n<u;)l=l*83+MC.indexOf(o[n++]);return l},Hb=Math.pow,js=Math.PI,Fb=3294.6,Vb=269.025,AC=o=>o>10.31475?Hb(o/Vb+.052132,2.4):o/Fb,CC=o=>~~(o>1227e-8?Vb*Hb(o,.416666)-13.025:o*Fb+1),Fl=4096,Gb=new Uint8ClampedArray(Fl+1);for(let o=0;o<=Fl;o++)Gb[o]=CC(o/Fl);const em=o=>o<=0?0:o>=1?255:Gb[o*Fl+.5|0],Ds=o=>(o<0?-1:1)*o*o,I_=o=>{for(o+=js/2;o>js;)o-=js*2;const n=1.27323954*o-.405284735*Ds(o);return .225*(Ds(n)-n)+n};function xC(o){const n=Ol(o,2,6);return[n>>16,n>>8&255,n&255]}function zC(o,n,u,l){const d=Ol(o,0,1),c=d%9+1,f=~~(d/9)+1,p=c*f;let h,y,_,g,b,S,C,z,A,E,x,L;const G=(Ol(o,1,2)+1)/13446*(l|1),Z=new Float64Array(p*3),H=xC(o);for(h=0;h<3;h++)Z[h]=AC(H[h]);for(h=1;h<p;h++)L=Ol(o,4+h*2,6+h*2),Z[h*3]=Ds(~~(L/361)-9)*G,Z[h*3+1]=Ds(~~(L/19)%19-9)*G,Z[h*3+2]=Ds(L%19-9)*G;const D=new Float64Array(f*u),q=new Float64Array(c*n);for(y=0;y<f;y++)for(g=0;g<u;g++)D[y*u+g]=I_(js*g*y/u);for(h=0;h<c;h++)for(_=0;_<n;_++)q[h*n+_]=I_(js*_*h/n);const V=n*4,$=new Uint8ClampedArray(V*u),W=new Float64Array(c*3);for(g=0;g<u;g++){for(h=0;h<c;h++){for(b=S=C=0,y=0;y<f;y++)A=D[y*u+g],E=(h+y*c)*3,b+=Z[E]*A,S+=Z[E+1]*A,C+=Z[E+2]*A;W[h*3]=b,W[h*3+1]=S,W[h*3+2]=C}for(_=0;_<n;_++){for(b=S=C=0,h=0;h<c;h++)z=q[h*n+_],E=h*3,b+=W[E]*z,S+=W[E+1]*z,C+=W[E+2]*z;x=4*_+g*V,$[x]=em(b),$[x+1]=em(S),$[x+2]=em(C),$[x+3]=255}}return $}function TC(o,n=32,u=32){try{const l=document.createElement("canvas");l.width=n,l.height=u;const d=l.getContext("2d"),c=d.createImageData(n,u);return c.data.set(zC(o,n,u)),d.putImageData(c,0,0),l.toDataURL()}catch(l){return console.error("Failed to generate blur hash:",l),null}}function Rm(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px) brightness(${n}%)`;return u&&u!=="none"&&(d+=` ${u}(${l}%)`),d}function Bm(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px)`;u&&u!=="none"&&(d+=` ${u}(${l}%)`);const f=(100-parseInt(n,10))/100;return{backdropFilter:d,WebkitBackdropFilter:d,backgroundColor:`rgba(0, 0, 0, ${f})`}}const Kb=()=>document.documentElement.dataset.bgMaximised==="true",NC={backdropFilter:"",WebkitBackdropFilter:"",backgroundColor:""},U_=1200;function EC(o){const n=k.useRef(null);k.useEffect(()=>{if(o.video)return;const u=document.getElementById("backgroundImage");if(!u)return;let l=!1,d=null;return(async()=>{if(o.url){const f=localStorage.getItem("bgtransition")!=="false",p=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!f||p){u.style.background=`url(${o.url})`,document.querySelector(".photoInformation")?.style.setProperty("display","flex");return}let h=document.getElementById("backgroundOverlay");if(h||(h=document.createElement("div"),h.id="backgroundOverlay",u.parentNode.insertBefore(h,u.nextSibling)),o.photoInfo?.colour&&(u.style.backgroundColor=o.photoInfo.colour),o.photoInfo?.blur_hash){const b=TC(o.photoInfo.blur_hash,64,64);b&&(u.style.backgroundImage=`url(${b})`)}const y=await SC(o.url);if(l){y&&URL.revokeObjectURL(y);return}const _=y||o.url;y&&(n.current&&URL.revokeObjectURL(n.current),n.current=y);const g=new Image;if(g.src=_,await new Promise(b=>{g.onload=b,g.onerror=b}),l)return;h.style.transition="none",h.style.opacity="0",h.style.backgroundImage="",h.offsetHeight,h.style.backgroundImage=`url(${_})`,h.offsetHeight,h.style.transition=`opacity ${U_/1e3}s ease-in-out`,h.offsetHeight,h.style.opacity="1",d=setTimeout(()=>{u.style.backgroundImage=`url(${_})`,h.style.opacity="0",h.style.backgroundImage=""},U_+100)}else o.style?u.setAttribute("style",o.style):u.style.backgroundImage=""})(),()=>{l=!0,clearTimeout(d),n.current&&(URL.revokeObjectURL(n.current),n.current=null);const f=document.getElementById("backgroundOverlay");f&&f.remove()}},[o.url,o.style,o.video,o.photoInfo])}function jC(o){return k.useMemo(()=>({WebkitFilter:Kb()?"blur(0px) brightness(100%)":Rm()}),[o])}function DC(o){return k.useMemo(()=>Kb()?NC:Bm(),[o])}function OC(o,n){k.useEffect(()=>{const u=c=>{c==="welcomeLanguage"?localStorage.setItem("welcomeImage",JSON.stringify(o)):c==="background"?l():["backgroundwelcome","backgroundrefresh"].includes(c)?n():c==="backgroundeffect"&&d()},l=()=>{const c=document.getElementById(o.video?"backgroundVideo":"backgroundImage"),f=document.querySelector(".photoInformation");if(!(localStorage.getItem("background")!=="false")){c?.style.setProperty("display","none"),o.photoInfo?.hidden||f?.style.setProperty("display","none");return}c?.style.setProperty("display","block"),o.photoInfo?.hidden||f?.style.setProperty("display","flex");const h=localStorage.getItem("backgroundType");(h!==o.type&&!(o.photoInfo?.offline&&h===o.type)||o.type==="api"&&localStorage.getItem("backgroundAPI")!==o.currentAPI||h==="custom"&&o.type!=="custom"||h==="colour"||o.photoInfo?.pun&&JSON.parse(localStorage.getItem("backgroundExclude")||"[]").includes(o.photoInfo.pun))&&n()},d=()=>{if(document.documentElement.dataset.bgMaximised!=="true")if(o.video){const c=Rm(),f=document.getElementById("backgroundVideo");f&&(f.style.webkitFilter=c)}else{const c=document.getElementById("backgroundFilterOverlay");if(c){const f=Bm();c.style.backdropFilter=f.backdropFilter,c.style.webkitBackdropFilter=f.WebkitBackdropFilter,c.style.backgroundColor=f.backgroundColor}}};return _e.on("refresh",u),()=>_e.off("refresh",u)},[o,n])}function qC(){const{backgroundData:o,updateBackground:n,resetBackground:u}=gC(),{refreshBackground:l}=wC(n,u),d=jC(o),c=DC(o);return EC(o),OC(o,l),w.jsxs(w.Fragment,{children:[o.video?w.jsx(fC,{url:o.url,filterStyle:d}):w.jsx(mC,{photoInfo:o.photoInfo,currentAPI:o.currentAPI,url:o.url}),w.jsx("div",{id:"backgroundFilterOverlay",style:c})]})}const RC=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),BC=function(o,n){return new URL(o,n).href},P_={},Lm=function(n,u,l){let d=Promise.resolve();if(u&&u.length>0){let y=function(_){return Promise.all(_.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const f=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),h=p?.nonce||p?.getAttribute("nonce");d=y(u.map(_=>{if(_=BC(_,l),_ in P_)return;P_[_]=!0;const g=_.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(l)for(let C=f.length-1;C>=0;C--){const z=f[C];if(z.href===_&&(!g||z.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":RC,g||(S.as="script"),S.crossOrigin="",S.href=_,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((C,z)=>{S.addEventListener("load",C),S.addEventListener("error",()=>z(new Error(`Unable to preload CSS for ${_}`)))})}))}function c(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return d.then(f=>{for(const p of f||[])p.status==="rejected"&&c(p.reason);return n().catch(c)})};function Yb(o){if(o>3&&o<21)return o+"th";switch(o%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd";default:return o+"th"}}function Im(o,n){return new Date((typeof o=="string"?new Date(o):o).toLocaleString("en-US",{timeZone:n}))}function Wb(){const o=localStorage.getItem("language")?.replace(/_/g,"-")||"en-GB",n={ar:"arab",fa:"arabext",bn:"beng",hi:"deva",mr:"deva",ne:"deva",ta:"tamldec"},u=o.split("-")[0];return n[u]?`${o}-u-nu-${n[u]}`:o}function LC(o){if(localStorage.getItem("localeFormatting")==="false")return Math.round(o*100)+"%";try{return new Intl.NumberFormat(Wb(),{style:"percent",maximumFractionDigits:0}).format(o)}catch{return Math.round(o*100)+"%"}}function Es(o){if(localStorage.getItem("localeFormatting")==="false")return String(o);try{const u=typeof o=="string"?parseInt(o,10):o;return isNaN(u)?String(o):new Intl.NumberFormat(Wb(),{useGrouping:!1}).format(u)}catch{return String(o)}}const IC=k.lazy(()=>Lm(()=>import("./index-IXgZpYJT.js"),[],import.meta.url));function UC({time:o}){const n=u=>localStorage.getItem(u)==="true";return w.jsx(k.Suspense,{fallback:w.jsx(w.Fragment,{}),children:w.jsx("div",{className:`clockBackground ${n("roundClock")?"round":""}`,children:w.jsx(IC,{className:"analogclock clock-container",value:o,size:1.5*Number(localStorage.getItem("zoomClock")||100),renderMinuteMarks:n("minuteMarks"),renderHourMarks:n("hourMarks"),renderSecondHand:n("secondHand"),renderMinuteHand:n("minuteHand"),renderHourHand:n("hourHand")})})})}function PC({finalHour:o,finalMinute:n,finalSeconds:u}){const l=localStorage.getItem("hourColour")||"#fff",d=localStorage.getItem("minuteColour")||"#fff",c=localStorage.getItem("secondColour")||"#fff";return w.jsxs("span",{className:"vertical-clock clock-container",children:[w.jsx("div",{className:"hour",style:{color:l},children:o}),w.jsx("div",{className:"minute",style:{color:d},children:n}),w.jsx("div",{className:"seconds",style:{color:c},children:u})]})}const Yt=o=>String(o).split("").map(u=>Es(u)).join(""),HC=()=>{const[o]=k.useState(localStorage.getItem("timeType")),[n,u]=k.useState(""),[l,d]=k.useState(""),[c,f]=k.useState(""),[p,h]=k.useState(""),[y,_]=k.useState(""),[g,b]=k.useState("block"),[S,C]=k.useState("4em"),z=k.useRef(void 0),A=(E=localStorage.getItem("seconds")==="true"||localStorage.getItem("timeType")==="analogue"?1e3-Date.now()%1e3:6e4-Date.now()%6e4)=>{z.current=setTimeout(()=>{let x=new Date;const L=localStorage.getItem("timezone");switch(L&&L!=="auto"&&(x=Im(x,L)),localStorage.getItem("timeType")){case"percentageComplete":u(LC(x.getHours()/24)),_("");break;case"analogue":Lm(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),u(x);break;default:{let G,Z="";const H=localStorage.getItem("zero");if(localStorage.getItem("seconds")==="true"){const D=("00"+x.getSeconds()).slice(-2);Z=`:${Yt(D)}`,h(Yt(D))}else h("");if(localStorage.getItem("timeformat")==="twentyfourhour"){const D=("00"+x.getMinutes()).slice(-2);if(H==="true"){const q=("00"+x.getHours()).slice(-2);G=`${Yt(q)}:${Yt(D)}${Z}`,d(Yt(q)),f(Yt(D))}else{const q=x.getHours();G=`${Es(q)}:${Yt(D)}${Z}`,d(Es(q)),f(Yt(D))}u(G),_("")}else{let D=x.getHours();D>12?D-=12:D===0&&(D=12);const q=("00"+x.getMinutes()).slice(-2);if(H==="true"){const V=("00"+D).slice(-2);G=`${Yt(V)}:${Yt(q)}${Z}`,d(Yt(V)),f(Yt(q))}else G=`${Es(D)}:${Yt(q)}${Z}`,d(Es(D)),f(Yt(q));u(G),_(x.getHours()>11?"PM":"AM")}break}}A()},E)};return k.useEffect(()=>{const E=x=>{if(x==="clock"||x==="timezone"){if(localStorage.getItem("time")==="false"){b("none");return}clearTimeout(z.current),z.current=null,A(0),b("block"),C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`)}};return localStorage.getItem("timeType")!=="analogue"&&C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`),A(0),_e.on("refresh",E),()=>{_e.off("refresh",E),z.current&&clearTimeout(z.current)}},[]),localStorage.getItem("timeType")==="analogue"?w.jsx(UC,{time:n}):localStorage.getItem("timeType")==="verticalClock"?w.jsx(PC,{finalHour:l,finalMinute:c,finalSeconds:p}):w.jsxs("span",{className:"clock clock-container",style:{display:g,fontSize:S},children:[n,w.jsx("span",{className:"ampm",children:y})]})},FC=(o,n)=>{if(!(localStorage.getItem("events")!=="false"))return n;const l=o.getMonth(),d=o.getDate(),f=JSON.parse(localStorage.getItem("customEvents")||"[]").find(p=>p.month-1===l&&p.date===d);return f&&(n=f.name),n},H_=o=>{const n=Date.now()-o.getTime(),u=new Date(n);return Math.abs(u.getUTCFullYear()-1970)},VC=()=>{const o=Qo(),[n,u]=k.useState(""),[l,d]=k.useState("block"),[c,f]=k.useState("1.6em"),p=k.useRef(),h=k.useRef(null),y=(_=6e4-Date.now()%6e4)=>{h.current=setTimeout(()=>{let g=new Date;const b=localStorage.getItem("timezone");b&&b!=="auto"&&(g=Im(g,b));const S=g.getHours();let C;switch(!0){case S<12:C=o("widgets.greeting.morning");break;case S<18:C=o("widgets.greeting.afternoon");break;default:C=o("widgets.greeting.evening");break}const z=localStorage.getItem("defaultGreetingMessage");z==="false"?C="":C=FC(g,C);let A="";const E=localStorage.getItem("greetingName");typeof E=="string"&&E.replace(/\s/g,"").length>0&&(A=`, ${E.trim()}`);const x=localStorage.getItem("birthdayenabled");if(z==="false"&&x!=="true"&&(A=A.replace(",","")),x==="true"){const L=new Date(localStorage.getItem("birthday"));if(L.getDate()===g.getDate()&&L.getMonth()===g.getMonth())if(localStorage.getItem("birthdayage")==="true"&&H_(L)!==0){const G=o("widgets.greeting.birthday").split(" ");C=`${G[0]} ${Yb(H_(L))} ${G[1]}`}else C=o("widgets.greeting.birthday")}u(`${C}${A}`),y()},_)};return k.useEffect(()=>{const _=b=>{if(b==="greeting"||b==="timezone"){const S=localStorage.getItem("greeting"),C=localStorage.getItem("zoomGreeting");d(S==="false"?"none":"block"),f(`${1.6*Number((C||100)/100)}em`),S!=="false"&&(h.current&&clearTimeout(h.current),y(0))}},g=localStorage.getItem("zoomGreeting");return f(`${1.6*Number((g||100)/100)}em`),y(0),_e.on("refresh",_),()=>{_e.off("refresh",_),h.current&&clearTimeout(h.current)}},[o]),w.jsx("span",{className:"greeting",ref:p,style:{display:l,fontSize:c},children:n})},GC="wbNewtabHandoff:",au=o=>`${GC}${o}`,KC=4e3,ou=()=>typeof browser<"u"&&typeof browser?.sidebarAction?.open=="function",Us=()=>ou()?browser:typeof chrome<"u"&&chrome?.runtime?.id?chrome:null;let Vl=null;async function YC(){let o=null;try{o=await Us()?.tabs?.getCurrent?.()??null}catch{o=null}return o?.id!=null&&await ZC(Us(),o.id),Vl=o,Vl}function WC({text:o,mode:n,tabId:u,now:l=Date.now()}){return{id:`nt-${l}-${Math.random().toString(36).slice(2,8)}`,tabId:u,text:String(o).slice(0,KC),mode:n==="act"?"act":"ask",createdAt:l}}const Qb=16e4,Wo=new Map;function Zb(o){let n;const u=new Promise(d=>{n=d}),l=()=>{Wo.get(o)?.promise===u&&Wo.delete(o),n()};return Wo.set(o,{promise:u,release:l}),l}const QC=o=>Wo.has(o);function F_(o=Vl){return Wo.get(o?.id)?.promise??Promise.resolve()}async function ZC(o,n,u=Date.now()){if(!o?.storage?.local?.get||Wo.has(n))return!1;const l=au(n);let d;try{d=(await o.storage.local.get(l))?.[l]}catch{return!1}if(!d||Wo.has(n))return!1;const c=Qb-(u-Number(d.createdAt||0));return c>0?(Xb(o,n,Zb(n),c),!0):!1}function Xb(o,n,u,l=Qb){const d=au(n);let c;const f=(h,y)=>{(!y||y==="local")&&h?.[d]&&!h[d].newValue&&p()};function p(){clearTimeout(c),o.storage.onChanged?.removeListener?.(f),u()}c=setTimeout(p,l),o.storage.onChanged?.addListener?.(f),Promise.resolve(o.storage.local.get?.(d)).then(h=>{h?.[d]||p()}).catch(()=>{})}function XC({text:o,mode:n},u=Us(),l=Vl){if(!u||l?.id==null)return Promise.reject(new Error("Extension API unavailable"));if(Wo.has(l.id))return Promise.reject(new Error("Previous task is still being handed over"));const d=ou();if(!d&&!u.sidePanel?.open)return Promise.reject(new Error("Side panel API unavailable"));const c=Zb(l.id),f=WC({text:o,mode:n,tabId:l.id});let p,h;try{p=Promise.resolve(u.storage.local.set({[au(l.id)]:f})),d?h=u.sidebarAction.open():(Promise.resolve(u.sidePanel.setOptions({tabId:l.id,path:"src/ui/sidepanel.html",enabled:!0})).catch(()=>{}),h=u.sidePanel.open({tabId:l.id}))}catch(y){h=Promise.reject(y),p??=Promise.resolve()}return Promise.all([p,h]).then(()=>(Xb(u,l.id,c),Promise.resolve(u.runtime.sendMessage({type:"WB_NEWTAB_PANEL_OPENED",tabId:l.id})).catch(()=>{}),!0),async y=>{throw await p.catch(()=>{}),await JC(u,l.id,f.id),c(),y})}async function JC(o,n,u){const l=au(n);try{const d=(await o.storage.local.get(l))?.[l];(!d||d.id===u)&&await o.storage.local.remove(l)}catch{}}function $C(o=Us()){return ou()?typeof o?.search?.search=="function":typeof o?.search?.query=="function"}const V_=new Set(["http:","https:"]);function ex(o){const n=String(o||"").trim();if(!n||/\s/.test(n))return null;try{const u=new URL(n);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n))return V_.has(u.protocol)?u.href:null}catch{}if(/^(localhost|(\d{1,3}\.){3}\d{1,3}|([a-z0-9-]+\.)+[a-z]{2,})(:\d+)?([/?#]\S*)?$/i.test(n))try{const u=new URL(`https://${n}`);return V_.has(u.protocol)?u.href:null}catch{return null}return null}async function tx(o,n=Us(),u=l=>window.location.assign(l)){const l=ex(o);if(l)return u(l),!0;if(ou()&&n?.search?.search)return await n.search.search({query:o,disposition:"CURRENT_TAB"}),!0;if(n?.search?.query)return await n.search.query({text:o,disposition:"CURRENT_TAB"}),!0;throw new Error("Search API unavailable")}const ax=[{id:"ask",icon:BA},{id:"act",icon:Ob},{id:"search",icon:qm}],Jb=()=>ax.filter(o=>o.id!=="search"||$C()),ox=()=>{const o=localStorage.getItem("taskBoxMode");return Jb().some(n=>n.id===o)?o:"ask"};function ix(){const[o,n]=k.useState(ox),[u,l]=k.useState(""),[d,c]=k.useState(""),[f,p]=k.useState(!1),h=k.useRef(null),y=k.useRef(!1);k.useEffect(()=>{let g=!0;return YC().then(b=>{g&&b?.id!=null&&QC(b.id)&&(p(!0),F_(b).then(()=>g&&p(!1)))}),localStorage.getItem("taskBoxFocus")!=="false"&&h.current?.focus(),()=>{g=!1}},[]);const _=g=>{g.preventDefault();const b=u.trim();if(!(!b||f||y.current)){if(c(""),o==="search"){tx(b).catch(()=>c(ya("wb.panel_failed")));return}y.current=!0,p(!0),XC({text:b,mode:o}).then(()=>(l(""),F_())).catch(()=>c(ya("wb.panel_failed"))).finally(()=>{y.current=!1,p(!1),h.current?.focus()})}};return w.jsxs("div",{className:"taskBox",children:[w.jsxs("form",{className:"taskBoxForm",onSubmit:_,children:[w.jsx("input",{ref:h,className:"taskBoxInput",type:"text",value:u,maxLength:4e3,autoComplete:"off",spellCheck:!1,placeholder:ya(`wb.placeholder_${o}`),"aria-label":ya(`wb.placeholder_${o}`),disabled:f,onChange:g=>l(g.target.value)}),w.jsx("button",{className:"taskBoxGo",type:"submit","aria-label":ya("wb.go"),disabled:f||!u.trim(),children:w.jsx(Db,{})})]}),w.jsx("div",{className:"taskBoxModes",role:"radiogroup",children:Jb().map(({id:g,icon:b})=>w.jsxs("button",{type:"button",role:"radio","aria-checked":o===g,className:o===g?"taskBoxMode active":"taskBoxMode",onClick:()=>{n(g),h.current?.focus()},children:[w.jsx(b,{}),w.jsx("span",{children:ya(`wb.${g}`)})]},g))}),o==="act"&&w.jsx("span",{className:"taskBoxHint",children:ya("wb.act_hint")}),d&&w.jsx("span",{className:"taskBoxHint taskBoxError",role:"alert",children:d})]})}const G_="webbrain_chat_history",tm="records";async function nx(o=4,n=globalThis.indexedDB){if(!n?.databases)return[];if(!(await n.databases()).some(d=>d.name===G_))return[];const l=await new Promise((d,c)=>{const f=n.open(G_);f.onupgradeneeded=()=>f.transaction.abort(),f.onsuccess=()=>d(f.result),f.onerror=()=>c(f.error),f.onblocked=()=>c(new Error("blocked"))});try{return l.objectStoreNames.contains(tm)?await new Promise((d,c)=>{const f=[],p=l.transaction([tm],"readonly").objectStore(tm),y=(p.indexNames.contains("updatedAt")?p.index("updatedAt"):p).openCursor(null,"prev");y.onsuccess=()=>{const _=y.result;if(!_||f.length>=o)return d(f);const{id:g,title:b,url:S,updatedAt:C}=_.value;f.push({id:g,title:String(b||"").slice(0,140),url:String(S||""),updatedAt:C}),_.continue()},y.onerror=()=>c(y.error)}):[]}finally{l.close()}}const K_="../src/ui/history.html";function sx(){const[o,n]=k.useState(null);return k.useEffect(()=>{let u=!1;return nx(4).then(l=>!u&&n(l)).catch(()=>!u&&n([])),()=>{u=!0}},[]),o===null?null:w.jsxs("div",{className:"recentChats",children:[w.jsxs("div",{className:"recentChatsHeader",children:[w.jsx("span",{children:ya("wb.recent_title")}),w.jsx("a",{href:K_,children:ya("wb.recent_all")})]}),o.length===0?w.jsx("span",{className:"recentChatsEmpty",children:ya("wb.recent_empty")}):w.jsx("ul",{children:o.map(u=>w.jsx("li",{children:w.jsx("a",{href:`${K_}?id=${encodeURIComponent(u.id)}`,children:u.title||u.url})},u.id))})]})}const wm=Math.min,An=Math.max,Gl=Math.round,ho=o=>({x:o,y:o}),rx={left:"right",right:"left",bottom:"top",top:"bottom"};function lx(o,n,u){return An(o,wm(n,u))}function iu(o,n){return typeof o=="function"?o(n):o}function zn(o){return o.split("-")[0]}function nu(o){return o.split("-")[1]}function $b(o){return o==="x"?"y":"x"}function ey(o){return o==="y"?"height":"width"}function Ko(o){const n=o[0];return n==="t"||n==="b"?"y":"x"}function ty(o){return $b(Ko(o))}function ux(o,n,u){u===void 0&&(u=!1);const l=nu(o),d=ty(o),c=ey(d);let f=d==="x"?l===(u?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Kl(f)),[f,Kl(f)]}function dx(o){const n=Kl(o);return[Sm(o),n,Sm(n)]}function Sm(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}const Y_=["left","right"],W_=["right","left"],cx=["top","bottom"],mx=["bottom","top"];function px(o,n,u){switch(o){case"top":case"bottom":return u?n?W_:Y_:n?Y_:W_;case"left":case"right":return n?cx:mx;default:return[]}}function fx(o,n,u,l){const d=nu(o);let c=px(zn(o),u==="start",l);return d&&(c=c.map(f=>f+"-"+d),n&&(c=c.concat(c.map(Sm)))),c}function Kl(o){const n=zn(o);return rx[n]+o.slice(n.length)}function gx(o){var n,u,l,d;return{top:(n=o.top)!=null?n:0,right:(u=o.right)!=null?u:0,bottom:(l=o.bottom)!=null?l:0,left:(d=o.left)!=null?d:0}}function hx(o){return typeof o!="number"?gx(o):{top:o,right:o,bottom:o,left:o}}function Yl(o){const{x:n,y:u,width:l,height:d}=o;return{width:l,height:d,top:u,left:n,right:n+l,bottom:u+d,x:n,y:u}}function Q_(o,n,u){let{reference:l,floating:d}=o;const c=Ko(n),f=ty(n),p=ey(f),h=zn(n),y=c==="y",_=l.x+l.width/2-d.width/2,g=l.y+l.height/2-d.height/2,b=l[p]/2-d[p]/2;let S;switch(h){case"top":S={x:_,y:l.y-d.height};break;case"bottom":S={x:_,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y:g};break;case"left":S={x:l.x-d.width,y:g};break;default:S={x:l.x,y:l.y}}const C=nu(n);return C&&(S[f]+=b*(C==="end"?1:-1)*(u&&y?-1:1)),S}async function _x(o,n){var u;n===void 0&&(n={});const{x:l,y:d,platform:c,rects:f,elements:p,strategy:h}=o,{boundary:y="clippingAncestors",rootBoundary:_="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=iu(n,o),C=hx(S),A=p[b?g==="floating"?"reference":"floating":g],E=Yl(await c.getClippingRect({element:(u=await(c.isElement==null?void 0:c.isElement(A)))==null||u?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:y,rootBoundary:_,strategy:h})),x=g==="floating"?{x:l,y:d,width:f.floating.width,height:f.floating.height}:f.reference,L=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),G=await(c.isElement==null?void 0:c.isElement(L))&&await(c.getScale==null?void 0:c.getScale(L))||{x:1,y:1},Z=Yl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:x,offsetParent:L,strategy:h}):x);return{top:(E.top-Z.top+C.top)/G.y,bottom:(Z.bottom-E.bottom+C.bottom)/G.y,left:(E.left-Z.left+C.left)/G.x,right:(Z.right-E.right+C.right)/G.x}}const vx=50,bx=async(o,n,u)=>{const{placement:l="bottom",strategy:d="absolute",middleware:c=[],platform:f}=u,p=f.detectOverflow?f:{...f,detectOverflow:_x},h=await(f.isRTL==null?void 0:f.isRTL(n));let y=await f.getElementRects({reference:o,floating:n,strategy:d}),{x:_,y:g}=Q_(y,l,h),b=l,S=0;const C={};for(let z=0;z<c.length;z++){const A=c[z];if(!A)continue;const{name:E,fn:x}=A,{x:L,y:G,data:Z,reset:H}=await x({x:_,y:g,initialPlacement:l,placement:b,strategy:d,middlewareData:C,rects:y,platform:p,elements:{reference:o,floating:n}});_=L??_,g=G??g,C[E]={...C[E],...Z},H&&S<vx&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(y=H.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:d}):H.rects),{x:_,y:g}=Q_(y,b,h)),z=-1)}return{x:_,y:g,placement:b,strategy:d,middlewareData:C}},yx=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var u,l;const{placement:d,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:y}=n,{mainAxis:_=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:z=!0,...A}=iu(o,n);if((u=c.arrow)!=null&&u.alignmentOffset)return{};const E=zn(d),x=Ko(p),L=zn(p)===p,G=await(h.isRTL==null?void 0:h.isRTL(y.floating)),Z=b||(L||!z?[Kl(p)]:dx(p)),H=C!=="none";!b&&H&&Z.push(...fx(p,z,C,G));const D=[p,...Z],q=await h.detectOverflow(n,A),V=[];let $=((l=c.flip)==null?void 0:l.overflows)||[];if(_&&V.push(q[E]),g){const X=ux(d,f,G);V.push(q[X[0]],q[X[1]])}if($=[...$,{placement:d,overflows:V}],!V.every(X=>X<=0)){var W,ee;const X=(((W=c.flip)==null?void 0:W.index)||0)+1,Y=D[X];if(Y&&(!(g==="alignment"?x!==Ko(Y):!1)||$.every(K=>Ko(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:Y}};let I=(ee=$.filter(T=>T.overflows[0]<=0).sort((T,K)=>T.overflows[1]-K.overflows[1])[0])==null?void 0:ee.placement;if(!I)switch(S){case"bestFit":{var ae;const T=(ae=$.filter(K=>{if(H){const ie=Ko(K.placement);return ie===x||ie==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ie=>ie>0).reduce((ie,ne)=>ie+ne,0)]).sort((K,ie)=>K[1]-ie[1])[0])==null?void 0:ae[0];T&&(I=T);break}case"initialPlacement":I=p;break}if(d!==I)return{reset:{placement:I}}}return{}}}},kx=new Set(["left","top"]);async function wx(o,n){const{placement:u,platform:l,elements:d}=o,c=await(l.isRTL==null?void 0:l.isRTL(d.floating)),f=zn(u),p=nu(u),h=Ko(u)==="y",y=kx.has(f)?-1:1,_=c&&h?-1:1,g=iu(n,o);let{mainAxis:b,crossAxis:S,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return p&&typeof C=="number"&&(S=p==="end"?C*-1:C),h?{x:S*_,y:b*y}:{x:b*y,y:S*_}}const Sx=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var u,l;const{x:d,y:c,placement:f,middlewareData:p}=n,h=await wx(n,o);return f===((u=p.offset)==null?void 0:u.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:d+h.x,y:c+h.y,data:{...h,placement:f}}}}},Mx=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:u,y:l,placement:d,platform:c}=n,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:x=>{let{x:L,y:G}=x;return{x:L,y:G}}},...y}=iu(o,n),_={x:u,y:l},g=await c.detectOverflow(n,y),b=Ko(d),S=$b(b);let C=_[S],z=_[b];const A=(x,L)=>lx(L+g[x==="y"?"top":"left"],L,L-g[x==="y"?"bottom":"right"]);f&&(C=A(S,C)),p&&(z=A(b,z));const E=h.fn({...n,[S]:C,[b]:z});return{...E,data:{x:E.x-u,y:E.y-l,enabled:{[S]:f,[b]:p}}}}}};function su(){return typeof window<"u"}function Tn(o){return ay(o)?(o.nodeName||"").toLowerCase():"#document"}function ra(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Zo(o){var n;return(n=(ay(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function ay(o){return su()?o instanceof Node||o instanceof ra(o).Node:!1}function Wa(o){return su()?o instanceof Element||o instanceof ra(o).Element:!1}function Xo(o){return su()?o instanceof HTMLElement||o instanceof ra(o).HTMLElement:!1}function Z_(o){return!su()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof ra(o).ShadowRoot}function ru(o){const{overflow:n,overflowX:u,overflowY:l,display:d}=Qa(o);return/auto|scroll|overlay|hidden|clip/.test(n+l+u)&&d!=="inline"&&d!=="contents"}function Ax(o){return/^(table|td|th)$/.test(Tn(o))}function lu(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}const Cx=/transform|translate|scale|rotate|perspective|filter/,xx=/paint|layout|strict|content/,Si=o=>!!o&&o!=="none";let am;function Um(o){const n=Wa(o)?Qa(o):o;return Si(n.transform)||Si(n.translate)||Si(n.scale)||Si(n.rotate)||Si(n.perspective)||!Pm()&&(Si(n.backdropFilter)||Si(n.filter))||Cx.test(n.willChange||"")||xx.test(n.contain||"")}function zx(o){let n=zi(o);for(;Xo(n)&&!Ps(n);){if(Um(n))return n;if(lu(n))return null;n=zi(n)}return null}function Pm(){return am==null&&(am=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),am}function Ps(o){return/^(html|body|#document)$/.test(Tn(o))}function Qa(o){return ra(o).getComputedStyle(o)}function uu(o){return Wa(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function zi(o){if(Tn(o)==="html")return o;const n=o.assignedSlot||o.parentNode||Z_(o)&&o.host||Zo(o);return Z_(n)?n.host:n}function oy(o){const n=zi(o);return Ps(n)?(o.ownerDocument||o).body:Xo(n)&&ru(n)?n:oy(n)}function iy(o,n,u){var l;n===void 0&&(n=[]);const d=oy(o),c=d===((l=o.ownerDocument)==null?void 0:l.body),f=ra(d);return c?(Mm(f),n.concat(f,f.visualViewport||[],ru(d)?d:[],[])):n.concat(d,iy(d,[]))}function Mm(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function ny(o){const n=Qa(o);let u=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const d=Xo(o),c=d?o.offsetWidth:u,f=d?o.offsetHeight:l,p=Gl(u)!==c||Gl(l)!==f;return p&&(u=c,l=f),{width:u,height:l,$:p}}function sy(o){return Wa(o)?o:o.contextElement}function Cn(o){const n=sy(o);if(!Xo(n))return ho(1);const u=n.getBoundingClientRect(),{width:l,height:d,$:c}=ny(n);let f=(c?Gl(u.width):u.width)/l,p=(c?Gl(u.height):u.height)/d;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const Tx=ho(0);function ry(o){const n=ra(o);return!Pm()||!n.visualViewport?Tx:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Nx(o,n,u){return n===void 0&&(n=!1),!!u&&n&&u===ra(o)}function Hs(o,n,u,l){n===void 0&&(n=!1),u===void 0&&(u=!1);const d=o.getBoundingClientRect(),c=sy(o);let f=ho(1);n&&(l?Wa(l)&&(f=Cn(l)):f=Cn(o));const p=Nx(c,u,l)?ry(c):ho(0);let h=(d.left+p.x)/f.x,y=(d.top+p.y)/f.y,_=d.width/f.x,g=d.height/f.y;if(c&&l){const b=ra(c),S=Wa(l)?ra(l):l;let C=b,z=Mm(C);for(;z&&S!==C;){const A=Cn(z),E=z.getBoundingClientRect(),x=Qa(z),L=E.left+(z.clientLeft+parseFloat(x.paddingLeft))*A.x,G=E.top+(z.clientTop+parseFloat(x.paddingTop))*A.y;h*=A.x,y*=A.y,_*=A.x,g*=A.y,h+=L,y+=G,C=ra(z),z=Mm(C)}}return Yl({width:_,height:g,x:h,y})}function du(o,n){const u=uu(o).scrollLeft;return n?n.left+u:Hs(Zo(o)).left+u}function ly(o,n){const u=o.getBoundingClientRect(),l=u.left+n.scrollLeft-du(o,u),d=u.top+n.scrollTop;return{x:l,y:d}}function Ex(o){let{elements:n,rect:u,offsetParent:l,strategy:d}=o;const c=d==="fixed",f=Zo(l),p=n?lu(n.floating):!1;if(l===f||p&&c)return u;let h={scrollLeft:0,scrollTop:0},y=ho(1);const _=ho(0),g=Xo(l);if((g||!c)&&((Tn(l)!=="body"||ru(f))&&(h=uu(l)),g)){const S=Hs(l);y=Cn(l),_.x=S.x+l.clientLeft,_.y=S.y+l.clientTop}const b=f&&!g&&!c?ly(f,h):ho(0);return{width:u.width*y.x,height:u.height*y.y,x:u.x*y.x-h.scrollLeft*y.x+_.x+b.x,y:u.y*y.y-h.scrollTop*y.y+_.y+b.y}}function jx(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function Dx(o){const n=uu(o),u=o.ownerDocument.body,l=An(o.scrollWidth,o.clientWidth,u.scrollWidth,u.clientWidth),d=An(o.scrollHeight,o.clientHeight,u.scrollHeight,u.clientHeight);let c=-n.scrollLeft+du(o);const f=-n.scrollTop;return Qa(u).direction==="rtl"&&(c+=An(o.clientWidth,u.clientWidth)-l),{width:l,height:d,x:c,y:f}}const Ox=25;function qx(o,n,u){u===void 0&&(u="viewport");const l=u==="layoutViewport",d=ra(o),c=Zo(o),f=d.visualViewport;let p=c.clientWidth,h=c.clientHeight,y=0,_=0;if(f){const b=!Pm()||n==="fixed";l?b||(y=-f.offsetLeft,_=-f.offsetTop):(p=f.width,h=f.height,b&&(y=f.offsetLeft,_=f.offsetTop))}if(du(c)<=0){const b=c.ownerDocument,S=b.body,C=getComputedStyle(S),z=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,A=Math.abs(c.clientWidth-S.clientWidth-z),E=getComputedStyle(c).scrollbarGutter==="stable both-edges"?A/2:A;E<=Ox&&(p-=E)}return{width:p,height:h,x:y,y:_}}function Rx(o,n){const u=Hs(o,!0,n==="fixed"),l=u.top+o.clientTop,d=u.left+o.clientLeft,c=Cn(o),f=o.clientWidth*c.x,p=o.clientHeight*c.y,h=d*c.x,y=l*c.y;return{width:f,height:p,x:h,y}}function X_(o,n,u){let l;if(n==="viewport"||n==="layoutViewport")l=qx(o,u,n);else if(n==="document")l=Dx(Zo(o));else if(Wa(n))l=Rx(n,u);else{const d=ry(o);l={x:n.x-d.x,y:n.y-d.y,width:n.width,height:n.height}}return Yl(l)}function Bx(o,n){const u=n.get(o);if(u)return u;let l=iy(o,[]).filter(p=>Wa(p)&&Tn(p)!=="body"),d=null;const c=Qa(o).position==="fixed";let f=c?zi(o):o;for(;Wa(f)&&!Ps(f);){const p=Qa(f),h=Um(f),y=d?d.position:c?"fixed":"";!h&&(y==="fixed"||y==="absolute"&&p.position==="static")?l=l.filter(g=>g!==f):d=p,f=zi(f)}return n.set(o,l),l}function Lx(o){let{element:n,boundary:u,rootBoundary:l,strategy:d}=o;const f=[...u==="clippingAncestors"?lu(n)?[]:Bx(n,this._c):[].concat(u),l],p=X_(n,f[0],d);let h=p.top,y=p.right,_=p.bottom,g=p.left;for(let b=1;b<f.length;b++){const S=X_(n,f[b],d);h=An(S.top,h),y=wm(S.right,y),_=wm(S.bottom,_),g=An(S.left,g)}return{width:y-g,height:_-h,x:g,y:h}}function Ix(o){const{width:n,height:u}=ny(o);return{width:n,height:u}}function Ux(o,n,u){const l=Xo(n),d=Zo(n),c=u==="fixed",f=Hs(o,!0,c,n);let p={scrollLeft:0,scrollTop:0};const h=ho(0);if((l||!c)&&((Tn(n)!=="body"||ru(d))&&(p=uu(n)),l)){const b=Hs(n,!0,c,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}!l&&d&&(h.x=du(d));const y=d&&!l&&!c?ly(d,p):ho(0),_=f.left+p.scrollLeft-h.x-y.x,g=f.top+p.scrollTop-h.y-y.y;return{x:_,y:g,width:f.width,height:f.height}}function om(o){return Qa(o).position==="static"}function J_(o,n){if(!Xo(o)||Qa(o).position==="fixed")return null;if(n)return n(o);let u=o.offsetParent;return Zo(o)===u&&(u=u.ownerDocument.body),u}function uy(o,n){const u=ra(o);if(lu(o))return u;if(!Xo(o)){let d=zi(o);for(;d&&!Ps(d);){if(Wa(d)&&!om(d))return d;d=zi(d)}return u}let l=J_(o,n);for(;l&&Ax(l)&&om(l);)l=J_(l,n);return l&&Ps(l)&&om(l)&&!Um(l)?u:l||zx(o)||u}const Px=async function(o){const n=this.getOffsetParent||uy,u=this.getDimensions,l=await u(o.floating);return{reference:Ux(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Hx(o){return Qa(o).direction==="rtl"}const Fx={convertOffsetParentRelativeRectToViewportRelativeRect:Ex,getDocumentElement:Zo,getClippingRect:Lx,getOffsetParent:uy,getElementRects:Px,getClientRects:jx,getDimensions:Ix,getScale:Cn,isElement:Wa,isRTL:Hx},Vx=Sx,Gx=Mx,Kx=yx,Yx=(o,n,u)=>{const l=new Map,d=u??{},c={...Fx,...d.platform,_c:l};return bx(o,n,{...d,platform:c})};var Mn=jm(),Wx=typeof document<"u",Qx=function(){},ql=Wx?k.useLayoutEffect:Qx;function Wl(o,n){if(o===n)return!0;if(typeof o!=typeof n)return!1;if(typeof o=="function"&&o.toString()===n.toString())return!0;let u,l,d;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(u=o.length,u!==n.length)return!1;for(l=u;l--!==0;)if(!Wl(o[l],n[l]))return!1;return!0}if(d=Object.keys(o),u=d.length,u!==Object.keys(n).length)return!1;for(l=u;l--!==0;)if(!{}.hasOwnProperty.call(n,d[l]))return!1;for(l=u;l--!==0;){const c=d[l];if(!(c==="_owner"&&o.$$typeof)&&!Wl(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function dy(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function $_(o,n){const u=dy(o);return Math.round(n*u)/u}function im(o){const n=k.useRef(o);return ql(()=>{n.current=o}),n}function cu(o){o===void 0&&(o={});const{placement:n="bottom",strategy:u="absolute",middleware:l=[],platform:d,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:y}=o,[_,g]=k.useState({x:0,y:0,strategy:u,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=k.useState(l);Wl(b,l)||S(l);const[C,z]=k.useState(null),[A,E]=k.useState(null),x=k.useCallback(K=>{K!==H.current&&(H.current=K,z(K))},[]),L=k.useCallback(K=>{K!==D.current&&(D.current=K,E(K))},[]),G=c||C,Z=f||A,H=k.useRef(null),D=k.useRef(null),q=k.useRef(_),V=h!=null,$=im(h),W=im(d),ee=im(y),ae=k.useCallback(()=>{if(!H.current||!D.current)return;const K={placement:n,strategy:u,middleware:b};W.current&&(K.platform=W.current),Yx(H.current,D.current,K).then(ie=>{const ne={...ie,isPositioned:ee.current!==!1};X.current&&!Wl(q.current,ne)&&(q.current=ne,Mn.flushSync(()=>{g(ne)}))})},[b,n,u,W,ee]);ql(()=>{y===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[y]);const X=k.useRef(!1);ql(()=>(X.current=!0,()=>{X.current=!1}),[]),ql(()=>{if(G&&(H.current=G),Z&&(D.current=Z),G&&Z){if($.current)return $.current(G,Z,ae);ae()}},[G,Z,ae,$,V]);const Y=k.useMemo(()=>({reference:H,floating:D,setReference:x,setFloating:L}),[x,L]),I=k.useMemo(()=>({reference:G,floating:Z}),[G,Z]),T=k.useMemo(()=>{const K={position:u,left:0,top:0};if(!I.floating)return K;const ie=$_(I.floating,_.x),ne=$_(I.floating,_.y);return p?{...K,transform:"translate("+ie+"px, "+ne+"px)",...dy(I.floating)>=1.5&&{willChange:"transform"}}:{position:u,left:ie,top:ne}},[u,p,I.floating,_.x,_.y]);return k.useMemo(()=>({..._,update:ae,refs:Y,elements:I,floatingStyles:T}),[_,ae,Y,I,T])}const Zx=(o,n)=>{const u=Vx(o);return{name:u.name,fn:u.fn,options:[o,n]}},mu=(o,n)=>{const u=Gx(o);return{name:u.name,fn:u.fn,options:[o,n]}},Xx=(o,n)=>{const u=Kx(o);return{name:u.name,fn:u.fn,options:[o,n]}};function Jx({children:o,title:n,style:u,placement:l,subtitle:d}){const[c,f]=k.useState(!1),[p,h]=k.useState(!1),[y,_]=k.useState(null),g=k.useRef(`tooltip-${Math.random()}`),b=k.useRef(null),{x:S,y:C,refs:z,strategy:A,placement:E}=cu({placement:l||"bottom",middleware:[Xx(),Zx(15),mu()],elements:{reference:y}}),x=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},L=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},G=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},Z=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},H=()=>!c&&!p?"initial":p?"close":"open";return w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"tooltip",style:u,onMouseEnter:x,onMouseLeave:L,onFocus:G,onBlur:Z,ref:_,"aria-describedby":g.current,children:o}),(c||p)&&w.jsxs("span",{ref:z.setFloating,style:{position:A,top:C??"",left:S??"",display:"flex",flexFlow:"column"},className:"tooltipTitle","data-status":H(),"data-placement":E,children:[n,w.jsx("span",{style:{fontSize:"8px"},children:d})]})]})}const ht=k.memo(Jx),Fs=k.forwardRef(({icon:o,label:n,type:u,iconPlacement:l,onClick:d,active:c,disabled:f,tooltipTitle:p,tooltipKey:h,href:y,style:_},g)=>{let b;switch(u){case"settings":b="btn-settings";break;case"secondary":b="btn-secondary";break;case"icon":b="btn-icon";break;case"navigation":b="btn-navigation";break;case"collection":b="btn-collection";break;case"linkIconButton":b="btn-icon";break;case"linkButton":b="btn-settings";break;default:b="btn-default"}l==="right"&&(b+=" flowReverse"),c&&(b+=` ${b}-active`);const S=w.jsxs("button",{className:b,onClick:d,ref:g,disabled:f,style:_,children:[o,n]}),C=w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:y,style:_,target:"_blank",rel:"noopener noreferrer",children:[o,n]}),z=w.jsx(ht,{title:p,children:w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:y,target:"_blank",rel:"noopener noreferrer",style:_,children:[o,n]})},h);switch(u){case"linkIconButton":return z;case"linkButton":return C;case"icon":return w.jsx(ht,{title:p,children:S},h);default:return S}});Fs.displayName="Button";function $x({urlError:o,iconError:n,addLink:u,closeModal:l,edit:d,editData:c,editLink:f}){const[p,h]=k.useState(d?c.name:""),[y,_]=k.useState(d?c.url:""),[g,b]=k.useState(d?c.icon:"");return w.jsxs("div",{className:"addLinkModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:d?pe.getMessage("widgets.quicklinks.edit"):pe.getMessage("widgets.quicklinks.new")}),w.jsx(ht,{title:pe.getMessage("modals.welcome.buttons.close"),children:w.jsx("div",{className:"close",onClick:()=>l(),children:w.jsx(Is,{})})})]}),w.jsxs("div",{className:"quicklinkModalTextbox",children:[w.jsx("input",{type:"text",className:"text-field-input",placeholder:pe.getMessage("widgets.quicklinks.name"),value:p,onChange:S=>h(S.target.value.replace(/(\r\n|\n|\r)/gm,"")),style:{gridColumn:"span 2"}}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:pe.getMessage("widgets.quicklinks.url"),value:y,onChange:S=>_(S.target.value.replace(/(\r\n|\n|\r)/gm,""))}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:pe.getMessage("widgets.quicklinks.icon"),value:g,onChange:S=>b(S.target.value.replace(/(\r\n|\n|\r)/gm,""))})]}),w.jsxs("div",{className:"addFooter",children:[w.jsxs("span",{className:"dropdown-error",children:[n," ",o]}),d?w.jsx(Fs,{type:"settings",onClick:()=>f(c,p,y,g),icon:w.jsx(q_,{}),label:pe.getMessage("modals.main.settings.sections.quicklinks.edit")}):w.jsx(Fs,{type:"settings",onClick:()=>u(p,y,g),icon:w.jsx(q_,{}),label:pe.getMessage("widgets.quicklinks.add")})]})]})}const CN=k.memo($x),e2=[{name:"time",value:!0},{name:"greeting",value:!0},{name:"background",value:!0},{name:"quote",value:!1},{name:"searchBar",value:!1},{name:"blur",value:0},{name:"brightness",value:90},{name:"zero",value:!0},{name:"events",value:!0},{name:"customBackground",value:""},{name:"greetingName",value:""},{name:"defaultGreetingMessage",value:!0},{name:"backgroundAPI",value:"mue"},{name:"copyButton",value:!1},{name:"installed",value:[]},{name:"searchEngine",value:"duckduckgo"},{name:"refresh",value:!1},{name:"view",value:!0},{name:"favouriteEnabled",value:!0},{name:"quoteShareButton",value:!1},{name:"favouriteQuoteEnabled",value:!1},{name:"showWelcome",value:!1},{name:"date",value:"false"},{name:"timeType",value:"digital"},{name:"dateFormat",value:"DMY"},{name:"shortFormat",value:"dots"},{name:"toastDisplayTime",value:2500},{name:"fontstyle",value:"normal"},{name:"fontweight",value:400},{name:"order",value:'["greeting", "time", "quicklinks", "date", "message"]'},{name:"theme",value:"auto"},{name:"backgroundType",value:"api"},{name:"timeformat",value:"twentyfourhour"},{name:"experimental",value:!1},{name:"debugtimeout",value:0},{name:"quicklinks",value:"[]"},{name:"quicklinksenabled",value:!1},{name:"weatherEnabled",value:!1},{name:"weatherType",value:2},{name:"tempformat",value:"celsius"},{name:"authorImg",value:!0},{name:"authorLink",value:!0},{name:"bgtransition",value:!0},{name:"backgroundVideoLoop",value:!0},{name:"backgroundVideoMute",value:!0},{name:"quicklinkstooltip",value:!0},{name:"notesEnabled",value:!0},{name:"showlocation",value:!0},{name:"minuteHand",value:!0},{name:"hourHand",value:!0},{name:"datezero",value:!0},{name:"autocompleteProvider",value:"google"},{name:"quoteType",value:"quote_pack"},{name:"backgroundFilter",value:"none"},{name:"apiQuality",value:"high"},{name:"photoInformation",value:!0},{name:"backgroundFilterAmount",value:0},{name:"stats",value:!1},{name:"statsData",value:"{}"},{name:"localeFormatting",value:!0},{name:"offlineMode",value:!0},{name:"animations",value:!0},{name:"textBorder",value:"new"},{name:"widgetStyle",value:"new"},{name:"backgroundExclude",value:"[]"},{name:"photoMap",value:!0},{name:"appsEnabled",value:!1},{name:"applinks",value:"[]"},{name:"customEvents",value:'[{"id":"widgets.greeting.christmas","name":"Merry Christmas","month":12,"date":25},{"id":"widgets.greeting.newyear","name":"Happy New Year","month":1,"date":1},{"id":"widgets.greeting.halloween","name":"Happy Halloween","month":10,"date":31}]'},{name:"authorDetails",value:!0},{name:"taskBox",value:!0},{name:"taskBoxMode",value:"ask"},{name:"taskBoxFocus",value:!0},{name:"recentChats",value:!1}],t2=[{name:"العربية",value:"ar"},{name:"مصرى",value:"arz"},{name:"Azərbaycan",value:"az"},{name:"تۆرکجه",value:"azb"},{name:"Bahasa Indonesia",value:"id_ID"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de_DE"},{name:"Ελληνικά",value:"el"},{name:"English (UK)",value:"en_GB"},{name:"English (US)",value:"en_US"},{name:"Español",value:"es"},{name:"Español (Latinoamérica)",value:"es_419"},{name:"Eesti",value:"et"},{name:"فارسی",value:"fa"},{name:"Français",value:"fr"},{name:"Magyar",value:"hu"},{name:"日本語",value:"ja"},{name:"Lietuvių",value:"lt"},{name:"Latviešu",value:"lv"},{name:"Nederlands",value:"nl"},{name:"Norsk",value:"no"},{name:"𐎱𐎠𐎼𐎿",value:"peo"},{name:"Pусский",value:"ru"},{name:"Português",value:"pt"},{name:"Português (Brasil)",value:"pt_BR"},{name:"Português (Portugal)",value:"pt_PT"},{name:"Slovenščina",value:"sl"},{name:"Svenska",value:"sv"},{name:"தமிழ்",value:"ta"},{name:"Türkçe",value:"tr_TR"},{name:"Українська",value:"uk"},{name:"Tiếng Việt",value:"vi"},{name:"中文 (简体)",value:"zh_CN"},{name:"中文 (繁體)",value:"zh_Hant"}];function Am(o){localStorage.clear(),e2.forEach(l=>localStorage.setItem(l.name,l.value));const n=t2.map(({value:l})=>l),u=navigator.languages&&navigator.languages.find(l=>l.replace("-","_")&&n.includes(l))||navigator.language.replace("-","_");n.includes(u)?localStorage.setItem("language",u):localStorage.setItem("language","en_GB"),localStorage.setItem("tabName",pe.getMessage("tabname")),o&&localStorage.setItem("showWelcome",!1),localStorage.setItem("firstRun",!0)}function a2(o,n="file",u="text/json"){typeof o=="object"&&(o=JSON.stringify(o,void 0,4));const l=new Blob([o],{type:u}),d=document.createEvent("MouseEvents"),c=document.createElement("a");c.href=window.URL.createObjectURL(l),c.download=n,c.dataset.downloadurl=[u,c.download,c.href].join(":"),d.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(d)}function nm(o){switch(localStorage.getItem("theme")){case"dark":document.body.classList.add("dark"),document.body.classList.remove("light");break;case"auto":window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.classList.add("dark"):(document.body.classList.remove("dark"),document.body.classList.add("light"));break;default:document.body.classList.add("light"),document.body.classList.remove("dark")}document.title=localStorage.getItem("tabName")||pe.getMessage("tabname"),o===!0&&["customcss","customfont"].forEach(c=>{try{document.head.removeChild(document.getElementById(c))}catch{}}),localStorage.getItem("animations")==="false"?document.body.classList.add("no-animations"):document.body.classList.remove("no-animations");const n=localStorage.getItem("textBorder");n==="true"?["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.add("textBorder")}catch{}}):["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.remove("textBorder")}catch{}}),n==="none"?document.getElementById("center").classList.add("no-textBorder"):document.getElementById("center").classList.remove("no-textBorder");const u=localStorage.getItem("customcss");u&&document.head.insertAdjacentHTML("beforeend",'<style id="customcss">'+u+"</style>");const l=localStorage.getItem("font");l&&document.head.insertAdjacentHTML("beforeend",`
+注意:如果你不喜歡「{category}」影像,你可以在背景來源設定中取消選擇該類別。`,confirm:"確認"},search:"搜尋",quicklinks:{new:"新增連結",edit:"編輯連結",name:"名稱",url:"網址",icon:"圖示(選擇性)",add:"增加",name_error:"必須提供名稱",url_error:"必須提供網址"},date:{week:"週"},weather:{not_found:"找不到",meters:"{amount} 公尺",extra_information:"額外資訊",feels_like:"感覺像 {amount}"},quote:{link_tooltip:"在維基百科上開啟",share:"分享",copy:"複製",favourite:"收藏",unfavourite:"取消收藏"},navbar:{tooltips:{refresh:"重新整理"},notes:{title:"筆記",placeholder:"在此輸入"},todo:{title:"待辦事項",pin:"釘選",add:"增加",no_todos:"無待辦事項"},apps:{title:"應用程式",no_apps:"找不到應用程式連結"}}},ZM=JSON.parse(`{"main":{"title":"選項","loading":"載入中…","file_upload_error":"檔案超過 2MB","navbar":{"settings":"設定","library":"附加元件","discover":"市場"},"error_boundary":{"title":"錯誤","message":"無法載入 Mue 的此元件","report_error":"傳送錯誤報告","sent":"已傳送!","refresh":"重新整理"},"settings":{"enabled":"已啟用","open_knowledgebase":"開啟知識庫","additional_settings":"附加設定","reminder":{"title":"注意","message":"為了使所有變更生效,必須重新整理頁面。"},"sections":{"header":{"more_info":"更多資訊","report_issue":"報告問題","enabled":"選擇是否顯示此小工具","size":"滑桿控制小部件的大小"},"time":{"title":"時間","format":"格式","type":"類型","type_subtitle":"選擇是否以數位格式、類比格式或當天完成百分比顯示時間","digital":{"title":"數位","subtitle":"變更數位時鐘的外觀","seconds":"秒","twentyfourhour":"24 小時制","twelvehour":"12 小時制","zero":"Zero-padded"},"analogue":{"title":"類比","subtitle":"變更類比時鐘的外觀","second_hand":"秒針","minute_hand":"分針","hour_hand":"時針","hour_marks":"小時刻度","minute_marks":"分鐘刻度","round_clock":"圓形背景"},"percentage_complete":"完成百分比","vertical_clock":{"title":"垂直時鐘","change_hour_colour":"變更小時文字顏色","change_minute_colour":"變更分鐘文字顏色","change_second_colour":"變更秒文字顏色"}},"date":{"title":"日期","week_number":"週數","day_of_week":"星期","datenth":"日期 th","type":{"short":"短","long":"長","subtitle":"Whether to display the date in long form or short form"},"type_settings":"Display settings and format for the selected date type","short_date":"Short date","short_format":"Short format","long_format":"Long format","short_separator":{"title":"Short separator","dots":"Dots","dash":"Dash","gaps":"Gaps","slashes":"Slashes"}},"quote":{"title":"Quote","additional":"Other settings to customise the style of the quote widget","author_link":"Author link","author_details":"作者詳細資訊","custom":"Custom quote","custom_subtitle":"Set your own custom quotes","no_quotes":"No quotes","author":"Author","custom_buttons":"Buttons","custom_author":"Custom author","author_img":"Show author image","add":"Add quote","source_subtitle":"Choose where to get quotes from","buttons":{"title":"Buttons","subtitle":"Choose which buttons to show on the quote","copy":"Copy","tweet":"Tweet","favourite":"Favourite"}},"greeting":{"title":"Greeting","events":{"0":"E","1":"v","2":"e","3":"n","4":"t","5":"s","title":"Events"},"events_description":"Control events on Mue such as birthdays.","enable_events":"Show messages on special days","default":"Default greeting message","name":"Name for greeting","birthday":"Birthday","birthday_subtitle":"Show a Happy Birthday message when it is your birthday","birthday_age":"Birthday age","birthday_date":"Birthday date","additional":"Settings for the greeting display","custom":"Custom events","event_name":"Event Name","day":"Day","month":"Month","no_events":"No Events","no_events_description":"Add Some Events","add_event":"Add Event"},"background":{"title":"Background","transition":"Fade-in transition","photo_information":"Show photo information","show_map":"Show location map on photo information if available","categories":"Categories","buttons":{"title":"Buttons","view":"Maximise","favourite":"Favourite","download":"Download"},"effects":{"title":"Effects","subtitle":"Add effects to the background images","blur":"Adjust blur","brightness":"Adjust brightness","filters":{"title":"Background filter","amount":"Filter amount","grayscale":"Grayscale","sepia":"Sepia","invert":"Invert","saturate":"Saturate","contrast":"Contrast"}},"type":{"title":"Type","api":"API","custom_image":"Custom image","custom_colour":"Custom colour/gradient","random_colour":"Random colour","random_gradient":"Random gradient"},"unsplash":{"title":"Unsplash Collection(s)","subtitle":"Select the collection(s) you want to use for your background","id":"Collection ID(s)","id_subtitle":"Enter a comma separated list of Unsplash IDs"},"source":{"title":"Source","subtitle":"Select where to get background images from","api":"Background API","custom_background":"Custom background","custom_colour":"Custom background colour","upload":"Upload","add_colour":"Add colour","add_background":"Add background","drop_to_upload":"Drop to upload","formats":"Available formats: {list}","select":"Or Select","add_url":"Add URL","disabled":"Disabled","loop_video":"Loop video","mute_video":"Mute video","quality":{"title":"Quality","original":"Original","high":"High Quality","normal":"Normal Quality","datasaver":"Data Saver"},"custom_title":"Custom Images","custom_description":"Select images from your local computer","remove":"Remove Image","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Display","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"Search","additional":"Additional options for search widget display and functionality","search_engine":"Search Engine","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"Custom Search URL","autocomplete":"Autocomplete","autocomplete_provider":"Autocomplete Provider","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"Voice search","dropdown":"Search Dropdown","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"Weather","location":"Location","auto":"Auto","widget_type":"Widget Type","temp_format":{"title":"Temperature format","celsius":"Celsius","fahrenheit":"Fahrenheit","kelvin":"Kelvin"},"extra_info":{"title":"Extra information","show_location":"Show location","show_description":"Show description","weather_description":"Weather description","cloudiness":"Cloudiness","humidity":"Humidity","visibility":"Visibility","wind_speed":"Wind speed","wind_direction":"Wind direction","min_temp":"Minimum temperature","max_temp":"Maximum temperature","atmospheric_pressure":"Atmospheric pressure"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"Quick Links","additional":"Additional settings for quick links display and functions","open_new":"Open in new tab","tooltip":"Tooltip","text_only":"Show text only","add_link":"Add Link","no_quicklinks":"No quick links","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"Message","add":"Add message","messages":"Messages","text":"Text","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"Appearance","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"Theme","description":"Change the theme of the Mue widgets and modals","auto":"Auto","light":"Light","dark":"Dark"},"navbar":{"title":"Navbar","widgets":"Navbar Widgets","notes":"Notes","refresh":"Refresh","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"None","page":"Page"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"Font","description":"Change the font used in Mue","custom":"Custom font","google":"Import from Google Fonts","weight":{"title":"Font weight","thin":"Thin","extra_light":"Extra Light","light":"Light","normal":"Normal","medium":"Medium","semi_bold":"Semi-Bold","bold":"Bold","extra_bold":"Extra-Bold"},"style":{"title":"Font style","normal":"Normal","italic":"Italic","oblique":"Oblique"}},"accessibility":{"title":"Accessibility","description":"Make Mue comfortable and accessible","animations":"Animations","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Toast Duration","milliseconds":"milliseconds"}},"order":{"title":"Widget Order"},"advanced":{"title":"Advanced","offline_mode":"Offline mode","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"Data","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Manage your data on Mue.","reset_modal":{"title":"WARNING","question":"Do you want to reset Mue?","information":"This will delete all data. If you wish to keep your data and preferences, please export them first.","cancel":"Cancel"},"customisation":"Customisation","custom_css":"Custom CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"Custom JS","tab_name":"Tab name","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"Time Zone","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"Automatic"},"experimental_warning":"Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"Stats","sections":{"tabs_opened":"Tabs opened","backgrounds_favourited":"Backgrounds favourited","backgrounds_downloaded":"Backgrounds downloaded","quotes_favourited":"Quotes favourited","quicklinks_added":"Quicklinks added","settings_changed":"Settings changed","addons_installed":"Add-ons installed"},"usage":"Usage Stats","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"Experimental","warning":"These settings have not been fully tested/implemented and may not work correctly!","developer":"Developer"},"language":{"title":"Language","quote":"Quote language","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Change Log","by":"By {author}"},"about":{"title":"About","version":{"title":"Version","checking_update":"Checking for update","update_available":"Update available","no_update":"No update available","offline_mode":"Cannot check for update in offline mode","error":{"title":"Failed to get update information","description":"An error occured"}},"contact_us":"Contact Us","support_mue":"Support Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"Resources used","bg_images":"Offline background images"},"contributors":"Contributors","supporters":"Supporters","no_supporters":"There are currently no Mue supporters","photographers":"Photographers","curators":"Add-on creators"}},"buttons":{"reset":"Reset","import":"Import","export":"Export","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"Photo Packs","quote_packs":"Quote Packs","preset_settings":"Preset Settings","no_items":"No items in this category","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"Overview","information":"Information","last_updated":"Last Updated","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"Version","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"Add To Mue","remove":"Remove","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"Looks like you're offline","description":"Please connect to the internet"}},"addons":{"added":"Added","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"Empty","description":"No addons are installed"},"sideload":{"title":"Sideload","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"Sort","newest":"Installed (Newest)","a_z":"Alphabetical (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Create","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Coming Soon...."}}},"update":{"title":"Update","offline":{"title":"Offline","description":"Cannot get update logs while in offline mode"},"error":{"title":"Error","description":"Could not connect to the server"}},"welcome":{"tip":"Quick Tip","sections":{"intro":{"title":"Welcome to Mue Tab","description":"Thank you for installing Mue, we hope you enjoy your time with our extension.","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"Choose your language","description":"Mue can be displayed the languages listed below. You can also add new translations on our"},"theme":{"title":"Select a theme","description":"Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.","tip":"Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"Import Settings","description":"Installing Mue on a new device? Feel free to import your old settings!","tip":"You can export your old settings by navigating to the Advanced tab in your old Mue setup. Then you need to click the export button which will download the JSON file. You can upload this file here to carry across your settings and preferences from your previous Mue installation."},"privacy":{"title":"Privacy Options","description":"Enable settings to further protect your privacy with Mue.","offline_mode_description":"Enabling offline mode will disable all requests to any service. This will result in online backgrounds, online quotes, marketplace, weather, quick links, change log and some about tab information to be disabled.","links":{"title":"Links","privacy_policy":"Privacy Policy","source_code":"Source Code"}},"final":{"title":"Final step","description":"Your Mue Tab experience is about to begin.","changes":"Changes","changes_description":"To change settings later click on the settings icon in the top right corner of your tab.","imported":"Imported {amount} settings"}},"buttons":{"next":"Next","preview":"Preview","previous":"Previous","close":"Close","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),XM={quote:"Quote copied",notes:"Notes copied",reset:"Reset successfully",installed:"Successfully installed",uninstalled:"Successfully removed",updated:"Successfully updated",error:"Something went wrong",imported:"Successfully imported",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Cb={tabname:WM,widgets:QM,modals:ZM,toasts:XM};function Dl(o){return new x0("en_GB",{ar:Wv,arz:Qv,az:Zv,azb:Xv,bn:Jv,de_DE:$v,el:eb,en_GB:tb,en_US:ab,es:ob,es_419:ib,et:nb,fa:sb,fr:rb,hu:lb,id_ID:ub,ja:db,lt:cb,lv:mb,nl:pb,no:fb,peo:gb,pt:hb,pt_BR:_b,ru:vb,sl:bb,sv:yb,ta:kb,tr_TR:wb,uk:Sb,vi:Mb,zh_CN:Ab,zh_Hant:Cb})}const JM={ar:Wv,arz:Qv,az:Zv,azb:Xv,bn:Jv,de_DE:$v,el:eb,en_GB:tb,en_US:ab,es:ob,es_419:ib,et:nb,fa:sb,fr:rb,hu:lb,id_ID:ub,ja:db,lt:cb,lv:mb,nl:pb,no:fb,peo:gb,pt:hb,pt_BR:_b,ru:vb,sl:bb,sv:yb,ta:kb,tr_TR:wb,uk:Sb,vi:Mb,zh_CN:Ab,zh_Hant:Cb},$M="https://webbrain.one",eA="https://webbrain.one/privacy",tA="https://github.com/esokullu/webbrain",aA="https://github.com/esokullu/webbrain/issues/new",oA="https://github.com/mue/mue",iA="7.6.0",nA="1.0.0",sA=Object.freeze(Object.defineProperty({__proto__:null,BUG_REPORT:aA,MUE_REPO_URL:oA,MUE_VERSION:iA,PRIVACY_URL:eA,REPO_URL:tA,VERSION:nA,WEBSITE_URL:$M},Symbol.toStringTag,{value:"Module"}));class rA{static async postEvent(){}static async tabLoad(){}}const pe={language:{},languagecode:"",stats:rA,constants:sA},lA={en:"en_GB",zh:"zh_CN",ar:"ar",bn:"bn",nl:"nl",fr:"fr",de:"de_DE",id:"id_ID",ja:"ja",fa:"fa",pt:"pt_BR",ru:"ru",es:"es",tr:"tr_TR",uk:"uk",vi:"vi"};function Dm(){let o;try{o=String(Ll?.getItem("wbLocale")||"").trim()}catch{o=""}return o||String(globalThis.navigator?.language||"en").slice(0,2).toLowerCase()}const uA=new Set(["ar","fa","he","ur"]);function dA(){const o=Dm(),n=String(o||"en").replace("_","-");return{lang:n,dir:uA.has(n.slice(0,2).toLowerCase())?"rtl":"ltr"}}function cA(){return lA[Dm()]||"en_GB"}const mA=["ask","act","search","placeholder_ask","placeholder_act","placeholder_search","go","act_hint","panel_failed","recent_title","recent_empty","recent_all","settings_taskbox","settings_taskbox_sub","settings_default_mode","settings_recent","settings_credits","settings_bundled_photos"],pA={en:["Ask","Act","Search","Ask WebBrain anything…","Tell WebBrain what to do…","Search or enter a URL","Go","WebBrain opens with your task ready. Press Enter there to run it.","Couldn't open the WebBrain panel. Click the WebBrain toolbar icon.","Recent chats","No chats yet","All history","Task box","Ask or act with WebBrain from the new tab.","Default mode","Show recent chats","Credits","Bundled photos"],es:["Preguntar","Actuar","Buscar","Pregunta lo que quieras a WebBrain…","Dile a WebBrain qué hacer…","Busca o escribe una URL","Ir","WebBrain se abre con tu tarea lista. Pulsa Intro allí para ejecutarla.","No se pudo abrir el panel de WebBrain. Haz clic en el icono de WebBrain de la barra.","Chats recientes","Aún no hay chats","Todo el historial","Cuadro de tareas","Pregunta o actúa con WebBrain desde la nueva pestaña.","Modo predeterminado","Mostrar chats recientes","Créditos","Fotos incluidas"],fr:["Demander","Agir","Rechercher","Posez n’importe quelle question à WebBrain…","Dites à WebBrain quoi faire…","Rechercher ou saisir une URL","OK","WebBrain s’ouvre avec votre tâche prête. Appuyez sur Entrée pour la lancer.","Impossible d’ouvrir le panneau WebBrain. Cliquez sur l’icône WebBrain de la barre d’outils.","Discussions récentes","Aucune discussion","Tout l’historique","Zone de tâche","Posez une question ou agissez avec WebBrain depuis le nouvel onglet.","Mode par défaut","Afficher les discussions récentes","Crédits","Photos incluses"],de:["Fragen","Handeln","Suchen","Frag WebBrain, was du willst…","Sag WebBrain, was zu tun ist…","Suchen oder URL eingeben","Los","WebBrain öffnet sich mit deiner Aufgabe. Drücke dort Enter, um sie auszuführen.","Das WebBrain-Panel konnte nicht geöffnet werden. Klicke auf das WebBrain-Symbol in der Symbolleiste.","Letzte Chats","Noch keine Chats","Gesamter Verlauf","Aufgabenfeld","Frage oder handle mit WebBrain direkt im neuen Tab.","Standardmodus","Letzte Chats anzeigen","Danksagungen","Mitgelieferte Fotos"],tr:["Sor","Yap","Ara","WebBrain’e her şeyi sor…","WebBrain’e ne yapacağını söyle…","Ara veya URL gir","Git","WebBrain, görevin hazır şekilde açılır. Çalıştırmak için orada Enter’a bas.","WebBrain paneli açılamadı. Araç çubuğundaki WebBrain simgesine tıkla.","Son sohbetler","Henüz sohbet yok","Tüm geçmiş","Görev kutusu","Yeni sekmeden WebBrain ile sor veya işlem yap.","Varsayılan mod","Son sohbetleri göster","Katkılar","Dahili fotoğraflar"],pt:["Perguntar","Agir","Pesquisar","Pergunte qualquer coisa ao WebBrain…","Diga ao WebBrain o que fazer…","Pesquise ou digite um URL","Ir","O WebBrain abre com sua tarefa pronta. Pressione Enter lá para executá-la.","Não foi possível abrir o painel do WebBrain. Clique no ícone do WebBrain na barra de ferramentas.","Conversas recentes","Ainda não há conversas","Todo o histórico","Caixa de tarefas","Pergunte ou aja com o WebBrain na nova guia.","Modo padrão","Mostrar conversas recentes","Créditos","Fotos incluídas"],ru:["Спросить","Действовать","Поиск","Спросите WebBrain о чём угодно…","Скажите WebBrain, что сделать…","Введите запрос или URL","Вперёд","WebBrain откроется с готовой задачей. Нажмите там Enter, чтобы запустить её.","Не удалось открыть панель WebBrain. Нажмите значок WebBrain на панели инструментов.","Недавние чаты","Чатов пока нет","Вся история","Поле задач","Спрашивайте и действуйте с WebBrain прямо на новой вкладке.","Режим по умолчанию","Показывать недавние чаты","Авторы и лицензии","Встроенные фото"],uk:["Запитати","Діяти","Пошук","Запитайте WebBrain про що завгодно…","Скажіть WebBrain, що зробити…","Введіть запит або URL","Вперед","WebBrain відкриється з готовим завданням. Натисніть там Enter, щоб запустити його.","Не вдалося відкрити панель WebBrain. Натисніть значок WebBrain на панелі інструментів.","Нещодавні чати","Чатів поки немає","Уся історія","Поле завдань","Запитуйте та виконуйте завдання з WebBrain просто на новій вкладці.","Режим за замовчуванням","Показувати нещодавні чати","Автори та ліцензії","Вбудовані фото"],zh:["提问","执行","搜索","向 WebBrain 提任何问题…","告诉 WebBrain 要做什么…","搜索或输入网址","前往","WebBrain 将带着你的任务打开。在那里按 Enter 即可运行。","无法打开 WebBrain 面板。请点击工具栏中的 WebBrain 图标。","最近的对话","还没有对话","全部历史","任务框","在新标签页中直接向 WebBrain 提问或下达任务。","默认模式","显示最近的对话","致谢","内置照片"],ja:["質問","実行","検索","WebBrain に何でも聞く…","WebBrain にやってほしいことを伝える…","検索または URL を入力","移動","タスクを入力した状態で WebBrain が開きます。そこで Enter を押すと実行されます。","WebBrain パネルを開けませんでした。ツールバーの WebBrain アイコンをクリックしてください。","最近のチャット","チャットはまだありません","すべての履歴","タスクボックス","新しいタブから WebBrain に質問したり操作を任せたりできます。","デフォルトのモード","最近のチャットを表示","クレジット","同梱の写真"],ko:["질문","실행","검색","WebBrain에게 무엇이든 물어보세요…","WebBrain에게 할 일을 알려주세요…","검색하거나 URL 입력","이동","작업이 입력된 상태로 WebBrain이 열립니다. 거기서 Enter를 누르면 실행됩니다.","WebBrain 패널을 열 수 없습니다. 도구 모음의 WebBrain 아이콘을 클릭하세요.","최근 대화","아직 대화가 없습니다","전체 기록","작업 상자","새 탭에서 바로 WebBrain에게 질문하거나 작업을 맡기세요.","기본 모드","최근 대화 표시","크레딧","기본 제공 사진"],ar:["اسأل","نفّذ","ابحث","اسأل WebBrain أي شيء…","أخبر WebBrain بما يجب فعله…","ابحث أو أدخل عنوان URL","انتقال","يفتح WebBrain ومعه مهمتك جاهزة. اضغط Enter هناك لتشغيلها.","تعذّر فتح لوحة WebBrain. انقر على أيقونة WebBrain في شريط الأدوات.","المحادثات الأخيرة","لا توجد محادثات بعد","السجل الكامل","مربع المهام","اسأل أو نفّذ مع WebBrain مباشرة من علامة التبويب الجديدة.","الوضع الافتراضي","إظهار المحادثات الأخيرة","الشكر والتقدير","الصور المضمّنة"],he:["שאלה","פעולה","חיפוש","שאלו את WebBrain כל דבר…","ספרו ל-WebBrain מה לעשות…","חפשו או הזינו כתובת URL","מעבר","WebBrain ייפתח כשהמשימה שלכם מוכנה. לחצו שם Enter כדי להריץ אותה.","לא ניתן היה לפתוח את לוח WebBrain. לחצו על סמל WebBrain בסרגל הכלים.","שיחות אחרונות","עדיין אין שיחות","כל ההיסטוריה","תיבת משימות","שאלו או פעלו עם WebBrain ישירות מהכרטיסייה החדשה.","מצב ברירת מחדל","הצגת שיחות אחרונות","קרדיטים","תמונות מובנות"],hi:["पूछें","करें","खोजें","WebBrain से कुछ भी पूछें…","WebBrain को बताएँ क्या करना है…","खोजें या URL दर्ज करें","जाएँ","WebBrain आपके कार्य के साथ खुलेगा। चलाने के लिए वहाँ Enter दबाएँ।","WebBrain पैनल नहीं खुल सका। टूलबार में WebBrain आइकन पर क्लिक करें।","हाल की चैट","अभी कोई चैट नहीं","पूरा इतिहास","कार्य बॉक्स","नए टैब से ही WebBrain से पूछें या काम करवाएँ।","डिफ़ॉल्ट मोड","हाल की चैट दिखाएँ","श्रेय","शामिल तस्वीरें"],id:["Tanya","Jalankan","Cari","Tanyakan apa saja ke WebBrain…","Beri tahu WebBrain apa yang harus dilakukan…","Cari atau masukkan URL","Buka","WebBrain terbuka dengan tugas Anda siap. Tekan Enter di sana untuk menjalankannya.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain di bilah alat.","Obrolan terbaru","Belum ada obrolan","Semua riwayat","Kotak tugas","Tanya atau jalankan tugas dengan WebBrain langsung dari tab baru.","Mode default","Tampilkan obrolan terbaru","Kredit","Foto bawaan"],ms:["Tanya","Laksana","Cari","Tanya apa sahaja kepada WebBrain…","Beritahu WebBrain apa yang perlu dilakukan…","Cari atau masukkan URL","Pergi","WebBrain dibuka dengan tugas anda sedia. Tekan Enter di sana untuk menjalankannya.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain pada bar alat.","Sembang terkini","Belum ada sembang","Semua sejarah","Kotak tugas","Tanya atau laksanakan tugas dengan WebBrain terus dari tab baharu.","Mod lalai","Tunjukkan sembang terkini","Kredit","Foto terbina dalam"],tl:["Magtanong","Gumawa","Maghanap","Magtanong ng kahit ano sa WebBrain…","Sabihin sa WebBrain kung ano ang gagawin…","Maghanap o maglagay ng URL","Pumunta","Magbubukas ang WebBrain na handa na ang iyong gawain. Pindutin ang Enter doon para patakbuhin ito.","Hindi mabuksan ang panel ng WebBrain. I-click ang icon ng WebBrain sa toolbar.","Mga kamakailang chat","Wala pang chat","Buong kasaysayan","Kahon ng gawain","Magtanong o mag-utos sa WebBrain mula mismo sa bagong tab.","Default na mode","Ipakita ang mga kamakailang chat","Mga kredito","Mga kasamang larawan"],pl:["Zapytaj","Wykonaj","Szukaj","Zapytaj WebBrain o cokolwiek…","Powiedz WebBrain, co ma zrobić…","Wyszukaj lub wpisz adres URL","Idź","WebBrain otworzy się z gotowym zadaniem. Naciśnij tam Enter, aby je uruchomić.","Nie udało się otworzyć panelu WebBrain. Kliknij ikonę WebBrain na pasku narzędzi.","Ostatnie czaty","Brak czatów","Cała historia","Pole zadań","Pytaj i zlecaj zadania WebBrain prosto z nowej karty.","Tryb domyślny","Pokaż ostatnie czaty","Autorzy i licencje","Dołączone zdjęcia"],th:["ถาม","ทำ","ค้นหา","ถามอะไรก็ได้กับ WebBrain…","บอก WebBrain ว่าต้องทำอะไร…","ค้นหาหรือป้อน URL","ไป","WebBrain จะเปิดพร้อมงานของคุณ กด Enter ที่นั่นเพื่อรัน","เปิดแผง WebBrain ไม่ได้ คลิกไอคอน WebBrain บนแถบเครื่องมือ","แชตล่าสุด","ยังไม่มีแชต","ประวัติทั้งหมด","ช่องงาน","ถามหรือสั่งงาน WebBrain ได้จากแท็บใหม่ทันที","โหมดเริ่มต้น","แสดงแชตล่าสุด","เครดิต","รูปภาพที่รวมมา"],vi:["Hỏi","Thực hiện","Tìm kiếm","Hỏi WebBrain bất cứ điều gì…","Nói với WebBrain cần làm gì…","Tìm kiếm hoặc nhập URL","Đi","WebBrain sẽ mở với tác vụ đã sẵn sàng. Nhấn Enter ở đó để chạy.","Không thể mở bảng WebBrain. Hãy nhấp vào biểu tượng WebBrain trên thanh công cụ.","Cuộc trò chuyện gần đây","Chưa có cuộc trò chuyện","Toàn bộ lịch sử","Hộp tác vụ","Hỏi hoặc giao việc cho WebBrain ngay từ tab mới.","Chế độ mặc định","Hiện cuộc trò chuyện gần đây","Ghi công","Ảnh đi kèm"],bn:["জিজ্ঞাসা","করুন","খুঁজুন","WebBrain-কে যেকোনো কিছু জিজ্ঞাসা করুন…","WebBrain-কে বলুন কী করতে হবে…","খুঁজুন বা URL লিখুন","যান","আপনার কাজ প্রস্তুত অবস্থায় WebBrain খুলবে। চালাতে সেখানে Enter চাপুন।","WebBrain প্যানেল খোলা যায়নি। টুলবারে WebBrain আইকনে ক্লিক করুন।","সাম্প্রতিক চ্যাট","এখনো কোনো চ্যাট নেই","সম্পূর্ণ ইতিহাস","টাস্ক বক্স","নতুন ট্যাব থেকেই WebBrain-কে জিজ্ঞাসা করুন বা কাজ দিন।","ডিফল্ট মোড","সাম্প্রতিক চ্যাট দেখান","কৃতজ্ঞতা","অন্তর্ভুক্ত ছবি"],fa:["بپرس","اجرا کن","جستجو","از WebBrain هر چیزی بپرسید…","به WebBrain بگویید چه کار کند…","جستجو کنید یا نشانی URL وارد کنید","برو","WebBrain با وظیفهٔ آمادهٔ شما باز می‌شود. برای اجرا، آن‌جا Enter را بزنید.","پنل WebBrain باز نشد. روی نماد WebBrain در نوار ابزار کلیک کنید.","گفتگوهای اخیر","هنوز گفتگویی نیست","کل تاریخچه","جعبهٔ وظیفه","از همین زبانهٔ جدید از WebBrain بپرسید یا کار بسپارید.","حالت پیش‌فرض","نمایش گفتگوهای اخیر","سپاس‌ها","عکس‌های همراه"],nl:["Vragen","Uitvoeren","Zoeken","Vraag WebBrain alles…","Zeg WebBrain wat te doen…","Zoek of voer een URL in","Ga","WebBrain opent met je taak klaar. Druk daar op Enter om te starten.","Het WebBrain-paneel kon niet worden geopend. Klik op het WebBrain-pictogram in de werkbalk.","Recente chats","Nog geen chats","Alle geschiedenis","Taakvak","Vraag of voer uit met WebBrain, direct vanaf het nieuwe tabblad.","Standaardmodus","Recente chats tonen","Met dank aan","Meegeleverde foto’s"]},ym=Object.fromEntries(Object.entries(pA).map(([o,n])=>[o,Object.fromEntries(mA.map((u,l)=>[`wb.${u}`,n[l]]))]));function ya(o,n=Dm()){return ym[n]?.[o]??ym.en[o]??o}const xb=o=>typeof o=="string"&&o.startsWith("wb.");function km(o=document.documentElement){const n=dA(),{lang:u,dir:l}=ym[n.lang]?n:{lang:"en",dir:"ltr"};return o.lang=u,o.dir=l,{lang:u,dir:l}}class _e{static listeners={};static register(n,u){this.listeners[n]||(this.listeners[n]=[]),u.first?this.listeners[n].unshift(u):this.listeners[n].push(u)}static on(n,u){const l=d=>u(d.detail);document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static emit(n,u){document.dispatchEvent(new CustomEvent(n,{detail:u}))}static off(n,u){if(typeof u!="function")return;const l=this.listeners[n]||[],d=l.filter(c=>c.callback===u||c.listener===u);d.forEach(c=>document.removeEventListener(n,c.listener,{capture:c.capture})),this.listeners[n]=l.filter(c=>!d.includes(c))}static once(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static prepend(n,u){const l=d=>u(d.detail);document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static prependOnce(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static getListeners(n){return this.listeners[n]||[]}static eventNames(){return Object.keys(this.listeners)}static removeAllListeners(){Object.keys(this.listeners).forEach(n=>{this.listeners[n].forEach(({listener:u,capture:l})=>{document.removeEventListener(n,u,{capture:l})})}),this.listeners={}}}const zb=k.createContext();function fA({children:o,initialLanguage:n}){const[u,l]=k.useState(n),d=k.useRef(Dl());k.useEffect(()=>{u!==n&&(d.current=Dl()),pe.language=d.current,pe.languagecode=u,km()},[u,n]);const c=k.useCallback(h=>{d.current=Dl(),pe.language=d.current,pe.languagecode=h,km();const y=localStorage.getItem("tabName"),_=d.current?.getMessage(u,"tabname");if(y===_||!y){const g=JM[h.replace("-","_")]?.tabname||d.current?.getMessage(h,"tabname")||"Mue";localStorage.setItem("tabName",g),document.title=g}localStorage.setItem("language",h),localStorage.removeItem("currentWeather"),l(h)},[u]),f=k.useCallback((h,y={})=>xb(h)?ya(h):d.current?d.current.getMessage(u,h,y):h,[u]);k.useEffect(()=>{const h=y=>{y?.language&&c(y.language)};return _e.on("languageChange",h),()=>{_e.off("languageChange",h)}},[c]),k.useEffect(()=>{pe.getMessage=(h,y={})=>f(h,y)},[f]);const p=k.useMemo(()=>({language:u,languagecode:u,changeLanguage:c,t:f}),[u,c,f]);return w.jsx(zb.Provider,{value:p,children:o})}function Tb(){const o=k.useContext(zb);if(!o)throw new Error("useTranslation must be used within a TranslationProvider");return o}function Qo(){const{t:o}=Tb();return o}function gA({info:o}){const n=Qo();return o.hidden===!0||!o.credit||localStorage.getItem("photoInformation")==="false"?null:w.jsx("div",{className:"photoInformation",style:{position:"absolute",left:"1rem",bottom:"1rem",padding:"4px 10px",borderRadius:"10px",fontSize:"0.8rem",color:"#fff",background:"rgba(0, 0, 0, 0.45)"},children:w.jsxs("span",{id:"credit",children:[n("widgets.background.credit")," ",o.credit]})})}const hA=k.memo(gA);var Nb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},j_=ve.createContext&&ve.createContext(Nb),_A=["attr","size","title"];function vA(o,n){if(o==null)return{};var u,l,d=bA(o,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(l=0;l<c.length;l++)u=c[l],n.indexOf(u)===-1&&{}.propertyIsEnumerable.call(o,u)&&(d[u]=o[u])}return d}function bA(o,n){if(o==null)return{};var u={};for(var l in o)if({}.hasOwnProperty.call(o,l)){if(n.indexOf(l)!==-1)continue;u[l]=o[l]}return u}function Il(){return Il=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var u=arguments[n];for(var l in u)({}).hasOwnProperty.call(u,l)&&(o[l]=u[l])}return o},Il.apply(null,arguments)}function D_(o,n){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);n&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),u.push.apply(u,l)}return u}function Ul(o){for(var n=1;n<arguments.length;n++){var u=arguments[n]!=null?arguments[n]:{};n%2?D_(Object(u),!0).forEach(function(l){yA(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):D_(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}function yA(o,n,u){return(n=kA(n))in o?Object.defineProperty(o,n,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[n]=u,o}function kA(o){var n=wA(o,"string");return typeof n=="symbol"?n:n+""}function wA(o,n){if(typeof o!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var l=u.call(o,n);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function Eb(o){return o&&o.map((n,u)=>ve.createElement(n.tag,Ul({key:u},n.attr),Eb(n.child)))}function le(o){return n=>ve.createElement(SA,Il({attr:Ul({},o.attr)},n),Eb(o.child))}function SA(o){var n=u=>{var l=o.attr,d=o.size,c=o.title,f=vA(o,_A),p=d||u.size||"1em",h;return u.className&&(h=u.className),o.className&&(h=(h?h+" ":"")+o.className),ve.createElement("svg",Il({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},u.attr,l,f,{className:h,style:Ul(Ul({color:o.color||u.color},u.style),o.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&ve.createElement("title",null,c),o.children)};return j_!==void 0?ve.createElement(j_.Consumer,null,u=>n(u)):n(Nb)}function MA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"4",r:"2"},child:[]},{tag:"path",attr:{d:"M15.89 8.11C15.5 7.72 14.83 7 13.53 7h-2.54C8.24 6.99 6 4.75 6 2H4c0 3.16 2.11 5.84 5 6.71V22h2v-6h2v6h2V10.05L18.95 14l1.41-1.41z"},child:[]}]})(o)}function $T(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 3H3c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5a2 2 0 0 0-2-2m0 14H3V5h18z"},child:[]}]})(o)}function eN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 10H7v2h10zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zm-5-5H7v2h7z"},child:[]}]})(o)}function Ls(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.96 7.96 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"},child:[]}]})(o)}function AA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"},child:[]}]})(o)}function jb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(o)}function Is(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(o)}function CA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(o)}function Om(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(o)}function tN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"},child:[]}]})(o)}function Db(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"},child:[]}]})(o)}function xA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"},child:[]}]})(o)}function zA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"},child:[]}]})(o)}function aN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"},child:[]}]})(o)}function TA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2m2 10H3v4c0 1.1.9 2 2 2h4v-2H5zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function NA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4z"},child:[]},{tag:"path",attr:{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 10-2.5-1.5L15 12V4h5z"},child:[]}]})(o)}function oN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"},child:[]}]})(o)}function iN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"},child:[]}]})(o)}function nN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"},child:[]}]})(o)}function EA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"},child:[]}]})(o)}function jA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"},child:[]}]})(o)}function Ob(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"},child:[]}]})(o)}function DA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4z"},child:[]}]})(o)}function sN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16zM4 15h16v-2H4z"},child:[]}]})(o)}function O_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"},child:[]}]})(o)}function qb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"},child:[]}]})(o)}function rN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11A4.99 4.99 0 0 0 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0"},child:[]}]})(o)}function OA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"},child:[]}]})(o)}function lN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"},child:[]}]})(o)}function qA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"},child:[]}]})(o)}function q_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0"},child:[]},{tag:"path",attr:{d:"M8 11h8v2H8zm12.1 1H22c0-2.76-2.24-5-5-5h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M19 12h-2v3h-3v2h3v3h2v-3h3v-2h-3z"},child:[]}]})(o)}function RA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function uN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"},child:[]}]})(o)}function BA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16z"},child:[]}]})(o)}function LA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8M6 13c0-1.65.67-3.15 1.76-4.24L6.34 7.34A8.01 8.01 0 0 0 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"},child:[]}]})(o)}function dN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95M12 19c-3.87 0-7-3.13-7-7 0-3.53 2.61-6.43 6-6.92V2.05c-5.06.5-9 4.76-9 9.95 0 5.52 4.47 10 9.99 10 3.31 0 6.24-1.61 8.06-4.09l-2.6-1.53A6.95 6.95 0 0 1 12 19"},child:[]}]})(o)}function IA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a9 9 0 0 0 0-18m0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"},child:[]}]})(o)}function cN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},child:[]}]})(o)}function mN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"},child:[]}]})(o)}function Rb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zM3 16h7v-2H3zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59z"},child:[]}]})(o)}function UA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2zM3 16h7v-2H3z"},child:[]}]})(o)}function PA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M19 3H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function HA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.87 15.07-2.54-2.51.03-.03A17.5 17.5 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"},child:[]}]})(o)}function pN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 10H6v-2h8zm4-4H6v-2h12z"},child:[]}]})(o)}function FA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"},child:[]}]})(o)}function qm(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},child:[]}]})(o)}function VA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function GA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"},child:[]}]})(o)}function KA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"},child:[]}]})(o)}function YA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"},child:[]}]})(o)}function WA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a6 6 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"},child:[]}]})(o)}function QA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 18 2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2"},child:[]}]})(o)}function R_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},child:[]}]})(o)}function fN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m9 7h-6v13h-2v-6h-2v6H9V9H3V7h18z"},child:[]}]})(o)}function B_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"},child:[]}]})(o)}function ZA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"},child:[]}]})(o)}function gN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zM11.5 9.5 9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"},child:[]}]})(o)}function hN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"},child:[]}]})(o)}function _N(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"},child:[]}]})(o)}function XA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18.62 18h-5.24l2-4H13V6h8v7.24zm-2-2h.76L19 12.76V8h-4v4h3.62zm-8 2H3.38l2-4H3V6h8v7.24zm-2-2h.76L9 12.76V8H5v4h3.62z"},child:[]}]})(o)}function JA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16zM7 9h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z"},child:[]}]})(o)}function $A(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-4.51 2.11.26 2.79-2.74.62-1.43 2.41L12 18.82l-2.58 1.11-1.43-2.41-2.74-.62.26-2.8L3.66 12l1.85-2.12-.26-2.78 2.74-.61 1.43-2.41L12 5.18l2.58-1.11 1.43 2.41 2.74.62-.26 2.79L20.34 12zM11 15h2v2h-2zm0-8h2v6h-2z"},child:[]}]})(o)}function vN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5 9.65 9.65 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6m-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14M2.01 3.87l2.68 2.68A11.74 11.74 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13m-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53"},child:[]}]})(o)}function bN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0 1 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"},child:[]}]})(o)}function eC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.6.6 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},child:[]}]})(o)}function tC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10.5 4.5c.28 0 .5.22.5.5v2h6v6h2c.28 0 .5.22.5.5s-.22.5-.5.5h-2v6h-2.12c-.68-1.75-2.39-3-4.38-3s-3.7 1.25-4.38 3H4v-2.12c1.75-.68 3-2.39 3-4.38S5.76 9.8 4.01 9.12L4 7h6V5c0-.28.22-.5.5-.5m0-2A2.5 2.5 0 0 0 8 5H4c-1.1 0-1.99.9-1.99 2v3.8h.29c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-.3c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7v.3H17c1.1 0 2-.9 2-2v-4a2.5 2.5 0 0 0 0-5V7c0-1.1-.9-2-2-2h-4a2.5 2.5 0 0 0-2.5-2.5"},child:[]}]})(o)}function aC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"},child:[]}]})(o)}function oC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"},child:[]}]})(o)}const Yo={SETTINGS:"settings"},Re={SETTINGS:zA,LIBRARY:QA,TASKBOX:Ob,DISCOVER:GA,NAVBAR:AA,GREETING:MA,TIME:IA,QUOTE:XA,QUICKLINKS:OA,DATE:YA,MESSAGE:JA,BACKGROUND:ZA,SEARCH:qm,WEATHER:jA,APPEARANCE:DA,LANGUAGE:HA,ADVANCED:eC,EXPERIMENTAL:WA,STATS:oC,CHANGELOG:$A,ABOUT:VA,ADDED:tC,CREATE:RA,OVERVIEW:PA,COLLECTIONS:NA},Fe={OVERVIEW:"modals.main.marketplace.product.overview",SETTINGS:"modals.main.navbar.settings",LIBRARY:"modals.main.navbar.library",DISCOVER:"modals.main.navbar.discover",NAVBAR:"modals.main.settings.sections.appearance.navbar.title",GREETING:"modals.main.settings.sections.greeting.title",TIME:"modals.main.settings.sections.time.title",QUICKLINKS:"modals.main.settings.sections.quicklinks.title",QUOTE:"modals.main.settings.sections.quote.title",DATE:"modals.main.settings.sections.date.title",MESSAGE:"modals.main.settings.sections.message.title",BACKGROUND:"modals.main.settings.sections.background.title",SEARCH:"modals.main.settings.sections.search.title",WEATHER:"modals.main.settings.sections.weather.title",APPEARANCE:"modals.main.settings.sections.appearance.title",LANGUAGE:"modals.main.settings.sections.language.title",ADVANCED:"modals.main.settings.sections.advanced.title",STATS:"modals.main.settings.sections.stats.title",EXPERIMENTAL:"modals.main.settings.sections.experimental.title",CHANGELOG:"modals.main.settings.sections.changelog.title",ABOUT:"modals.main.settings.sections.about.title",ADDED:"modals.main.addons.added",CREATE:"modals.main.addons.create.title",ALL_MARKETPLACE:"modals.main.marketplace.all",PHOTO_PACKS:"modals.main.marketplace.photo_packs",QUOTE_PACKS:"modals.main.marketplace.quote_packs",PRESET_SETTINGS:"modals.main.marketplace.preset_settings",COLLECTIONS:"modals.main.marketplace.collections"},yN=(o,n)=>({[n.getMessage(Fe.OVERVIEW)]:Re.OVERVIEW,[n.getMessage(Fe.SETTINGS)]:Re.SETTINGS,[n.getMessage(Fe.LIBRARY)]:Re.LIBRARY,[n.getMessage(Fe.DISCOVER)]:Re.DISCOVER,[n.getMessage(Fe.NAVBAR)]:Re.NAVBAR,[n.getMessage(Fe.GREETING)]:Re.GREETING,[n.getMessage(Fe.TIME)]:Re.TIME,[n.getMessage(Fe.QUICKLINKS)]:Re.QUICKLINKS,[n.getMessage(Fe.QUOTE)]:Re.QUOTE,[n.getMessage(Fe.DATE)]:Re.DATE,[n.getMessage(Fe.MESSAGE)]:Re.MESSAGE,[n.getMessage(Fe.BACKGROUND)]:Re.BACKGROUND,[n.getMessage(Fe.SEARCH)]:Re.SEARCH,[n.getMessage(Fe.WEATHER)]:Re.WEATHER,[n.getMessage(Fe.APPEARANCE)]:Re.APPEARANCE,[n.getMessage(Fe.LANGUAGE)]:Re.LANGUAGE,[n.getMessage(Fe.ADVANCED)]:Re.ADVANCED,[n.getMessage(Fe.STATS)]:Re.STATS,[n.getMessage(Fe.EXPERIMENTAL)]:Re.EXPERIMENTAL,[n.getMessage(Fe.CHANGELOG)]:Re.CHANGELOG,[n.getMessage(Fe.ABOUT)]:Re.ABOUT,[n.getMessage("wb.settings_credits")]:Re.ABOUT,[n.getMessage("wb.settings_taskbox")]:Re.TASKBOX,[n.getMessage(Fe.ADDED)]:Re.ADDED,[n.getMessage(Fe.CREATE)]:Re.CREATE,[n.getMessage(Fe.ALL_MARKETPLACE)]:Re.LIBRARY,[n.getMessage(Fe.PHOTO_PACKS)]:Re.BACKGROUND,[n.getMessage(Fe.QUOTE_PACKS)]:Re.QUOTE,[n.getMessage(Fe.PRESET_SETTINGS)]:Re.ADVANCED,[n.getMessage(Fe.COLLECTIONS)]:Re.COLLECTIONS})[o],iC=[{tab:Yo.SETTINGS,icon:Re.SETTINGS,messageKey:"modals.main.navbar.settings"}],kN=["modals.main.settings.sections.appearance.title","modals.main.settings.sections.advanced.title"],Pl=(o=window.location.hash)=>{if(!o||o==="#")return null;const[n,u,l]=o.slice(1).split("/");return n!==Yo.SETTINGS?null:{tab:n,section:u||void 0,subSection:l||void 0}},Hl=(o,n=!0)=>{window.history.pushState?n?window.history.pushState(null,null,o):window.history.replaceState(null,null,o):window.location.hash=o},nC=()=>Pl()!==null,sC="MueCustomBackgrounds",rC=1,zt="backgrounds";function Ti(){return new Promise((o,n)=>{const u=indexedDB.open(sC,rC);u.onerror=()=>n(u.error),u.onsuccess=()=>o(u.result),u.onupgradeneeded=l=>{const d=l.target.result;d.objectStoreNames.contains(zt)||d.createObjectStore(zt,{keyPath:"id",autoIncrement:!0}).createIndex("url","url",{unique:!1})}})}async function Bb(){try{const l=(await Ti()).transaction(zt,"readonly").objectStore(zt).getAll();return new Promise((d,c)=>{l.onsuccess=()=>{const f=l.result;d(f.map(p=>typeof p.url=="string"&&!p.name?{id:p.id,url:p.url,name:`Image ${p.id}`,uploadDate:p.createdAt||Date.now(),dimensions:null,fileSize:null,folder:"",blurHash:null}:p))},l.onerror=()=>c(l.error)})}catch(o){return console.error("Error getting backgrounds from IndexedDB:",o),[]}}async function lC(){return(await Bb()).map(n=>n.url||n)}async function uC(o){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt),d=typeof o=="string"?{url:o,name:"Image",uploadDate:Date.now(),folder:""}:{...o,uploadDate:o.uploadDate||Date.now()},c=l.add(d);return new Promise((f,p)=>{c.onsuccess=()=>f(c.result),c.onerror=()=>p(c.error)})}async function wN(o){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt),d=l.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result;if(p[o]){const h=l.delete(p[o].id);h.onsuccess=()=>c(),h.onerror=()=>f(h.error)}else c()},d.onerror=()=>f(d.error)})}async function SN(o){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt),d=l.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result,h=o.filter(g=>p[g]).map(g=>p[g].id);let y=0;const _=h.length;if(_===0){c();return}h.forEach(g=>{const b=l.delete(g);b.onsuccess=()=>{y++,y===_&&c()},b.onerror=()=>f(b.error)})},d.onerror=()=>f(d.error)})}async function Lb(){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt).clear();return new Promise((d,c)=>{l.onsuccess=()=>d(),l.onerror=()=>c(l.error)})}async function dC(){const l=(await Ti()).transaction(zt,"readonly").objectStore(zt).count();return new Promise((d,c)=>{l.onsuccess=()=>d(l.result),l.onerror=()=>c(l.error)})}async function MN(o,n){const d=(await Ti()).transaction(zt,"readwrite").objectStore(zt),c=d.get(o);return new Promise((f,p)=>{c.onsuccess=()=>{const h=c.result;if(h){Object.assign(h,n),h.updatedAt=Date.now();const y=d.put(h);y.onsuccess=()=>f(),y.onerror=()=>p(y.error)}else p(new Error("Background not found"))},c.onerror=()=>p(c.error)})}async function AN(){try{const o=localStorage.getItem("customBackground");if(!o||o==="null"||o==="[]")return!1;let n=[];try{n=JSON.parse(o),Array.isArray(n)||(n=[o])}catch{n=[o]}if(n=n.filter(l=>l&&l.trim()!==""),n.length===0||await dC()>0)return!1;try{for(const l of n)await uC(l)}catch(l){try{await Lb()}catch{}throw l}return console.log(`Migrated ${n.length} backgrounds from localStorage to IndexedDB`),localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(n.length)),localStorage.setItem("customBackgroundMigrated","true"),!0}catch(o){return console.error("Error migrating backgrounds:",o),!1}}function cC({photoInfo:o,currentAPI:n,url:u}){const l=localStorage.getItem("backgroundType")==="custom",[d,c]=k.useState([]),[f,p]=k.useState(!0);k.useEffect(()=>{(async()=>{if(l)try{const g=await lC();c(g||[])}catch(g){console.error("Failed to load custom backgrounds:",g),c([])}p(!1)})()},[l,u]);const h=l&&!f&&(!d||d.length===0),y=()=>{Hl("#settings/background/source"),_e.emit("modal","openMainModal")};return w.jsxs(w.Fragment,{children:[w.jsx("div",{id:"backgroundImage"}),h&&w.jsxs("div",{style:{position:"absolute",bottom:"20px",left:"20px",color:"white",background:"rgba(0, 0, 0, 0.6)",padding:"20px 30px",borderRadius:"10px",zIndex:1},children:[w.jsx("h2",{style:{margin:"0 0 10px 0",fontSize:"20px"},children:pe.getMessage("widgets.background.no_images_title")||"No Custom Images"}),w.jsx("p",{style:{margin:"0 0 15px 0",fontSize:"14px",opacity:.9},children:pe.getMessage("widgets.background.no_images_description")||"Please add custom images in the Background settings"}),w.jsx("button",{onClick:y,style:{background:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white",padding:"10px 20px",borderRadius:"5px",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"all 0.2s"},onMouseOver:_=>{_.target.style.background="rgba(255, 255, 255, 0.3)"},onMouseOut:_=>{_.target.style.background="rgba(255, 255, 255, 0.2)"},children:pe.getMessage("widgets.background.add_images_button")||"Add Images"})]}),o?.credit&&w.jsx(hA,{info:o,api:n,url:u})]})}const mC=k.memo(cC),L_=()=>({muted:localStorage.getItem("backgroundVideoMute")==="true",loop:localStorage.getItem("backgroundVideoLoop")==="true"});function pC({url:o,filterStyle:n}){const[{muted:u,loop:l},d]=k.useState(L_);return k.useEffect(()=>{const c=f=>{f==="backgroundvideo"&&d(L_())};return _e.on("refresh",c),()=>_e.off("refresh",c)},[]),w.jsx("video",{autoPlay:!0,muted:u,loop:l,style:n,id:"backgroundVideo",children:w.jsx("source",{src:o})},o)}const fC=k.memo(pC);function gC(){const[o,n]=k.useState({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!1,offline:!1,photographerURL:"",photoURL:""}}),u=k.useCallback(d=>{n(c=>({...c,...d,photoInfo:{...c.photoInfo,...d.photoInfo||{}}}))},[]),l=k.useCallback(()=>{n({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!0}})},[]);return{backgroundData:o,updateBackground:u,resetBackground:l}}const hC={photo:[5]},$c={"Ryan Hutton":{photo:[1]},"Francesco De Tommaso":{photo:[2]},"Andy Vu":{photo:[3]},"Sergi Ferrete":{photo:[4]},Pixabay:hC};function Ib(o){const n=Object.keys($c),u=n[Math.floor(Math.random()*n.length)],d={url:`src/assets/offline-images/${$c[u].photo[Math.floor(Math.random()*$c[u].photo.length)]}.webp`,type:o,photoInfo:{offline:!0,credit:u}};return localStorage.setItem("currentBackground",JSON.stringify(d)),d}function _C(o){const n=()=>"#000000".replace(/0/g,()=>(~~(Math.random()*16)).toString(16));let u=`background:${n()};`;if(o==="random_gradient"){const l=["to right","to left","to bottom","to top","to bottom right","to bottom left","to top right","to top left"];u=`background:linear-gradient(${l[Math.floor(Math.random()*l.length)]}, ${n()}, ${n()});`}return{type:"colour",style:u}}function Ub(o){return o.startsWith("data:video/")||o.startsWith("video/")||o.endsWith(".mp4")||o.endsWith(".webm")||o.endsWith(".ogg")}const Pb=(o,n=null)=>{const u=localStorage.getItem(o);if(u===null||u==="null")return n;try{const l=JSON.parse(u);return l!==null?l:n}catch{return n}};async function vC(){const o=localStorage.getItem("offlineMode")==="true"||localStorage.getItem("showWelcome")==="true",n=Pb("favourite");if(n)return n.type==="random_colour"||n.type==="random_gradient"?{type:"colour",style:`background:${n.url}`}:{url:n.url,photoInfo:{...n,url:n.url}};const u=localStorage.getItem("backgroundType");switch(u){case"api":return yC();case"colour":return bC();case"random_colour":case"random_gradient":return _C(u);case"custom":return await kC(o);default:return null}}function bC(){return{type:"colour",style:`background: ${localStorage.getItem("customBackgroundColour")||"rgb(0,0,0)"}`}}function yC(){return{...Ib("api"),currentAPI:localStorage.getItem("backgroundAPI")||"mue"}}async function kC(o){let n=await Bb();if(!n||n.length===0){const c=Pb("customBackground",[]);c&&c.length>0&&(n=c.map(f=>({url:f,photoInfo:{hidden:!0}})))}if(!n||n.length===0)return null;const u=n[Math.floor(Math.random()*n.length)];if(!u)return null;const l=u.url||u;if(o&&!l.startsWith("data:"))return Ib("custom");const d={url:l,type:"custom",video:Ub(l),photoInfo:{hidden:!0,blur_hash:u.blurHash||null}};try{localStorage.setItem("currentBackground",JSON.stringify({type:"custom",video:d.video,photoInfo:d.photoInfo}))}catch(c){console.warn("Could not save currentBackground to localStorage:",c)}return d}function wC(o,n){const u=k.useRef(0),l=k.useCallback(async()=>{const c=++u.current,f=()=>c!==u.current;try{if(localStorage.getItem("welcomeTab")){const y=localStorage.getItem("welcomeImage");if(y){o(JSON.parse(y));return}}const h=await vC();if(f())return;h&&o(h)}catch(p){console.error("Failed to load background:",p)}},[o]),d=k.useCallback(()=>{n(),l()},[l,n]);return k.useEffect(()=>{const c=localStorage.getItem("backgroundchange");(!localStorage.getItem("backgroundStartTime")||c==="refresh")&&localStorage.setItem("backgroundStartTime",Date.now()),l()},[l]),{loadBackground:l,refreshBackground:d}}async function SC(o){try{const n=await fetch(o,{mode:"cors",credentials:"omit"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const u=await n.blob();return URL.createObjectURL(u)}catch{return null}}const MC="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",Ol=(o,n,u)=>{let l=0;for(;n<u;)l=l*83+MC.indexOf(o[n++]);return l},Hb=Math.pow,js=Math.PI,Fb=3294.6,Vb=269.025,AC=o=>o>10.31475?Hb(o/Vb+.052132,2.4):o/Fb,CC=o=>~~(o>1227e-8?Vb*Hb(o,.416666)-13.025:o*Fb+1),Fl=4096,Gb=new Uint8ClampedArray(Fl+1);for(let o=0;o<=Fl;o++)Gb[o]=CC(o/Fl);const em=o=>o<=0?0:o>=1?255:Gb[o*Fl+.5|0],Ds=o=>(o<0?-1:1)*o*o,I_=o=>{for(o+=js/2;o>js;)o-=js*2;const n=1.27323954*o-.405284735*Ds(o);return .225*(Ds(n)-n)+n};function xC(o){const n=Ol(o,2,6);return[n>>16,n>>8&255,n&255]}function zC(o,n,u,l){const d=Ol(o,0,1),c=d%9+1,f=~~(d/9)+1,p=c*f;let h,y,_,g,b,S,C,z,A,E,x,L;const G=(Ol(o,1,2)+1)/13446*(l|1),Z=new Float64Array(p*3),H=xC(o);for(h=0;h<3;h++)Z[h]=AC(H[h]);for(h=1;h<p;h++)L=Ol(o,4+h*2,6+h*2),Z[h*3]=Ds(~~(L/361)-9)*G,Z[h*3+1]=Ds(~~(L/19)%19-9)*G,Z[h*3+2]=Ds(L%19-9)*G;const D=new Float64Array(f*u),q=new Float64Array(c*n);for(y=0;y<f;y++)for(g=0;g<u;g++)D[y*u+g]=I_(js*g*y/u);for(h=0;h<c;h++)for(_=0;_<n;_++)q[h*n+_]=I_(js*_*h/n);const V=n*4,$=new Uint8ClampedArray(V*u),W=new Float64Array(c*3);for(g=0;g<u;g++){for(h=0;h<c;h++){for(b=S=C=0,y=0;y<f;y++)A=D[y*u+g],E=(h+y*c)*3,b+=Z[E]*A,S+=Z[E+1]*A,C+=Z[E+2]*A;W[h*3]=b,W[h*3+1]=S,W[h*3+2]=C}for(_=0;_<n;_++){for(b=S=C=0,h=0;h<c;h++)z=q[h*n+_],E=h*3,b+=W[E]*z,S+=W[E+1]*z,C+=W[E+2]*z;x=4*_+g*V,$[x]=em(b),$[x+1]=em(S),$[x+2]=em(C),$[x+3]=255}}return $}function TC(o,n=32,u=32){try{const l=document.createElement("canvas");l.width=n,l.height=u;const d=l.getContext("2d"),c=d.createImageData(n,u);return c.data.set(zC(o,n,u)),d.putImageData(c,0,0),l.toDataURL()}catch(l){return console.error("Failed to generate blur hash:",l),null}}function Rm(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px) brightness(${n}%)`;return u&&u!=="none"&&(d+=` ${u}(${l}%)`),d}function Bm(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px)`;u&&u!=="none"&&(d+=` ${u}(${l}%)`);const f=(100-parseInt(n,10))/100;return{backdropFilter:d,WebkitBackdropFilter:d,backgroundColor:`rgba(0, 0, 0, ${f})`}}const Kb=()=>document.documentElement.dataset.bgMaximised==="true",NC={backdropFilter:"",WebkitBackdropFilter:"",backgroundColor:""},U_=1200;function EC(o){const n=k.useRef(null);k.useEffect(()=>{if(o.video)return;const u=document.getElementById("backgroundImage");if(!u)return;let l=!1,d=null;return(async()=>{if(o.url){const f=localStorage.getItem("bgtransition")!=="false",p=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!f||p){u.style.background=`url(${o.url})`,document.querySelector(".photoInformation")?.style.setProperty("display","flex");return}let h=document.getElementById("backgroundOverlay");if(h||(h=document.createElement("div"),h.id="backgroundOverlay",u.parentNode.insertBefore(h,u.nextSibling)),o.photoInfo?.colour&&(u.style.backgroundColor=o.photoInfo.colour),o.photoInfo?.blur_hash){const b=TC(o.photoInfo.blur_hash,64,64);b&&(u.style.backgroundImage=`url(${b})`)}const y=await SC(o.url);if(l){y&&URL.revokeObjectURL(y);return}const _=y||o.url;y&&(n.current&&URL.revokeObjectURL(n.current),n.current=y);const g=new Image;if(g.src=_,await new Promise(b=>{g.onload=b,g.onerror=b}),l)return;h.style.transition="none",h.style.opacity="0",h.style.backgroundImage="",h.offsetHeight,h.style.backgroundImage=`url(${_})`,h.offsetHeight,h.style.transition=`opacity ${U_/1e3}s ease-in-out`,h.offsetHeight,h.style.opacity="1",d=setTimeout(()=>{u.style.backgroundImage=`url(${_})`,h.style.opacity="0",h.style.backgroundImage=""},U_+100)}else o.style?u.setAttribute("style",o.style):u.style.backgroundImage=""})(),()=>{l=!0,clearTimeout(d),n.current&&(URL.revokeObjectURL(n.current),n.current=null);const f=document.getElementById("backgroundOverlay");f&&f.remove()}},[o.url,o.style,o.video,o.photoInfo])}function jC(o){return k.useMemo(()=>({WebkitFilter:Kb()?"blur(0px) brightness(100%)":Rm()}),[o])}function DC(o){return k.useMemo(()=>Kb()?NC:Bm(),[o])}function OC(o,n){k.useEffect(()=>{const u=c=>{c==="welcomeLanguage"?localStorage.setItem("welcomeImage",JSON.stringify(o)):c==="background"?l():["backgroundwelcome","backgroundrefresh"].includes(c)?n():c==="backgroundeffect"&&d()},l=()=>{const c=document.getElementById(o.video?"backgroundVideo":"backgroundImage"),f=document.querySelector(".photoInformation");if(!(localStorage.getItem("background")!=="false")){c?.style.setProperty("display","none"),o.photoInfo?.hidden||f?.style.setProperty("display","none");return}c?.style.setProperty("display","block"),o.photoInfo?.hidden||f?.style.setProperty("display","flex");const h=localStorage.getItem("backgroundType");(h!==o.type&&!(o.photoInfo?.offline&&h===o.type)||o.type==="api"&&localStorage.getItem("backgroundAPI")!==o.currentAPI||h==="custom"&&o.type!=="custom"||h==="colour"||o.photoInfo?.pun&&JSON.parse(localStorage.getItem("backgroundExclude")||"[]").includes(o.photoInfo.pun))&&n()},d=()=>{if(document.documentElement.dataset.bgMaximised!=="true")if(o.video){const c=Rm(),f=document.getElementById("backgroundVideo");f&&(f.style.webkitFilter=c)}else{const c=document.getElementById("backgroundFilterOverlay");if(c){const f=Bm();c.style.backdropFilter=f.backdropFilter,c.style.webkitBackdropFilter=f.WebkitBackdropFilter,c.style.backgroundColor=f.backgroundColor}}};return _e.on("refresh",u),()=>_e.off("refresh",u)},[o,n])}function qC(){const{backgroundData:o,updateBackground:n,resetBackground:u}=gC(),{refreshBackground:l}=wC(n,u),d=jC(o),c=DC(o);return EC(o),OC(o,l),w.jsxs(w.Fragment,{children:[o.video?w.jsx(fC,{url:o.url,filterStyle:d}):w.jsx(mC,{photoInfo:o.photoInfo,currentAPI:o.currentAPI,url:o.url}),w.jsx("div",{id:"backgroundFilterOverlay",style:c})]})}const RC=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),BC=function(o,n){return new URL(o,n).href},P_={},Lm=function(n,u,l){let d=Promise.resolve();if(u&&u.length>0){let y=function(_){return Promise.all(_.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const f=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),h=p?.nonce||p?.getAttribute("nonce");d=y(u.map(_=>{if(_=BC(_,l),_ in P_)return;P_[_]=!0;const g=_.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(l)for(let C=f.length-1;C>=0;C--){const z=f[C];if(z.href===_&&(!g||z.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":RC,g||(S.as="script"),S.crossOrigin="",S.href=_,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((C,z)=>{S.addEventListener("load",C),S.addEventListener("error",()=>z(new Error(`Unable to preload CSS for ${_}`)))})}))}function c(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return d.then(f=>{for(const p of f||[])p.status==="rejected"&&c(p.reason);return n().catch(c)})};function Yb(o){if(o>3&&o<21)return o+"th";switch(o%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd";default:return o+"th"}}function Im(o,n){return new Date((typeof o=="string"?new Date(o):o).toLocaleString("en-US",{timeZone:n}))}function Wb(){const o=localStorage.getItem("language")?.replace(/_/g,"-")||"en-GB",n={ar:"arab",fa:"arabext",bn:"beng",hi:"deva",mr:"deva",ne:"deva",ta:"tamldec"},u=o.split("-")[0];return n[u]?`${o}-u-nu-${n[u]}`:o}function LC(o){if(localStorage.getItem("localeFormatting")==="false")return Math.round(o*100)+"%";try{return new Intl.NumberFormat(Wb(),{style:"percent",maximumFractionDigits:0}).format(o)}catch{return Math.round(o*100)+"%"}}function Es(o){if(localStorage.getItem("localeFormatting")==="false")return String(o);try{const u=typeof o=="string"?parseInt(o,10):o;return isNaN(u)?String(o):new Intl.NumberFormat(Wb(),{useGrouping:!1}).format(u)}catch{return String(o)}}const IC=k.lazy(()=>Lm(()=>import("./index-WbVrDO2P.js"),[],import.meta.url));function UC({time:o}){const n=u=>localStorage.getItem(u)==="true";return w.jsx(k.Suspense,{fallback:w.jsx(w.Fragment,{}),children:w.jsx("div",{className:`clockBackground ${n("roundClock")?"round":""}`,children:w.jsx(IC,{className:"analogclock clock-container",value:o,size:1.5*Number(localStorage.getItem("zoomClock")||100),renderMinuteMarks:n("minuteMarks"),renderHourMarks:n("hourMarks"),renderSecondHand:n("secondHand"),renderMinuteHand:n("minuteHand"),renderHourHand:n("hourHand")})})})}function PC({finalHour:o,finalMinute:n,finalSeconds:u}){const l=localStorage.getItem("hourColour")||"#fff",d=localStorage.getItem("minuteColour")||"#fff",c=localStorage.getItem("secondColour")||"#fff";return w.jsxs("span",{className:"vertical-clock clock-container",children:[w.jsx("div",{className:"hour",style:{color:l},children:o}),w.jsx("div",{className:"minute",style:{color:d},children:n}),w.jsx("div",{className:"seconds",style:{color:c},children:u})]})}const Yt=o=>String(o).split("").map(u=>Es(u)).join(""),HC=()=>{const[o]=k.useState(localStorage.getItem("timeType")),[n,u]=k.useState(""),[l,d]=k.useState(""),[c,f]=k.useState(""),[p,h]=k.useState(""),[y,_]=k.useState(""),[g,b]=k.useState("block"),[S,C]=k.useState("4em"),z=k.useRef(void 0),A=(E=localStorage.getItem("seconds")==="true"||localStorage.getItem("timeType")==="analogue"?1e3-Date.now()%1e3:6e4-Date.now()%6e4)=>{z.current=setTimeout(()=>{let x=new Date;const L=localStorage.getItem("timezone");switch(L&&L!=="auto"&&(x=Im(x,L)),localStorage.getItem("timeType")){case"percentageComplete":u(LC(x.getHours()/24)),_("");break;case"analogue":Lm(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),u(x);break;default:{let G,Z="";const H=localStorage.getItem("zero");if(localStorage.getItem("seconds")==="true"){const D=("00"+x.getSeconds()).slice(-2);Z=`:${Yt(D)}`,h(Yt(D))}else h("");if(localStorage.getItem("timeformat")==="twentyfourhour"){const D=("00"+x.getMinutes()).slice(-2);if(H==="true"){const q=("00"+x.getHours()).slice(-2);G=`${Yt(q)}:${Yt(D)}${Z}`,d(Yt(q)),f(Yt(D))}else{const q=x.getHours();G=`${Es(q)}:${Yt(D)}${Z}`,d(Es(q)),f(Yt(D))}u(G),_("")}else{let D=x.getHours();D>12?D-=12:D===0&&(D=12);const q=("00"+x.getMinutes()).slice(-2);if(H==="true"){const V=("00"+D).slice(-2);G=`${Yt(V)}:${Yt(q)}${Z}`,d(Yt(V)),f(Yt(q))}else G=`${Es(D)}:${Yt(q)}${Z}`,d(Es(D)),f(Yt(q));u(G),_(x.getHours()>11?"PM":"AM")}break}}A()},E)};return k.useEffect(()=>{const E=x=>{if(x==="clock"||x==="timezone"){if(localStorage.getItem("time")==="false"){b("none");return}clearTimeout(z.current),z.current=null,A(0),b("block"),C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`)}};return localStorage.getItem("timeType")!=="analogue"&&C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`),A(0),_e.on("refresh",E),()=>{_e.off("refresh",E),z.current&&clearTimeout(z.current)}},[]),localStorage.getItem("timeType")==="analogue"?w.jsx(UC,{time:n}):localStorage.getItem("timeType")==="verticalClock"?w.jsx(PC,{finalHour:l,finalMinute:c,finalSeconds:p}):w.jsxs("span",{className:"clock clock-container",style:{display:g,fontSize:S},children:[n,w.jsx("span",{className:"ampm",children:y})]})},FC=(o,n)=>{if(!(localStorage.getItem("events")!=="false"))return n;const l=o.getMonth(),d=o.getDate(),f=JSON.parse(localStorage.getItem("customEvents")||"[]").find(p=>p.month-1===l&&p.date===d);return f&&(n=f.name),n},H_=o=>{const n=Date.now()-o.getTime(),u=new Date(n);return Math.abs(u.getUTCFullYear()-1970)},VC=()=>{const o=Qo(),[n,u]=k.useState(""),[l,d]=k.useState("block"),[c,f]=k.useState("1.6em"),p=k.useRef(),h=k.useRef(null),y=(_=6e4-Date.now()%6e4)=>{h.current=setTimeout(()=>{let g=new Date;const b=localStorage.getItem("timezone");b&&b!=="auto"&&(g=Im(g,b));const S=g.getHours();let C;switch(!0){case S<12:C=o("widgets.greeting.morning");break;case S<18:C=o("widgets.greeting.afternoon");break;default:C=o("widgets.greeting.evening");break}const z=localStorage.getItem("defaultGreetingMessage");z==="false"?C="":C=FC(g,C);let A="";const E=localStorage.getItem("greetingName");typeof E=="string"&&E.replace(/\s/g,"").length>0&&(A=`, ${E.trim()}`);const x=localStorage.getItem("birthdayenabled");if(z==="false"&&x!=="true"&&(A=A.replace(",","")),x==="true"){const L=new Date(localStorage.getItem("birthday"));if(L.getDate()===g.getDate()&&L.getMonth()===g.getMonth())if(localStorage.getItem("birthdayage")==="true"&&H_(L)!==0){const G=o("widgets.greeting.birthday").split(" ");C=`${G[0]} ${Yb(H_(L))} ${G[1]}`}else C=o("widgets.greeting.birthday")}u(`${C}${A}`),y()},_)};return k.useEffect(()=>{const _=b=>{if(b==="greeting"||b==="timezone"){const S=localStorage.getItem("greeting"),C=localStorage.getItem("zoomGreeting");d(S==="false"?"none":"block"),f(`${1.6*Number((C||100)/100)}em`),S!=="false"&&(h.current&&clearTimeout(h.current),y(0))}},g=localStorage.getItem("zoomGreeting");return f(`${1.6*Number((g||100)/100)}em`),y(0),_e.on("refresh",_),()=>{_e.off("refresh",_),h.current&&clearTimeout(h.current)}},[o]),w.jsx("span",{className:"greeting",ref:p,style:{display:l,fontSize:c},children:n})},GC="wbNewtabHandoff:",au=o=>`${GC}${o}`,KC=4e3,ou=()=>typeof browser<"u"&&typeof browser?.sidebarAction?.open=="function",Us=()=>ou()?browser:typeof chrome<"u"&&chrome?.runtime?.id?chrome:null;let Vl=null;async function YC(){let o=null;try{o=await Us()?.tabs?.getCurrent?.()??null}catch{o=null}return o?.id!=null&&await ZC(Us(),o.id),Vl=o,Vl}function WC({text:o,mode:n,tabId:u,now:l=Date.now()}){return{id:`nt-${l}-${Math.random().toString(36).slice(2,8)}`,tabId:u,text:String(o).slice(0,KC),mode:n==="act"?"act":"ask",createdAt:l}}const Qb=16e4,Wo=new Map;function Zb(o){let n;const u=new Promise(d=>{n=d}),l=()=>{Wo.get(o)?.promise===u&&Wo.delete(o),n()};return Wo.set(o,{promise:u,release:l}),l}const QC=o=>Wo.has(o);function F_(o=Vl){return Wo.get(o?.id)?.promise??Promise.resolve()}async function ZC(o,n,u=Date.now()){if(!o?.storage?.local?.get||Wo.has(n))return!1;const l=au(n);let d;try{d=(await o.storage.local.get(l))?.[l]}catch{return!1}if(!d||Wo.has(n))return!1;const c=Qb-(u-Number(d.createdAt||0));return c>0?(Xb(o,n,Zb(n),c),!0):!1}function Xb(o,n,u,l=Qb){const d=au(n);let c;const f=(h,y)=>{(!y||y==="local")&&h?.[d]&&!h[d].newValue&&p()};function p(){clearTimeout(c),o.storage.onChanged?.removeListener?.(f),u()}c=setTimeout(p,l),o.storage.onChanged?.addListener?.(f),Promise.resolve(o.storage.local.get?.(d)).then(h=>{h?.[d]||p()}).catch(()=>{})}function XC({text:o,mode:n},u=Us(),l=Vl){if(!u||l?.id==null)return Promise.reject(new Error("Extension API unavailable"));if(Wo.has(l.id))return Promise.reject(new Error("Previous task is still being handed over"));const d=ou();if(!d&&!u.sidePanel?.open)return Promise.reject(new Error("Side panel API unavailable"));const c=Zb(l.id),f=WC({text:o,mode:n,tabId:l.id});let p,h;try{p=Promise.resolve(u.storage.local.set({[au(l.id)]:f})),d?h=u.sidebarAction.open():(Promise.resolve(u.sidePanel.setOptions({tabId:l.id,path:"src/ui/sidepanel.html",enabled:!0})).catch(()=>{}),h=u.sidePanel.open({tabId:l.id}))}catch(y){h=Promise.reject(y),p??=Promise.resolve()}return Promise.all([p,h]).then(()=>(Xb(u,l.id,c),Promise.resolve(u.runtime.sendMessage({type:"WB_NEWTAB_PANEL_OPENED",tabId:l.id})).catch(()=>{}),!0),async y=>{throw await p.catch(()=>{}),await JC(u,l.id,f.id),c(),y})}async function JC(o,n,u){const l=au(n);try{const d=(await o.storage.local.get(l))?.[l];(!d||d.id===u)&&await o.storage.local.remove(l)}catch{}}function $C(o=Us()){return ou()?typeof o?.search?.search=="function":typeof o?.search?.query=="function"}const V_=new Set(["http:","https:"]);function ex(o){const n=String(o||"").trim();if(!n||/\s/.test(n))return null;try{const u=new URL(n);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n))return V_.has(u.protocol)?u.href:null}catch{}if(/^(localhost|(\d{1,3}\.){3}\d{1,3}|([a-z0-9-]+\.)+[a-z]{2,})(:\d+)?([/?#]\S*)?$/i.test(n))try{const u=new URL(`https://${n}`);return V_.has(u.protocol)?u.href:null}catch{return null}return null}async function tx(o,n=Us(),u=l=>window.location.assign(l)){const l=ex(o);if(l)return u(l),!0;if(ou()&&n?.search?.search)return await n.search.search({query:o,disposition:"CURRENT_TAB"}),!0;if(n?.search?.query)return await n.search.query({text:o,disposition:"CURRENT_TAB"}),!0;throw new Error("Search API unavailable")}const ax=[{id:"ask",icon:BA},{id:"act",icon:Ob},{id:"search",icon:qm}],Jb=()=>ax.filter(o=>o.id!=="search"||$C()),ox=()=>{const o=localStorage.getItem("taskBoxMode");return Jb().some(n=>n.id===o)?o:"ask"};function ix(){const[o,n]=k.useState(ox),[u,l]=k.useState(""),[d,c]=k.useState(""),[f,p]=k.useState(!1),h=k.useRef(null),y=k.useRef(!1);k.useEffect(()=>{let g=!0;return YC().then(b=>{g&&b?.id!=null&&QC(b.id)&&(p(!0),F_(b).then(()=>g&&p(!1)))}),localStorage.getItem("taskBoxFocus")!=="false"&&h.current?.focus(),()=>{g=!1}},[]);const _=g=>{g.preventDefault();const b=u.trim();if(!(!b||f||y.current)){if(c(""),o==="search"){tx(b).catch(()=>c(ya("wb.panel_failed")));return}y.current=!0,p(!0),XC({text:b,mode:o}).then(()=>(l(""),F_())).catch(()=>c(ya("wb.panel_failed"))).finally(()=>{y.current=!1,p(!1),h.current?.focus()})}};return w.jsxs("div",{className:"taskBox",children:[w.jsxs("form",{className:"taskBoxForm",onSubmit:_,children:[w.jsx("input",{ref:h,className:"taskBoxInput",type:"text",value:u,maxLength:4e3,autoComplete:"off",spellCheck:!1,placeholder:ya(`wb.placeholder_${o}`),"aria-label":ya(`wb.placeholder_${o}`),disabled:f,onChange:g=>l(g.target.value)}),w.jsx("button",{className:"taskBoxGo",type:"submit","aria-label":ya("wb.go"),disabled:f||!u.trim(),children:w.jsx(Db,{})})]}),w.jsx("div",{className:"taskBoxModes",role:"radiogroup",children:Jb().map(({id:g,icon:b})=>w.jsxs("button",{type:"button",role:"radio","aria-checked":o===g,className:o===g?"taskBoxMode active":"taskBoxMode",onClick:()=>{n(g),h.current?.focus()},children:[w.jsx(b,{}),w.jsx("span",{children:ya(`wb.${g}`)})]},g))}),o==="act"&&w.jsx("span",{className:"taskBoxHint",children:ya("wb.act_hint")}),d&&w.jsx("span",{className:"taskBoxHint taskBoxError",role:"alert",children:d})]})}const G_="webbrain_chat_history",tm="records";async function nx(o=4,n=globalThis.indexedDB){if(!n?.databases)return[];if(!(await n.databases()).some(d=>d.name===G_))return[];const l=await new Promise((d,c)=>{const f=n.open(G_);f.onupgradeneeded=()=>f.transaction.abort(),f.onsuccess=()=>d(f.result),f.onerror=()=>c(f.error),f.onblocked=()=>c(new Error("blocked"))});try{return l.objectStoreNames.contains(tm)?await new Promise((d,c)=>{const f=[],p=l.transaction([tm],"readonly").objectStore(tm),y=(p.indexNames.contains("updatedAt")?p.index("updatedAt"):p).openCursor(null,"prev");y.onsuccess=()=>{const _=y.result;if(!_||f.length>=o)return d(f);const{id:g,title:b,url:S,updatedAt:C}=_.value;f.push({id:g,title:String(b||"").slice(0,140),url:String(S||""),updatedAt:C}),_.continue()},y.onerror=()=>c(y.error)}):[]}finally{l.close()}}const K_="../src/ui/history.html";function sx(){const[o,n]=k.useState(null);return k.useEffect(()=>{let u=!1;return nx(4).then(l=>!u&&n(l)).catch(()=>!u&&n([])),()=>{u=!0}},[]),o===null?null:w.jsxs("div",{className:"recentChats",children:[w.jsxs("div",{className:"recentChatsHeader",children:[w.jsx("span",{children:ya("wb.recent_title")}),w.jsx("a",{href:K_,children:ya("wb.recent_all")})]}),o.length===0?w.jsx("span",{className:"recentChatsEmpty",children:ya("wb.recent_empty")}):w.jsx("ul",{children:o.map(u=>w.jsx("li",{children:w.jsx("a",{href:`${K_}?id=${encodeURIComponent(u.id)}`,children:u.title||u.url})},u.id))})]})}const wm=Math.min,An=Math.max,Gl=Math.round,ho=o=>({x:o,y:o}),rx={left:"right",right:"left",bottom:"top",top:"bottom"};function lx(o,n,u){return An(o,wm(n,u))}function iu(o,n){return typeof o=="function"?o(n):o}function zn(o){return o.split("-")[0]}function nu(o){return o.split("-")[1]}function $b(o){return o==="x"?"y":"x"}function ey(o){return o==="y"?"height":"width"}function Ko(o){const n=o[0];return n==="t"||n==="b"?"y":"x"}function ty(o){return $b(Ko(o))}function ux(o,n,u){u===void 0&&(u=!1);const l=nu(o),d=ty(o),c=ey(d);let f=d==="x"?l===(u?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Kl(f)),[f,Kl(f)]}function dx(o){const n=Kl(o);return[Sm(o),n,Sm(n)]}function Sm(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}const Y_=["left","right"],W_=["right","left"],cx=["top","bottom"],mx=["bottom","top"];function px(o,n,u){switch(o){case"top":case"bottom":return u?n?W_:Y_:n?Y_:W_;case"left":case"right":return n?cx:mx;default:return[]}}function fx(o,n,u,l){const d=nu(o);let c=px(zn(o),u==="start",l);return d&&(c=c.map(f=>f+"-"+d),n&&(c=c.concat(c.map(Sm)))),c}function Kl(o){const n=zn(o);return rx[n]+o.slice(n.length)}function gx(o){var n,u,l,d;return{top:(n=o.top)!=null?n:0,right:(u=o.right)!=null?u:0,bottom:(l=o.bottom)!=null?l:0,left:(d=o.left)!=null?d:0}}function hx(o){return typeof o!="number"?gx(o):{top:o,right:o,bottom:o,left:o}}function Yl(o){const{x:n,y:u,width:l,height:d}=o;return{width:l,height:d,top:u,left:n,right:n+l,bottom:u+d,x:n,y:u}}function Q_(o,n,u){let{reference:l,floating:d}=o;const c=Ko(n),f=ty(n),p=ey(f),h=zn(n),y=c==="y",_=l.x+l.width/2-d.width/2,g=l.y+l.height/2-d.height/2,b=l[p]/2-d[p]/2;let S;switch(h){case"top":S={x:_,y:l.y-d.height};break;case"bottom":S={x:_,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y:g};break;case"left":S={x:l.x-d.width,y:g};break;default:S={x:l.x,y:l.y}}const C=nu(n);return C&&(S[f]+=b*(C==="end"?1:-1)*(u&&y?-1:1)),S}async function _x(o,n){var u;n===void 0&&(n={});const{x:l,y:d,platform:c,rects:f,elements:p,strategy:h}=o,{boundary:y="clippingAncestors",rootBoundary:_="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=iu(n,o),C=hx(S),A=p[b?g==="floating"?"reference":"floating":g],E=Yl(await c.getClippingRect({element:(u=await(c.isElement==null?void 0:c.isElement(A)))==null||u?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:y,rootBoundary:_,strategy:h})),x=g==="floating"?{x:l,y:d,width:f.floating.width,height:f.floating.height}:f.reference,L=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),G=await(c.isElement==null?void 0:c.isElement(L))&&await(c.getScale==null?void 0:c.getScale(L))||{x:1,y:1},Z=Yl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:x,offsetParent:L,strategy:h}):x);return{top:(E.top-Z.top+C.top)/G.y,bottom:(Z.bottom-E.bottom+C.bottom)/G.y,left:(E.left-Z.left+C.left)/G.x,right:(Z.right-E.right+C.right)/G.x}}const vx=50,bx=async(o,n,u)=>{const{placement:l="bottom",strategy:d="absolute",middleware:c=[],platform:f}=u,p=f.detectOverflow?f:{...f,detectOverflow:_x},h=await(f.isRTL==null?void 0:f.isRTL(n));let y=await f.getElementRects({reference:o,floating:n,strategy:d}),{x:_,y:g}=Q_(y,l,h),b=l,S=0;const C={};for(let z=0;z<c.length;z++){const A=c[z];if(!A)continue;const{name:E,fn:x}=A,{x:L,y:G,data:Z,reset:H}=await x({x:_,y:g,initialPlacement:l,placement:b,strategy:d,middlewareData:C,rects:y,platform:p,elements:{reference:o,floating:n}});_=L??_,g=G??g,C[E]={...C[E],...Z},H&&S<vx&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(y=H.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:d}):H.rects),{x:_,y:g}=Q_(y,b,h)),z=-1)}return{x:_,y:g,placement:b,strategy:d,middlewareData:C}},yx=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var u,l;const{placement:d,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:y}=n,{mainAxis:_=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:z=!0,...A}=iu(o,n);if((u=c.arrow)!=null&&u.alignmentOffset)return{};const E=zn(d),x=Ko(p),L=zn(p)===p,G=await(h.isRTL==null?void 0:h.isRTL(y.floating)),Z=b||(L||!z?[Kl(p)]:dx(p)),H=C!=="none";!b&&H&&Z.push(...fx(p,z,C,G));const D=[p,...Z],q=await h.detectOverflow(n,A),V=[];let $=((l=c.flip)==null?void 0:l.overflows)||[];if(_&&V.push(q[E]),g){const X=ux(d,f,G);V.push(q[X[0]],q[X[1]])}if($=[...$,{placement:d,overflows:V}],!V.every(X=>X<=0)){var W,ee;const X=(((W=c.flip)==null?void 0:W.index)||0)+1,Y=D[X];if(Y&&(!(g==="alignment"?x!==Ko(Y):!1)||$.every(K=>Ko(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:Y}};let I=(ee=$.filter(T=>T.overflows[0]<=0).sort((T,K)=>T.overflows[1]-K.overflows[1])[0])==null?void 0:ee.placement;if(!I)switch(S){case"bestFit":{var ae;const T=(ae=$.filter(K=>{if(H){const ie=Ko(K.placement);return ie===x||ie==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ie=>ie>0).reduce((ie,ne)=>ie+ne,0)]).sort((K,ie)=>K[1]-ie[1])[0])==null?void 0:ae[0];T&&(I=T);break}case"initialPlacement":I=p;break}if(d!==I)return{reset:{placement:I}}}return{}}}},kx=new Set(["left","top"]);async function wx(o,n){const{placement:u,platform:l,elements:d}=o,c=await(l.isRTL==null?void 0:l.isRTL(d.floating)),f=zn(u),p=nu(u),h=Ko(u)==="y",y=kx.has(f)?-1:1,_=c&&h?-1:1,g=iu(n,o);let{mainAxis:b,crossAxis:S,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return p&&typeof C=="number"&&(S=p==="end"?C*-1:C),h?{x:S*_,y:b*y}:{x:b*y,y:S*_}}const Sx=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var u,l;const{x:d,y:c,placement:f,middlewareData:p}=n,h=await wx(n,o);return f===((u=p.offset)==null?void 0:u.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:d+h.x,y:c+h.y,data:{...h,placement:f}}}}},Mx=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:u,y:l,placement:d,platform:c}=n,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:x=>{let{x:L,y:G}=x;return{x:L,y:G}}},...y}=iu(o,n),_={x:u,y:l},g=await c.detectOverflow(n,y),b=Ko(d),S=$b(b);let C=_[S],z=_[b];const A=(x,L)=>lx(L+g[x==="y"?"top":"left"],L,L-g[x==="y"?"bottom":"right"]);f&&(C=A(S,C)),p&&(z=A(b,z));const E=h.fn({...n,[S]:C,[b]:z});return{...E,data:{x:E.x-u,y:E.y-l,enabled:{[S]:f,[b]:p}}}}}};function su(){return typeof window<"u"}function Tn(o){return ay(o)?(o.nodeName||"").toLowerCase():"#document"}function ra(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Zo(o){var n;return(n=(ay(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function ay(o){return su()?o instanceof Node||o instanceof ra(o).Node:!1}function Wa(o){return su()?o instanceof Element||o instanceof ra(o).Element:!1}function Xo(o){return su()?o instanceof HTMLElement||o instanceof ra(o).HTMLElement:!1}function Z_(o){return!su()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof ra(o).ShadowRoot}function ru(o){const{overflow:n,overflowX:u,overflowY:l,display:d}=Qa(o);return/auto|scroll|overlay|hidden|clip/.test(n+l+u)&&d!=="inline"&&d!=="contents"}function Ax(o){return/^(table|td|th)$/.test(Tn(o))}function lu(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}const Cx=/transform|translate|scale|rotate|perspective|filter/,xx=/paint|layout|strict|content/,Si=o=>!!o&&o!=="none";let am;function Um(o){const n=Wa(o)?Qa(o):o;return Si(n.transform)||Si(n.translate)||Si(n.scale)||Si(n.rotate)||Si(n.perspective)||!Pm()&&(Si(n.backdropFilter)||Si(n.filter))||Cx.test(n.willChange||"")||xx.test(n.contain||"")}function zx(o){let n=zi(o);for(;Xo(n)&&!Ps(n);){if(Um(n))return n;if(lu(n))return null;n=zi(n)}return null}function Pm(){return am==null&&(am=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),am}function Ps(o){return/^(html|body|#document)$/.test(Tn(o))}function Qa(o){return ra(o).getComputedStyle(o)}function uu(o){return Wa(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function zi(o){if(Tn(o)==="html")return o;const n=o.assignedSlot||o.parentNode||Z_(o)&&o.host||Zo(o);return Z_(n)?n.host:n}function oy(o){const n=zi(o);return Ps(n)?(o.ownerDocument||o).body:Xo(n)&&ru(n)?n:oy(n)}function iy(o,n,u){var l;n===void 0&&(n=[]);const d=oy(o),c=d===((l=o.ownerDocument)==null?void 0:l.body),f=ra(d);return c?(Mm(f),n.concat(f,f.visualViewport||[],ru(d)?d:[],[])):n.concat(d,iy(d,[]))}function Mm(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function ny(o){const n=Qa(o);let u=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const d=Xo(o),c=d?o.offsetWidth:u,f=d?o.offsetHeight:l,p=Gl(u)!==c||Gl(l)!==f;return p&&(u=c,l=f),{width:u,height:l,$:p}}function sy(o){return Wa(o)?o:o.contextElement}function Cn(o){const n=sy(o);if(!Xo(n))return ho(1);const u=n.getBoundingClientRect(),{width:l,height:d,$:c}=ny(n);let f=(c?Gl(u.width):u.width)/l,p=(c?Gl(u.height):u.height)/d;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const Tx=ho(0);function ry(o){const n=ra(o);return!Pm()||!n.visualViewport?Tx:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Nx(o,n,u){return n===void 0&&(n=!1),!!u&&n&&u===ra(o)}function Hs(o,n,u,l){n===void 0&&(n=!1),u===void 0&&(u=!1);const d=o.getBoundingClientRect(),c=sy(o);let f=ho(1);n&&(l?Wa(l)&&(f=Cn(l)):f=Cn(o));const p=Nx(c,u,l)?ry(c):ho(0);let h=(d.left+p.x)/f.x,y=(d.top+p.y)/f.y,_=d.width/f.x,g=d.height/f.y;if(c&&l){const b=ra(c),S=Wa(l)?ra(l):l;let C=b,z=Mm(C);for(;z&&S!==C;){const A=Cn(z),E=z.getBoundingClientRect(),x=Qa(z),L=E.left+(z.clientLeft+parseFloat(x.paddingLeft))*A.x,G=E.top+(z.clientTop+parseFloat(x.paddingTop))*A.y;h*=A.x,y*=A.y,_*=A.x,g*=A.y,h+=L,y+=G,C=ra(z),z=Mm(C)}}return Yl({width:_,height:g,x:h,y})}function du(o,n){const u=uu(o).scrollLeft;return n?n.left+u:Hs(Zo(o)).left+u}function ly(o,n){const u=o.getBoundingClientRect(),l=u.left+n.scrollLeft-du(o,u),d=u.top+n.scrollTop;return{x:l,y:d}}function Ex(o){let{elements:n,rect:u,offsetParent:l,strategy:d}=o;const c=d==="fixed",f=Zo(l),p=n?lu(n.floating):!1;if(l===f||p&&c)return u;let h={scrollLeft:0,scrollTop:0},y=ho(1);const _=ho(0),g=Xo(l);if((g||!c)&&((Tn(l)!=="body"||ru(f))&&(h=uu(l)),g)){const S=Hs(l);y=Cn(l),_.x=S.x+l.clientLeft,_.y=S.y+l.clientTop}const b=f&&!g&&!c?ly(f,h):ho(0);return{width:u.width*y.x,height:u.height*y.y,x:u.x*y.x-h.scrollLeft*y.x+_.x+b.x,y:u.y*y.y-h.scrollTop*y.y+_.y+b.y}}function jx(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function Dx(o){const n=uu(o),u=o.ownerDocument.body,l=An(o.scrollWidth,o.clientWidth,u.scrollWidth,u.clientWidth),d=An(o.scrollHeight,o.clientHeight,u.scrollHeight,u.clientHeight);let c=-n.scrollLeft+du(o);const f=-n.scrollTop;return Qa(u).direction==="rtl"&&(c+=An(o.clientWidth,u.clientWidth)-l),{width:l,height:d,x:c,y:f}}const Ox=25;function qx(o,n,u){u===void 0&&(u="viewport");const l=u==="layoutViewport",d=ra(o),c=Zo(o),f=d.visualViewport;let p=c.clientWidth,h=c.clientHeight,y=0,_=0;if(f){const b=!Pm()||n==="fixed";l?b||(y=-f.offsetLeft,_=-f.offsetTop):(p=f.width,h=f.height,b&&(y=f.offsetLeft,_=f.offsetTop))}if(du(c)<=0){const b=c.ownerDocument,S=b.body,C=getComputedStyle(S),z=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,A=Math.abs(c.clientWidth-S.clientWidth-z),E=getComputedStyle(c).scrollbarGutter==="stable both-edges"?A/2:A;E<=Ox&&(p-=E)}return{width:p,height:h,x:y,y:_}}function Rx(o,n){const u=Hs(o,!0,n==="fixed"),l=u.top+o.clientTop,d=u.left+o.clientLeft,c=Cn(o),f=o.clientWidth*c.x,p=o.clientHeight*c.y,h=d*c.x,y=l*c.y;return{width:f,height:p,x:h,y}}function X_(o,n,u){let l;if(n==="viewport"||n==="layoutViewport")l=qx(o,u,n);else if(n==="document")l=Dx(Zo(o));else if(Wa(n))l=Rx(n,u);else{const d=ry(o);l={x:n.x-d.x,y:n.y-d.y,width:n.width,height:n.height}}return Yl(l)}function Bx(o,n){const u=n.get(o);if(u)return u;let l=iy(o,[]).filter(p=>Wa(p)&&Tn(p)!=="body"),d=null;const c=Qa(o).position==="fixed";let f=c?zi(o):o;for(;Wa(f)&&!Ps(f);){const p=Qa(f),h=Um(f),y=d?d.position:c?"fixed":"";!h&&(y==="fixed"||y==="absolute"&&p.position==="static")?l=l.filter(g=>g!==f):d=p,f=zi(f)}return n.set(o,l),l}function Lx(o){let{element:n,boundary:u,rootBoundary:l,strategy:d}=o;const f=[...u==="clippingAncestors"?lu(n)?[]:Bx(n,this._c):[].concat(u),l],p=X_(n,f[0],d);let h=p.top,y=p.right,_=p.bottom,g=p.left;for(let b=1;b<f.length;b++){const S=X_(n,f[b],d);h=An(S.top,h),y=wm(S.right,y),_=wm(S.bottom,_),g=An(S.left,g)}return{width:y-g,height:_-h,x:g,y:h}}function Ix(o){const{width:n,height:u}=ny(o);return{width:n,height:u}}function Ux(o,n,u){const l=Xo(n),d=Zo(n),c=u==="fixed",f=Hs(o,!0,c,n);let p={scrollLeft:0,scrollTop:0};const h=ho(0);if((l||!c)&&((Tn(n)!=="body"||ru(d))&&(p=uu(n)),l)){const b=Hs(n,!0,c,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}!l&&d&&(h.x=du(d));const y=d&&!l&&!c?ly(d,p):ho(0),_=f.left+p.scrollLeft-h.x-y.x,g=f.top+p.scrollTop-h.y-y.y;return{x:_,y:g,width:f.width,height:f.height}}function om(o){return Qa(o).position==="static"}function J_(o,n){if(!Xo(o)||Qa(o).position==="fixed")return null;if(n)return n(o);let u=o.offsetParent;return Zo(o)===u&&(u=u.ownerDocument.body),u}function uy(o,n){const u=ra(o);if(lu(o))return u;if(!Xo(o)){let d=zi(o);for(;d&&!Ps(d);){if(Wa(d)&&!om(d))return d;d=zi(d)}return u}let l=J_(o,n);for(;l&&Ax(l)&&om(l);)l=J_(l,n);return l&&Ps(l)&&om(l)&&!Um(l)?u:l||zx(o)||u}const Px=async function(o){const n=this.getOffsetParent||uy,u=this.getDimensions,l=await u(o.floating);return{reference:Ux(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Hx(o){return Qa(o).direction==="rtl"}const Fx={convertOffsetParentRelativeRectToViewportRelativeRect:Ex,getDocumentElement:Zo,getClippingRect:Lx,getOffsetParent:uy,getElementRects:Px,getClientRects:jx,getDimensions:Ix,getScale:Cn,isElement:Wa,isRTL:Hx},Vx=Sx,Gx=Mx,Kx=yx,Yx=(o,n,u)=>{const l=new Map,d=u??{},c={...Fx,...d.platform,_c:l};return bx(o,n,{...d,platform:c})};var Mn=jm(),Wx=typeof document<"u",Qx=function(){},ql=Wx?k.useLayoutEffect:Qx;function Wl(o,n){if(o===n)return!0;if(typeof o!=typeof n)return!1;if(typeof o=="function"&&o.toString()===n.toString())return!0;let u,l,d;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(u=o.length,u!==n.length)return!1;for(l=u;l--!==0;)if(!Wl(o[l],n[l]))return!1;return!0}if(d=Object.keys(o),u=d.length,u!==Object.keys(n).length)return!1;for(l=u;l--!==0;)if(!{}.hasOwnProperty.call(n,d[l]))return!1;for(l=u;l--!==0;){const c=d[l];if(!(c==="_owner"&&o.$$typeof)&&!Wl(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function dy(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function $_(o,n){const u=dy(o);return Math.round(n*u)/u}function im(o){const n=k.useRef(o);return ql(()=>{n.current=o}),n}function cu(o){o===void 0&&(o={});const{placement:n="bottom",strategy:u="absolute",middleware:l=[],platform:d,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:y}=o,[_,g]=k.useState({x:0,y:0,strategy:u,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=k.useState(l);Wl(b,l)||S(l);const[C,z]=k.useState(null),[A,E]=k.useState(null),x=k.useCallback(K=>{K!==H.current&&(H.current=K,z(K))},[]),L=k.useCallback(K=>{K!==D.current&&(D.current=K,E(K))},[]),G=c||C,Z=f||A,H=k.useRef(null),D=k.useRef(null),q=k.useRef(_),V=h!=null,$=im(h),W=im(d),ee=im(y),ae=k.useCallback(()=>{if(!H.current||!D.current)return;const K={placement:n,strategy:u,middleware:b};W.current&&(K.platform=W.current),Yx(H.current,D.current,K).then(ie=>{const ne={...ie,isPositioned:ee.current!==!1};X.current&&!Wl(q.current,ne)&&(q.current=ne,Mn.flushSync(()=>{g(ne)}))})},[b,n,u,W,ee]);ql(()=>{y===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[y]);const X=k.useRef(!1);ql(()=>(X.current=!0,()=>{X.current=!1}),[]),ql(()=>{if(G&&(H.current=G),Z&&(D.current=Z),G&&Z){if($.current)return $.current(G,Z,ae);ae()}},[G,Z,ae,$,V]);const Y=k.useMemo(()=>({reference:H,floating:D,setReference:x,setFloating:L}),[x,L]),I=k.useMemo(()=>({reference:G,floating:Z}),[G,Z]),T=k.useMemo(()=>{const K={position:u,left:0,top:0};if(!I.floating)return K;const ie=$_(I.floating,_.x),ne=$_(I.floating,_.y);return p?{...K,transform:"translate("+ie+"px, "+ne+"px)",...dy(I.floating)>=1.5&&{willChange:"transform"}}:{position:u,left:ie,top:ne}},[u,p,I.floating,_.x,_.y]);return k.useMemo(()=>({..._,update:ae,refs:Y,elements:I,floatingStyles:T}),[_,ae,Y,I,T])}const Zx=(o,n)=>{const u=Vx(o);return{name:u.name,fn:u.fn,options:[o,n]}},mu=(o,n)=>{const u=Gx(o);return{name:u.name,fn:u.fn,options:[o,n]}},Xx=(o,n)=>{const u=Kx(o);return{name:u.name,fn:u.fn,options:[o,n]}};function Jx({children:o,title:n,style:u,placement:l,subtitle:d}){const[c,f]=k.useState(!1),[p,h]=k.useState(!1),[y,_]=k.useState(null),g=k.useRef(`tooltip-${Math.random()}`),b=k.useRef(null),{x:S,y:C,refs:z,strategy:A,placement:E}=cu({placement:l||"bottom",middleware:[Xx(),Zx(15),mu()],elements:{reference:y}}),x=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},L=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},G=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},Z=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},H=()=>!c&&!p?"initial":p?"close":"open";return w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"tooltip",style:u,onMouseEnter:x,onMouseLeave:L,onFocus:G,onBlur:Z,ref:_,"aria-describedby":g.current,children:o}),(c||p)&&w.jsxs("span",{ref:z.setFloating,style:{position:A,top:C??"",left:S??"",display:"flex",flexFlow:"column"},className:"tooltipTitle","data-status":H(),"data-placement":E,children:[n,w.jsx("span",{style:{fontSize:"8px"},children:d})]})]})}const ht=k.memo(Jx),Fs=k.forwardRef(({icon:o,label:n,type:u,iconPlacement:l,onClick:d,active:c,disabled:f,tooltipTitle:p,tooltipKey:h,href:y,style:_},g)=>{let b;switch(u){case"settings":b="btn-settings";break;case"secondary":b="btn-secondary";break;case"icon":b="btn-icon";break;case"navigation":b="btn-navigation";break;case"collection":b="btn-collection";break;case"linkIconButton":b="btn-icon";break;case"linkButton":b="btn-settings";break;default:b="btn-default"}l==="right"&&(b+=" flowReverse"),c&&(b+=` ${b}-active`);const S=w.jsxs("button",{className:b,onClick:d,ref:g,disabled:f,style:_,children:[o,n]}),C=w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:y,style:_,target:"_blank",rel:"noopener noreferrer",children:[o,n]}),z=w.jsx(ht,{title:p,children:w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:y,target:"_blank",rel:"noopener noreferrer",style:_,children:[o,n]})},h);switch(u){case"linkIconButton":return z;case"linkButton":return C;case"icon":return w.jsx(ht,{title:p,children:S},h);default:return S}});Fs.displayName="Button";function $x({urlError:o,iconError:n,addLink:u,closeModal:l,edit:d,editData:c,editLink:f}){const[p,h]=k.useState(d?c.name:""),[y,_]=k.useState(d?c.url:""),[g,b]=k.useState(d?c.icon:"");return w.jsxs("div",{className:"addLinkModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:d?pe.getMessage("widgets.quicklinks.edit"):pe.getMessage("widgets.quicklinks.new")}),w.jsx(ht,{title:pe.getMessage("modals.welcome.buttons.close"),children:w.jsx("div",{className:"close",onClick:()=>l(),children:w.jsx(Is,{})})})]}),w.jsxs("div",{className:"quicklinkModalTextbox",children:[w.jsx("input",{type:"text",className:"text-field-input",placeholder:pe.getMessage("widgets.quicklinks.name"),value:p,onChange:S=>h(S.target.value.replace(/(\r\n|\n|\r)/gm,"")),style:{gridColumn:"span 2"}}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:pe.getMessage("widgets.quicklinks.url"),value:y,onChange:S=>_(S.target.value.replace(/(\r\n|\n|\r)/gm,""))}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:pe.getMessage("widgets.quicklinks.icon"),value:g,onChange:S=>b(S.target.value.replace(/(\r\n|\n|\r)/gm,""))})]}),w.jsxs("div",{className:"addFooter",children:[w.jsxs("span",{className:"dropdown-error",children:[n," ",o]}),d?w.jsx(Fs,{type:"settings",onClick:()=>f(c,p,y,g),icon:w.jsx(q_,{}),label:pe.getMessage("modals.main.settings.sections.quicklinks.edit")}):w.jsx(Fs,{type:"settings",onClick:()=>u(p,y,g),icon:w.jsx(q_,{}),label:pe.getMessage("widgets.quicklinks.add")})]})]})}const CN=k.memo($x),e2=[{name:"time",value:!0},{name:"greeting",value:!0},{name:"background",value:!0},{name:"quote",value:!1},{name:"searchBar",value:!1},{name:"blur",value:0},{name:"brightness",value:90},{name:"zero",value:!0},{name:"events",value:!0},{name:"customBackground",value:""},{name:"greetingName",value:""},{name:"defaultGreetingMessage",value:!0},{name:"backgroundAPI",value:"mue"},{name:"copyButton",value:!1},{name:"installed",value:[]},{name:"searchEngine",value:"duckduckgo"},{name:"refresh",value:!1},{name:"view",value:!0},{name:"favouriteEnabled",value:!0},{name:"quoteShareButton",value:!1},{name:"favouriteQuoteEnabled",value:!1},{name:"showWelcome",value:!1},{name:"date",value:"false"},{name:"timeType",value:"digital"},{name:"dateFormat",value:"DMY"},{name:"shortFormat",value:"dots"},{name:"toastDisplayTime",value:2500},{name:"fontstyle",value:"normal"},{name:"fontweight",value:400},{name:"order",value:'["greeting", "time", "quicklinks", "date", "message"]'},{name:"theme",value:"auto"},{name:"backgroundType",value:"api"},{name:"timeformat",value:"twentyfourhour"},{name:"experimental",value:!1},{name:"debugtimeout",value:0},{name:"quicklinks",value:"[]"},{name:"quicklinksenabled",value:!1},{name:"weatherEnabled",value:!1},{name:"weatherType",value:2},{name:"tempformat",value:"celsius"},{name:"authorImg",value:!0},{name:"authorLink",value:!0},{name:"bgtransition",value:!0},{name:"backgroundVideoLoop",value:!0},{name:"backgroundVideoMute",value:!0},{name:"quicklinkstooltip",value:!0},{name:"notesEnabled",value:!0},{name:"showlocation",value:!0},{name:"minuteHand",value:!0},{name:"hourHand",value:!0},{name:"datezero",value:!0},{name:"autocompleteProvider",value:"google"},{name:"quoteType",value:"quote_pack"},{name:"backgroundFilter",value:"none"},{name:"apiQuality",value:"high"},{name:"photoInformation",value:!0},{name:"backgroundFilterAmount",value:0},{name:"stats",value:!1},{name:"statsData",value:"{}"},{name:"localeFormatting",value:!0},{name:"offlineMode",value:!0},{name:"animations",value:!0},{name:"textBorder",value:"new"},{name:"widgetStyle",value:"new"},{name:"backgroundExclude",value:"[]"},{name:"photoMap",value:!0},{name:"appsEnabled",value:!1},{name:"applinks",value:"[]"},{name:"customEvents",value:'[{"id":"widgets.greeting.christmas","name":"Merry Christmas","month":12,"date":25},{"id":"widgets.greeting.newyear","name":"Happy New Year","month":1,"date":1},{"id":"widgets.greeting.halloween","name":"Happy Halloween","month":10,"date":31}]'},{name:"authorDetails",value:!0},{name:"taskBox",value:!0},{name:"taskBoxMode",value:"ask"},{name:"taskBoxFocus",value:!0},{name:"recentChats",value:!1}],t2=[{name:"العربية",value:"ar"},{name:"مصرى",value:"arz"},{name:"Azərbaycan",value:"az"},{name:"تۆرکجه",value:"azb"},{name:"Bahasa Indonesia",value:"id_ID"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de_DE"},{name:"Ελληνικά",value:"el"},{name:"English (UK)",value:"en_GB"},{name:"English (US)",value:"en_US"},{name:"Español",value:"es"},{name:"Español (Latinoamérica)",value:"es_419"},{name:"Eesti",value:"et"},{name:"فارسی",value:"fa"},{name:"Français",value:"fr"},{name:"Magyar",value:"hu"},{name:"日本語",value:"ja"},{name:"Lietuvių",value:"lt"},{name:"Latviešu",value:"lv"},{name:"Nederlands",value:"nl"},{name:"Norsk",value:"no"},{name:"𐎱𐎠𐎼𐎿",value:"peo"},{name:"Pусский",value:"ru"},{name:"Português",value:"pt"},{name:"Português (Brasil)",value:"pt_BR"},{name:"Português (Portugal)",value:"pt_PT"},{name:"Slovenščina",value:"sl"},{name:"Svenska",value:"sv"},{name:"தமிழ்",value:"ta"},{name:"Türkçe",value:"tr_TR"},{name:"Українська",value:"uk"},{name:"Tiếng Việt",value:"vi"},{name:"中文 (简体)",value:"zh_CN"},{name:"中文 (繁體)",value:"zh_Hant"}];function Am(o){localStorage.clear(),e2.forEach(l=>localStorage.setItem(l.name,l.value));const n=t2.map(({value:l})=>l),u=navigator.languages&&navigator.languages.find(l=>l.replace("-","_")&&n.includes(l))||navigator.language.replace("-","_");n.includes(u)?localStorage.setItem("language",u):localStorage.setItem("language","en_GB"),localStorage.setItem("tabName",pe.getMessage("tabname")),o&&localStorage.setItem("showWelcome",!1),localStorage.setItem("firstRun",!0)}function a2(o,n="file",u="text/json"){typeof o=="object"&&(o=JSON.stringify(o,void 0,4));const l=new Blob([o],{type:u}),d=document.createEvent("MouseEvents"),c=document.createElement("a");c.href=window.URL.createObjectURL(l),c.download=n,c.dataset.downloadurl=[u,c.download,c.href].join(":"),d.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(d)}function nm(o){switch(localStorage.getItem("theme")){case"dark":document.body.classList.add("dark"),document.body.classList.remove("light");break;case"auto":window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.classList.add("dark"):(document.body.classList.remove("dark"),document.body.classList.add("light"));break;default:document.body.classList.add("light"),document.body.classList.remove("dark")}document.title=localStorage.getItem("tabName")||pe.getMessage("tabname"),o===!0&&["customcss","customfont"].forEach(c=>{try{document.head.removeChild(document.getElementById(c))}catch{}}),localStorage.getItem("animations")==="false"?document.body.classList.add("no-animations"):document.body.classList.remove("no-animations");const n=localStorage.getItem("textBorder");n==="true"?["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.add("textBorder")}catch{}}):["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.remove("textBorder")}catch{}}),n==="none"?document.getElementById("center").classList.add("no-textBorder"):document.getElementById("center").classList.remove("no-textBorder");const u=localStorage.getItem("customcss");u&&document.head.insertAdjacentHTML("beforeend",'<style id="customcss">'+u+"</style>");const l=localStorage.getItem("font");l&&document.head.insertAdjacentHTML("beforeend",`
<style id='customfont'>
* {
font-family: '${l}', 'Lexend Deca', 'Inter', sans-serif !important;
@@ -855,7 +855,7 @@ Note: if you don't like "{category}" images, you can deselect the category in th
font-style: ${localStorage.getItem("fontstyle")};
}
</style>
- `),localStorage.getItem("applinks")===null&&localStorage.setItem("applinks",JSON.stringify([])),localStorage.getItem("appsEnabled")===null&&localStorage.setItem("showWelcome",!1)}function o2(){const o=Object.keys(localStorage);if(o.length===0)return Am();const n={};o.forEach(u=>{n[u]=localStorage.getItem(u)}),localStorage.clear(),Am(),Object.keys(n).forEach(u=>{localStorage.setItem(u,n[u])})}function i2({modalClose:o}){const n=async()=>{pe.stats.postEvent("setting","Reset");try{await Lb()}catch{}Am("reset"),window.location.reload()};return w.jsxs("div",{className:"smallModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.title")}),w.jsx(ht,{title:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),children:w.jsx("div",{className:"close",onClick:o,children:w.jsx(Is,{})})})]}),w.jsx("span",{className:"title",children:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.question")}),w.jsx("span",{className:"subtitle",children:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.information")}),w.jsxs("div",{className:"resetFooter",children:[w.jsx(Fs,{type:"secondary",onClick:o,icon:w.jsx(Is,{}),label:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),w.jsx(Fs,{type:"settings",onClick:()=>n(),icon:w.jsx(LA,{}),label:pe.getMessage("modals.main.settings.buttons.reset")})]})]})}const xN=k.memo(i2),ev={[Yo.SETTINGS]:{itemCount:16,dividerPositions:[10,12],textWidths:[80,100,70,90,85,75,80,95,90,75,85,90,85,80,70,95]},[Yo.DISCOVER]:{itemCount:5,dividerPositions:[0],textWidths:[60,95,95,110,90]},[Yo.LIBRARY]:{itemCount:0,dividerPositions:[],textWidths:[]}},n2=({currentTab:o=Yo.SETTINGS})=>{const n=ev[o]||ev[Yo.SETTINGS];return n.itemCount===0?null:w.jsx("div",{className:"sidebarSkeleton",children:Array.from({length:n.itemCount}).map((u,l)=>{const d=n.dividerPositions.includes(l),c=n.textWidths[l]||80;return w.jsxs("div",{children:[w.jsxs("div",{className:"skeletonItem",children:[w.jsx("div",{className:"iconPlaceholder pulse"}),w.jsx("div",{className:"textPlaceholder pulse",style:{width:`${c}px`}})]}),d&&w.jsx("hr",{className:"skeletonDivider"})]},l)})})},s2=({currentTab:o})=>w.jsxs("div",{style:{display:"flex",width:"100%",minHeight:"100%"},children:[w.jsx("div",{className:"modalSidebar",children:w.jsx(n2,{currentTab:o})}),w.jsx("div",{className:"modalTabContent",children:w.jsx("div",{className:"emptyItems",children:w.jsx("div",{className:"emptyMessage",children:w.jsxs("div",{className:"loaderHolder",children:[w.jsx("div",{id:"loader"}),w.jsx("span",{className:"subtitle",children:pe.getMessage("modals.main.loading")})]})})})})]}),r2=""+new URL("webbrain-rEIJfo36.png",import.meta.url).href;function l2({currentTab:o,currentSection:n,currentSectionName:u,currentSubSection:l,onSubSectionChange:d,onClose:c,onBack:f,onForward:p,canGoBack:h,canGoForward:y}){const _=Qo(),g=iC.find(({tab:z})=>z===o),b=g?_(g.messageKey):"",S=(z,A)=>{if(!z||!A)return z;const E=`modals.main.settings.sections.${A}.${z}.title`,x=_(E);return!x||x===E?z.charAt(0).toUpperCase()+z.slice(1):x},C=[];return b&&(C.push({label:b,onClick:null}),n&&(C.push({label:n,onClick:l?()=>d(null):null}),l&&C.push({label:S(l,u),onClick:null}))),w.jsxs("div",{className:"modalTopBar",children:[w.jsxs("div",{className:"topBarLeft",children:[w.jsxs("div",{className:"navigationButtons",children:[w.jsx(ht,{title:"Back",children:w.jsx("button",{className:"navButton",onClick:f,disabled:!h,"aria-label":"Navigate back",children:w.jsx(xA,{})})},"backTooltip"),w.jsx(ht,{title:"Forward",children:w.jsx("button",{className:"navButton",onClick:p,disabled:!y,"aria-label":"Navigate forward",children:w.jsx(Db,{})})},"forwardTooltip")]}),w.jsx("img",{src:r2,alt:"WebBrain",className:"topBarLogo",draggable:!1}),C.length>0&&w.jsx("nav",{className:"breadcrumbs","aria-label":"Breadcrumb navigation",children:C.map((z,A)=>{const E=A===C.length-1,x=z.onClick!==null;return w.jsxs("span",{className:"breadcrumb-segment",children:[x?w.jsx("span",{className:"breadcrumb-item breadcrumb-clickable",onClick:z.onClick,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),z.onClick())},role:"button",tabIndex:0,"aria-label":`Navigate to ${z.label}`,children:z.label}):w.jsx("span",{className:`breadcrumb-item ${E?"breadcrumb-current":""}`,"aria-current":E?"page":void 0,children:z.label}),!E&&w.jsx(CA,{className:"breadcrumb-separator","aria-hidden":"true"})]},A)})})]}),w.jsx("div",{className:"topBarRight",children:w.jsx(ht,{title:_("modals.welcome.buttons.close"),children:w.jsx("span",{className:"closeModal",onClick:c,children:w.jsx(Is,{})})},"closeTooltip")})]})}const u2=k.lazy(()=>Lm(()=>import("./Settings-DPCKRiko.js"),__vite__mapDeps([1,2]),import.meta.url));function d2({modalClose:o,deepLinkData:n}){const u=Yo.SETTINGS,[l,d]=k.useState(""),[c,f]=k.useState(""),[p,h]=k.useState(n?.subSection||null),[y,_]=k.useState(null);k.useEffect(()=>{n?.section&&(_({type:"settings-section",data:n.section,timestamp:Date.now()}),n.subSection&&h(n.subSection))},[n]),k.useEffect(()=>()=>{window.location.hash&&window.history.replaceState(null,null,window.location.pathname)},[]),k.useEffect(()=>{const S=()=>{const C=window.location.hash?Pl(window.location.hash):null;C?.section?(_({type:"settings-section",data:C.section,timestamp:Date.now()}),h(C.subSection||null)):window.location.hash||o?.()};return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[o]);const g=(S,C)=>{d(S),f(C),h(null),C&&Hl(`#${u}/${C}`,!1)},b=(S,C)=>{h(S),C&&Hl(S?`#${u}/${C}/${S}`:`#${u}/${C}`)};return w.jsxs("div",{className:"frame",children:[w.jsx(l2,{currentTab:u,currentSection:l,currentSectionName:c,currentSubSection:p,onSubSectionChange:b,onClose:o,onBack:()=>window.history.back(),onForward:()=>window.history.forward(),canGoBack:!0,canGoForward:!0}),w.jsx("div",{style:{flex:1,display:"flex",overflow:"hidden",minHeight:0},children:w.jsx(k.Suspense,{fallback:w.jsx(s2,{currentTab:u}),children:w.jsx(u2,{currentTab:u,changeTab:()=>{},deepLinkData:n,onSectionChange:g,onSubSectionChange:b,currentSubSection:p,navigationTrigger:y},u)})})]})}const c2=k.memo(d2),tv=["#3b6ea8","#2f8f83","#a85a3b","#7a4fa3","#a38a2f","#b0425b","#4a7f3a","#456b8f"];function cy(o,n=""){let u;try{u=new URL(o).hostname.replace(/^www\./,"")}catch{u=String(o||"")}const l=(n||u||"?").trim(),d=(Array.from(l)[0]||"?").toUpperCase().replace(/[&<>"']/g,"?");let c=0;for(const h of u)c=c*31+h.charCodeAt(0)>>>0;const p=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="${tv[c%tv.length]}"/><text x="32" y="43" font-family="sans-serif" font-size="32" font-weight="600" text-anchor="middle" fill="#fff">${d}</text></svg>`;return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`}const av=()=>{try{const o=localStorage.getItem("quicklinks");if(!o)return[];const n=JSON.parse(o);return Array.isArray(n)?n:[]}catch(o){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",o),[]}},my=k.memo(()=>{const[o,n]=k.useState(av()),[u,l]=k.useState(0),d=k.useRef(null),c=k.useCallback(_=>{if(!_)return;const g=localStorage.getItem("zoomQuicklinks")||100;for(const b of _.getElementsByTagName("span"))b.style.fontSize=`${14*Number(g/100)}px`;if(localStorage.getItem("quickLinksStyle")!=="text")for(const b of _.getElementsByTagName("img"))b.style.height=`${30*Number(g/100)}px`},[]);k.useEffect(()=>{const _=g=>{if(g==="quicklinks"){if(localStorage.getItem("quicklinksenabled")==="false"){d.current&&(d.current.style.display="none");return}d.current&&(d.current.style.display="flex"),n(av()),l(Date.now())}};return _e.on("refresh",_),c(d.current),()=>{_e.off("refresh",_)}},[c]),k.useEffect(()=>{c(d.current)},[o,u,c]);let f,p=null;localStorage.getItem("quicklinksnewtab")==="true"&&(f="_blank",p="noopener noreferrer");const h=localStorage.getItem("quicklinkstooltip"),y=(_,g)=>{if(localStorage.getItem("quickLinksStyle")==="text")return w.jsx("a",{className:"quicklinkstext",href:_.url,target:f,rel:p,draggable:!1,children:_.name},`quicklink-${_.key}-${g}`);const b=_.icon||cy(_.url,_.name);if(localStorage.getItem("quickLinksStyle")==="metro")return w.jsxs("a",{className:"quickLinksMetro",href:_.url,target:f,rel:p,draggable:!1,children:[w.jsx("img",{src:b,alt:_.name,draggable:!1}),w.jsx("span",{className:"subtitle",children:_.name})]},`quicklink-${_.key}-${g}`);const S=w.jsx("a",{href:_.url,target:f,rel:p,draggable:!1,children:w.jsx("img",{src:b,alt:_.name,draggable:!1})},`quicklink-${_.key}-${g}`);return h==="true"?w.jsx(ht,{title:_.name,placement:"bottom",children:S},`quicklink-${_.key}-${g}`):S};return w.jsx("div",{className:"quicklinkscontainer",ref:d,children:o&&o.map((_,g)=>y(_,g))})});my.displayName="QuickLinks";const m2=()=>{const[o,n]=k.useState(""),[u,l]=k.useState(null),[d,c]=k.useState("block"),[f,p]=k.useState("1em"),h=k.useRef(),y=g=>{const b=new Date(g.valueOf()),S=(b.getDay()+6)%7;b.setDate(b.getDate()-S+3);const C=b.valueOf();b.setMonth(0,1),b.getDay()!==4&&b.setMonth(0,1+(4-b.getDay()+7)%7),l(`${pe.getMessage("widgets.date.week")} ${1+Math.ceil((C-b)/6048e5)}`)},_=()=>{let g=new Date;const b=localStorage.getItem("timezone");if(b&&b!=="auto"&&(g=Im(g,b)),localStorage.getItem("weeknumber")==="true"?y(g):l(null),localStorage.getItem("dateType")==="short"){const S=g.getDate(),C=g.getMonth()+1,z=g.getFullYear(),A=localStorage.getItem("datezero")==="true";let E=A?("00"+S).slice(-2):S,x=A?("00"+C).slice(-2):C,L=z;switch(localStorage.getItem("dateFormat")){case"MDY":{const[Z,H]=[E,x];E=H,x=Z;break}case"YMD":{const Z=E;E=L,L=Z;break}}let G;switch(localStorage.getItem("shortFormat")){case"dots":G=`${E}.${x}.${L}`;break;case"dash":G=`${E}-${x}-${L}`;break;case"gaps":G=`${E} - ${x} - ${L}`;break;case"slashes":G=`${E}/${x}/${L}`;break}n(G)}else{const S=pe.languagecode.split("_")[0],C=localStorage.getItem("datenth")==="true"?Yb(g.getDate()):g.getDate(),z=localStorage.getItem("dayofweek")==="true"?g.toLocaleDateString(S,{weekday:"long"}):"",A=g.toLocaleDateString(S,{month:"long"}),E=g.getFullYear();let x;switch(localStorage.getItem("longFormat")){case"MDY":x=`${A} ${C}, ${E}${z?`, ${z}`:""}`;break;case"YMD":x=`${E} ${A} ${C}${z?`, ${z}`:""}`;break;default:x=`${C} ${A} ${E}${z?`, ${z}`:""}`;break}n(x)}};return k.useEffect(()=>{const g=S=>{if(S==="date"||S==="timezone"){if(localStorage.getItem("date")==="false"){c("none");return}c("block"),p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_()}};p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_();const b=setInterval(_,6e4);return _e.on("refresh",g),()=>{clearInterval(b),_e.off("refresh",g)}},[]),w.jsxs("span",{className:"date",ref:h,style:{display:d,fontSize:f},children:[o,w.jsx("br",{}),u]})},ov=()=>{try{const o=JSON.parse(localStorage.getItem("messages"));return Array.isArray(o)?o.filter(n=>typeof n=="string"&&n!==""):[]}catch{return[]}},p2=()=>{const[o,n]=k.useState(""),[u,l]=k.useState("none"),[d,c]=k.useState("1em"),f=k.useRef();return k.useEffect(()=>{const p=y=>{if(y==="message"){const _=ov();n(S=>_.includes(S)?S:_.length>0?_[Math.floor(Math.random()*_.length)]:"");const g=localStorage.getItem("message"),b=localStorage.getItem("zoomMessage");l(g==="false"||_.length===0?"none":"block"),c(`${1*Number((b||100)/100)}em`)}},h=ov();return h.length>0&&(n(h[Math.floor(Math.random()*h.length)]),l("block")),_e.on("refresh",p),()=>{_e.off("refresh",p)}},[]),w.jsx("h2",{className:"message",ref:f,style:{display:u,fontSize:d},children:o.split(/\r?\n/).map(p=>w.jsxs("span",{children:[p,w.jsx("br",{})]},p))})};function Nn(){localStorage.setItem("showReminder",!0);const o=document.querySelector(".reminder-info");o&&(o.style.display="flex"),_e.emit("reminder")}const f2=k.memo(o=>{const[n,u]=k.useState(localStorage.getItem(o.name)||o.default),l=k.useRef(null),d=k.useCallback(p=>{let h=p.target.value;if(h=Number(h),h>o.max&&(h=o.max),h<o.min&&(h=o.min),localStorage.setItem(o.name,h),u(h),o.element&&!document.querySelector(o.element)){Nn();return}_e.emit("refresh",o.category)},[o]),c=k.useCallback(()=>{l.current&&cancelAnimationFrame(l.current);const p=Number(n),h=Number(o.default||0),y=300,_=performance.now(),g=b=>{const S=b-_,C=Math.min(S/y,1),z=1-Math.pow(1-C,3),A=p+(h-p)*z,E=Math.round(A/(Number(o.step)||1))*(Number(o.step)||1);localStorage.setItem(o.name,E),u(E),C<1?l.current=requestAnimationFrame(g):(localStorage.setItem(o.name,h),u(h),_e.emit("refresh",o.category))};l.current=requestAnimationFrame(g),De(pe.getMessage("toasts.reset"))},[n,o]),f=(Number(n)-Number(o.min))/(Number(o.max)-Number(o.min))*100;return w.jsxs("div",{className:"slider-container",children:[w.jsxs("div",{className:"slider-header",children:[w.jsx("span",{className:"slider-value",children:Number(n)}),w.jsxs("span",{className:"slider-reset",onClick:c,children:[w.jsx(Ls,{}),pe.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsxs("div",{className:"slider-wrapper",children:[w.jsx("input",{type:"range",className:"slider-input",value:Number(n),onChange:d,min:Number(o.min),max:Number(o.max),step:Number(o.step)||1,style:{"--slider-percentage":`${f}%`},"aria-label":o.title,"aria-valuemin":Number(o.min),"aria-valuemax":Number(o.max),"aria-valuenow":Number(n),disabled:o.disabled||!1}),o.marks&&o.marks.length>0&&w.jsx("div",{className:"slider-marks",children:o.marks.map(p=>w.jsx("span",{className:"slider-mark",style:{left:`${(p.value-Number(o.min))/(Number(o.max)-Number(o.min))*100}%`},children:p.label},p.value))})]})]})});f2.displayName="SliderComponent";const g2=({children:o})=>w.jsx("div",{id:"widgets",children:o}),iv=()=>{try{const o=JSON.parse(localStorage.getItem("order"));return Array.isArray(o)?o:[]}catch{return[]}},Mi=o=>localStorage.getItem(o)==="true",h2=()=>{const[o,n]=k.useState(iv),u=k.useMemo(()=>({time:Mi("time")&&w.jsx(HC,{}),greeting:Mi("greeting")&&w.jsx(VC,{}),date:Mi("date")&&w.jsx(m2,{}),quicklinks:Mi("quicklinksenabled")?w.jsx(my,{}):null,message:Mi("message")&&w.jsx(p2,{})}),[o]);return k.useEffect(()=>{const l=d=>{d==="widgets"&&n(iv())};return _e.on("refresh",l),()=>{_e.off("refresh",l)}},[]),w.jsxs(g2,{children:[o.map((l,d)=>w.jsx(k.Fragment,{children:u[l]},d)),Mi("taskBox")&&w.jsx(ix,{}),Mi("recentChats")&&w.jsx(sx,{})]})};var xl={exports:{}},Vo={},sm={exports:{}},rm,nv;function _2(){if(nv)return rm;nv=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return rm=o,rm}var lm,sv;function v2(){if(sv)return lm;sv=1;var o=_2();function n(){}function u(){}return u.resetWarningCache=n,lm=function(){function l(f,p,h,y,_,g){if(g!==o){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}l.isRequired=l;function d(){return l}var c={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:d,element:l,elementType:l,instanceOf:d,node:l,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:u,resetWarningCache:n};return c.PropTypes=c,c},lm}var rv;function py(){return rv||(rv=1,sm.exports=v2()()),sm.exports}var zl={exports:{}},ba={},Tl={exports:{}},lv;function fy(){return lv||(lv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var u="none",l="contents",d=/^(input|select|textarea|button|object|iframe)$/;function c(g,b){return b.getPropertyValue("overflow")!=="visible"||g.scrollWidth<=0&&g.scrollHeight<=0}function f(g){var b=g.offsetWidth<=0&&g.offsetHeight<=0;if(b&&!g.innerHTML)return!0;try{var S=window.getComputedStyle(g),C=S.getPropertyValue("display");return b?C!==l&&c(g,S):C===u}catch{return console.warn("Failed to inspect element style"),!1}}function p(g){for(var b=g,S=g.getRootNode&&g.getRootNode();b&&b!==document.body;){if(S&&b===S&&(b=S.host.parentNode),f(b))return!1;b=b.parentNode}return!0}function h(g,b){var S=g.nodeName.toLowerCase(),C=d.test(S)&&!g.disabled||S==="a"&&g.href||b;return C&&p(g)}function y(g){var b=g.getAttribute("tabindex");b===null&&(b=void 0);var S=isNaN(b);return(S||b>=0)&&h(g,!S)}function _(g){var b=[].slice.call(g.querySelectorAll("*"),0).reduce(function(S,C){return S.concat(C.shadowRoot?_(C.shadowRoot):[C])},[]);return b.filter(y)}o.exports=n.default})(Tl,Tl.exports)),Tl.exports}var uv;function b2(){if(uv)return ba;uv=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.resetState=f,ba.log=p,ba.handleBlur=h,ba.handleFocus=y,ba.markForFocusLater=_,ba.returnFocus=g,ba.popWithoutFocus=b,ba.setupScopedFocus=S,ba.teardownScopedFocus=C;var o=fy(),n=u(o);function u(z){return z&&z.__esModule?z:{default:z}}var l=[],d=null,c=!1;function f(){l=[]}function p(){}function h(){c=!0}function y(){if(c){if(c=!1,!d)return;setTimeout(function(){if(!d.contains(document.activeElement)){var z=(0,n.default)(d)[0]||d;z.focus()}},0)}}function _(){l.push(document.activeElement)}function g(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,A=null;try{l.length!==0&&(A=l.pop(),A.focus({preventScroll:z}));return}catch{console.warn(["You tried to return focus to",A,"but it is not in the DOM anymore"].join(" "))}}function b(){l.length>0&&l.pop()}function S(z){d=z,window.addEventListener?(window.addEventListener("blur",h,!1),document.addEventListener("focus",y,!0)):(window.attachEvent("onBlur",h),document.attachEvent("onFocus",y))}function C(){d=null,window.addEventListener?(window.removeEventListener("blur",h),document.removeEventListener("focus",y)):(window.detachEvent("onBlur",h),document.detachEvent("onFocus",y))}return ba}var Nl={exports:{}},dv;function y2(){return dv||(dv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var u=fy(),l=d(u);function d(p){return p&&p.__esModule?p:{default:p}}function c(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return p.activeElement.shadowRoot?c(p.activeElement.shadowRoot):p.activeElement}function f(p,h){var y=(0,l.default)(p);if(!y.length){h.preventDefault();return}var _=void 0,g=h.shiftKey,b=y[0],S=y[y.length-1],C=c();if(p===C){if(!g)return;_=S}if(S===C&&!g&&(_=b),b===C&&g&&(_=S),_){h.preventDefault(),_.focus();return}var z=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),A=z!=null&&z[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(A){var E=y.indexOf(C);if(E>-1&&(E+=g?-1:1),_=y[E],typeof _>"u"){h.preventDefault(),_=g?S:b,_.focus();return}h.preventDefault(),_.focus()}}o.exports=n.default})(Nl,Nl.exports)),Nl.exports}var Ea={},um,cv;function k2(){if(cv)return um;cv=1;var o=function(){};return um=o,um}var Ya={},dm={exports:{}};var mv;function w2(){return mv||(mv=1,(function(o){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),u={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};o.exports?o.exports=u:window.ExecutionEnvironment=u})()})(dm)),dm.exports}var pv;function Hm(){if(pv)return Ya;pv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.canUseDOM=Ya.SafeNodeList=Ya.SafeHTMLCollection=void 0;var o=w2(),n=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var l=n.default,d=l.canUseDOM?window.HTMLElement:{};return Ya.SafeHTMLCollection=l.canUseDOM?window.HTMLCollection:{},Ya.SafeNodeList=l.canUseDOM?window.NodeList:{},Ya.canUseDOM=l.canUseDOM,Ya.default=d,Ya}var fv;function gy(){if(fv)return Ea;fv=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.resetState=c,Ea.log=f,Ea.assertNodeList=p,Ea.setElement=h,Ea.validateElement=y,Ea.hide=_,Ea.show=g,Ea.documentNotReadyOrSSRTesting=b;var o=k2(),n=l(o),u=Hm();function l(S){return S&&S.__esModule?S:{default:S}}var d=null;function c(){d&&(d.removeAttribute?d.removeAttribute("aria-hidden"):d.length!=null?d.forEach(function(S){return S.removeAttribute("aria-hidden")}):document.querySelectorAll(d).forEach(function(S){return S.removeAttribute("aria-hidden")})),d=null}function f(){}function p(S,C){if(!S||!S.length)throw new Error("react-modal: No elements were found for selector "+C+".")}function h(S){var C=S;if(typeof C=="string"&&u.canUseDOM){var z=document.querySelectorAll(C);p(z,C),C=z}return d=C||d,d}function y(S){var C=S||d;return C?Array.isArray(C)||C instanceof HTMLCollection||C instanceof NodeList?C:[C]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function _(S){var C=!0,z=!1,A=void 0;try{for(var E=y(S)[Symbol.iterator](),x;!(C=(x=E.next()).done);C=!0){var L=x.value;L.setAttribute("aria-hidden","true")}}catch(G){z=!0,A=G}finally{try{!C&&E.return&&E.return()}finally{if(z)throw A}}}function g(S){var C=!0,z=!1,A=void 0;try{for(var E=y(S)[Symbol.iterator](),x;!(C=(x=E.next()).done);C=!0){var L=x.value;L.removeAttribute("aria-hidden")}}catch(G){z=!0,A=G}finally{try{!C&&E.return&&E.return()}finally{if(z)throw A}}}function b(){d=null}return Ea}var Ai={},gv;function S2(){if(gv)return Ai;gv=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.resetState=l,Ai.log=d;var o={},n={};function u(y,_){y.classList.remove(_)}function l(){var y=document.getElementsByTagName("html")[0];for(var _ in o)u(y,o[_]);var g=document.body;for(var b in n)u(g,n[b]);o={},n={}}function d(){}var c=function(_,g){return _[g]||(_[g]=0),_[g]+=1,g},f=function(_,g){return _[g]&&(_[g]-=1),g},p=function(_,g,b){b.forEach(function(S){c(g,S),_.add(S)})},h=function(_,g,b){b.forEach(function(S){f(g,S),g[S]===0&&_.remove(S)})};return Ai.add=function(_,g){return p(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai.remove=function(_,g){return h(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai}var Sn={},hv;function hy(){if(hv)return Sn;hv=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.log=l,Sn.resetState=d;function o(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var n=function c(){var f=this;o(this,c),this.register=function(p){f.openInstances.indexOf(p)===-1&&(f.openInstances.push(p),f.emit("register"))},this.deregister=function(p){var h=f.openInstances.indexOf(p);h!==-1&&(f.openInstances.splice(h,1),f.emit("deregister"))},this.subscribe=function(p){f.subscribers.push(p)},this.emit=function(p){f.subscribers.forEach(function(h){return h(p,f.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},u=new n;function l(){console.log("portalOpenInstances ----------"),console.log(u.openInstances.length),u.openInstances.forEach(function(c){return console.log(c)}),console.log("end portalOpenInstances ----------")}function d(){u=new n}return Sn.default=u,Sn}var Ns={},_v;function M2(){if(_v)return Ns;_v=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.resetState=f,Ns.log=p;var o=hy(),n=u(o);function u(_){return _&&_.__esModule?_:{default:_}}var l=void 0,d=void 0,c=[];function f(){for(var _=[l,d],g=0;g<_.length;g++){var b=_[g];b&&b.parentNode&&b.parentNode.removeChild(b)}l=d=null,c=[]}function p(){console.log("bodyTrap ----------"),console.log(c.length);for(var _=[l,d],g=0;g<_.length;g++){var b=_[g],S=b||{};console.log(S.nodeName,S.className,S.id)}console.log("edn bodyTrap ----------")}function h(){c.length!==0&&c[c.length-1].focusContent()}function y(_,g){!l&&!d&&(l=document.createElement("div"),l.setAttribute("data-react-modal-body-trap",""),l.style.position="absolute",l.style.opacity="0",l.setAttribute("tabindex","0"),l.addEventListener("focus",h),d=l.cloneNode(),d.addEventListener("focus",h)),c=g,c.length>0?(document.body.firstChild!==l&&document.body.insertBefore(l,document.body.firstChild),document.body.lastChild!==d&&document.body.appendChild(d)):(l.parentElement&&l.parentElement.removeChild(l),d.parentElement&&d.parentElement.removeChild(d))}return n.default.subscribe(y),Ns}var vv;function A2(){return vv||(vv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var u=Object.assign||function(X){for(var Y=1;Y<arguments.length;Y++){var I=arguments[Y];for(var T in I)Object.prototype.hasOwnProperty.call(I,T)&&(X[T]=I[T])}return X},l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},d=(function(){function X(Y,I){for(var T=0;T<I.length;T++){var K=I[T];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(Y,K.key,K)}}return function(Y,I,T){return I&&X(Y.prototype,I),T&&X(Y,T),Y}})(),c=Ws(),f=py(),p=Z(f),h=b2(),y=G(h),_=y2(),g=Z(_),b=gy(),S=G(b),C=S2(),z=G(C),A=Hm(),E=Z(A),x=hy(),L=Z(x);M2();function G(X){if(X&&X.__esModule)return X;var Y={};if(X!=null)for(var I in X)Object.prototype.hasOwnProperty.call(X,I)&&(Y[I]=X[I]);return Y.default=X,Y}function Z(X){return X&&X.__esModule?X:{default:X}}function H(X,Y){if(!(X instanceof Y))throw new TypeError("Cannot call a class as a function")}function D(X,Y){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:X}function q(X,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);X.prototype=Object.create(Y&&Y.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(X,Y):X.__proto__=Y)}var V={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},$=function(Y){return Y.code==="Tab"||Y.keyCode===9},W=function(Y){return Y.code==="Escape"||Y.keyCode===27},ee=0,ae=(function(X){q(Y,X);function Y(I){H(this,Y);var T=D(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,I));return T.setOverlayRef=function(K){T.overlay=K,T.props.overlayRef&&T.props.overlayRef(K)},T.setContentRef=function(K){T.content=K,T.props.contentRef&&T.props.contentRef(K)},T.afterClose=function(){var K=T.props,ie=K.appElement,ne=K.ariaHideApp,ye=K.htmlOpenClassName,Ce=K.bodyOpenClassName,Ve=K.parentSelector,j=Ve&&Ve().ownerDocument||document;Ce&&z.remove(j.body,Ce),ye&&z.remove(j.getElementsByTagName("html")[0],ye),ne&&ee>0&&(ee-=1,ee===0&&S.show(ie)),T.props.shouldFocusAfterRender&&(T.props.shouldReturnFocusAfterClose?(y.returnFocus(T.props.preventScroll),y.teardownScopedFocus()):y.popWithoutFocus()),T.props.onAfterClose&&T.props.onAfterClose(),L.default.deregister(T)},T.open=function(){T.beforeOpen(),T.state.afterOpen&&T.state.beforeClose?(clearTimeout(T.closeTimer),T.setState({beforeClose:!1})):(T.props.shouldFocusAfterRender&&(y.setupScopedFocus(T.node),y.markForFocusLater()),T.setState({isOpen:!0},function(){T.openAnimationFrame=requestAnimationFrame(function(){T.setState({afterOpen:!0}),T.props.isOpen&&T.props.onAfterOpen&&T.props.onAfterOpen({overlayEl:T.overlay,contentEl:T.content})})}))},T.close=function(){T.props.closeTimeoutMS>0?T.closeWithTimeout():T.closeWithoutTimeout()},T.focusContent=function(){return T.content&&!T.contentHasFocus()&&T.content.focus({preventScroll:!0})},T.closeWithTimeout=function(){var K=Date.now()+T.props.closeTimeoutMS;T.setState({beforeClose:!0,closesAt:K},function(){T.closeTimer=setTimeout(T.closeWithoutTimeout,T.state.closesAt-Date.now())})},T.closeWithoutTimeout=function(){T.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},T.afterClose)},T.handleKeyDown=function(K){$(K)&&(0,g.default)(T.content,K),T.props.shouldCloseOnEsc&&W(K)&&(K.stopPropagation(),T.requestClose(K))},T.handleOverlayOnClick=function(K){T.shouldClose===null&&(T.shouldClose=!0),T.shouldClose&&T.props.shouldCloseOnOverlayClick&&(T.ownerHandlesClose()?T.requestClose(K):T.focusContent()),T.shouldClose=null},T.handleContentOnMouseUp=function(){T.shouldClose=!1},T.handleOverlayOnMouseDown=function(K){!T.props.shouldCloseOnOverlayClick&&K.target==T.overlay&&K.preventDefault()},T.handleContentOnClick=function(){T.shouldClose=!1},T.handleContentOnMouseDown=function(){T.shouldClose=!1},T.requestClose=function(K){return T.ownerHandlesClose()&&T.props.onRequestClose(K)},T.ownerHandlesClose=function(){return T.props.onRequestClose},T.shouldBeClosed=function(){return!T.state.isOpen&&!T.state.beforeClose},T.contentHasFocus=function(){return document.activeElement===T.content||T.content.contains(document.activeElement)},T.buildClassName=function(K,ie){var ne=(typeof ie>"u"?"undefined":l(ie))==="object"?ie:{base:V[K],afterOpen:V[K]+"--after-open",beforeClose:V[K]+"--before-close"},ye=ne.base;return T.state.afterOpen&&(ye=ye+" "+ne.afterOpen),T.state.beforeClose&&(ye=ye+" "+ne.beforeClose),typeof ie=="string"&&ie?ye+" "+ie:ye},T.attributesFromObject=function(K,ie){return Object.keys(ie).reduce(function(ne,ye){return ne[K+"-"+ye]=ie[ye],ne},{})},T.state={afterOpen:!1,beforeClose:!1},T.shouldClose=null,T.moveFromContentToOverlay=null,T}return d(Y,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(T,K){this.props.isOpen&&!T.isOpen?this.open():!this.props.isOpen&&T.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!K.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var T=this.props,K=T.appElement,ie=T.ariaHideApp,ne=T.htmlOpenClassName,ye=T.bodyOpenClassName,Ce=T.parentSelector,Ve=Ce&&Ce().ownerDocument||document;ye&&z.add(Ve.body,ye),ne&&z.add(Ve.getElementsByTagName("html")[0],ne),ie&&(ee+=1,S.hide(K)),L.default.register(this)}},{key:"render",value:function(){var T=this.props,K=T.id,ie=T.className,ne=T.overlayClassName,ye=T.defaultStyles,Ce=T.children,Ve=ie?{}:ye.content,j=ne?{}:ye.overlay;if(this.shouldBeClosed())return null;var te={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:u({},j,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},se=u({id:K,ref:this.setContentRef,style:u({},Ve,this.props.style.content),className:this.buildClassName("content",ie),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",u({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),ce=this.props.contentElement(se,Ce);return this.props.overlayElement(te,ce)}}]),Y})(c.Component);ae.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},ae.propTypes={isOpen:p.default.bool.isRequired,defaultStyles:p.default.shape({content:p.default.object,overlay:p.default.object}),style:p.default.shape({content:p.default.object,overlay:p.default.object}),className:p.default.oneOfType([p.default.string,p.default.object]),overlayClassName:p.default.oneOfType([p.default.string,p.default.object]),parentSelector:p.default.func,bodyOpenClassName:p.default.string,htmlOpenClassName:p.default.string,ariaHideApp:p.default.bool,appElement:p.default.oneOfType([p.default.instanceOf(E.default),p.default.instanceOf(A.SafeHTMLCollection),p.default.instanceOf(A.SafeNodeList),p.default.arrayOf(p.default.instanceOf(E.default))]),onAfterOpen:p.default.func,onAfterClose:p.default.func,onRequestClose:p.default.func,closeTimeoutMS:p.default.number,shouldFocusAfterRender:p.default.bool,shouldCloseOnOverlayClick:p.default.bool,shouldReturnFocusAfterClose:p.default.bool,preventScroll:p.default.bool,role:p.default.string,contentLabel:p.default.string,aria:p.default.object,data:p.default.object,children:p.default.node,shouldCloseOnEsc:p.default.bool,overlayRef:p.default.func,contentRef:p.default.func,id:p.default.string,overlayElement:p.default.func,contentElement:p.default.func,testId:p.default.string},n.default=ae,o.exports=n.default})(zl,zl.exports)),zl.exports}function _y(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function vy(o){function n(u){var l=this.constructor.getDerivedStateFromProps(o,u);return l??null}this.setState(n.bind(this))}function by(o,n){try{var u=this.props,l=this.state;this.props=o,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(u,l)}finally{this.props=u,this.state=l}}_y.__suppressDeprecationWarning=!0;vy.__suppressDeprecationWarning=!0;by.__suppressDeprecationWarning=!0;function C2(o){var n=o.prototype;if(!n||!n.isReactComponent)throw new Error("Can only polyfill class components");if(typeof o.getDerivedStateFromProps!="function"&&typeof n.getSnapshotBeforeUpdate!="function")return o;var u=null,l=null,d=null;if(typeof n.componentWillMount=="function"?u="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(u="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?l="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(l="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?d="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(d="UNSAFE_componentWillUpdate"),u!==null||l!==null||d!==null){var c=o.displayName||o.name,f=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
+ `),localStorage.getItem("applinks")===null&&localStorage.setItem("applinks",JSON.stringify([])),localStorage.getItem("appsEnabled")===null&&localStorage.setItem("showWelcome",!1)}function o2(){const o=Object.keys(localStorage);if(o.length===0)return Am();const n={};o.forEach(u=>{n[u]=localStorage.getItem(u)}),localStorage.clear(),Am(),Object.keys(n).forEach(u=>{localStorage.setItem(u,n[u])})}function i2({modalClose:o}){const n=async()=>{pe.stats.postEvent("setting","Reset");try{await Lb()}catch{}Am("reset"),window.location.reload()};return w.jsxs("div",{className:"smallModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.title")}),w.jsx(ht,{title:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),children:w.jsx("div",{className:"close",onClick:o,children:w.jsx(Is,{})})})]}),w.jsx("span",{className:"title",children:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.question")}),w.jsx("span",{className:"subtitle",children:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.information")}),w.jsxs("div",{className:"resetFooter",children:[w.jsx(Fs,{type:"secondary",onClick:o,icon:w.jsx(Is,{}),label:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),w.jsx(Fs,{type:"settings",onClick:()=>n(),icon:w.jsx(LA,{}),label:pe.getMessage("modals.main.settings.buttons.reset")})]})]})}const xN=k.memo(i2),ev={[Yo.SETTINGS]:{itemCount:16,dividerPositions:[10,12],textWidths:[80,100,70,90,85,75,80,95,90,75,85,90,85,80,70,95]},[Yo.DISCOVER]:{itemCount:5,dividerPositions:[0],textWidths:[60,95,95,110,90]},[Yo.LIBRARY]:{itemCount:0,dividerPositions:[],textWidths:[]}},n2=({currentTab:o=Yo.SETTINGS})=>{const n=ev[o]||ev[Yo.SETTINGS];return n.itemCount===0?null:w.jsx("div",{className:"sidebarSkeleton",children:Array.from({length:n.itemCount}).map((u,l)=>{const d=n.dividerPositions.includes(l),c=n.textWidths[l]||80;return w.jsxs("div",{children:[w.jsxs("div",{className:"skeletonItem",children:[w.jsx("div",{className:"iconPlaceholder pulse"}),w.jsx("div",{className:"textPlaceholder pulse",style:{width:`${c}px`}})]}),d&&w.jsx("hr",{className:"skeletonDivider"})]},l)})})},s2=({currentTab:o})=>w.jsxs("div",{style:{display:"flex",width:"100%",minHeight:"100%"},children:[w.jsx("div",{className:"modalSidebar",children:w.jsx(n2,{currentTab:o})}),w.jsx("div",{className:"modalTabContent",children:w.jsx("div",{className:"emptyItems",children:w.jsx("div",{className:"emptyMessage",children:w.jsxs("div",{className:"loaderHolder",children:[w.jsx("div",{id:"loader"}),w.jsx("span",{className:"subtitle",children:pe.getMessage("modals.main.loading")})]})})})})]}),r2=""+new URL("webbrain-rEIJfo36.png",import.meta.url).href;function l2({currentTab:o,currentSection:n,currentSectionName:u,currentSubSection:l,onSubSectionChange:d,onClose:c,onBack:f,onForward:p,canGoBack:h,canGoForward:y}){const _=Qo(),g=iC.find(({tab:z})=>z===o),b=g?_(g.messageKey):"",S=(z,A)=>{if(!z||!A)return z;const E=`modals.main.settings.sections.${A}.${z}.title`,x=_(E);return!x||x===E?z.charAt(0).toUpperCase()+z.slice(1):x},C=[];return b&&(C.push({label:b,onClick:null}),n&&(C.push({label:n,onClick:l?()=>d(null,u):null}),l&&C.push({label:S(l,u),onClick:null}))),w.jsxs("div",{className:"modalTopBar",children:[w.jsxs("div",{className:"topBarLeft",children:[w.jsxs("div",{className:"navigationButtons",children:[w.jsx(ht,{title:"Back",children:w.jsx("button",{className:"navButton",onClick:f,disabled:!h,"aria-label":"Navigate back",children:w.jsx(xA,{})})},"backTooltip"),w.jsx(ht,{title:"Forward",children:w.jsx("button",{className:"navButton",onClick:p,disabled:!y,"aria-label":"Navigate forward",children:w.jsx(Db,{})})},"forwardTooltip")]}),w.jsx("img",{src:r2,alt:"WebBrain",className:"topBarLogo",draggable:!1}),C.length>0&&w.jsx("nav",{className:"breadcrumbs","aria-label":"Breadcrumb navigation",children:C.map((z,A)=>{const E=A===C.length-1,x=z.onClick!==null;return w.jsxs("span",{className:"breadcrumb-segment",children:[x?w.jsx("span",{className:"breadcrumb-item breadcrumb-clickable",onClick:z.onClick,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),z.onClick())},role:"button",tabIndex:0,"aria-label":`Navigate to ${z.label}`,children:z.label}):w.jsx("span",{className:`breadcrumb-item ${E?"breadcrumb-current":""}`,"aria-current":E?"page":void 0,children:z.label}),!E&&w.jsx(CA,{className:"breadcrumb-separator","aria-hidden":"true"})]},A)})})]}),w.jsx("div",{className:"topBarRight",children:w.jsx(ht,{title:_("modals.welcome.buttons.close"),children:w.jsx("span",{className:"closeModal",onClick:c,children:w.jsx(Is,{})})},"closeTooltip")})]})}const u2=k.lazy(()=>Lm(()=>import("./Settings-CuZKKPjT.js"),__vite__mapDeps([1,2]),import.meta.url));function d2({modalClose:o,deepLinkData:n}){const u=Yo.SETTINGS,[l,d]=k.useState(""),[c,f]=k.useState(""),[p,h]=k.useState(n?.subSection||null),[y,_]=k.useState(null);k.useEffect(()=>{n?.section&&(_({type:"settings-section",data:n.section,timestamp:Date.now()}),n.subSection&&h(n.subSection))},[n]),k.useEffect(()=>()=>{window.location.hash&&window.history.replaceState(null,null,window.location.pathname)},[]),k.useEffect(()=>{const S=()=>{const C=window.location.hash?Pl(window.location.hash):null;C?.section?(_({type:"settings-section",data:C.section,timestamp:Date.now()}),h(C.subSection||null)):window.location.hash||o?.()};return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[o]);const g=(S,C,{fromHistory:z=!1}={})=>{d(S),f(C),!z&&(h(null),C&&Hl(`#${u}/${C}`,!1))},b=(S,C)=>{h(S),C&&Hl(S?`#${u}/${C}/${S}`:`#${u}/${C}`)};return w.jsxs("div",{className:"frame",children:[w.jsx(l2,{currentTab:u,currentSection:l,currentSectionName:c,currentSubSection:p,onSubSectionChange:b,onClose:o,onBack:()=>window.history.back(),onForward:()=>window.history.forward(),canGoBack:!0,canGoForward:!0}),w.jsx("div",{style:{flex:1,display:"flex",overflow:"hidden",minHeight:0},children:w.jsx(k.Suspense,{fallback:w.jsx(s2,{currentTab:u}),children:w.jsx(u2,{currentTab:u,changeTab:()=>{},deepLinkData:n,onSectionChange:g,onSubSectionChange:b,currentSubSection:p,navigationTrigger:y},u)})})]})}const c2=k.memo(d2),tv=["#3b6ea8","#2f8f83","#a85a3b","#7a4fa3","#a38a2f","#b0425b","#4a7f3a","#456b8f"];function cy(o,n=""){let u;try{u=new URL(o).hostname.replace(/^www\./,"")}catch{u=String(o||"")}const l=(n||u||"?").trim(),d=(Array.from(l)[0]||"?").toUpperCase().replace(/[&<>"']/g,"?");let c=0;for(const h of u)c=c*31+h.charCodeAt(0)>>>0;const p=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="${tv[c%tv.length]}"/><text x="32" y="43" font-family="sans-serif" font-size="32" font-weight="600" text-anchor="middle" fill="#fff">${d}</text></svg>`;return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`}const av=()=>{try{const o=localStorage.getItem("quicklinks");if(!o)return[];const n=JSON.parse(o);return Array.isArray(n)?n:[]}catch(o){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",o),[]}},my=k.memo(()=>{const[o,n]=k.useState(av()),[u,l]=k.useState(0),d=k.useRef(null),c=k.useCallback(_=>{if(!_)return;const g=localStorage.getItem("zoomQuicklinks")||100;for(const b of _.getElementsByTagName("span"))b.style.fontSize=`${14*Number(g/100)}px`;if(localStorage.getItem("quickLinksStyle")!=="text")for(const b of _.getElementsByTagName("img"))b.style.height=`${30*Number(g/100)}px`},[]);k.useEffect(()=>{const _=g=>{if(g==="quicklinks"){if(localStorage.getItem("quicklinksenabled")==="false"){d.current&&(d.current.style.display="none");return}d.current&&(d.current.style.display="flex"),n(av()),l(Date.now())}};return _e.on("refresh",_),c(d.current),()=>{_e.off("refresh",_)}},[c]),k.useEffect(()=>{c(d.current)},[o,u,c]);let f,p=null;localStorage.getItem("quicklinksnewtab")==="true"&&(f="_blank",p="noopener noreferrer");const h=localStorage.getItem("quicklinkstooltip"),y=(_,g)=>{if(localStorage.getItem("quickLinksStyle")==="text")return w.jsx("a",{className:"quicklinkstext",href:_.url,target:f,rel:p,draggable:!1,children:_.name},`quicklink-${_.key}-${g}`);const b=_.icon||cy(_.url,_.name);if(localStorage.getItem("quickLinksStyle")==="metro")return w.jsxs("a",{className:"quickLinksMetro",href:_.url,target:f,rel:p,draggable:!1,children:[w.jsx("img",{src:b,alt:_.name,draggable:!1}),w.jsx("span",{className:"subtitle",children:_.name})]},`quicklink-${_.key}-${g}`);const S=w.jsx("a",{href:_.url,target:f,rel:p,draggable:!1,children:w.jsx("img",{src:b,alt:_.name,draggable:!1})},`quicklink-${_.key}-${g}`);return h==="true"?w.jsx(ht,{title:_.name,placement:"bottom",children:S},`quicklink-${_.key}-${g}`):S};return w.jsx("div",{className:"quicklinkscontainer",ref:d,children:o&&o.map((_,g)=>y(_,g))})});my.displayName="QuickLinks";const m2=()=>{const[o,n]=k.useState(""),[u,l]=k.useState(null),[d,c]=k.useState("block"),[f,p]=k.useState("1em"),h=k.useRef(),y=g=>{const b=new Date(g.valueOf()),S=(b.getDay()+6)%7;b.setDate(b.getDate()-S+3);const C=b.valueOf();b.setMonth(0,1),b.getDay()!==4&&b.setMonth(0,1+(4-b.getDay()+7)%7),l(`${pe.getMessage("widgets.date.week")} ${1+Math.ceil((C-b)/6048e5)}`)},_=()=>{let g=new Date;const b=localStorage.getItem("timezone");if(b&&b!=="auto"&&(g=Im(g,b)),localStorage.getItem("weeknumber")==="true"?y(g):l(null),localStorage.getItem("dateType")==="short"){const S=g.getDate(),C=g.getMonth()+1,z=g.getFullYear(),A=localStorage.getItem("datezero")==="true";let E=A?("00"+S).slice(-2):S,x=A?("00"+C).slice(-2):C,L=z;switch(localStorage.getItem("dateFormat")){case"MDY":{const[Z,H]=[E,x];E=H,x=Z;break}case"YMD":{const Z=E;E=L,L=Z;break}}let G;switch(localStorage.getItem("shortFormat")){case"dots":G=`${E}.${x}.${L}`;break;case"dash":G=`${E}-${x}-${L}`;break;case"gaps":G=`${E} - ${x} - ${L}`;break;case"slashes":G=`${E}/${x}/${L}`;break}n(G)}else{const S=pe.languagecode.split("_")[0],C=localStorage.getItem("datenth")==="true"?Yb(g.getDate()):g.getDate(),z=localStorage.getItem("dayofweek")==="true"?g.toLocaleDateString(S,{weekday:"long"}):"",A=g.toLocaleDateString(S,{month:"long"}),E=g.getFullYear();let x;switch(localStorage.getItem("longFormat")){case"MDY":x=`${A} ${C}, ${E}${z?`, ${z}`:""}`;break;case"YMD":x=`${E} ${A} ${C}${z?`, ${z}`:""}`;break;default:x=`${C} ${A} ${E}${z?`, ${z}`:""}`;break}n(x)}};return k.useEffect(()=>{const g=S=>{if(S==="date"||S==="timezone"){if(localStorage.getItem("date")==="false"){c("none");return}c("block"),p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_()}};p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_();const b=setInterval(_,6e4);return _e.on("refresh",g),()=>{clearInterval(b),_e.off("refresh",g)}},[]),w.jsxs("span",{className:"date",ref:h,style:{display:d,fontSize:f},children:[o,w.jsx("br",{}),u]})},ov=()=>{try{const o=JSON.parse(localStorage.getItem("messages"));return Array.isArray(o)?o.filter(n=>typeof n=="string"&&n!==""):[]}catch{return[]}},p2=()=>{const[o,n]=k.useState(""),[u,l]=k.useState("none"),[d,c]=k.useState("1em"),f=k.useRef();return k.useEffect(()=>{const p=y=>{if(y==="message"){const _=ov();n(S=>_.includes(S)?S:_.length>0?_[Math.floor(Math.random()*_.length)]:"");const g=localStorage.getItem("message"),b=localStorage.getItem("zoomMessage");l(g==="false"||_.length===0?"none":"block"),c(`${1*Number((b||100)/100)}em`)}},h=ov();return h.length>0&&(n(h[Math.floor(Math.random()*h.length)]),l("block")),_e.on("refresh",p),()=>{_e.off("refresh",p)}},[]),w.jsx("h2",{className:"message",ref:f,style:{display:u,fontSize:d},children:o.split(/\r?\n/).map(p=>w.jsxs("span",{children:[p,w.jsx("br",{})]},p))})};function Nn(){localStorage.setItem("showReminder",!0);const o=document.querySelector(".reminder-info");o&&(o.style.display="flex"),_e.emit("reminder")}const f2=k.memo(o=>{const[n,u]=k.useState(localStorage.getItem(o.name)||o.default),l=k.useRef(null),d=k.useCallback(p=>{let h=p.target.value;if(h=Number(h),h>o.max&&(h=o.max),h<o.min&&(h=o.min),localStorage.setItem(o.name,h),u(h),o.element&&!document.querySelector(o.element)){Nn();return}_e.emit("refresh",o.category)},[o]),c=k.useCallback(()=>{l.current&&cancelAnimationFrame(l.current);const p=Number(n),h=Number(o.default||0),y=300,_=performance.now(),g=b=>{const S=b-_,C=Math.min(S/y,1),z=1-Math.pow(1-C,3),A=p+(h-p)*z,E=Math.round(A/(Number(o.step)||1))*(Number(o.step)||1);localStorage.setItem(o.name,E),u(E),C<1?l.current=requestAnimationFrame(g):(localStorage.setItem(o.name,h),u(h),_e.emit("refresh",o.category))};l.current=requestAnimationFrame(g),De(pe.getMessage("toasts.reset"))},[n,o]),f=(Number(n)-Number(o.min))/(Number(o.max)-Number(o.min))*100;return w.jsxs("div",{className:"slider-container",children:[w.jsxs("div",{className:"slider-header",children:[w.jsx("span",{className:"slider-value",children:Number(n)}),w.jsxs("span",{className:"slider-reset",onClick:c,children:[w.jsx(Ls,{}),pe.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsxs("div",{className:"slider-wrapper",children:[w.jsx("input",{type:"range",className:"slider-input",value:Number(n),onChange:d,min:Number(o.min),max:Number(o.max),step:Number(o.step)||1,style:{"--slider-percentage":`${f}%`},"aria-label":o.title,"aria-valuemin":Number(o.min),"aria-valuemax":Number(o.max),"aria-valuenow":Number(n),disabled:o.disabled||!1}),o.marks&&o.marks.length>0&&w.jsx("div",{className:"slider-marks",children:o.marks.map(p=>w.jsx("span",{className:"slider-mark",style:{left:`${(p.value-Number(o.min))/(Number(o.max)-Number(o.min))*100}%`},children:p.label},p.value))})]})]})});f2.displayName="SliderComponent";const g2=({children:o})=>w.jsx("div",{id:"widgets",children:o}),iv=()=>{try{const o=JSON.parse(localStorage.getItem("order"));return Array.isArray(o)?o:[]}catch{return[]}},Mi=o=>localStorage.getItem(o)==="true",h2=()=>{const[o,n]=k.useState(iv),u=k.useMemo(()=>({time:Mi("time")&&w.jsx(HC,{}),greeting:Mi("greeting")&&w.jsx(VC,{}),date:Mi("date")&&w.jsx(m2,{}),quicklinks:Mi("quicklinksenabled")?w.jsx(my,{}):null,message:Mi("message")&&w.jsx(p2,{})}),[o]);return k.useEffect(()=>{const l=d=>{d==="widgets"&&n(iv())};return _e.on("refresh",l),()=>{_e.off("refresh",l)}},[]),w.jsxs(g2,{children:[o.map((l,d)=>w.jsx(k.Fragment,{children:u[l]},d)),Mi("taskBox")&&w.jsx(ix,{}),Mi("recentChats")&&w.jsx(sx,{})]})};var xl={exports:{}},Vo={},sm={exports:{}},rm,nv;function _2(){if(nv)return rm;nv=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return rm=o,rm}var lm,sv;function v2(){if(sv)return lm;sv=1;var o=_2();function n(){}function u(){}return u.resetWarningCache=n,lm=function(){function l(f,p,h,y,_,g){if(g!==o){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}l.isRequired=l;function d(){return l}var c={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:d,element:l,elementType:l,instanceOf:d,node:l,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:u,resetWarningCache:n};return c.PropTypes=c,c},lm}var rv;function py(){return rv||(rv=1,sm.exports=v2()()),sm.exports}var zl={exports:{}},ba={},Tl={exports:{}},lv;function fy(){return lv||(lv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var u="none",l="contents",d=/^(input|select|textarea|button|object|iframe)$/;function c(g,b){return b.getPropertyValue("overflow")!=="visible"||g.scrollWidth<=0&&g.scrollHeight<=0}function f(g){var b=g.offsetWidth<=0&&g.offsetHeight<=0;if(b&&!g.innerHTML)return!0;try{var S=window.getComputedStyle(g),C=S.getPropertyValue("display");return b?C!==l&&c(g,S):C===u}catch{return console.warn("Failed to inspect element style"),!1}}function p(g){for(var b=g,S=g.getRootNode&&g.getRootNode();b&&b!==document.body;){if(S&&b===S&&(b=S.host.parentNode),f(b))return!1;b=b.parentNode}return!0}function h(g,b){var S=g.nodeName.toLowerCase(),C=d.test(S)&&!g.disabled||S==="a"&&g.href||b;return C&&p(g)}function y(g){var b=g.getAttribute("tabindex");b===null&&(b=void 0);var S=isNaN(b);return(S||b>=0)&&h(g,!S)}function _(g){var b=[].slice.call(g.querySelectorAll("*"),0).reduce(function(S,C){return S.concat(C.shadowRoot?_(C.shadowRoot):[C])},[]);return b.filter(y)}o.exports=n.default})(Tl,Tl.exports)),Tl.exports}var uv;function b2(){if(uv)return ba;uv=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.resetState=f,ba.log=p,ba.handleBlur=h,ba.handleFocus=y,ba.markForFocusLater=_,ba.returnFocus=g,ba.popWithoutFocus=b,ba.setupScopedFocus=S,ba.teardownScopedFocus=C;var o=fy(),n=u(o);function u(z){return z&&z.__esModule?z:{default:z}}var l=[],d=null,c=!1;function f(){l=[]}function p(){}function h(){c=!0}function y(){if(c){if(c=!1,!d)return;setTimeout(function(){if(!d.contains(document.activeElement)){var z=(0,n.default)(d)[0]||d;z.focus()}},0)}}function _(){l.push(document.activeElement)}function g(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,A=null;try{l.length!==0&&(A=l.pop(),A.focus({preventScroll:z}));return}catch{console.warn(["You tried to return focus to",A,"but it is not in the DOM anymore"].join(" "))}}function b(){l.length>0&&l.pop()}function S(z){d=z,window.addEventListener?(window.addEventListener("blur",h,!1),document.addEventListener("focus",y,!0)):(window.attachEvent("onBlur",h),document.attachEvent("onFocus",y))}function C(){d=null,window.addEventListener?(window.removeEventListener("blur",h),document.removeEventListener("focus",y)):(window.detachEvent("onBlur",h),document.detachEvent("onFocus",y))}return ba}var Nl={exports:{}},dv;function y2(){return dv||(dv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var u=fy(),l=d(u);function d(p){return p&&p.__esModule?p:{default:p}}function c(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return p.activeElement.shadowRoot?c(p.activeElement.shadowRoot):p.activeElement}function f(p,h){var y=(0,l.default)(p);if(!y.length){h.preventDefault();return}var _=void 0,g=h.shiftKey,b=y[0],S=y[y.length-1],C=c();if(p===C){if(!g)return;_=S}if(S===C&&!g&&(_=b),b===C&&g&&(_=S),_){h.preventDefault(),_.focus();return}var z=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),A=z!=null&&z[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(A){var E=y.indexOf(C);if(E>-1&&(E+=g?-1:1),_=y[E],typeof _>"u"){h.preventDefault(),_=g?S:b,_.focus();return}h.preventDefault(),_.focus()}}o.exports=n.default})(Nl,Nl.exports)),Nl.exports}var Ea={},um,cv;function k2(){if(cv)return um;cv=1;var o=function(){};return um=o,um}var Ya={},dm={exports:{}};var mv;function w2(){return mv||(mv=1,(function(o){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),u={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};o.exports?o.exports=u:window.ExecutionEnvironment=u})()})(dm)),dm.exports}var pv;function Hm(){if(pv)return Ya;pv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.canUseDOM=Ya.SafeNodeList=Ya.SafeHTMLCollection=void 0;var o=w2(),n=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var l=n.default,d=l.canUseDOM?window.HTMLElement:{};return Ya.SafeHTMLCollection=l.canUseDOM?window.HTMLCollection:{},Ya.SafeNodeList=l.canUseDOM?window.NodeList:{},Ya.canUseDOM=l.canUseDOM,Ya.default=d,Ya}var fv;function gy(){if(fv)return Ea;fv=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.resetState=c,Ea.log=f,Ea.assertNodeList=p,Ea.setElement=h,Ea.validateElement=y,Ea.hide=_,Ea.show=g,Ea.documentNotReadyOrSSRTesting=b;var o=k2(),n=l(o),u=Hm();function l(S){return S&&S.__esModule?S:{default:S}}var d=null;function c(){d&&(d.removeAttribute?d.removeAttribute("aria-hidden"):d.length!=null?d.forEach(function(S){return S.removeAttribute("aria-hidden")}):document.querySelectorAll(d).forEach(function(S){return S.removeAttribute("aria-hidden")})),d=null}function f(){}function p(S,C){if(!S||!S.length)throw new Error("react-modal: No elements were found for selector "+C+".")}function h(S){var C=S;if(typeof C=="string"&&u.canUseDOM){var z=document.querySelectorAll(C);p(z,C),C=z}return d=C||d,d}function y(S){var C=S||d;return C?Array.isArray(C)||C instanceof HTMLCollection||C instanceof NodeList?C:[C]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function _(S){var C=!0,z=!1,A=void 0;try{for(var E=y(S)[Symbol.iterator](),x;!(C=(x=E.next()).done);C=!0){var L=x.value;L.setAttribute("aria-hidden","true")}}catch(G){z=!0,A=G}finally{try{!C&&E.return&&E.return()}finally{if(z)throw A}}}function g(S){var C=!0,z=!1,A=void 0;try{for(var E=y(S)[Symbol.iterator](),x;!(C=(x=E.next()).done);C=!0){var L=x.value;L.removeAttribute("aria-hidden")}}catch(G){z=!0,A=G}finally{try{!C&&E.return&&E.return()}finally{if(z)throw A}}}function b(){d=null}return Ea}var Ai={},gv;function S2(){if(gv)return Ai;gv=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.resetState=l,Ai.log=d;var o={},n={};function u(y,_){y.classList.remove(_)}function l(){var y=document.getElementsByTagName("html")[0];for(var _ in o)u(y,o[_]);var g=document.body;for(var b in n)u(g,n[b]);o={},n={}}function d(){}var c=function(_,g){return _[g]||(_[g]=0),_[g]+=1,g},f=function(_,g){return _[g]&&(_[g]-=1),g},p=function(_,g,b){b.forEach(function(S){c(g,S),_.add(S)})},h=function(_,g,b){b.forEach(function(S){f(g,S),g[S]===0&&_.remove(S)})};return Ai.add=function(_,g){return p(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai.remove=function(_,g){return h(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai}var Sn={},hv;function hy(){if(hv)return Sn;hv=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.log=l,Sn.resetState=d;function o(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var n=function c(){var f=this;o(this,c),this.register=function(p){f.openInstances.indexOf(p)===-1&&(f.openInstances.push(p),f.emit("register"))},this.deregister=function(p){var h=f.openInstances.indexOf(p);h!==-1&&(f.openInstances.splice(h,1),f.emit("deregister"))},this.subscribe=function(p){f.subscribers.push(p)},this.emit=function(p){f.subscribers.forEach(function(h){return h(p,f.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},u=new n;function l(){console.log("portalOpenInstances ----------"),console.log(u.openInstances.length),u.openInstances.forEach(function(c){return console.log(c)}),console.log("end portalOpenInstances ----------")}function d(){u=new n}return Sn.default=u,Sn}var Ns={},_v;function M2(){if(_v)return Ns;_v=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.resetState=f,Ns.log=p;var o=hy(),n=u(o);function u(_){return _&&_.__esModule?_:{default:_}}var l=void 0,d=void 0,c=[];function f(){for(var _=[l,d],g=0;g<_.length;g++){var b=_[g];b&&b.parentNode&&b.parentNode.removeChild(b)}l=d=null,c=[]}function p(){console.log("bodyTrap ----------"),console.log(c.length);for(var _=[l,d],g=0;g<_.length;g++){var b=_[g],S=b||{};console.log(S.nodeName,S.className,S.id)}console.log("edn bodyTrap ----------")}function h(){c.length!==0&&c[c.length-1].focusContent()}function y(_,g){!l&&!d&&(l=document.createElement("div"),l.setAttribute("data-react-modal-body-trap",""),l.style.position="absolute",l.style.opacity="0",l.setAttribute("tabindex","0"),l.addEventListener("focus",h),d=l.cloneNode(),d.addEventListener("focus",h)),c=g,c.length>0?(document.body.firstChild!==l&&document.body.insertBefore(l,document.body.firstChild),document.body.lastChild!==d&&document.body.appendChild(d)):(l.parentElement&&l.parentElement.removeChild(l),d.parentElement&&d.parentElement.removeChild(d))}return n.default.subscribe(y),Ns}var vv;function A2(){return vv||(vv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var u=Object.assign||function(X){for(var Y=1;Y<arguments.length;Y++){var I=arguments[Y];for(var T in I)Object.prototype.hasOwnProperty.call(I,T)&&(X[T]=I[T])}return X},l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},d=(function(){function X(Y,I){for(var T=0;T<I.length;T++){var K=I[T];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(Y,K.key,K)}}return function(Y,I,T){return I&&X(Y.prototype,I),T&&X(Y,T),Y}})(),c=Ws(),f=py(),p=Z(f),h=b2(),y=G(h),_=y2(),g=Z(_),b=gy(),S=G(b),C=S2(),z=G(C),A=Hm(),E=Z(A),x=hy(),L=Z(x);M2();function G(X){if(X&&X.__esModule)return X;var Y={};if(X!=null)for(var I in X)Object.prototype.hasOwnProperty.call(X,I)&&(Y[I]=X[I]);return Y.default=X,Y}function Z(X){return X&&X.__esModule?X:{default:X}}function H(X,Y){if(!(X instanceof Y))throw new TypeError("Cannot call a class as a function")}function D(X,Y){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:X}function q(X,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);X.prototype=Object.create(Y&&Y.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(X,Y):X.__proto__=Y)}var V={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},$=function(Y){return Y.code==="Tab"||Y.keyCode===9},W=function(Y){return Y.code==="Escape"||Y.keyCode===27},ee=0,ae=(function(X){q(Y,X);function Y(I){H(this,Y);var T=D(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,I));return T.setOverlayRef=function(K){T.overlay=K,T.props.overlayRef&&T.props.overlayRef(K)},T.setContentRef=function(K){T.content=K,T.props.contentRef&&T.props.contentRef(K)},T.afterClose=function(){var K=T.props,ie=K.appElement,ne=K.ariaHideApp,ye=K.htmlOpenClassName,Ce=K.bodyOpenClassName,Ve=K.parentSelector,j=Ve&&Ve().ownerDocument||document;Ce&&z.remove(j.body,Ce),ye&&z.remove(j.getElementsByTagName("html")[0],ye),ne&&ee>0&&(ee-=1,ee===0&&S.show(ie)),T.props.shouldFocusAfterRender&&(T.props.shouldReturnFocusAfterClose?(y.returnFocus(T.props.preventScroll),y.teardownScopedFocus()):y.popWithoutFocus()),T.props.onAfterClose&&T.props.onAfterClose(),L.default.deregister(T)},T.open=function(){T.beforeOpen(),T.state.afterOpen&&T.state.beforeClose?(clearTimeout(T.closeTimer),T.setState({beforeClose:!1})):(T.props.shouldFocusAfterRender&&(y.setupScopedFocus(T.node),y.markForFocusLater()),T.setState({isOpen:!0},function(){T.openAnimationFrame=requestAnimationFrame(function(){T.setState({afterOpen:!0}),T.props.isOpen&&T.props.onAfterOpen&&T.props.onAfterOpen({overlayEl:T.overlay,contentEl:T.content})})}))},T.close=function(){T.props.closeTimeoutMS>0?T.closeWithTimeout():T.closeWithoutTimeout()},T.focusContent=function(){return T.content&&!T.contentHasFocus()&&T.content.focus({preventScroll:!0})},T.closeWithTimeout=function(){var K=Date.now()+T.props.closeTimeoutMS;T.setState({beforeClose:!0,closesAt:K},function(){T.closeTimer=setTimeout(T.closeWithoutTimeout,T.state.closesAt-Date.now())})},T.closeWithoutTimeout=function(){T.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},T.afterClose)},T.handleKeyDown=function(K){$(K)&&(0,g.default)(T.content,K),T.props.shouldCloseOnEsc&&W(K)&&(K.stopPropagation(),T.requestClose(K))},T.handleOverlayOnClick=function(K){T.shouldClose===null&&(T.shouldClose=!0),T.shouldClose&&T.props.shouldCloseOnOverlayClick&&(T.ownerHandlesClose()?T.requestClose(K):T.focusContent()),T.shouldClose=null},T.handleContentOnMouseUp=function(){T.shouldClose=!1},T.handleOverlayOnMouseDown=function(K){!T.props.shouldCloseOnOverlayClick&&K.target==T.overlay&&K.preventDefault()},T.handleContentOnClick=function(){T.shouldClose=!1},T.handleContentOnMouseDown=function(){T.shouldClose=!1},T.requestClose=function(K){return T.ownerHandlesClose()&&T.props.onRequestClose(K)},T.ownerHandlesClose=function(){return T.props.onRequestClose},T.shouldBeClosed=function(){return!T.state.isOpen&&!T.state.beforeClose},T.contentHasFocus=function(){return document.activeElement===T.content||T.content.contains(document.activeElement)},T.buildClassName=function(K,ie){var ne=(typeof ie>"u"?"undefined":l(ie))==="object"?ie:{base:V[K],afterOpen:V[K]+"--after-open",beforeClose:V[K]+"--before-close"},ye=ne.base;return T.state.afterOpen&&(ye=ye+" "+ne.afterOpen),T.state.beforeClose&&(ye=ye+" "+ne.beforeClose),typeof ie=="string"&&ie?ye+" "+ie:ye},T.attributesFromObject=function(K,ie){return Object.keys(ie).reduce(function(ne,ye){return ne[K+"-"+ye]=ie[ye],ne},{})},T.state={afterOpen:!1,beforeClose:!1},T.shouldClose=null,T.moveFromContentToOverlay=null,T}return d(Y,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(T,K){this.props.isOpen&&!T.isOpen?this.open():!this.props.isOpen&&T.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!K.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var T=this.props,K=T.appElement,ie=T.ariaHideApp,ne=T.htmlOpenClassName,ye=T.bodyOpenClassName,Ce=T.parentSelector,Ve=Ce&&Ce().ownerDocument||document;ye&&z.add(Ve.body,ye),ne&&z.add(Ve.getElementsByTagName("html")[0],ne),ie&&(ee+=1,S.hide(K)),L.default.register(this)}},{key:"render",value:function(){var T=this.props,K=T.id,ie=T.className,ne=T.overlayClassName,ye=T.defaultStyles,Ce=T.children,Ve=ie?{}:ye.content,j=ne?{}:ye.overlay;if(this.shouldBeClosed())return null;var te={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:u({},j,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},se=u({id:K,ref:this.setContentRef,style:u({},Ve,this.props.style.content),className:this.buildClassName("content",ie),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",u({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),ce=this.props.contentElement(se,Ce);return this.props.overlayElement(te,ce)}}]),Y})(c.Component);ae.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},ae.propTypes={isOpen:p.default.bool.isRequired,defaultStyles:p.default.shape({content:p.default.object,overlay:p.default.object}),style:p.default.shape({content:p.default.object,overlay:p.default.object}),className:p.default.oneOfType([p.default.string,p.default.object]),overlayClassName:p.default.oneOfType([p.default.string,p.default.object]),parentSelector:p.default.func,bodyOpenClassName:p.default.string,htmlOpenClassName:p.default.string,ariaHideApp:p.default.bool,appElement:p.default.oneOfType([p.default.instanceOf(E.default),p.default.instanceOf(A.SafeHTMLCollection),p.default.instanceOf(A.SafeNodeList),p.default.arrayOf(p.default.instanceOf(E.default))]),onAfterOpen:p.default.func,onAfterClose:p.default.func,onRequestClose:p.default.func,closeTimeoutMS:p.default.number,shouldFocusAfterRender:p.default.bool,shouldCloseOnOverlayClick:p.default.bool,shouldReturnFocusAfterClose:p.default.bool,preventScroll:p.default.bool,role:p.default.string,contentLabel:p.default.string,aria:p.default.object,data:p.default.object,children:p.default.node,shouldCloseOnEsc:p.default.bool,overlayRef:p.default.func,contentRef:p.default.func,id:p.default.string,overlayElement:p.default.func,contentElement:p.default.func,testId:p.default.string},n.default=ae,o.exports=n.default})(zl,zl.exports)),zl.exports}function _y(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function vy(o){function n(u){var l=this.constructor.getDerivedStateFromProps(o,u);return l??null}this.setState(n.bind(this))}function by(o,n){try{var u=this.props,l=this.state;this.props=o,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(u,l)}finally{this.props=u,this.state=l}}_y.__suppressDeprecationWarning=!0;vy.__suppressDeprecationWarning=!0;by.__suppressDeprecationWarning=!0;function C2(o){var n=o.prototype;if(!n||!n.isReactComponent)throw new Error("Can only polyfill class components");if(typeof o.getDerivedStateFromProps!="function"&&typeof n.getSnapshotBeforeUpdate!="function")return o;var u=null,l=null,d=null;if(typeof n.componentWillMount=="function"?u="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(u="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?l="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(l="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?d="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(d="UNSAFE_componentWillUpdate"),u!==null||l!==null||d!==null){var c=o.displayName||o.name,f=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
`+c+" uses "+f+" but also contains the following legacy lifecycles:"+(u!==null?`
`+u:"")+(l!==null?`
diff --git a/src/firefox/newtab/assets/index-IXgZpYJT.js b/src/chrome/newtab/assets/index-WbVrDO2P.js
similarity index 99%
rename from src/firefox/newtab/assets/index-IXgZpYJT.js
rename to src/chrome/newtab/assets/index-WbVrDO2P.js
index 4c301453f..cd77795a1 100644
--- a/src/firefox/newtab/assets/index-IXgZpYJT.js
+++ b/src/chrome/newtab/assets/index-WbVrDO2P.js
@@ -1,2 +1,2 @@
-import{j as m,d as J,aA as de}from"./index-CdhTpdYh.js";function Y(e){if(e instanceof Date)return e.getHours();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[0];if(t){const r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}}throw new Error(`Failed to get hours from date: ${e}.`)}function w(e){if(e instanceof Date)return e.getMinutes();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[1]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get minutes from date: ${e}.`)}function y(e){if(e instanceof Date)return e.getSeconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[2]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get seconds from date: ${e}.`)}function M(e){if(e instanceof Date)return e.getMilliseconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const r=(n[2]||"0").split(".")[1]||"0",o=Number.parseInt(r,10);if(!Number.isNaN(o))return o}}throw new Error(`Failed to get seconds from date: ${e}.`)}function S(e){var n=e.angle,t=n===void 0?0:n,r=e.name,o=e.length,i=o===void 0?100:o,c=e.oppositeLength,a=c===void 0?10:c,l=e.width,s=l===void 0?1:l;return m.jsx("div",{className:"react-clock__hand react-clock__".concat(r,"-hand"),style:{transform:"rotate(".concat(t,"deg)")},children:m.jsx("div",{className:"react-clock__hand__body react-clock__".concat(r,"-hand__body"),style:{width:"".concat(s,"px"),top:"".concat(50-i/2,"%"),bottom:"".concat(50-a/2,"%")}})})}var q=J.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.width,l=a===void 0?1:a;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__body react-clock__".concat(c,"-mark__body"),style:{width:"".concat(l,"px"),top:0,bottom:"".concat(100-i/2,"%")}})})}),le=J.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.number;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__number",style:{transform:"rotate(-".concat(r,"deg)"),top:"".concat(i/2,"%")},children:a})})});const fe=(e,n,t,r)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;const o=Object.getOwnPropertyDescriptor(e,t),i=Object.getOwnPropertyDescriptor(n,t);!me(o,i)&&r||Object.defineProperty(e,t,i)},me=function(e,n){return e===void 0||e.configurable||e.writable===n.writable&&e.enumerable===n.enumerable&&e.configurable===n.configurable&&(e.writable||e.value===n.value)},ge=(e,n)=>{const t=Object.getPrototypeOf(n);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t)},he=(e,n)=>`/* Wrapped ${e}*/
+import{j as m,d as J,aA as de}from"./index-CEGyrx1j.js";function Y(e){if(e instanceof Date)return e.getHours();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[0];if(t){const r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}}throw new Error(`Failed to get hours from date: ${e}.`)}function w(e){if(e instanceof Date)return e.getMinutes();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[1]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get minutes from date: ${e}.`)}function y(e){if(e instanceof Date)return e.getSeconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[2]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get seconds from date: ${e}.`)}function M(e){if(e instanceof Date)return e.getMilliseconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const r=(n[2]||"0").split(".")[1]||"0",o=Number.parseInt(r,10);if(!Number.isNaN(o))return o}}throw new Error(`Failed to get seconds from date: ${e}.`)}function S(e){var n=e.angle,t=n===void 0?0:n,r=e.name,o=e.length,i=o===void 0?100:o,c=e.oppositeLength,a=c===void 0?10:c,l=e.width,s=l===void 0?1:l;return m.jsx("div",{className:"react-clock__hand react-clock__".concat(r,"-hand"),style:{transform:"rotate(".concat(t,"deg)")},children:m.jsx("div",{className:"react-clock__hand__body react-clock__".concat(r,"-hand__body"),style:{width:"".concat(s,"px"),top:"".concat(50-i/2,"%"),bottom:"".concat(50-a/2,"%")}})})}var q=J.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.width,l=a===void 0?1:a;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__body react-clock__".concat(c,"-mark__body"),style:{width:"".concat(l,"px"),top:0,bottom:"".concat(100-i/2,"%")}})})}),le=J.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.number;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__number",style:{transform:"rotate(-".concat(r,"deg)"),top:"".concat(i/2,"%")},children:a})})});const fe=(e,n,t,r)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;const o=Object.getOwnPropertyDescriptor(e,t),i=Object.getOwnPropertyDescriptor(n,t);!me(o,i)&&r||Object.defineProperty(e,t,i)},me=function(e,n){return e===void 0||e.configurable||e.writable===n.writable&&e.enumerable===n.enumerable&&e.configurable===n.configurable&&(e.writable||e.value===n.value)},ge=(e,n)=>{const t=Object.getPrototypeOf(n);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t)},he=(e,n)=>`/* Wrapped ${e}*/
${n}`,pe=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),ve=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),be=(e,n,t)=>{const r=t===""?"":`with ${t.trim()}() `,o=he.bind(null,r,n.toString());Object.defineProperty(o,"name",ve);const{writable:i,enumerable:c,configurable:a}=pe;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:c,configurable:a})};function Ne(e,n,{ignoreNonConfigurable:t=!1}={}){const{name:r}=e;for(const o of Reflect.ownKeys(n))fe(e,n,o,t);return ge(e,n),be(e,n,r),e}const v=2147483647,ke=new WeakMap,H=new WeakMap,we=new WeakMap;function ye(e,n){const t=e.get(n);if(t){if(t.maxAge<=Date.now()){e.delete(n);return}return t}}function K(e,{cacheKey:n,cache:t=new Map,maxAge:r}={}){if(r===0)return e;if(typeof r=="number"&&Number.isFinite(r)){if(r>v)throw new TypeError(`The \`maxAge\` option cannot exceed ${v}.`);if(r<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const o=function(...i){const c=n?n(i):i[0],a=ye(t,c);if(a)return a.data;const l=e.apply(this,i),s=typeof r=="function"?r(...i):r;if(s!==void 0&&s!==Number.POSITIVE_INFINITY){if(!Number.isFinite(s))throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(s<=0)return l;if(s>v)throw new TypeError(`The \`maxAge\` function result cannot exceed ${v}.`)}if(t.set(c,{data:l,maxAge:s===void 0||s===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:Date.now()+s}),s!==void 0&&s!==Number.POSITIVE_INFINITY){const g=setTimeout(()=>{t.delete(c),H.get(o)?.delete(g)},s);g.unref?.();const h=H.get(o)??new Set;h.add(g),H.set(o,h)}return l};return Ne(o,e,{ignoreNonConfigurable:!0}),ke.set(o,t),we.set(o,n??(i=>i[0])),o}function Me(e){return typeof e=="string"}function Se(e,n,t){return t.indexOf(e)===n}function He(e){return e.toLowerCase()===e}function A(e){return e.indexOf(",")===-1?e:e.split(",")}function O(e){if(!e)return e;if(e==="C"||e==="posix"||e==="POSIX")return"en-US";if(e.indexOf(".")!==-1){var n=e.split(".")[0],t=n===void 0?"":n;return O(t)}if(e.indexOf("@")!==-1){var r=e.split("@")[0],t=r===void 0?"":r;return O(t)}if(e.indexOf("-")===-1||!He(e))return e;var o=e.split("-"),i=o[0],c=o[1],a=c===void 0?"":c;return"".concat(i,"-").concat(a.toUpperCase())}function Oe(e){var n=e===void 0?{}:e,t=n.useFallbackLocale,r=t===void 0?!0:t,o=n.fallbackLocale,i=o===void 0?"en-US":o,c=[];if(typeof navigator<"u"){for(var a=navigator.languages||[],l=[],s=0,g=a;s<g.length;s++){var h=g[s];l=l.concat(A(h))}var p=navigator.language,b=p&&A(p);c=c.concat(l,b)}return r&&c.push(i),c.filter(Me).map(O).filter(Se)}var xe=K(Oe,{cacheKey:JSON.stringify});function Le(e){return xe(e)[0]||null}var Ie=K(Le,{cacheKey:JSON.stringify});function je(e,n){return n.toLocaleString(e||Ie()||void 0)}function _e(e){return e!==null&&e!==!1&&!Number.isNaN(Number(e))}function Pe(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Math.max.apply(Math,e.filter(_e))}function Fe(e){var n=e.className,t=e.formatHour,r=t===void 0?je:t,o=e.hourHandLength,i=o===void 0?50:o,c=e.hourHandOppositeLength,a=e.hourHandWidth,l=a===void 0?4:a,s=e.hourMarksLength,g=s===void 0?10:s,h=e.hourMarksWidth,p=h===void 0?3:h,b=e.locale,x=e.minuteHandLength,R=x===void 0?70:x,X=e.minuteHandOppositeLength,L=e.minuteHandWidth,B=L===void 0?2:L,I=e.minuteMarksLength,j=I===void 0?6:I,_=e.minuteMarksWidth,G=_===void 0?1:_,P=e.renderHourMarks,N=P===void 0?!0:P,T=e.renderMinuteHand,F=T===void 0?!0:T,W=e.renderMinuteMarks,E=W===void 0?!0:W,Q=e.renderNumbers,C=e.renderSecondHand,$=C===void 0?!0:C,U=e.secondHandLength,Z=U===void 0?90:U,ee=e.secondHandOppositeLength,V=e.secondHandWidth,ne=V===void 0?1:V,z=e.size,D=z===void 0?150:z,k=e.useMillisecondPrecision,u=e.value;function te(){if(!E)return null;for(var f=[],d=1;d<=60;d+=1){var ue=N&&!(d%5);ue||f.push(m.jsx(q,{angle:d*6,length:j,name:"minute",width:G},"minute_".concat(d)))}return f}function re(){if(!N)return null;for(var f=[],d=1;d<=12;d+=1)f.push(m.jsx(q,{angle:d*30,length:g,name:"hour",width:p},"hour_".concat(d)));return f}function oe(){if(!Q)return null;for(var f=[],d=1;d<=12;d+=1)f.push(m.jsx(le,{angle:d*30,length:Pe(N&&g,E&&j,0),name:"number",number:r(b,d)},"number_".concat(d)));return f}function ie(){return m.jsxs("div",{className:"react-clock__face",children:[te(),re(),oe()]})}function ce(){var f=u?Y(u)*30+w(u)/2+y(u)/120+(k?M(u)/12e4:0):0;return m.jsx(S,{angle:f,length:i,name:"hour",oppositeLength:c,width:l})}function se(){if(!F)return null;var f=u?Y(u)*360+w(u)*6+y(u)/10+(k?M(u)/1e4:0):0;return m.jsx(S,{angle:f,length:R,name:"minute",oppositeLength:X,width:B})}function ae(){if(!$)return null;var f=u?w(u)*360+y(u)*6+(k?M(u)*.006:0):0;return m.jsx(S,{angle:f,length:Z,name:"second",oppositeLength:ee,width:ne})}return m.jsxs("time",{className:de("react-clock",n),dateTime:u instanceof Date?u.toLocaleTimeString("en",{hourCycle:"h23",hour:"2-digit",minute:F?"2-digit":void 0,second:$?"2-digit":void 0}):u||void 0,style:{width:D,height:D},children:[ie(),ce(),se(),ae()]})}export{Fe as Clock,Fe as default};
diff --git a/src/chrome/newtab/index.html b/src/chrome/newtab/index.html
index a78a04101..f6e1a52c4 100644
--- a/src/chrome/newtab/index.html
+++ b/src/chrome/newtab/index.html
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" sizes="16x16" href="../icons/icon16.png" />
<title>New Tab</title>
- <script type="module" crossorigin src="./assets/index-CdhTpdYh.js"></script>
+ <script type="module" crossorigin src="./assets/index-CEGyrx1j.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BmeAAROj.css">
</head>
<body>
diff --git a/src/firefox/newtab/assets/Settings-CuZKKPjT.js b/src/firefox/newtab/assets/Settings-CuZKKPjT.js
new file mode 100644
index 000000000..32da45bc5
--- /dev/null
+++ b/src/firefox/newtab/assets/Settings-CuZKKPjT.js
@@ -0,0 +1,53 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-WbVrDO2P.js","./index-CEGyrx1j.js","./index-BmeAAROj.css"])))=>i.map(i=>d[i]);
+import{g as Bs,a as ve,s as Pi,v as d,y as RA,r as Xi,E as hA,c as Jn,b as rr,d as b,j as i,B as vA,M as Ji,e as Wi,f as Yi,h as ds,S as at,R as m,i as fs,u as Qt,k as Zi,D as zi,l as hs,m as he,n as Wn,T as Yn,q as ws,o as qi,p as ps,t as Bt,w as un,x as dt,z as Cs,C as mA,A as KA,F as $i,G as Ao,H as eo,I as to,J as kr,K as Qs,L as nr,N as ar,O as Bn,P as ms,Q as vs,U as Us,V as ro,W as Fs,X as sr,Y as bs,Z as ys,_ as Es,$ as xs,a0 as Is,a1 as Hs,a2 as Ss,a3 as no,a4 as Ls,a5 as Zn,a6 as ao,a7 as ks,a8 as bt,a9 as so,aa as io,ab as yt,ac as zn,ad as oo,ae as qn,af as lo,ag as co,ah as go,ai as Ms,aj as uo,ak as Bo,al as fo,am as $n,an as ho,ao as wo,ap as po,aq as Co,ar as Qo,as as mo,at as vo,au as Uo,av as Fo,aw as bo,ax as yo,ay as Eo,az as On}from"./index-CEGyrx1j.js";const Ks="wbBackgroundsBackup";async function xo(){const e={};Object.keys(localStorage).forEach(n=>{e[n]=localStorage.getItem(n)});try{const n=await Bs(),a=n>0?await ve():[];a.length===n&&(e[Ks]=a.map(({id:s,...o})=>o))}catch(n){console.error("Could not include uploaded backgrounds in the backup:",n)}const A=new Date,t=`webbrain_newtab_settings_backup_${`${A.getFullYear()}-${(A.getMonth()+1).toString().padStart(2,"0")}-${A.getDate().toString().padStart(2,"0")}_${A.getHours().toString().padStart(2,"0")}-${A.getMinutes().toString().padStart(2,"0")}-${A.getSeconds().toString().padStart(2,"0")}`}.json`;Pi(e,t),d.stats.postEvent("tab","Settings exported")}async function Io(e,A=!1){let r,t;try{const s=JSON.parse(e);if(!s||typeof s!="object"||Array.isArray(s))throw new Error("settings file is not an object");({[Ks]:r,...t}=s);const o=So(t);if(o)throw new Error(`invalid settings: ${o}`)}catch(s){return console.error("Could not read the settings file:",s),RA(d.getMessage("toasts.error")),!1}let n=null;const a=new Map;try{Array.isArray(r)&&(n=await Lo(r)),Object.keys(t).forEach(s=>{a.has(s)||a.set(s,localStorage.getItem(s)),localStorage.setItem(s,t[s])})}catch(s){return console.error("Settings import failed, rolling back:",s),a.forEach((o,l)=>{try{o===null?localStorage.removeItem(l):localStorage.setItem(l,o)}catch{}}),n&&await n(),RA(d.getMessage("toasts.error")),!1}return RA(d.getMessage("toasts.imported")),A||d.stats.postEvent("tab","Settings imported"),Xi?setTimeout(()=>window.location.reload(),1200):hA.emit("settingsimported"),!0}const Et=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),ne=e=>typeof e=="string",Ho={applinks:e=>Et(e)&&ne(e.name)&&ne(e.url),backgroundExclude:ne,customEvents:e=>Et(e)&&ne(e.name)&&Number.isFinite(e.month)&&Number.isFinite(e.date),quicklinks:e=>Et(e)&&ne(e.name)&&ne(e.url),messages:ne,order:ne,todo:e=>Et(e)&&ne(e.value)};function So(e){for(const[A,r]of Object.entries(e))if(r!==null&&typeof r=="object")return`${A} is not a plain value`;for(const[A,r]of Object.entries(Ho)){if(!(A in e))continue;let t;try{t=JSON.parse(e[A])}catch{return`${A} is not valid JSON`}if(!Array.isArray(t))return`${A} is not a list`;if(!t.every(r))return`${A} has an entry of the wrong shape`}if("favourite"in e&&e.favourite!=="null")try{const A=JSON.parse(e.favourite);if(A!==null&&(typeof A!="object"||Array.isArray(A)))return"favourite is not an object"}catch{return"favourite is not valid JSON"}return null}const Aa=({id:e,...A})=>A;async function Lo(e){const A=e.filter(a=>a&&typeof a.url=="string").map(Aa),r=await Bs(),t=r>0?(await ve()).map(Aa):[];if(t.length!==r)throw new Error("current gallery could not be read");const n=async()=>{try{await Jn();for(const a of t)await rr(a)}catch(a){console.error("Rollback of the background gallery failed:",a)}};try{await Jn();for(const a of A)await rr(a)}catch(a){throw await n(),a}return n}function TA(e){const[A,r]=b.useState(localStorage.getItem(e.setting)==="true");b.useEffect(()=>{r(localStorage.getItem(e.setting)==="true")},[e.setting]);const t=()=>{const s=localStorage.getItem(e.setting)==="true";if(localStorage.setItem(e.setting,!s),r(!s),d.stats.postEvent("setting",`${e.name} ${A===!0?"enabled":"disabled"}`),hA.emit("toggle",e.setting),e.element&&!document.querySelector(e.element)){ds();return}hA.emit("refresh",e.category)},n=()=>i.jsx(vA,{type:"settings",onClick:t,icon:A?i.jsx(Ji,{}):i.jsx(Wi,{}),label:A?"Hide":"Show"}),a=()=>i.jsx(vA,{type:"settings",onClick:()=>window.open(`${d.constants.BUG_REPORT}?title=${encodeURIComponent(e.title)}`,"_blank"),icon:i.jsx(Yi,{}),label:d.getMessage("modals.main.settings.sections.header.report_issue")});return i.jsxs("div",{className:"modalHeader",children:[i.jsx("span",{className:"mainTitle",children:e.secondaryTitle||e.title}),i.jsxs("div",{className:"headerActions",children:[e.visibilityToggle&&i.jsx(n,{}),e.report!==!1&&i.jsx(a,{}),e.children]})]})}function rA(e){const A=`${e.final?"settingsRow settingsNoBorder":"settingsRow"} ${e.inactive?"preferencesInactive":""}`;return i.jsx("div",{className:A,children:e.children})}function nA(e){return i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:e.title}),i.jsx("span",{className:"subtitle",children:e.subtitle})]})}function cA(e){return i.jsx("div",{className:"action",children:e.children})}const ko=[{value:10,label:"0.1x"},{value:100,label:"1x"},{value:200,label:"2x"},{value:400,label:"4x"}],Mo=[{value:500,label:"0.5s"},{value:1e3,label:"1s"},{value:1500,label:"1.5s"},{value:2e3,label:"2s"},{value:2500,label:"2.5s"},{value:3e3,label:"3s"},{value:4e3,label:"4s"},{value:5e3,label:"5s"}],Ko=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],st={zoom:ko,toast:Mo,background:Ko},mt=({children:e,...A})=>{const[r,t]=b.useState(localStorage.getItem(A.setting)==="true");return b.useEffect(()=>{const n=a=>{a===A.setting&&t(localStorage.getItem(A.setting)==="true")};return hA.on("toggle",n),()=>hA.off("toggle",n)},[A.setting]),i.jsxs("div",{className:r?"preferences":"preferencesInactive",children:[A.zoomSetting&&i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.widget_zoom"),subtitle:d.getMessage("modals.main.settings.sections.header.size")}),i.jsx(cA,{children:i.jsx(at,{name:A.zoomSetting,min:"10",max:"400",default:"100",display:"%",marks:st.zoom,category:A.zoomCategory||A.category})})]}),e]})};function Rn({title:e,subtitle:A,icon:r,onClick:t,children:n}){return i.jsxs("div",{className:"moreSettings",onClick:t,children:[i.jsxs("div",{className:"left",children:[r,i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:e}),i.jsx("span",{className:"subtitle",children:A})]})]}),i.jsx("div",{className:"action",children:m.Children.count(n)===0?i.jsx(fs,{}):n})]})}function To({label:e,currentTab:A,onClick:r,navbarTab:t}){const n=Qt(),[a,s]=b.useState(!0);b.useEffect(()=>{s(localStorage.getItem("experimental")!=="false")},[]);const o=Zi(e,{getMessage:n}),l=zi.some(p=>n(p)===e),B=`${t?"navbar-item":"tab-list-item"}${A===e?` ${t?"navbar-item-active":"tab-list-active"}`:""}`;return e===n("modals.main.settings.sections.experimental.title")&&!a?i.jsx("hr",{}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{className:B,onClick:()=>r(e),children:[o&&i.jsx(o,{})," ",i.jsx("span",{children:e})]}),l&&i.jsx("hr",{})]})}const Do=b.memo(To),Oo=({isVisible:e,onHide:A})=>e?i.jsxs("div",{className:"reminder-info",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.reminder.title")}),i.jsx("span",{className:"closeModal",onClick:A,children:i.jsx(hs,{})})]}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.reminder.message")}),i.jsxs("button",{onClick:()=>window.location.reload(),children:[i.jsx(he,{}),d.getMessage("modals.main.error_boundary.refresh")]})]}):null;class Ro extends b.PureComponent{constructor(A){super(A),this.state={error:!1,errorData:"",showReport:!0}}static getDerivedStateFromError(A){return console.error(A),{error:!0,errorData:A}}reportError(){window.open(d.constants.BUG_REPORT,"_blank","noopener,noreferrer"),this.setState({showReport:!1})}render(){return this.state.error?i.jsx("div",{className:"emptyItems",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Wn,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.error_boundary.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.message")}),i.jsxs("div",{className:"buttonsRow",children:[this.state.showReport?i.jsx(vA,{type:"settings",icon:i.jsx(Wn,{}),label:d.getMessage("modals.main.error_boundary.report_error"),onClick:()=>this.reportError()}):i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.sent")}),i.jsx(vA,{type:"settings",icon:i.jsx(he,{}),label:d.getMessage("modals.main.error_boundary.refresh"),onClick:()=>window.location.reload()})]})]})}):this.props.children}}const No=({children:e,navbar:A=!1,currentTab:r,onSectionChange:t,resetToFirst:n,deepLinkData:a,navigationTrigger:s,sections:o})=>{const l=Qt(),g=(()=>{if(a?.section&&o){const E=o.find(h=>h.name===a.section);if(E)return{label:l(E.label),name:E.name}}return{label:e[0]?.props.label,name:e[0]?.props.name}})(),[B,u]=b.useState(g.label),[p,Q]=b.useState(g.name),[C,x]=b.useState(localStorage.getItem("showReminder")==="true"),U=b.useRef(null),y=(E,h)=>{h!==p&&d.stats.postEvent("tab",`Opened ${h}`),u(E),Q(h),U.current&&(U.current.scrollTop=0),t&&t(E,h)};b.useEffect(()=>{t&&B&&t(B,p)},[]),b.useEffect(()=>{if(o&&p){const E=o.find(h=>h.name===p);if(E){const h=l(E.label);u(h)}}},[l,o,p]),b.useEffect(()=>{if(s?.type==="settings-section"&&o){const E=o.find(h=>h.name===s.data);if(E){const h=l(E.label);u(h),Q(E.name),U.current&&(U.current.scrollTop=0),t?.(h,E.name,{fromHistory:!0})}}},[s,o,l]),b.useEffect(()=>{n&&(u(e[0]?.props.label),Q(e[0]?.props.name),U.current&&(U.current.scrollTop=0),t&&t(e[0]?.props.label,e[0]?.props.name))},[n]),b.useEffect(()=>{const E=()=>x(!0);return hA.on("reminder",E),()=>hA.off("reminder",E)},[]);const L=()=>{localStorage.setItem("showReminder","false"),x(!1)},S=r===Yn.SETTINGS||r===Yn.DISCOVER;return i.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},children:[S?i.jsxs("div",{className:"modalSidebar",children:[e.map((E,h)=>i.jsx(Do,{currentTab:B,label:E.props.label,onClick:I=>y(I,E.props.name),navbarTab:A},h)),i.jsx(Oo,{isVisible:C,onHide:L})]}):null,i.jsx("div",{className:"modalTabContent",ref:U,children:e.map((E,h)=>E.props.label!==B?null:i.jsx(Ro,{children:E.props.children},`error-boundary-${h}`))})]})};async function ir(e){const A=String(e??"").trim();try{return new URL(/^[a-z][a-z0-9+.-]*:/i.test(A)?A:`https://${A}`).hostname.replace(/^www\./i,"")||A}catch{return A}}function ft(e){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(e)}function or(e){let A=String(e??"").trim();if(!A)return null;const r=/^https?:\/\//i.exec(A);A=r?r[0].toLowerCase()+A.slice(r[0].length):`https://${A}`;try{if(!/^https?:$/.test(new URL(A).protocol))return null}catch{return null}return ft(A)?A:null}const _o=({item:e,deleteLink:A,startEditLink:r,draggable:t=!1,onDragStart:n,onDragOver:a,onDrop:s,onDragEnd:o,isDragOver:l=!1,isDragging:c=!1})=>{let g,B=null;if(localStorage.getItem("quicklinksnewtab")==="true"&&(g="_blank",B="noopener noreferrer"),localStorage.getItem("quicklinksText")==="true")return i.jsx("a",{className:"quicklinkstext",onContextMenu:C=>A(e.key,C),href:e.url,target:g,rel:B,draggable:!1,children:e.name});const p=e.icon||ws(e.url,e.name),Q=`messageMap ${c?"dragging":""} ${l?"drag-over":""}`;return i.jsxs("div",{className:Q,draggable:t,onDragStart:C=>n&&n(C,e.key),onDragOver:C=>a&&a(C,e.key),onDrop:C=>s&&s(C,e.key),onDragEnd:C=>o&&o(C),children:[i.jsx("div",{className:"dragHandle","aria-hidden":!0,children:i.jsx(qi,{})}),i.jsx("div",{className:"icon",children:i.jsx("img",{src:p,alt:e.name,draggable:!1,style:{height:"30px",width:"30px"}})}),i.jsxs("div",{className:"messageText",children:[i.jsx("div",{className:"title",children:e.name}),i.jsx("div",{className:"subtitle",children:i.jsx("a",{className:"quicklinknostyle",target:"_blank",rel:"noopener noreferrer",href:e.url,children:e.url})})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsx(vA,{type:"settings",onClick:()=>r(e),icon:i.jsx(ps,{}),label:d.getMessage("modals.main.settings.sections.quicklinks.edit")}),i.jsx(vA,{type:"settings",onClick:C=>A(e.key,C),icon:i.jsx(Bt,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]})};function Go({appsEnabled:e}){const A=Qt(),[r,t]=b.useState({newLink:!1,edit:!1,items:JSON.parse(localStorage.getItem("applinks")),urlError:"",iconError:"",editData:null}),n=async(l,c,g)=>{const B=JSON.parse(localStorage.getItem("applinks"));if(c=or(c),!c)return t(u=>({...u,urlError:A("widgets.quicklinks.url_error")}));if(g.length>0&&ft(g)===!1)return t(u=>({...u,iconError:A("widgets.quicklinks.icon_error")}));B.push({name:l||await ir(c),url:c,icon:g||"",key:Math.random().toString(36).substring(7)+1}),localStorage.setItem("applinks",JSON.stringify(B)),t({newLink:!1,edit:!1,items:B,urlError:"",iconError:""}),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link add")},a=l=>{t(c=>({...c,edit:!0,editData:l}))},s=async(l,c,g,B)=>{const u=JSON.parse(localStorage.getItem("applinks")),p=u.find(Q=>Q.key===l.key);if(p){if(g=or(g),!g)return t(Q=>({...Q,urlError:A("widgets.quicklinks.url_error")}));if(B.length>0&&ft(B)===!1)return t(Q=>({...Q,iconError:A("widgets.quicklinks.icon_error")}));p.name=c||await ir(g),p.url=g,p.icon=B||"",localStorage.setItem("applinks",JSON.stringify(u)),t(Q=>({...Q,items:u,edit:!1,newLink:!1})),hA.emit("refresh","navbar")}},o=(l,c)=>{c.preventDefault();const g=JSON.parse(localStorage.getItem("applinks")).filter(B=>B.key!==l);localStorage.setItem("applinks",JSON.stringify(g)),t(B=>({...B,items:g})),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link delete")};return i.jsxs(i.Fragment,{children:[i.jsxs(rA,{final:!0,inactive:!e,children:[i.jsx(nA,{title:A("widgets.navbar.apps.title"),subtitle:A("modals.main.settings.sections.appearance.navbar.apps_subtitle")}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>t(l=>({...l,newLink:!0})),icon:i.jsx(un,{}),label:A("modals.main.settings.sections.quicklinks.add_link")})})]}),i.jsx("div",{className:"messagesContainer",children:r.items.map((l,c)=>i.jsx(_o,{item:l,startEditLink:()=>a(l),deleteLink:(g,B)=>o(g,B)},c))}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>t(l=>({...l,newLink:!1,edit:!1})),isOpen:r.edit||r.newLink,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Cs,{urlError:r.urlError,iconError:r.iconError,addLink:(l,c,g)=>n(l,c,g),editLink:(l,c,g,B)=>s(l,c,g,B),edit:r.edit,editData:r.editData,closeModal:()=>t(l=>({...l,newLink:!1,edit:!1}))})})]})}function jo(){const e=Qt(),[A,r]=b.useState(localStorage.getItem("refresh")==="true"),[t,n]=b.useState(localStorage.getItem("appsEnabled")==="true"||!1),a="modals.main.settings.sections.appearance.navbar",s=()=>i.jsxs(rA,{final:!1,children:[i.jsx(nA,{title:e("modals.main.settings.additional_settings"),subtitle:e("modals.main.settings.sections.appearance.navbar.additional")}),i.jsx(cA,{children:i.jsx(mA,{name:"navbarHover",text:e(`${a}.hover`),category:"navbar"})})]}),o=()=>{const c=({icon:B,messageKey:u,settingName:p})=>{const[Q,C]=b.useState(localStorage.getItem(p)!=="true"),x=()=>{localStorage.setItem(p,Q),p==="refresh"?r(!A):p==="appsEnabled"&&n(!t),C(!Q),d.stats.postEvent("setting",`${p} ${Q?"disabled":"enabled"}`),hA.emit("refresh","navbar")};return i.jsxs("button",{onClick:x,className:`navbarButtonOption ${Q===!0?"disabled":""}`,children:[B,i.jsx("span",{className:"subtitle",children:e(u)})]})},g=[{icon:i.jsx($i,{}),settingName:"view",messageKey:"modals.main.settings.sections.background.buttons.view"},{icon:i.jsx(Ao,{}),settingName:"notesEnabled",messageKey:`${a}.notes`},{icon:i.jsx(eo,{}),settingName:"todoEnabled",messageKey:"widgets.navbar.todo.title"},{icon:i.jsx(he,{}),settingName:"refresh",messageKey:`${a}.refresh`},{icon:i.jsx(to,{}),settingName:"appsEnabled",messageKey:"widgets.navbar.apps.title"}];return i.jsxs(rA,{children:[i.jsx(nA,{title:e("modals.main.settings.sections.appearance.navbar.widgets")}),i.jsx(cA,{children:i.jsx("div",{className:"navbarButtonOptions",children:g.map((B,u)=>i.jsx(c,{...B},u))})})]})},l=()=>i.jsxs(rA,{final:!1,inactive:!A,children:[i.jsx(nA,{title:e(`${a}.refresh`),subtitle:e("modals.main.settings.sections.appearance.navbar.refresh_subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"refreshOption",category:"navbar",items:[{value:"page",text:e("modals.main.settings.sections.appearance.navbar.refresh_options.page")},{value:"background",text:e("modals.main.settings.sections.background.title")}]})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:e(`${a}.title`),setting:"navbar",category:"widgets",zoomSetting:"zoomNavbar",zoomCategory:"navbar"}),i.jsx(s,{}),i.jsx(o,{}),i.jsx(l,{}),i.jsx(Go,{appsEnabled:t})]})}const Vo=b.memo(jo),ea=[{id:"widgets.greeting.christmas",name:"Merry Christmas",month:12,date:25},{id:"widgets.greeting.newyear",name:"Happy New Year",month:1,date:1},{id:"widgets.greeting.halloween",name:"Happy Halloween",month:10,date:31}],Po=e=>{const[A,r,t]=String(e).split("-").map(Number);return A&&r&&t?new Date(A,r-1,t):new Date},Xo=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,Jo=({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(JSON.parse(localStorage.getItem("customEvents"))||[]),[a,s]=b.useState(()=>{const h=localStorage.getItem("birthday");return h?new Date(h):new Date}),[o,l]=b.useState(localStorage.getItem("birthdayenabled")==="true"?"preferences":"preferencesInactive"),[c,g]=b.useState(localStorage.getItem("events")==="true"?"preferences":"preferencesInactive"),B=h=>{const I=h.target.value?Po(h.target.value):new Date;localStorage.setItem("birthday",I),s(I)},u="modals.main.settings.sections.greeting",p=()=>{const h=JSON.parse(localStorage.getItem("customEvents"))||[],I={id:"widgets.greeting.halloween",name:"",month:1,date:1},M=[...h,I];h.push(I),localStorage.setItem("customEvents",JSON.stringify(h)),n(M)},Q=h=>{const I=t.filter((M,k)=>k!==h);localStorage.setItem("customEvents",JSON.stringify(I)),n(I)},C=()=>{localStorage.setItem("customEvents",JSON.stringify(ea)),n(ea),RA(d.getMessage("toasts.reset"))},x=(h,I)=>{n(k=>{const R=[...k];return R[h]=I,R});const M=JSON.parse(localStorage.getItem("customEvents")||"[]");M[h]=I,localStorage.setItem("customEvents",JSON.stringify(M))},U=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${u}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"defaultGreetingMessage",text:d.getMessage(`${u}.default`),category:"greeting"}),i.jsx(ar,{title:d.getMessage(`${u}.name`),name:"greetingName",category:"greeting"})]})]}),y=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.birthday`),subtitle:d.getMessage("modals.main.settings.sections.greeting.birthday_subtitle")}),i.jsxs(cA,{children:[i.jsx(Qs,{name:"birthdayenabled",text:d.getMessage("modals.main.settings.enabled"),category:"greeting",onChange:h=>{l(h?"preferences":"preferencesInactive")}}),i.jsxs("div",{className:o,children:[i.jsx(mA,{name:"birthdayage",text:d.getMessage(`${u}.birthday_age`),category:"greeting"}),i.jsx("p",{style:{marginRight:"auto"},children:d.getMessage(`${u}.birthday_date`)}),i.jsx("input",{type:"date",onChange:B,value:Xo(a),required:!0})]})]})]}),L=()=>i.jsxs("div",{className:c,children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${u}.custom`)}),i.jsx(cA,{children:i.jsxs("div",{className:"headerActions",children:[i.jsx(vA,{type:"settings",onClick:C,icon:i.jsx(he,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(nr,{}),label:d.getMessage("widgets.quicklinks.add")})]})})]}),i.jsx("div",{className:"messagesContainer",children:t.map((h,I)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(kr,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.event_name`)}),i.jsx("input",{type:"text",className:"text-field-input",value:h.name,placeholder:d.getMessage(`${u}.event_name`),onChange:M=>{const k={...h,name:M.target.value};x(I,k)}})]})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsxs("div",{className:"eventDateSelection",children:[i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.day`),":"]}),i.jsx("input",{id:"day",type:"number",min:"1",max:"31",value:h.date,onChange:M=>{const k=parseInt(M.target.value,10);if(k>=1&&k<=31){const R={...h,date:k};x(I,R)}}}),i.jsx("hr",{}),i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.month`),":"]}),i.jsx("input",{id:"month",type:"number",min:"1",max:"12",value:h.month,onChange:M=>{const k=parseInt(M.target.value,10);if(k>=1&&k<=12){const R={...h,month:k};x(I,R)}}})]}),i.jsx(vA,{type:"settings",onClick:()=>Q(I),icon:i.jsx(Bt,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]},I))}),t.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(kr,{}),i.jsx("span",{className:"title",children:d.getMessage(`${u}.no_events`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.no_events_description`)}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(nr,{}),label:d.getMessage(`${u}.add_event`)})]})})]}),S=e==="events";let E;return S?E=i.jsx(TA,{title:d.getMessage(`${u}.title`),secondaryTitle:d.getMessage(`${u}.events.title`),goBack:()=>A(null,r),report:!1}):E=i.jsx(TA,{title:d.getMessage(`${u}.title`),setting:"greeting",category:"widgets",zoomSetting:"zoomGreeting",visibilityToggle:!0}),i.jsxs(i.Fragment,{children:[E,S?i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.enable_events`)}),i.jsx(cA,{children:i.jsx(mA,{name:"events",text:d.getMessage(`${u}.events`),category:"greeting",onChange:h=>{g(h?"preferences":"preferencesInactive")}})})]}),y(),L()]}):i.jsxs(mt,{setting:"greeting",zoomSetting:"zoomGreeting",category:"greeting",visibilityToggle:!0,children:[i.jsx(U,{}),i.jsx(Rn,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.events_description`),onClick:()=>A("events",r),icon:i.jsx(kr,{})})]})]})},Wo=()=>{const[e,A]=b.useState(localStorage.getItem("timeType")||"digital"),[r,t]=b.useState(localStorage.getItem("hourColour")||"#ffffff"),[n,a]=b.useState(localStorage.getItem("minuteColour")||"#ffffff"),[s,o]=b.useState(localStorage.getItem("secondColour")||"#ffffff"),l="modals.main.settings.sections.time",c=(C,x)=>{const U=x.target.value;C==="hourColour"?t(U):C==="minuteColour"?a(U):C==="secondColour"&&o(U),localStorage.setItem(C,U)},g=()=>i.jsxs(rA,{final:e==="percentageComplete",children:[i.jsx(nA,{title:d.getMessage(`${l}.type`),subtitle:d.getMessage(`${l}.type_subtitle`)}),i.jsx(cA,{children:i.jsx(KA,{name:"timeType",onChange:C=>A(C),category:"clock",items:[{value:"digital",text:d.getMessage(`${l}.digital.title`)},{value:"analogue",text:d.getMessage(`${l}.analogue.title`)},{value:"percentageComplete",text:d.getMessage(`${l}.percentage_complete`)},{value:"verticalClock",text:d.getMessage(`${l}.vertical_clock.title`)}]})})]}),B=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.digital.title`),subtitle:d.getMessage(`${l}.digital.subtitle`)}),i.jsxs(cA,{children:[i.jsx(Bn,{name:"timeformat",options:[{name:d.getMessage(`${l}.digital.twentyfourhour`),value:"twentyfourhour"},{name:d.getMessage(`${l}.digital.twelvehour`),value:"twelvehour"}],smallTitle:!0,category:"clock"}),i.jsx(mA,{name:"seconds",text:d.getMessage(`${l}.digital.seconds`),category:"clock"}),i.jsx(mA,{name:"zero",text:d.getMessage(`${l}.digital.zero`),category:"clock"})]})]}),u=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.analogue.title`),subtitle:d.getMessage(`${l}.analogue.subtitle`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"secondHand",text:d.getMessage(`${l}.analogue.second_hand`),category:"clock"}),i.jsx(mA,{name:"minuteHand",text:d.getMessage(`${l}.analogue.minute_hand`),category:"clock"}),i.jsx(mA,{name:"hourHand",text:d.getMessage(`${l}.analogue.hour_hand`),category:"clock"}),i.jsx(mA,{name:"hourMarks",text:d.getMessage(`${l}.analogue.hour_marks`),category:"clock"}),i.jsx(mA,{name:"minuteMarks",text:d.getMessage(`${l}.analogue.minute_marks`),category:"clock"}),i.jsx(mA,{name:"roundClock",text:d.getMessage(`${l}.analogue.round_clock`),category:"clock"})]})]}),p=i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_hour_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"hourColour",className:"minuteColour",onChange:C=>c("hourColour",C),value:r}),i.jsx("label",{htmlFor:"hourColour",className:"customBackgroundHex",children:r})]}),i.jsxs("span",{className:"link",onClick:()=>c("hourColour",{target:{value:"#ffffff"}}),children:[i.jsx(he,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_minute_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"minuteColour",className:"minuteColour",onChange:C=>c("minuteColour",C),value:n}),i.jsx("label",{htmlFor:"minuteColour",className:"customBackgroundHex",children:n})]}),i.jsxs("span",{className:"link",onClick:()=>c("minuteColour",{target:{value:"#ffffff"}}),children:[i.jsx(he,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_second_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"secondColour",className:"secondColour",onChange:C=>c("secondColour",C),value:s}),i.jsx("label",{htmlFor:"secondColour",className:"customBackgroundHex",children:s})]}),i.jsxs("span",{className:"link",onClick:()=>c("secondColour",{target:{value:"#ffffff"}}),children:[i.jsx(he,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),B]}),Q=()=>{switch(e){case"digital":return B;case"analogue":return u;case"verticalClock":return p;default:return null}};return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${l}.title`),setting:"time",category:"widgets",zoomSetting:"zoomClock",visibilityToggle:!0}),i.jsxs(mt,{setting:"time",zoomSetting:"zoomClock",category:"clock",visibilityToggle:!0,children:[i.jsx(g,{}),Q()]})]})};function Yo(){const[e,A]=b.useState(localStorage.getItem("dateType")||"long"),r=["DMY","MDY","YMD"],t=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.long_format"),name:"longFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(mA,{name:"dayofweek",text:d.getMessage("modals.main.settings.sections.date.day_of_week"),category:"date"}),i.jsx(mA,{name:"datenth",text:d.getMessage("modals.main.settings.sections.date.datenth"),category:"date"})]}),n=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_format"),name:"dateFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_separator.title"),name:"shortFormat",category:"date",items:[{value:"dash",text:d.getMessage("modals.main.settings.sections.date.short_separator.dash")},{value:"dots",text:d.getMessage("modals.main.settings.sections.date.short_separator.dots")},{value:"gaps",text:d.getMessage("modals.main.settings.sections.date.short_separator.gaps")},{value:"slashes",text:d.getMessage("modals.main.settings.sections.date.short_separator.slashes")}]})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.date.title"),setting:"date",category:"widgets",zoomSetting:"zoomDate",visibilityToggle:!0}),i.jsxs(mt,{setting:"date",visibilityToggle:!0,category:"date",zoomSetting:"zoomDate",children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.type"),subtitle:d.getMessage("modals.main.settings.sections.date.type.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"dateType",onChange:a=>{A(a),localStorage.setItem("dateType",a)},category:"date",items:[{value:"long",text:d.getMessage("modals.main.settings.sections.date.type.long")},{value:"short",text:d.getMessage("modals.main.settings.sections.date.type.short")}]})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:e==="long"?d.getMessage("modals.main.settings.sections.date.type.long"):d.getMessage("modals.main.settings.sections.date.type.short"),subtitle:d.getMessage("modals.main.settings.sections.date.type_settings")}),i.jsxs(cA,{children:[e==="long"?t:n,i.jsx(mA,{name:"weeknumber",text:d.getMessage("modals.main.settings.sections.date.week_number"),category:"date"}),i.jsx(mA,{name:"datezero",text:d.getMessage("modals.main.settings.sections.time.digital.zero"),category:"date"})]})]})]})]})}const Zo=()=>i.jsx("div",{className:"quicklink-drag-handle","aria-hidden":"true",children:i.jsx(ms,{})}),zo=({value:e,enabled:A,startEditLink:r,deleteLink:t})=>{const{attributes:n,listeners:a,setNodeRef:s,transform:o,transition:l,isDragging:c}=vs({id:e.key,disabled:!A}),g={transform:Us.Transform.toString(o),transition:l,opacity:c?.5:1},B=u=>u.icon||ws(u.url,u.name);return i.jsxs("div",{ref:s,style:g,...n,...a,className:`quicklink-item ${A?"":"disabled"}`,role:"listitem",children:[i.jsx(Zo,{}),i.jsx("div",{className:"quicklink-icon",children:i.jsx("img",{src:B(e),alt:e.name,draggable:!1})}),i.jsxs("div",{className:"quicklink-content",children:[i.jsx("div",{className:"quicklink-name",children:e.name}),i.jsx("div",{className:"quicklink-url",children:e.url})]}),i.jsxs("div",{className:"quicklink-actions",children:[i.jsxs("button",{className:"quicklink-action-btn",onClick:u=>{A&&(u.stopPropagation(),r(e))},title:"Edit",disabled:!A,"aria-disabled":!A,children:[i.jsx(ps,{}),i.jsx("span",{children:"Edit"})]}),i.jsxs("button",{className:"quicklink-action-btn quicklink-remove-btn",onClick:u=>{A&&(u.stopPropagation(),t(e.key,u))},title:"Remove",disabled:!A,"aria-disabled":!A,children:[i.jsx(ro,{}),i.jsx("span",{children:"Remove"})]})]})]})},qo=({items:e,enabled:A,onDragEnd:r,startEditLink:t,deleteLink:n})=>{const a=Fs(sr(Es,{activationConstraint:{distance:6}}),sr(ys,{coordinateGetter:bs}));return i.jsx(xs,{sensors:a,collisionDetection:Is,onDragEnd:r,children:i.jsx(Hs,{items:e.map(s=>s.key),strategy:Ss,children:i.jsx("div",{className:"quicklinks-list",role:"list",children:e.map(s=>i.jsx(zo,{value:s,enabled:A,startEditLink:t,deleteLink:n},s.key))})})})},Xe=()=>{try{const e=localStorage.getItem("quicklinks");if(!e)return[];const A=JSON.parse(e);return Array.isArray(A)?A:[]}catch(e){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",e),[]}},$o=()=>{const[e,A]=b.useState(Xe()),[r,t]=b.useState(!1),[n,a]=b.useState(""),[s,o]=b.useState(""),[l,c]=b.useState(!1),[g,B]=b.useState(""),[u,p]=b.useState(localStorage.getItem("quicklinksenabled")!=="false"),Q=b.useRef(),C=b.useRef(!1),x=R=>{if(!Q||!Q.current)return;const O=Q.current;O.classList.toggle("disabled",!R),R?O.removeAttribute("aria-hidden"):O.setAttribute("aria-hidden","true")},U=(R,O)=>{O.preventDefault();const D=Xe().filter(z=>z.key!==R);C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),A(D),d.stats.postEvent("feature","Quicklink delete"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},y=async(R,O,Z)=>{const D=Xe();if(O=or(O),!O){a(d.getMessage("widgets.quicklinks.url_error"));return}if(Z.length>0&&ft(Z)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}const z={name:R||await ir(O),url:O,icon:Z||"",key:Date.now().toString()+Math.random().toString(36).substring(2)};D.push(z),C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),A(D),t(!1),a(""),o(""),d.stats.postEvent("feature","Quicklink add"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},L=R=>{c(!0),B(R),t(!0)},S=async(R,O,Z,D)=>{const z=Xe(),eA=z.find(tA=>tA.key===R.key);if(eA){if(Z=or(Z),!Z){a(d.getMessage("widgets.quicklinks.url_error"));return}if(D.length>0&&ft(D)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}eA.name=O||await ir(Z),eA.url=Z,eA.icon=D||"",C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(z)),A(z),t(!1),c(!1),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)}},E=R=>{const{active:O,over:Z}=R;if(!Z||!u||O.id===Z.id)return;const D=e.findIndex(tA=>tA.key===O.id),z=e.findIndex(tA=>tA.key===Z.id);if(D===-1||z===-1)return;const eA=Ls(e,D,z);C.current=!0,A(eA),localStorage.setItem("quicklinks",JSON.stringify(eA)),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)};b.useEffect(()=>{x(u)},[u]),b.useEffect(()=>{x(u);const R=O=>{if(O!=="quicklinks"||C.current)return;const Z=localStorage.getItem("quicklinksenabled")!=="false",D=Xe(),z=e||[],eA=z.length===D.length&&z.every(tA=>D.some(AA=>AA.key===tA.key));(Z!==u||!eA)&&(x(Z),A(D),p(Z))};return hA.on("refresh",R),()=>{hA.off("refresh",R)}},[u,e]);const h="modals.main.settings.sections.quicklinks",I=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${h}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"quicklinksnewtab",text:d.getMessage(`${h}.open_new`),category:"quicklinks"}),i.jsx(mA,{name:"quicklinkstooltip",text:d.getMessage(`${h}.tooltip`),category:"quicklinks"})]})]}),M=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${h}.styling`),subtitle:d.getMessage("modals.main.settings.sections.quicklinks.styling_description")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage(`${h}.style`),name:"quickLinksStyle",category:"quicklinks",items:[{value:"icon",text:d.getMessage(`${h}.options.icon`)},{value:"text",text:d.getMessage(`${h}.options.text_only`)},{value:"metro",text:d.getMessage(`${h}.options.metro`)}]})})]}),k=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${h}.title`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>u&&t(!0),icon:i.jsx(un,{}),label:d.getMessage(`${h}.add_link`),disabled:!u})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${h}.title`),setting:"quicklinksenabled",category:"widgets",zoomSetting:"zoomQuicklinks",visibilityToggle:!0}),i.jsxs(mt,{setting:"quicklinksenabled",category:"quicklinks",visibilityToggle:!0,zoomSetting:"zoomQuicklinks",children:[i.jsx(I,{}),i.jsx(M,{}),i.jsx(k,{}),e.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(no,{}),i.jsx("span",{className:"title",children:d.getMessage(`${h}.no_quicklinks`)}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.message.add_some")}),i.jsx(vA,{type:"settings",onClick:()=>t(!0),icon:i.jsx(un,{}),label:d.getMessage(`${h}.add_link`)})]})})]}),i.jsx("div",{className:`quicklinks-container ${u?"":"disabled"}`,ref:Q,"aria-hidden":!u,children:i.jsx("div",{className:`messagesContainer ${u?"":"disabled"}`,children:i.jsx(qo,{items:e,enabled:u,onDragEnd:E,startEditLink:R=>L(R),deleteLink:(R,O)=>U(R,O)})})}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a(""),o(""),c(!1),B("")},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Cs,{urlError:n,iconError:s,addLink:(R,O,Z)=>y(R,O,Z),editLink:(R,O,Z,D)=>S(R,O,Z,D),edit:l,editData:g,closeModal:()=>{t(!1),a(""),o(""),c(!1)}})})]})},Al=()=>{const[e,A]=b.useState(JSON.parse(localStorage.getItem("messages"))||[]),r=(a,s)=>{const o=[...e];a==="add"?o.push(""):o.splice(s,1),A(o),localStorage.setItem("messages",JSON.stringify(o)),hA.emit("refresh","message")},t=(a,s,o)=>{const l=a.target.value,c=[...e];c[o]=l,A(c),localStorage.setItem("messages",JSON.stringify(c)),ds()},n="modals.main.settings.sections.message";return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${n}.title`),setting:"message",category:"widgets",zoomSetting:"zoomMessage",visibilityToggle:!0}),i.jsxs(mt,{setting:"message",visibilityToggle:!0,category:"message",zoomSetting:"zoomMessage",children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${n}.messages`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(nr,{}),label:d.getMessage(`${n}.add`)})})]}),i.jsx("div",{className:"messagesContainer",children:e.map((a,s)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(Zn,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.title`)}),i.jsx(ao,{value:e[s],placeholder:d.getMessage("modals.main.settings.sections.message.content"),onChange:o=>t(o,!0,s),minRows:2})]})]}),i.jsx("div",{children:i.jsx("div",{className:"messageAction",children:i.jsx(vA,{type:"settings",onClick:()=>r("remove",s),icon:i.jsx(Bt,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})})})]},s))}),e.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Zn,{}),i.jsx("span",{className:"title",children:d.getMessage(`${n}.no_messages`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.add_some`)}),i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(nr,{}),label:d.getMessage(`${n}.add`)})]})})]})]})};var Mr={exports:{}},ta;function el(){return ta||(ta=1,(function(e){(function(A){var r=/^\s+/,t=/\s+$/,n=0,a=A.round,s=A.min,o=A.max,l=A.random;function c(f,v){if(f=f||"",v=v||{},f instanceof c)return f;if(!(this instanceof c))return new c(f,v);var w=g(f);this._originalInput=f,this._r=w.r,this._g=w.g,this._b=w.b,this._a=w.a,this._roundA=a(100*this._a)/100,this._format=v.format||w.format,this._gradientType=v.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=w.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var f=this.toRgb();return(f.r*299+f.g*587+f.b*114)/1e3},getLuminance:function(){var f=this.toRgb(),v,w,K,W,P,oA;return v=f.r/255,w=f.g/255,K=f.b/255,v<=.03928?W=v/12.92:W=A.pow((v+.055)/1.055,2.4),w<=.03928?P=w/12.92:P=A.pow((w+.055)/1.055,2.4),K<=.03928?oA=K/12.92:oA=A.pow((K+.055)/1.055,2.4),.2126*W+.7152*P+.0722*oA},setAlpha:function(f){return this._a=aA(f),this._roundA=a(100*this._a)/100,this},toHsv:function(){var f=Q(this._r,this._g,this._b);return{h:f.h*360,s:f.s,v:f.v,a:this._a}},toHsvString:function(){var f=Q(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.v*100);return this._a==1?"hsv("+v+", "+w+"%, "+K+"%)":"hsva("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var f=u(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=u(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.l*100);return this._a==1?"hsl("+v+", "+w+"%, "+K+"%)":"hsla("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHex:function(f){return x(this._r,this._g,this._b,f)},toHexString:function(f){return"#"+this.toHex(f)},toHex8:function(f){return U(this._r,this._g,this._b,this._a,f)},toHex8String:function(f){return"#"+this.toHex8(f)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(q(this._r,255)*100)+"%",g:a(q(this._g,255)*100)+"%",b:a(q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%)":"rgba("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:AA[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var v="#"+y(this._r,this._g,this._b,this._a),w=v,K=this._gradientType?"GradientType = 1, ":"";if(f){var W=c(f);w="#"+y(W._r,W._g,W._b,W._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+v+",endColorstr="+w+")"},toString:function(f){var v=!!f;f=f||this._format;var w=!1,K=this._a<1&&this._a>=0,W=!v&&K&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return W?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(w=this.toRgbString()),f==="prgb"&&(w=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(w=this.toHexString()),f==="hex3"&&(w=this.toHexString(!0)),f==="hex4"&&(w=this.toHex8String(!0)),f==="hex8"&&(w=this.toHex8String()),f==="name"&&(w=this.toName()),f==="hsl"&&(w=this.toHslString()),f==="hsv"&&(w=this.toHsvString()),w||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(f,v){var w=f.apply(null,[this].concat([].slice.call(v)));return this._r=w._r,this._g=w._g,this._b=w._b,this.setAlpha(w._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(L,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(f,v){return f.apply(null,[this].concat([].slice.call(v)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(eA,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(Z,arguments)}},c.fromRatio=function(f,v){if(typeof f=="object"){var w={};for(var K in f)f.hasOwnProperty(K)&&(K==="a"?w[K]=f[K]:w[K]=F(f[K]));f=w}return c(f,v)};function g(f){var v={r:0,g:0,b:0},w=1,K=null,W=null,P=null,oA=!1,fA=!1;return typeof f=="string"&&(f=$(f)),typeof f=="object"&&(J(f.r)&&J(f.g)&&J(f.b)?(v=B(f.r,f.g,f.b),oA=!0,fA=String(f.r).substr(-1)==="%"?"prgb":"rgb"):J(f.h)&&J(f.s)&&J(f.v)?(K=F(f.s),W=F(f.v),v=C(f.h,K,W),oA=!0,fA="hsv"):J(f.h)&&J(f.s)&&J(f.l)&&(K=F(f.s),P=F(f.l),v=p(f.h,K,P),oA=!0,fA="hsl"),f.hasOwnProperty("a")&&(w=f.a)),w=aA(w),{ok:oA,format:f.format||fA,r:s(255,o(v.r,0)),g:s(255,o(v.g,0)),b:s(255,o(v.b,0)),a:w}}function B(f,v,w){return{r:q(f,255)*255,g:q(v,255)*255,b:q(w,255)*255}}function u(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),P,oA,fA=(K+W)/2;if(K==W)P=oA=0;else{var UA=K-W;switch(oA=fA>.5?UA/(2-K-W):UA/(K+W),K){case f:P=(v-w)/UA+(v<w?6:0);break;case v:P=(w-f)/UA+2;break;case w:P=(f-v)/UA+4;break}P/=6}return{h:P,s:oA,l:fA}}function p(f,v,w){var K,W,P;f=q(f,360),v=q(v,100),w=q(w,100);function oA(jA,Pe,YA){return YA<0&&(YA+=1),YA>1&&(YA-=1),YA<1/6?jA+(Pe-jA)*6*YA:YA<1/2?Pe:YA<2/3?jA+(Pe-jA)*(2/3-YA)*6:jA}if(v===0)K=W=P=w;else{var fA=w<.5?w*(1+v):w+v-w*v,UA=2*w-fA;K=oA(UA,fA,f+1/3),W=oA(UA,fA,f),P=oA(UA,fA,f-1/3)}return{r:K*255,g:W*255,b:P*255}}function Q(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),P,oA,fA=K,UA=K-W;if(oA=K===0?0:UA/K,K==W)P=0;else{switch(K){case f:P=(v-w)/UA+(v<w?6:0);break;case v:P=(w-f)/UA+2;break;case w:P=(f-v)/UA+4;break}P/=6}return{h:P,s:oA,v:fA}}function C(f,v,w){f=q(f,360)*6,v=q(v,100),w=q(w,100);var K=A.floor(f),W=f-K,P=w*(1-v),oA=w*(1-W*v),fA=w*(1-(1-W)*v),UA=K%6,jA=[w,oA,P,P,fA,w][UA],Pe=[fA,w,w,oA,P,P][UA],YA=[P,P,fA,w,w,oA][UA];return{r:jA*255,g:Pe*255,b:YA*255}}function x(f,v,w,K){var W=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return K&&W[0].charAt(0)==W[0].charAt(1)&&W[1].charAt(0)==W[1].charAt(1)&&W[2].charAt(0)==W[2].charAt(1)?W[0].charAt(0)+W[1].charAt(0)+W[2].charAt(0):W.join("")}function U(f,v,w,K,W){var P=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16)),_(N(K))];return W&&P[0].charAt(0)==P[0].charAt(1)&&P[1].charAt(0)==P[1].charAt(1)&&P[2].charAt(0)==P[2].charAt(1)&&P[3].charAt(0)==P[3].charAt(1)?P[0].charAt(0)+P[1].charAt(0)+P[2].charAt(0)+P[3].charAt(0):P.join("")}function y(f,v,w,K){var W=[_(N(K)),_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return W.join("")}c.equals=function(f,v){return!f||!v?!1:c(f).toRgbString()==c(v).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})};function L(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s-=v/100,w.s=lA(w.s),c(w)}function S(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s+=v/100,w.s=lA(w.s),c(w)}function E(f){return c(f).desaturate(100)}function h(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l+=v/100,w.l=lA(w.l),c(w)}function I(f,v){v=v===0?0:v||10;var w=c(f).toRgb();return w.r=o(0,s(255,w.r-a(255*-(v/100)))),w.g=o(0,s(255,w.g-a(255*-(v/100)))),w.b=o(0,s(255,w.b-a(255*-(v/100)))),c(w)}function M(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l-=v/100,w.l=lA(w.l),c(w)}function k(f,v){var w=c(f).toHsl(),K=(w.h+v)%360;return w.h=K<0?360+K:K,c(w)}function R(f){var v=c(f).toHsl();return v.h=(v.h+180)%360,c(v)}function O(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+120)%360,s:v.s,l:v.l}),c({h:(w+240)%360,s:v.s,l:v.l})]}function Z(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+90)%360,s:v.s,l:v.l}),c({h:(w+180)%360,s:v.s,l:v.l}),c({h:(w+270)%360,s:v.s,l:v.l})]}function D(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+72)%360,s:v.s,l:v.l}),c({h:(w+216)%360,s:v.s,l:v.l})]}function z(f,v,w){v=v||6,w=w||30;var K=c(f).toHsl(),W=360/w,P=[c(f)];for(K.h=(K.h-(W*v>>1)+720)%360;--v;)K.h=(K.h+W)%360,P.push(c(K));return P}function eA(f,v){v=v||6;for(var w=c(f).toHsv(),K=w.h,W=w.s,P=w.v,oA=[],fA=1/v;v--;)oA.push(c({h:K,s:W,v:P})),P=(P+fA)%1;return oA}c.mix=function(f,v,w){w=w===0?0:w||50;var K=c(f).toRgb(),W=c(v).toRgb(),P=w/100,oA={r:(W.r-K.r)*P+K.r,g:(W.g-K.g)*P+K.g,b:(W.b-K.b)*P+K.b,a:(W.a-K.a)*P+K.a};return c(oA)},c.readability=function(f,v){var w=c(f),K=c(v);return(A.max(w.getLuminance(),K.getLuminance())+.05)/(A.min(w.getLuminance(),K.getLuminance())+.05)},c.isReadable=function(f,v,w){var K=c.readability(f,v),W,P;switch(P=!1,W=pA(w),W.level+W.size){case"AAsmall":case"AAAlarge":P=K>=4.5;break;case"AAlarge":P=K>=3;break;case"AAAsmall":P=K>=7;break}return P},c.mostReadable=function(f,v,w){var K=null,W=0,P,oA,fA,UA;w=w||{},oA=w.includeFallbackColors,fA=w.level,UA=w.size;for(var jA=0;jA<v.length;jA++)P=c.readability(f,v[jA]),P>W&&(W=P,K=c(v[jA]));return c.isReadable(f,K,{level:fA,size:UA})||!oA?K:(w.includeFallbackColors=!1,c.mostReadable(f,["#fff","#000"],w))};var tA=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},AA=c.hexNames=dA(tA);function dA(f){var v={};for(var w in f)f.hasOwnProperty(w)&&(v[f[w]]=w);return v}function aA(f){return f=parseFloat(f),(isNaN(f)||f<0||f>1)&&(f=1),f}function q(f,v){H(f)&&(f="100%");var w=j(f);return f=s(v,o(0,parseFloat(f))),w&&(f=parseInt(f*v,10)/100),A.abs(f-v)<1e-6?1:f%v/parseFloat(v)}function lA(f){return s(1,o(0,f))}function sA(f){return parseInt(f,16)}function H(f){return typeof f=="string"&&f.indexOf(".")!=-1&&parseFloat(f)===1}function j(f){return typeof f=="string"&&f.indexOf("%")!=-1}function _(f){return f.length==1?"0"+f:""+f}function F(f){return f<=1&&(f=f*100+"%"),f}function N(f){return A.round(parseFloat(f)*255).toString(16)}function T(f){return sA(f)/255}var G=(function(){var f="[-\\+]?\\d+%?",v="[-\\+]?\\d*\\.\\d+%?",w="(?:"+v+")|(?:"+f+")",K="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?",W="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?";return{CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function J(f){return!!G.CSS_UNIT.exec(f)}function $(f){f=f.replace(r,"").replace(t,"").toLowerCase();var v=!1;if(tA[f])f=tA[f],v=!0;else if(f=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var w;return(w=G.rgb.exec(f))?{r:w[1],g:w[2],b:w[3]}:(w=G.rgba.exec(f))?{r:w[1],g:w[2],b:w[3],a:w[4]}:(w=G.hsl.exec(f))?{h:w[1],s:w[2],l:w[3]}:(w=G.hsla.exec(f))?{h:w[1],s:w[2],l:w[3],a:w[4]}:(w=G.hsv.exec(f))?{h:w[1],s:w[2],v:w[3]}:(w=G.hsva.exec(f))?{h:w[1],s:w[2],v:w[3],a:w[4]}:(w=G.hex8.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),a:T(w[4]),format:v?"name":"hex8"}:(w=G.hex6.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),format:v?"name":"hex"}:(w=G.hex4.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),a:T(w[4]+""+w[4]),format:v?"name":"hex8"}:(w=G.hex3.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),format:v?"name":"hex"}:!1}function pA(f){var v,w;return f=f||{level:"AA",size:"small"},v=(f.level||"AA").toUpperCase(),w=(f.size||"small").toLowerCase(),v!=="AA"&&v!=="AAA"&&(v="AA"),w!=="small"&&w!=="large"&&(w="small"),{level:v,size:w}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(Mr)),Mr.exports}var tl=el();const SA=ks(tl);var Oe=function(){return Oe=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Oe.apply(this,arguments)},rl=function(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||Array.prototype.slice.call(A))},nl=function(e){e===void 0&&(e="");var A={linearGradient:/^(-(webkit|o|ms|moz)-)?(linear-gradient)/i,repeatingLinearGradient:/^(-(webkit|o|ms|moz)-)?(repeating-linear-gradient)/i,radialGradient:/^(-(webkit|o|ms|moz)-)?(radial-gradient)/i,repeatingRadialGradient:/^(-(webkit|o|ms|moz)-)?(repeating-radial-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,spacedRgbColor:/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s+\/\s+([0-1](\.\d+)?)/,rgbaColor:/^rgba/i,hslColor:/^hsl/i,hsvColor:/^hsv/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/};function r(H){var j=new Error(e+": "+H);throw j}function t(H){e=e.substr(H)}function n(H){var j=/^[\n\r\t\s]+/.exec(e);j&&t(j[0].length);var _=H.exec(e);return _&&t(_[0].length),_}function a(H){var j=H(),_=[];if(j)for(_.push(j);n(A.comma);)j=H(),j?_.push(j):r("One extra comma");return _}function s(H,j,_){var F=n(j);if(F)return{type:H,value:F[_]}}function o(){var H=s("hex",A.hexColor,1);if(H?.value){var j=SA(H?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}var l=function(H){var j=Ue(H?.[0]);return{value:"".concat(j?"RGBA":"rgba","(").concat(a(AA),")")}};function c(H,j){var _=n(H);if(_){n(A.startCall)||r("Missing (");var F=j(_);return n(A.endCall)||r("Missing )"),F}}function g(){return c(A.hslColor,dA)}function B(){return c(A.rgbaColor,l)}function u(){return c(A.rgbColor,q)}function p(){var H=s("literal",A.literalColor,0);if(H?.value){var j=SA(H?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}function Q(){return c(A.hsvColor,aA)}function C(){return o()||g()||B()||u()||p()||Q()}function x(){var H,j=C();return j||r("Expected color definition"),j.left=parseInt((H=lA())===null||H===void 0?void 0:H.value),j}function U(H,j,_){return c(j,function(){var F=_();return F&&(n(A.comma)||r("Missing comma before color stops")),{type:H,orientation:F,colorStops:a(x)}})}function y(){return h()||I()}function L(){return U("linear-gradient",A.linearGradient,y)||U("repeating-linear-gradient",A.repeatingLinearGradient,y)||U("radial-gradient",A.radialGradient,M)||U("repeating-radial-gradient",A.repeatingRadialGradient,M)}function S(){return a(L)}function E(){var H,j=S();e.length>0&&r("Invalid input not EOF");var _=j[0],F=(H=_?.colorStops)===null||H===void 0?void 0:H.filter(function(T){return Ue(T.value)}).length,N=function(){if(F>0)return _;var T=function(G,J){return J===0?vr(G):vt(G)};return Oe(Oe({},_),{colorStops:_.colorStops.map(function(G,J){return Oe(Oe({},G),{value:T(G,J)})})})};return N()}function h(){return s("directional",A.sideOrCorner,1)}function I(){return s("angular",A.angleValue,1)}function M(){var H,j=k(),_;return j&&(H=[],H.push(j),_=e,n(A.comma)&&(j=k(),j?H.push(j):e=_)),H}function k(){var H=O()||Z();if(H)H.at=z();else{var j=D();if(j){H=j;var _=z();_&&(H.at=_)}else{var F=eA();F&&(H={type:"default-radial",at:F})}}return H}function R(){return s("px",A.pixelValue,1)||s("em",A.emValue,1)}function O(){var H=s("shape",/^(circle)/i,0);return H&&(H.style=R()||D()),H}function Z(){var H=s("shape",/^(ellipse)/i,0);return H&&(H.style=lA()||D()),H}function D(){return s("extent-keyword",A.extentKeywords,1)}function z(){if(s("position",/^at/,0)){var H=eA();return H||r("Missing positioning value"),H}}function eA(){var H=tA();if(H.x||H.y)return{type:"position",value:H}}function tA(){return{x:lA(),y:lA()}}function AA(){return n(A.number)[1]}var dA=function(H){var j=Ue(H?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],l:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,J=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(J,")")}},aA=function(H){var j=Ue(H?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],v:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,J=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(J,")")}},q=function(H){var j=Ue(H?.[0]),_=n(A.spacedRgbColor),F=_||rl([null],a(AA),!0),N=F[1],T=F[2],G=F[3],J=F[4],$=J===void 0?1:J;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat($,")")}};function lA(){return s("%",A.percentageValue,1)||sA()||R()}function sA(){return s("position-keyword",A.positionKeywords,1)}return E()},vt=function(e){return e.value.toLowerCase()},vr=function(e){return e.value.toUpperCase()},al=function(e,A,r){var t=e?.includes("gradient");if(t){var n=e?.includes("conic"),a=n?r:e;n&&console.log("Sorry we cant handle conic gradients yet");var s=nl(a);return s?.colorStops}else{var a=e||A;return[{value:a}]}},_e=function(e,A,r){return isNaN(e)||e<A?A:e>r?r:e},ee=function(e){return Math.round(e)},lr=function(){return lr=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},lr.apply(this,arguments)},Ts=function(e){var A=e.target.parentNode.getBoundingClientRect(),r=e.target.className,t=r==="c-resize ps-rl"?15:0;return{offsetLeft:A?.x+t,offsetTop:A?.y,clientWidth:A?.width,clientHeight:A?.height}};function Ge(e,A){var r=Ts(e),t=r.offsetLeft,n=r.clientWidth,a=e.clientX-t-A/2,s=n-18,o=_e(a,0,s);return Math.round(o/(s/100))}function sl(e,A,r,t,n){var a=e*r-n/2,s=(100-A)/100*t-n/2;return[a,s]}var il=function(e){if(e.clientX)return{clientX:e.clientX,clientY:e.clientY};var A=e.touches[0]||{};return{clientX:A.clientX,clientY:A.clientY}};function ol(e,A){var r=Ts(e),t=r.offsetLeft,n=r.offsetTop,a=r.clientWidth,s=r.clientHeight,o=il(e),l=o.clientX,c=o.clientY,g=function(){var u=l-t-A/2;return _e(u,-9,a-10)},B=function(){var u=c-n-A/2;return _e(u,-9,s-10)};return[g(),B()]}var Ue=function(e){var A;return e?.[0]===((A=e?.[0])===null||A===void 0?void 0:A.toUpperCase())},Ds=function(e){if(e==="to top")return 0;if(e==="to bottom")return 180;if(e==="to left")return 270;if(e==="to right")return 90;if(e==="to top right")return 45;if(e==="to bottom right")return 135;if(e==="to bottom left")return 225;if(e==="to top left")return 315;var A=e||0;return parseInt(A)},ll=function(e){var A,r,t,n,a;if(typeof e=="string")return e;if(!((A=e?.type)===null||A===void 0)&&A.includes("gradient")){var s=(r=e?.colorStops)===null||r===void 0?void 0:r.sort(function(u,p){return u?.left-p?.left}),o=(t=s?.map(function(u){return"".concat(u?.value," ").concat(u?.left,"%")}))===null||t===void 0?void 0:t.join(", "),l=e?.type,c=Ds((n=e?.orientation)===null||n===void 0?void 0:n.value),g=l==="linear-gradient"?"".concat(c,"deg"):"circle";return"".concat(l,"(").concat(g,", ").concat(o,")")}else{var B=((a=e?.colorStops[0])===null||a===void 0?void 0:a.value)||"rgba(175, 51, 242, 1)";return B}},cl=function(e,A){var r=e?.map(function(a,s){return lr(lr({},a),{index:s})}),t=r?.find(function(a){return Ue(a.value)}),n=t||r[0];return{currentColor:n?.value||A,selectedColor:n?.index||0,currentLeft:n?.left||0}},gl=function(e){var A,r=e?.split(",")[0],t=(A=r?.split("(")[1])===null||A===void 0?void 0:A.replace("deg","");return Ds(t)},ul=function(e){var A=e?.includes("gradient"),r=e?.split("(")[0],t=gl(e),n=r==="linear-gradient"?"".concat(t,"deg"):"circle";return{degrees:t,degreeStr:n,isGradient:A,gradientType:r}},DA=function(){return DA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},DA.apply(this,arguments)},Bl=function(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||Array.prototype.slice.call(A))},Os=b.createContext(null);function dl(e){var A,r,t,n,a=e.value,s=e.children,o=e.onChange,l=e.isDarkMode,c=e.squareWidth,g=e.hideOpacity,B=e.showHexAlpha,u=e.squareHeight,p=e.passedConfig,Q=e.defaultStyles,C=e.pickerIdSuffix,x={barSize:(A=p.barSize)!==null&&A!==void 0?A:xt.barSize,crossSize:(r=p.crossSize)!==null&&r!==void 0?r:xt.crossSize,defaultColor:(t=p.defaultColor)!==null&&t!==void 0?t:xt.defaultColor,defaultGradient:(n=p.defaultGradient)!==null&&n!==void 0?n:xt.defaultGradient},U=al(a,x.defaultColor,x.defaultGradient),y=ul(a),L=y.degrees,S=y.degreeStr,E=y.isGradient,h=y.gradientType,I=cl(U,x.defaultGradient),M=I.currentColor,k=I.selectedColor,R=I.currentLeft,O=b.useState("rgb"),Z=O[0],D=O[1],z=b.useState({}),eA=z[0],tA=z[1],AA=SA(M),dA=AA.toRgb(),aA=AA.toHsv(),q=b.useState(DA(DA({},dA),aA)),lA=q[0],sA=q[1];b.useEffect(function(){aA?.s===0?sA(DA(DA(DA({},dA),aA),{h:lA?.h})):sA(DA(DA({},dA),aA))},[M]);var H=function(T){var G=T.sort(function(pA,f){return pA.left-f.left}),J=G?.map(function(pA){return"".concat(pA?.value," ").concat(pA.left,"%")}),$="".concat(h,"(").concat(S,", ").concat(J.join(", "),")");tA(DA(DA({},eA),{gradient:$})),o($)},j=function(T,G){var J=U?.filter(function(pA){return!Ue(pA.value)}),$=Bl([{value:T.toUpperCase(),left:G??R}],J,!0);H($)},_=function(T){E?j(T):(tA(DA(DA({},eA),{color:T})),o(T))},F=function(){if(U?.length>2){var T=U?.map(function(J,$){return DA(DA({},J),{value:$===k-1?vr(J):vt(J)})}),G=T?.filter(function(J,$){return $!==k});H(G)}},N={hc:lA,setHc:sA,value:a,colors:U,config:x,degrees:L,onChange:o,previous:eA,inputType:Z,tinyColor:AA,isDarkMode:l,isGradient:E,squareWidth:c,hideOpacity:g,currentLeft:R,deletePoint:F,showHexAlpha:B,squareHeight:u,setInputType:D,gradientType:h,handleChange:_,currentColor:M,selectedColor:k,defaultStyles:Q,handleGradient:j,pickerIdSuffix:C,createGradientStr:H};return m.createElement(Os.Provider,{value:N},s)}function BA(){var e=b.useContext(Os);if(!e)throw new Error("usePicker has to be used within <PickerContext.Provider>");return e}var xt={barSize:18,crossSize:18,defaultColor:"rgba(175, 51, 242, 1)",defaultGradient:"linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%)"},fl=function(e,A){b.useEffect(function(){var r,t=(r=e?.current)===null||r===void 0?void 0:r.getContext("2d",{willReadFrequently:!0});if(t){t.rect(0,0,A,14);for(var n=t.createLinearGradient(0,0,A,0),a=0;a<=360;a+=30)n.addColorStop(a/360,"hsl(".concat(a,", 100%, 50%)"));t.fillStyle=n,t.fill()}},[e,A])},hl=function(e,A,r,t){b.useEffect(function(){var n,a=(n=e?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(A,", ").concat(o,"%, ").concat(r,"%)"));a.fillStyle=s,a.fill()}},[e,A,r,t])},wl=function(e,A,r,t){b.useEffect(function(){var n,a=(n=e?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(A,", ").concat(r,"%, ").concat(o,"%)"));a.fillStyle=s,a.fill()}},[e,A,r,t])},pl=function(e,A,r,t){b.useEffect(function(){var n,a=(n=e?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10){var l=SA({h:A,s:r,v:o});s.addColorStop(o/100,l.toHslString())}a.fillStyle=s,a.fill()}},[e,A,r,t])},cr=function(){return cr=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},cr.apply(this,arguments)},Cl=function(){var e=b.useRef(null),A=BA(),r=A.config,t=A.handleChange,n=A.squareWidth,a=A.hc,s=A.setHc,o=A.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],B=r.barSize;fl(e,n);var u=function(){g(!1)},p=function(){g(!0)},Q=function(U){var y=Ge(U,B)*3.6,L=SA({h:y,s:a?.s,v:a?.v}),S=L.toRgb(),E=S.r,h=S.g,I=S.b;t("rgba(".concat(E,", ").concat(h,", ").concat(I,", ").concat(a.a,")")),s(cr(cr({},a),{h:y}))},C=function(U){c&&Q(U)},x=function(U){c||Q(U)};return b.useEffect(function(){var U=function(){u()};return window.addEventListener("mouseup",U),function(){window.removeEventListener("mouseup",U)}},[]),m.createElement("div",{style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},onMouseMove:function(U){return C(U)},id:"rbgcp-hue-wrap".concat(o)},m.createElement("div",{tabIndex:0,role:"button",style:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 10ms linear",position:"absolute",left:a?.h*((n-18)/360),top:-2,cursor:"ew-resize",boxSizing:"border-box"},onMouseDown:p,id:"rbgcp-hue-handle".concat(o)}),m.createElement("canvas",{ref:e,height:"14px",width:"".concat(n,"px"),onClick:function(U){return x(U)},id:"rbgcp-hue-bar".concat(o),style:{borderRadius:14,position:"relative",verticalAlign:"top"}}))};function Ql(e,A,r){var t=0,n=0,a=0,s=0;if(e===null||A===null||r===null||isNaN(e)||isNaN(A)||isNaN(r))return console.log("Please enter numeric RGB values!"),{c:0,m:0,k:0,y:1};if(e<0||A<0||r<0||e>255||A>255||r>255)return console.log("RGB values must be in the range 0 to 255."),{c:0,m:0,k:0,y:1};if(e===0&&A===0&&r===0)return s=1,{c:0,m:0,k:0,y:1};t=1-e/255,n=1-A/255,a=1-r/255;var o=Math.min(t,Math.min(n,a));return t=(t-o)/(1-o),n=(n-o)/(1-o),a=(a-o)/(1-o),s=o,{c:t,m:n,y:a,k:s}}var ml=function(e){var A=e.c,r=e.m,t=e.y,n=e.k,a=255*(1-A)*(1-n),s=255*(1-r)*(1-n),o=255*(1-t)*(1-n);return{r:a,g:s,b:o}},vl=function(e){return typeof e!="number"?"FF":e<0?"00":e>1?"FF":Math.round(e*255).toString(16).padStart(2,"0").toUpperCase()},WA=function(){return WA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},WA.apply(this,arguments)},_A=function(e){var A=e.label,r=e.value,t=e.callback,n=e.max,a=n===void 0?100:n,s=e.hideOpacity,o=e.defaultStyles,l=e.pickerIdSuffix,c=b.useState(r),g=c[0],B=c[1],u=s?"25%":"20%";b.useEffect(function(){B(r)},[r]);var p=function(Q){var C=_e(parseFloat(Q.target.value),0,a);B(C),t(C)};return m.createElement("div",{style:{width:u,flexShrink:1},id:"rbgcp-".concat(A,"-input-wrapper").concat(l)},m.createElement("input",{value:g,onChange:function(Q){return p(Q)},style:WA({},o.rbgcpInput),id:"rbgcp-".concat(A,"-input").concat(l)}),m.createElement("div",{style:WA({},o.rbgcpInputLabel)},A))},Ul=function(e){var A=e.opacity,r=e.tinyColor,t=e.showHexAlpha,n=e.handleChange,a=e.defaultStyles,s=e.pickerIdSuffix,o=b.useState(""),l=o[0],c=o[1],g=r.toHex(),B=b.useState(g),u=B[0],p=B[1];b.useEffect(function(){l!=="hex"&&p(g)},[r,l,g]);var Q=function(){c("hex")},C=function(){c("")},x=function(S){var E=SA(S.target.value);if(p(S.target.value),E.isValid()){var h=E.toRgb(),I=h.r,M=h.g,k=h.b,R="rgba(".concat(I,", ").concat(M,", ").concat(k,", ").concat(A,")");n(R)}},U=t?"".concat(u).concat(vl(A)):u,y=t?"HEXA":"HEX",L=t?88:76;return m.createElement("div",{style:{width:L,flexShrink:0},id:"rbgcp-hex-input-wrapper".concat(s)},m.createElement("input",{onBlur:C,onFocus:Q,onChange:function(S){return x(S)},value:U?.toUpperCase(),id:"rbgcp-hex-input".concat(s),style:WA(WA({},a.rbgcpInput),a.rbgcpHexInput)}),m.createElement("div",{style:WA({},a.rbgcpInputLabel)},y))},Fl=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,s=function(o){var l=o.r,c=o.g,g=o.b;t("rgba(".concat(l,", ").concat(c,", ").concat(g,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"R",max:255,value:A?.r,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:o,g:A?.g,b:A?.b})}}),m.createElement(_A,{label:"G",max:255,value:A?.g,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:A?.r,g:o,b:A?.b})}}),m.createElement(_A,{label:"B",max:255,value:A?.b,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:A?.r,g:A?.g,b:o})}}))},bl=function(e){var A=e.hc,r=e.setHc,t=e.tinyColor,n=e.hideOpacity,a=e.handleChange,s=e.defaultStyles,o=e.pickerIdSuffix,l=t.toHsl(),c=l.s,g=l.l,B=function(p,Q,C){var x=SA({h:p,s:Q,l:C}).toRgb(),U=x.r,y=x.g,L=x.b;a("rgba(".concat(U,", ").concat(y,", ").concat(L,", ").concat(A?.a,")")),r(WA(WA({},A),{h:p}))},u=function(p){var Q=SA(p).toRgb(),C=Q.r,x=Q.g,U=Q.b;a("rgba(".concat(C,", ").concat(x,", ").concat(U,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"H",max:360,value:ee(A?.h),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return B(p,c,g)}}),m.createElement(_A,{label:"S",value:ee(c*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:p,l:g})}}),m.createElement(_A,{label:"L",value:ee(g*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:c,l:p})}}))},yl=function(e){var A=e.hc,r=e.setHc,t=e.hideOpacity,n=e.handleChange,a=e.defaultStyles,s=e.pickerIdSuffix,o=function(c,g,B){var u=SA({h:c,s:g,v:B}).toRgb(),p=u.r,Q=u.g,C=u.b;n("rgba(".concat(p,", ").concat(Q,", ").concat(C,", ").concat(A?.a,")")),r(WA(WA({},A),{h:c}))},l=function(c){var g=SA(c).toRgb(),B=g.r,u=g.g,p=g.b;n("rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"H",max:360,value:ee(A?.h),hideOpacity:t,defaultStyles:a,pickerIdSuffix:s,callback:function(c){return o(c,A?.s,A?.v)}}),m.createElement(_A,{label:"S",hideOpacity:t,value:ee(A?.s*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:A?.h,s:c,v:A?.v})}}),m.createElement(_A,{label:"V",hideOpacity:t,value:ee(A?.v*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:A?.h,s:A?.s,v:c})}}))},El=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,s=Ql(A?.r,A?.g,A?.b),o=s.c,l=s.m,c=s.y,g=s.k,B=function(u){var p=ml(u),Q=p.r,C=p.g,x=p.b;t("rgba(".concat(Q,", ").concat(C,", ").concat(x,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"C",value:ee(o*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:u/100,m:l,y:c,k:g})}}),m.createElement(_A,{label:"M",value:ee(l*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:u/100,y:c,k:g})}}),m.createElement(_A,{label:"Y",value:ee(c*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:u/100,k:g})}}),m.createElement(_A,{label:"K",value:ee(g*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:c,k:u/100})}}))},xl=function(){var e=BA(),A=e.hc,r=e.setHc,t=e.inputType,n=e.tinyColor,a=e.hideOpacity,s=e.showHexAlpha,o=e.handleChange,l=e.defaultStyles,c=e.pickerIdSuffix;return m.createElement("div",{style:WA({columnGap:6,paddingTop:14,display:"flex",justifyContent:"space-between"},l.rbgcpInputsWrap),id:"rbgcp-inputs-wrap".concat(c)},t!=="cmyk"&&m.createElement(Ul,{opacity:A?.a,tinyColor:n,showHexAlpha:s,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsl"&&m.createElement(bl,{hc:A,setHc:r,tinyColor:n,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="rgb"&&m.createElement(Fl,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsv"&&m.createElement(yl,{hc:A,setHc:r,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="cmyk"&&m.createElement(El,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),!a&&m.createElement(_A,{label:"A",hideOpacity:a,defaultStyles:l,value:Math.round(A?.a*100),pickerIdSuffix:c,callback:function(g){return o("rgba(".concat(A?.r,", ").concat(A?.g,", ").concat(A?.b,", ").concat(g/100,")"))}}))},Il=function(e,A,r,t){b.useEffect(function(){if(e.current){var n=e.current.getContext("2d",{willReadFrequently:!0});if(n){n.fillStyle="hsl(".concat(A,", 100%, 50%)"),n.fillRect(0,0,r,t);var a=n.createLinearGradient(0,0,r,0);a.addColorStop(0,"rgba(255, 255, 255, 1)"),a.addColorStop(1,"rgba(255, 255, 255, 0)"),n.fillStyle=a,n.fillRect(0,0,r,t);var s=n.createLinearGradient(0,0,0,t);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=s,n.fillRect(0,0,r,t)}}},[e,A,r,t])},Kr,ra;function Hl(){if(ra)return Kr;ra=1;var e="Expected a function",A=NaN,r="[object Symbol]",t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,l=typeof bt=="object"&&bt&&bt.Object===Object&&bt,c=typeof self=="object"&&self&&self.Object===Object&&self,g=l||c||Function("return this")(),B=Object.prototype,u=B.toString,p=Math.max,Q=Math.min,C=function(){return g.Date.now()};function x(h,I,M){var k,R,O,Z,D,z,eA=0,tA=!1,AA=!1,dA=!0;if(typeof h!="function")throw new TypeError(e);I=E(I)||0,y(M)&&(tA=!!M.leading,AA="maxWait"in M,O=AA?p(E(M.maxWait)||0,I):O,dA="trailing"in M?!!M.trailing:dA);function aA(T){var G=k,J=R;return k=R=void 0,eA=T,Z=h.apply(J,G),Z}function q(T){return eA=T,D=setTimeout(H,I),tA?aA(T):Z}function lA(T){var G=T-z,J=T-eA,$=I-G;return AA?Q($,O-J):$}function sA(T){var G=T-z,J=T-eA;return z===void 0||G>=I||G<0||AA&&J>=O}function H(){var T=C();if(sA(T))return j(T);D=setTimeout(H,lA(T))}function j(T){return D=void 0,dA&&k?aA(T):(k=R=void 0,Z)}function _(){D!==void 0&&clearTimeout(D),eA=0,k=z=R=D=void 0}function F(){return D===void 0?Z:j(C())}function N(){var T=C(),G=sA(T);if(k=arguments,R=this,z=T,G){if(D===void 0)return q(z);if(AA)return D=setTimeout(H,I),aA(z)}return D===void 0&&(D=setTimeout(H,I)),Z}return N.cancel=_,N.flush=F,N}function U(h,I,M){var k=!0,R=!0;if(typeof h!="function")throw new TypeError(e);return y(M)&&(k="leading"in M?!!M.leading:k,R="trailing"in M?!!M.trailing:R),x(h,I,{leading:k,maxWait:I,trailing:R})}function y(h){var I=typeof h;return!!h&&(I=="object"||I=="function")}function L(h){return!!h&&typeof h=="object"}function S(h){return typeof h=="symbol"||L(h)&&u.call(h)==r}function E(h){if(typeof h=="number")return h;if(S(h))return A;if(y(h)){var I=typeof h.valueOf=="function"?h.valueOf():h;h=y(I)?I+"":I}if(typeof h!="string")return h===0?h:+h;h=h.replace(t,"");var M=a.test(h);return M||s.test(h)?o(h.slice(2),M?2:8):n.test(h)?A:+h}return Kr=U,Kr}var Sl=Hl();const Ll=ks(Sl);var Fe=function(){return Fe=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Fe.apply(this,arguments)},kl=function(){var e,A,r=BA(),t=r.hc,n=r.config,a=r.squareWidth,s=r.squareHeight,o=r.handleChange,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.crossSize,B=b.useState(!1),u=B[0],p=B[1],Q=b.useRef(null),C=sl(t?.s,t?.v*100,a,s,g),x=C[0],U=C[1],y=b.useState({x,y:U}),L=y[0],S=y[1];Il(Q,t?.h,a,s),b.useEffect(function(){u||S({x:t?.v===0?L.x:x,y:U})},[x,U]);var E=function(O){var Z=Ll(function(){var D=ol(O,g),z=D[0],eA=D[1];if(z&&eA){var tA=Math.min(z+g/2,a-1),AA=Math.min(eA+g/2,s-1),dA=tA/a*100,aA=100-AA/s*100;S({x:aA===0?L?.x:z,y:eA});var q=SA("hsva(".concat(t?.h,", ").concat(dA,"%, ").concat(aA,"%, ").concat(t?.a,")"));o(q.toRgbString())}},250);Z()},h=function(){p(!1)},I=function(O){u&&E(O)},M=function(O){u||E(O)},k=function(){p(!0)},R=function(O){p(!0),E(O)};return b.useEffect(function(){var O=function(){h()};return window.addEventListener("mouseup",O),function(){window.removeEventListener("mouseup",O)}},[]),m.createElement("div",{style:{position:"relative",marginBottom:12},id:"rbgcp-square-wrapper".concat(c)},m.createElement("div",{onMouseUp:h,onTouchEnd:h,onMouseDown:R,onTouchStart:R,onMouseMove:function(O){return I(O)},id:"rbgcp-square".concat(c),style:{position:"relative",cursor:"ew-cross"}},m.createElement("div",{style:Fe(Fe(Fe({},l.rbgcpHandle),{transform:"translate(".concat((e=L?.x)!==null&&e!==void 0?e:0,"px, ").concat((A=L?.y)!==null&&A!==void 0?A:0,"px)")}),u?{transition:""}:{}),onMouseDown:k,id:"rbgcp-square-handle".concat(c)}),m.createElement("div",{style:Fe(Fe({},l.rbgcpCanvasWrapper),{height:s}),id:"rbgcp-square-canvas-wrapper".concat(c),onClick:function(O){return M(O)}},m.createElement("canvas",{ref:Q,width:"".concat(a,"px"),height:"".concat(s,"px"),id:"rbgcp-square-canvas".concat(c)}))))},ge=function(){return ge=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},ge.apply(this,arguments)},Ml=function(){var e=BA(),A=e.config,r=e.hc,t=r===void 0?{}:r,n=e.squareWidth,a=e.handleChange,s=e.defaultStyles,o=e.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],B=t.r,u=t.g,p=t.b,Q="linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(".concat(B,",").concat(u,",").concat(p,",.5) 100%)"),C=A.barSize,x=function(){g(!1)},U=function(){g(!0)},y=function(h){var I=Ge(h,C)/100,M="rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(I,")");a(M)},L=function(h){c&&y(h)},S=function(h){c||y(h)},E=n-18;return b.useEffect(function(){var h=function(){x()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{onMouseDown:U,onMouseMove:function(h){return L(h)},style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},id:"rbgcp-opacity-wrapper".concat(o)},m.createElement("div",{id:"rbgcp-opacity-checkered-bg".concat(o),style:ge(ge({},s.rbgcpCheckered),{width:"100%",height:14})}),m.createElement("div",{id:"rbgcp-opacity-handle".concat(o),style:ge(ge({},s.rbgcpHandle),{left:E*t?.a,top:-2})}),m.createElement("div",{style:ge(ge({},s.rbgcpOpacityOverlay),{background:Q}),id:"rbgcp-opacity-overlay".concat(o),onClick:function(h){return S(h)}}))},Kl={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}},Tl=["rgba(0,0,0,1)","rgba(128,128,128, 1)","rgba(192,192,192, 1)","rgba(255,255,255, 1)","rgba(0,0,128,1)","rgba(0,0,255,1)","rgba(0,255,255, 1)","rgba(0,128,0,1)","rgba(128,128,0, 1)","rgba(0,128,128,1)","rgba(0,255,0, 1)","rgba(128,0,0, 1)","rgba(128,0,128, 1)","rgba(175, 51, 242, 1)","rgba(255,0,255, 1)","rgba(255,0,0, 1)","rgba(240, 103, 46, 1)","rgba(255,255,0, 1)"],Dl=function(e){var A=e.presets,r=A===void 0?[]:A,t=BA(),n=t.value,a=t.onChange,s=t.isDarkMode,o=t.squareWidth,l=t.handleChange,c=t.pickerIdSuffix,g=function(){return r?.length>0?r?.slice(0,18):Tl},B=function(p){p?.includes("gradient")?a(p):l(p)},u=function(p){if(!p||s)return"";var Q=p?.replace(" ","");return Q==="rgba(255,255,255,1)"?"1px solid #96959c":""};return m.createElement("div",{style:{marginTop:14,display:"flex",justifyContent:"space-between"},id:"rbgcp-footer-wrapper".concat(c)},m.createElement("div",{style:{width:50,height:50,flexShrink:0,borderRadius:6,background:n,border:u(n)},id:"rbgcp-preview".concat(c)}),m.createElement("div",{style:{rowGap:3,display:"flex",flexWrap:"wrap",width:o-57,justifyContent:"space-between"},id:"rbgcp-presets-wrapper".concat(c)},g().map(function(p,Q){return m.createElement("div",{key:"".concat(p,"-").concat(Q),id:"rbgcp-preset-".concat(Q,"-wrapper").concat(c),style:{width:"calc(100% / 9)",paddingLeft:3}},m.createElement("div",{style:{height:23.5,width:"100%",background:p,borderRadius:4,border:u(p)},onClick:function(){return B(p)},id:"rbgcp-preset-".concat(Q).concat(c)}))})))},Y=function(){return Y=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Y.apply(this,arguments)},Ol=function(){var e=BA().defaultStyles,A={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y({},A),e.rbgcpControlIcon),points:"17.96 4.31 2.04 4.3 3.75 4.3 4.81 17.29 5.16 17.96 5.74 18.47 6.59 18.62 13.64 18.62 14.52 18.32 15.07 17.68 15.29 17.12 16.28 4.3 12.87 4.3 12.87 2.38 12.48 1.75 11.83 1.46 8.4 1.46 7.64 1.68 7.26 2.21 7.16 2.52 7.17 4.23"}))},Rl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:14}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"0.9 12.73 0.9 19.1 7.27 19.1 0.9 19.1 19.1 0.9 12.73 0.9 19.1 0.9 19.1 7.27"}))},Nl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"9"}),m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"5"}))},_l=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"},a={strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"3.74 2.75 3.74 12.69 0.9 12.71 6.59 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"3.74",y1:"17.26",x2:"3.74",y2:"15.21"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.1 17.25 10.1 7.31 12.95 7.29 7.26 7.29"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"10.1",y1:"2.74",x2:"10.1",y2:"4.79"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"16.26 2.75 16.26 12.69 13.41 12.71 19.1 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},Gl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M6.35,2.72a4.85,4.85,0,0,1,1.86.16,7.94,7.94,0,0,1,.88.43,3.66,3.66,0,0,0,.85.49c.25,0,.58-.27.81-.39A8.25,8.25,0,0,1,11.7,3a4,4,0,0,1,1.79-.23,3.21,3.21,0,0,0-1.34.09,6.39,6.39,0,0,0-1.47.63c-.45.25-.7.3-.7.86s0,1.18,0,1.78c0,1.3,0,2.61,0,3.92h0v5.63a2.46,2.46,0,0,1,0,.47c-.07.28-.43.42-.7.57a5.29,5.29,0,0,1-2.94.61A9.3,9.3,0,0,0,8,17.15l1.09-.37.89-.52c.06,0,.48.21.56.25.32.14.64.27,1,.38a8.54,8.54,0,0,0,2.12.4"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M7.57,5.73C6,5.7,4.5,5.65,3,5.77a2.28,2.28,0,0,0-1.76.74A2.3,2.3,0,0,0,.94,7.83l0,3.82A4.73,4.73,0,0,0,1,12.9a1.64,1.64,0,0,0,.68,1,2.44,2.44,0,0,0,1,.27,25,25,0,0,0,4.74.09"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M12.43,14.32a44.12,44.12,0,0,0,4.6,0,2.24,2.24,0,0,0,1.76-.74,2.29,2.29,0,0,0,.27-1.32l0-3.81A4.81,4.81,0,0,0,19,7.15a1.62,1.62,0,0,0-.68-1,2.31,2.31,0,0,0-1-.28,26.8,26.8,0,0,0-4.74-.09"}))},jl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={strokeMiterlimit:10,strokeWidth:"0.5px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"9.36",cy:"5.07",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"13.93",cy:"6.91",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.8",cy:"7.55",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.45",cy:"12.04",r:"1.71"}),m.createElement("path",{style:Y(Y(Y(Y({},n),r.rbgcpControlIcon),r.rbgcpControlIcon2),t&&{fill:t,stroke:t}),d:"M19.1,10c0,3.58-2.12,2.94-4.06,2.35-1.15-.34-2.24-.67-2.77-.08-.68.78-.54,2.07-.39,3.33.2,1.79.39,3.5-1.88,3.5A9.1,9.1,0,1,1,19.1,10ZM10,18c.7,0,.74-.19.75-.2a2.67,2.67,0,0,0,.07-1.27c0-.19,0-.42-.06-.67-.06-.53-.13-1.15-.14-1.67a3.82,3.82,0,0,1,.8-2.63,2.14,2.14,0,0,1,1.45-.7,4.36,4.36,0,0,1,1.32.12c.39.08.8.21,1.16.32h0c.39.12.74.23,1.08.3.74.17,1,.1,1.13,0S18,11.32,18,10a8,8,0,1,0-8,8Z"}))},Vl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"13.86 2.01 1.7 16.99 18.77 16.99"}),m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.96 16.38 10.96 16.38 10.74 15.7 10.44 14.97 10.06 14.21 9.72 13.63 9.21 12.89 8.85 12.44 8.41 11.95 7.91 11.45 7.51 11.1"}))},Pl=function(){var e=BA().defaultStyles;return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:20,marginRight:1}},m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M2.39,8c-.63,0-1,.21-1,.63A.49.49,0,0,0,1.67,9a6.48,6.48,0,0,0,1.11.43A3,3,0,0,1,4,10.09a1.47,1.47,0,0,1,.35,1.09,1.75,1.75,0,0,1-.57,1.42,2.21,2.21,0,0,1-1.48.48,8.32,8.32,0,0,1-1.68-.21l-.31-.06.12-.94a13.7,13.7,0,0,0,1.8.16c.61,0,.92-.26.92-.77a.52.52,0,0,0-.21-.44,3.13,3.13,0,0,0-.85-.34A3.32,3.32,0,0,1,.66,9.79a1.43,1.43,0,0,1-.42-1.1A1.6,1.6,0,0,1,.78,7.36a2.32,2.32,0,0,1,1.49-.44,10.46,10.46,0,0,1,1.64.17l.32.07-.1.95C3.31,8,2.73,8,2.39,8Z"}),m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M14,12.34a2.25,2.25,0,0,1-1.91.74,2.24,2.24,0,0,1-1.91-.74A3.85,3.85,0,0,1,9.61,10a4,4,0,0,1,.56-2.34,2.2,2.2,0,0,1,1.91-.77A2.21,2.21,0,0,1,14,7.69,4,4,0,0,1,14.55,10,3.85,3.85,0,0,1,14,12.34Zm-2.88-.77a1,1,0,0,0,1,.46,1,1,0,0,0,1-.46A3.25,3.25,0,0,0,13.3,10,3.45,3.45,0,0,0,13,8.46a1,1,0,0,0-1-.49,1,1,0,0,0-1,.49A3.43,3.43,0,0,0,10.85,10,3.38,3.38,0,0,0,11.11,11.57Z"}),m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M17.77,11.24h-1V13H15.58V7h2.19a1.85,1.85,0,0,1,2.11,2.07,2.21,2.21,0,0,1-.54,1.6A2.07,2.07,0,0,1,17.77,11.24Zm-1-1h1c.6,0,.9-.37.9-1.12a1.18,1.18,0,0,0-.22-.79.88.88,0,0,0-.68-.24h-1Z"}))},Xl=function(e){var A,r=e.children,t="id"+Math.random().toString(16).slice(2),n=b.useRef((A=document.getElementById(t))!==null&&A!==void 0?A:document.createElement("div")),a=b.useState(!n.current.parentElement)[0];return b.useEffect(function(){var s=n.current;return a&&(n.current.id=t,document.body.appendChild(n.current)),function(){a&&s.parentElement&&s.parentElement.removeChild(s)}},[t]),so.createPortal(r,n.current)};const Jl=b.memo(Xl);var dn=function(e,A){return dn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},dn(e,A)};function zA(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");dn(e,A);function r(){this.constructor=e}e.prototype=A===null?Object.create(A):(r.prototype=A.prototype,new r)}var fn=function(){return fn=Object.assign||function(A){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(A[a]=r[a])}return A},fn.apply(this,arguments)};function OA(e,A,r,t){function n(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function o(g){try{c(t.next(g))}catch(B){s(B)}}function l(g){try{c(t.throw(g))}catch(B){s(B)}}function c(g){g.done?a(g.value):n(g.value).then(o,l)}c((t=t.apply(e,[])).next())})}function kA(e,A){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(g){return l([c,g])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,n&&(a=c[0]&2?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=A.call(e,r)}catch(g){c=[6,g],n=0}finally{t=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function It(e,A,r){if(arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||A)}var oe=(function(){function e(A,r,t,n){this.left=A,this.top=r,this.width=t,this.height=n}return e.prototype.add=function(A,r,t,n){return new e(this.left+A,this.top+r,this.width+t,this.height+n)},e.fromClientRect=function(A,r){return new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(A,r){var t=Array.from(r).find(function(n){return n.width!==0});return t?new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),Ur=function(e,A){return oe.fromClientRect(e,A.getBoundingClientRect())},Wl=function(e){var A=e.body,r=e.documentElement;if(!A||!r)throw new Error("Unable to get document size");var t=Math.max(Math.max(A.scrollWidth,r.scrollWidth),Math.max(A.offsetWidth,r.offsetWidth),Math.max(A.clientWidth,r.clientWidth)),n=Math.max(Math.max(A.scrollHeight,r.scrollHeight),Math.max(A.offsetHeight,r.offsetHeight),Math.max(A.clientHeight,r.clientHeight));return new oe(0,0,t,n)},Fr=function(e){for(var A=[],r=0,t=e.length;r<t;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=e.charCodeAt(r++);(a&64512)===56320?A.push(((n&1023)<<10)+(a&1023)+65536):(A.push(n),r--)}else A.push(n)}return A},bA=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=e[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ht=0;Ht<na.length;Ht++)Yl[na.charCodeAt(Ht)]=Ht;var aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var St=0;St<aa.length;St++)qe[aa.charCodeAt(St)]=St;var Zl=function(e){var A=e.length*.75,r=e.length,t,n=0,a,s,o,l;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=qe[e.charCodeAt(t)],s=qe[e.charCodeAt(t+1)],o=qe[e.charCodeAt(t+2)],l=qe[e.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},zl=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},ql=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},xe=5,Nn=11,Tr=2,$l=Nn-xe,Rs=65536>>xe,Ac=1<<xe,Dr=Ac-1,ec=1024>>xe,tc=Rs+ec,rc=tc,nc=32,ac=rc+nc,sc=65536>>Nn,ic=1<<$l,oc=ic-1,sa=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},lc=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},cc=function(e,A){var r=Zl(e),t=Array.isArray(r)?ql(r):new Uint32Array(r),n=Array.isArray(r)?zl(r):new Uint16Array(r),a=24,s=sa(n,a/2,t[4]/2),o=t[5]===2?sa(n,(a+t[4])/2):lc(t,Math.ceil((a+t[4])/4));return new gc(t[0],t[1],t[2],t[3],s,o)},gc=(function(){function e(A,r,t,n,a,s){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>xe],r=(r<<Tr)+(A&Dr),this.data[r];if(A<=65535)return r=this.index[Rs+(A-55296>>xe)],r=(r<<Tr)+(A&Dr),this.data[r];if(A<this.highStart)return r=ac-sc+(A>>Nn),r=this.index[r],r+=A>>xe&oc,r=this.index[r],r=(r<<Tr)+(A&Dr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Lt=0;Lt<ia.length;Lt++)uc[ia.charCodeAt(Lt)]=Lt;var Bc="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc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wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDA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BtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAB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AAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEA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4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwB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wBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACs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AAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgA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AAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlAC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AVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",oa=50,dc=1,Ns=2,_s=3,fc=4,hc=5,la=7,Gs=8,ca=9,Be=10,hn=11,ga=12,wn=13,wc=14,$e=15,pn=16,kt=17,Je=18,pc=19,ua=20,Cn=21,We=22,Or=23,He=24,GA=25,At=26,et=27,Se=28,Cc=29,be=30,Qc=31,Mt=32,Kt=33,Qn=34,mn=35,vn=36,ht=37,Un=38,$t=39,Ar=40,Rr=41,js=42,mc=43,vc=[9001,65288],Vs="!",iA="×",Tt="÷",Fn=cc(Bc),ae=[be,vn],bn=[dc,Ns,_s,hc],Ps=[Be,Gs],Ba=[et,At],Uc=bn.concat(Ps),da=[Un,$t,Ar,Qn,mn],Fc=[$e,wn],bc=function(e,A){A===void 0&&(A="strict");var r=[],t=[],n=[];return e.forEach(function(a,s){var o=Fn.get(a);if(o>oa?(n.push(!0),o-=oa):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(s),r.push(pn);if(o===fc||o===hn){if(s===0)return t.push(s),r.push(be);var l=r[s-1];return Uc.indexOf(l)===-1?(t.push(t[s-1]),r.push(l)):(t.push(s),r.push(be))}if(t.push(s),o===Qc)return r.push(A==="strict"?Cn:ht);if(o===js||o===Cc)return r.push(be);if(o===mc)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(ht):r.push(be);r.push(o)}),[t,r,n]},Nr=function(e,A,r,t){var n=t[r];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var a=r;a<=t.length;){a++;var s=t[a];if(s===A)return!0;if(s!==Be)break}if(n===Be)for(var a=r;a>0;){a--;var o=t[a];if(Array.isArray(e)?e.indexOf(o)!==-1:e===o)for(var l=r;l<=t.length;){l++;var s=t[l];if(s===A)return!0;if(s!==Be)break}if(o!==Be)break}return!1},fa=function(e,A){for(var r=e;r>=0;){var t=A[r];if(t===Be)r--;else return t}return 0},yc=function(e,A,r,t,n){if(r[t]===0)return iA;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return iA;var s=a-1,o=a+1,l=A[a],c=s>=0?A[s]:0,g=A[o];if(l===Ns&&g===_s)return iA;if(bn.indexOf(l)!==-1)return Vs;if(bn.indexOf(g)!==-1||Ps.indexOf(g)!==-1)return iA;if(fa(a,A)===Gs)return Tt;if(Fn.get(e[a])===hn||(l===Mt||l===Kt)&&Fn.get(e[o])===hn||l===la||g===la||l===ca||[Be,wn,$e].indexOf(l)===-1&&g===ca||[kt,Je,pc,He,Se].indexOf(g)!==-1||fa(a,A)===We||Nr(Or,We,a,A)||Nr([kt,Je],Cn,a,A)||Nr(ga,ga,a,A))return iA;if(l===Be)return Tt;if(l===Or||g===Or)return iA;if(g===pn||l===pn)return Tt;if([wn,$e,Cn].indexOf(g)!==-1||l===wc||c===vn&&Fc.indexOf(l)!==-1||l===Se&&g===vn||g===ua||ae.indexOf(g)!==-1&&l===GA||ae.indexOf(l)!==-1&&g===GA||l===et&&[ht,Mt,Kt].indexOf(g)!==-1||[ht,Mt,Kt].indexOf(l)!==-1&&g===At||ae.indexOf(l)!==-1&&Ba.indexOf(g)!==-1||Ba.indexOf(l)!==-1&&ae.indexOf(g)!==-1||[et,At].indexOf(l)!==-1&&(g===GA||[We,$e].indexOf(g)!==-1&&A[o+1]===GA)||[We,$e].indexOf(l)!==-1&&g===GA||l===GA&&[GA,Se,He].indexOf(g)!==-1)return iA;if([GA,Se,He,kt,Je].indexOf(g)!==-1)for(var B=a;B>=0;){var u=A[B];if(u===GA)return iA;if([Se,He].indexOf(u)!==-1)B--;else break}if([et,At].indexOf(g)!==-1)for(var B=[kt,Je].indexOf(l)!==-1?s:a;B>=0;){var u=A[B];if(u===GA)return iA;if([Se,He].indexOf(u)!==-1)B--;else break}if(Un===l&&[Un,$t,Qn,mn].indexOf(g)!==-1||[$t,Qn].indexOf(l)!==-1&&[$t,Ar].indexOf(g)!==-1||[Ar,mn].indexOf(l)!==-1&&g===Ar||da.indexOf(l)!==-1&&[ua,At].indexOf(g)!==-1||da.indexOf(g)!==-1&&l===et||ae.indexOf(l)!==-1&&ae.indexOf(g)!==-1||l===He&&ae.indexOf(g)!==-1||ae.concat(GA).indexOf(l)!==-1&&g===We&&vc.indexOf(e[o])===-1||ae.concat(GA).indexOf(g)!==-1&&l===Je)return iA;if(l===Rr&&g===Rr){for(var p=r[a],Q=1;p>0&&(p--,A[p]===Rr);)Q++;if(Q%2!==0)return iA}return l===Mt&&g===Kt?iA:Tt},Ec=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var r=bc(e,A.lineBreak),t=r[0],n=r[1],a=r[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(o){return[GA,be,js].indexOf(o)!==-1?ht:o}));var s=A.wordBreak==="keep-all"?a.map(function(o,l){return o&&e[l]>=19968&&e[l]<=40959}):void 0;return[t,n,s]},xc=(function(){function e(A,r,t,n){this.codePoints=A,this.required=r===Vs,this.start=t,this.end=n}return e.prototype.slice=function(){return bA.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),Ic=function(e,A){var r=Fr(e),t=Ec(r,A),n=t[0],a=t[1],s=t[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var g=iA;c<o&&(g=yc(r,a,n,++c,s))===iA;);if(g!==iA||c===o){var B=new xc(r,g,l,c);return l=c,{value:B,done:!1}}return{done:!0,value:null}}}},Hc=1,Sc=2,Ut=4,ha=8,gr=10,wa=47,it=92,Lc=9,kc=32,Dt=34,Ye=61,Mc=35,Kc=36,Tc=37,Ot=39,Rt=40,Ze=41,Dc=95,NA=45,Oc=33,Rc=60,Nc=62,_c=64,Gc=91,jc=93,Vc=61,Pc=123,Nt=63,Xc=125,pa=124,Jc=126,Wc=128,Ca=65533,_r=42,Ee=43,Yc=44,Zc=58,zc=59,wt=46,qc=0,$c=8,Ag=11,eg=14,tg=31,rg=127,qA=-1,Xs=48,Js=97,Ws=101,ng=102,ag=117,sg=122,Ys=65,Zs=69,zs=70,ig=85,og=90,MA=function(e){return e>=Xs&&e<=57},lg=function(e){return e>=55296&&e<=57343},Le=function(e){return MA(e)||e>=Ys&&e<=zs||e>=Js&&e<=ng},cg=function(e){return e>=Js&&e<=sg},gg=function(e){return e>=Ys&&e<=og},ug=function(e){return cg(e)||gg(e)},Bg=function(e){return e>=Wc},_t=function(e){return e===gr||e===Lc||e===kc},ur=function(e){return ug(e)||Bg(e)||e===Dc},Qa=function(e){return ur(e)||MA(e)||e===NA},dg=function(e){return e>=qc&&e<=$c||e===Ag||e>=eg&&e<=tg||e===rg},ue=function(e,A){return e!==it?!1:A!==gr},Gt=function(e,A,r){return e===NA?ur(A)||ue(A,r):ur(e)?!0:!!(e===it&&ue(e,A))},Gr=function(e,A,r){return e===Ee||e===NA?MA(A)?!0:A===wt&&MA(r):MA(e===wt?A:e)},fg=function(e){var A=0,r=1;(e[A]===Ee||e[A]===NA)&&(e[A]===NA&&(r=-1),A++);for(var t=[];MA(e[A]);)t.push(e[A++]);var n=t.length?parseInt(bA.apply(void 0,t),10):0;e[A]===wt&&A++;for(var a=[];MA(e[A]);)a.push(e[A++]);var s=a.length,o=s?parseInt(bA.apply(void 0,a),10):0;(e[A]===Zs||e[A]===Ws)&&A++;var l=1;(e[A]===Ee||e[A]===NA)&&(e[A]===NA&&(l=-1),A++);for(var c=[];MA(e[A]);)c.push(e[A++]);var g=c.length?parseInt(bA.apply(void 0,c),10):0;return r*(n+o*Math.pow(10,-s))*Math.pow(10,l*g)},hg={type:2},wg={type:3},pg={type:4},Cg={type:13},Qg={type:8},mg={type:21},vg={type:9},Ug={type:10},Fg={type:11},bg={type:12},yg={type:14},jt={type:23},Eg={type:1},xg={type:25},Ig={type:24},Hg={type:26},Sg={type:27},Lg={type:28},kg={type:29},Mg={type:31},yn={type:32},qs=(function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(Fr(A))},e.prototype.read=function(){for(var A=[],r=this.consumeToken();r!==yn;)A.push(r),r=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Dt:return this.consumeStringToken(Dt);case Mc:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Qa(r)||ue(t,n)){var a=Gt(r,t,n)?Sc:Hc,s=this.consumeName();return{type:5,value:s,flags:a}}break;case Kc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Cg;break;case Ot:return this.consumeStringToken(Ot);case Rt:return hg;case Ze:return wg;case _r:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),yg;break;case Ee:if(Gr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Yc:return pg;case NA:var o=A,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Gr(o,l,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Gt(o,l,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(l===NA&&c===Nc)return this.consumeCodePoint(),this.consumeCodePoint(),Ig;break;case wt:if(Gr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case wa:if(this.peekCodePoint(0)===_r)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===_r&&(g=this.consumeCodePoint(),g===wa))return this.consumeToken();if(g===qA)return this.consumeToken()}break;case Zc:return Hg;case zc:return Sg;case Rc:if(this.peekCodePoint(0)===Oc&&this.peekCodePoint(1)===NA&&this.peekCodePoint(2)===NA)return this.consumeCodePoint(),this.consumeCodePoint(),xg;break;case _c:var B=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(Gt(B,u,p)){var s=this.consumeName();return{type:7,value:s}}break;case Gc:return Lg;case it:if(ue(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case jc:return kg;case Vc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Qg;break;case Pc:return Fg;case Xc:return bg;case ag:case ig:var Q=this.peekCodePoint(0),C=this.peekCodePoint(1);return Q===Ee&&(Le(C)||C===Nt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case pa:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),vg;if(this.peekCodePoint(0)===pa)return this.consumeCodePoint(),mg;break;case Jc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Ug;break;case qA:return yn}return _t(A)?(this.consumeWhiteSpace(),Mg):MA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):ur(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:bA(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],r=this.consumeCodePoint();Le(r)&&A.length<6;)A.push(r),r=this.consumeCodePoint();for(var t=!1;r===Nt&&A.length<6;)A.push(r),r=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(bA.apply(void 0,A.map(function(l){return l===Nt?Xs:l})),16),a=parseInt(bA.apply(void 0,A.map(function(l){return l===Nt?zs:l})),16);return{type:30,start:n,end:a}}var s=parseInt(bA.apply(void 0,A),16);if(this.peekCodePoint(0)===NA&&Le(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];Le(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(bA.apply(void 0,o),16);return{type:30,start:s,end:a}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Rt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Rt?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===qA)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Ot||r===Dt){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===qA||this.peekCodePoint(0)===Ze)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),jt)}for(;;){var n=this.consumeCodePoint();if(n===qA||n===Ze)return{type:22,value:bA.apply(void 0,A)};if(_t(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===qA||this.peekCodePoint(0)===Ze?(this.consumeCodePoint(),{type:22,value:bA.apply(void 0,A)}):(this.consumeBadUrlRemnants(),jt);if(n===Dt||n===Ot||n===Rt||dg(n))return this.consumeBadUrlRemnants(),jt;if(n===it)if(ue(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),jt;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;_t(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Ze||A===qA)return;ue(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var r=5e4,t="";A>0;){var n=Math.min(r,A);t+=bA.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(A){var r="",t=0;do{var n=this._value[t];if(n===qA||n===void 0||n===A)return r+=this.consumeStringSlice(t),{type:0,value:r};if(n===gr)return this._value.splice(0,t),Eg;if(n===it){var a=this._value[t+1];a!==qA&&a!==void 0&&(a===gr?(r+=this.consumeStringSlice(t),t=-1,this._value.shift()):ue(n,a)&&(r+=this.consumeStringSlice(t),r+=bA(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},e.prototype.consumeNumber=function(){var A=[],r=Ut,t=this.peekCodePoint(0);for((t===Ee||t===NA)&&A.push(this.consumeCodePoint());MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===wt&&MA(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=ha;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===Zs||t===Ws)&&((n===Ee||n===NA)&&MA(a)||MA(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=ha;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[fg(A),r]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),r=A[0],t=A[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Gt(n,a,s)){var o=this.consumeName();return{type:15,number:r,flags:t,unit:o}}return n===Tc?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Le(A)){for(var r=bA(A);Le(this.peekCodePoint(0))&&r.length<6;)r+=bA(this.consumeCodePoint());_t(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||lg(t)||t>1114111?Ca:t}return A===qA?Ca:A},e.prototype.consumeName=function(){for(var A="";;){var r=this.consumeCodePoint();if(Qa(r))A+=bA(r);else if(ue(r,this.peekCodePoint(0)))A+=bA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),A}},e})(),$s=(function(){function e(A){this._tokens=A}return e.create=function(A){var r=new qs;return r.write(A),new e(r.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var r=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var r=this.consumeComponentValue();if(r.type===32)return A;A.push(r),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var r={type:A,values:[]},t=this.consumeToken();;){if(t.type===32||Tg(t,A))return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue()),t=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var r={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?yn:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e})(),Ft=function(e){return e.type===15},Ve=function(e){return e.type===17},uA=function(e){return e.type===20},Kg=function(e){return e.type===0},En=function(e,A){return uA(e)&&e.value===A},Ai=function(e){return e.type!==31},je=function(e){return e.type!==31&&e.type!==4},te=function(e){var A=[],r=[];return e.forEach(function(t){if(t.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(r),r=[];return}t.type!==31&&r.push(t)}),r.length&&A.push(r),A},Tg=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},Ce=function(e){return e.type===17||e.type===15},yA=function(e){return e.type===16||Ce(e)},ei=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},LA={type:17,number:0,flags:Ut},_n={type:16,number:50,flags:Ut},de={type:16,number:100,flags:Ut},tt=function(e,A,r){var t=e[0],n=e[1];return[wA(t,A),wA(typeof n<"u"?n:t,r)]},wA=function(e,A){if(e.type===16)return e.number/100*A;if(Ft(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},ti="deg",ri="grad",ni="rad",ai="turn",br={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case ti:return Math.PI*A.number/180;case ri:return Math.PI/200*A.number;case ni:return A.number;case ai:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},si=function(e){return e.type===15&&(e.unit===ti||e.unit===ri||e.unit===ni||e.unit===ai)},ii=function(e){var A=e.filter(uA).map(function(r){return r.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LA,LA];case"to top":case"bottom":return XA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LA,de];case"to right":case"left":return XA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[de,de];case"to bottom":case"top":return XA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[de,LA];case"to left":case"right":return XA(270)}return 0},XA=function(e){return Math.PI*e/180},we={name:"color",parse:function(e,A){if(A.type===18){var r=Dg[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return r(e,A.values)}if(A.type===5){if(A.value.length===3){var t=A.value.substring(0,1),n=A.value.substring(1,2),a=A.value.substring(2,3);return fe(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),1)}if(A.value.length===4){var t=A.value.substring(0,1),n=A.value.substring(1,2),a=A.value.substring(2,3),s=A.value.substring(3,4);return fe(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(A.value.length===6){var t=A.value.substring(0,2),n=A.value.substring(2,4),a=A.value.substring(4,6);return fe(parseInt(t,16),parseInt(n,16),parseInt(a,16),1)}if(A.value.length===8){var t=A.value.substring(0,2),n=A.value.substring(2,4),a=A.value.substring(4,6),s=A.value.substring(6,8);return fe(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(s,16)/255)}}if(A.type===20){var o=ie[A.value.toUpperCase()];if(typeof o<"u")return o}return ie.TRANSPARENT}},pe=function(e){return(255&e)===0},xA=function(e){var A=255&e,r=255&e>>8,t=255&e>>16,n=255&e>>24;return A<255?"rgba("+n+","+t+","+r+","+A/255+")":"rgb("+n+","+t+","+r+")"},fe=function(e,A,r,t){return(e<<24|A<<16|r<<8|Math.round(t*255)<<0)>>>0},ma=function(e,A){if(e.type===17)return e.number;if(e.type===16){var r=A===3?1:255;return A===3?e.number/100*r:Math.round(e.number/100*r)}return 0},va=function(e,A){var r=A.filter(je);if(r.length===3){var t=r.map(ma),n=t[0],a=t[1],s=t[2];return fe(n,a,s,1)}if(r.length===4){var o=r.map(ma),n=o[0],a=o[1],s=o[2],l=o[3];return fe(n,a,s,l)}return 0};function jr(e,A,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(A-e)*r*6+e:r<1/2?A:r<2/3?(A-e)*6*(2/3-r)+e:e}var Ua=function(e,A){var r=A.filter(je),t=r[0],n=r[1],a=r[2],s=r[3],o=(t.type===17?XA(t.number):br.parse(e,t))/(Math.PI*2),l=yA(n)?n.number/100:0,c=yA(a)?a.number/100:0,g=typeof s<"u"&&yA(s)?wA(s,1):1;if(l===0)return fe(c*255,c*255,c*255,1);var B=c<=.5?c*(l+1):c+l-c*l,u=c*2-B,p=jr(u,B,o+1/3),Q=jr(u,B,o),C=jr(u,B,o-1/3);return fe(p*255,Q*255,C*255,g)},Dg={hsl:Ua,hsla:Ua,rgb:va,rgba:va},ot=function(e,A){return we.parse(e,$s.create(A).parseComponentValue())},ie={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},Og={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Rg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yr=function(e,A){var r=we.parse(e,A[0]),t=A[1];return t&&yA(t)?{color:r,stop:t}:{color:r,stop:null}},Fa=function(e,A){var r=e[0],t=e[e.length-1];r.stop===null&&(r.stop=LA),t.stop===null&&(t.stop=de);for(var n=[],a=0,s=0;s<e.length;s++){var o=e[s].stop;if(o!==null){var l=wA(o,A);l>a?n.push(l):n.push(a),a=l}else n.push(null)}for(var c=null,s=0;s<n.length;s++){var g=n[s];if(g===null)c===null&&(c=s);else if(c!==null){for(var B=s-c,u=n[c-1],p=(g-u)/(B+1),Q=1;Q<=B;Q++)n[c+Q-1]=p*Q;c=null}}return e.map(function(C,x){var U=C.color;return{color:U,stop:Math.max(Math.min(1,n[x]/A),0)}})},Ng=function(e,A,r){var t=A/2,n=r/2,a=wA(e[0],A)-t,s=n-wA(e[1],r);return(Math.atan2(s,a)+Math.PI*2)%(Math.PI*2)},_g=function(e,A,r){var t=typeof e=="number"?e:Ng(e,A,r),n=Math.abs(A*Math.sin(t))+Math.abs(r*Math.cos(t)),a=A/2,s=r/2,o=n/2,l=Math.sin(t-Math.PI/2)*o,c=Math.cos(t-Math.PI/2)*o;return[n,a-c,a+c,s-l,s+l]},ZA=function(e,A){return Math.sqrt(e*e+A*A)},ba=function(e,A,r,t,n){var a=[[0,0],[0,A],[e,0],[e,A]];return a.reduce(function(s,o){var l=o[0],c=o[1],g=ZA(r-l,t-c);return(n?g<s.optimumDistance:g>s.optimumDistance)?{optimumCorner:o,optimumDistance:g}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Gg=function(e,A,r,t,n){var a=0,s=0;switch(e.size){case 0:e.shape===0?a=s=Math.min(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-n)):e.shape===1&&(a=Math.min(Math.abs(A),Math.abs(A-t)),s=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(e.shape===0)a=s=Math.min(ZA(A,r),ZA(A,r-n),ZA(A-t,r),ZA(A-t,r-n));else if(e.shape===1){var o=Math.min(Math.abs(r),Math.abs(r-n))/Math.min(Math.abs(A),Math.abs(A-t)),l=ba(t,n,A,r,!0),c=l[0],g=l[1];a=ZA(c-A,(g-r)/o),s=o*a}break;case 1:e.shape===0?a=s=Math.max(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-n)):e.shape===1&&(a=Math.max(Math.abs(A),Math.abs(A-t)),s=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(e.shape===0)a=s=Math.max(ZA(A,r),ZA(A,r-n),ZA(A-t,r),ZA(A-t,r-n));else if(e.shape===1){var o=Math.max(Math.abs(r),Math.abs(r-n))/Math.max(Math.abs(A),Math.abs(A-t)),B=ba(t,n,A,r,!1),c=B[0],g=B[1];a=ZA(c-A,(g-r)/o),s=o*a}break}return Array.isArray(e.size)&&(a=wA(e.size[0],t),s=e.size.length===2?wA(e.size[1],n):a),[a,s]},jg=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&s.value==="to"){r=ii(n);return}else if(si(s)){r=br.parse(e,s);return}}var o=yr(e,n);t.push(o)}),{angle:r,stops:t,type:1}},Vt=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){r=ii(n);return}else if(si(s)){r=(br.parse(e,s)+XA(270))%XA(360);return}}var o=yr(e,n);t.push(o)}),{angle:r,stops:t,type:1}},Vg=function(e,A){var r=XA(180),t=[],n=1,a=0,s=3,o=[];return te(A).forEach(function(l,c){var g=l[0];if(c===0){if(uA(g)&&g.value==="linear"){n=1;return}else if(uA(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var B=we.parse(e,g.values[0]);t.push({stop:LA,color:B})}else if(g.name==="to"){var B=we.parse(e,g.values[0]);t.push({stop:de,color:B})}else if(g.name==="color-stop"){var u=g.values.filter(je);if(u.length===2){var B=we.parse(e,u[1]),p=u[0];Ve(p)&&t.push({stop:{type:16,number:p.number*100,flags:p.flags},color:B})}}}}),n===1?{angle:(r+XA(180))%XA(360),stops:t,type:n}:{size:s,shape:a,stops:t,position:o,type:n}},oi="closest-side",li="farthest-side",ci="closest-corner",gi="farthest-corner",ui="circle",Bi="ellipse",di="cover",fi="contain",Pg=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(s,o){var l=!0;if(o===0){var c=!1;l=s.reduce(function(B,u){if(c)if(uA(u))switch(u.value){case"center":return a.push(_n),B;case"top":case"left":return a.push(LA),B;case"right":case"bottom":return a.push(de),B}else(yA(u)||Ce(u))&&a.push(u);else if(uA(u))switch(u.value){case ui:return r=0,!1;case Bi:return r=1,!1;case"at":return c=!0,!1;case oi:return t=0,!1;case di:case li:return t=1,!1;case fi:case ci:return t=2,!1;case gi:return t=3,!1}else if(Ce(u)||yA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return B},l)}if(l){var g=yr(e,s);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},Pt=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(s,o){var l=!0;if(o===0?l=s.reduce(function(g,B){if(uA(B))switch(B.value){case"center":return a.push(_n),!1;case"top":case"left":return a.push(LA),!1;case"right":case"bottom":return a.push(de),!1}else if(yA(B)||Ce(B))return a.push(B),!1;return g},l):o===1&&(l=s.reduce(function(g,B){if(uA(B))switch(B.value){case ui:return r=0,!1;case Bi:return r=1,!1;case fi:case oi:return t=0,!1;case li:return t=1,!1;case ci:return t=2,!1;case di:case gi:return t=3,!1}else if(Ce(B)||yA(B))return Array.isArray(t)||(t=[]),t.push(B),!1;return g},l)),l){var c=yr(e,s);n.push(c)}}),{size:t,shape:r,stops:n,position:a,type:2}},Xg=function(e){return e.type===1},Jg=function(e){return e.type===2},Gn={name:"image",parse:function(e,A){if(A.type===22){var r={url:A.value,type:0};return e.cache.addImage(A.value),r}if(A.type===18){var t=hi[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function Wg(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!hi[e.name])}var hi={"linear-gradient":jg,"-moz-linear-gradient":Vt,"-ms-linear-gradient":Vt,"-o-linear-gradient":Vt,"-webkit-linear-gradient":Vt,"radial-gradient":Pg,"-moz-radial-gradient":Pt,"-ms-radial-gradient":Pt,"-o-radial-gradient":Pt,"-webkit-radial-gradient":Pt,"-webkit-gradient":Vg},Yg={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var r=A[0];return r.type===20&&r.value==="none"?[]:A.filter(function(t){return je(t)&&Wg(t)}).map(function(t){return Gn.parse(e,t)})}},Zg={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},zg={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return te(A).map(function(r){return r.filter(yA)}).map(ei)}},qg={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(uA).map(function(t){return t.value}).join(" ")}).map($g)}},$g=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},Ne;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(Ne||(Ne={}));var Au={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(eu)})}},eu=function(e){return uA(e)||yA(e)},Er=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},tu=Er("top"),ru=Er("right"),nu=Er("bottom"),au=Er("left"),xr=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,r){return ei(r.filter(yA))}}},su=xr("top-left"),iu=xr("top-right"),ou=xr("bottom-right"),lu=xr("bottom-left"),Ir=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},cu=Ir("top"),gu=Ir("right"),uu=Ir("bottom"),Bu=Ir("left"),Hr=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,r){return Ft(r)?r.number:0}}},du=Hr("top"),fu=Hr("right"),hu=Hr("bottom"),wu=Hr("left"),pu={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Cu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return A==="rtl"?1:0}},Qu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(uA).reduce(function(r,t){return r|mu(t.value)},0)}},mu=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vu={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Uu={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},Br;(function(e){e.NORMAL="normal",e.STRICT="strict"})(Br||(Br={}));var Fu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="strict"?Br.STRICT:Br.NORMAL}},bu={name:"line-height",initialValue:"normal",prefix:!1,type:4},ya=function(e,A){return uA(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:yA(e)?wA(e,A):A},yu={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:Gn.parse(e,A)}},Eu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){return A==="inside"?0:1}},xn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Sr=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},xu=Sr("top"),Iu=Sr("right"),Hu=Sr("bottom"),Su=Sr("left"),Lu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(uA).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},ku={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="break-word"?"break-word":"normal"}},Lr=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Mu=Lr("top"),Ku=Lr("right"),Tu=Lr("bottom"),Du=Lr("left"),Ou={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Ru={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Nu={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&En(A[0],"none")?[]:te(A).map(function(r){for(var t={color:ie.TRANSPARENT,offsetX:LA,offsetY:LA,blur:LA},n=0,a=0;a<r.length;a++){var s=r[a];Ce(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:t.blur=s,n++):t.color=we.parse(e,s)}return t})}},_u={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Gu={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var r=Pu[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return r(A.values)}return null}},ju=function(e){var A=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return A.length===6?A:null},Vu=function(e){var A=e.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=A[0],t=A[1];A[2],A[3];var n=A[4],a=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],o=A[13];return A[14],A[15],A.length===16?[r,t,n,a,s,o]:null},Pu={matrix:ju,matrix3d:Vu},Ea={type:16,number:50,flags:Ut},Xu=[Ea,Ea],Ju={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var r=A.filter(yA);return r.length!==2?Xu:[r[0],r[1]]}},Wu={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}},lt;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(lt||(lt={}));var Yu={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return lt.BREAK_ALL;case"keep-all":return lt.KEEP_ALL;default:return lt.NORMAL}}},Zu={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(Ve(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},wi={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},zu={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:1}},qu={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$u={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(uA).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},AB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var r=[],t=[];return A.forEach(function(n){switch(n.type){case 20:case 0:r.push(n.value);break;case 17:r.push(n.number.toString());break;case 4:t.push(r.join(" ")),r.length=0;break}}),r.length&&t.push(r.join(" ")),t.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},eB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},tB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:uA(A)&&A.value==="bold"?700:400}},rB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(uA).map(function(r){return r.value})}},nB={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},EA=function(e,A){return(e&A)!==0},aB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var r=A[0];return r.type===20&&r.value==="none"?[]:A}},sB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;for(var t=[],n=A.filter(Ai),a=0;a<n.length;a++){var s=n[a],o=n[a+1];if(s.type===20){var l=o&&Ve(o)?o.number:1;t.push({counter:s.value,increment:l})}}return t}},iB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var r=[],t=A.filter(Ai),n=0;n<t.length;n++){var a=t[n],s=t[n+1];if(uA(a)&&a.value!=="none"){var o=s&&Ve(s)?s.number:0;r.push({counter:a.value,reset:o})}}return r}},oB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Ft).map(function(r){return wi.parse(e,r)})}},lB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;var t=[],n=A.filter(Kg);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var s=n[a].value,o=n[a+1].value;t.push({open:s,close:o})}return t}},xa=function(e,A,r){if(!e)return"";var t=e[Math.min(A,e.length-1)];return t?r?t.open:t.close:""},cB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&En(A[0],"none")?[]:te(A).map(function(r){for(var t={color:255,offsetX:LA,offsetY:LA,blur:LA,spread:LA,inset:!1},n=0,a=0;a<r.length;a++){var s=r[a];En(s,"inset")?t.inset=!0:Ce(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:n===2?t.blur=s:t.spread=s,n++):t.color=we.parse(e,s)}return t})}},gB={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var r=[0,1,2],t=[];return A.filter(uA).forEach(function(n){switch(n.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),r.forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),t}},uB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},BB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Ft(A)?A.number:0}},dB=(function(){function e(A,r){var t,n;this.animationDuration=X(A,oB,r.animationDuration),this.backgroundClip=X(A,Og,r.backgroundClip),this.backgroundColor=X(A,Rg,r.backgroundColor),this.backgroundImage=X(A,Yg,r.backgroundImage),this.backgroundOrigin=X(A,Zg,r.backgroundOrigin),this.backgroundPosition=X(A,zg,r.backgroundPosition),this.backgroundRepeat=X(A,qg,r.backgroundRepeat),this.backgroundSize=X(A,Au,r.backgroundSize),this.borderTopColor=X(A,tu,r.borderTopColor),this.borderRightColor=X(A,ru,r.borderRightColor),this.borderBottomColor=X(A,nu,r.borderBottomColor),this.borderLeftColor=X(A,au,r.borderLeftColor),this.borderTopLeftRadius=X(A,su,r.borderTopLeftRadius),this.borderTopRightRadius=X(A,iu,r.borderTopRightRadius),this.borderBottomRightRadius=X(A,ou,r.borderBottomRightRadius),this.borderBottomLeftRadius=X(A,lu,r.borderBottomLeftRadius),this.borderTopStyle=X(A,cu,r.borderTopStyle),this.borderRightStyle=X(A,gu,r.borderRightStyle),this.borderBottomStyle=X(A,uu,r.borderBottomStyle),this.borderLeftStyle=X(A,Bu,r.borderLeftStyle),this.borderTopWidth=X(A,du,r.borderTopWidth),this.borderRightWidth=X(A,fu,r.borderRightWidth),this.borderBottomWidth=X(A,hu,r.borderBottomWidth),this.borderLeftWidth=X(A,wu,r.borderLeftWidth),this.boxShadow=X(A,cB,r.boxShadow),this.color=X(A,pu,r.color),this.direction=X(A,Cu,r.direction),this.display=X(A,Qu,r.display),this.float=X(A,vu,r.cssFloat),this.fontFamily=X(A,AB,r.fontFamily),this.fontSize=X(A,eB,r.fontSize),this.fontStyle=X(A,nB,r.fontStyle),this.fontVariant=X(A,rB,r.fontVariant),this.fontWeight=X(A,tB,r.fontWeight),this.letterSpacing=X(A,Uu,r.letterSpacing),this.lineBreak=X(A,Fu,r.lineBreak),this.lineHeight=X(A,bu,r.lineHeight),this.listStyleImage=X(A,yu,r.listStyleImage),this.listStylePosition=X(A,Eu,r.listStylePosition),this.listStyleType=X(A,xn,r.listStyleType),this.marginTop=X(A,xu,r.marginTop),this.marginRight=X(A,Iu,r.marginRight),this.marginBottom=X(A,Hu,r.marginBottom),this.marginLeft=X(A,Su,r.marginLeft),this.opacity=X(A,zu,r.opacity);var a=X(A,Lu,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=X(A,ku,r.overflowWrap),this.paddingTop=X(A,Mu,r.paddingTop),this.paddingRight=X(A,Ku,r.paddingRight),this.paddingBottom=X(A,Tu,r.paddingBottom),this.paddingLeft=X(A,Du,r.paddingLeft),this.paintOrder=X(A,gB,r.paintOrder),this.position=X(A,Ru,r.position),this.textAlign=X(A,Ou,r.textAlign),this.textDecorationColor=X(A,qu,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=X(A,$u,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=X(A,Nu,r.textShadow),this.textTransform=X(A,_u,r.textTransform),this.transform=X(A,Gu,r.transform),this.transformOrigin=X(A,Ju,r.transformOrigin),this.visibility=X(A,Wu,r.visibility),this.webkitTextStrokeColor=X(A,uB,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=X(A,BB,r.webkitTextStrokeWidth),this.wordBreak=X(A,Yu,r.wordBreak),this.zIndex=X(A,Zu,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return pe(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return EA(this.display,4)||EA(this.display,33554432)||EA(this.display,268435456)||EA(this.display,536870912)||EA(this.display,67108864)||EA(this.display,134217728)},e})(),fB=(function(){function e(A,r){this.content=X(A,aB,r.content),this.quotes=X(A,lB,r.quotes)}return e})(),Ia=(function(){function e(A,r){this.counterIncrement=X(A,sB,r.counterIncrement),this.counterReset=X(A,iB,r.counterReset)}return e})(),X=function(e,A,r){var t=new qs,n=r!==null&&typeof r<"u"?r.toString():A.initialValue;t.write(n);var a=new $s(t.read());switch(A.type){case 2:var s=a.parseComponentValue();return A.parse(e,uA(s)?s.value:A.initialValue);case 0:return A.parse(e,a.parseComponentValue());case 1:return A.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(A.format){case"angle":return br.parse(e,a.parseComponentValue());case"color":return we.parse(e,a.parseComponentValue());case"image":return Gn.parse(e,a.parseComponentValue());case"length":var o=a.parseComponentValue();return Ce(o)?o:LA;case"length-percentage":var l=a.parseComponentValue();return yA(l)?l:LA;case"time":return wi.parse(e,a.parseComponentValue())}break}},hB="data-html2canvas-debug",wB=function(e){var A=e.getAttribute(hB);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},In=function(e,A){var r=wB(e);return r===1||A===r},re=(function(){function e(A,r){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,In(r,3))debugger;this.styles=new dB(A,window.getComputedStyle(r,null)),Ln(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Ur(this.context,r),In(r,4)&&(this.flags|=16)}return e})(),pB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACA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BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/A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ZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAA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ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ha="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Xt=0;Xt<Ha.length;Xt++)rt[Ha.charCodeAt(Xt)]=Xt;var CB=function(e){var A=e.length*.75,r=e.length,t,n=0,a,s,o,l;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=rt[e.charCodeAt(t)],s=rt[e.charCodeAt(t+1)],o=rt[e.charCodeAt(t+2)],l=rt[e.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},QB=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},mB=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},Ie=5,jn=11,Vr=2,vB=jn-Ie,pi=65536>>Ie,UB=1<<Ie,Pr=UB-1,FB=1024>>Ie,bB=pi+FB,yB=bB,EB=32,xB=yB+EB,IB=65536>>jn,HB=1<<vB,SB=HB-1,Sa=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},LB=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},kB=function(e,A){var r=CB(e),t=Array.isArray(r)?mB(r):new Uint32Array(r),n=Array.isArray(r)?QB(r):new Uint16Array(r),a=24,s=Sa(n,a/2,t[4]/2),o=t[5]===2?Sa(n,(a+t[4])/2):LB(t,Math.ceil((a+t[4])/4));return new MB(t[0],t[1],t[2],t[3],s,o)},MB=(function(){function e(A,r,t,n,a,s){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>Ie],r=(r<<Vr)+(A&Pr),this.data[r];if(A<=65535)return r=this.index[pi+(A-55296>>Ie)],r=(r<<Vr)+(A&Pr),this.data[r];if(A<this.highStart)return r=xB-IB+(A>>jn),r=this.index[r],r+=A>>Ie&SB,r=this.index[r],r=(r<<Vr)+(A&Pr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),La="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",KB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Jt=0;Jt<La.length;Jt++)KB[La.charCodeAt(Jt)]=Jt;var TB=1,Xr=2,Jr=3,ka=4,Ma=5,DB=7,Ka=8,Wr=9,Yr=10,Ta=11,Da=12,Oa=13,Ra=14,Zr=15,OB=function(e){for(var A=[],r=0,t=e.length;r<t;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=e.charCodeAt(r++);(a&64512)===56320?A.push(((n&1023)<<10)+(a&1023)+65536):(A.push(n),r--)}else A.push(n)}return A},RB=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=e[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},NB=kB(pB),VA="×",zr="÷",_B=function(e){return NB.get(e)},GB=function(e,A,r){var t=r-2,n=A[t],a=A[r-1],s=A[r];if(a===Xr&&s===Jr)return VA;if(a===Xr||a===Jr||a===ka||s===Xr||s===Jr||s===ka)return zr;if(a===Ka&&[Ka,Wr,Ta,Da].indexOf(s)!==-1||(a===Ta||a===Wr)&&(s===Wr||s===Yr)||(a===Da||a===Yr)&&s===Yr||s===Oa||s===Ma||s===DB||a===TB)return VA;if(a===Oa&&s===Ra){for(;n===Ma;)n=A[--t];if(n===Ra)return VA}if(a===Zr&&s===Zr){for(var o=0;n===Zr;)o++,n=A[--t];if(o%2===0)return VA}return zr},jB=function(e){var A=OB(e),r=A.length,t=0,n=0,a=A.map(_B);return{next:function(){if(t>=r)return{done:!0,value:null};for(var s=VA;t<r&&(s=GB(A,a,++t))===VA;);if(s!==VA||t===r){var o=RB.apply(null,A.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},VB=function(e){for(var A=jB(e),r=[],t;!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r},PB=function(e){var A=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var t=e.createElement("boundtest");t.style.height=A+"px",t.style.display="block",e.body.appendChild(t),r.selectNode(t);var n=r.getBoundingClientRect(),a=Math.round(n.height);if(e.body.removeChild(t),a===A)return!0}}return!1},XB=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var r=e.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var t=A.firstChild,n=Fr(t.data).map(function(l){return bA(l)}),a=0,s={},o=n.every(function(l,c){r.setStart(t,a),r.setEnd(t,a+l.length);var g=r.getBoundingClientRect();a+=l.length;var B=g.x>s.x||g.y>s.y;return s=g,c===0?!0:B});return e.body.removeChild(A),o},JB=function(){return typeof new Image().crossOrigin<"u"},WB=function(){return typeof new XMLHttpRequest().responseType=="string"},YB=function(e){var A=new Image,r=e.createElement("canvas"),t=r.getContext("2d");if(!t)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(A,0,0),r.toDataURL()}catch{return!1}return!0},Na=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},ZB=function(e){var A=e.createElement("canvas"),r=100;A.width=r,A.height=r;var t=A.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,r,r);var n=new Image,a=A.toDataURL();n.src=a;var s=Hn(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),_a(s).then(function(o){t.drawImage(o,0,0);var l=t.getImageData(0,0,r,r).data;t.fillStyle="red",t.fillRect(0,0,r,r);var c=e.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=r+"px",Na(l)?_a(Hn(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Na(t.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Hn=function(e,A,r,t,n){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",A.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",t.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},_a=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){return A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},HA={get SUPPORT_RANGE_BOUNDS(){var e=PB(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=HA.SUPPORT_RANGE_BOUNDS&&XB(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=YB(document);return Object.defineProperty(HA,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?ZB(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=JB();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=WB();return Object.defineProperty(HA,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(HA,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(HA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},ct=(function(){function e(A,r){this.text=A,this.bounds=r}return e})(),zB=function(e,A,r,t){var n=Ad(A,r),a=[],s=0;return n.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){var l=Ga(t,s,o.length).getClientRects();if(l.length>1){var c=Vn(o),g=0;c.forEach(function(u){a.push(new ct(u,oe.fromDOMRectList(e,Ga(t,g+s,u.length).getClientRects()))),g+=u.length})}else a.push(new ct(o,oe.fromDOMRectList(e,l)))}else{var B=t.splitText(o.length);a.push(new ct(o,qB(e,t))),t=B}else HA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));s+=o.length}),a},qB=function(e,A){var r=A.ownerDocument;if(r){var t=r.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(t,A);var a=Ur(e,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return oe.EMPTY},Ga=function(e,A,r){var t=e.ownerDocument;if(!t)throw new Error("Node has no owner document");var n=t.createRange();return n.setStart(e,A),n.setEnd(e,A+r),n},Vn=function(e){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(r){return r.segment})}return VB(e)},$B=function(e,A){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(t){return t.segment})}return td(e,A)},Ad=function(e,A){return A.letterSpacing!==0?Vn(e):$B(e,A)},ed=[32,160,4961,65792,65793,4153,4241],td=function(e,A){for(var r=Ic(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],n,a=function(){if(n.value){var s=n.value.slice(),o=Fr(s),l="";o.forEach(function(c){ed.indexOf(c)===-1?l+=bA(c):(l.length&&t.push(l),t.push(bA(c)),l="")}),l.length&&t.push(l)}};!(n=r.next()).done;)a();return t},rd=(function(){function e(A,r,t){this.text=nd(r.data,t.textTransform),this.textBounds=zB(A,this.text,t,r)}return e})(),nd=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(ad,sd);case 2:return e.toUpperCase();default:return e}},ad=/(^|\s|:|-|\(|\))([a-z])/g,sd=function(e,A,r){return e.length>0?A+r.toUpperCase():e},Ci=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return A})(re),Qi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return A})(re),mi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=new XMLSerializer,s=Ur(r,t);return t.setAttribute("width",s.width+"px"),t.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A})(re),vi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A})(re),Sn=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.start=t.start,n.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,n}return A})(re),id=[{type:15,flags:0,unit:"px",number:3}],od=[{type:16,flags:0,number:50}],ld=function(e){return e.width>e.height?new oe(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new oe(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},cd=function(e){var A=e.type===gd?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},dr="checkbox",fr="radio",gd="password",ja=707406591,Pn=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=cd(t),(n.type===dr||n.type===fr)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=ld(n.bounds)),n.type){case dr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=id;break;case fr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=od;break}return n}return A})(re),Ui=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=t.options[t.selectedIndex||0];return n.value=a&&a.text||"",n}return A})(re),Fi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A})(re),bi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=Ei(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?ot(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):ie.TRANSPARENT,s=t.contentWindow.document.body?ot(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):ie.TRANSPARENT;n.backgroundColor=pe(a)?pe(s)?n.styles.backgroundColor:s:a}}catch{}return n}return A})(re),ud=["OL","UL","MENU"],er=function(e,A,r,t){for(var n=A.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,xi(n)&&n.data.trim().length>0)r.textNodes.push(new rd(e,n,r.styles));else if(Re(n))if(Li(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return er(e,o,r,t)});else{var s=yi(e,n);s.styles.isVisible()&&(Bd(n,s,t)?s.flags|=4:dd(s.styles)&&(s.flags|=2),ud.indexOf(n.tagName)!==-1&&(s.flags|=8),r.elements.push(s),n.slot,n.shadowRoot?er(e,n.shadowRoot,s,t):!hr(n)&&!Ii(n)&&!wr(n)&&er(e,n,s,t))}},yi=function(e,A){return kn(A)?new Ci(e,A):Hi(A)?new Qi(e,A):Ii(A)?new mi(e,A):fd(A)?new vi(e,A):hd(A)?new Sn(e,A):wd(A)?new Pn(e,A):wr(A)?new Ui(e,A):hr(A)?new Fi(e,A):Si(A)?new bi(e,A):new re(e,A)},Ei=function(e,A){var r=yi(e,A);return r.flags|=4,er(e,A,r,r),r},Bd=function(e,A,r){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Xn(e)&&r.styles.isTransparent()},dd=function(e){return e.isPositioned()||e.isFloating()},xi=function(e){return e.nodeType===Node.TEXT_NODE},Re=function(e){return e.nodeType===Node.ELEMENT_NODE},Ln=function(e){return Re(e)&&typeof e.style<"u"&&!tr(e)},tr=function(e){return typeof e.className=="object"},fd=function(e){return e.tagName==="LI"},hd=function(e){return e.tagName==="OL"},wd=function(e){return e.tagName==="INPUT"},pd=function(e){return e.tagName==="HTML"},Ii=function(e){return e.tagName==="svg"},Xn=function(e){return e.tagName==="BODY"},Hi=function(e){return e.tagName==="CANVAS"},Va=function(e){return e.tagName==="VIDEO"},kn=function(e){return e.tagName==="IMG"},Si=function(e){return e.tagName==="IFRAME"},Pa=function(e){return e.tagName==="STYLE"},Cd=function(e){return e.tagName==="SCRIPT"},hr=function(e){return e.tagName==="TEXTAREA"},wr=function(e){return e.tagName==="SELECT"},Li=function(e){return e.tagName==="SLOT"},Xa=function(e){return e.tagName.indexOf("-")>0},Qd=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var r=this.counters[A];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(A){var r=this.counters[A];return r||[]},e.prototype.pop=function(A){var r=this;A.forEach(function(t){return r.counters[t].pop()})},e.prototype.parse=function(A){var r=this,t=A.counterIncrement,n=A.counterReset,a=!0;t!==null&&t.forEach(function(o){var l=r.counters[o.counter];l&&o.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=o.increment)});var s=[];return a&&n.forEach(function(o){var l=r.counters[o.counter];s.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),s},e})(),Ja={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"]},Wa={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},md={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},vd={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ke=function(e,A,r,t,n,a){return e<A||e>r?pt(e,n,a.length>0):t.integers.reduce(function(s,o,l){for(;e>=o;)e-=o,s+=t.values[l];return s},"")+a},ki=function(e,A,r,t){var n="";do r||e--,n=t(e)+n,e/=A;while(e*A>=A);return n},FA=function(e,A,r,t,n){var a=r-A+1;return(e<0?"-":"")+(ki(Math.abs(e),a,t,function(s){return bA(Math.floor(s%a)+A)})+n)},Qe=function(e,A,r){r===void 0&&(r=". ");var t=A.length;return ki(Math.abs(e),t,!1,function(n){return A[Math.floor(n%t)]})+r},Te=1,le=2,ce=4,nt=8,se=function(e,A,r,t,n,a){if(e<-9999||e>9999)return pt(e,4,n.length>0);var s=Math.abs(e),o=n;if(s===0)return A[0]+o;for(var l=0;s>0&&l<=4;l++){var c=s%10;c===0&&EA(a,Te)&&o!==""?o=A[c]+o:c>1||c===1&&l===0||c===1&&l===1&&EA(a,le)||c===1&&l===1&&EA(a,ce)&&e>100||c===1&&l>1&&EA(a,nt)?o=A[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),s=Math.floor(s/10)}return(e<0?t:"")+o},Ya="十百千萬",Za="拾佰仟萬",za="マイナス",qr="마이너스",pt=function(e,A,r){var t=r?". ":"",n=r?"、":"",a=r?", ":"",s=r?" ":"";switch(A){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=FA(e,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return Qe(e,"〇一二三四五六七八九",n);case 6:return ke(e,1,3999,Ja,3,t).toLowerCase();case 7:return ke(e,1,3999,Ja,3,t);case 8:return FA(e,945,969,!1,t);case 9:return FA(e,97,122,!1,t);case 10:return FA(e,65,90,!1,t);case 11:return FA(e,1632,1641,!0,t);case 12:case 49:return ke(e,1,9999,Wa,3,t);case 35:return ke(e,1,9999,Wa,3,t).toLowerCase();case 13:return FA(e,2534,2543,!0,t);case 14:case 30:return FA(e,6112,6121,!0,t);case 15:return Qe(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Qe(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return se(e,"零一二三四五六七八九",Ya,"負",n,le|ce|nt);case 47:return se(e,"零壹貳參肆伍陸柒捌玖",Za,"負",n,Te|le|ce|nt);case 42:return se(e,"零一二三四五六七八九",Ya,"负",n,le|ce|nt);case 41:return se(e,"零壹贰叁肆伍陆柒捌玖",Za,"负",n,Te|le|ce|nt);case 26:return se(e,"〇一二三四五六七八九","十百千万",za,n,0);case 25:return se(e,"零壱弐参四伍六七八九","拾百千万",za,n,Te|le|ce);case 31:return se(e,"영일이삼사오육칠팔구","십백천만",qr,a,Te|le|ce);case 33:return se(e,"零一二三四五六七八九","十百千萬",qr,a,0);case 32:return se(e,"零壹貳參四五六七八九","拾百千",qr,a,Te|le|ce);case 18:return FA(e,2406,2415,!0,t);case 20:return ke(e,1,19999,vd,3,t);case 21:return FA(e,2790,2799,!0,t);case 22:return FA(e,2662,2671,!0,t);case 22:return ke(e,1,10999,md,3,t);case 23:return Qe(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Qe(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return FA(e,3302,3311,!0,t);case 28:return Qe(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Qe(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return FA(e,3792,3801,!0,t);case 37:return FA(e,6160,6169,!0,t);case 38:return FA(e,4160,4169,!0,t);case 39:return FA(e,2918,2927,!0,t);case 40:return FA(e,1776,1785,!0,t);case 43:return FA(e,3046,3055,!0,t);case 44:return FA(e,3174,3183,!0,t);case 45:return FA(e,3664,3673,!0,t);case 46:return FA(e,3872,3881,!0,t);default:return FA(e,48,57,!0,t)}},Mi="data-html2canvas-ignore",qa=(function(){function e(A,r,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new Qd,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,r){var t=this,n=Ud(A,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,o=n.contentWindow,l=o.document,c=yd(n).then(function(){return OA(t,void 0,void 0,function(){var g,B;return kA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(Hd),o&&(o.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==r.top||o.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-r.left,o.scrollY-r.top,0,0))),g=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,bd(l)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(l,B)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(xd(document.doctype)+"<html></html>"),Id(this.referenceElement.ownerDocument,a,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(A){if(In(A,2))debugger;if(Hi(A))return this.createCanvasClone(A);if(Va(A))return this.createVideoClone(A);if(Pa(A))return this.createStyleClone(A);var r=A.cloneNode(!1);return kn(r)&&(kn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(r.src=A.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Xa(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(A){var r=document.createElement("html2canvascustomelement");return $r(A.style,r),r},e.prototype.createStyleClone=function(A){try{var r=A.sheet;if(r&&r.cssRules){var t=[].slice.call(r.cssRules,0).reduce(function(a,s){return s&&typeof s.cssText=="string"?a+s.cssText:a},""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var r;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var a=A.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&a)s.putImageData(a.getImageData(0,0,A.width,A.height),0,0);else{var o=(r=A.getContext("webgl2"))!==null&&r!==void 0?r:A.getContext("webgl");if(o){var l=o.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},e.prototype.createVideoClone=function(A){var r=A.ownerDocument.createElement("canvas");r.width=A.offsetWidth,r.height=A.offsetHeight;var t=r.getContext("2d");try{return t&&(t.drawImage(A,0,0,r.width,r.height),this.options.allowTaint||t.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},e.prototype.appendChildNode=function(A,r,t){(!Re(r)||!Cd(r)&&!r.hasAttribute(Mi)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Re(r)||!Pa(r))&&A.appendChild(this.cloneNode(r,t))},e.prototype.cloneChildNodes=function(A,r,t){for(var n=this,a=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;a;a=a.nextSibling)if(Re(a)&&Li(a)&&typeof a.assignedNodes=="function"){var s=a.assignedNodes();s.length&&s.forEach(function(o){return n.appendChildNode(r,o,t)})}else this.appendChildNode(r,a,t)},e.prototype.cloneNode=function(A,r){if(xi(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Re(A)&&(Ln(A)||tr(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var a=t.getComputedStyle(A),s=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&Ln(n)&&(this.clonedReferenceElement=n),Xn(n)&&kd(n);var l=this.counters.parse(new Ia(this.context,a)),c=this.resolvePseudoContent(A,n,s,gt.BEFORE);Xa(A)&&(r=!0),Va(A)||this.cloneChildNodes(A,n,r),c&&n.insertBefore(c,n.firstChild);var g=this.resolvePseudoContent(A,n,o,gt.AFTER);return g&&n.appendChild(g),this.counters.pop(l),(a&&(this.options.copyStyles||tr(A))&&!Si(A)||r)&&$r(a,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(hr(A)||wr(A))&&(hr(n)||wr(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,r,t,n){var a=this;if(t){var s=t.content,o=r.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||t.display==="none")){this.counters.parse(new Ia(this.context,t));var l=new fB(this.context,t),c=o.createElement("html2canvaspseudoelement");$r(t,c),l.content.forEach(function(B){if(B.type===0)c.appendChild(o.createTextNode(B.value));else if(B.type===22){var u=o.createElement("img");u.src=B.value,u.style.opacity="1",c.appendChild(u)}else if(B.type===18){if(B.name==="attr"){var p=B.values.filter(uA);p.length&&c.appendChild(o.createTextNode(A.getAttribute(p[0].value)||""))}else if(B.name==="counter"){var Q=B.values.filter(je),C=Q[0],x=Q[1];if(C&&uA(C)){var U=a.counters.getCounterValue(C.value),y=x&&uA(x)?xn.parse(a.context,x.value):3;c.appendChild(o.createTextNode(pt(U,y,!1)))}}else if(B.name==="counters"){var L=B.values.filter(je),C=L[0],S=L[1],x=L[2];if(C&&uA(C)){var E=a.counters.getCounterValues(C.value),h=x&&uA(x)?xn.parse(a.context,x.value):3,I=S&&S.type===0?S.value:"",M=E.map(function(O){return pt(O,h,!1)}).join(I);c.appendChild(o.createTextNode(M))}}}else if(B.type===20)switch(B.value){case"open-quote":c.appendChild(o.createTextNode(xa(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(xa(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(B.value))}}),c.className=Mn+" "+Kn;var g=n===gt.BEFORE?" "+Mn:" "+Kn;return tr(r)?r.className.baseValue+=g:r.className+=g,c}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e})(),gt;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(gt||(gt={}));var Ud=function(e,A){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=A.width.toString(),r.height=A.height.toString(),r.scrolling="no",r.setAttribute(Mi,"true"),e.body.appendChild(r),r},Fd=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},bd=function(e){return Promise.all([].slice.call(e.images,0).map(Fd))},yd=function(e){return new Promise(function(A,r){var t=e.contentWindow;if(!t)return r("No window assigned for iframe");var n=t.document;t.onload=e.onload=function(){t.onload=e.onload=null;var a=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(a),A(e))},50)}})},Ed=["all","d","content"],$r=function(e,A){for(var r=e.length-1;r>=0;r--){var t=e.item(r);Ed.indexOf(t)===-1&&A.style.setProperty(t,e.getPropertyValue(t))}return A},xd=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},Id=function(e,A,r){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,r)},Hd=function(e){var A=e[0],r=e[1],t=e[2];A.scrollLeft=r,A.scrollTop=t},Sd=":before",Ld=":after",Mn="___html2canvas___pseudoelement_before",Kn="___html2canvas___pseudoelement_after",$a=`{
+ content: "" !important;
+ display: none !important;
+}`,kd=function(e){Md(e,"."+Mn+Sd+$a+`
+ .`+Kn+Ld+$a)},Md=function(e,A){var r=e.ownerDocument;if(r){var t=r.createElement("style");t.textContent=A,e.appendChild(t)}},Ki=(function(){function e(){}return e.getOrigin=function(A){var r=e._link;return r?(r.href=A,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e})(),Kd=(function(){function e(A,r){this.context=A,this._options=r,this._cache={}}return e.prototype.addImage=function(A){var r=Promise.resolve();return this.has(A)||(en(A)||Rd(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),r},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return OA(this,void 0,void 0,function(){var r,t,n,a,s=this;return kA(this,function(o){switch(o.label){case 0:return r=Ki.isSameOrigin(A),t=!An(A)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!r,n=!An(A)&&!r&&!en(A)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!An(A)&&!en(A)&&!n&&!t?[2]:(a=A,n?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(l,c){var g=new Image;g.onload=function(){return l(g)},g.onerror=c,(Nd(a)||t)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(function(){return l(g)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(a,s){var o=HA.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")a(l.response);else{var B=new FileReader;B.addEventListener("load",function(){return a(B.result)},!1),B.addEventListener("error",function(u){return s(u)},!1),B.readAsDataURL(l.response)}else s("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=s;var c=t.indexOf("?")>-1?"&":"?";if(l.open("GET",""+t+c+"url="+encodeURIComponent(A)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),r._options.imageTimeout){var g=r._options.imageTimeout;l.timeout=g,l.ontimeout=function(){return s("Timed out ("+g+"ms) proxying "+n)}}l.send()})},e})(),Td=/^data:image\/svg\+xml/i,Dd=/^data:image\/.*;base64,/i,Od=/^data:image\/.*/i,Rd=function(e){return HA.SUPPORT_SVG_DRAWING||!_d(e)},An=function(e){return Od.test(e)},Nd=function(e){return Dd.test(e)},en=function(e){return e.substr(0,4)==="blob"},_d=function(e){return e.substr(-3).toLowerCase()==="svg"||Td.test(e)},V=(function(){function e(A,r){this.type=0,this.x=A,this.y=r}return e.prototype.add=function(A,r){return new e(this.x+A,this.y+r)},e})(),Me=function(e,A,r){return new V(e.x+(A.x-e.x)*r,e.y+(A.y-e.y)*r)},Wt=(function(){function e(A,r,t,n){this.type=1,this.start=A,this.startControl=r,this.endControl=t,this.end=n}return e.prototype.subdivide=function(A,r){var t=Me(this.start,this.startControl,A),n=Me(this.startControl,this.endControl,A),a=Me(this.endControl,this.end,A),s=Me(t,n,A),o=Me(n,a,A),l=Me(s,o,A);return r?new e(this.start,t,s,l):new e(l,o,a,this.end)},e.prototype.add=function(A,r){return new e(this.start.add(A,r),this.startControl.add(A,r),this.endControl.add(A,r),this.end.add(A,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),PA=function(e){return e.type===1},Gd=(function(){function e(A){var r=A.styles,t=A.bounds,n=tt(r.borderTopLeftRadius,t.width,t.height),a=n[0],s=n[1],o=tt(r.borderTopRightRadius,t.width,t.height),l=o[0],c=o[1],g=tt(r.borderBottomRightRadius,t.width,t.height),B=g[0],u=g[1],p=tt(r.borderBottomLeftRadius,t.width,t.height),Q=p[0],C=p[1],x=[];x.push((a+l)/t.width),x.push((Q+B)/t.width),x.push((s+C)/t.height),x.push((c+u)/t.height);var U=Math.max.apply(Math,x);U>1&&(a/=U,s/=U,l/=U,c/=U,B/=U,u/=U,Q/=U,C/=U);var y=t.width-l,L=t.height-u,S=t.width-B,E=t.height-C,h=r.borderTopWidth,I=r.borderRightWidth,M=r.borderBottomWidth,k=r.borderLeftWidth,R=wA(r.paddingTop,A.bounds.width),O=wA(r.paddingRight,A.bounds.width),Z=wA(r.paddingBottom,A.bounds.width),D=wA(r.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||s>0?QA(t.left+k/3,t.top+h/3,a-k/3,s-h/3,gA.TOP_LEFT):new V(t.left+k/3,t.top+h/3),this.topRightBorderDoubleOuterBox=a>0||s>0?QA(t.left+y,t.top+h/3,l-I/3,c-h/3,gA.TOP_RIGHT):new V(t.left+t.width-I/3,t.top+h/3),this.bottomRightBorderDoubleOuterBox=B>0||u>0?QA(t.left+S,t.top+L,B-I/3,u-M/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-I/3,t.top+t.height-M/3),this.bottomLeftBorderDoubleOuterBox=Q>0||C>0?QA(t.left+k/3,t.top+E,Q-k/3,C-M/3,gA.BOTTOM_LEFT):new V(t.left+k/3,t.top+t.height-M/3),this.topLeftBorderDoubleInnerBox=a>0||s>0?QA(t.left+k*2/3,t.top+h*2/3,a-k*2/3,s-h*2/3,gA.TOP_LEFT):new V(t.left+k*2/3,t.top+h*2/3),this.topRightBorderDoubleInnerBox=a>0||s>0?QA(t.left+y,t.top+h*2/3,l-I*2/3,c-h*2/3,gA.TOP_RIGHT):new V(t.left+t.width-I*2/3,t.top+h*2/3),this.bottomRightBorderDoubleInnerBox=B>0||u>0?QA(t.left+S,t.top+L,B-I*2/3,u-M*2/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-I*2/3,t.top+t.height-M*2/3),this.bottomLeftBorderDoubleInnerBox=Q>0||C>0?QA(t.left+k*2/3,t.top+E,Q-k*2/3,C-M*2/3,gA.BOTTOM_LEFT):new V(t.left+k*2/3,t.top+t.height-M*2/3),this.topLeftBorderStroke=a>0||s>0?QA(t.left+k/2,t.top+h/2,a-k/2,s-h/2,gA.TOP_LEFT):new V(t.left+k/2,t.top+h/2),this.topRightBorderStroke=a>0||s>0?QA(t.left+y,t.top+h/2,l-I/2,c-h/2,gA.TOP_RIGHT):new V(t.left+t.width-I/2,t.top+h/2),this.bottomRightBorderStroke=B>0||u>0?QA(t.left+S,t.top+L,B-I/2,u-M/2,gA.BOTTOM_RIGHT):new V(t.left+t.width-I/2,t.top+t.height-M/2),this.bottomLeftBorderStroke=Q>0||C>0?QA(t.left+k/2,t.top+E,Q-k/2,C-M/2,gA.BOTTOM_LEFT):new V(t.left+k/2,t.top+t.height-M/2),this.topLeftBorderBox=a>0||s>0?QA(t.left,t.top,a,s,gA.TOP_LEFT):new V(t.left,t.top),this.topRightBorderBox=l>0||c>0?QA(t.left+y,t.top,l,c,gA.TOP_RIGHT):new V(t.left+t.width,t.top),this.bottomRightBorderBox=B>0||u>0?QA(t.left+S,t.top+L,B,u,gA.BOTTOM_RIGHT):new V(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=Q>0||C>0?QA(t.left,t.top+E,Q,C,gA.BOTTOM_LEFT):new V(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||s>0?QA(t.left+k,t.top+h,Math.max(0,a-k),Math.max(0,s-h),gA.TOP_LEFT):new V(t.left+k,t.top+h),this.topRightPaddingBox=l>0||c>0?QA(t.left+Math.min(y,t.width-I),t.top+h,y>t.width+I?0:Math.max(0,l-I),Math.max(0,c-h),gA.TOP_RIGHT):new V(t.left+t.width-I,t.top+h),this.bottomRightPaddingBox=B>0||u>0?QA(t.left+Math.min(S,t.width-k),t.top+Math.min(L,t.height-M),Math.max(0,B-I),Math.max(0,u-M),gA.BOTTOM_RIGHT):new V(t.left+t.width-I,t.top+t.height-M),this.bottomLeftPaddingBox=Q>0||C>0?QA(t.left+k,t.top+Math.min(E,t.height-M),Math.max(0,Q-k),Math.max(0,C-M),gA.BOTTOM_LEFT):new V(t.left+k,t.top+t.height-M),this.topLeftContentBox=a>0||s>0?QA(t.left+k+D,t.top+h+R,Math.max(0,a-(k+D)),Math.max(0,s-(h+R)),gA.TOP_LEFT):new V(t.left+k+D,t.top+h+R),this.topRightContentBox=l>0||c>0?QA(t.left+Math.min(y,t.width+k+D),t.top+h+R,y>t.width+k+D?0:l-k+D,c-(h+R),gA.TOP_RIGHT):new V(t.left+t.width-(I+O),t.top+h+R),this.bottomRightContentBox=B>0||u>0?QA(t.left+Math.min(S,t.width-(k+D)),t.top+Math.min(L,t.height+h+R),Math.max(0,B-(I+O)),u-(M+Z),gA.BOTTOM_RIGHT):new V(t.left+t.width-(I+O),t.top+t.height-(M+Z)),this.bottomLeftContentBox=Q>0||C>0?QA(t.left+k+D,t.top+E,Math.max(0,Q-(k+D)),C-(M+Z),gA.BOTTOM_LEFT):new V(t.left+k+D,t.top+t.height-(M+Z))}return e})(),gA;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gA||(gA={}));var QA=function(e,A,r,t,n){var a=4*((Math.sqrt(2)-1)/3),s=r*a,o=t*a,l=e+r,c=A+t;switch(n){case gA.TOP_LEFT:return new Wt(new V(e,c),new V(e,c-o),new V(l-s,A),new V(l,A));case gA.TOP_RIGHT:return new Wt(new V(e,A),new V(e+s,A),new V(l,c-o),new V(l,c));case gA.BOTTOM_RIGHT:return new Wt(new V(l,A),new V(l,A+o),new V(e+s,c),new V(e,c));case gA.BOTTOM_LEFT:default:return new Wt(new V(l,c),new V(l-s,c),new V(e,A+o),new V(e,A))}},pr=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},jd=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Cr=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Vd=(function(){function e(A,r,t){this.offsetX=A,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return e})(),Yt=(function(){function e(A,r){this.path=A,this.target=r,this.type=1}return e})(),Pd=(function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e})(),Xd=function(e){return e.type===0},Ti=function(e){return e.type===1},Jd=function(e){return e.type===2},As=function(e,A){return e.length===A.length?e.some(function(r,t){return r===A[t]}):!1},Wd=function(e,A,r,t,n){return e.map(function(a,s){switch(s){case 0:return a.add(A,r);case 1:return a.add(A+t,r);case 2:return a.add(A+t,r+n);case 3:return a.add(A,r+n)}return a})},Di=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),Oi=(function(){function e(A,r){if(this.container=A,this.parent=r,this.effects=[],this.curves=new Gd(this.container),this.container.styles.opacity<1&&this.effects.push(new Pd(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new Vd(t,n,a))}if(this.container.styles.overflowX!==0){var s=pr(this.curves),o=Cr(this.curves);As(s,o)?this.effects.push(new Yt(s,6)):(this.effects.push(new Yt(s,2)),this.effects.push(new Yt(o,4)))}}return e.prototype.getEffects=function(A){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,n=this.effects.slice(0);t;){var a=t.effects.filter(function(l){return!Ti(l)});if(r||t.container.styles.position!==0||!t.parent){if(n.unshift.apply(n,a),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var s=pr(t.curves),o=Cr(t.curves);As(s,o)||n.unshift(new Yt(o,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(l){return EA(l.target,A)})},e})(),Tn=function(e,A,r,t){e.container.elements.forEach(function(n){var a=EA(n.flags,4),s=EA(n.flags,2),o=new Oi(n,e);EA(n.styles.display,2048)&&t.push(o);var l=EA(n.flags,8)?[]:t;if(a||s){var c=a||n.styles.isPositioned()?r:A,g=new Di(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var B=n.styles.zIndex.order;if(B<0){var u=0;c.negativeZIndex.some(function(Q,C){return B>Q.element.container.styles.zIndex.order?(u=C,!1):u>0}),c.negativeZIndex.splice(u,0,g)}else if(B>0){var p=0;c.positiveZIndex.some(function(Q,C){return B>=Q.element.container.styles.zIndex.order?(p=C+1,!1):p>0}),c.positiveZIndex.splice(p,0,g)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else n.styles.isFloating()?c.nonPositionedFloats.push(g):c.nonPositionedInlineLevel.push(g);Tn(o,g,a?g:r,l)}else n.styles.isInlineLevel()?A.inlineLevel.push(o):A.nonInlineLevel.push(o),Tn(o,A,r,l);EA(n.flags,8)&&Ri(n,l)})},Ri=function(e,A){for(var r=e instanceof Sn?e.start:1,t=e instanceof Sn?e.reversed:!1,n=0;n<A.length;n++){var a=A[n];a.container instanceof vi&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=pt(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},Yd=function(e){var A=new Oi(e,null),r=new Di(A),t=[];return Tn(A,r,r,t),Ri(A.container,t),r},es=function(e,A){switch(A){case 0:return JA(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return JA(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return JA(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return JA(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Zd=function(e,A){switch(A){case 0:return JA(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return JA(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return JA(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return JA(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},zd=function(e,A){switch(A){case 0:return JA(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return JA(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return JA(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return JA(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},qd=function(e,A){switch(A){case 0:return Zt(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Zt(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Zt(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Zt(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Zt=function(e,A){var r=[];return PA(e)?r.push(e.subdivide(.5,!1)):r.push(e),PA(A)?r.push(A.subdivide(.5,!0)):r.push(A),r},JA=function(e,A,r,t){var n=[];return PA(e)?n.push(e.subdivide(.5,!1)):n.push(e),PA(r)?n.push(r.subdivide(.5,!0)):n.push(r),PA(t)?n.push(t.subdivide(.5,!0).reverse()):n.push(t),PA(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},Ni=function(e){var A=e.bounds,r=e.styles;return A.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Qr=function(e){var A=e.styles,r=e.bounds,t=wA(A.paddingLeft,r.width),n=wA(A.paddingRight,r.width),a=wA(A.paddingTop,r.width),s=wA(A.paddingBottom,r.width);return r.add(t+A.borderLeftWidth,a+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+t+n),-(A.borderTopWidth+A.borderBottomWidth+a+s))},$d=function(e,A){return e===0?A.bounds:e===2?Qr(A):Ni(A)},Af=function(e,A){return e===0?A.bounds:e===2?Qr(A):Ni(A)},tn=function(e,A,r){var t=$d(De(e.styles.backgroundOrigin,A),e),n=Af(De(e.styles.backgroundClip,A),e),a=ef(De(e.styles.backgroundSize,A),r,t),s=a[0],o=a[1],l=tt(De(e.styles.backgroundPosition,A),t.width-s,t.height-o),c=tf(De(e.styles.backgroundRepeat,A),l,a,t,n),g=Math.round(t.left+l[0]),B=Math.round(t.top+l[1]);return[c,g,B,s,o]},Ke=function(e){return uA(e)&&e.value===Ne.AUTO},zt=function(e){return typeof e=="number"},ef=function(e,A,r){var t=A[0],n=A[1],a=A[2],s=e[0],o=e[1];if(!s)return[0,0];if(yA(s)&&o&&yA(o))return[wA(s,r.width),wA(o,r.height)];var l=zt(a);if(uA(s)&&(s.value===Ne.CONTAIN||s.value===Ne.COVER)){if(zt(a)){var c=r.width/r.height;return c<a!=(s.value===Ne.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var g=zt(t),B=zt(n),u=g||B;if(Ke(s)&&(!o||Ke(o))){if(g&&B)return[t,n];if(!l&&!u)return[r.width,r.height];if(u&&l){var p=g?t:n*a,Q=B?n:t/a;return[p,Q]}var C=g?t:r.width,x=B?n:r.height;return[C,x]}if(l){var U=0,y=0;return yA(s)?U=wA(s,r.width):yA(o)&&(y=wA(o,r.height)),Ke(s)?U=y*a:(!o||Ke(o))&&(y=U/a),[U,y]}var L=null,S=null;if(yA(s)?L=wA(s,r.width):o&&yA(o)&&(S=wA(o,r.height)),L!==null&&(!o||Ke(o))&&(S=g&&B?L/t*n:r.height),S!==null&&Ke(s)&&(L=g&&B?S/n*t:r.width),L!==null&&S!==null)return[L,S];throw new Error("Unable to calculate background-size for element")},De=function(e,A){var r=e[A];return typeof r>"u"?e[0]:r},tf=function(e,A,r,t,n){var a=A[0],s=A[1],o=r[0],l=r[1];switch(e){case 2:return[new V(Math.round(t.left),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(l+t.top+s)),new V(Math.round(t.left),Math.round(l+t.top+s))];case 3:return[new V(Math.round(t.left+a),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.height+t.top)),new V(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new V(Math.round(t.left+a),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s+l)),new V(Math.round(t.left+a),Math.round(t.top+s+l))];default:return[new V(Math.round(n.left),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.height+n.top)),new V(Math.round(n.left),Math.round(n.height+n.top))]}},rf="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ts="Hidden Text",nf=(function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,r){var t=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),s=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",s.appendChild(t),n.src=rf,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=A,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(ts)),t.appendChild(a),t.appendChild(n);var o=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode(ts)),t.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-t.offsetTop+2;return s.removeChild(t),{baseline:o,middle:l}},e.prototype.getMetrics=function(A,r){var t=A+" "+r;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(A,r)),this._data[t]},e})(),_i=(function(){function e(A,r){this.context=A,this.options=r}return e})(),af=1e4,sf=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new nf(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return A.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(n){return t.applyEffect(n)})},A.prototype.applyEffect=function(r){this.ctx.save(),Jd(r)&&(this.ctx.globalAlpha=r.opacity),Xd(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),Ti(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(r){return OA(this,void 0,void 0,function(){return kA(this,function(t){switch(t.label){case 0:if(EA(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(r,t,n){var a=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+n);else{var s=Vn(r.text);s.reduce(function(o,l){return a.ctx.fillText(l,o,r.bounds.top+n),o+a.ctx.measureText(l).width},r.bounds.left)}},A.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=uf(r.fontFamily).join(", "),a=Ft(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,t,r.fontWeight,a,n].join(" "),n,a]},A.prototype.renderTextNode=function(r,t){return OA(this,void 0,void 0,function(){var n,a,s,o,l,c,g,B,u=this;return kA(this,function(p){return n=this.createFontStyle(t),a=n[0],s=n[1],o=n[2],this.ctx.font=a,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,g=l.middle,B=t.paintOrder,r.textBounds.forEach(function(Q){B.forEach(function(C){switch(C){case 0:u.ctx.fillStyle=xA(t.color),u.renderTextWithLetterSpacing(Q,t.letterSpacing,c);var x=t.textShadow;x.length&&Q.text.trim().length&&(x.slice(0).reverse().forEach(function(U){u.ctx.shadowColor=xA(U.color),u.ctx.shadowOffsetX=U.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=U.offsetY.number*u.options.scale,u.ctx.shadowBlur=U.blur.number,u.renderTextWithLetterSpacing(Q,t.letterSpacing,c)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=xA(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(U){switch(U){case 1:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top+c),Q.bounds.width,1);break;case 2:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top),Q.bounds.width,1);break;case 3:u.ctx.fillRect(Q.bounds.left,Math.ceil(Q.bounds.top+g),Q.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&Q.text.trim().length&&(u.ctx.strokeStyle=xA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(Q.text,Q.bounds.left,Q.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(r,t,n){if(n&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=Qr(r),s=Cr(t);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,y,y,c,g,B,u,S,p,Q,E,C,x,U,y,L,S,E;return kA(this,function(h){switch(h.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,s=0,o=t.textNodes,h.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof Ci))return[3,8];h.label=5;case 5:return h.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,8];case 7:return h.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Qi&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof mi))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,12];case 11:return h.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof bi&&t.tree?(c=new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,c.render(t.tree)]):[3,14];case 13:g=h.sent(),t.width&&t.height&&this.ctx.drawImage(g,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),h.label=14;case 14:if(t instanceof Pn&&(B=Math.min(t.bounds.width,t.bounds.height),t.type===dr?t.checked&&(this.ctx.save(),this.path([new V(t.bounds.left+B*.39363,t.bounds.top+B*.79),new V(t.bounds.left+B*.16,t.bounds.top+B*.5549),new V(t.bounds.left+B*.27347,t.bounds.top+B*.44071),new V(t.bounds.left+B*.39694,t.bounds.top+B*.5649),new V(t.bounds.left+B*.72983,t.bounds.top+B*.23),new V(t.bounds.left+B*.84,t.bounds.top+B*.34085),new V(t.bounds.left+B*.39363,t.bounds.top+B*.79)]),this.ctx.fillStyle=xA(ja),this.ctx.fill(),this.ctx.restore()):t.type===fr&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+B/2,t.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=xA(ja),this.ctx.fill(),this.ctx.restore())),of(t)&&t.value.length){switch(u=this.createFontStyle(a),S=u[0],p=u[1],Q=this.fontMetrics.getMetrics(S,p).baseline,this.ctx.font=S,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=cf(t.styles.textAlign),E=Qr(t),C=0,t.styles.textAlign){case 1:C+=E.width/2;break;case 2:C+=E.width;break}x=E.add(C,0,0,-E.height/2+1),this.ctx.save(),this.path([new V(E.left,E.top),new V(E.left+E.width,E.top),new V(E.left+E.width,E.top+E.height),new V(E.left,E.top+E.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ct(t.value,x),a.letterSpacing,Q),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!EA(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(U=t.styles.listStyleImage,U.type!==0)return[3,18];y=void 0,L=U.url,h.label=15;case 15:return h.trys.push([15,17,,18]),[4,this.context.cache.match(L)];case 16:return y=h.sent(),this.ctx.drawImage(y,t.bounds.left-(y.width+10),t.bounds.top),[3,18];case 17:return h.sent(),this.context.logger.error("Error loading list-style-image "+L),[3,18];case 18:return[3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(S=this.createFontStyle(a)[0],this.ctx.font=S,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",E=new oe(t.bounds.left,t.bounds.top+wA(t.styles.paddingTop,t.bounds.width),t.bounds.width,ya(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ct(r.listValue,E),a.letterSpacing,ya(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),h.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(r){return OA(this,void 0,void 0,function(){var t,n,U,a,s,U,o,l,U,c,g,U,B,u,U,p,Q,U,C,x,U;return kA(this,function(y){switch(y.label){case 0:if(EA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:y.sent(),t=0,n=r.negativeZIndex,y.label=2;case 2:return t<n.length?(U=n[t],[4,this.renderStack(U)]):[3,5];case 3:y.sent(),y.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:y.sent(),a=0,s=r.nonInlineLevel,y.label=7;case 7:return a<s.length?(U=s[a],[4,this.renderNode(U)]):[3,10];case 8:y.sent(),y.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,y.label=11;case 11:return o<l.length?(U=l[o],[4,this.renderStack(U)]):[3,14];case 12:y.sent(),y.label=13;case 13:return o++,[3,11];case 14:c=0,g=r.nonPositionedInlineLevel,y.label=15;case 15:return c<g.length?(U=g[c],[4,this.renderStack(U)]):[3,18];case 16:y.sent(),y.label=17;case 17:return c++,[3,15];case 18:B=0,u=r.inlineLevel,y.label=19;case 19:return B<u.length?(U=u[B],[4,this.renderNode(U)]):[3,22];case 20:y.sent(),y.label=21;case 21:return B++,[3,19];case 22:p=0,Q=r.zeroOrAutoZIndexOrTransformedOrOpacity,y.label=23;case 23:return p<Q.length?(U=Q[p],[4,this.renderStack(U)]):[3,26];case 24:y.sent(),y.label=25;case 25:return p++,[3,23];case 26:C=0,x=r.positiveZIndex,y.label=27;case 27:return C<x.length?(U=x[C],[4,this.renderStack(U)]):[3,30];case 28:y.sent(),y.label=29;case 29:return C++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},A.prototype.formatPath=function(r){var t=this;r.forEach(function(n,a){var s=PA(n)?n.start:n;a===0?t.ctx.moveTo(s.x,s.y):t.ctx.lineTo(s.x,s.y),PA(n)&&t.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(r,t,n,a){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},A.prototype.resizeImage=function(r,t,n){var a;if(r.width===t&&r.height===n)return r;var s=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=s.createElement("canvas");o.width=Math.max(1,t),o.height=Math.max(1,n);var l=o.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,t,n),o},A.prototype.renderBackgroundImage=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l;return kA(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,n=function(g){var B,u,p,R,tA,AA,D,z,M,Q,R,tA,AA,D,z,C,x,U,y,L,S,E,h,I,M,k,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,H,j,_;return kA(this,function(F){switch(F.label){case 0:if(g.type!==0)return[3,5];B=void 0,u=g.url,F.label=1;case 1:return F.trys.push([1,3,,4]),[4,a.context.cache.match(u)];case 2:return B=F.sent(),[3,4];case 3:return F.sent(),a.context.logger.error("Error loading background-image "+u),[3,4];case 4:return B&&(p=tn(r,t,[B.width,B.height,B.width/B.height]),R=p[0],tA=p[1],AA=p[2],D=p[3],z=p[4],M=a.ctx.createPattern(a.resizeImage(B,D,z),"repeat"),a.renderRepeat(R,M,tA,AA)),[3,6];case 5:Xg(g)?(Q=tn(r,t,[null,null,null]),R=Q[0],tA=Q[1],AA=Q[2],D=Q[3],z=Q[4],C=_g(g.angle,D,z),x=C[0],U=C[1],y=C[2],L=C[3],S=C[4],E=document.createElement("canvas"),E.width=D,E.height=z,h=E.getContext("2d"),I=h.createLinearGradient(U,L,y,S),Fa(g.stops,x).forEach(function(N){return I.addColorStop(N.stop,xA(N.color))}),h.fillStyle=I,h.fillRect(0,0,D,z),D>0&&z>0&&(M=a.ctx.createPattern(E,"repeat"),a.renderRepeat(R,M,tA,AA))):Jg(g)&&(k=tn(r,t,[null,null,null]),R=k[0],O=k[1],Z=k[2],D=k[3],z=k[4],eA=g.position.length===0?[_n]:g.position,tA=wA(eA[0],D),AA=wA(eA[eA.length-1],z),dA=Gg(g,tA,AA,D,z),aA=dA[0],q=dA[1],aA>0&&q>0&&(lA=a.ctx.createRadialGradient(O+tA,Z+AA,0,O+tA,Z+AA,aA),Fa(g.stops,aA*2).forEach(function(N){return lA.addColorStop(N.stop,xA(N.color))}),a.path(R),a.ctx.fillStyle=lA,aA!==q?(sA=r.bounds.left+.5*r.bounds.width,H=r.bounds.top+.5*r.bounds.height,j=q/aA,_=1/j,a.ctx.save(),a.ctx.translate(sA,H),a.ctx.transform(1,0,0,j,0,0),a.ctx.translate(-sA,-H),a.ctx.fillRect(O,_*(Z-H)+H,D,z*_),a.ctx.restore()):a.ctx.fill())),F.label=6;case 6:return t--,[2]}})},a=this,s=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(r,t,n){return OA(this,void 0,void 0,function(){return kA(this,function(a){return this.path(es(n,t)),this.ctx.fillStyle=xA(r),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(r,t,n,a){return OA(this,void 0,void 0,function(){var s,o;return kA(this,function(l){switch(l.label){case 0:return t<3?[4,this.renderSolidBorder(r,n,a)]:[3,2];case 1:return l.sent(),[2];case 2:return s=Zd(a,n),this.path(s),this.ctx.fillStyle=xA(r),this.ctx.fill(),o=zd(a,n),this.path(o),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,c,g,B=this;return kA(this,function(u){switch(u.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,n=!pe(t.backgroundColor)||t.backgroundImage.length,a=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],s=lf(De(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),pe(t.backgroundColor)||(this.ctx.fillStyle=xA(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(p){B.ctx.save();var Q=pr(r.curves),C=p.inset?0:af,x=Wd(Q,-C+(p.inset?1:-1)*p.spread.number,(p.inset?1:-1)*p.spread.number,p.spread.number*(p.inset?-2:2),p.spread.number*(p.inset?-2:2));p.inset?(B.path(Q),B.ctx.clip(),B.mask(x)):(B.mask(Q),B.ctx.clip(),B.path(x)),B.ctx.shadowOffsetX=p.offsetX.number+C,B.ctx.shadowOffsetY=p.offsetY.number,B.ctx.shadowColor=xA(p.color),B.ctx.shadowBlur=p.blur.number,B.ctx.fillStyle=p.inset?xA(p.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),u.label=2;case 2:o=0,l=0,c=a,u.label=3;case 3:return l<c.length?(g=c[l],g.style!==0&&!pe(g.color)&&g.width>0?g.style!==2?[3,5]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return g.style!==3?[3,7]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,3)];case 6:return u.sent(),[3,11];case 7:return g.style!==4?[3,9]:[4,this.renderDoubleBorder(g.color,g.width,o,r.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(g.color,o,r.curves)];case 10:u.sent(),u.label=11;case 11:o++,u.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(r,t,n,a,s){return OA(this,void 0,void 0,function(){var o,l,c,g,B,u,p,Q,C,x,U,y,L,S,E,h,E,h;return kA(this,function(I){return this.ctx.save(),o=qd(a,n),l=es(a,n),s===2&&(this.path(l),this.ctx.clip()),PA(l[0])?(c=l[0].start.x,g=l[0].start.y):(c=l[0].x,g=l[0].y),PA(l[1])?(B=l[1].end.x,u=l[1].end.y):(B=l[1].x,u=l[1].y),n===0||n===2?p=Math.abs(c-B):p=Math.abs(g-u),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),Q=t<3?t*3:t*2,C=t<3?t*2:t,s===3&&(Q=t,C=t),x=!0,p<=Q*2?x=!1:p<=Q*2+C?(U=p/(2*Q+C),Q*=U,C*=U):(y=Math.floor((p+C)/(Q+C)),L=(p-y*Q)/(y-1),S=(p-(y+1)*Q)/y,C=S<=0||Math.abs(C-L)<Math.abs(C-S)?L:S),x&&(s===3?this.ctx.setLineDash([0,Q+C]):this.ctx.setLineDash([Q,C])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=xA(r),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(PA(l[0])&&(E=l[3],h=l[0],this.ctx.beginPath(),this.formatPath([new V(E.end.x,E.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke()),PA(l[1])&&(E=l[1],h=l[2],this.ctx.beginPath(),this.formatPath([new V(E.end.x,E.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Yd(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(_i),of=function(e){return e instanceof Fi||e instanceof Ui?!0:e instanceof Pn&&e.type!==fr&&e.type!==dr},lf=function(e,A){switch(e){case 0:return pr(A);case 2:return jd(A);default:return Cr(A)}},cf=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},gf=["-apple-system","system-ui"],uf=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return gf.indexOf(A)===-1}):e},Bf=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),n}return A.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t,n;return kA(this,function(a){switch(a.label){case 0:return t=Hn(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,df(t)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A})(_i),df=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},ff=(function(){function e(A){var r=A.id,t=A.enabled;this.id=r,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,It([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,It([this.id,this.getTime()+"ms"],A))},e.prototype.warn=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,It([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.error=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,It([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e})(),hf=(function(){function e(A,r){var t;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new ff({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new Kd(this,A)}return e.instanceCount=1,e})(),wf=function(e,A){return A===void 0&&(A={}),pf(e,A)};typeof window<"u"&&Ki.setContext(window);var pf=function(e,A){return OA(void 0,void 0,void 0,function(){var r,t,n,a,s,o,l,c,g,B,u,p,Q,C,x,U,y,L,S,E,I,h,I,M,k,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,H,j;return kA(this,function(_){switch(_.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return n={allowTaint:(M=A.allowTaint)!==null&&M!==void 0?M:!1,imageTimeout:(k=A.imageTimeout)!==null&&k!==void 0?k:15e3,proxy:A.proxy,useCORS:(R=A.useCORS)!==null&&R!==void 0?R:!1},a=fn({logging:(O=A.logging)!==null&&O!==void 0?O:!0,cache:A.cache},n),s={windowWidth:(Z=A.windowWidth)!==null&&Z!==void 0?Z:t.innerWidth,windowHeight:(D=A.windowHeight)!==null&&D!==void 0?D:t.innerHeight,scrollX:(z=A.scrollX)!==null&&z!==void 0?z:t.pageXOffset,scrollY:(eA=A.scrollY)!==null&&eA!==void 0?eA:t.pageYOffset},o=new oe(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new hf(a,o),c=(tA=A.foreignObjectRendering)!==null&&tA!==void 0?tA:!1,g={allowTaint:(AA=A.allowTaint)!==null&&AA!==void 0?AA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),B=new qa(l,e,g),u=B.clonedReferenceElement,u?[4,B.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=_.sent(),Q=Xn(u)||pd(u)?Wl(u.ownerDocument):Ur(l,u),C=Q.width,x=Q.height,U=Q.left,y=Q.top,L=Cf(l,u,A.backgroundColor),S={canvas:A.canvas,backgroundColor:L,scale:(aA=(dA=A.scale)!==null&&dA!==void 0?dA:t.devicePixelRatio)!==null&&aA!==void 0?aA:1,x:((q=A.x)!==null&&q!==void 0?q:0)+U,y:((lA=A.y)!==null&&lA!==void 0?lA:0)+y,width:(sA=A.width)!==null&&sA!==void 0?sA:Math.ceil(C),height:(H=A.height)!==null&&H!==void 0?H:Math.ceil(x)},c?(l.logger.debug("Document cloned, using foreign object rendering"),I=new Bf(l,S),[4,I.render(u)]):[3,3];case 2:return E=_.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+U+","+y+" with size "+C+"x"+x+" using computed rendering"),l.logger.debug("Starting DOM parsing"),h=Ei(l,u),L===h.styles.backgroundColor&&(h.styles.backgroundColor=ie.TRANSPARENT),l.logger.debug("Starting renderer for element at "+S.x+","+S.y+" with size "+S.width+"x"+S.height),I=new sf(l,S),[4,I.render(h)];case 4:E=_.sent(),_.label=5;case 5:return(!((j=A.removeContainer)!==null&&j!==void 0)||j)&&(qa.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,E]}})})},Cf=function(e,A,r){var t=A.ownerDocument,n=t.documentElement?ot(e,getComputedStyle(t.documentElement).backgroundColor):ie.TRANSPARENT,a=t.body?ot(e,getComputedStyle(t.body).backgroundColor):ie.TRANSPARENT,s=typeof r=="string"?ot(e,r):r===null?ie.TRANSPARENT:4294967295;return A===t.documentElement?pe(n)?pe(a)?s:a:n:s},rn={body:{background:"rgb(32, 32, 32)"},rbgcpInputLabel:{color:"rgb(212, 212, 212)"},rbgcpControlBtnWrapper:{background:"rgb(54, 54, 54)"},rbgcpInput:{border:"none",color:"white",background:"rgb(54, 54, 54)"},rbgcpControlBtn:{color:"rgb(212, 212, 212)"},rbgcpControlIcon:{stroke:"rgb(212, 212, 212)"},rbgcpControlIcon2:{fill:"rgb(212, 212, 212)"},rbgcpControlInput:{color:"white"},rbgcpControlBtnSelected:{background:"black",color:"#568cf5"},rbgcpDegreeIcon:{color:"rgb(212, 212, 212)"},rbgcpColorModelDropdown:{background:"rgb(32, 32, 32)"},rbgcpComparibleLabel:{color:"rgb(212, 212, 212)"}},IA=function(){return IA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},IA.apply(this,arguments)},Qf={body:{boxSizing:"border-box",background:"rgb(255, 255, 255)"},rbgcpControlBtn:{paddingLeft:"8px",paddingRight:"8px",lineHeight:"1",borderRadius:"4px",fontWeight:700,fontSize:"12px",height:"24px",transition:"all 160ms ease",display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0)",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0)",color:"rgb(86, 86, 86)"},rbgcpControlIcon:{stroke:"rgb(50, 49, 54)"},rbgcpControlIconBtn:{width:"30px",height:"24px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},rbgcpControlBtnWrapper:{height:"28px",background:"#e9e9f5",borderRadius:"6px",padding:"2px",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},rbgcpColorModelDropdown:{position:"absolute",right:"-2px",top:"34px",padding:"5px",background:"#e9e9f5",zIndex:1e8,borderRadius:"6px",boxShadow:"1px 1px 14px 1px rgba(0, 0, 0, 0.25)"},rbgcpEyedropperCover:{position:"fixed",left:"0px",top:"0px",zIndex:1e8,width:"100vw",height:"100vh",cursor:"copy"},rbgcpControlInput:{height:"24px",borderRadius:"4px",border:"none",outline:"none",textAlign:"center",width:"34px",fontWeight:500,color:"rgb(50, 49, 54)",fontSize:"13px",background:"transparent"},rbgcpInputLabel:{textAlign:"center",lineHeight:"1.2",fontWeight:700,color:"rgb(86, 86, 86)",fontSize:"11px"},rbgcpInput:{height:"32px",borderRadius:"6px",border:"1px solid #bebebe",width:"100%",padding:"2px",outline:"none",color:"black",fontWeight:400,textAlign:"center",background:"transparent",fontSize:"15px"},rbgcpHandle:{position:"absolute",border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 30ms linear",boxSizing:"border-box",willChange:"transform",outline:"none"},rbgcpCanvasWrapper:{borderRadius:"6px",overflow:"hidden",height:"294px"},rbgcpCheckered:{background:`linear-gradient(
+ 45deg,
+ rgba(0, 0, 0, 0.18) 25%,
+ transparent 25%,
+ transparent 75%,
+ rgba(0, 0, 0, 0.18) 75%,
+ rgba(0, 0, 0, 0.18) 0
+ ),
+ linear-gradient(
+ 45deg,
+ rgba(0, 0, 0, 0.18) 25%,
+ transparent 25%,
+ transparent 75%,
+ rgba(0, 0, 0, 0.18) 75%,
+ rgba(0, 0, 0, 0.18) 0
+ ),
+ white`,backgroundRepeat:"repeat, repeat",backgroundPosition:"0px 0, 7px 7px",transformOrigin:"0 0 0",backgroundOrigin:"padding-box, padding-box",backgroundClip:"border-box, border-box",backgroundSize:"14px 14px, 14px 14px",boxShadow:"none",textShadow:"none",transition:"none",transform:"scaleX(1) scaleY(1) scaleZ(1)",borderRadius:"10px"},rbgcpOpacityOverlay:{position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",borderRadius:"10px"},rbgcpGradientHandleWrap:{position:"absolute",zIndex:1e4,top:"-2px",outline:"none"},rbgcpGradientHandle:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"},rbgcpControlIcon2:{fill:"#323136"},rbgcpControlBtnSelected:{background:"white",color:"#568cf5",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0.2)"},rbgcpComparibleLabel:{color:"#323136"}},mf=function(e,A){var r=IA({},Qf);if(e)for(var t in rn)Object.prototype.hasOwnProperty.call(rn,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),rn[t]));for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),A[t]));return r},rs=function(e,A){return e?IA(IA({},A.rbgcpControlBtn),A.rbgcpControlBtnSelected):IA({},A.rbgcpControlBtn)},ut=function(e,A){return e?IA(IA({},A.rbgcpControlIconBtn),A.rbgcpControlBtnSelected):IA({},A.rbgcpControlIconBtn)},qt=function(e,A){return e?IA(IA(IA({},A.rbgcpControlBtn),A.rbgcpColorModelDropdownBtn),A.rbgcpControlBtnSelected):IA(IA({},A.rbgcpControlBtn),A.rbgcpColorModelDropdownBtn)},$A=function(){return $A=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},$A.apply(this,arguments)},vf=function(e){var A=e.color,r=BA().defaultStyles,t=A??"";return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:16}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:$A($A({fill:"none",strokeWidth:"1.4px"},r.rbgcpControlIcon),t&&{stroke:t}),d:"M15.6,7h0L7.78,14.86c-.37.37-1.61.38-2,.75s-.5,1.53-.76,2a3.53,3.53,0,0,1-.52.52,1.6,1.6,0,0,1-2.27-.06l-.32-.32a1.61,1.61,0,0,1-.06-2.27A3.25,3.25,0,0,1,2.4,15c.47-.26,1.65-.35,2-.73s.34-1.64.71-2c1.68-1.73,5.61-5.65,7.91-7.93h0l1.14,1.38L15.6,7Z"}),m.createElement("polygon",{strokeLinecap:"round",strokeLinejoin:"round",style:$A($A({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),points:"15.7 8.87 11.13 4.29 12.69 2.73 17.25 7.31 15.7 8.87"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:$A($A({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),d:"M18.18,3.71,16.36,5.53a1.33,1.33,0,0,1-1.88,0h0a1.34,1.34,0,0,1,0-1.89l1.81-1.82a1.34,1.34,0,0,1,1.89,0h0A1.34,1.34,0,0,1,18.18,3.71Z"}))},Uf=function(e){var A=e.onSelect,r=BA().defaultStyles,t=b.useState(null),n=t[0],a=t[1],s=b.useState(!1),o=s[0],l=s[1],c=b.useState(!1),g=c[0],B=c[1],u=function(){var C=document.getElementById("root");l(!0),wf(C).then(function(x){var U=document.createElement("canvas"),y=U.getContext("2d",{willReadFrequently:!0});C&&y&&(U.width=C.offsetWidth*2,U.height=C.offsetHeight*2,y.drawImage(x,0,0)),a(y)})},p=function(C){if(C.stopPropagation(),n){var x=C.pageX,U=C.pageY,y=x*2,L=U*2,S=n.getImageData(y,L,1,1).data;A("rgba(".concat(S[0],", ").concat(S[1],", ").concat(S[2],", 1)"))}B(!1),l(!1)},Q=function(){if(B(!0),!window.EyeDropper)u();else{var C=new window.EyeDropper,x=new window.AbortController;C.open({signal:x.signal}).then(function(U){var y=SA(U.sRGBHex),L=y.toRgb(),S=L.r,E=L.g,h=L.b;A("rgba(".concat(S,", ").concat(E,", ").concat(h,", 1)")),B(!1)}).catch(function(U){console.log(U),B(!1)})}};return m.createElement("div",null,m.createElement("div",{onClick:Q,id:"rbgcp-eyedropper-btn",style:$A($A({},r.rbgcpEyedropperBtn),ut(o,r))},m.createElement(vf,{color:g?"rgb(86, 140, 245)":""})),o&&m.createElement(Jl,null,m.createElement("div",{onClick:function(C){return p(C)},style:r.rbgcpEyedropperCover})))},Dn=function(){return Dn=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Dn.apply(this,arguments)},nn=function(e){var A=e.value,r=e.reffy,t=e.label,n=e.config,a=e.callback,s=e.squareWidth,o=e.openAdvanced,l=e.defaultStyles,c=e.pickerIdSuffix,g=n.barSize,B=b.useState(!1),u=B[0],p=B[1],Q=b.useState(2),C=Q[0],x=Q[1],U=A*(s-18);b.useEffect(function(){var h;x(((h=r?.current)===null||h===void 0?void 0:h.offsetTop)-2)},[o,r]);var y=function(){p(!1)},L=function(h){u&&a(Ge(h,g))},S=function(h){u||a(Ge(h,g))},E=function(){p(!0)};return b.useEffect(function(){var h=function(){y()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{style:{width:"100%",padding:"3px 0px 3px 0px"}},m.createElement("div",{onMouseMove:function(h){return L(h)},style:{cursor:"resize",position:"relative"},id:"rbgcp-advanced-bar-".concat(t,"-wrapper").concat(c)},m.createElement("div",{style:Dn({left:U,top:C},l.rbgcpHandle),id:"rbgcp-advanced-bar-".concat(t,"-handle").concat(c),onMouseDown:E,role:"button",tabIndex:0}),m.createElement("div",{style:{textAlign:"center",color:"#fff",fontSize:12,fontWeight:500,lineHeight:1,position:"absolute",left:"50%",transform:"translate(-50%, 0%)",top:C+2,zIndex:10,textShadow:"1px 1px 1px rgba(0,0,0,.6)"},id:"rbgcp-advanced-bar-".concat(t,"-label").concat(c),onMouseMove:function(h){return L(h)},onClick:function(h){return S(h)},tabIndex:0,role:"button",onKeyDown:function(){}},t),m.createElement("canvas",{ref:r,height:"14px",width:"".concat(s,"px"),onClick:function(h){return S(h)},style:{position:"relative",borderRadius:14},id:"rbgcp-advanced-bar-".concat(t,"-canvas").concat(c)})))},Ff=function(e){var A=e.openAdvanced,r=BA(),t=r.config,n=r.tinyColor,a=r.handleChange,s=r.squareWidth,o=r.hc,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.toHsl(),B=g.s,u=g.l,p=b.useRef(null),Q=b.useRef(null),C=b.useRef(null);hl(p,o?.h,u*100,s),wl(Q,o?.h,B*100,s),pl(C,o?.h,B*100,s);var x=function(L){var S=SA({h:o?.h,s:L/100,l:u}).toRgb(),E=S.r,h=S.g,I=S.b;a("rgba(".concat(E,",").concat(h,",").concat(I,",").concat(o?.a,")"))},U=function(L){var S=SA({h:o?.h,s:B,l:L/100}).toRgb(),E=S.r,h=S.g,I=S.b;a("rgba(".concat(E,",").concat(h,",").concat(I,",").concat(o?.a,")"))},y=function(L){var S=SA({h:o?.h,s:o?.s*100,v:L}).toRgb(),E=S.r,h=S.g,I=S.b;a("rgba(".concat(E,",").concat(h,",").concat(I,",").concat(o?.a,")"))};return m.createElement("div",{style:{width:"100%",height:A?98:0,transition:"all 120ms linear"},id:"rbgcp-advanced-controls-wrapper".concat(c)},m.createElement("div",{style:{paddingTop:11,display:A?"flex":"none",flexDirection:"column",justifyContent:"space-between",height:A?98:0,overflow:"hidden",transition:"height 100ms linear"},id:"rbgcp-advanced-controls-inner".concat(c)},m.createElement(nn,{value:B,reffy:p,config:t,label:"Saturation",callback:x,squareWidth:s,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),m.createElement(nn,{value:u,config:t,reffy:Q,label:"Lightness",callback:U,squareWidth:s,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),m.createElement(nn,{value:o?.v,config:t,reffy:C,label:"Brightness",callback:y,squareWidth:s,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c})))},ye=function(){return ye=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},ye.apply(this,arguments)},bf=function(e){var A=e.openComparibles,r=BA(),t=r.tinyColor,n=r.handleChange,a=r.defaultStyles,s=r.pickerIdSuffix,o=t.analogous(),l=t.monochromatic(),c=t.triad(),g=t.tetrad(),B=function(u){var p=u.toRgb(),Q=p.r,C=p.g,x=p.b,U=p.a;n("rgba(".concat(Q,",").concat(C,",").concat(x,",").concat(U,")"))};return m.createElement("div",{style:{width:"100%",transition:"all 120ms linear",height:A?216:0},id:"rbgcp-comparible-colors-wrapper".concat(s)},m.createElement("div",{style:{paddingTop:11,display:A?"":"none",position:"relative"},id:"rbgcp-comparible-colors-inner".concat(s)},m.createElement("div",{style:ye({textAlign:"center",fontSize:13,fontWeight:600,position:"absolute",top:6.5,left:2},a.rbgcpComparibleLabel),id:"rbgcp-comparible-color-guide-label".concat(s)},"Color Guide"),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-analogous-colors-label".concat(s)},"Analogous"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex"},id:"rbgcp-comparible-analogous-colors".concat(s)},o?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-analogous-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-monochromatic-colors-label".concat(s)},"Monochromatic"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-monochromatic-colors".concat(s)},l?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-monochromatic-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-triad-colors-label".concat(s)},"Triad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-triad-colors".concat(s)},c?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-triad-color-".concat(p).concat(s),style:{width:"calc(100% / 3)",height:28,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-tetrad-colors-label".concat(s)},"Tetrad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-tetrad-colors".concat(s)},g?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-tetrad-color-".concat(p).concat(s),style:{width:"25%",height:28,background:u.toHexString()},onClick:function(){return B(u)}})}))))},CA=function(){return CA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},CA.apply(this,arguments)},yf=function(){var e=BA(),A=e.gradientType,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,s=A==="linear-gradient",o=A==="radial-gradient",l=function(){var g=t.split(/,(.+)/)[1];r("linear-gradient(90deg, ".concat(g))},c=function(){var g=t.split(/,(.+)/)[1];r("radial-gradient(circle, ".concat(g))};return m.createElement("div",{style:n.rbgcpControlBtnWrapper},m.createElement("div",{onClick:l,id:"rbgcp-linear-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),s&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Rl,{color:s?"#568CF5":""})),m.createElement("div",{onClick:c,id:"rbgcp-radial-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),o&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Nl,{color:o?"#568CF5":""})))},Ef=function(){var e=BA(),A=e.currentLeft,r=e.currentColor,t=e.defaultStyles,n=e.handleGradient,a=e.pickerIdSuffix,s=function(o){n(r,_e(parseInt(o),0,100))};return m.createElement("div",{style:CA(CA(CA(CA({},t.rbgcpControlBtnWrapper),t.rbgcpControlInputWrap),t.rbgcpStopInputWrap),{paddingLeft:8}),id:"rbgcp-stop-input-wrapper".concat(a)},m.createElement(Pl,null),m.createElement("input",{value:A,id:"rbgcp-stop-input".concat(a),onChange:function(o){return s(o.target.value)},style:CA(CA({},t.rbgcpControlInput),t.rbgcpStopInput)}))},xf=function(){var e=BA(),A=e.degrees,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,s=function(o){var l=_e(o.target.value,0,360),c=t.split(/,(.+)/)[1];r("linear-gradient(".concat(l??0,"deg, ").concat(c))};return m.createElement("div",{style:CA(CA(CA({},n.rbgcpControlBtnWrapper),n.rbgcpControlInputWrap),n.rbgcpDegreeInputWrap),id:"rbgcp-degree-input-wrapper".concat(a)},m.createElement(Vl,null),m.createElement("input",{value:A,onChange:function(o){return s(o)},id:"rbgcp-degree-input".concat(a),style:CA(CA({},n.rbgcpControlInput),n.rbgcpDegreeInput)}),m.createElement("div",{style:CA(CA({},n.rbgcpDegreeIcon),{position:"absolute",right:A>99?0:A<10?7:3,top:1,fontWeight:400,fontSize:13})},"°"))},If=function(){var e=BA(),A=e.colors,r=e.selectedColor,t=e.createGradientStr,n=e.defaultStyles,a=e.pickerIdSuffix,s=function(){if(A?.length>2){var o=A?.map(function(c,g){return CA(CA({},c),{value:g===r-1?vr(c):vt(c)})}),l=o?.filter(function(c,g){return g!==r});t(l)}};return m.createElement("div",{onClick:s,style:CA(CA({},ut(!1,n)),{width:28}),id:"rbgcp-point-delete-btn".concat(a),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Ol,null))},ns=function(e){var A=e.hideGradientType,r=e.hideGradientAngle,t=e.hideGradientStop,n=BA(),a=n.gradientType,s=n.defaultStyles,o=n.pickerIdSuffix;return m.createElement("div",{style:CA(CA({},s.rbgcpControlBtnWrapper),{marginTop:12,marginBottom:-4,justifyContent:"space-between",paddingLeft:A?4:0}),id:"rbgcp-gradient-controls-wrap".concat(o)},!A&&m.createElement(yf,null),m.createElement("div",{style:{width:53}},!r&&a==="linear-gradient"&&m.createElement(xf,null)),!t&&m.createElement(Ef,null),m.createElement(If,null))},Ct=function(){return Ct=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Ct.apply(this,arguments)},Hf=function(e){var A,r,t=e.hideColorTypeBtns,n=e.setGradient,a=e.isGradient,s=e.setSolid,o=e.locales,l=BA(),c=l.defaultStyles,g=l.pickerIdSuffix;return t?m.createElement("div",{style:{width:1}}):m.createElement("div",{style:Ct({display:"flex",alignItems:"center"},c.rbgcpControlBtnWrapper),id:"rbgcp-color-type-btns".concat(g)},m.createElement("div",{onClick:s,id:"rbgcp-solid-btn".concat(g),style:rs(!a,c)},(A=o?.CONTROLS)===null||A===void 0?void 0:A.SOLID),m.createElement("div",{onClick:n,id:"rbgcp-gradient-btn".concat(g),style:rs(a??!1,c)},(r=o?.CONTROLS)===null||r===void 0?void 0:r.GRADIENT))},Sf=function(e){var A=e.openInputType,r=e.setOpenInputType,t=BA(),n=t.inputType,a=t.setInputType,s=t.defaultStyles,o=t.pickerIdSuffix,l=A?"visibility 0ms linear":"visibility 100ms linear 150ms",c=A?"z-index 0ms linear":"z-index 100ms linear 150ms",g=A?"opacity 120ms linear":"opacity 150ms linear 50ms",B=function(u,p){A&&(u.stopPropagation(),a(p),r(!1))};return m.createElement("div",{style:Ct({visibility:A?"visible":"hidden",zIndex:A?"":-100,opacity:A?1:0,transition:"".concat(g,", ").concat(l,", ").concat(c)},s.rbgcpColorModelDropdown),id:"rbgcp-color-model-dropdown".concat(o)},m.createElement("div",{id:"rbgcp-color-model-rgb-btn".concat(o),onClick:function(u){return B(u,"rgb")},style:qt(n==="rgb",s)},"RGB"),m.createElement("div",{id:"rbgcp-color-model-hsl-btn".concat(o),onClick:function(u){return B(u,"hsl")},style:qt(n==="hsl",s)},"HSL"),m.createElement("div",{id:"rbgcp-color-model-hsv-btn".concat(o),onClick:function(u){return B(u,"hsv")},style:qt(n==="hsv",s)},"HSV"),m.createElement("div",{id:"rbgcp-color-model-cmyk-btn".concat(o),onClick:function(u){return B(u,"cmyk")},style:qt(n==="cmyk",s)},"CMYK"))},Lf=function(e){var A,r,t=e.locales,n=e.hideEyeDrop,a=n===void 0?!1:n,s=e.hideAdvancedSliders,o=s===void 0?!1:s,l=e.hideColorGuide,c=l===void 0?!1:l,g=e.hideInputType,B=g===void 0?!1:g,u=e.hideColorTypeBtns,p=u===void 0?!1:u,Q=e.hideGradientControls,C=Q===void 0?!1:Q,x=e.hideGradientType,U=x===void 0?!1:x,y=e.hideGradientAngle,L=y===void 0?!1:y,S=e.hideGradientStop,E=S===void 0?!1:S,h=BA(),I=h.config,M=h.onChange,k=h.isGradient,R=h.handleChange,O=h.previous,Z=h.defaultStyles,D=h.pickerIdSuffix,z=I.defaultColor,eA=I.defaultGradient,tA=b.useState(!1),AA=tA[0],dA=tA[1],aA=b.useState(!1),q=aA[0],lA=aA[1],sA=b.useState(!1),H=sA[0],j=sA[1],_=a&&o&&c&&B,F=(A=O?.color)!==null&&A!==void 0?A:z,N=(r=O?.gradient)!==null&&r!==void 0?r:eA,T=function(){M(F)},G=function(){M(N)},J=a&&o&&c&&B,$=J&&p;return $?k&&!C?m.createElement(ns,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:E}):null:m.createElement("div",{style:{paddingBottom:4}},m.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},id:"rbgcp-controls-wrapper".concat(D)},m.createElement(Hf,{hideColorTypeBtns:p,setGradient:G,isGradient:k,setSolid:T,locales:t}),!J&&m.createElement("div",{style:Ct({display:_?"none":""},Z.rbgcpControlBtnWrapper),id:"rbgcp-control-rightside-wrapper".concat(D)},!a&&m.createElement(Uf,{onSelect:R}),!o&&m.createElement("div",{id:"rbgcp-advanced-btn".concat(D),onClick:function(){return j(!H)},style:ut(H,Z)},m.createElement(_l,{color:H?"#568CF5":""})),!c&&m.createElement("div",{style:ut(AA,Z),onClick:function(){return dA(!AA)},id:"rbgcp-comparibles-btn".concat(D)},m.createElement(jl,{color:AA?"#568CF5":""})),!B&&m.createElement("div",{id:"rbgcp-color-model-btn".concat(D),onClick:function(){return lA(!q)},style:ut(q,Z)},m.createElement(Gl,{color:q?"#568CF5":""}),m.createElement(Sf,{openInputType:q,setOpenInputType:lA})))),!o&&m.createElement(Ff,{openAdvanced:H}),!c&&m.createElement(bf,{openComparibles:AA}),k&&!C&&m.createElement(ns,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:E}))},Ae=function(){return Ae=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Ae.apply(this,arguments)},as=function(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||Array.prototype.slice.call(A))},kf=function(e){var A=e.left,r=e.i,t=e.setDragging,n=BA(),a=n.colors,s=n.squareWidth,o=n.selectedColor,l=n.defaultStyles,c=n.pickerIdSuffix,g=n.createGradientStr,B=o===r,u=(s-18)/100,p=function(C){var x=a?.map(function(U,y){return Ae(Ae({},U),{value:y===C?vr(U):vt(U)})});g(x)},Q=function(C){C.stopPropagation(),p(r),t(!0)};return m.createElement("div",{onMouseDown:function(C){return Q(C)},id:"rbgcp-gradient-handle-".concat(r).concat(c),style:Ae(Ae({},l.rbgcpGradientHandleWrap),{left:(A??0)*u})},m.createElement("div",{style:Ae(Ae({},l.rbgcpGradientHandle),B?{boxShadow:"0px 0px 5px 1px rgba(86, 140, 245,.95)",border:"2px solid white"}:{}),id:"rbgcp-gradient-handle-".concat(r,"-dot").concat(c)},B&&m.createElement("div",{style:{width:5,height:5,borderRadius:"50%",background:"white"},id:"rbgcp-gradient-handle-".concat(r,"-selected-dot").concat(c)})))},Mf=function(){var e=BA(),A=e.value,r=e.colors,t=e.config,n=e.squareWidth,a=e.currentColor,s=e.handleGradient,o=e.pickerIdSuffix,l=e.createGradientStr,c=t.barSize,g=b.useState(!1),B=g[0],u=g[1];function p(L){return L.replace(/(radial|linear)-gradient\([^,]+,/,"linear-gradient(90deg,")}var Q=function(L){var S,E=Ge(L,c),h=(S=as(as([],r.map(function(I){return Ae(Ae({},I),{value:vt(I)})}),!0),[{value:a,left:E}],!1))===null||S===void 0?void 0:S.sort(function(I,M){return I.left-M.left});l(h)},C=function(){u(!1)},x=function(L){B||(Q(L),u(!0))},U=function(L){B&&s(a,Ge(L,c))},y=function(){C()};return b.useEffect(function(){return window.addEventListener("mouseup",y),function(){window.removeEventListener("mouseup",y)}}),m.createElement("div",{style:{width:"100%",marginTop:17,marginBottom:4,position:"relative"},id:"rbgcp-gradient-bar".concat(o)},m.createElement("div",{style:{height:14,borderRadius:10,width:n,backgroundImage:p(A)},onMouseDown:function(L){return x(L)},onMouseMove:function(L){return U(L)},id:"rbgcp-gradient-bar-canvas".concat(o)}),r?.map(function(L,S){return m.createElement(kf,{i:S,left:L.left,key:"".concat(S,"-").concat(L),setDragging:u})}))},Kf=function(e){var A=e.locales,r=e.presets,t=e.hideHue,n=e.hideInputs,a=e.hidePresets,s=e.hideOpacity,o=e.hideEyeDrop,l=e.hideControls,c=e.hideInputType,g=e.hideColorGuide,B=e.hidePickerSquare,u=e.hideGradientType,p=e.hideGradientStop,Q=e.hideGradientAngle,C=e.hideColorTypeBtns,x=e.hideAdvancedSliders,U=e.hideGradientControls,y=BA(),L=y.isGradient,S=y.pickerIdSuffix;return m.createElement("div",{style:{userSelect:"none"},id:"rbgcp-color-picker".concat(S)},!B&&m.createElement(kl,null),!l&&m.createElement(Lf,{locales:A,hideEyeDrop:o,hideInputType:c,hideColorGuide:g,hideGradientType:u,hideGradientStop:p,hideColorTypeBtns:C,hideGradientAngle:Q,hideAdvancedSliders:x,hideGradientControls:U}),L&&m.createElement(Mf,null),!t&&m.createElement(Cl,null),!s&&m.createElement(Ml,null),!n&&m.createElement(xl,null),!a&&m.createElement(Dl,{presets:r}))},mr=function(){return mr=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},mr.apply(this,arguments)};function Tf(e){var A=e.idSuffix,r=e.value,t=r===void 0?"rgba(175, 51, 242, 1)":r,n=e.onChange,a=e.hideControls,s=a===void 0?!1:a,o=e.hideInputs,l=o===void 0?!1:o,c=e.hideOpacity,g=c===void 0?!1:c,B=e.hidePresets,u=B===void 0?!1:B,p=e.hideHue,Q=p===void 0?!1:p,C=e.presets,x=C===void 0?[]:C,U=e.hideEyeDrop,y=U===void 0?!1:U,L=e.hideAdvancedSliders,S=L===void 0?!1:L,E=e.hideColorGuide,h=E===void 0?!1:E,I=e.hideInputType,M=I===void 0?!1:I,k=e.hideColorTypeBtns,R=k===void 0?!1:k,O=e.hideGradientType,Z=O===void 0?!1:O,D=e.hideGradientAngle,z=D===void 0?!1:D,eA=e.hideGradientStop,tA=eA===void 0?!1:eA,AA=e.hideGradientControls,dA=AA===void 0?!1:AA,aA=e.locales,q=aA===void 0?Kl:aA,lA=e.width,sA=lA===void 0?294:lA,H=e.height,j=H===void 0?294:H,_=e.style,F=_===void 0?{}:_,N=e.className,T=e.disableDarkMode,G=T===void 0?!1:T,J=e.disableLightMode,$=J===void 0?!1:J,pA=e.hidePickerSquare,f=pA===void 0?!1:pA,v=e.showHexAlpha,w=v===void 0?!1:v,K=e.config,W=K===void 0?{}:K,P=ll(t),oA=typeof window>"u"||G?!1:!!(window.matchMedia("(prefers-color-scheme: dark)").matches||$),fA=mf(oA,F),UA=oA?"-dark".concat(A?"-".concat(A):""):A?"-".concat(A):"";return m.createElement("div",{className:N,style:mr(mr({},fA.body),{width:sA})},m.createElement(dl,{value:P,onChange:n,squareWidth:sA,passedConfig:W,squareHeight:j,isDarkMode:oA,hideOpacity:g,showHexAlpha:w,defaultStyles:fA,pickerIdSuffix:UA},m.createElement(Kf,{hideControls:s,hideInputs:l,hidePresets:u,hideOpacity:g,hideHue:Q,presets:x,hideEyeDrop:y,hideAdvancedSliders:S,hideColorGuide:h,hideInputType:M,hideColorTypeBtns:R,hideGradientType:Z,hideGradientAngle:z,hideGradientStop:tA,hideGradientControls:dA,hidePickerSquare:f,locales:q})))}const an="rgb(0, 0, 0)",Df=()=>{const[e,A]=b.useState(localStorage.getItem("customBackgroundColour")||an),r=n=>{A(n),localStorage.setItem("customBackgroundColour",n),hA.emit("refresh","background")},t=()=>{A(an),localStorage.setItem("customBackgroundColour",an),RA(d.getMessage("toasts.reset")),hA.emit("refresh","background")};return i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.custom_colour")}),i.jsxs(cA,{children:[i.jsx(Tf,{value:e,onChange:r,hideEyeDrop:!0,hideColorGuide:!0,hidePresets:!0,hideAdvancedSliders:!1,hideColorTypeBtns:!1,hideInputType:!1,height:147}),i.jsx("div",{className:"colourReset",children:i.jsxs("span",{className:"link",onClick:()=>t(),children:[i.jsx(he,{}),d.getMessage("modals.main.settings.buttons.reset")]})})]})]})};var Of=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],ze=(e,A)=>{var r="";for(let t=1;t<=A;t++){let n=Math.floor(e)/Math.pow(83,A-t)%83;r+=Of[Math.floor(n)]}return r},sn=e=>{let A=e/255;return A<=.04045?A/12.92:Math.pow((A+.055)/1.055,2.4)},on=e=>{let A=Math.max(0,Math.min(1,e));return A<=.0031308?Math.trunc(A*12.92*255+.5):Math.trunc((1.055*Math.pow(A,.4166666666666667)-.055)*255+.5)},Rf=e=>e<0?-1:1,ln=(e,A)=>Rf(e)*Math.pow(Math.abs(e),A),ss=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},is=4,Nf=(e,A,r,t)=>{let n=0,a=0,s=0,o=A*is;for(let c=0;c<A;c++){let g=is*c;for(let B=0;B<r;B++){let u=g+B*o,p=t(c,B);n+=p*sn(e[u]),a+=p*sn(e[u+1]),s+=p*sn(e[u+2])}}let l=1/(A*r);return[n*l,a*l,s*l]},_f=e=>{let A=on(e[0]),r=on(e[1]),t=on(e[2]);return(A<<16)+(r<<8)+t},Gf=(e,A)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(ln(e[0]/A,.5)*9+9.5)))),t=Math.floor(Math.max(0,Math.min(18,Math.floor(ln(e[1]/A,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(ln(e[2]/A,.5)*9+9.5))));return r*19*19+t*19+n},jf=(e,A,r,t,n)=>{if(t<1||t>9||n<1||n>9)throw new ss("BlurHash must have between 1 and 9 components");if(A*r*4!==e.length)throw new ss("Width and height must match the pixels array");let a=[];for(let B=0;B<n;B++)for(let u=0;u<t;u++){let p=u==0&&B==0?1:2,Q=Nf(e,A,r,(C,x)=>p*Math.cos(Math.PI*u*C/A)*Math.cos(Math.PI*B*x/r));a.push(Q)}let s=a[0],o=a.slice(1),l="",c=t-1+(n-1)*9;l+=ze(c,1);let g;if(o.length>0){let B=Math.max(...o.map(p=>Math.max(...p))),u=Math.floor(Math.max(0,Math.min(82,Math.floor(B*166-.5))));g=(u+1)/166,l+=ze(u,1)}else g=1,l+=ze(0,1);return l+=ze(_f(s),4),o.forEach(B=>{l+=ze(Gf(B,g),2)}),l},Vf=jf;async function os(e){return new Promise((A,r)=>{const t=new Image;t.onload=()=>{A({width:t.width,height:t.height}),typeof e!="string"&&URL.revokeObjectURL(t.src)},t.onerror=()=>r(new Error("Failed to load image")),typeof e=="string"?t.src=e:t.src=URL.createObjectURL(e)})}async function ls(e,A=4,r=3){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{try{const s=document.createElement("canvas"),o=s.getContext("2d"),l=64,c=Math.min(l/a.width,l/a.height);s.width=Math.floor(a.width*c),s.height=Math.floor(a.height*c),o.drawImage(a,0,0,s.width,s.height);const g=o.getImageData(0,0,s.width,s.height),B=Vf(g.data,g.width,g.height,A,r);typeof e!="string"&&URL.revokeObjectURL(a.src),t(B)}catch(s){n(s)}},a.onerror=()=>n(new Error("Failed to load image for blur hash")),typeof e=="string"?a.src=e:a.src=URL.createObjectURL(e)})}function cn(e){const A=e.split(",")[1];if(!A)return 0;const r=(A.match(/=/g)||[]).length;return Math.floor(A.length*3/4-r)}function cs(e,A){return e&&e.name?e.name:`Image ${A+1}`}function Pf(){const e={};return Object.keys(localStorage).forEach(A=>{e[A]=localStorage.getItem(A)}),new TextEncoder().encode(JSON.stringify(e)).length}function me(e){if(e===0)return"0 Bytes";if(!e)return"Unknown";const A=1024,r=["Bytes","KB","MB","GB"],t=Math.floor(Math.log(e)/Math.log(A));return Math.round(e/Math.pow(A,t)*10)/10+" "+r[t]}const Xf=({files:e,onConfirm:A,onCancel:r})=>{const[t,n]=b.useState(""),a=()=>{A(t.trim())};return i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.tag_images")}),i.jsx("button",{className:"closeModal",onClick:r,children:i.jsx(hs,{})})]}),i.jsxs("div",{className:"taggingModalContent",children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.tag_description",{count:e.length})}),i.jsxs("div",{className:"taggingInput",children:[i.jsx("label",{children:d.getMessage("modals.main.settings.sections.background.source.folder_name")}),i.jsx("input",{type:"text",placeholder:d.getMessage("modals.main.settings.sections.background.source.folder_placeholder"),value:t,onChange:s=>n(s.target.value),onKeyPress:s=>{s.key==="Enter"&&a()},autoFocus:!0})]})]}),i.jsxs("div",{className:"resetFooter",children:[i.jsx(vA,{type:"settings",onClick:r,label:d.getMessage("modals.main.settings.buttons.cancel")}),i.jsx(vA,{type:"settings",onClick:a,label:d.getMessage("modals.main.settings.buttons.continue")})]})]})},gn=e=>{try{localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(e.length))}catch{}},Gi=b.memo(()=>{const[e,A]=b.useState([]),[r,t]=b.useState(!1),[n,a]=b.useState([]),[s,o]=b.useState(!0),[l,c]=b.useState(!1),[g,B]=b.useState({current:0,total:0}),[u,p]=b.useState(!1),[Q,C]=b.useState(new Set),[x,U]=b.useState(localStorage.getItem("customImageSort")||"date_desc"),[y,L]=b.useState(!1),[S,E]=b.useState({usage:0,quota:0}),h=b.useRef(null),I=b.useRef(0),M=5e7;b.useEffect(()=>{(async()=>{if(navigator.storage&&navigator.storage.estimate)try{const N=await navigator.storage.estimate();E({usage:N.usage||0,quota:N.quota||M})}catch(N){console.warn("Could not get storage estimate:",N),E({usage:0,quota:M})}else E({usage:0,quota:M})})()},[e]),b.useEffect(()=>{(async()=>{try{await uo();const N=await ve();A(N),N.forEach(async T=>{if(!T.dimensions&&T.url&&!yt(T.url))try{const G=await os(T.url),J=await ls(T.url);await Bo(T.id,{dimensions:G,blurHash:J});const $=await ve();A($)}catch(G){console.warn("Could not extract metadata for existing image:",G)}})}catch(N){console.error("Error loading backgrounds:",N),RA(d.getMessage("toasts.error"))}finally{o(!1)}})()},[]);const k=b.useCallback(async(F,N,T,G=!1)=>{try{const J={url:N,name:T.name,uploadDate:Date.now(),dimensions:T.dimensions,fileSize:T.fileSize,folder:T.folder||"",blurHash:T.blurHash};await rr(J);const $=await ve();A($),gn($),G||hA.emit("refresh","background")}catch(J){console.error("Error saving background:",J),RA(d.getMessage("toasts.error"))}},[]),R=async(F,N="")=>{const T=e.reduce((J,$)=>$.url&&$.url.startsWith("data:")?J+cn($.url):J,0),G=S.quota||M;if(T/G>.9&&navigator.storage&&navigator.storage.persist)try{await navigator.storage.persist()&&console.log("Storage persistence granted")}catch(J){console.warn("Could not request storage persistence:",J)}if(yt(F.type)){if(T+F.size>G)throw new Error("no_storage");const J=new FileReader;return new Promise(($,pA)=>{J.onloadend=()=>{$({dataUrl:J.result,metadata:{name:cs(F,e.length),dimensions:null,fileSize:F.size,folder:N,blurHash:null}})},J.onerror=pA,J.readAsDataURL(F)})}else{const J=await $n.compressAccurately(F,{size:450,accuracy:.9}),$=S.quota||M;if(T+J.size>$)throw new Error("no_storage");const pA=await $n.filetoDataURL(J),[f,v]=await Promise.all([os(pA),ls(pA).catch(()=>null)]);return{dataUrl:pA,metadata:{name:cs(F,e.length),dimensions:f,fileSize:cn(pA),folder:N,blurHash:v}}}},O=async(F,N="")=>{c(!0),B({current:0,total:F.length});const T=[];for(let G=0;G<F.length;G++)try{const J=await R(F[G],N);await k(F[G],J.dataUrl,J.metadata,!0),B({current:G+1,total:F.length})}catch(J){if(J.message==="no_storage"){RA(d.getMessage("toasts.no_storage"));break}T.push(F[G].name)}T.length>0&&RA(d.getMessage("toasts.error")+`: ${T.join(", ")}`),hA.emit("refresh","background"),c(!1),B({current:0,total:0})},Z=async F=>{t(!1),await O(n,F),a([])},D=b.useCallback(async(F,N)=>{try{F==="add"?await rr(""):await io(N);const T=await ve();A(T),gn(T),C(new Set),hA.emit("refresh","backgroundrefresh")}catch(T){console.error("Error modifying background:",T),RA(d.getMessage("toasts.error"))}},[]),z=async()=>{if(Q.size!==0)try{const F=Array.from(Q).sort((T,G)=>G-T);await fo(F);const N=await ve();A(N),C(new Set),gn(N),hA.emit("refresh","backgroundrefresh"),RA(d.getMessage("toasts.deleted"))}catch(F){console.error("Error batch deleting:",F),RA(d.getMessage("toasts.error"))}},eA=F=>{const N=new Set(Q);N.has(F)?N.delete(F):N.add(F),C(N)},tA=F=>{U(F),localStorage.setItem("customImageSort",F)},AA=b.useCallback(()=>{document.getElementById("bg-input").click()},[]),dA=async F=>{F.length>1?(a(F),t(!0)):await O(F,"")},aA=[...e].sort((F,N)=>{switch(x){case"date_asc":return F.uploadDate-N.uploadDate;case"date_desc":return N.uploadDate-F.uploadDate;case"name_asc":return(F.name||"").localeCompare(N.name||"");case"name_desc":return(N.name||"").localeCompare(F.name||"");case"size_asc":return(F.fileSize||0)-(N.fileSize||0);case"size_desc":return(N.fileSize||0)-(F.fileSize||0);default:return 0}}),q=e.reduce((F,N)=>N.url&&N.url.startsWith("data:")?F+cn(N.url):F,0),lA=S.quota||M,sA=q/lA*100,H=Pf(),j=5242880;b.useEffect(()=>{const F=h.current;if(!F)return;const N=$=>{$.preventDefault(),$.stopPropagation()},T=$=>{$.preventDefault(),$.stopPropagation(),I.current++,$.dataTransfer.items&&$.dataTransfer.items.length>0&&p(!0)},G=$=>{$.preventDefault(),$.stopPropagation(),I.current--,I.current===0&&p(!1)},J=async $=>{$.preventDefault(),$.stopPropagation(),p(!1),I.current=0;const pA=Array.from($.dataTransfer.files);pA.length!==0&&(pA.length>1?(a(pA),t(!0)):await O(pA,""))};return F.ondragover=N,F.ondragenter=T,F.ondragleave=G,F.ondrop=J,()=>{F&&(F.ondragover=null,F.ondragenter=null,F.ondragleave=null,F.ondrop=null)}},[e.length,O]);const _=aA.filter(F=>F&&yt(F.url)).length>0;return s?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.loading")})]})}):l?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.uploading",{current:g.current,total:g.total})}),i.jsxs("span",{className:"subtitle",children:[Math.round(g.current/g.total*100),"%"]})]})}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`dropzone ${u?"dragging":""}`,ref:h,style:u?{outline:"2px dashed #ff5c25",outlineOffset:"-2px",backgroundColor:"rgba(255, 92, 37, 0.1)",transition:"all 0.2s ease"}:{},children:[i.jsxs("div",{className:"imagesTopBar",children:[i.jsxs("div",{className:"imagesTopBarTitle",children:[i.jsx(zn,{}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.custom_title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.custom_description")})]})]}),i.jsx("div",{className:"topbarbuttons",children:i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(oo,{}),label:d.getMessage("modals.main.settings.sections.background.source.upload")})})]}),i.jsxs("div",{className:"imagesControlBar",children:[i.jsxs("div",{className:"controlBarLeft",children:[i.jsxs("span",{className:"image-count",children:[e.length," ",e.length===1?"image":"images",i.jsxs("span",{className:"storage-info",children:[" ","· ",me(q)," / ",me(lA),sA>80&&navigator.storage&&navigator.storage.persist&&i.jsx(qn,{title:"Request persistent storage to prevent browser from automatically clearing your images",children:i.jsx("button",{className:"request-storage-link",onClick:async()=>{try{await navigator.storage.persist()?RA("Persistent storage granted - your images are protected from eviction"):RA("Persistent storage denied - images may be cleared if storage is low")}catch(F){console.error("Storage request error:",F),RA("Could not request persistent storage")}},children:"Protect images"})})]})]}),i.jsx("span",{className:"selection-separator",children:"·"}),Q.size>0?i.jsxs(i.Fragment,{children:[i.jsxs("span",{className:"selected-count",children:[Q.size," selected"]}),i.jsx("button",{className:"delete-link",onClick:z,children:"Delete"}),Q.size<e.length&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(e.map((N,T)=>T));C(F)},children:"Select all"}),Q.size===e.length&&i.jsx("button",{className:"select-all-link",onClick:()=>C(new Set),children:"Deselect all"})]}):e.length>0&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(e.map((N,T)=>T));C(F)},children:"Select all"})]}),i.jsx("div",{className:"controlBarRight",children:i.jsx(KA,{name:"customImageSort",category:"customImageSort",onChange:tA,items:[{value:"date_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_newest")},{value:"date_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_oldest")},{value:"name_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_asc")},{value:"name_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_desc")},{value:"size_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_small")},{value:"size_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_large")}]})})]}),i.jsx("div",{className:"dropzone-content",children:aA.length>0?i.jsx("div",{className:`images-grid ${Q.size>0?"selection-mode":""}`,children:aA.map(F=>{const N=e.findIndex(G=>G===F),T=F&&yt(F.url);return i.jsxs("div",{className:"image-card",onClick:G=>{G.target.closest(".delete-button")||eA(N)},children:[i.jsx("div",{className:"image-checkbox",children:i.jsx("input",{type:"checkbox",checked:Q.has(N),onChange:()=>eA(N)})}),i.jsxs("div",{className:"image-preview",children:[F.blurHash&&!T&&(()=>{const G=lo(F.blurHash,32,32);return G?i.jsx("div",{className:"blur-placeholder",style:{backgroundImage:`url(${G})`,filter:"blur(20px)",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}}):null})(),T?i.jsx("div",{className:"video-icon-wrapper",children:i.jsx(co,{className:"customvideoicon"})}):i.jsx("img",{alt:F.name||"Custom background",src:F.url,loading:"lazy",style:{position:"relative",zIndex:1}})]}),i.jsxs("div",{className:"image-metadata",children:[i.jsx("span",{className:"image-name",title:F.name,children:F.name||"Unnamed"}),i.jsxs("div",{className:"image-details",children:[F.dimensions&&i.jsxs("span",{className:"detail",children:[F.dimensions.width," × ",F.dimensions.height]}),F.fileSize&&i.jsx("span",{className:"detail",children:me(F.fileSize)}),F.folder&&i.jsx("span",{className:"detail folder-tag",children:F.folder})]})]}),i.jsx(qn,{title:d.getMessage("modals.main.settings.sections.background.source.remove"),children:i.jsx("button",{className:"delete-button",onClick:G=>{G.stopPropagation(),D("remove",N)},children:i.jsx(Bt,{})})})]},N)})}):i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(zn,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.drop_to_upload")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.formats",{list:"jpeg, png, webp, webm, gif, mp4, webm, ogg"})}),i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(go,{}),label:d.getMessage("modals.main.settings.sections.background.source.select")})]})})})]}),i.jsx(Ms,{id:"bg-input",accept:"image/jpeg, image/png, image/webp, image/webm, image/gif, video/mp4, video/webm, video/ogg",multiple:!0,loadFunction:async F=>{await dA(F)}}),_&&i.jsxs(i.Fragment,{children:[i.jsx(mA,{name:"backgroundVideoLoop",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.loop_video")}),i.jsx(mA,{name:"backgroundVideoMute",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.mute_video")})]}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a([])},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Xf,{files:n,onConfirm:Z,onCancel:()=>{t(!1),a([])}})}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>L(!1),isOpen:y,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.storage_info")}),i.jsx("button",{className:"closeModal",onClick:()=>L(!1),children:i.jsx(Bt,{})})]}),i.jsxs("div",{style:{padding:"20px"},children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.storage_description")}),i.jsxs("div",{style:{marginTop:"20px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Custom Backgrounds"}),i.jsxs("p",{className:"subtitle",children:[me(q)," / ",me(lA)," (",Math.round(sA),"%)"]})]}),i.jsxs("div",{style:{marginTop:"15px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Total localStorage Usage"}),i.jsxs("p",{className:"subtitle",children:[me(H)," / ",me(j)," (",Math.round(H/j*100),"%)"]}),i.jsx("p",{className:"subtitle",style:{marginTop:"8px",fontSize:"12px",opacity:.7},children:"Includes all Mue settings and custom images"})]})]}),i.jsx("div",{className:"resetFooter",children:i.jsx(vA,{type:"settings",onClick:()=>L(!1),label:d.getMessage("modals.main.settings.buttons.close")})})]})})]})});Gi.displayName="CustomSettings";const Jf=({usingImage:e})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.display"),subtitle:d.getMessage("modals.main.settings.sections.background.display_subtitle")}),i.jsxs(cA,{children:[i.jsx(mA,{name:"bgtransition",text:d.getMessage("modals.main.settings.sections.background.transition"),element:".other",disabled:!e}),i.jsx(mA,{name:"photoInformation",text:d.getMessage("modals.main.settings.sections.background.photo_information"),element:".other"}),i.jsx(mA,{name:"photoMap",text:d.getMessage("modals.main.settings.sections.background.show_map"),element:".other",disabled:!e})]})]});d.getMessage("modals.main.settings.sections.background.source.quality.original"),d.getMessage("modals.main.settings.sections.background.source.quality.high"),d.getMessage("modals.main.settings.sections.background.source.quality.normal"),d.getMessage("modals.main.settings.sections.background.source.quality.datasaver");const Wf=[{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.navbar.refresh_options.none")},{value:"grayscale",text:d.getMessage("modals.main.settings.sections.background.effects.filters.grayscale")},{value:"sepia",text:d.getMessage("modals.main.settings.sections.background.effects.filters.sepia")},{value:"invert",text:d.getMessage("modals.main.settings.sections.background.effects.filters.invert")},{value:"saturate",text:d.getMessage("modals.main.settings.sections.background.effects.filters.saturate")},{value:"contrast",text:d.getMessage("modals.main.settings.sections.background.effects.filters.contrast")}];function ji(){return[{value:"api",text:d.getMessage("wb.settings_bundled_photos")},{value:"custom",text:d.getMessage("modals.main.settings.sections.background.type.custom_image")},{value:"colour",text:d.getMessage("modals.main.settings.sections.background.type.custom_colour")},{value:"random_colour",text:d.getMessage("modals.main.settings.sections.background.type.random_colour")},{value:"random_gradient",text:d.getMessage("modals.main.settings.sections.background.type.random_gradient")}]}const Yf=({backgroundFilter:e,onFilterChange:A})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle")}),i.jsxs(cA,{children:[i.jsx(at,{title:d.getMessage("modals.main.settings.sections.background.effects.blur"),name:"blur",min:"0",max:"100",default:"0",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(at,{title:d.getMessage("modals.main.settings.sections.background.effects.brightness"),name:"brightness",min:"0",max:"100",default:"100",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.effects.filters.title"),name:"backgroundFilter",onChange:A,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo",items:Wf}),e!=="none"&&i.jsx(at,{title:d.getMessage("modals.main.settings.sections.background.effects.filters.amount"),name:"backgroundFilterAmount",min:"0",max:"100",default:"0",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"})]})]}),Zf=({backgroundType:e,onTypeChange:A})=>i.jsxs(rA,{final:e==="random_colour"||e==="random_gradient",children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:A,category:"background",items:ji()})})]}),gs=({icon:e,title:A,subtitle:r,onClick:t,action:n})=>i.jsxs("div",{className:"moreSettings",onClick:t,children:[i.jsxs("div",{className:"left",children:[i.jsx(e,{}),i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:A}),i.jsx("span",{className:"subtitle",children:r})]})]}),i.jsx("div",{className:"action",children:n||i.jsx(fs,{})})]}),Vi=b.memo(({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(localStorage.getItem("backgroundType")||"api"),[a,s]=b.useState(localStorage.getItem("backgroundFilter")||"none"),o=["colour","random_colour","random_gradient"].includes(t);b.useEffect(()=>{o&&e!=="source"&&A("source",r)},[o,e,A,r]);const l=()=>{switch(t){case"custom":return i.jsx(Gi,{});case"colour":return i.jsx(Df,{});default:return null}},c=t!=="colour"&&t!=="random_colour"&&t!=="random_gradient",g=t==="api"||t==="custom",B=()=>e==="effects"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.effects.title"),goBack:()=>A(null,r)}):e==="source"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.source.title"),goBack:()=>A(null,r)}):i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),setting:"background",category:"background",visibilityToggle:!0});return i.jsxs(i.Fragment,{children:[B(),!e&&i.jsxs(i.Fragment,{children:[i.jsx(gs,{icon:ho,title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle"),onClick:()=>A("source",r),action:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:u=>{n(u),u==="custom"&&hA.emit("refresh","background")},category:"background",items:ji()})}),g&&i.jsx(gs,{icon:wo,title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle"),onClick:()=>A("effects",r)})]}),!e&&g&&i.jsx(Jf,{usingImage:c}),e==="source"&&i.jsxs(i.Fragment,{children:[i.jsx(Zf,{backgroundType:t,onTypeChange:n}),l()]}),g&&e==="effects"&&i.jsx(Yf,{backgroundFilter:a,onFilterChange:u=>s(u)})]})});Vi.displayName="BackgroundOptions";function zf(){const e=[{value:"ask",text:d.getMessage("wb.ask")},{value:"act",text:d.getMessage("wb.act")},...po()?[{value:"search",text:d.getMessage("wb.search")}]:[]];return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_taskbox"),setting:"taskBox",category:"widgets",visibilityToggle:!0}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("wb.settings_default_mode"),subtitle:d.getMessage("wb.settings_taskbox_sub")}),i.jsx(cA,{children:i.jsx(KA,{name:"taskBoxMode",category:"widgets",items:e})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("wb.settings_recent")}),i.jsx(cA,{children:i.jsx(Qs,{name:"recentChats",category:"widgets"})})]})]})}const qf=["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"];function $f({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const[t,n]=b.useState(!1),a="modals.main.settings.sections.advanced",s=()=>localStorage.getItem("welcomePreview")!=="true"?i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.data"),subtitle:d.getMessage("modals.main.settings.sections.advanced.data_description")}),i.jsxs("div",{className:"resetDataButtonsLayout",children:[i.jsx(vA,{onClick:()=>n(!0),icon:i.jsx(mo,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{onClick:()=>xo(),icon:i.jsx(vo,{}),label:d.getMessage("modals.main.settings.buttons.export")}),i.jsx(vA,{onClick:()=>document.getElementById("file-input").click(),icon:i.jsx(Uo,{}),label:d.getMessage("modals.main.settings.buttons.import")})]}),i.jsx(Ms,{id:"file-input",accept:"application/json",type:"settings",loadFunction:c=>Io(c)})]}):i.jsx("div",{className:"emptyItems",children:i.jsx("div",{className:"emptyMessage",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx(Fo,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.description")})]})})}),o=e==="data";let l;return o?l=i.jsx(TA,{title:d.getMessage(`${a}.title`),secondaryTitle:d.getMessage(`${a}.data`),goBack:()=>A(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage(`${a}.title`),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsxs(i.Fragment,{children:[i.jsx(s,{}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>n(!1),isOpen:t,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Co,{modalClose:()=>n(!1)})})]}):i.jsxs(i.Fragment,{children:[i.jsx(Rn,{title:d.getMessage(`${a}.data`),subtitle:d.getMessage(`${a}.data_subtitle`),onClick:()=>A("data",r),icon:i.jsx(Qo,{})}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.timezone.title"),subtitle:d.getMessage("modals.main.settings.sections.advanced.timezone.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"timezone",category:"timezone",items:[{value:"auto",text:d.getMessage("modals.main.settings.sections.advanced.timezone.automatic")},...qf.map(c=>({value:c,text:c}))]})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.tab_name"),subtitle:d.getMessage("modals.main.settings.sections.advanced.tab_name_subtitle")}),i.jsx(cA,{children:i.jsx(ar,{name:"tabName",default:d.getMessage("tabname"),category:"other"})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.custom_css"),subtitle:d.getMessage("modals.main.settings.sections.advanced.custom_css_subtitle")}),i.jsx(cA,{children:i.jsx(ar,{name:"customcss",textarea:!0,category:"other",customcss:!0})})]})]})]})}function Ah({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const t=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.theme.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.theme.description")}),i.jsx(cA,{children:i.jsx(Bn,{name:"theme",options:[{name:d.getMessage("modals.main.settings.sections.appearance.theme.auto"),value:"auto"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.light"),value:"light"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.dark"),value:"dark"}],category:"other"})})]}),n=()=>{const c="modals.main.settings.sections.appearance.font.weight";return i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.font.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.font.description")}),i.jsxs(cA,{children:[i.jsx(ar,{title:d.getMessage("modals.main.settings.sections.appearance.font.custom"),name:"font",upperCaseFirst:!0,category:"other"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.weight.title"),name:"fontweight",category:"other",items:[{value:"100",text:d.getMessage(c+".thin")},{value:"200",text:d.getMessage(c+".extra_light")},{value:"300",text:d.getMessage(c+".light")},{value:"400",text:d.getMessage(c+".normal")},{value:"500",text:d.getMessage(c+".medium")},{value:"600",text:d.getMessage(c+".semi_bold")},{value:"700",text:d.getMessage(c+".bold")},{value:"800",text:d.getMessage(c+".extra_bold")}]}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.style.title"),name:"fontstyle",category:"other",items:[{value:"normal",text:d.getMessage("modals.main.settings.sections.appearance.font.style.normal")},{value:"italic",text:d.getMessage("modals.main.settings.sections.appearance.font.style.italic")},{value:"oblique",text:d.getMessage("modals.main.settings.sections.appearance.font.style.oblique")}]})]})]})},a=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.style.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.style.description")}),i.jsx(cA,{children:i.jsx(Bn,{name:"widgetStyle",element:".other",options:[{name:d.getMessage("modals.main.settings.sections.appearance.style.legacy"),value:"legacy"},{name:d.getMessage("modals.main.settings.sections.appearance.style.new"),value:"new"}],category:"widgets"})})]}),s=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description")}),i.jsxs(cA,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.title"),name:"textBorder",category:"other",items:[{value:"new",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.new")},{value:"true",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.old")},{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.none")}]}),i.jsx(mA,{text:d.getMessage("modals.main.settings.sections.appearance.accessibility.animations"),name:"animations",category:"other"}),i.jsx(at,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.toast_duration"),name:"toastDisplayTime",default:"2500",step:"100",min:"500",max:"5000",marks:st.toast,display:" "+d.getMessage("modals.main.settings.sections.appearance.accessibility.milliseconds")})]})]}),o=e==="accessibility";let l;return o?l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),goBack:()=>A(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsx(s,{}):i.jsxs(i.Fragment,{children:[i.jsx(Rn,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description"),icon:i.jsx(bo,{}),onClick:()=>A("accessibility",r)}),i.jsx(t,{}),i.jsx(n,{}),i.jsx(a,{})]})]})}const eh=b.memo(Ah),th=`BSD 3-Clause License
+
+Copyright (c) 2019-2026 The Mue Authors
+Copyright (c) 2018-2019 David Ralph
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+`;function rh(){const e=Object.keys(yo),{MUE_REPO_URL:A,MUE_VERSION:r,REPO_URL:t,WEBSITE_URL:n}=d.constants;return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_credits")}),i.jsx(rA,{children:i.jsx(nA,{title:"WebBrain",subtitle:"The WebBrain new tab is free software, licensed GPL-3.0-or-later, and makes no network requests of its own."})}),i.jsx(rA,{children:i.jsx(nA,{title:`Based on Mue ${r}`,subtitle:i.jsxs(i.Fragment,{children:["Derived from ",i.jsx("a",{href:A,target:"_blank",rel:"noreferrer",children:"Mue"})," by The Mue Authors and David Ralph, used under the BSD-3-Clause license reproduced below. Mue is not affiliated with or endorsing WebBrain."]})})}),i.jsx(rA,{children:i.jsx(nA,{title:d.getMessage("wb.settings_bundled_photos"),subtitle:`${e.join(", ")}. Offline images shipped with Mue (Unsplash, Pexels and Pixabay).`})}),i.jsx(rA,{children:i.jsx(nA,{title:"Fonts and icons",subtitle:"Inter, Lexend Deca and Montserrat (SIL Open Font License); Material Design icons via react-icons."})}),i.jsx(rA,{final:!0,children:i.jsx(nA,{title:"Mue license",subtitle:i.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},children:th})})}),i.jsxs("p",{style:{opacity:.7,fontSize:"0.85rem"},children:[i.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:n.replace("https://","")})," · ",i.jsx("a",{href:t,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})}function nh(){return i.jsx("span",{className:"greeting preview",children:"Good Morning"})}const ah=b.memo(nh),sh=b.lazy(()=>Eo(()=>import("./index-WbVrDO2P.js"),__vite__mapDeps([0,1,2]),import.meta.url));function ih(){return localStorage.getItem("timeType")==="analogue"?i.jsx(b.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx("div",{className:"clockBackground",children:i.jsx(sh,{className:"analogclock clock-container",value:"2022-10-07T17:00:00+00:00",size:50})})}):localStorage.getItem("timeType")==="percentageComplete"?i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"68%"}):localStorage.getItem("timeType")==="verticalClock"?i.jsxs("span",{className:"vertical-clock clock-container",style:{fontSize:"30px"},children:[i.jsx("div",{className:"hour",children:"10"}),i.jsx("div",{className:"minute",children:"23"})]}):i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"10:24"})}const oh=b.memo(ih);function lh(e){return On({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(e)}function ch(e){return On({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"},child:[]}]})(e)}function gh(e){return On({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17.625 1.499c-2.32 0-4.354 1.203-5.625 3.03-1.271-1.827-3.305-3.03-5.625-3.03C3.129 1.499 0 4.253 0 8.249c0 4.275 3.068 7.847 5.828 10.227a33.14 33.14 0 0 0 5.616 3.876l.028.017.008.003-.001.003c.163.085.342.126.521.125.179.001.358-.041.521-.125l-.001-.003.008-.003.028-.017a33.14 33.14 0 0 0 5.616-3.876C20.932 16.096 24 12.524 24 8.249c0-3.996-3.129-6.75-6.375-6.75zm-.919 15.275a30.766 30.766 0 0 1-4.703 3.316l-.004-.002-.004.002a30.955 30.955 0 0 1-4.703-3.316c-2.677-2.307-5.047-5.298-5.047-8.523 0-2.754 2.121-4.5 4.125-4.5 2.06 0 3.914 1.479 4.544 3.684.143.495.596.797 1.086.796.49.001.943-.302 1.085-.796.63-2.205 2.484-3.684 4.544-3.684 2.004 0 4.125 1.746 4.125 4.5 0 3.225-2.37 6.216-5.048 8.523z"},child:[]}]})(e)}function uh(){return i.jsx("div",{className:"quickLinksSkeleton",children:i.jsxs("div",{className:"circles",children:[i.jsx("div",{children:i.jsx(lh,{})}),i.jsx("div",{children:i.jsx(ch,{})}),i.jsx("div",{children:i.jsx(gh,{})})]})})}const Bh=b.memo(uh);function dh(){return i.jsx("span",{className:"date",children:"Thursday January 1st"})}const fh=b.memo(dh);function hh(){return i.jsx("h2",{className:"message",children:i.jsxs("span",{children:["Message",i.jsx("br",{})]})})}const wh=b.memo(hh),ph={greeting:d.getMessage("modals.main.settings.sections.greeting.title"),time:d.getMessage("modals.main.settings.sections.time.title"),quicklinks:d.getMessage("modals.main.settings.sections.quicklinks.title"),date:d.getMessage("modals.main.settings.sections.date.title"),message:d.getMessage("modals.main.settings.sections.message.title")},Ch=({id:e})=>{const{attributes:A,listeners:r,setNodeRef:t,transform:n,transition:a}=vs({id:e}),s={transform:Us.Transform.toString(n),transition:a};return i.jsxs("li",{ref:t,style:s,...A,...r,className:"sortableItem",children:[ph[e],i.jsx(ms,{})]})},Qh=()=>{const[e,A]=b.useState(()=>JSON.parse(localStorage.getItem("order"))||["greeting","time","quicklinks","date","message"]),r=Fs(sr(Es),sr(ys,{coordinateGetter:bs})),t=s=>{const{active:o,over:l}=s;l&&o.id!==l.id&&A(c=>{const g=c.indexOf(o.id),B=c.indexOf(l.id);return Ls(c,g,B)})},n=s=>s==="quicklinks"?localStorage.getItem("quicklinksenabled")==="true":localStorage.getItem(s)==="true",a=s=>{switch(s){case"greeting":return i.jsx(ah,{});case"time":return i.jsx(oh,{});case"quicklinks":return i.jsx(Bh,{});case"date":return i.jsx(fh,{});case"message":return i.jsx(wh,{});default:return null}};return b.useEffect(()=>{localStorage.setItem("order",JSON.stringify(e)),d.stats.postEvent("setting","Widget order"),hA.emit("refresh","widgets")},[e]),i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"mainTitle",children:d.getMessage("modals.main.marketplace.product.overview")}),i.jsxs("div",{className:"overviewGrid",children:[i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.welcome.buttons.preview")}),i.jsx("div",{className:"tabPreview",children:i.jsx("div",{className:"previewItem",style:{maxWidth:"50%"},children:e.map((s,o)=>n(s)?i.jsx("div",{className:"previewItem",children:a(s)},`item-${s}`):null)})})]}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.order.title")}),i.jsx(xs,{sensors:r,collisionDetection:Is,onDragEnd:t,children:i.jsx(Hs,{items:e,strategy:Ss,children:i.jsx("ul",{className:"sortableContainer",children:e.map(s=>n(s)?i.jsx(Ch,{id:s},s):null)})})})]})]})]})},us=[{label:"modals.main.marketplace.product.overview",name:"order",component:Qh},{label:"modals.main.settings.sections.appearance.navbar.title",name:"navbar",component:Vo},{label:"modals.main.settings.sections.greeting.title",name:"greeting",component:Jo},{label:"modals.main.settings.sections.time.title",name:"time",component:Wo},{label:"modals.main.settings.sections.quicklinks.title",name:"quicklinks",component:$o},{label:"modals.main.settings.sections.date.title",name:"date",component:Yo},{label:"modals.main.settings.sections.message.title",name:"message",component:Al},{label:"modals.main.settings.sections.background.title",name:"background",component:Vi},{label:"wb.settings_taskbox",name:"taskbox",component:zf},{label:"modals.main.settings.sections.appearance.title",name:"appearance",component:eh},{label:"modals.main.settings.sections.advanced.title",name:"advanced",component:$f},{label:"wb.settings_credits",name:"credits",component:rh}];function mh(e){const A=Qt(),r=b.useMemo(()=>us.map(t=>({...t,translatedLabel:A(t.label)})),[A]);return i.jsx(No,{changeTab:t=>e.changeTab(t),current:"settings",currentTab:e.currentTab,onSectionChange:e.onSectionChange,onSubSectionChange:e.onSubSectionChange,currentSubSection:e.currentSubSection,deepLinkData:e.deepLinkData,navigationTrigger:e.navigationTrigger,sections:us,children:r.map(({label:t,name:n,component:a,translatedLabel:s})=>i.jsx("div",{label:s,name:n,children:i.jsx(a,{currentSubSection:e.currentSubSection,onSubSectionChange:e.onSubSectionChange,sectionName:n})},n))})}const Uh=b.memo(mh);export{Uh as default};
diff --git a/src/firefox/newtab/assets/Settings-DPCKRiko.js b/src/firefox/newtab/assets/Settings-DPCKRiko.js
deleted file mode 100644
index 9615ab53d..000000000
--- a/src/firefox/newtab/assets/Settings-DPCKRiko.js
+++ /dev/null
@@ -1,53 +0,0 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-IXgZpYJT.js","./index-CdhTpdYh.js","./index-BmeAAROj.css"])))=>i.map(i=>d[i]);
-import{g as Bs,a as ve,s as Pi,v as d,y as RA,r as Xi,E as hA,c as Jn,b as tr,d as b,j as i,B as vA,M as Ji,e as Wi,f as Yi,h as ds,S as at,R as m,i as fs,u as Qt,k as Zi,D as zi,l as hs,m as fe,n as Wn,T as Yn,q as ws,o as qi,p as ps,t as Bt,w as un,x as dt,z as Cs,C as mA,A as KA,F as $i,G as Ao,H as eo,I as to,J as Lr,K as Qs,L as rr,N as nr,O as Bn,P as ms,Q as vs,U as Us,V as ro,W as Fs,X as ar,Y as bs,Z as ys,_ as Es,$ as xs,a0 as Is,a1 as Hs,a2 as Ss,a3 as no,a4 as Ls,a5 as Zn,a6 as ao,a7 as ks,a8 as bt,a9 as so,aa as io,ab as yt,ac as zn,ad as oo,ae as qn,af as lo,ag as co,ah as go,ai as Ms,aj as uo,ak as Bo,al as fo,am as $n,an as ho,ao as wo,ap as po,aq as Co,ar as Qo,as as mo,at as vo,au as Uo,av as Fo,aw as bo,ax as yo,ay as Eo,az as On}from"./index-CdhTpdYh.js";const Ks="wbBackgroundsBackup";async function xo(){const e={};Object.keys(localStorage).forEach(n=>{e[n]=localStorage.getItem(n)});try{const n=await Bs(),a=n>0?await ve():[];a.length===n&&(e[Ks]=a.map(({id:s,...o})=>o))}catch(n){console.error("Could not include uploaded backgrounds in the backup:",n)}const A=new Date,t=`webbrain_newtab_settings_backup_${`${A.getFullYear()}-${(A.getMonth()+1).toString().padStart(2,"0")}-${A.getDate().toString().padStart(2,"0")}_${A.getHours().toString().padStart(2,"0")}-${A.getMinutes().toString().padStart(2,"0")}-${A.getSeconds().toString().padStart(2,"0")}`}.json`;Pi(e,t),d.stats.postEvent("tab","Settings exported")}async function Io(e,A=!1){let r,t;try{const s=JSON.parse(e);if(!s||typeof s!="object"||Array.isArray(s))throw new Error("settings file is not an object");({[Ks]:r,...t}=s);const o=So(t);if(o)throw new Error(`invalid settings: ${o}`)}catch(s){return console.error("Could not read the settings file:",s),RA(d.getMessage("toasts.error")),!1}let n=null;const a=new Map;try{Array.isArray(r)&&(n=await Lo(r)),Object.keys(t).forEach(s=>{a.has(s)||a.set(s,localStorage.getItem(s)),localStorage.setItem(s,t[s])})}catch(s){return console.error("Settings import failed, rolling back:",s),a.forEach((o,l)=>{try{o===null?localStorage.removeItem(l):localStorage.setItem(l,o)}catch{}}),n&&await n(),RA(d.getMessage("toasts.error")),!1}return RA(d.getMessage("toasts.imported")),A||d.stats.postEvent("tab","Settings imported"),Xi?setTimeout(()=>window.location.reload(),1200):hA.emit("settingsimported"),!0}const kr=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Ce=e=>typeof e=="string",Ho={applinks:e=>kr(e)&&Ce(e.name)&&Ce(e.url),backgroundExclude:Ce,customEvents:e=>kr(e)&&Ce(e.name)&&Number.isFinite(e.month)&&Number.isFinite(e.date),messages:Ce,order:Ce,todo:e=>kr(e)&&Ce(e.value)};function So(e){for(const[A,r]of Object.entries(e))if(r!==null&&typeof r=="object")return`${A} is not a plain value`;for(const[A,r]of Object.entries(Ho)){if(!(A in e))continue;let t;try{t=JSON.parse(e[A])}catch{return`${A} is not valid JSON`}if(!Array.isArray(t))return`${A} is not a list`;if(!t.every(r))return`${A} has an entry of the wrong shape`}if("favourite"in e&&e.favourite!=="null")try{const A=JSON.parse(e.favourite);if(A!==null&&(typeof A!="object"||Array.isArray(A)))return"favourite is not an object"}catch{return"favourite is not valid JSON"}return null}const Aa=({id:e,...A})=>A;async function Lo(e){const A=e.filter(a=>a&&typeof a.url=="string").map(Aa),r=await Bs(),t=r>0?(await ve()).map(Aa):[];if(t.length!==r)throw new Error("current gallery could not be read");const n=async()=>{try{await Jn();for(const a of t)await tr(a)}catch(a){console.error("Rollback of the background gallery failed:",a)}};try{await Jn();for(const a of A)await tr(a)}catch(a){throw await n(),a}return n}function TA(e){const[A,r]=b.useState(localStorage.getItem(e.setting)==="true");b.useEffect(()=>{r(localStorage.getItem(e.setting)==="true")},[e.setting]);const t=()=>{const s=localStorage.getItem(e.setting)==="true";if(localStorage.setItem(e.setting,!s),r(!s),d.stats.postEvent("setting",`${e.name} ${A===!0?"enabled":"disabled"}`),hA.emit("toggle",e.setting),e.element&&!document.querySelector(e.element)){ds();return}hA.emit("refresh",e.category)},n=()=>i.jsx(vA,{type:"settings",onClick:t,icon:A?i.jsx(Ji,{}):i.jsx(Wi,{}),label:A?"Hide":"Show"}),a=()=>i.jsx(vA,{type:"settings",onClick:()=>window.open(`${d.constants.BUG_REPORT}?title=${encodeURIComponent(e.title)}`,"_blank"),icon:i.jsx(Yi,{}),label:d.getMessage("modals.main.settings.sections.header.report_issue")});return i.jsxs("div",{className:"modalHeader",children:[i.jsx("span",{className:"mainTitle",children:e.secondaryTitle||e.title}),i.jsxs("div",{className:"headerActions",children:[e.visibilityToggle&&i.jsx(n,{}),e.report!==!1&&i.jsx(a,{}),e.children]})]})}function rA(e){const A=`${e.final?"settingsRow settingsNoBorder":"settingsRow"} ${e.inactive?"preferencesInactive":""}`;return i.jsx("div",{className:A,children:e.children})}function nA(e){return i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:e.title}),i.jsx("span",{className:"subtitle",children:e.subtitle})]})}function cA(e){return i.jsx("div",{className:"action",children:e.children})}const ko=[{value:10,label:"0.1x"},{value:100,label:"1x"},{value:200,label:"2x"},{value:400,label:"4x"}],Mo=[{value:500,label:"0.5s"},{value:1e3,label:"1s"},{value:1500,label:"1.5s"},{value:2e3,label:"2s"},{value:2500,label:"2.5s"},{value:3e3,label:"3s"},{value:4e3,label:"4s"},{value:5e3,label:"5s"}],Ko=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],st={zoom:ko,toast:Mo,background:Ko},mt=({children:e,...A})=>{const[r,t]=b.useState(localStorage.getItem(A.setting)==="true");return b.useEffect(()=>{const n=a=>{a===A.setting&&t(localStorage.getItem(A.setting)==="true")};return hA.on("toggle",n),()=>hA.off("toggle",n)},[A.setting]),i.jsxs("div",{className:r?"preferences":"preferencesInactive",children:[A.zoomSetting&&i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.widget_zoom"),subtitle:d.getMessage("modals.main.settings.sections.header.size")}),i.jsx(cA,{children:i.jsx(at,{name:A.zoomSetting,min:"10",max:"400",default:"100",display:"%",marks:st.zoom,category:A.zoomCategory||A.category})})]}),e]})};function Rn({title:e,subtitle:A,icon:r,onClick:t,children:n}){return i.jsxs("div",{className:"moreSettings",onClick:t,children:[i.jsxs("div",{className:"left",children:[r,i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:e}),i.jsx("span",{className:"subtitle",children:A})]})]}),i.jsx("div",{className:"action",children:m.Children.count(n)===0?i.jsx(fs,{}):n})]})}function To({label:e,currentTab:A,onClick:r,navbarTab:t}){const n=Qt(),[a,s]=b.useState(!0);b.useEffect(()=>{s(localStorage.getItem("experimental")!=="false")},[]);const o=Zi(e,{getMessage:n}),l=zi.some(p=>n(p)===e),B=`${t?"navbar-item":"tab-list-item"}${A===e?` ${t?"navbar-item-active":"tab-list-active"}`:""}`;return e===n("modals.main.settings.sections.experimental.title")&&!a?i.jsx("hr",{}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{className:B,onClick:()=>r(e),children:[o&&i.jsx(o,{})," ",i.jsx("span",{children:e})]}),l&&i.jsx("hr",{})]})}const Do=b.memo(To),Oo=({isVisible:e,onHide:A})=>e?i.jsxs("div",{className:"reminder-info",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.reminder.title")}),i.jsx("span",{className:"closeModal",onClick:A,children:i.jsx(hs,{})})]}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.reminder.message")}),i.jsxs("button",{onClick:()=>window.location.reload(),children:[i.jsx(fe,{}),d.getMessage("modals.main.error_boundary.refresh")]})]}):null;class Ro extends b.PureComponent{constructor(A){super(A),this.state={error:!1,errorData:"",showReport:!0}}static getDerivedStateFromError(A){return console.error(A),{error:!0,errorData:A}}reportError(){window.open(d.constants.BUG_REPORT,"_blank","noopener,noreferrer"),this.setState({showReport:!1})}render(){return this.state.error?i.jsx("div",{className:"emptyItems",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Wn,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.error_boundary.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.message")}),i.jsxs("div",{className:"buttonsRow",children:[this.state.showReport?i.jsx(vA,{type:"settings",icon:i.jsx(Wn,{}),label:d.getMessage("modals.main.error_boundary.report_error"),onClick:()=>this.reportError()}):i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.sent")}),i.jsx(vA,{type:"settings",icon:i.jsx(fe,{}),label:d.getMessage("modals.main.error_boundary.refresh"),onClick:()=>window.location.reload()})]})]})}):this.props.children}}const No=({children:e,navbar:A=!1,currentTab:r,onSectionChange:t,resetToFirst:n,deepLinkData:a,navigationTrigger:s,sections:o})=>{const l=Qt(),g=(()=>{if(a?.section&&o){const E=o.find(h=>h.name===a.section);if(E)return{label:l(E.label),name:E.name}}return{label:e[0]?.props.label,name:e[0]?.props.name}})(),[B,u]=b.useState(g.label),[p,Q]=b.useState(g.name),[C,x]=b.useState(localStorage.getItem("showReminder")==="true"),U=b.useRef(null),y=(E,h)=>{h!==p&&d.stats.postEvent("tab",`Opened ${h}`),u(E),Q(h),U.current&&(U.current.scrollTop=0),t&&t(E,h)};b.useEffect(()=>{t&&B&&t(B,p)},[]),b.useEffect(()=>{if(o&&p){const E=o.find(h=>h.name===p);if(E){const h=l(E.label);u(h)}}},[l,o,p]),b.useEffect(()=>{if(s?.type==="settings-section"&&o){const E=o.find(h=>h.name===s.data);if(E){const h=l(E.label);u(h),Q(E.name),U.current&&(U.current.scrollTop=0)}}},[s,o,l]),b.useEffect(()=>{n&&(u(e[0]?.props.label),Q(e[0]?.props.name),U.current&&(U.current.scrollTop=0),t&&t(e[0]?.props.label,e[0]?.props.name))},[n]),b.useEffect(()=>{const E=()=>x(!0);return hA.on("reminder",E),()=>hA.off("reminder",E)},[]);const L=()=>{localStorage.setItem("showReminder","false"),x(!1)},S=r===Yn.SETTINGS||r===Yn.DISCOVER;return i.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},children:[S?i.jsxs("div",{className:"modalSidebar",children:[e.map((E,h)=>i.jsx(Do,{currentTab:B,label:E.props.label,onClick:I=>y(I,E.props.name),navbarTab:A},h)),i.jsx(Oo,{isVisible:C,onHide:L})]}):null,i.jsx("div",{className:"modalTabContent",ref:U,children:e.map((E,h)=>E.props.label!==B?null:i.jsx(Ro,{children:E.props.children},`error-boundary-${h}`))})]})};async function sr(e){const A=String(e??"").trim();try{return new URL(/^[a-z][a-z0-9+.-]*:/i.test(A)?A:`https://${A}`).hostname.replace(/^www\./i,"")||A}catch{return A}}function ft(e){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(e)}function ir(e){let A=String(e??"").trim();if(!A)return null;const r=/^https?:\/\//i.exec(A);A=r?r[0].toLowerCase()+A.slice(r[0].length):`https://${A}`;try{if(!/^https?:$/.test(new URL(A).protocol))return null}catch{return null}return ft(A)?A:null}const _o=({item:e,deleteLink:A,startEditLink:r,draggable:t=!1,onDragStart:n,onDragOver:a,onDrop:s,onDragEnd:o,isDragOver:l=!1,isDragging:c=!1})=>{let g,B=null;if(localStorage.getItem("quicklinksnewtab")==="true"&&(g="_blank",B="noopener noreferrer"),localStorage.getItem("quicklinksText")==="true")return i.jsx("a",{className:"quicklinkstext",onContextMenu:C=>A(e.key,C),href:e.url,target:g,rel:B,draggable:!1,children:e.name});const p=e.icon||ws(e.url,e.name),Q=`messageMap ${c?"dragging":""} ${l?"drag-over":""}`;return i.jsxs("div",{className:Q,draggable:t,onDragStart:C=>n&&n(C,e.key),onDragOver:C=>a&&a(C,e.key),onDrop:C=>s&&s(C,e.key),onDragEnd:C=>o&&o(C),children:[i.jsx("div",{className:"dragHandle","aria-hidden":!0,children:i.jsx(qi,{})}),i.jsx("div",{className:"icon",children:i.jsx("img",{src:p,alt:e.name,draggable:!1,style:{height:"30px",width:"30px"}})}),i.jsxs("div",{className:"messageText",children:[i.jsx("div",{className:"title",children:e.name}),i.jsx("div",{className:"subtitle",children:i.jsx("a",{className:"quicklinknostyle",target:"_blank",rel:"noopener noreferrer",href:e.url,children:e.url})})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsx(vA,{type:"settings",onClick:()=>r(e),icon:i.jsx(ps,{}),label:d.getMessage("modals.main.settings.sections.quicklinks.edit")}),i.jsx(vA,{type:"settings",onClick:C=>A(e.key,C),icon:i.jsx(Bt,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]})};function Go({appsEnabled:e}){const A=Qt(),[r,t]=b.useState({newLink:!1,edit:!1,items:JSON.parse(localStorage.getItem("applinks")),urlError:"",iconError:"",editData:null}),n=async(l,c,g)=>{const B=JSON.parse(localStorage.getItem("applinks"));if(c=ir(c),!c)return t(u=>({...u,urlError:A("widgets.quicklinks.url_error")}));if(g.length>0&&ft(g)===!1)return t(u=>({...u,iconError:A("widgets.quicklinks.icon_error")}));B.push({name:l||await sr(c),url:c,icon:g||"",key:Math.random().toString(36).substring(7)+1}),localStorage.setItem("applinks",JSON.stringify(B)),t({newLink:!1,edit:!1,items:B,urlError:"",iconError:""}),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link add")},a=l=>{t(c=>({...c,edit:!0,editData:l}))},s=async(l,c,g,B)=>{const u=JSON.parse(localStorage.getItem("applinks")),p=u.find(Q=>Q.key===l.key);if(p){if(g=ir(g),!g)return t(Q=>({...Q,urlError:A("widgets.quicklinks.url_error")}));if(B.length>0&&ft(B)===!1)return t(Q=>({...Q,iconError:A("widgets.quicklinks.icon_error")}));p.name=c||await sr(g),p.url=g,p.icon=B||"",localStorage.setItem("applinks",JSON.stringify(u)),t(Q=>({...Q,items:u,edit:!1,newLink:!1})),hA.emit("refresh","navbar")}},o=(l,c)=>{c.preventDefault();const g=JSON.parse(localStorage.getItem("applinks")).filter(B=>B.key!==l);localStorage.setItem("applinks",JSON.stringify(g)),t(B=>({...B,items:g})),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link delete")};return i.jsxs(i.Fragment,{children:[i.jsxs(rA,{final:!0,inactive:!e,children:[i.jsx(nA,{title:A("widgets.navbar.apps.title"),subtitle:A("modals.main.settings.sections.appearance.navbar.apps_subtitle")}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>t(l=>({...l,newLink:!0})),icon:i.jsx(un,{}),label:A("modals.main.settings.sections.quicklinks.add_link")})})]}),i.jsx("div",{className:"messagesContainer",children:r.items.map((l,c)=>i.jsx(_o,{item:l,startEditLink:()=>a(l),deleteLink:(g,B)=>o(g,B)},c))}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>t(l=>({...l,newLink:!1,edit:!1})),isOpen:r.edit||r.newLink,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Cs,{urlError:r.urlError,iconError:r.iconError,addLink:(l,c,g)=>n(l,c,g),editLink:(l,c,g,B)=>s(l,c,g,B),edit:r.edit,editData:r.editData,closeModal:()=>t(l=>({...l,newLink:!1,edit:!1}))})})]})}function jo(){const e=Qt(),[A,r]=b.useState(localStorage.getItem("refresh")==="true"),[t,n]=b.useState(localStorage.getItem("appsEnabled")==="true"||!1),a="modals.main.settings.sections.appearance.navbar",s=()=>i.jsxs(rA,{final:!1,children:[i.jsx(nA,{title:e("modals.main.settings.additional_settings"),subtitle:e("modals.main.settings.sections.appearance.navbar.additional")}),i.jsx(cA,{children:i.jsx(mA,{name:"navbarHover",text:e(`${a}.hover`),category:"navbar"})})]}),o=()=>{const c=({icon:B,messageKey:u,settingName:p})=>{const[Q,C]=b.useState(localStorage.getItem(p)!=="true"),x=()=>{localStorage.setItem(p,Q),p==="refresh"?r(!A):p==="appsEnabled"&&n(!t),C(!Q),d.stats.postEvent("setting",`${p} ${Q?"disabled":"enabled"}`),hA.emit("refresh","navbar")};return i.jsxs("button",{onClick:x,className:`navbarButtonOption ${Q===!0?"disabled":""}`,children:[B,i.jsx("span",{className:"subtitle",children:e(u)})]})},g=[{icon:i.jsx($i,{}),settingName:"view",messageKey:"modals.main.settings.sections.background.buttons.view"},{icon:i.jsx(Ao,{}),settingName:"notesEnabled",messageKey:`${a}.notes`},{icon:i.jsx(eo,{}),settingName:"todoEnabled",messageKey:"widgets.navbar.todo.title"},{icon:i.jsx(fe,{}),settingName:"refresh",messageKey:`${a}.refresh`},{icon:i.jsx(to,{}),settingName:"appsEnabled",messageKey:"widgets.navbar.apps.title"}];return i.jsxs(rA,{children:[i.jsx(nA,{title:e("modals.main.settings.sections.appearance.navbar.widgets")}),i.jsx(cA,{children:i.jsx("div",{className:"navbarButtonOptions",children:g.map((B,u)=>i.jsx(c,{...B},u))})})]})},l=()=>i.jsxs(rA,{final:!1,inactive:!A,children:[i.jsx(nA,{title:e(`${a}.refresh`),subtitle:e("modals.main.settings.sections.appearance.navbar.refresh_subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"refreshOption",category:"navbar",items:[{value:"page",text:e("modals.main.settings.sections.appearance.navbar.refresh_options.page")},{value:"background",text:e("modals.main.settings.sections.background.title")}]})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:e(`${a}.title`),setting:"navbar",category:"widgets",zoomSetting:"zoomNavbar",zoomCategory:"navbar"}),i.jsx(s,{}),i.jsx(o,{}),i.jsx(l,{}),i.jsx(Go,{appsEnabled:t})]})}const Vo=b.memo(jo),ea=[{id:"widgets.greeting.christmas",name:"Merry Christmas",month:12,date:25},{id:"widgets.greeting.newyear",name:"Happy New Year",month:1,date:1},{id:"widgets.greeting.halloween",name:"Happy Halloween",month:10,date:31}],Po=e=>{const[A,r,t]=String(e).split("-").map(Number);return A&&r&&t?new Date(A,r-1,t):new Date},Xo=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,Jo=({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(JSON.parse(localStorage.getItem("customEvents"))||[]),[a,s]=b.useState(()=>{const h=localStorage.getItem("birthday");return h?new Date(h):new Date}),[o,l]=b.useState(localStorage.getItem("birthdayenabled")==="true"?"preferences":"preferencesInactive"),[c,g]=b.useState(localStorage.getItem("events")==="true"?"preferences":"preferencesInactive"),B=h=>{const I=h.target.value?Po(h.target.value):new Date;localStorage.setItem("birthday",I),s(I)},u="modals.main.settings.sections.greeting",p=()=>{const h=JSON.parse(localStorage.getItem("customEvents"))||[],I={id:"widgets.greeting.halloween",name:"",month:1,date:1},M=[...h,I];h.push(I),localStorage.setItem("customEvents",JSON.stringify(h)),n(M)},Q=h=>{const I=t.filter((M,k)=>k!==h);localStorage.setItem("customEvents",JSON.stringify(I)),n(I)},C=()=>{localStorage.setItem("customEvents",JSON.stringify(ea)),n(ea),RA(d.getMessage("toasts.reset"))},x=(h,I)=>{n(k=>{const R=[...k];return R[h]=I,R});const M=JSON.parse(localStorage.getItem("customEvents")||"[]");M[h]=I,localStorage.setItem("customEvents",JSON.stringify(M))},U=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${u}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"defaultGreetingMessage",text:d.getMessage(`${u}.default`),category:"greeting"}),i.jsx(nr,{title:d.getMessage(`${u}.name`),name:"greetingName",category:"greeting"})]})]}),y=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.birthday`),subtitle:d.getMessage("modals.main.settings.sections.greeting.birthday_subtitle")}),i.jsxs(cA,{children:[i.jsx(Qs,{name:"birthdayenabled",text:d.getMessage("modals.main.settings.enabled"),category:"greeting",onChange:h=>{l(h?"preferences":"preferencesInactive")}}),i.jsxs("div",{className:o,children:[i.jsx(mA,{name:"birthdayage",text:d.getMessage(`${u}.birthday_age`),category:"greeting"}),i.jsx("p",{style:{marginRight:"auto"},children:d.getMessage(`${u}.birthday_date`)}),i.jsx("input",{type:"date",onChange:B,value:Xo(a),required:!0})]})]})]}),L=()=>i.jsxs("div",{className:c,children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${u}.custom`)}),i.jsx(cA,{children:i.jsxs("div",{className:"headerActions",children:[i.jsx(vA,{type:"settings",onClick:C,icon:i.jsx(fe,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(rr,{}),label:d.getMessage("widgets.quicklinks.add")})]})})]}),i.jsx("div",{className:"messagesContainer",children:t.map((h,I)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(Lr,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.event_name`)}),i.jsx("input",{type:"text",className:"text-field-input",value:h.name,placeholder:d.getMessage(`${u}.event_name`),onChange:M=>{const k={...h,name:M.target.value};x(I,k)}})]})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsxs("div",{className:"eventDateSelection",children:[i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.day`),":"]}),i.jsx("input",{id:"day",type:"number",min:"1",max:"31",value:h.date,onChange:M=>{const k=parseInt(M.target.value,10);if(k>=1&&k<=31){const R={...h,date:k};x(I,R)}}}),i.jsx("hr",{}),i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.month`),":"]}),i.jsx("input",{id:"month",type:"number",min:"1",max:"12",value:h.month,onChange:M=>{const k=parseInt(M.target.value,10);if(k>=1&&k<=12){const R={...h,month:k};x(I,R)}}})]}),i.jsx(vA,{type:"settings",onClick:()=>Q(I),icon:i.jsx(Bt,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]},I))}),t.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Lr,{}),i.jsx("span",{className:"title",children:d.getMessage(`${u}.no_events`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.no_events_description`)}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(rr,{}),label:d.getMessage(`${u}.add_event`)})]})})]}),S=e==="events";let E;return S?E=i.jsx(TA,{title:d.getMessage(`${u}.title`),secondaryTitle:d.getMessage(`${u}.events.title`),goBack:()=>A(null,r),report:!1}):E=i.jsx(TA,{title:d.getMessage(`${u}.title`),setting:"greeting",category:"widgets",zoomSetting:"zoomGreeting",visibilityToggle:!0}),i.jsxs(i.Fragment,{children:[E,S?i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.enable_events`)}),i.jsx(cA,{children:i.jsx(mA,{name:"events",text:d.getMessage(`${u}.events`),category:"greeting",onChange:h=>{g(h?"preferences":"preferencesInactive")}})})]}),y(),L()]}):i.jsxs(mt,{setting:"greeting",zoomSetting:"zoomGreeting",category:"greeting",visibilityToggle:!0,children:[i.jsx(U,{}),i.jsx(Rn,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.events_description`),onClick:()=>A("events",r),icon:i.jsx(Lr,{})})]})]})},Wo=()=>{const[e,A]=b.useState(localStorage.getItem("timeType")||"digital"),[r,t]=b.useState(localStorage.getItem("hourColour")||"#ffffff"),[n,a]=b.useState(localStorage.getItem("minuteColour")||"#ffffff"),[s,o]=b.useState(localStorage.getItem("secondColour")||"#ffffff"),l="modals.main.settings.sections.time",c=(C,x)=>{const U=x.target.value;C==="hourColour"?t(U):C==="minuteColour"?a(U):C==="secondColour"&&o(U),localStorage.setItem(C,U)},g=()=>i.jsxs(rA,{final:e==="percentageComplete",children:[i.jsx(nA,{title:d.getMessage(`${l}.type`),subtitle:d.getMessage(`${l}.type_subtitle`)}),i.jsx(cA,{children:i.jsx(KA,{name:"timeType",onChange:C=>A(C),category:"clock",items:[{value:"digital",text:d.getMessage(`${l}.digital.title`)},{value:"analogue",text:d.getMessage(`${l}.analogue.title`)},{value:"percentageComplete",text:d.getMessage(`${l}.percentage_complete`)},{value:"verticalClock",text:d.getMessage(`${l}.vertical_clock.title`)}]})})]}),B=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.digital.title`),subtitle:d.getMessage(`${l}.digital.subtitle`)}),i.jsxs(cA,{children:[i.jsx(Bn,{name:"timeformat",options:[{name:d.getMessage(`${l}.digital.twentyfourhour`),value:"twentyfourhour"},{name:d.getMessage(`${l}.digital.twelvehour`),value:"twelvehour"}],smallTitle:!0,category:"clock"}),i.jsx(mA,{name:"seconds",text:d.getMessage(`${l}.digital.seconds`),category:"clock"}),i.jsx(mA,{name:"zero",text:d.getMessage(`${l}.digital.zero`),category:"clock"})]})]}),u=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.analogue.title`),subtitle:d.getMessage(`${l}.analogue.subtitle`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"secondHand",text:d.getMessage(`${l}.analogue.second_hand`),category:"clock"}),i.jsx(mA,{name:"minuteHand",text:d.getMessage(`${l}.analogue.minute_hand`),category:"clock"}),i.jsx(mA,{name:"hourHand",text:d.getMessage(`${l}.analogue.hour_hand`),category:"clock"}),i.jsx(mA,{name:"hourMarks",text:d.getMessage(`${l}.analogue.hour_marks`),category:"clock"}),i.jsx(mA,{name:"minuteMarks",text:d.getMessage(`${l}.analogue.minute_marks`),category:"clock"}),i.jsx(mA,{name:"roundClock",text:d.getMessage(`${l}.analogue.round_clock`),category:"clock"})]})]}),p=i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_hour_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"hourColour",className:"minuteColour",onChange:C=>c("hourColour",C),value:r}),i.jsx("label",{htmlFor:"hourColour",className:"customBackgroundHex",children:r})]}),i.jsxs("span",{className:"link",onClick:()=>c("hourColour",{target:{value:"#ffffff"}}),children:[i.jsx(fe,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_minute_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"minuteColour",className:"minuteColour",onChange:C=>c("minuteColour",C),value:n}),i.jsx("label",{htmlFor:"minuteColour",className:"customBackgroundHex",children:n})]}),i.jsxs("span",{className:"link",onClick:()=>c("minuteColour",{target:{value:"#ffffff"}}),children:[i.jsx(fe,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_second_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"secondColour",className:"secondColour",onChange:C=>c("secondColour",C),value:s}),i.jsx("label",{htmlFor:"secondColour",className:"customBackgroundHex",children:s})]}),i.jsxs("span",{className:"link",onClick:()=>c("secondColour",{target:{value:"#ffffff"}}),children:[i.jsx(fe,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),B]}),Q=()=>{switch(e){case"digital":return B;case"analogue":return u;case"verticalClock":return p;default:return null}};return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${l}.title`),setting:"time",category:"widgets",zoomSetting:"zoomClock",visibilityToggle:!0}),i.jsxs(mt,{setting:"time",zoomSetting:"zoomClock",category:"clock",visibilityToggle:!0,children:[i.jsx(g,{}),Q()]})]})};function Yo(){const[e,A]=b.useState(localStorage.getItem("dateType")||"long"),r=["DMY","MDY","YMD"],t=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.long_format"),name:"longFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(mA,{name:"dayofweek",text:d.getMessage("modals.main.settings.sections.date.day_of_week"),category:"date"}),i.jsx(mA,{name:"datenth",text:d.getMessage("modals.main.settings.sections.date.datenth"),category:"date"})]}),n=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_format"),name:"dateFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_separator.title"),name:"shortFormat",category:"date",items:[{value:"dash",text:d.getMessage("modals.main.settings.sections.date.short_separator.dash")},{value:"dots",text:d.getMessage("modals.main.settings.sections.date.short_separator.dots")},{value:"gaps",text:d.getMessage("modals.main.settings.sections.date.short_separator.gaps")},{value:"slashes",text:d.getMessage("modals.main.settings.sections.date.short_separator.slashes")}]})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.date.title"),setting:"date",category:"widgets",zoomSetting:"zoomDate",visibilityToggle:!0}),i.jsxs(mt,{setting:"date",visibilityToggle:!0,category:"date",zoomSetting:"zoomDate",children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.type"),subtitle:d.getMessage("modals.main.settings.sections.date.type.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"dateType",onChange:a=>{A(a),localStorage.setItem("dateType",a)},category:"date",items:[{value:"long",text:d.getMessage("modals.main.settings.sections.date.type.long")},{value:"short",text:d.getMessage("modals.main.settings.sections.date.type.short")}]})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:e==="long"?d.getMessage("modals.main.settings.sections.date.type.long"):d.getMessage("modals.main.settings.sections.date.type.short"),subtitle:d.getMessage("modals.main.settings.sections.date.type_settings")}),i.jsxs(cA,{children:[e==="long"?t:n,i.jsx(mA,{name:"weeknumber",text:d.getMessage("modals.main.settings.sections.date.week_number"),category:"date"}),i.jsx(mA,{name:"datezero",text:d.getMessage("modals.main.settings.sections.time.digital.zero"),category:"date"})]})]})]})]})}const Zo=()=>i.jsx("div",{className:"quicklink-drag-handle","aria-hidden":"true",children:i.jsx(ms,{})}),zo=({value:e,enabled:A,startEditLink:r,deleteLink:t})=>{const{attributes:n,listeners:a,setNodeRef:s,transform:o,transition:l,isDragging:c}=vs({id:e.key,disabled:!A}),g={transform:Us.Transform.toString(o),transition:l,opacity:c?.5:1},B=u=>u.icon||ws(u.url,u.name);return i.jsxs("div",{ref:s,style:g,...n,...a,className:`quicklink-item ${A?"":"disabled"}`,role:"listitem",children:[i.jsx(Zo,{}),i.jsx("div",{className:"quicklink-icon",children:i.jsx("img",{src:B(e),alt:e.name,draggable:!1})}),i.jsxs("div",{className:"quicklink-content",children:[i.jsx("div",{className:"quicklink-name",children:e.name}),i.jsx("div",{className:"quicklink-url",children:e.url})]}),i.jsxs("div",{className:"quicklink-actions",children:[i.jsxs("button",{className:"quicklink-action-btn",onClick:u=>{A&&(u.stopPropagation(),r(e))},title:"Edit",disabled:!A,"aria-disabled":!A,children:[i.jsx(ps,{}),i.jsx("span",{children:"Edit"})]}),i.jsxs("button",{className:"quicklink-action-btn quicklink-remove-btn",onClick:u=>{A&&(u.stopPropagation(),t(e.key,u))},title:"Remove",disabled:!A,"aria-disabled":!A,children:[i.jsx(ro,{}),i.jsx("span",{children:"Remove"})]})]})]})},qo=({items:e,enabled:A,onDragEnd:r,startEditLink:t,deleteLink:n})=>{const a=Fs(ar(Es,{activationConstraint:{distance:6}}),ar(ys,{coordinateGetter:bs}));return i.jsx(xs,{sensors:a,collisionDetection:Is,onDragEnd:r,children:i.jsx(Hs,{items:e.map(s=>s.key),strategy:Ss,children:i.jsx("div",{className:"quicklinks-list",role:"list",children:e.map(s=>i.jsx(zo,{value:s,enabled:A,startEditLink:t,deleteLink:n},s.key))})})})},Xe=()=>{try{const e=localStorage.getItem("quicklinks");if(!e)return[];const A=JSON.parse(e);return Array.isArray(A)?A:[]}catch(e){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",e),[]}},$o=()=>{const[e,A]=b.useState(Xe()),[r,t]=b.useState(!1),[n,a]=b.useState(""),[s,o]=b.useState(""),[l,c]=b.useState(!1),[g,B]=b.useState(""),[u,p]=b.useState(localStorage.getItem("quicklinksenabled")!=="false"),Q=b.useRef(),C=b.useRef(!1),x=R=>{if(!Q||!Q.current)return;const O=Q.current;O.classList.toggle("disabled",!R),R?O.removeAttribute("aria-hidden"):O.setAttribute("aria-hidden","true")},U=(R,O)=>{O.preventDefault();const D=Xe().filter(z=>z.key!==R);C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),A(D),d.stats.postEvent("feature","Quicklink delete"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},y=async(R,O,Z)=>{const D=Xe();if(O=ir(O),!O){a(d.getMessage("widgets.quicklinks.url_error"));return}if(Z.length>0&&ft(Z)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}const z={name:R||await sr(O),url:O,icon:Z||"",key:Date.now().toString()+Math.random().toString(36).substring(2)};D.push(z),C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),A(D),t(!1),a(""),o(""),d.stats.postEvent("feature","Quicklink add"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},L=R=>{c(!0),B(R),t(!0)},S=async(R,O,Z,D)=>{const z=Xe(),eA=z.find(tA=>tA.key===R.key);if(eA){if(Z=ir(Z),!Z){a(d.getMessage("widgets.quicklinks.url_error"));return}if(D.length>0&&ft(D)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}eA.name=O||await sr(Z),eA.url=Z,eA.icon=D||"",C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(z)),A(z),t(!1),c(!1),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)}},E=R=>{const{active:O,over:Z}=R;if(!Z||!u||O.id===Z.id)return;const D=e.findIndex(tA=>tA.key===O.id),z=e.findIndex(tA=>tA.key===Z.id);if(D===-1||z===-1)return;const eA=Ls(e,D,z);C.current=!0,A(eA),localStorage.setItem("quicklinks",JSON.stringify(eA)),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)};b.useEffect(()=>{x(u)},[u]),b.useEffect(()=>{x(u);const R=O=>{if(O!=="quicklinks"||C.current)return;const Z=localStorage.getItem("quicklinksenabled")!=="false",D=Xe(),z=e||[],eA=z.length===D.length&&z.every(tA=>D.some(AA=>AA.key===tA.key));(Z!==u||!eA)&&(x(Z),A(D),p(Z))};return hA.on("refresh",R),()=>{hA.off("refresh",R)}},[u,e]);const h="modals.main.settings.sections.quicklinks",I=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${h}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"quicklinksnewtab",text:d.getMessage(`${h}.open_new`),category:"quicklinks"}),i.jsx(mA,{name:"quicklinkstooltip",text:d.getMessage(`${h}.tooltip`),category:"quicklinks"})]})]}),M=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${h}.styling`),subtitle:d.getMessage("modals.main.settings.sections.quicklinks.styling_description")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage(`${h}.style`),name:"quickLinksStyle",category:"quicklinks",items:[{value:"icon",text:d.getMessage(`${h}.options.icon`)},{value:"text",text:d.getMessage(`${h}.options.text_only`)},{value:"metro",text:d.getMessage(`${h}.options.metro`)}]})})]}),k=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${h}.title`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>u&&t(!0),icon:i.jsx(un,{}),label:d.getMessage(`${h}.add_link`),disabled:!u})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${h}.title`),setting:"quicklinksenabled",category:"widgets",zoomSetting:"zoomQuicklinks",visibilityToggle:!0}),i.jsxs(mt,{setting:"quicklinksenabled",category:"quicklinks",visibilityToggle:!0,zoomSetting:"zoomQuicklinks",children:[i.jsx(I,{}),i.jsx(M,{}),i.jsx(k,{}),e.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(no,{}),i.jsx("span",{className:"title",children:d.getMessage(`${h}.no_quicklinks`)}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.message.add_some")}),i.jsx(vA,{type:"settings",onClick:()=>t(!0),icon:i.jsx(un,{}),label:d.getMessage(`${h}.add_link`)})]})})]}),i.jsx("div",{className:`quicklinks-container ${u?"":"disabled"}`,ref:Q,"aria-hidden":!u,children:i.jsx("div",{className:`messagesContainer ${u?"":"disabled"}`,children:i.jsx(qo,{items:e,enabled:u,onDragEnd:E,startEditLink:R=>L(R),deleteLink:(R,O)=>U(R,O)})})}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a(""),o(""),c(!1),B("")},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Cs,{urlError:n,iconError:s,addLink:(R,O,Z)=>y(R,O,Z),editLink:(R,O,Z,D)=>S(R,O,Z,D),edit:l,editData:g,closeModal:()=>{t(!1),a(""),o(""),c(!1)}})})]})},Al=()=>{const[e,A]=b.useState(JSON.parse(localStorage.getItem("messages"))||[]),r=(a,s)=>{const o=[...e];a==="add"?o.push(""):o.splice(s,1),A(o),localStorage.setItem("messages",JSON.stringify(o)),hA.emit("refresh","message")},t=(a,s,o)=>{const l=a.target.value,c=[...e];c[o]=l,A(c),localStorage.setItem("messages",JSON.stringify(c)),ds()},n="modals.main.settings.sections.message";return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${n}.title`),setting:"message",category:"widgets",zoomSetting:"zoomMessage",visibilityToggle:!0}),i.jsxs(mt,{setting:"message",visibilityToggle:!0,category:"message",zoomSetting:"zoomMessage",children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${n}.messages`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(rr,{}),label:d.getMessage(`${n}.add`)})})]}),i.jsx("div",{className:"messagesContainer",children:e.map((a,s)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(Zn,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.title`)}),i.jsx(ao,{value:e[s],placeholder:d.getMessage("modals.main.settings.sections.message.content"),onChange:o=>t(o,!0,s),minRows:2})]})]}),i.jsx("div",{children:i.jsx("div",{className:"messageAction",children:i.jsx(vA,{type:"settings",onClick:()=>r("remove",s),icon:i.jsx(Bt,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})})})]},s))}),e.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Zn,{}),i.jsx("span",{className:"title",children:d.getMessage(`${n}.no_messages`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.add_some`)}),i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(rr,{}),label:d.getMessage(`${n}.add`)})]})})]})]})};var Mr={exports:{}},ta;function el(){return ta||(ta=1,(function(e){(function(A){var r=/^\s+/,t=/\s+$/,n=0,a=A.round,s=A.min,o=A.max,l=A.random;function c(f,v){if(f=f||"",v=v||{},f instanceof c)return f;if(!(this instanceof c))return new c(f,v);var w=g(f);this._originalInput=f,this._r=w.r,this._g=w.g,this._b=w.b,this._a=w.a,this._roundA=a(100*this._a)/100,this._format=v.format||w.format,this._gradientType=v.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=w.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var f=this.toRgb();return(f.r*299+f.g*587+f.b*114)/1e3},getLuminance:function(){var f=this.toRgb(),v,w,K,W,P,oA;return v=f.r/255,w=f.g/255,K=f.b/255,v<=.03928?W=v/12.92:W=A.pow((v+.055)/1.055,2.4),w<=.03928?P=w/12.92:P=A.pow((w+.055)/1.055,2.4),K<=.03928?oA=K/12.92:oA=A.pow((K+.055)/1.055,2.4),.2126*W+.7152*P+.0722*oA},setAlpha:function(f){return this._a=aA(f),this._roundA=a(100*this._a)/100,this},toHsv:function(){var f=Q(this._r,this._g,this._b);return{h:f.h*360,s:f.s,v:f.v,a:this._a}},toHsvString:function(){var f=Q(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.v*100);return this._a==1?"hsv("+v+", "+w+"%, "+K+"%)":"hsva("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var f=u(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=u(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.l*100);return this._a==1?"hsl("+v+", "+w+"%, "+K+"%)":"hsla("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHex:function(f){return x(this._r,this._g,this._b,f)},toHexString:function(f){return"#"+this.toHex(f)},toHex8:function(f){return U(this._r,this._g,this._b,this._a,f)},toHex8String:function(f){return"#"+this.toHex8(f)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(q(this._r,255)*100)+"%",g:a(q(this._g,255)*100)+"%",b:a(q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%)":"rgba("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:AA[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var v="#"+y(this._r,this._g,this._b,this._a),w=v,K=this._gradientType?"GradientType = 1, ":"";if(f){var W=c(f);w="#"+y(W._r,W._g,W._b,W._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+v+",endColorstr="+w+")"},toString:function(f){var v=!!f;f=f||this._format;var w=!1,K=this._a<1&&this._a>=0,W=!v&&K&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return W?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(w=this.toRgbString()),f==="prgb"&&(w=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(w=this.toHexString()),f==="hex3"&&(w=this.toHexString(!0)),f==="hex4"&&(w=this.toHex8String(!0)),f==="hex8"&&(w=this.toHex8String()),f==="name"&&(w=this.toName()),f==="hsl"&&(w=this.toHslString()),f==="hsv"&&(w=this.toHsvString()),w||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(f,v){var w=f.apply(null,[this].concat([].slice.call(v)));return this._r=w._r,this._g=w._g,this._b=w._b,this.setAlpha(w._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(L,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(f,v){return f.apply(null,[this].concat([].slice.call(v)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(eA,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(Z,arguments)}},c.fromRatio=function(f,v){if(typeof f=="object"){var w={};for(var K in f)f.hasOwnProperty(K)&&(K==="a"?w[K]=f[K]:w[K]=F(f[K]));f=w}return c(f,v)};function g(f){var v={r:0,g:0,b:0},w=1,K=null,W=null,P=null,oA=!1,fA=!1;return typeof f=="string"&&(f=$(f)),typeof f=="object"&&(J(f.r)&&J(f.g)&&J(f.b)?(v=B(f.r,f.g,f.b),oA=!0,fA=String(f.r).substr(-1)==="%"?"prgb":"rgb"):J(f.h)&&J(f.s)&&J(f.v)?(K=F(f.s),W=F(f.v),v=C(f.h,K,W),oA=!0,fA="hsv"):J(f.h)&&J(f.s)&&J(f.l)&&(K=F(f.s),P=F(f.l),v=p(f.h,K,P),oA=!0,fA="hsl"),f.hasOwnProperty("a")&&(w=f.a)),w=aA(w),{ok:oA,format:f.format||fA,r:s(255,o(v.r,0)),g:s(255,o(v.g,0)),b:s(255,o(v.b,0)),a:w}}function B(f,v,w){return{r:q(f,255)*255,g:q(v,255)*255,b:q(w,255)*255}}function u(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),P,oA,fA=(K+W)/2;if(K==W)P=oA=0;else{var UA=K-W;switch(oA=fA>.5?UA/(2-K-W):UA/(K+W),K){case f:P=(v-w)/UA+(v<w?6:0);break;case v:P=(w-f)/UA+2;break;case w:P=(f-v)/UA+4;break}P/=6}return{h:P,s:oA,l:fA}}function p(f,v,w){var K,W,P;f=q(f,360),v=q(v,100),w=q(w,100);function oA(jA,Pe,YA){return YA<0&&(YA+=1),YA>1&&(YA-=1),YA<1/6?jA+(Pe-jA)*6*YA:YA<1/2?Pe:YA<2/3?jA+(Pe-jA)*(2/3-YA)*6:jA}if(v===0)K=W=P=w;else{var fA=w<.5?w*(1+v):w+v-w*v,UA=2*w-fA;K=oA(UA,fA,f+1/3),W=oA(UA,fA,f),P=oA(UA,fA,f-1/3)}return{r:K*255,g:W*255,b:P*255}}function Q(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),P,oA,fA=K,UA=K-W;if(oA=K===0?0:UA/K,K==W)P=0;else{switch(K){case f:P=(v-w)/UA+(v<w?6:0);break;case v:P=(w-f)/UA+2;break;case w:P=(f-v)/UA+4;break}P/=6}return{h:P,s:oA,v:fA}}function C(f,v,w){f=q(f,360)*6,v=q(v,100),w=q(w,100);var K=A.floor(f),W=f-K,P=w*(1-v),oA=w*(1-W*v),fA=w*(1-(1-W)*v),UA=K%6,jA=[w,oA,P,P,fA,w][UA],Pe=[fA,w,w,oA,P,P][UA],YA=[P,P,fA,w,w,oA][UA];return{r:jA*255,g:Pe*255,b:YA*255}}function x(f,v,w,K){var W=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return K&&W[0].charAt(0)==W[0].charAt(1)&&W[1].charAt(0)==W[1].charAt(1)&&W[2].charAt(0)==W[2].charAt(1)?W[0].charAt(0)+W[1].charAt(0)+W[2].charAt(0):W.join("")}function U(f,v,w,K,W){var P=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16)),_(N(K))];return W&&P[0].charAt(0)==P[0].charAt(1)&&P[1].charAt(0)==P[1].charAt(1)&&P[2].charAt(0)==P[2].charAt(1)&&P[3].charAt(0)==P[3].charAt(1)?P[0].charAt(0)+P[1].charAt(0)+P[2].charAt(0)+P[3].charAt(0):P.join("")}function y(f,v,w,K){var W=[_(N(K)),_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return W.join("")}c.equals=function(f,v){return!f||!v?!1:c(f).toRgbString()==c(v).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})};function L(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s-=v/100,w.s=lA(w.s),c(w)}function S(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s+=v/100,w.s=lA(w.s),c(w)}function E(f){return c(f).desaturate(100)}function h(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l+=v/100,w.l=lA(w.l),c(w)}function I(f,v){v=v===0?0:v||10;var w=c(f).toRgb();return w.r=o(0,s(255,w.r-a(255*-(v/100)))),w.g=o(0,s(255,w.g-a(255*-(v/100)))),w.b=o(0,s(255,w.b-a(255*-(v/100)))),c(w)}function M(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l-=v/100,w.l=lA(w.l),c(w)}function k(f,v){var w=c(f).toHsl(),K=(w.h+v)%360;return w.h=K<0?360+K:K,c(w)}function R(f){var v=c(f).toHsl();return v.h=(v.h+180)%360,c(v)}function O(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+120)%360,s:v.s,l:v.l}),c({h:(w+240)%360,s:v.s,l:v.l})]}function Z(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+90)%360,s:v.s,l:v.l}),c({h:(w+180)%360,s:v.s,l:v.l}),c({h:(w+270)%360,s:v.s,l:v.l})]}function D(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+72)%360,s:v.s,l:v.l}),c({h:(w+216)%360,s:v.s,l:v.l})]}function z(f,v,w){v=v||6,w=w||30;var K=c(f).toHsl(),W=360/w,P=[c(f)];for(K.h=(K.h-(W*v>>1)+720)%360;--v;)K.h=(K.h+W)%360,P.push(c(K));return P}function eA(f,v){v=v||6;for(var w=c(f).toHsv(),K=w.h,W=w.s,P=w.v,oA=[],fA=1/v;v--;)oA.push(c({h:K,s:W,v:P})),P=(P+fA)%1;return oA}c.mix=function(f,v,w){w=w===0?0:w||50;var K=c(f).toRgb(),W=c(v).toRgb(),P=w/100,oA={r:(W.r-K.r)*P+K.r,g:(W.g-K.g)*P+K.g,b:(W.b-K.b)*P+K.b,a:(W.a-K.a)*P+K.a};return c(oA)},c.readability=function(f,v){var w=c(f),K=c(v);return(A.max(w.getLuminance(),K.getLuminance())+.05)/(A.min(w.getLuminance(),K.getLuminance())+.05)},c.isReadable=function(f,v,w){var K=c.readability(f,v),W,P;switch(P=!1,W=pA(w),W.level+W.size){case"AAsmall":case"AAAlarge":P=K>=4.5;break;case"AAlarge":P=K>=3;break;case"AAAsmall":P=K>=7;break}return P},c.mostReadable=function(f,v,w){var K=null,W=0,P,oA,fA,UA;w=w||{},oA=w.includeFallbackColors,fA=w.level,UA=w.size;for(var jA=0;jA<v.length;jA++)P=c.readability(f,v[jA]),P>W&&(W=P,K=c(v[jA]));return c.isReadable(f,K,{level:fA,size:UA})||!oA?K:(w.includeFallbackColors=!1,c.mostReadable(f,["#fff","#000"],w))};var tA=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},AA=c.hexNames=dA(tA);function dA(f){var v={};for(var w in f)f.hasOwnProperty(w)&&(v[f[w]]=w);return v}function aA(f){return f=parseFloat(f),(isNaN(f)||f<0||f>1)&&(f=1),f}function q(f,v){H(f)&&(f="100%");var w=j(f);return f=s(v,o(0,parseFloat(f))),w&&(f=parseInt(f*v,10)/100),A.abs(f-v)<1e-6?1:f%v/parseFloat(v)}function lA(f){return s(1,o(0,f))}function sA(f){return parseInt(f,16)}function H(f){return typeof f=="string"&&f.indexOf(".")!=-1&&parseFloat(f)===1}function j(f){return typeof f=="string"&&f.indexOf("%")!=-1}function _(f){return f.length==1?"0"+f:""+f}function F(f){return f<=1&&(f=f*100+"%"),f}function N(f){return A.round(parseFloat(f)*255).toString(16)}function T(f){return sA(f)/255}var G=(function(){var f="[-\\+]?\\d+%?",v="[-\\+]?\\d*\\.\\d+%?",w="(?:"+v+")|(?:"+f+")",K="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?",W="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?";return{CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function J(f){return!!G.CSS_UNIT.exec(f)}function $(f){f=f.replace(r,"").replace(t,"").toLowerCase();var v=!1;if(tA[f])f=tA[f],v=!0;else if(f=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var w;return(w=G.rgb.exec(f))?{r:w[1],g:w[2],b:w[3]}:(w=G.rgba.exec(f))?{r:w[1],g:w[2],b:w[3],a:w[4]}:(w=G.hsl.exec(f))?{h:w[1],s:w[2],l:w[3]}:(w=G.hsla.exec(f))?{h:w[1],s:w[2],l:w[3],a:w[4]}:(w=G.hsv.exec(f))?{h:w[1],s:w[2],v:w[3]}:(w=G.hsva.exec(f))?{h:w[1],s:w[2],v:w[3],a:w[4]}:(w=G.hex8.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),a:T(w[4]),format:v?"name":"hex8"}:(w=G.hex6.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),format:v?"name":"hex"}:(w=G.hex4.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),a:T(w[4]+""+w[4]),format:v?"name":"hex8"}:(w=G.hex3.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),format:v?"name":"hex"}:!1}function pA(f){var v,w;return f=f||{level:"AA",size:"small"},v=(f.level||"AA").toUpperCase(),w=(f.size||"small").toLowerCase(),v!=="AA"&&v!=="AAA"&&(v="AA"),w!=="small"&&w!=="large"&&(w="small"),{level:v,size:w}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(Mr)),Mr.exports}var tl=el();const SA=ks(tl);var Oe=function(){return Oe=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Oe.apply(this,arguments)},rl=function(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||Array.prototype.slice.call(A))},nl=function(e){e===void 0&&(e="");var A={linearGradient:/^(-(webkit|o|ms|moz)-)?(linear-gradient)/i,repeatingLinearGradient:/^(-(webkit|o|ms|moz)-)?(repeating-linear-gradient)/i,radialGradient:/^(-(webkit|o|ms|moz)-)?(radial-gradient)/i,repeatingRadialGradient:/^(-(webkit|o|ms|moz)-)?(repeating-radial-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,spacedRgbColor:/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s+\/\s+([0-1](\.\d+)?)/,rgbaColor:/^rgba/i,hslColor:/^hsl/i,hsvColor:/^hsv/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/};function r(H){var j=new Error(e+": "+H);throw j}function t(H){e=e.substr(H)}function n(H){var j=/^[\n\r\t\s]+/.exec(e);j&&t(j[0].length);var _=H.exec(e);return _&&t(_[0].length),_}function a(H){var j=H(),_=[];if(j)for(_.push(j);n(A.comma);)j=H(),j?_.push(j):r("One extra comma");return _}function s(H,j,_){var F=n(j);if(F)return{type:H,value:F[_]}}function o(){var H=s("hex",A.hexColor,1);if(H?.value){var j=SA(H?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}var l=function(H){var j=Ue(H?.[0]);return{value:"".concat(j?"RGBA":"rgba","(").concat(a(AA),")")}};function c(H,j){var _=n(H);if(_){n(A.startCall)||r("Missing (");var F=j(_);return n(A.endCall)||r("Missing )"),F}}function g(){return c(A.hslColor,dA)}function B(){return c(A.rgbaColor,l)}function u(){return c(A.rgbColor,q)}function p(){var H=s("literal",A.literalColor,0);if(H?.value){var j=SA(H?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}function Q(){return c(A.hsvColor,aA)}function C(){return o()||g()||B()||u()||p()||Q()}function x(){var H,j=C();return j||r("Expected color definition"),j.left=parseInt((H=lA())===null||H===void 0?void 0:H.value),j}function U(H,j,_){return c(j,function(){var F=_();return F&&(n(A.comma)||r("Missing comma before color stops")),{type:H,orientation:F,colorStops:a(x)}})}function y(){return h()||I()}function L(){return U("linear-gradient",A.linearGradient,y)||U("repeating-linear-gradient",A.repeatingLinearGradient,y)||U("radial-gradient",A.radialGradient,M)||U("repeating-radial-gradient",A.repeatingRadialGradient,M)}function S(){return a(L)}function E(){var H,j=S();e.length>0&&r("Invalid input not EOF");var _=j[0],F=(H=_?.colorStops)===null||H===void 0?void 0:H.filter(function(T){return Ue(T.value)}).length,N=function(){if(F>0)return _;var T=function(G,J){return J===0?mr(G):vt(G)};return Oe(Oe({},_),{colorStops:_.colorStops.map(function(G,J){return Oe(Oe({},G),{value:T(G,J)})})})};return N()}function h(){return s("directional",A.sideOrCorner,1)}function I(){return s("angular",A.angleValue,1)}function M(){var H,j=k(),_;return j&&(H=[],H.push(j),_=e,n(A.comma)&&(j=k(),j?H.push(j):e=_)),H}function k(){var H=O()||Z();if(H)H.at=z();else{var j=D();if(j){H=j;var _=z();_&&(H.at=_)}else{var F=eA();F&&(H={type:"default-radial",at:F})}}return H}function R(){return s("px",A.pixelValue,1)||s("em",A.emValue,1)}function O(){var H=s("shape",/^(circle)/i,0);return H&&(H.style=R()||D()),H}function Z(){var H=s("shape",/^(ellipse)/i,0);return H&&(H.style=lA()||D()),H}function D(){return s("extent-keyword",A.extentKeywords,1)}function z(){if(s("position",/^at/,0)){var H=eA();return H||r("Missing positioning value"),H}}function eA(){var H=tA();if(H.x||H.y)return{type:"position",value:H}}function tA(){return{x:lA(),y:lA()}}function AA(){return n(A.number)[1]}var dA=function(H){var j=Ue(H?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],l:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,J=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(J,")")}},aA=function(H){var j=Ue(H?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],v:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,J=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(J,")")}},q=function(H){var j=Ue(H?.[0]),_=n(A.spacedRgbColor),F=_||rl([null],a(AA),!0),N=F[1],T=F[2],G=F[3],J=F[4],$=J===void 0?1:J;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat($,")")}};function lA(){return s("%",A.percentageValue,1)||sA()||R()}function sA(){return s("position-keyword",A.positionKeywords,1)}return E()},vt=function(e){return e.value.toLowerCase()},mr=function(e){return e.value.toUpperCase()},al=function(e,A,r){var t=e?.includes("gradient");if(t){var n=e?.includes("conic"),a=n?r:e;n&&console.log("Sorry we cant handle conic gradients yet");var s=nl(a);return s?.colorStops}else{var a=e||A;return[{value:a}]}},_e=function(e,A,r){return isNaN(e)||e<A?A:e>r?r:e},ee=function(e){return Math.round(e)},or=function(){return or=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},or.apply(this,arguments)},Ts=function(e){var A=e.target.parentNode.getBoundingClientRect(),r=e.target.className,t=r==="c-resize ps-rl"?15:0;return{offsetLeft:A?.x+t,offsetTop:A?.y,clientWidth:A?.width,clientHeight:A?.height}};function Ge(e,A){var r=Ts(e),t=r.offsetLeft,n=r.clientWidth,a=e.clientX-t-A/2,s=n-18,o=_e(a,0,s);return Math.round(o/(s/100))}function sl(e,A,r,t,n){var a=e*r-n/2,s=(100-A)/100*t-n/2;return[a,s]}var il=function(e){if(e.clientX)return{clientX:e.clientX,clientY:e.clientY};var A=e.touches[0]||{};return{clientX:A.clientX,clientY:A.clientY}};function ol(e,A){var r=Ts(e),t=r.offsetLeft,n=r.offsetTop,a=r.clientWidth,s=r.clientHeight,o=il(e),l=o.clientX,c=o.clientY,g=function(){var u=l-t-A/2;return _e(u,-9,a-10)},B=function(){var u=c-n-A/2;return _e(u,-9,s-10)};return[g(),B()]}var Ue=function(e){var A;return e?.[0]===((A=e?.[0])===null||A===void 0?void 0:A.toUpperCase())},Ds=function(e){if(e==="to top")return 0;if(e==="to bottom")return 180;if(e==="to left")return 270;if(e==="to right")return 90;if(e==="to top right")return 45;if(e==="to bottom right")return 135;if(e==="to bottom left")return 225;if(e==="to top left")return 315;var A=e||0;return parseInt(A)},ll=function(e){var A,r,t,n,a;if(typeof e=="string")return e;if(!((A=e?.type)===null||A===void 0)&&A.includes("gradient")){var s=(r=e?.colorStops)===null||r===void 0?void 0:r.sort(function(u,p){return u?.left-p?.left}),o=(t=s?.map(function(u){return"".concat(u?.value," ").concat(u?.left,"%")}))===null||t===void 0?void 0:t.join(", "),l=e?.type,c=Ds((n=e?.orientation)===null||n===void 0?void 0:n.value),g=l==="linear-gradient"?"".concat(c,"deg"):"circle";return"".concat(l,"(").concat(g,", ").concat(o,")")}else{var B=((a=e?.colorStops[0])===null||a===void 0?void 0:a.value)||"rgba(175, 51, 242, 1)";return B}},cl=function(e,A){var r=e?.map(function(a,s){return or(or({},a),{index:s})}),t=r?.find(function(a){return Ue(a.value)}),n=t||r[0];return{currentColor:n?.value||A,selectedColor:n?.index||0,currentLeft:n?.left||0}},gl=function(e){var A,r=e?.split(",")[0],t=(A=r?.split("(")[1])===null||A===void 0?void 0:A.replace("deg","");return Ds(t)},ul=function(e){var A=e?.includes("gradient"),r=e?.split("(")[0],t=gl(e),n=r==="linear-gradient"?"".concat(t,"deg"):"circle";return{degrees:t,degreeStr:n,isGradient:A,gradientType:r}},DA=function(){return DA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},DA.apply(this,arguments)},Bl=function(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||Array.prototype.slice.call(A))},Os=b.createContext(null);function dl(e){var A,r,t,n,a=e.value,s=e.children,o=e.onChange,l=e.isDarkMode,c=e.squareWidth,g=e.hideOpacity,B=e.showHexAlpha,u=e.squareHeight,p=e.passedConfig,Q=e.defaultStyles,C=e.pickerIdSuffix,x={barSize:(A=p.barSize)!==null&&A!==void 0?A:Et.barSize,crossSize:(r=p.crossSize)!==null&&r!==void 0?r:Et.crossSize,defaultColor:(t=p.defaultColor)!==null&&t!==void 0?t:Et.defaultColor,defaultGradient:(n=p.defaultGradient)!==null&&n!==void 0?n:Et.defaultGradient},U=al(a,x.defaultColor,x.defaultGradient),y=ul(a),L=y.degrees,S=y.degreeStr,E=y.isGradient,h=y.gradientType,I=cl(U,x.defaultGradient),M=I.currentColor,k=I.selectedColor,R=I.currentLeft,O=b.useState("rgb"),Z=O[0],D=O[1],z=b.useState({}),eA=z[0],tA=z[1],AA=SA(M),dA=AA.toRgb(),aA=AA.toHsv(),q=b.useState(DA(DA({},dA),aA)),lA=q[0],sA=q[1];b.useEffect(function(){aA?.s===0?sA(DA(DA(DA({},dA),aA),{h:lA?.h})):sA(DA(DA({},dA),aA))},[M]);var H=function(T){var G=T.sort(function(pA,f){return pA.left-f.left}),J=G?.map(function(pA){return"".concat(pA?.value," ").concat(pA.left,"%")}),$="".concat(h,"(").concat(S,", ").concat(J.join(", "),")");tA(DA(DA({},eA),{gradient:$})),o($)},j=function(T,G){var J=U?.filter(function(pA){return!Ue(pA.value)}),$=Bl([{value:T.toUpperCase(),left:G??R}],J,!0);H($)},_=function(T){E?j(T):(tA(DA(DA({},eA),{color:T})),o(T))},F=function(){if(U?.length>2){var T=U?.map(function(J,$){return DA(DA({},J),{value:$===k-1?mr(J):vt(J)})}),G=T?.filter(function(J,$){return $!==k});H(G)}},N={hc:lA,setHc:sA,value:a,colors:U,config:x,degrees:L,onChange:o,previous:eA,inputType:Z,tinyColor:AA,isDarkMode:l,isGradient:E,squareWidth:c,hideOpacity:g,currentLeft:R,deletePoint:F,showHexAlpha:B,squareHeight:u,setInputType:D,gradientType:h,handleChange:_,currentColor:M,selectedColor:k,defaultStyles:Q,handleGradient:j,pickerIdSuffix:C,createGradientStr:H};return m.createElement(Os.Provider,{value:N},s)}function BA(){var e=b.useContext(Os);if(!e)throw new Error("usePicker has to be used within <PickerContext.Provider>");return e}var Et={barSize:18,crossSize:18,defaultColor:"rgba(175, 51, 242, 1)",defaultGradient:"linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%)"},fl=function(e,A){b.useEffect(function(){var r,t=(r=e?.current)===null||r===void 0?void 0:r.getContext("2d",{willReadFrequently:!0});if(t){t.rect(0,0,A,14);for(var n=t.createLinearGradient(0,0,A,0),a=0;a<=360;a+=30)n.addColorStop(a/360,"hsl(".concat(a,", 100%, 50%)"));t.fillStyle=n,t.fill()}},[e,A])},hl=function(e,A,r,t){b.useEffect(function(){var n,a=(n=e?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(A,", ").concat(o,"%, ").concat(r,"%)"));a.fillStyle=s,a.fill()}},[e,A,r,t])},wl=function(e,A,r,t){b.useEffect(function(){var n,a=(n=e?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(A,", ").concat(r,"%, ").concat(o,"%)"));a.fillStyle=s,a.fill()}},[e,A,r,t])},pl=function(e,A,r,t){b.useEffect(function(){var n,a=(n=e?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10){var l=SA({h:A,s:r,v:o});s.addColorStop(o/100,l.toHslString())}a.fillStyle=s,a.fill()}},[e,A,r,t])},lr=function(){return lr=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},lr.apply(this,arguments)},Cl=function(){var e=b.useRef(null),A=BA(),r=A.config,t=A.handleChange,n=A.squareWidth,a=A.hc,s=A.setHc,o=A.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],B=r.barSize;fl(e,n);var u=function(){g(!1)},p=function(){g(!0)},Q=function(U){var y=Ge(U,B)*3.6,L=SA({h:y,s:a?.s,v:a?.v}),S=L.toRgb(),E=S.r,h=S.g,I=S.b;t("rgba(".concat(E,", ").concat(h,", ").concat(I,", ").concat(a.a,")")),s(lr(lr({},a),{h:y}))},C=function(U){c&&Q(U)},x=function(U){c||Q(U)};return b.useEffect(function(){var U=function(){u()};return window.addEventListener("mouseup",U),function(){window.removeEventListener("mouseup",U)}},[]),m.createElement("div",{style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},onMouseMove:function(U){return C(U)},id:"rbgcp-hue-wrap".concat(o)},m.createElement("div",{tabIndex:0,role:"button",style:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 10ms linear",position:"absolute",left:a?.h*((n-18)/360),top:-2,cursor:"ew-resize",boxSizing:"border-box"},onMouseDown:p,id:"rbgcp-hue-handle".concat(o)}),m.createElement("canvas",{ref:e,height:"14px",width:"".concat(n,"px"),onClick:function(U){return x(U)},id:"rbgcp-hue-bar".concat(o),style:{borderRadius:14,position:"relative",verticalAlign:"top"}}))};function Ql(e,A,r){var t=0,n=0,a=0,s=0;if(e===null||A===null||r===null||isNaN(e)||isNaN(A)||isNaN(r))return console.log("Please enter numeric RGB values!"),{c:0,m:0,k:0,y:1};if(e<0||A<0||r<0||e>255||A>255||r>255)return console.log("RGB values must be in the range 0 to 255."),{c:0,m:0,k:0,y:1};if(e===0&&A===0&&r===0)return s=1,{c:0,m:0,k:0,y:1};t=1-e/255,n=1-A/255,a=1-r/255;var o=Math.min(t,Math.min(n,a));return t=(t-o)/(1-o),n=(n-o)/(1-o),a=(a-o)/(1-o),s=o,{c:t,m:n,y:a,k:s}}var ml=function(e){var A=e.c,r=e.m,t=e.y,n=e.k,a=255*(1-A)*(1-n),s=255*(1-r)*(1-n),o=255*(1-t)*(1-n);return{r:a,g:s,b:o}},vl=function(e){return typeof e!="number"?"FF":e<0?"00":e>1?"FF":Math.round(e*255).toString(16).padStart(2,"0").toUpperCase()},WA=function(){return WA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},WA.apply(this,arguments)},_A=function(e){var A=e.label,r=e.value,t=e.callback,n=e.max,a=n===void 0?100:n,s=e.hideOpacity,o=e.defaultStyles,l=e.pickerIdSuffix,c=b.useState(r),g=c[0],B=c[1],u=s?"25%":"20%";b.useEffect(function(){B(r)},[r]);var p=function(Q){var C=_e(parseFloat(Q.target.value),0,a);B(C),t(C)};return m.createElement("div",{style:{width:u,flexShrink:1},id:"rbgcp-".concat(A,"-input-wrapper").concat(l)},m.createElement("input",{value:g,onChange:function(Q){return p(Q)},style:WA({},o.rbgcpInput),id:"rbgcp-".concat(A,"-input").concat(l)}),m.createElement("div",{style:WA({},o.rbgcpInputLabel)},A))},Ul=function(e){var A=e.opacity,r=e.tinyColor,t=e.showHexAlpha,n=e.handleChange,a=e.defaultStyles,s=e.pickerIdSuffix,o=b.useState(""),l=o[0],c=o[1],g=r.toHex(),B=b.useState(g),u=B[0],p=B[1];b.useEffect(function(){l!=="hex"&&p(g)},[r,l,g]);var Q=function(){c("hex")},C=function(){c("")},x=function(S){var E=SA(S.target.value);if(p(S.target.value),E.isValid()){var h=E.toRgb(),I=h.r,M=h.g,k=h.b,R="rgba(".concat(I,", ").concat(M,", ").concat(k,", ").concat(A,")");n(R)}},U=t?"".concat(u).concat(vl(A)):u,y=t?"HEXA":"HEX",L=t?88:76;return m.createElement("div",{style:{width:L,flexShrink:0},id:"rbgcp-hex-input-wrapper".concat(s)},m.createElement("input",{onBlur:C,onFocus:Q,onChange:function(S){return x(S)},value:U?.toUpperCase(),id:"rbgcp-hex-input".concat(s),style:WA(WA({},a.rbgcpInput),a.rbgcpHexInput)}),m.createElement("div",{style:WA({},a.rbgcpInputLabel)},y))},Fl=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,s=function(o){var l=o.r,c=o.g,g=o.b;t("rgba(".concat(l,", ").concat(c,", ").concat(g,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"R",max:255,value:A?.r,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:o,g:A?.g,b:A?.b})}}),m.createElement(_A,{label:"G",max:255,value:A?.g,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:A?.r,g:o,b:A?.b})}}),m.createElement(_A,{label:"B",max:255,value:A?.b,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:A?.r,g:A?.g,b:o})}}))},bl=function(e){var A=e.hc,r=e.setHc,t=e.tinyColor,n=e.hideOpacity,a=e.handleChange,s=e.defaultStyles,o=e.pickerIdSuffix,l=t.toHsl(),c=l.s,g=l.l,B=function(p,Q,C){var x=SA({h:p,s:Q,l:C}).toRgb(),U=x.r,y=x.g,L=x.b;a("rgba(".concat(U,", ").concat(y,", ").concat(L,", ").concat(A?.a,")")),r(WA(WA({},A),{h:p}))},u=function(p){var Q=SA(p).toRgb(),C=Q.r,x=Q.g,U=Q.b;a("rgba(".concat(C,", ").concat(x,", ").concat(U,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"H",max:360,value:ee(A?.h),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return B(p,c,g)}}),m.createElement(_A,{label:"S",value:ee(c*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:p,l:g})}}),m.createElement(_A,{label:"L",value:ee(g*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:A?.h,s:c,l:p})}}))},yl=function(e){var A=e.hc,r=e.setHc,t=e.hideOpacity,n=e.handleChange,a=e.defaultStyles,s=e.pickerIdSuffix,o=function(c,g,B){var u=SA({h:c,s:g,v:B}).toRgb(),p=u.r,Q=u.g,C=u.b;n("rgba(".concat(p,", ").concat(Q,", ").concat(C,", ").concat(A?.a,")")),r(WA(WA({},A),{h:c}))},l=function(c){var g=SA(c).toRgb(),B=g.r,u=g.g,p=g.b;n("rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"H",max:360,value:ee(A?.h),hideOpacity:t,defaultStyles:a,pickerIdSuffix:s,callback:function(c){return o(c,A?.s,A?.v)}}),m.createElement(_A,{label:"S",hideOpacity:t,value:ee(A?.s*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:A?.h,s:c,v:A?.v})}}),m.createElement(_A,{label:"V",hideOpacity:t,value:ee(A?.v*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:A?.h,s:A?.s,v:c})}}))},El=function(e){var A=e.hc,r=e.hideOpacity,t=e.handleChange,n=e.defaultStyles,a=e.pickerIdSuffix,s=Ql(A?.r,A?.g,A?.b),o=s.c,l=s.m,c=s.y,g=s.k,B=function(u){var p=ml(u),Q=p.r,C=p.g,x=p.b;t("rgba(".concat(Q,", ").concat(C,", ").concat(x,", ").concat(A?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(_A,{label:"C",value:ee(o*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:u/100,m:l,y:c,k:g})}}),m.createElement(_A,{label:"M",value:ee(l*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:u/100,y:c,k:g})}}),m.createElement(_A,{label:"Y",value:ee(c*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:u/100,k:g})}}),m.createElement(_A,{label:"K",value:ee(g*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:c,k:u/100})}}))},xl=function(){var e=BA(),A=e.hc,r=e.setHc,t=e.inputType,n=e.tinyColor,a=e.hideOpacity,s=e.showHexAlpha,o=e.handleChange,l=e.defaultStyles,c=e.pickerIdSuffix;return m.createElement("div",{style:WA({columnGap:6,paddingTop:14,display:"flex",justifyContent:"space-between"},l.rbgcpInputsWrap),id:"rbgcp-inputs-wrap".concat(c)},t!=="cmyk"&&m.createElement(Ul,{opacity:A?.a,tinyColor:n,showHexAlpha:s,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsl"&&m.createElement(bl,{hc:A,setHc:r,tinyColor:n,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="rgb"&&m.createElement(Fl,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsv"&&m.createElement(yl,{hc:A,setHc:r,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="cmyk"&&m.createElement(El,{hc:A,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),!a&&m.createElement(_A,{label:"A",hideOpacity:a,defaultStyles:l,value:Math.round(A?.a*100),pickerIdSuffix:c,callback:function(g){return o("rgba(".concat(A?.r,", ").concat(A?.g,", ").concat(A?.b,", ").concat(g/100,")"))}}))},Il=function(e,A,r,t){b.useEffect(function(){if(e.current){var n=e.current.getContext("2d",{willReadFrequently:!0});if(n){n.fillStyle="hsl(".concat(A,", 100%, 50%)"),n.fillRect(0,0,r,t);var a=n.createLinearGradient(0,0,r,0);a.addColorStop(0,"rgba(255, 255, 255, 1)"),a.addColorStop(1,"rgba(255, 255, 255, 0)"),n.fillStyle=a,n.fillRect(0,0,r,t);var s=n.createLinearGradient(0,0,0,t);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=s,n.fillRect(0,0,r,t)}}},[e,A,r,t])},Kr,ra;function Hl(){if(ra)return Kr;ra=1;var e="Expected a function",A=NaN,r="[object Symbol]",t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,l=typeof bt=="object"&&bt&&bt.Object===Object&&bt,c=typeof self=="object"&&self&&self.Object===Object&&self,g=l||c||Function("return this")(),B=Object.prototype,u=B.toString,p=Math.max,Q=Math.min,C=function(){return g.Date.now()};function x(h,I,M){var k,R,O,Z,D,z,eA=0,tA=!1,AA=!1,dA=!0;if(typeof h!="function")throw new TypeError(e);I=E(I)||0,y(M)&&(tA=!!M.leading,AA="maxWait"in M,O=AA?p(E(M.maxWait)||0,I):O,dA="trailing"in M?!!M.trailing:dA);function aA(T){var G=k,J=R;return k=R=void 0,eA=T,Z=h.apply(J,G),Z}function q(T){return eA=T,D=setTimeout(H,I),tA?aA(T):Z}function lA(T){var G=T-z,J=T-eA,$=I-G;return AA?Q($,O-J):$}function sA(T){var G=T-z,J=T-eA;return z===void 0||G>=I||G<0||AA&&J>=O}function H(){var T=C();if(sA(T))return j(T);D=setTimeout(H,lA(T))}function j(T){return D=void 0,dA&&k?aA(T):(k=R=void 0,Z)}function _(){D!==void 0&&clearTimeout(D),eA=0,k=z=R=D=void 0}function F(){return D===void 0?Z:j(C())}function N(){var T=C(),G=sA(T);if(k=arguments,R=this,z=T,G){if(D===void 0)return q(z);if(AA)return D=setTimeout(H,I),aA(z)}return D===void 0&&(D=setTimeout(H,I)),Z}return N.cancel=_,N.flush=F,N}function U(h,I,M){var k=!0,R=!0;if(typeof h!="function")throw new TypeError(e);return y(M)&&(k="leading"in M?!!M.leading:k,R="trailing"in M?!!M.trailing:R),x(h,I,{leading:k,maxWait:I,trailing:R})}function y(h){var I=typeof h;return!!h&&(I=="object"||I=="function")}function L(h){return!!h&&typeof h=="object"}function S(h){return typeof h=="symbol"||L(h)&&u.call(h)==r}function E(h){if(typeof h=="number")return h;if(S(h))return A;if(y(h)){var I=typeof h.valueOf=="function"?h.valueOf():h;h=y(I)?I+"":I}if(typeof h!="string")return h===0?h:+h;h=h.replace(t,"");var M=a.test(h);return M||s.test(h)?o(h.slice(2),M?2:8):n.test(h)?A:+h}return Kr=U,Kr}var Sl=Hl();const Ll=ks(Sl);var Fe=function(){return Fe=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Fe.apply(this,arguments)},kl=function(){var e,A,r=BA(),t=r.hc,n=r.config,a=r.squareWidth,s=r.squareHeight,o=r.handleChange,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.crossSize,B=b.useState(!1),u=B[0],p=B[1],Q=b.useRef(null),C=sl(t?.s,t?.v*100,a,s,g),x=C[0],U=C[1],y=b.useState({x,y:U}),L=y[0],S=y[1];Il(Q,t?.h,a,s),b.useEffect(function(){u||S({x:t?.v===0?L.x:x,y:U})},[x,U]);var E=function(O){var Z=Ll(function(){var D=ol(O,g),z=D[0],eA=D[1];if(z&&eA){var tA=Math.min(z+g/2,a-1),AA=Math.min(eA+g/2,s-1),dA=tA/a*100,aA=100-AA/s*100;S({x:aA===0?L?.x:z,y:eA});var q=SA("hsva(".concat(t?.h,", ").concat(dA,"%, ").concat(aA,"%, ").concat(t?.a,")"));o(q.toRgbString())}},250);Z()},h=function(){p(!1)},I=function(O){u&&E(O)},M=function(O){u||E(O)},k=function(){p(!0)},R=function(O){p(!0),E(O)};return b.useEffect(function(){var O=function(){h()};return window.addEventListener("mouseup",O),function(){window.removeEventListener("mouseup",O)}},[]),m.createElement("div",{style:{position:"relative",marginBottom:12},id:"rbgcp-square-wrapper".concat(c)},m.createElement("div",{onMouseUp:h,onTouchEnd:h,onMouseDown:R,onTouchStart:R,onMouseMove:function(O){return I(O)},id:"rbgcp-square".concat(c),style:{position:"relative",cursor:"ew-cross"}},m.createElement("div",{style:Fe(Fe(Fe({},l.rbgcpHandle),{transform:"translate(".concat((e=L?.x)!==null&&e!==void 0?e:0,"px, ").concat((A=L?.y)!==null&&A!==void 0?A:0,"px)")}),u?{transition:""}:{}),onMouseDown:k,id:"rbgcp-square-handle".concat(c)}),m.createElement("div",{style:Fe(Fe({},l.rbgcpCanvasWrapper),{height:s}),id:"rbgcp-square-canvas-wrapper".concat(c),onClick:function(O){return M(O)}},m.createElement("canvas",{ref:Q,width:"".concat(a,"px"),height:"".concat(s,"px"),id:"rbgcp-square-canvas".concat(c)}))))},ce=function(){return ce=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},ce.apply(this,arguments)},Ml=function(){var e=BA(),A=e.config,r=e.hc,t=r===void 0?{}:r,n=e.squareWidth,a=e.handleChange,s=e.defaultStyles,o=e.pickerIdSuffix,l=b.useState(!1),c=l[0],g=l[1],B=t.r,u=t.g,p=t.b,Q="linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(".concat(B,",").concat(u,",").concat(p,",.5) 100%)"),C=A.barSize,x=function(){g(!1)},U=function(){g(!0)},y=function(h){var I=Ge(h,C)/100,M="rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(I,")");a(M)},L=function(h){c&&y(h)},S=function(h){c||y(h)},E=n-18;return b.useEffect(function(){var h=function(){x()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{onMouseDown:U,onMouseMove:function(h){return L(h)},style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},id:"rbgcp-opacity-wrapper".concat(o)},m.createElement("div",{id:"rbgcp-opacity-checkered-bg".concat(o),style:ce(ce({},s.rbgcpCheckered),{width:"100%",height:14})}),m.createElement("div",{id:"rbgcp-opacity-handle".concat(o),style:ce(ce({},s.rbgcpHandle),{left:E*t?.a,top:-2})}),m.createElement("div",{style:ce(ce({},s.rbgcpOpacityOverlay),{background:Q}),id:"rbgcp-opacity-overlay".concat(o),onClick:function(h){return S(h)}}))},Kl={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}},Tl=["rgba(0,0,0,1)","rgba(128,128,128, 1)","rgba(192,192,192, 1)","rgba(255,255,255, 1)","rgba(0,0,128,1)","rgba(0,0,255,1)","rgba(0,255,255, 1)","rgba(0,128,0,1)","rgba(128,128,0, 1)","rgba(0,128,128,1)","rgba(0,255,0, 1)","rgba(128,0,0, 1)","rgba(128,0,128, 1)","rgba(175, 51, 242, 1)","rgba(255,0,255, 1)","rgba(255,0,0, 1)","rgba(240, 103, 46, 1)","rgba(255,255,0, 1)"],Dl=function(e){var A=e.presets,r=A===void 0?[]:A,t=BA(),n=t.value,a=t.onChange,s=t.isDarkMode,o=t.squareWidth,l=t.handleChange,c=t.pickerIdSuffix,g=function(){return r?.length>0?r?.slice(0,18):Tl},B=function(p){p?.includes("gradient")?a(p):l(p)},u=function(p){if(!p||s)return"";var Q=p?.replace(" ","");return Q==="rgba(255,255,255,1)"?"1px solid #96959c":""};return m.createElement("div",{style:{marginTop:14,display:"flex",justifyContent:"space-between"},id:"rbgcp-footer-wrapper".concat(c)},m.createElement("div",{style:{width:50,height:50,flexShrink:0,borderRadius:6,background:n,border:u(n)},id:"rbgcp-preview".concat(c)}),m.createElement("div",{style:{rowGap:3,display:"flex",flexWrap:"wrap",width:o-57,justifyContent:"space-between"},id:"rbgcp-presets-wrapper".concat(c)},g().map(function(p,Q){return m.createElement("div",{key:"".concat(p,"-").concat(Q),id:"rbgcp-preset-".concat(Q,"-wrapper").concat(c),style:{width:"calc(100% / 9)",paddingLeft:3}},m.createElement("div",{style:{height:23.5,width:"100%",background:p,borderRadius:4,border:u(p)},onClick:function(){return B(p)},id:"rbgcp-preset-".concat(Q).concat(c)}))})))},Y=function(){return Y=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Y.apply(this,arguments)},Ol=function(){var e=BA().defaultStyles,A={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y({},A),e.rbgcpControlIcon),points:"17.96 4.31 2.04 4.3 3.75 4.3 4.81 17.29 5.16 17.96 5.74 18.47 6.59 18.62 13.64 18.62 14.52 18.32 15.07 17.68 15.29 17.12 16.28 4.3 12.87 4.3 12.87 2.38 12.48 1.75 11.83 1.46 8.4 1.46 7.64 1.68 7.26 2.21 7.16 2.52 7.17 4.23"}))},Rl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:14}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"0.9 12.73 0.9 19.1 7.27 19.1 0.9 19.1 19.1 0.9 12.73 0.9 19.1 0.9 19.1 7.27"}))},Nl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"9"}),m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"5"}))},_l=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"},a={strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"3.74 2.75 3.74 12.69 0.9 12.71 6.59 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"3.74",y1:"17.26",x2:"3.74",y2:"15.21"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.1 17.25 10.1 7.31 12.95 7.29 7.26 7.29"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"10.1",y1:"2.74",x2:"10.1",y2:"4.79"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"16.26 2.75 16.26 12.69 13.41 12.71 19.1 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},Gl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M6.35,2.72a4.85,4.85,0,0,1,1.86.16,7.94,7.94,0,0,1,.88.43,3.66,3.66,0,0,0,.85.49c.25,0,.58-.27.81-.39A8.25,8.25,0,0,1,11.7,3a4,4,0,0,1,1.79-.23,3.21,3.21,0,0,0-1.34.09,6.39,6.39,0,0,0-1.47.63c-.45.25-.7.3-.7.86s0,1.18,0,1.78c0,1.3,0,2.61,0,3.92h0v5.63a2.46,2.46,0,0,1,0,.47c-.07.28-.43.42-.7.57a5.29,5.29,0,0,1-2.94.61A9.3,9.3,0,0,0,8,17.15l1.09-.37.89-.52c.06,0,.48.21.56.25.32.14.64.27,1,.38a8.54,8.54,0,0,0,2.12.4"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M7.57,5.73C6,5.7,4.5,5.65,3,5.77a2.28,2.28,0,0,0-1.76.74A2.3,2.3,0,0,0,.94,7.83l0,3.82A4.73,4.73,0,0,0,1,12.9a1.64,1.64,0,0,0,.68,1,2.44,2.44,0,0,0,1,.27,25,25,0,0,0,4.74.09"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M12.43,14.32a44.12,44.12,0,0,0,4.6,0,2.24,2.24,0,0,0,1.76-.74,2.29,2.29,0,0,0,.27-1.32l0-3.81A4.81,4.81,0,0,0,19,7.15a1.62,1.62,0,0,0-.68-1,2.31,2.31,0,0,0-1-.28,26.8,26.8,0,0,0-4.74-.09"}))},jl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={strokeMiterlimit:10,strokeWidth:"0.5px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"9.36",cy:"5.07",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"13.93",cy:"6.91",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.8",cy:"7.55",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.45",cy:"12.04",r:"1.71"}),m.createElement("path",{style:Y(Y(Y(Y({},n),r.rbgcpControlIcon),r.rbgcpControlIcon2),t&&{fill:t,stroke:t}),d:"M19.1,10c0,3.58-2.12,2.94-4.06,2.35-1.15-.34-2.24-.67-2.77-.08-.68.78-.54,2.07-.39,3.33.2,1.79.39,3.5-1.88,3.5A9.1,9.1,0,1,1,19.1,10ZM10,18c.7,0,.74-.19.75-.2a2.67,2.67,0,0,0,.07-1.27c0-.19,0-.42-.06-.67-.06-.53-.13-1.15-.14-1.67a3.82,3.82,0,0,1,.8-2.63,2.14,2.14,0,0,1,1.45-.7,4.36,4.36,0,0,1,1.32.12c.39.08.8.21,1.16.32h0c.39.12.74.23,1.08.3.74.17,1,.1,1.13,0S18,11.32,18,10a8,8,0,1,0-8,8Z"}))},Vl=function(e){var A=e.color,r=BA().defaultStyles,t=A??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"13.86 2.01 1.7 16.99 18.77 16.99"}),m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.96 16.38 10.96 16.38 10.74 15.7 10.44 14.97 10.06 14.21 9.72 13.63 9.21 12.89 8.85 12.44 8.41 11.95 7.91 11.45 7.51 11.1"}))},Pl=function(){var e=BA().defaultStyles;return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:20,marginRight:1}},m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M2.39,8c-.63,0-1,.21-1,.63A.49.49,0,0,0,1.67,9a6.48,6.48,0,0,0,1.11.43A3,3,0,0,1,4,10.09a1.47,1.47,0,0,1,.35,1.09,1.75,1.75,0,0,1-.57,1.42,2.21,2.21,0,0,1-1.48.48,8.32,8.32,0,0,1-1.68-.21l-.31-.06.12-.94a13.7,13.7,0,0,0,1.8.16c.61,0,.92-.26.92-.77a.52.52,0,0,0-.21-.44,3.13,3.13,0,0,0-.85-.34A3.32,3.32,0,0,1,.66,9.79a1.43,1.43,0,0,1-.42-1.1A1.6,1.6,0,0,1,.78,7.36a2.32,2.32,0,0,1,1.49-.44,10.46,10.46,0,0,1,1.64.17l.32.07-.1.95C3.31,8,2.73,8,2.39,8Z"}),m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M14,12.34a2.25,2.25,0,0,1-1.91.74,2.24,2.24,0,0,1-1.91-.74A3.85,3.85,0,0,1,9.61,10a4,4,0,0,1,.56-2.34,2.2,2.2,0,0,1,1.91-.77A2.21,2.21,0,0,1,14,7.69,4,4,0,0,1,14.55,10,3.85,3.85,0,0,1,14,12.34Zm-2.88-.77a1,1,0,0,0,1,.46,1,1,0,0,0,1-.46A3.25,3.25,0,0,0,13.3,10,3.45,3.45,0,0,0,13,8.46a1,1,0,0,0-1-.49,1,1,0,0,0-1,.49A3.43,3.43,0,0,0,10.85,10,3.38,3.38,0,0,0,11.11,11.57Z"}),m.createElement("path",{style:Y({},e.rbgcpControlIcon2),d:"M17.77,11.24h-1V13H15.58V7h2.19a1.85,1.85,0,0,1,2.11,2.07,2.21,2.21,0,0,1-.54,1.6A2.07,2.07,0,0,1,17.77,11.24Zm-1-1h1c.6,0,.9-.37.9-1.12a1.18,1.18,0,0,0-.22-.79.88.88,0,0,0-.68-.24h-1Z"}))},Xl=function(e){var A,r=e.children,t="id"+Math.random().toString(16).slice(2),n=b.useRef((A=document.getElementById(t))!==null&&A!==void 0?A:document.createElement("div")),a=b.useState(!n.current.parentElement)[0];return b.useEffect(function(){var s=n.current;return a&&(n.current.id=t,document.body.appendChild(n.current)),function(){a&&s.parentElement&&s.parentElement.removeChild(s)}},[t]),so.createPortal(r,n.current)};const Jl=b.memo(Xl);var dn=function(e,A){return dn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},dn(e,A)};function zA(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");dn(e,A);function r(){this.constructor=e}e.prototype=A===null?Object.create(A):(r.prototype=A.prototype,new r)}var fn=function(){return fn=Object.assign||function(A){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(A[a]=r[a])}return A},fn.apply(this,arguments)};function OA(e,A,r,t){function n(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function o(g){try{c(t.next(g))}catch(B){s(B)}}function l(g){try{c(t.throw(g))}catch(B){s(B)}}function c(g){g.done?a(g.value):n(g.value).then(o,l)}c((t=t.apply(e,[])).next())})}function kA(e,A){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(g){return l([c,g])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,n&&(a=c[0]&2?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=A.call(e,r)}catch(g){c=[6,g],n=0}finally{t=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function xt(e,A,r){if(arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||A)}var ie=(function(){function e(A,r,t,n){this.left=A,this.top=r,this.width=t,this.height=n}return e.prototype.add=function(A,r,t,n){return new e(this.left+A,this.top+r,this.width+t,this.height+n)},e.fromClientRect=function(A,r){return new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(A,r){var t=Array.from(r).find(function(n){return n.width!==0});return t?new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),vr=function(e,A){return ie.fromClientRect(e,A.getBoundingClientRect())},Wl=function(e){var A=e.body,r=e.documentElement;if(!A||!r)throw new Error("Unable to get document size");var t=Math.max(Math.max(A.scrollWidth,r.scrollWidth),Math.max(A.offsetWidth,r.offsetWidth),Math.max(A.clientWidth,r.clientWidth)),n=Math.max(Math.max(A.scrollHeight,r.scrollHeight),Math.max(A.offsetHeight,r.offsetHeight),Math.max(A.clientHeight,r.clientHeight));return new ie(0,0,t,n)},Ur=function(e){for(var A=[],r=0,t=e.length;r<t;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=e.charCodeAt(r++);(a&64512)===56320?A.push(((n&1023)<<10)+(a&1023)+65536):(A.push(n),r--)}else A.push(n)}return A},bA=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=e[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var It=0;It<na.length;It++)Yl[na.charCodeAt(It)]=It;var aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ht=0;Ht<aa.length;Ht++)qe[aa.charCodeAt(Ht)]=Ht;var Zl=function(e){var A=e.length*.75,r=e.length,t,n=0,a,s,o,l;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=qe[e.charCodeAt(t)],s=qe[e.charCodeAt(t+1)],o=qe[e.charCodeAt(t+2)],l=qe[e.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},zl=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},ql=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},xe=5,Nn=11,Tr=2,$l=Nn-xe,Rs=65536>>xe,Ac=1<<xe,Dr=Ac-1,ec=1024>>xe,tc=Rs+ec,rc=tc,nc=32,ac=rc+nc,sc=65536>>Nn,ic=1<<$l,oc=ic-1,sa=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},lc=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},cc=function(e,A){var r=Zl(e),t=Array.isArray(r)?ql(r):new Uint32Array(r),n=Array.isArray(r)?zl(r):new Uint16Array(r),a=24,s=sa(n,a/2,t[4]/2),o=t[5]===2?sa(n,(a+t[4])/2):lc(t,Math.ceil((a+t[4])/4));return new gc(t[0],t[1],t[2],t[3],s,o)},gc=(function(){function e(A,r,t,n,a,s){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>xe],r=(r<<Tr)+(A&Dr),this.data[r];if(A<=65535)return r=this.index[Rs+(A-55296>>xe)],r=(r<<Tr)+(A&Dr),this.data[r];if(A<this.highStart)return r=ac-sc+(A>>Nn),r=this.index[r],r+=A>>xe&oc,r=this.index[r],r=(r<<Tr)+(A&Dr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uc=typeof Uint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wajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsByw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IIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwA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AeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAA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B4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsA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ABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVA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UAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AH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AEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAl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JQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",oa=50,dc=1,Ns=2,_s=3,fc=4,hc=5,la=7,Gs=8,ca=9,ue=10,hn=11,ga=12,wn=13,wc=14,$e=15,pn=16,Lt=17,Je=18,pc=19,ua=20,Cn=21,We=22,Or=23,He=24,GA=25,At=26,et=27,Se=28,Cc=29,be=30,Qc=31,kt=32,Mt=33,Qn=34,mn=35,vn=36,ht=37,Un=38,qt=39,$t=40,Rr=41,js=42,mc=43,vc=[9001,65288],Vs="!",iA="×",Kt="÷",Fn=cc(Bc),ne=[be,vn],bn=[dc,Ns,_s,hc],Ps=[ue,Gs],Ba=[et,At],Uc=bn.concat(Ps),da=[Un,qt,$t,Qn,mn],Fc=[$e,wn],bc=function(e,A){A===void 0&&(A="strict");var r=[],t=[],n=[];return e.forEach(function(a,s){var o=Fn.get(a);if(o>oa?(n.push(!0),o-=oa):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(s),r.push(pn);if(o===fc||o===hn){if(s===0)return t.push(s),r.push(be);var l=r[s-1];return Uc.indexOf(l)===-1?(t.push(t[s-1]),r.push(l)):(t.push(s),r.push(be))}if(t.push(s),o===Qc)return r.push(A==="strict"?Cn:ht);if(o===js||o===Cc)return r.push(be);if(o===mc)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(ht):r.push(be);r.push(o)}),[t,r,n]},Nr=function(e,A,r,t){var n=t[r];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var a=r;a<=t.length;){a++;var s=t[a];if(s===A)return!0;if(s!==ue)break}if(n===ue)for(var a=r;a>0;){a--;var o=t[a];if(Array.isArray(e)?e.indexOf(o)!==-1:e===o)for(var l=r;l<=t.length;){l++;var s=t[l];if(s===A)return!0;if(s!==ue)break}if(o!==ue)break}return!1},fa=function(e,A){for(var r=e;r>=0;){var t=A[r];if(t===ue)r--;else return t}return 0},yc=function(e,A,r,t,n){if(r[t]===0)return iA;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return iA;var s=a-1,o=a+1,l=A[a],c=s>=0?A[s]:0,g=A[o];if(l===Ns&&g===_s)return iA;if(bn.indexOf(l)!==-1)return Vs;if(bn.indexOf(g)!==-1||Ps.indexOf(g)!==-1)return iA;if(fa(a,A)===Gs)return Kt;if(Fn.get(e[a])===hn||(l===kt||l===Mt)&&Fn.get(e[o])===hn||l===la||g===la||l===ca||[ue,wn,$e].indexOf(l)===-1&&g===ca||[Lt,Je,pc,He,Se].indexOf(g)!==-1||fa(a,A)===We||Nr(Or,We,a,A)||Nr([Lt,Je],Cn,a,A)||Nr(ga,ga,a,A))return iA;if(l===ue)return Kt;if(l===Or||g===Or)return iA;if(g===pn||l===pn)return Kt;if([wn,$e,Cn].indexOf(g)!==-1||l===wc||c===vn&&Fc.indexOf(l)!==-1||l===Se&&g===vn||g===ua||ne.indexOf(g)!==-1&&l===GA||ne.indexOf(l)!==-1&&g===GA||l===et&&[ht,kt,Mt].indexOf(g)!==-1||[ht,kt,Mt].indexOf(l)!==-1&&g===At||ne.indexOf(l)!==-1&&Ba.indexOf(g)!==-1||Ba.indexOf(l)!==-1&&ne.indexOf(g)!==-1||[et,At].indexOf(l)!==-1&&(g===GA||[We,$e].indexOf(g)!==-1&&A[o+1]===GA)||[We,$e].indexOf(l)!==-1&&g===GA||l===GA&&[GA,Se,He].indexOf(g)!==-1)return iA;if([GA,Se,He,Lt,Je].indexOf(g)!==-1)for(var B=a;B>=0;){var u=A[B];if(u===GA)return iA;if([Se,He].indexOf(u)!==-1)B--;else break}if([et,At].indexOf(g)!==-1)for(var B=[Lt,Je].indexOf(l)!==-1?s:a;B>=0;){var u=A[B];if(u===GA)return iA;if([Se,He].indexOf(u)!==-1)B--;else break}if(Un===l&&[Un,qt,Qn,mn].indexOf(g)!==-1||[qt,Qn].indexOf(l)!==-1&&[qt,$t].indexOf(g)!==-1||[$t,mn].indexOf(l)!==-1&&g===$t||da.indexOf(l)!==-1&&[ua,At].indexOf(g)!==-1||da.indexOf(g)!==-1&&l===et||ne.indexOf(l)!==-1&&ne.indexOf(g)!==-1||l===He&&ne.indexOf(g)!==-1||ne.concat(GA).indexOf(l)!==-1&&g===We&&vc.indexOf(e[o])===-1||ne.concat(GA).indexOf(g)!==-1&&l===Je)return iA;if(l===Rr&&g===Rr){for(var p=r[a],Q=1;p>0&&(p--,A[p]===Rr);)Q++;if(Q%2!==0)return iA}return l===kt&&g===Mt?iA:Kt},Ec=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var r=bc(e,A.lineBreak),t=r[0],n=r[1],a=r[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(o){return[GA,be,js].indexOf(o)!==-1?ht:o}));var s=A.wordBreak==="keep-all"?a.map(function(o,l){return o&&e[l]>=19968&&e[l]<=40959}):void 0;return[t,n,s]},xc=(function(){function e(A,r,t,n){this.codePoints=A,this.required=r===Vs,this.start=t,this.end=n}return e.prototype.slice=function(){return bA.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),Ic=function(e,A){var r=Ur(e),t=Ec(r,A),n=t[0],a=t[1],s=t[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var g=iA;c<o&&(g=yc(r,a,n,++c,s))===iA;);if(g!==iA||c===o){var B=new xc(r,g,l,c);return l=c,{value:B,done:!1}}return{done:!0,value:null}}}},Hc=1,Sc=2,Ut=4,ha=8,cr=10,wa=47,it=92,Lc=9,kc=32,Tt=34,Ye=61,Mc=35,Kc=36,Tc=37,Dt=39,Ot=40,Ze=41,Dc=95,NA=45,Oc=33,Rc=60,Nc=62,_c=64,Gc=91,jc=93,Vc=61,Pc=123,Rt=63,Xc=125,pa=124,Jc=126,Wc=128,Ca=65533,_r=42,Ee=43,Yc=44,Zc=58,zc=59,wt=46,qc=0,$c=8,Ag=11,eg=14,tg=31,rg=127,qA=-1,Xs=48,Js=97,Ws=101,ng=102,ag=117,sg=122,Ys=65,Zs=69,zs=70,ig=85,og=90,MA=function(e){return e>=Xs&&e<=57},lg=function(e){return e>=55296&&e<=57343},Le=function(e){return MA(e)||e>=Ys&&e<=zs||e>=Js&&e<=ng},cg=function(e){return e>=Js&&e<=sg},gg=function(e){return e>=Ys&&e<=og},ug=function(e){return cg(e)||gg(e)},Bg=function(e){return e>=Wc},Nt=function(e){return e===cr||e===Lc||e===kc},gr=function(e){return ug(e)||Bg(e)||e===Dc},Qa=function(e){return gr(e)||MA(e)||e===NA},dg=function(e){return e>=qc&&e<=$c||e===Ag||e>=eg&&e<=tg||e===rg},ge=function(e,A){return e!==it?!1:A!==cr},_t=function(e,A,r){return e===NA?gr(A)||ge(A,r):gr(e)?!0:!!(e===it&&ge(e,A))},Gr=function(e,A,r){return e===Ee||e===NA?MA(A)?!0:A===wt&&MA(r):MA(e===wt?A:e)},fg=function(e){var A=0,r=1;(e[A]===Ee||e[A]===NA)&&(e[A]===NA&&(r=-1),A++);for(var t=[];MA(e[A]);)t.push(e[A++]);var n=t.length?parseInt(bA.apply(void 0,t),10):0;e[A]===wt&&A++;for(var a=[];MA(e[A]);)a.push(e[A++]);var s=a.length,o=s?parseInt(bA.apply(void 0,a),10):0;(e[A]===Zs||e[A]===Ws)&&A++;var l=1;(e[A]===Ee||e[A]===NA)&&(e[A]===NA&&(l=-1),A++);for(var c=[];MA(e[A]);)c.push(e[A++]);var g=c.length?parseInt(bA.apply(void 0,c),10):0;return r*(n+o*Math.pow(10,-s))*Math.pow(10,l*g)},hg={type:2},wg={type:3},pg={type:4},Cg={type:13},Qg={type:8},mg={type:21},vg={type:9},Ug={type:10},Fg={type:11},bg={type:12},yg={type:14},Gt={type:23},Eg={type:1},xg={type:25},Ig={type:24},Hg={type:26},Sg={type:27},Lg={type:28},kg={type:29},Mg={type:31},yn={type:32},qs=(function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(Ur(A))},e.prototype.read=function(){for(var A=[],r=this.consumeToken();r!==yn;)A.push(r),r=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Tt:return this.consumeStringToken(Tt);case Mc:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Qa(r)||ge(t,n)){var a=_t(r,t,n)?Sc:Hc,s=this.consumeName();return{type:5,value:s,flags:a}}break;case Kc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Cg;break;case Dt:return this.consumeStringToken(Dt);case Ot:return hg;case Ze:return wg;case _r:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),yg;break;case Ee:if(Gr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Yc:return pg;case NA:var o=A,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Gr(o,l,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(_t(o,l,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(l===NA&&c===Nc)return this.consumeCodePoint(),this.consumeCodePoint(),Ig;break;case wt:if(Gr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case wa:if(this.peekCodePoint(0)===_r)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===_r&&(g=this.consumeCodePoint(),g===wa))return this.consumeToken();if(g===qA)return this.consumeToken()}break;case Zc:return Hg;case zc:return Sg;case Rc:if(this.peekCodePoint(0)===Oc&&this.peekCodePoint(1)===NA&&this.peekCodePoint(2)===NA)return this.consumeCodePoint(),this.consumeCodePoint(),xg;break;case _c:var B=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(_t(B,u,p)){var s=this.consumeName();return{type:7,value:s}}break;case Gc:return Lg;case it:if(ge(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case jc:return kg;case Vc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Qg;break;case Pc:return Fg;case Xc:return bg;case ag:case ig:var Q=this.peekCodePoint(0),C=this.peekCodePoint(1);return Q===Ee&&(Le(C)||C===Rt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case pa:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),vg;if(this.peekCodePoint(0)===pa)return this.consumeCodePoint(),mg;break;case Jc:if(this.peekCodePoint(0)===Ye)return this.consumeCodePoint(),Ug;break;case qA:return yn}return Nt(A)?(this.consumeWhiteSpace(),Mg):MA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):gr(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:bA(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],r=this.consumeCodePoint();Le(r)&&A.length<6;)A.push(r),r=this.consumeCodePoint();for(var t=!1;r===Rt&&A.length<6;)A.push(r),r=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(bA.apply(void 0,A.map(function(l){return l===Rt?Xs:l})),16),a=parseInt(bA.apply(void 0,A.map(function(l){return l===Rt?zs:l})),16);return{type:30,start:n,end:a}}var s=parseInt(bA.apply(void 0,A),16);if(this.peekCodePoint(0)===NA&&Le(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];Le(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(bA.apply(void 0,o),16);return{type:30,start:s,end:a}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Ot?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ot?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===qA)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Dt||r===Tt){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===qA||this.peekCodePoint(0)===Ze)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Gt)}for(;;){var n=this.consumeCodePoint();if(n===qA||n===Ze)return{type:22,value:bA.apply(void 0,A)};if(Nt(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===qA||this.peekCodePoint(0)===Ze?(this.consumeCodePoint(),{type:22,value:bA.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Gt);if(n===Tt||n===Dt||n===Ot||dg(n))return this.consumeBadUrlRemnants(),Gt;if(n===it)if(ge(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Gt;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;Nt(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===Ze||A===qA)return;ge(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var r=5e4,t="";A>0;){var n=Math.min(r,A);t+=bA.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(A){var r="",t=0;do{var n=this._value[t];if(n===qA||n===void 0||n===A)return r+=this.consumeStringSlice(t),{type:0,value:r};if(n===cr)return this._value.splice(0,t),Eg;if(n===it){var a=this._value[t+1];a!==qA&&a!==void 0&&(a===cr?(r+=this.consumeStringSlice(t),t=-1,this._value.shift()):ge(n,a)&&(r+=this.consumeStringSlice(t),r+=bA(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},e.prototype.consumeNumber=function(){var A=[],r=Ut,t=this.peekCodePoint(0);for((t===Ee||t===NA)&&A.push(this.consumeCodePoint());MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===wt&&MA(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=ha;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===Zs||t===Ws)&&((n===Ee||n===NA)&&MA(a)||MA(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=ha;MA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[fg(A),r]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),r=A[0],t=A[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),s=this.peekCodePoint(2);if(_t(n,a,s)){var o=this.consumeName();return{type:15,number:r,flags:t,unit:o}}return n===Tc?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Le(A)){for(var r=bA(A);Le(this.peekCodePoint(0))&&r.length<6;)r+=bA(this.consumeCodePoint());Nt(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||lg(t)||t>1114111?Ca:t}return A===qA?Ca:A},e.prototype.consumeName=function(){for(var A="";;){var r=this.consumeCodePoint();if(Qa(r))A+=bA(r);else if(ge(r,this.peekCodePoint(0)))A+=bA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),A}},e})(),$s=(function(){function e(A){this._tokens=A}return e.create=function(A){var r=new qs;return r.write(A),new e(r.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var r=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var r=this.consumeComponentValue();if(r.type===32)return A;A.push(r),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var r={type:A,values:[]},t=this.consumeToken();;){if(t.type===32||Tg(t,A))return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue()),t=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var r={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?yn:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e})(),Ft=function(e){return e.type===15},Ve=function(e){return e.type===17},uA=function(e){return e.type===20},Kg=function(e){return e.type===0},En=function(e,A){return uA(e)&&e.value===A},Ai=function(e){return e.type!==31},je=function(e){return e.type!==31&&e.type!==4},te=function(e){var A=[],r=[];return e.forEach(function(t){if(t.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(r),r=[];return}t.type!==31&&r.push(t)}),r.length&&A.push(r),A},Tg=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},pe=function(e){return e.type===17||e.type===15},yA=function(e){return e.type===16||pe(e)},ei=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},LA={type:17,number:0,flags:Ut},_n={type:16,number:50,flags:Ut},Be={type:16,number:100,flags:Ut},tt=function(e,A,r){var t=e[0],n=e[1];return[wA(t,A),wA(typeof n<"u"?n:t,r)]},wA=function(e,A){if(e.type===16)return e.number/100*A;if(Ft(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},ti="deg",ri="grad",ni="rad",ai="turn",Fr={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case ti:return Math.PI*A.number/180;case ri:return Math.PI/200*A.number;case ni:return A.number;case ai:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},si=function(e){return e.type===15&&(e.unit===ti||e.unit===ri||e.unit===ni||e.unit===ai)},ii=function(e){var A=e.filter(uA).map(function(r){return r.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LA,LA];case"to top":case"bottom":return XA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LA,Be];case"to right":case"left":return XA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Be,Be];case"to bottom":case"top":return XA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Be,LA];case"to left":case"right":return XA(270)}return 0},XA=function(e){return Math.PI*e/180},he={name:"color",parse:function(e,A){if(A.type===18){var r=Dg[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return r(e,A.values)}if(A.type===5){if(A.value.length===3){var t=A.value.substring(0,1),n=A.value.substring(1,2),a=A.value.substring(2,3);return de(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),1)}if(A.value.length===4){var t=A.value.substring(0,1),n=A.value.substring(1,2),a=A.value.substring(2,3),s=A.value.substring(3,4);return de(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(A.value.length===6){var t=A.value.substring(0,2),n=A.value.substring(2,4),a=A.value.substring(4,6);return de(parseInt(t,16),parseInt(n,16),parseInt(a,16),1)}if(A.value.length===8){var t=A.value.substring(0,2),n=A.value.substring(2,4),a=A.value.substring(4,6),s=A.value.substring(6,8);return de(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(s,16)/255)}}if(A.type===20){var o=se[A.value.toUpperCase()];if(typeof o<"u")return o}return se.TRANSPARENT}},we=function(e){return(255&e)===0},xA=function(e){var A=255&e,r=255&e>>8,t=255&e>>16,n=255&e>>24;return A<255?"rgba("+n+","+t+","+r+","+A/255+")":"rgb("+n+","+t+","+r+")"},de=function(e,A,r,t){return(e<<24|A<<16|r<<8|Math.round(t*255)<<0)>>>0},ma=function(e,A){if(e.type===17)return e.number;if(e.type===16){var r=A===3?1:255;return A===3?e.number/100*r:Math.round(e.number/100*r)}return 0},va=function(e,A){var r=A.filter(je);if(r.length===3){var t=r.map(ma),n=t[0],a=t[1],s=t[2];return de(n,a,s,1)}if(r.length===4){var o=r.map(ma),n=o[0],a=o[1],s=o[2],l=o[3];return de(n,a,s,l)}return 0};function jr(e,A,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(A-e)*r*6+e:r<1/2?A:r<2/3?(A-e)*6*(2/3-r)+e:e}var Ua=function(e,A){var r=A.filter(je),t=r[0],n=r[1],a=r[2],s=r[3],o=(t.type===17?XA(t.number):Fr.parse(e,t))/(Math.PI*2),l=yA(n)?n.number/100:0,c=yA(a)?a.number/100:0,g=typeof s<"u"&&yA(s)?wA(s,1):1;if(l===0)return de(c*255,c*255,c*255,1);var B=c<=.5?c*(l+1):c+l-c*l,u=c*2-B,p=jr(u,B,o+1/3),Q=jr(u,B,o),C=jr(u,B,o-1/3);return de(p*255,Q*255,C*255,g)},Dg={hsl:Ua,hsla:Ua,rgb:va,rgba:va},ot=function(e,A){return he.parse(e,$s.create(A).parseComponentValue())},se={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},Og={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Rg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},br=function(e,A){var r=he.parse(e,A[0]),t=A[1];return t&&yA(t)?{color:r,stop:t}:{color:r,stop:null}},Fa=function(e,A){var r=e[0],t=e[e.length-1];r.stop===null&&(r.stop=LA),t.stop===null&&(t.stop=Be);for(var n=[],a=0,s=0;s<e.length;s++){var o=e[s].stop;if(o!==null){var l=wA(o,A);l>a?n.push(l):n.push(a),a=l}else n.push(null)}for(var c=null,s=0;s<n.length;s++){var g=n[s];if(g===null)c===null&&(c=s);else if(c!==null){for(var B=s-c,u=n[c-1],p=(g-u)/(B+1),Q=1;Q<=B;Q++)n[c+Q-1]=p*Q;c=null}}return e.map(function(C,x){var U=C.color;return{color:U,stop:Math.max(Math.min(1,n[x]/A),0)}})},Ng=function(e,A,r){var t=A/2,n=r/2,a=wA(e[0],A)-t,s=n-wA(e[1],r);return(Math.atan2(s,a)+Math.PI*2)%(Math.PI*2)},_g=function(e,A,r){var t=typeof e=="number"?e:Ng(e,A,r),n=Math.abs(A*Math.sin(t))+Math.abs(r*Math.cos(t)),a=A/2,s=r/2,o=n/2,l=Math.sin(t-Math.PI/2)*o,c=Math.cos(t-Math.PI/2)*o;return[n,a-c,a+c,s-l,s+l]},ZA=function(e,A){return Math.sqrt(e*e+A*A)},ba=function(e,A,r,t,n){var a=[[0,0],[0,A],[e,0],[e,A]];return a.reduce(function(s,o){var l=o[0],c=o[1],g=ZA(r-l,t-c);return(n?g<s.optimumDistance:g>s.optimumDistance)?{optimumCorner:o,optimumDistance:g}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Gg=function(e,A,r,t,n){var a=0,s=0;switch(e.size){case 0:e.shape===0?a=s=Math.min(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-n)):e.shape===1&&(a=Math.min(Math.abs(A),Math.abs(A-t)),s=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(e.shape===0)a=s=Math.min(ZA(A,r),ZA(A,r-n),ZA(A-t,r),ZA(A-t,r-n));else if(e.shape===1){var o=Math.min(Math.abs(r),Math.abs(r-n))/Math.min(Math.abs(A),Math.abs(A-t)),l=ba(t,n,A,r,!0),c=l[0],g=l[1];a=ZA(c-A,(g-r)/o),s=o*a}break;case 1:e.shape===0?a=s=Math.max(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-n)):e.shape===1&&(a=Math.max(Math.abs(A),Math.abs(A-t)),s=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(e.shape===0)a=s=Math.max(ZA(A,r),ZA(A,r-n),ZA(A-t,r),ZA(A-t,r-n));else if(e.shape===1){var o=Math.max(Math.abs(r),Math.abs(r-n))/Math.max(Math.abs(A),Math.abs(A-t)),B=ba(t,n,A,r,!1),c=B[0],g=B[1];a=ZA(c-A,(g-r)/o),s=o*a}break}return Array.isArray(e.size)&&(a=wA(e.size[0],t),s=e.size.length===2?wA(e.size[1],n):a),[a,s]},jg=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&s.value==="to"){r=ii(n);return}else if(si(s)){r=Fr.parse(e,s);return}}var o=br(e,n);t.push(o)}),{angle:r,stops:t,type:1}},jt=function(e,A){var r=XA(180),t=[];return te(A).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){r=ii(n);return}else if(si(s)){r=(Fr.parse(e,s)+XA(270))%XA(360);return}}var o=br(e,n);t.push(o)}),{angle:r,stops:t,type:1}},Vg=function(e,A){var r=XA(180),t=[],n=1,a=0,s=3,o=[];return te(A).forEach(function(l,c){var g=l[0];if(c===0){if(uA(g)&&g.value==="linear"){n=1;return}else if(uA(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var B=he.parse(e,g.values[0]);t.push({stop:LA,color:B})}else if(g.name==="to"){var B=he.parse(e,g.values[0]);t.push({stop:Be,color:B})}else if(g.name==="color-stop"){var u=g.values.filter(je);if(u.length===2){var B=he.parse(e,u[1]),p=u[0];Ve(p)&&t.push({stop:{type:16,number:p.number*100,flags:p.flags},color:B})}}}}),n===1?{angle:(r+XA(180))%XA(360),stops:t,type:n}:{size:s,shape:a,stops:t,position:o,type:n}},oi="closest-side",li="farthest-side",ci="closest-corner",gi="farthest-corner",ui="circle",Bi="ellipse",di="cover",fi="contain",Pg=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(s,o){var l=!0;if(o===0){var c=!1;l=s.reduce(function(B,u){if(c)if(uA(u))switch(u.value){case"center":return a.push(_n),B;case"top":case"left":return a.push(LA),B;case"right":case"bottom":return a.push(Be),B}else(yA(u)||pe(u))&&a.push(u);else if(uA(u))switch(u.value){case ui:return r=0,!1;case Bi:return r=1,!1;case"at":return c=!0,!1;case oi:return t=0,!1;case di:case li:return t=1,!1;case fi:case ci:return t=2,!1;case gi:return t=3,!1}else if(pe(u)||yA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return B},l)}if(l){var g=br(e,s);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},Vt=function(e,A){var r=0,t=3,n=[],a=[];return te(A).forEach(function(s,o){var l=!0;if(o===0?l=s.reduce(function(g,B){if(uA(B))switch(B.value){case"center":return a.push(_n),!1;case"top":case"left":return a.push(LA),!1;case"right":case"bottom":return a.push(Be),!1}else if(yA(B)||pe(B))return a.push(B),!1;return g},l):o===1&&(l=s.reduce(function(g,B){if(uA(B))switch(B.value){case ui:return r=0,!1;case Bi:return r=1,!1;case fi:case oi:return t=0,!1;case li:return t=1,!1;case ci:return t=2,!1;case di:case gi:return t=3,!1}else if(pe(B)||yA(B))return Array.isArray(t)||(t=[]),t.push(B),!1;return g},l)),l){var c=br(e,s);n.push(c)}}),{size:t,shape:r,stops:n,position:a,type:2}},Xg=function(e){return e.type===1},Jg=function(e){return e.type===2},Gn={name:"image",parse:function(e,A){if(A.type===22){var r={url:A.value,type:0};return e.cache.addImage(A.value),r}if(A.type===18){var t=hi[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function Wg(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!hi[e.name])}var hi={"linear-gradient":jg,"-moz-linear-gradient":jt,"-ms-linear-gradient":jt,"-o-linear-gradient":jt,"-webkit-linear-gradient":jt,"radial-gradient":Pg,"-moz-radial-gradient":Vt,"-ms-radial-gradient":Vt,"-o-radial-gradient":Vt,"-webkit-radial-gradient":Vt,"-webkit-gradient":Vg},Yg={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var r=A[0];return r.type===20&&r.value==="none"?[]:A.filter(function(t){return je(t)&&Wg(t)}).map(function(t){return Gn.parse(e,t)})}},Zg={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},zg={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return te(A).map(function(r){return r.filter(yA)}).map(ei)}},qg={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(uA).map(function(t){return t.value}).join(" ")}).map($g)}},$g=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},Ne;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(Ne||(Ne={}));var Au={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return te(A).map(function(r){return r.filter(eu)})}},eu=function(e){return uA(e)||yA(e)},yr=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},tu=yr("top"),ru=yr("right"),nu=yr("bottom"),au=yr("left"),Er=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,r){return ei(r.filter(yA))}}},su=Er("top-left"),iu=Er("top-right"),ou=Er("bottom-right"),lu=Er("bottom-left"),xr=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},cu=xr("top"),gu=xr("right"),uu=xr("bottom"),Bu=xr("left"),Ir=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,r){return Ft(r)?r.number:0}}},du=Ir("top"),fu=Ir("right"),hu=Ir("bottom"),wu=Ir("left"),pu={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Cu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return A==="rtl"?1:0}},Qu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(uA).reduce(function(r,t){return r|mu(t.value)},0)}},mu=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vu={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Uu={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},ur;(function(e){e.NORMAL="normal",e.STRICT="strict"})(ur||(ur={}));var Fu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="strict"?ur.STRICT:ur.NORMAL}},bu={name:"line-height",initialValue:"normal",prefix:!1,type:4},ya=function(e,A){return uA(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:yA(e)?wA(e,A):A},yu={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:Gn.parse(e,A)}},Eu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){return A==="inside"?0:1}},xn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Hr=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},xu=Hr("top"),Iu=Hr("right"),Hu=Hr("bottom"),Su=Hr("left"),Lu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(uA).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},ku={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="break-word"?"break-word":"normal"}},Sr=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Mu=Sr("top"),Ku=Sr("right"),Tu=Sr("bottom"),Du=Sr("left"),Ou={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Ru={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Nu={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&En(A[0],"none")?[]:te(A).map(function(r){for(var t={color:se.TRANSPARENT,offsetX:LA,offsetY:LA,blur:LA},n=0,a=0;a<r.length;a++){var s=r[a];pe(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:t.blur=s,n++):t.color=he.parse(e,s)}return t})}},_u={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Gu={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var r=Pu[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return r(A.values)}return null}},ju=function(e){var A=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return A.length===6?A:null},Vu=function(e){var A=e.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=A[0],t=A[1];A[2],A[3];var n=A[4],a=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],o=A[13];return A[14],A[15],A.length===16?[r,t,n,a,s,o]:null},Pu={matrix:ju,matrix3d:Vu},Ea={type:16,number:50,flags:Ut},Xu=[Ea,Ea],Ju={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var r=A.filter(yA);return r.length!==2?Xu:[r[0],r[1]]}},Wu={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}},lt;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(lt||(lt={}));var Yu={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return lt.BREAK_ALL;case"keep-all":return lt.KEEP_ALL;default:return lt.NORMAL}}},Zu={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(Ve(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},wi={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},zu={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:1}},qu={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$u={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(uA).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},AB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var r=[],t=[];return A.forEach(function(n){switch(n.type){case 20:case 0:r.push(n.value);break;case 17:r.push(n.number.toString());break;case 4:t.push(r.join(" ")),r.length=0;break}}),r.length&&t.push(r.join(" ")),t.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},eB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},tB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return Ve(A)?A.number:uA(A)&&A.value==="bold"?700:400}},rB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(uA).map(function(r){return r.value})}},nB={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},EA=function(e,A){return(e&A)!==0},aB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var r=A[0];return r.type===20&&r.value==="none"?[]:A}},sB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;for(var t=[],n=A.filter(Ai),a=0;a<n.length;a++){var s=n[a],o=n[a+1];if(s.type===20){var l=o&&Ve(o)?o.number:1;t.push({counter:s.value,increment:l})}}return t}},iB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var r=[],t=A.filter(Ai),n=0;n<t.length;n++){var a=t[n],s=t[n+1];if(uA(a)&&a.value!=="none"){var o=s&&Ve(s)?s.number:0;r.push({counter:a.value,reset:o})}}return r}},oB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Ft).map(function(r){return wi.parse(e,r)})}},lB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;var t=[],n=A.filter(Kg);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var s=n[a].value,o=n[a+1].value;t.push({open:s,close:o})}return t}},xa=function(e,A,r){if(!e)return"";var t=e[Math.min(A,e.length-1)];return t?r?t.open:t.close:""},cB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&En(A[0],"none")?[]:te(A).map(function(r){for(var t={color:255,offsetX:LA,offsetY:LA,blur:LA,spread:LA,inset:!1},n=0,a=0;a<r.length;a++){var s=r[a];En(s,"inset")?t.inset=!0:pe(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:n===2?t.blur=s:t.spread=s,n++):t.color=he.parse(e,s)}return t})}},gB={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var r=[0,1,2],t=[];return A.filter(uA).forEach(function(n){switch(n.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),r.forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),t}},uB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},BB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Ft(A)?A.number:0}},dB=(function(){function e(A,r){var t,n;this.animationDuration=X(A,oB,r.animationDuration),this.backgroundClip=X(A,Og,r.backgroundClip),this.backgroundColor=X(A,Rg,r.backgroundColor),this.backgroundImage=X(A,Yg,r.backgroundImage),this.backgroundOrigin=X(A,Zg,r.backgroundOrigin),this.backgroundPosition=X(A,zg,r.backgroundPosition),this.backgroundRepeat=X(A,qg,r.backgroundRepeat),this.backgroundSize=X(A,Au,r.backgroundSize),this.borderTopColor=X(A,tu,r.borderTopColor),this.borderRightColor=X(A,ru,r.borderRightColor),this.borderBottomColor=X(A,nu,r.borderBottomColor),this.borderLeftColor=X(A,au,r.borderLeftColor),this.borderTopLeftRadius=X(A,su,r.borderTopLeftRadius),this.borderTopRightRadius=X(A,iu,r.borderTopRightRadius),this.borderBottomRightRadius=X(A,ou,r.borderBottomRightRadius),this.borderBottomLeftRadius=X(A,lu,r.borderBottomLeftRadius),this.borderTopStyle=X(A,cu,r.borderTopStyle),this.borderRightStyle=X(A,gu,r.borderRightStyle),this.borderBottomStyle=X(A,uu,r.borderBottomStyle),this.borderLeftStyle=X(A,Bu,r.borderLeftStyle),this.borderTopWidth=X(A,du,r.borderTopWidth),this.borderRightWidth=X(A,fu,r.borderRightWidth),this.borderBottomWidth=X(A,hu,r.borderBottomWidth),this.borderLeftWidth=X(A,wu,r.borderLeftWidth),this.boxShadow=X(A,cB,r.boxShadow),this.color=X(A,pu,r.color),this.direction=X(A,Cu,r.direction),this.display=X(A,Qu,r.display),this.float=X(A,vu,r.cssFloat),this.fontFamily=X(A,AB,r.fontFamily),this.fontSize=X(A,eB,r.fontSize),this.fontStyle=X(A,nB,r.fontStyle),this.fontVariant=X(A,rB,r.fontVariant),this.fontWeight=X(A,tB,r.fontWeight),this.letterSpacing=X(A,Uu,r.letterSpacing),this.lineBreak=X(A,Fu,r.lineBreak),this.lineHeight=X(A,bu,r.lineHeight),this.listStyleImage=X(A,yu,r.listStyleImage),this.listStylePosition=X(A,Eu,r.listStylePosition),this.listStyleType=X(A,xn,r.listStyleType),this.marginTop=X(A,xu,r.marginTop),this.marginRight=X(A,Iu,r.marginRight),this.marginBottom=X(A,Hu,r.marginBottom),this.marginLeft=X(A,Su,r.marginLeft),this.opacity=X(A,zu,r.opacity);var a=X(A,Lu,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=X(A,ku,r.overflowWrap),this.paddingTop=X(A,Mu,r.paddingTop),this.paddingRight=X(A,Ku,r.paddingRight),this.paddingBottom=X(A,Tu,r.paddingBottom),this.paddingLeft=X(A,Du,r.paddingLeft),this.paintOrder=X(A,gB,r.paintOrder),this.position=X(A,Ru,r.position),this.textAlign=X(A,Ou,r.textAlign),this.textDecorationColor=X(A,qu,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=X(A,$u,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=X(A,Nu,r.textShadow),this.textTransform=X(A,_u,r.textTransform),this.transform=X(A,Gu,r.transform),this.transformOrigin=X(A,Ju,r.transformOrigin),this.visibility=X(A,Wu,r.visibility),this.webkitTextStrokeColor=X(A,uB,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=X(A,BB,r.webkitTextStrokeWidth),this.wordBreak=X(A,Yu,r.wordBreak),this.zIndex=X(A,Zu,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return we(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return EA(this.display,4)||EA(this.display,33554432)||EA(this.display,268435456)||EA(this.display,536870912)||EA(this.display,67108864)||EA(this.display,134217728)},e})(),fB=(function(){function e(A,r){this.content=X(A,aB,r.content),this.quotes=X(A,lB,r.quotes)}return e})(),Ia=(function(){function e(A,r){this.counterIncrement=X(A,sB,r.counterIncrement),this.counterReset=X(A,iB,r.counterReset)}return e})(),X=function(e,A,r){var t=new qs,n=r!==null&&typeof r<"u"?r.toString():A.initialValue;t.write(n);var a=new $s(t.read());switch(A.type){case 2:var s=a.parseComponentValue();return A.parse(e,uA(s)?s.value:A.initialValue);case 0:return A.parse(e,a.parseComponentValue());case 1:return A.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(A.format){case"angle":return Fr.parse(e,a.parseComponentValue());case"color":return he.parse(e,a.parseComponentValue());case"image":return Gn.parse(e,a.parseComponentValue());case"length":var o=a.parseComponentValue();return pe(o)?o:LA;case"length-percentage":var l=a.parseComponentValue();return yA(l)?l:LA;case"time":return wi.parse(e,a.parseComponentValue())}break}},hB="data-html2canvas-debug",wB=function(e){var A=e.getAttribute(hB);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},In=function(e,A){var r=wB(e);return r===1||A===r},re=(function(){function e(A,r){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,In(r,3))debugger;this.styles=new dB(A,window.getComputedStyle(r,null)),Ln(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=vr(this.context,r),In(r,4)&&(this.flags|=16)}return e})(),pB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsF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IAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUB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QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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0;Pt<Ha.length;Pt++)rt[Ha.charCodeAt(Pt)]=Pt;var CB=function(e){var A=e.length*.75,r=e.length,t,n=0,a,s,o,l;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=rt[e.charCodeAt(t)],s=rt[e.charCodeAt(t+1)],o=rt[e.charCodeAt(t+2)],l=rt[e.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},QB=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},mB=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},Ie=5,jn=11,Vr=2,vB=jn-Ie,pi=65536>>Ie,UB=1<<Ie,Pr=UB-1,FB=1024>>Ie,bB=pi+FB,yB=bB,EB=32,xB=yB+EB,IB=65536>>jn,HB=1<<vB,SB=HB-1,Sa=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},LB=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},kB=function(e,A){var r=CB(e),t=Array.isArray(r)?mB(r):new Uint32Array(r),n=Array.isArray(r)?QB(r):new Uint16Array(r),a=24,s=Sa(n,a/2,t[4]/2),o=t[5]===2?Sa(n,(a+t[4])/2):LB(t,Math.ceil((a+t[4])/4));return new MB(t[0],t[1],t[2],t[3],s,o)},MB=(function(){function e(A,r,t,n,a,s){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>Ie],r=(r<<Vr)+(A&Pr),this.data[r];if(A<=65535)return r=this.index[pi+(A-55296>>Ie)],r=(r<<Vr)+(A&Pr),this.data[r];if(A<this.highStart)return r=xB-IB+(A>>jn),r=this.index[r],r+=A>>Ie&SB,r=this.index[r],r=(r<<Vr)+(A&Pr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),La="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",KB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Xt=0;Xt<La.length;Xt++)KB[La.charCodeAt(Xt)]=Xt;var TB=1,Xr=2,Jr=3,ka=4,Ma=5,DB=7,Ka=8,Wr=9,Yr=10,Ta=11,Da=12,Oa=13,Ra=14,Zr=15,OB=function(e){for(var A=[],r=0,t=e.length;r<t;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=e.charCodeAt(r++);(a&64512)===56320?A.push(((n&1023)<<10)+(a&1023)+65536):(A.push(n),r--)}else A.push(n)}return A},RB=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=e[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},NB=kB(pB),VA="×",zr="÷",_B=function(e){return NB.get(e)},GB=function(e,A,r){var t=r-2,n=A[t],a=A[r-1],s=A[r];if(a===Xr&&s===Jr)return VA;if(a===Xr||a===Jr||a===ka||s===Xr||s===Jr||s===ka)return zr;if(a===Ka&&[Ka,Wr,Ta,Da].indexOf(s)!==-1||(a===Ta||a===Wr)&&(s===Wr||s===Yr)||(a===Da||a===Yr)&&s===Yr||s===Oa||s===Ma||s===DB||a===TB)return VA;if(a===Oa&&s===Ra){for(;n===Ma;)n=A[--t];if(n===Ra)return VA}if(a===Zr&&s===Zr){for(var o=0;n===Zr;)o++,n=A[--t];if(o%2===0)return VA}return zr},jB=function(e){var A=OB(e),r=A.length,t=0,n=0,a=A.map(_B);return{next:function(){if(t>=r)return{done:!0,value:null};for(var s=VA;t<r&&(s=GB(A,a,++t))===VA;);if(s!==VA||t===r){var o=RB.apply(null,A.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},VB=function(e){for(var A=jB(e),r=[],t;!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r},PB=function(e){var A=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var t=e.createElement("boundtest");t.style.height=A+"px",t.style.display="block",e.body.appendChild(t),r.selectNode(t);var n=r.getBoundingClientRect(),a=Math.round(n.height);if(e.body.removeChild(t),a===A)return!0}}return!1},XB=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var r=e.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var t=A.firstChild,n=Ur(t.data).map(function(l){return bA(l)}),a=0,s={},o=n.every(function(l,c){r.setStart(t,a),r.setEnd(t,a+l.length);var g=r.getBoundingClientRect();a+=l.length;var B=g.x>s.x||g.y>s.y;return s=g,c===0?!0:B});return e.body.removeChild(A),o},JB=function(){return typeof new Image().crossOrigin<"u"},WB=function(){return typeof new XMLHttpRequest().responseType=="string"},YB=function(e){var A=new Image,r=e.createElement("canvas"),t=r.getContext("2d");if(!t)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(A,0,0),r.toDataURL()}catch{return!1}return!0},Na=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},ZB=function(e){var A=e.createElement("canvas"),r=100;A.width=r,A.height=r;var t=A.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,r,r);var n=new Image,a=A.toDataURL();n.src=a;var s=Hn(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),_a(s).then(function(o){t.drawImage(o,0,0);var l=t.getImageData(0,0,r,r).data;t.fillStyle="red",t.fillRect(0,0,r,r);var c=e.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=r+"px",Na(l)?_a(Hn(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Na(t.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Hn=function(e,A,r,t,n){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",A.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",t.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},_a=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){return A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},HA={get SUPPORT_RANGE_BOUNDS(){var e=PB(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=HA.SUPPORT_RANGE_BOUNDS&&XB(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=YB(document);return Object.defineProperty(HA,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?ZB(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=JB();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=WB();return Object.defineProperty(HA,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(HA,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(HA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},ct=(function(){function e(A,r){this.text=A,this.bounds=r}return e})(),zB=function(e,A,r,t){var n=Ad(A,r),a=[],s=0;return n.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){var l=Ga(t,s,o.length).getClientRects();if(l.length>1){var c=Vn(o),g=0;c.forEach(function(u){a.push(new ct(u,ie.fromDOMRectList(e,Ga(t,g+s,u.length).getClientRects()))),g+=u.length})}else a.push(new ct(o,ie.fromDOMRectList(e,l)))}else{var B=t.splitText(o.length);a.push(new ct(o,qB(e,t))),t=B}else HA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));s+=o.length}),a},qB=function(e,A){var r=A.ownerDocument;if(r){var t=r.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(t,A);var a=vr(e,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return ie.EMPTY},Ga=function(e,A,r){var t=e.ownerDocument;if(!t)throw new Error("Node has no owner document");var n=t.createRange();return n.setStart(e,A),n.setEnd(e,A+r),n},Vn=function(e){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(r){return r.segment})}return VB(e)},$B=function(e,A){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(t){return t.segment})}return td(e,A)},Ad=function(e,A){return A.letterSpacing!==0?Vn(e):$B(e,A)},ed=[32,160,4961,65792,65793,4153,4241],td=function(e,A){for(var r=Ic(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],n,a=function(){if(n.value){var s=n.value.slice(),o=Ur(s),l="";o.forEach(function(c){ed.indexOf(c)===-1?l+=bA(c):(l.length&&t.push(l),t.push(bA(c)),l="")}),l.length&&t.push(l)}};!(n=r.next()).done;)a();return t},rd=(function(){function e(A,r,t){this.text=nd(r.data,t.textTransform),this.textBounds=zB(A,this.text,t,r)}return e})(),nd=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(ad,sd);case 2:return e.toUpperCase();default:return e}},ad=/(^|\s|:|-|\(|\))([a-z])/g,sd=function(e,A,r){return e.length>0?A+r.toUpperCase():e},Ci=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return A})(re),Qi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return A})(re),mi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=new XMLSerializer,s=vr(r,t);return t.setAttribute("width",s.width+"px"),t.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A})(re),vi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A})(re),Sn=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.start=t.start,n.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,n}return A})(re),id=[{type:15,flags:0,unit:"px",number:3}],od=[{type:16,flags:0,number:50}],ld=function(e){return e.width>e.height?new ie(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new ie(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},cd=function(e){var A=e.type===gd?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},Br="checkbox",dr="radio",gd="password",ja=707406591,Pn=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=cd(t),(n.type===Br||n.type===dr)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=ld(n.bounds)),n.type){case Br:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=id;break;case dr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=od;break}return n}return A})(re),Ui=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this,a=t.options[t.selectedIndex||0];return n.value=a&&a.text||"",n}return A})(re),Fi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A})(re),bi=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=Ei(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?ot(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):se.TRANSPARENT,s=t.contentWindow.document.body?ot(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):se.TRANSPARENT;n.backgroundColor=we(a)?we(s)?n.styles.backgroundColor:s:a}}catch{}return n}return A})(re),ud=["OL","UL","MENU"],Ar=function(e,A,r,t){for(var n=A.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,xi(n)&&n.data.trim().length>0)r.textNodes.push(new rd(e,n,r.styles));else if(Re(n))if(Li(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return Ar(e,o,r,t)});else{var s=yi(e,n);s.styles.isVisible()&&(Bd(n,s,t)?s.flags|=4:dd(s.styles)&&(s.flags|=2),ud.indexOf(n.tagName)!==-1&&(s.flags|=8),r.elements.push(s),n.slot,n.shadowRoot?Ar(e,n.shadowRoot,s,t):!fr(n)&&!Ii(n)&&!hr(n)&&Ar(e,n,s,t))}},yi=function(e,A){return kn(A)?new Ci(e,A):Hi(A)?new Qi(e,A):Ii(A)?new mi(e,A):fd(A)?new vi(e,A):hd(A)?new Sn(e,A):wd(A)?new Pn(e,A):hr(A)?new Ui(e,A):fr(A)?new Fi(e,A):Si(A)?new bi(e,A):new re(e,A)},Ei=function(e,A){var r=yi(e,A);return r.flags|=4,Ar(e,A,r,r),r},Bd=function(e,A,r){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Xn(e)&&r.styles.isTransparent()},dd=function(e){return e.isPositioned()||e.isFloating()},xi=function(e){return e.nodeType===Node.TEXT_NODE},Re=function(e){return e.nodeType===Node.ELEMENT_NODE},Ln=function(e){return Re(e)&&typeof e.style<"u"&&!er(e)},er=function(e){return typeof e.className=="object"},fd=function(e){return e.tagName==="LI"},hd=function(e){return e.tagName==="OL"},wd=function(e){return e.tagName==="INPUT"},pd=function(e){return e.tagName==="HTML"},Ii=function(e){return e.tagName==="svg"},Xn=function(e){return e.tagName==="BODY"},Hi=function(e){return e.tagName==="CANVAS"},Va=function(e){return e.tagName==="VIDEO"},kn=function(e){return e.tagName==="IMG"},Si=function(e){return e.tagName==="IFRAME"},Pa=function(e){return e.tagName==="STYLE"},Cd=function(e){return e.tagName==="SCRIPT"},fr=function(e){return e.tagName==="TEXTAREA"},hr=function(e){return e.tagName==="SELECT"},Li=function(e){return e.tagName==="SLOT"},Xa=function(e){return e.tagName.indexOf("-")>0},Qd=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var r=this.counters[A];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(A){var r=this.counters[A];return r||[]},e.prototype.pop=function(A){var r=this;A.forEach(function(t){return r.counters[t].pop()})},e.prototype.parse=function(A){var r=this,t=A.counterIncrement,n=A.counterReset,a=!0;t!==null&&t.forEach(function(o){var l=r.counters[o.counter];l&&o.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=o.increment)});var s=[];return a&&n.forEach(function(o){var l=r.counters[o.counter];s.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),s},e})(),Ja={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"]},Wa={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},md={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},vd={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ke=function(e,A,r,t,n,a){return e<A||e>r?pt(e,n,a.length>0):t.integers.reduce(function(s,o,l){for(;e>=o;)e-=o,s+=t.values[l];return s},"")+a},ki=function(e,A,r,t){var n="";do r||e--,n=t(e)+n,e/=A;while(e*A>=A);return n},FA=function(e,A,r,t,n){var a=r-A+1;return(e<0?"-":"")+(ki(Math.abs(e),a,t,function(s){return bA(Math.floor(s%a)+A)})+n)},Qe=function(e,A,r){r===void 0&&(r=". ");var t=A.length;return ki(Math.abs(e),t,!1,function(n){return A[Math.floor(n%t)]})+r},Te=1,oe=2,le=4,nt=8,ae=function(e,A,r,t,n,a){if(e<-9999||e>9999)return pt(e,4,n.length>0);var s=Math.abs(e),o=n;if(s===0)return A[0]+o;for(var l=0;s>0&&l<=4;l++){var c=s%10;c===0&&EA(a,Te)&&o!==""?o=A[c]+o:c>1||c===1&&l===0||c===1&&l===1&&EA(a,oe)||c===1&&l===1&&EA(a,le)&&e>100||c===1&&l>1&&EA(a,nt)?o=A[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),s=Math.floor(s/10)}return(e<0?t:"")+o},Ya="十百千萬",Za="拾佰仟萬",za="マイナス",qr="마이너스",pt=function(e,A,r){var t=r?". ":"",n=r?"、":"",a=r?", ":"",s=r?" ":"";switch(A){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=FA(e,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return Qe(e,"〇一二三四五六七八九",n);case 6:return ke(e,1,3999,Ja,3,t).toLowerCase();case 7:return ke(e,1,3999,Ja,3,t);case 8:return FA(e,945,969,!1,t);case 9:return FA(e,97,122,!1,t);case 10:return FA(e,65,90,!1,t);case 11:return FA(e,1632,1641,!0,t);case 12:case 49:return ke(e,1,9999,Wa,3,t);case 35:return ke(e,1,9999,Wa,3,t).toLowerCase();case 13:return FA(e,2534,2543,!0,t);case 14:case 30:return FA(e,6112,6121,!0,t);case 15:return Qe(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Qe(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ae(e,"零一二三四五六七八九",Ya,"負",n,oe|le|nt);case 47:return ae(e,"零壹貳參肆伍陸柒捌玖",Za,"負",n,Te|oe|le|nt);case 42:return ae(e,"零一二三四五六七八九",Ya,"负",n,oe|le|nt);case 41:return ae(e,"零壹贰叁肆伍陆柒捌玖",Za,"负",n,Te|oe|le|nt);case 26:return ae(e,"〇一二三四五六七八九","十百千万",za,n,0);case 25:return ae(e,"零壱弐参四伍六七八九","拾百千万",za,n,Te|oe|le);case 31:return ae(e,"영일이삼사오육칠팔구","십백천만",qr,a,Te|oe|le);case 33:return ae(e,"零一二三四五六七八九","十百千萬",qr,a,0);case 32:return ae(e,"零壹貳參四五六七八九","拾百千",qr,a,Te|oe|le);case 18:return FA(e,2406,2415,!0,t);case 20:return ke(e,1,19999,vd,3,t);case 21:return FA(e,2790,2799,!0,t);case 22:return FA(e,2662,2671,!0,t);case 22:return ke(e,1,10999,md,3,t);case 23:return Qe(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Qe(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return FA(e,3302,3311,!0,t);case 28:return Qe(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Qe(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return FA(e,3792,3801,!0,t);case 37:return FA(e,6160,6169,!0,t);case 38:return FA(e,4160,4169,!0,t);case 39:return FA(e,2918,2927,!0,t);case 40:return FA(e,1776,1785,!0,t);case 43:return FA(e,3046,3055,!0,t);case 44:return FA(e,3174,3183,!0,t);case 45:return FA(e,3664,3673,!0,t);case 46:return FA(e,3872,3881,!0,t);default:return FA(e,48,57,!0,t)}},Mi="data-html2canvas-ignore",qa=(function(){function e(A,r,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new Qd,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,r){var t=this,n=Ud(A,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,o=n.contentWindow,l=o.document,c=yd(n).then(function(){return OA(t,void 0,void 0,function(){var g,B;return kA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(Hd),o&&(o.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==r.top||o.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-r.left,o.scrollY-r.top,0,0))),g=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,bd(l)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(l,B)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(xd(document.doctype)+"<html></html>"),Id(this.referenceElement.ownerDocument,a,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(A){if(In(A,2))debugger;if(Hi(A))return this.createCanvasClone(A);if(Va(A))return this.createVideoClone(A);if(Pa(A))return this.createStyleClone(A);var r=A.cloneNode(!1);return kn(r)&&(kn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(r.src=A.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Xa(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(A){var r=document.createElement("html2canvascustomelement");return $r(A.style,r),r},e.prototype.createStyleClone=function(A){try{var r=A.sheet;if(r&&r.cssRules){var t=[].slice.call(r.cssRules,0).reduce(function(a,s){return s&&typeof s.cssText=="string"?a+s.cssText:a},""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var r;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var a=A.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&a)s.putImageData(a.getImageData(0,0,A.width,A.height),0,0);else{var o=(r=A.getContext("webgl2"))!==null&&r!==void 0?r:A.getContext("webgl");if(o){var l=o.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},e.prototype.createVideoClone=function(A){var r=A.ownerDocument.createElement("canvas");r.width=A.offsetWidth,r.height=A.offsetHeight;var t=r.getContext("2d");try{return t&&(t.drawImage(A,0,0,r.width,r.height),this.options.allowTaint||t.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},e.prototype.appendChildNode=function(A,r,t){(!Re(r)||!Cd(r)&&!r.hasAttribute(Mi)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Re(r)||!Pa(r))&&A.appendChild(this.cloneNode(r,t))},e.prototype.cloneChildNodes=function(A,r,t){for(var n=this,a=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;a;a=a.nextSibling)if(Re(a)&&Li(a)&&typeof a.assignedNodes=="function"){var s=a.assignedNodes();s.length&&s.forEach(function(o){return n.appendChildNode(r,o,t)})}else this.appendChildNode(r,a,t)},e.prototype.cloneNode=function(A,r){if(xi(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Re(A)&&(Ln(A)||er(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var a=t.getComputedStyle(A),s=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&Ln(n)&&(this.clonedReferenceElement=n),Xn(n)&&kd(n);var l=this.counters.parse(new Ia(this.context,a)),c=this.resolvePseudoContent(A,n,s,gt.BEFORE);Xa(A)&&(r=!0),Va(A)||this.cloneChildNodes(A,n,r),c&&n.insertBefore(c,n.firstChild);var g=this.resolvePseudoContent(A,n,o,gt.AFTER);return g&&n.appendChild(g),this.counters.pop(l),(a&&(this.options.copyStyles||er(A))&&!Si(A)||r)&&$r(a,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(fr(A)||hr(A))&&(fr(n)||hr(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,r,t,n){var a=this;if(t){var s=t.content,o=r.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||t.display==="none")){this.counters.parse(new Ia(this.context,t));var l=new fB(this.context,t),c=o.createElement("html2canvaspseudoelement");$r(t,c),l.content.forEach(function(B){if(B.type===0)c.appendChild(o.createTextNode(B.value));else if(B.type===22){var u=o.createElement("img");u.src=B.value,u.style.opacity="1",c.appendChild(u)}else if(B.type===18){if(B.name==="attr"){var p=B.values.filter(uA);p.length&&c.appendChild(o.createTextNode(A.getAttribute(p[0].value)||""))}else if(B.name==="counter"){var Q=B.values.filter(je),C=Q[0],x=Q[1];if(C&&uA(C)){var U=a.counters.getCounterValue(C.value),y=x&&uA(x)?xn.parse(a.context,x.value):3;c.appendChild(o.createTextNode(pt(U,y,!1)))}}else if(B.name==="counters"){var L=B.values.filter(je),C=L[0],S=L[1],x=L[2];if(C&&uA(C)){var E=a.counters.getCounterValues(C.value),h=x&&uA(x)?xn.parse(a.context,x.value):3,I=S&&S.type===0?S.value:"",M=E.map(function(O){return pt(O,h,!1)}).join(I);c.appendChild(o.createTextNode(M))}}}else if(B.type===20)switch(B.value){case"open-quote":c.appendChild(o.createTextNode(xa(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(xa(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(B.value))}}),c.className=Mn+" "+Kn;var g=n===gt.BEFORE?" "+Mn:" "+Kn;return er(r)?r.className.baseValue+=g:r.className+=g,c}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e})(),gt;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(gt||(gt={}));var Ud=function(e,A){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=A.width.toString(),r.height=A.height.toString(),r.scrolling="no",r.setAttribute(Mi,"true"),e.body.appendChild(r),r},Fd=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},bd=function(e){return Promise.all([].slice.call(e.images,0).map(Fd))},yd=function(e){return new Promise(function(A,r){var t=e.contentWindow;if(!t)return r("No window assigned for iframe");var n=t.document;t.onload=e.onload=function(){t.onload=e.onload=null;var a=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(a),A(e))},50)}})},Ed=["all","d","content"],$r=function(e,A){for(var r=e.length-1;r>=0;r--){var t=e.item(r);Ed.indexOf(t)===-1&&A.style.setProperty(t,e.getPropertyValue(t))}return A},xd=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},Id=function(e,A,r){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,r)},Hd=function(e){var A=e[0],r=e[1],t=e[2];A.scrollLeft=r,A.scrollTop=t},Sd=":before",Ld=":after",Mn="___html2canvas___pseudoelement_before",Kn="___html2canvas___pseudoelement_after",$a=`{
- content: "" !important;
- display: none !important;
-}`,kd=function(e){Md(e,"."+Mn+Sd+$a+`
- .`+Kn+Ld+$a)},Md=function(e,A){var r=e.ownerDocument;if(r){var t=r.createElement("style");t.textContent=A,e.appendChild(t)}},Ki=(function(){function e(){}return e.getOrigin=function(A){var r=e._link;return r?(r.href=A,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e})(),Kd=(function(){function e(A,r){this.context=A,this._options=r,this._cache={}}return e.prototype.addImage=function(A){var r=Promise.resolve();return this.has(A)||(en(A)||Rd(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),r},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return OA(this,void 0,void 0,function(){var r,t,n,a,s=this;return kA(this,function(o){switch(o.label){case 0:return r=Ki.isSameOrigin(A),t=!An(A)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!r,n=!An(A)&&!r&&!en(A)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!An(A)&&!en(A)&&!n&&!t?[2]:(a=A,n?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(l,c){var g=new Image;g.onload=function(){return l(g)},g.onerror=c,(Nd(a)||t)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(function(){return l(g)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(a,s){var o=HA.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")a(l.response);else{var B=new FileReader;B.addEventListener("load",function(){return a(B.result)},!1),B.addEventListener("error",function(u){return s(u)},!1),B.readAsDataURL(l.response)}else s("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=s;var c=t.indexOf("?")>-1?"&":"?";if(l.open("GET",""+t+c+"url="+encodeURIComponent(A)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),r._options.imageTimeout){var g=r._options.imageTimeout;l.timeout=g,l.ontimeout=function(){return s("Timed out ("+g+"ms) proxying "+n)}}l.send()})},e})(),Td=/^data:image\/svg\+xml/i,Dd=/^data:image\/.*;base64,/i,Od=/^data:image\/.*/i,Rd=function(e){return HA.SUPPORT_SVG_DRAWING||!_d(e)},An=function(e){return Od.test(e)},Nd=function(e){return Dd.test(e)},en=function(e){return e.substr(0,4)==="blob"},_d=function(e){return e.substr(-3).toLowerCase()==="svg"||Td.test(e)},V=(function(){function e(A,r){this.type=0,this.x=A,this.y=r}return e.prototype.add=function(A,r){return new e(this.x+A,this.y+r)},e})(),Me=function(e,A,r){return new V(e.x+(A.x-e.x)*r,e.y+(A.y-e.y)*r)},Jt=(function(){function e(A,r,t,n){this.type=1,this.start=A,this.startControl=r,this.endControl=t,this.end=n}return e.prototype.subdivide=function(A,r){var t=Me(this.start,this.startControl,A),n=Me(this.startControl,this.endControl,A),a=Me(this.endControl,this.end,A),s=Me(t,n,A),o=Me(n,a,A),l=Me(s,o,A);return r?new e(this.start,t,s,l):new e(l,o,a,this.end)},e.prototype.add=function(A,r){return new e(this.start.add(A,r),this.startControl.add(A,r),this.endControl.add(A,r),this.end.add(A,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),PA=function(e){return e.type===1},Gd=(function(){function e(A){var r=A.styles,t=A.bounds,n=tt(r.borderTopLeftRadius,t.width,t.height),a=n[0],s=n[1],o=tt(r.borderTopRightRadius,t.width,t.height),l=o[0],c=o[1],g=tt(r.borderBottomRightRadius,t.width,t.height),B=g[0],u=g[1],p=tt(r.borderBottomLeftRadius,t.width,t.height),Q=p[0],C=p[1],x=[];x.push((a+l)/t.width),x.push((Q+B)/t.width),x.push((s+C)/t.height),x.push((c+u)/t.height);var U=Math.max.apply(Math,x);U>1&&(a/=U,s/=U,l/=U,c/=U,B/=U,u/=U,Q/=U,C/=U);var y=t.width-l,L=t.height-u,S=t.width-B,E=t.height-C,h=r.borderTopWidth,I=r.borderRightWidth,M=r.borderBottomWidth,k=r.borderLeftWidth,R=wA(r.paddingTop,A.bounds.width),O=wA(r.paddingRight,A.bounds.width),Z=wA(r.paddingBottom,A.bounds.width),D=wA(r.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||s>0?QA(t.left+k/3,t.top+h/3,a-k/3,s-h/3,gA.TOP_LEFT):new V(t.left+k/3,t.top+h/3),this.topRightBorderDoubleOuterBox=a>0||s>0?QA(t.left+y,t.top+h/3,l-I/3,c-h/3,gA.TOP_RIGHT):new V(t.left+t.width-I/3,t.top+h/3),this.bottomRightBorderDoubleOuterBox=B>0||u>0?QA(t.left+S,t.top+L,B-I/3,u-M/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-I/3,t.top+t.height-M/3),this.bottomLeftBorderDoubleOuterBox=Q>0||C>0?QA(t.left+k/3,t.top+E,Q-k/3,C-M/3,gA.BOTTOM_LEFT):new V(t.left+k/3,t.top+t.height-M/3),this.topLeftBorderDoubleInnerBox=a>0||s>0?QA(t.left+k*2/3,t.top+h*2/3,a-k*2/3,s-h*2/3,gA.TOP_LEFT):new V(t.left+k*2/3,t.top+h*2/3),this.topRightBorderDoubleInnerBox=a>0||s>0?QA(t.left+y,t.top+h*2/3,l-I*2/3,c-h*2/3,gA.TOP_RIGHT):new V(t.left+t.width-I*2/3,t.top+h*2/3),this.bottomRightBorderDoubleInnerBox=B>0||u>0?QA(t.left+S,t.top+L,B-I*2/3,u-M*2/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-I*2/3,t.top+t.height-M*2/3),this.bottomLeftBorderDoubleInnerBox=Q>0||C>0?QA(t.left+k*2/3,t.top+E,Q-k*2/3,C-M*2/3,gA.BOTTOM_LEFT):new V(t.left+k*2/3,t.top+t.height-M*2/3),this.topLeftBorderStroke=a>0||s>0?QA(t.left+k/2,t.top+h/2,a-k/2,s-h/2,gA.TOP_LEFT):new V(t.left+k/2,t.top+h/2),this.topRightBorderStroke=a>0||s>0?QA(t.left+y,t.top+h/2,l-I/2,c-h/2,gA.TOP_RIGHT):new V(t.left+t.width-I/2,t.top+h/2),this.bottomRightBorderStroke=B>0||u>0?QA(t.left+S,t.top+L,B-I/2,u-M/2,gA.BOTTOM_RIGHT):new V(t.left+t.width-I/2,t.top+t.height-M/2),this.bottomLeftBorderStroke=Q>0||C>0?QA(t.left+k/2,t.top+E,Q-k/2,C-M/2,gA.BOTTOM_LEFT):new V(t.left+k/2,t.top+t.height-M/2),this.topLeftBorderBox=a>0||s>0?QA(t.left,t.top,a,s,gA.TOP_LEFT):new V(t.left,t.top),this.topRightBorderBox=l>0||c>0?QA(t.left+y,t.top,l,c,gA.TOP_RIGHT):new V(t.left+t.width,t.top),this.bottomRightBorderBox=B>0||u>0?QA(t.left+S,t.top+L,B,u,gA.BOTTOM_RIGHT):new V(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=Q>0||C>0?QA(t.left,t.top+E,Q,C,gA.BOTTOM_LEFT):new V(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||s>0?QA(t.left+k,t.top+h,Math.max(0,a-k),Math.max(0,s-h),gA.TOP_LEFT):new V(t.left+k,t.top+h),this.topRightPaddingBox=l>0||c>0?QA(t.left+Math.min(y,t.width-I),t.top+h,y>t.width+I?0:Math.max(0,l-I),Math.max(0,c-h),gA.TOP_RIGHT):new V(t.left+t.width-I,t.top+h),this.bottomRightPaddingBox=B>0||u>0?QA(t.left+Math.min(S,t.width-k),t.top+Math.min(L,t.height-M),Math.max(0,B-I),Math.max(0,u-M),gA.BOTTOM_RIGHT):new V(t.left+t.width-I,t.top+t.height-M),this.bottomLeftPaddingBox=Q>0||C>0?QA(t.left+k,t.top+Math.min(E,t.height-M),Math.max(0,Q-k),Math.max(0,C-M),gA.BOTTOM_LEFT):new V(t.left+k,t.top+t.height-M),this.topLeftContentBox=a>0||s>0?QA(t.left+k+D,t.top+h+R,Math.max(0,a-(k+D)),Math.max(0,s-(h+R)),gA.TOP_LEFT):new V(t.left+k+D,t.top+h+R),this.topRightContentBox=l>0||c>0?QA(t.left+Math.min(y,t.width+k+D),t.top+h+R,y>t.width+k+D?0:l-k+D,c-(h+R),gA.TOP_RIGHT):new V(t.left+t.width-(I+O),t.top+h+R),this.bottomRightContentBox=B>0||u>0?QA(t.left+Math.min(S,t.width-(k+D)),t.top+Math.min(L,t.height+h+R),Math.max(0,B-(I+O)),u-(M+Z),gA.BOTTOM_RIGHT):new V(t.left+t.width-(I+O),t.top+t.height-(M+Z)),this.bottomLeftContentBox=Q>0||C>0?QA(t.left+k+D,t.top+E,Math.max(0,Q-(k+D)),C-(M+Z),gA.BOTTOM_LEFT):new V(t.left+k+D,t.top+t.height-(M+Z))}return e})(),gA;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gA||(gA={}));var QA=function(e,A,r,t,n){var a=4*((Math.sqrt(2)-1)/3),s=r*a,o=t*a,l=e+r,c=A+t;switch(n){case gA.TOP_LEFT:return new Jt(new V(e,c),new V(e,c-o),new V(l-s,A),new V(l,A));case gA.TOP_RIGHT:return new Jt(new V(e,A),new V(e+s,A),new V(l,c-o),new V(l,c));case gA.BOTTOM_RIGHT:return new Jt(new V(l,A),new V(l,A+o),new V(e+s,c),new V(e,c));case gA.BOTTOM_LEFT:default:return new Jt(new V(l,c),new V(l-s,c),new V(e,A+o),new V(e,A))}},wr=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},jd=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},pr=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Vd=(function(){function e(A,r,t){this.offsetX=A,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return e})(),Wt=(function(){function e(A,r){this.path=A,this.target=r,this.type=1}return e})(),Pd=(function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e})(),Xd=function(e){return e.type===0},Ti=function(e){return e.type===1},Jd=function(e){return e.type===2},As=function(e,A){return e.length===A.length?e.some(function(r,t){return r===A[t]}):!1},Wd=function(e,A,r,t,n){return e.map(function(a,s){switch(s){case 0:return a.add(A,r);case 1:return a.add(A+t,r);case 2:return a.add(A+t,r+n);case 3:return a.add(A,r+n)}return a})},Di=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),Oi=(function(){function e(A,r){if(this.container=A,this.parent=r,this.effects=[],this.curves=new Gd(this.container),this.container.styles.opacity<1&&this.effects.push(new Pd(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new Vd(t,n,a))}if(this.container.styles.overflowX!==0){var s=wr(this.curves),o=pr(this.curves);As(s,o)?this.effects.push(new Wt(s,6)):(this.effects.push(new Wt(s,2)),this.effects.push(new Wt(o,4)))}}return e.prototype.getEffects=function(A){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,n=this.effects.slice(0);t;){var a=t.effects.filter(function(l){return!Ti(l)});if(r||t.container.styles.position!==0||!t.parent){if(n.unshift.apply(n,a),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var s=wr(t.curves),o=pr(t.curves);As(s,o)||n.unshift(new Wt(o,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(l){return EA(l.target,A)})},e})(),Tn=function(e,A,r,t){e.container.elements.forEach(function(n){var a=EA(n.flags,4),s=EA(n.flags,2),o=new Oi(n,e);EA(n.styles.display,2048)&&t.push(o);var l=EA(n.flags,8)?[]:t;if(a||s){var c=a||n.styles.isPositioned()?r:A,g=new Di(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var B=n.styles.zIndex.order;if(B<0){var u=0;c.negativeZIndex.some(function(Q,C){return B>Q.element.container.styles.zIndex.order?(u=C,!1):u>0}),c.negativeZIndex.splice(u,0,g)}else if(B>0){var p=0;c.positiveZIndex.some(function(Q,C){return B>=Q.element.container.styles.zIndex.order?(p=C+1,!1):p>0}),c.positiveZIndex.splice(p,0,g)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else n.styles.isFloating()?c.nonPositionedFloats.push(g):c.nonPositionedInlineLevel.push(g);Tn(o,g,a?g:r,l)}else n.styles.isInlineLevel()?A.inlineLevel.push(o):A.nonInlineLevel.push(o),Tn(o,A,r,l);EA(n.flags,8)&&Ri(n,l)})},Ri=function(e,A){for(var r=e instanceof Sn?e.start:1,t=e instanceof Sn?e.reversed:!1,n=0;n<A.length;n++){var a=A[n];a.container instanceof vi&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=pt(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},Yd=function(e){var A=new Oi(e,null),r=new Di(A),t=[];return Tn(A,r,r,t),Ri(A.container,t),r},es=function(e,A){switch(A){case 0:return JA(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return JA(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return JA(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return JA(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Zd=function(e,A){switch(A){case 0:return JA(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return JA(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return JA(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return JA(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},zd=function(e,A){switch(A){case 0:return JA(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return JA(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return JA(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return JA(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},qd=function(e,A){switch(A){case 0:return Yt(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Yt(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Yt(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Yt(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Yt=function(e,A){var r=[];return PA(e)?r.push(e.subdivide(.5,!1)):r.push(e),PA(A)?r.push(A.subdivide(.5,!0)):r.push(A),r},JA=function(e,A,r,t){var n=[];return PA(e)?n.push(e.subdivide(.5,!1)):n.push(e),PA(r)?n.push(r.subdivide(.5,!0)):n.push(r),PA(t)?n.push(t.subdivide(.5,!0).reverse()):n.push(t),PA(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},Ni=function(e){var A=e.bounds,r=e.styles;return A.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Cr=function(e){var A=e.styles,r=e.bounds,t=wA(A.paddingLeft,r.width),n=wA(A.paddingRight,r.width),a=wA(A.paddingTop,r.width),s=wA(A.paddingBottom,r.width);return r.add(t+A.borderLeftWidth,a+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+t+n),-(A.borderTopWidth+A.borderBottomWidth+a+s))},$d=function(e,A){return e===0?A.bounds:e===2?Cr(A):Ni(A)},Af=function(e,A){return e===0?A.bounds:e===2?Cr(A):Ni(A)},tn=function(e,A,r){var t=$d(De(e.styles.backgroundOrigin,A),e),n=Af(De(e.styles.backgroundClip,A),e),a=ef(De(e.styles.backgroundSize,A),r,t),s=a[0],o=a[1],l=tt(De(e.styles.backgroundPosition,A),t.width-s,t.height-o),c=tf(De(e.styles.backgroundRepeat,A),l,a,t,n),g=Math.round(t.left+l[0]),B=Math.round(t.top+l[1]);return[c,g,B,s,o]},Ke=function(e){return uA(e)&&e.value===Ne.AUTO},Zt=function(e){return typeof e=="number"},ef=function(e,A,r){var t=A[0],n=A[1],a=A[2],s=e[0],o=e[1];if(!s)return[0,0];if(yA(s)&&o&&yA(o))return[wA(s,r.width),wA(o,r.height)];var l=Zt(a);if(uA(s)&&(s.value===Ne.CONTAIN||s.value===Ne.COVER)){if(Zt(a)){var c=r.width/r.height;return c<a!=(s.value===Ne.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var g=Zt(t),B=Zt(n),u=g||B;if(Ke(s)&&(!o||Ke(o))){if(g&&B)return[t,n];if(!l&&!u)return[r.width,r.height];if(u&&l){var p=g?t:n*a,Q=B?n:t/a;return[p,Q]}var C=g?t:r.width,x=B?n:r.height;return[C,x]}if(l){var U=0,y=0;return yA(s)?U=wA(s,r.width):yA(o)&&(y=wA(o,r.height)),Ke(s)?U=y*a:(!o||Ke(o))&&(y=U/a),[U,y]}var L=null,S=null;if(yA(s)?L=wA(s,r.width):o&&yA(o)&&(S=wA(o,r.height)),L!==null&&(!o||Ke(o))&&(S=g&&B?L/t*n:r.height),S!==null&&Ke(s)&&(L=g&&B?S/n*t:r.width),L!==null&&S!==null)return[L,S];throw new Error("Unable to calculate background-size for element")},De=function(e,A){var r=e[A];return typeof r>"u"?e[0]:r},tf=function(e,A,r,t,n){var a=A[0],s=A[1],o=r[0],l=r[1];switch(e){case 2:return[new V(Math.round(t.left),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(l+t.top+s)),new V(Math.round(t.left),Math.round(l+t.top+s))];case 3:return[new V(Math.round(t.left+a),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.height+t.top)),new V(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new V(Math.round(t.left+a),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s+l)),new V(Math.round(t.left+a),Math.round(t.top+s+l))];default:return[new V(Math.round(n.left),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.height+n.top)),new V(Math.round(n.left),Math.round(n.height+n.top))]}},rf="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ts="Hidden Text",nf=(function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,r){var t=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),s=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",s.appendChild(t),n.src=rf,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=A,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(ts)),t.appendChild(a),t.appendChild(n);var o=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode(ts)),t.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-t.offsetTop+2;return s.removeChild(t),{baseline:o,middle:l}},e.prototype.getMetrics=function(A,r){var t=A+" "+r;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(A,r)),this._data[t]},e})(),_i=(function(){function e(A,r){this.context=A,this.options=r}return e})(),af=1e4,sf=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new nf(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return A.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(n){return t.applyEffect(n)})},A.prototype.applyEffect=function(r){this.ctx.save(),Jd(r)&&(this.ctx.globalAlpha=r.opacity),Xd(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),Ti(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(r){return OA(this,void 0,void 0,function(){return kA(this,function(t){switch(t.label){case 0:if(EA(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(r,t,n){var a=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+n);else{var s=Vn(r.text);s.reduce(function(o,l){return a.ctx.fillText(l,o,r.bounds.top+n),o+a.ctx.measureText(l).width},r.bounds.left)}},A.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=uf(r.fontFamily).join(", "),a=Ft(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,t,r.fontWeight,a,n].join(" "),n,a]},A.prototype.renderTextNode=function(r,t){return OA(this,void 0,void 0,function(){var n,a,s,o,l,c,g,B,u=this;return kA(this,function(p){return n=this.createFontStyle(t),a=n[0],s=n[1],o=n[2],this.ctx.font=a,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,g=l.middle,B=t.paintOrder,r.textBounds.forEach(function(Q){B.forEach(function(C){switch(C){case 0:u.ctx.fillStyle=xA(t.color),u.renderTextWithLetterSpacing(Q,t.letterSpacing,c);var x=t.textShadow;x.length&&Q.text.trim().length&&(x.slice(0).reverse().forEach(function(U){u.ctx.shadowColor=xA(U.color),u.ctx.shadowOffsetX=U.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=U.offsetY.number*u.options.scale,u.ctx.shadowBlur=U.blur.number,u.renderTextWithLetterSpacing(Q,t.letterSpacing,c)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=xA(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(U){switch(U){case 1:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top+c),Q.bounds.width,1);break;case 2:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top),Q.bounds.width,1);break;case 3:u.ctx.fillRect(Q.bounds.left,Math.ceil(Q.bounds.top+g),Q.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&Q.text.trim().length&&(u.ctx.strokeStyle=xA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(Q.text,Q.bounds.left,Q.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(r,t,n){if(n&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=Cr(r),s=pr(t);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,y,y,c,g,B,u,S,p,Q,E,C,x,U,y,L,S,E;return kA(this,function(h){switch(h.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,s=0,o=t.textNodes,h.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof Ci))return[3,8];h.label=5;case 5:return h.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,8];case 7:return h.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Qi&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof mi))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,12];case 11:return h.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof bi&&t.tree?(c=new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,c.render(t.tree)]):[3,14];case 13:g=h.sent(),t.width&&t.height&&this.ctx.drawImage(g,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),h.label=14;case 14:if(t instanceof Pn&&(B=Math.min(t.bounds.width,t.bounds.height),t.type===Br?t.checked&&(this.ctx.save(),this.path([new V(t.bounds.left+B*.39363,t.bounds.top+B*.79),new V(t.bounds.left+B*.16,t.bounds.top+B*.5549),new V(t.bounds.left+B*.27347,t.bounds.top+B*.44071),new V(t.bounds.left+B*.39694,t.bounds.top+B*.5649),new V(t.bounds.left+B*.72983,t.bounds.top+B*.23),new V(t.bounds.left+B*.84,t.bounds.top+B*.34085),new V(t.bounds.left+B*.39363,t.bounds.top+B*.79)]),this.ctx.fillStyle=xA(ja),this.ctx.fill(),this.ctx.restore()):t.type===dr&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+B/2,t.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=xA(ja),this.ctx.fill(),this.ctx.restore())),of(t)&&t.value.length){switch(u=this.createFontStyle(a),S=u[0],p=u[1],Q=this.fontMetrics.getMetrics(S,p).baseline,this.ctx.font=S,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=cf(t.styles.textAlign),E=Cr(t),C=0,t.styles.textAlign){case 1:C+=E.width/2;break;case 2:C+=E.width;break}x=E.add(C,0,0,-E.height/2+1),this.ctx.save(),this.path([new V(E.left,E.top),new V(E.left+E.width,E.top),new V(E.left+E.width,E.top+E.height),new V(E.left,E.top+E.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ct(t.value,x),a.letterSpacing,Q),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!EA(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(U=t.styles.listStyleImage,U.type!==0)return[3,18];y=void 0,L=U.url,h.label=15;case 15:return h.trys.push([15,17,,18]),[4,this.context.cache.match(L)];case 16:return y=h.sent(),this.ctx.drawImage(y,t.bounds.left-(y.width+10),t.bounds.top),[3,18];case 17:return h.sent(),this.context.logger.error("Error loading list-style-image "+L),[3,18];case 18:return[3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(S=this.createFontStyle(a)[0],this.ctx.font=S,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",E=new ie(t.bounds.left,t.bounds.top+wA(t.styles.paddingTop,t.bounds.width),t.bounds.width,ya(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ct(r.listValue,E),a.letterSpacing,ya(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),h.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(r){return OA(this,void 0,void 0,function(){var t,n,U,a,s,U,o,l,U,c,g,U,B,u,U,p,Q,U,C,x,U;return kA(this,function(y){switch(y.label){case 0:if(EA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:y.sent(),t=0,n=r.negativeZIndex,y.label=2;case 2:return t<n.length?(U=n[t],[4,this.renderStack(U)]):[3,5];case 3:y.sent(),y.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:y.sent(),a=0,s=r.nonInlineLevel,y.label=7;case 7:return a<s.length?(U=s[a],[4,this.renderNode(U)]):[3,10];case 8:y.sent(),y.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,y.label=11;case 11:return o<l.length?(U=l[o],[4,this.renderStack(U)]):[3,14];case 12:y.sent(),y.label=13;case 13:return o++,[3,11];case 14:c=0,g=r.nonPositionedInlineLevel,y.label=15;case 15:return c<g.length?(U=g[c],[4,this.renderStack(U)]):[3,18];case 16:y.sent(),y.label=17;case 17:return c++,[3,15];case 18:B=0,u=r.inlineLevel,y.label=19;case 19:return B<u.length?(U=u[B],[4,this.renderNode(U)]):[3,22];case 20:y.sent(),y.label=21;case 21:return B++,[3,19];case 22:p=0,Q=r.zeroOrAutoZIndexOrTransformedOrOpacity,y.label=23;case 23:return p<Q.length?(U=Q[p],[4,this.renderStack(U)]):[3,26];case 24:y.sent(),y.label=25;case 25:return p++,[3,23];case 26:C=0,x=r.positiveZIndex,y.label=27;case 27:return C<x.length?(U=x[C],[4,this.renderStack(U)]):[3,30];case 28:y.sent(),y.label=29;case 29:return C++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},A.prototype.formatPath=function(r){var t=this;r.forEach(function(n,a){var s=PA(n)?n.start:n;a===0?t.ctx.moveTo(s.x,s.y):t.ctx.lineTo(s.x,s.y),PA(n)&&t.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(r,t,n,a){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},A.prototype.resizeImage=function(r,t,n){var a;if(r.width===t&&r.height===n)return r;var s=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=s.createElement("canvas");o.width=Math.max(1,t),o.height=Math.max(1,n);var l=o.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,t,n),o},A.prototype.renderBackgroundImage=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l;return kA(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,n=function(g){var B,u,p,R,tA,AA,D,z,M,Q,R,tA,AA,D,z,C,x,U,y,L,S,E,h,I,M,k,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,H,j,_;return kA(this,function(F){switch(F.label){case 0:if(g.type!==0)return[3,5];B=void 0,u=g.url,F.label=1;case 1:return F.trys.push([1,3,,4]),[4,a.context.cache.match(u)];case 2:return B=F.sent(),[3,4];case 3:return F.sent(),a.context.logger.error("Error loading background-image "+u),[3,4];case 4:return B&&(p=tn(r,t,[B.width,B.height,B.width/B.height]),R=p[0],tA=p[1],AA=p[2],D=p[3],z=p[4],M=a.ctx.createPattern(a.resizeImage(B,D,z),"repeat"),a.renderRepeat(R,M,tA,AA)),[3,6];case 5:Xg(g)?(Q=tn(r,t,[null,null,null]),R=Q[0],tA=Q[1],AA=Q[2],D=Q[3],z=Q[4],C=_g(g.angle,D,z),x=C[0],U=C[1],y=C[2],L=C[3],S=C[4],E=document.createElement("canvas"),E.width=D,E.height=z,h=E.getContext("2d"),I=h.createLinearGradient(U,L,y,S),Fa(g.stops,x).forEach(function(N){return I.addColorStop(N.stop,xA(N.color))}),h.fillStyle=I,h.fillRect(0,0,D,z),D>0&&z>0&&(M=a.ctx.createPattern(E,"repeat"),a.renderRepeat(R,M,tA,AA))):Jg(g)&&(k=tn(r,t,[null,null,null]),R=k[0],O=k[1],Z=k[2],D=k[3],z=k[4],eA=g.position.length===0?[_n]:g.position,tA=wA(eA[0],D),AA=wA(eA[eA.length-1],z),dA=Gg(g,tA,AA,D,z),aA=dA[0],q=dA[1],aA>0&&q>0&&(lA=a.ctx.createRadialGradient(O+tA,Z+AA,0,O+tA,Z+AA,aA),Fa(g.stops,aA*2).forEach(function(N){return lA.addColorStop(N.stop,xA(N.color))}),a.path(R),a.ctx.fillStyle=lA,aA!==q?(sA=r.bounds.left+.5*r.bounds.width,H=r.bounds.top+.5*r.bounds.height,j=q/aA,_=1/j,a.ctx.save(),a.ctx.translate(sA,H),a.ctx.transform(1,0,0,j,0,0),a.ctx.translate(-sA,-H),a.ctx.fillRect(O,_*(Z-H)+H,D,z*_),a.ctx.restore()):a.ctx.fill())),F.label=6;case 6:return t--,[2]}})},a=this,s=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(r,t,n){return OA(this,void 0,void 0,function(){return kA(this,function(a){return this.path(es(n,t)),this.ctx.fillStyle=xA(r),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(r,t,n,a){return OA(this,void 0,void 0,function(){var s,o;return kA(this,function(l){switch(l.label){case 0:return t<3?[4,this.renderSolidBorder(r,n,a)]:[3,2];case 1:return l.sent(),[2];case 2:return s=Zd(a,n),this.path(s),this.ctx.fillStyle=xA(r),this.ctx.fill(),o=zd(a,n),this.path(o),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,c,g,B=this;return kA(this,function(u){switch(u.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,n=!we(t.backgroundColor)||t.backgroundImage.length,a=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],s=lf(De(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),we(t.backgroundColor)||(this.ctx.fillStyle=xA(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(p){B.ctx.save();var Q=wr(r.curves),C=p.inset?0:af,x=Wd(Q,-C+(p.inset?1:-1)*p.spread.number,(p.inset?1:-1)*p.spread.number,p.spread.number*(p.inset?-2:2),p.spread.number*(p.inset?-2:2));p.inset?(B.path(Q),B.ctx.clip(),B.mask(x)):(B.mask(Q),B.ctx.clip(),B.path(x)),B.ctx.shadowOffsetX=p.offsetX.number+C,B.ctx.shadowOffsetY=p.offsetY.number,B.ctx.shadowColor=xA(p.color),B.ctx.shadowBlur=p.blur.number,B.ctx.fillStyle=p.inset?xA(p.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),u.label=2;case 2:o=0,l=0,c=a,u.label=3;case 3:return l<c.length?(g=c[l],g.style!==0&&!we(g.color)&&g.width>0?g.style!==2?[3,5]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return g.style!==3?[3,7]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,3)];case 6:return u.sent(),[3,11];case 7:return g.style!==4?[3,9]:[4,this.renderDoubleBorder(g.color,g.width,o,r.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(g.color,o,r.curves)];case 10:u.sent(),u.label=11;case 11:o++,u.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(r,t,n,a,s){return OA(this,void 0,void 0,function(){var o,l,c,g,B,u,p,Q,C,x,U,y,L,S,E,h,E,h;return kA(this,function(I){return this.ctx.save(),o=qd(a,n),l=es(a,n),s===2&&(this.path(l),this.ctx.clip()),PA(l[0])?(c=l[0].start.x,g=l[0].start.y):(c=l[0].x,g=l[0].y),PA(l[1])?(B=l[1].end.x,u=l[1].end.y):(B=l[1].x,u=l[1].y),n===0||n===2?p=Math.abs(c-B):p=Math.abs(g-u),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),Q=t<3?t*3:t*2,C=t<3?t*2:t,s===3&&(Q=t,C=t),x=!0,p<=Q*2?x=!1:p<=Q*2+C?(U=p/(2*Q+C),Q*=U,C*=U):(y=Math.floor((p+C)/(Q+C)),L=(p-y*Q)/(y-1),S=(p-(y+1)*Q)/y,C=S<=0||Math.abs(C-L)<Math.abs(C-S)?L:S),x&&(s===3?this.ctx.setLineDash([0,Q+C]):this.ctx.setLineDash([Q,C])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=xA(r),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(PA(l[0])&&(E=l[3],h=l[0],this.ctx.beginPath(),this.formatPath([new V(E.end.x,E.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke()),PA(l[1])&&(E=l[1],h=l[2],this.ctx.beginPath(),this.formatPath([new V(E.end.x,E.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Yd(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A})(_i),of=function(e){return e instanceof Fi||e instanceof Ui?!0:e instanceof Pn&&e.type!==dr&&e.type!==Br},lf=function(e,A){switch(e){case 0:return wr(A);case 2:return jd(A);default:return pr(A)}},cf=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},gf=["-apple-system","system-ui"],uf=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return gf.indexOf(A)===-1}):e},Bf=(function(e){zA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),n}return A.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t,n;return kA(this,function(a){switch(a.label){case 0:return t=Hn(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,df(t)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A})(_i),df=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},ff=(function(){function e(A){var r=A.id,t=A.enabled;this.id=r,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,xt([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,xt([this.id,this.getTime()+"ms"],A))},e.prototype.warn=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,xt([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.error=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,xt([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e})(),hf=(function(){function e(A,r){var t;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new ff({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new Kd(this,A)}return e.instanceCount=1,e})(),wf=function(e,A){return A===void 0&&(A={}),pf(e,A)};typeof window<"u"&&Ki.setContext(window);var pf=function(e,A){return OA(void 0,void 0,void 0,function(){var r,t,n,a,s,o,l,c,g,B,u,p,Q,C,x,U,y,L,S,E,I,h,I,M,k,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,H,j;return kA(this,function(_){switch(_.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return n={allowTaint:(M=A.allowTaint)!==null&&M!==void 0?M:!1,imageTimeout:(k=A.imageTimeout)!==null&&k!==void 0?k:15e3,proxy:A.proxy,useCORS:(R=A.useCORS)!==null&&R!==void 0?R:!1},a=fn({logging:(O=A.logging)!==null&&O!==void 0?O:!0,cache:A.cache},n),s={windowWidth:(Z=A.windowWidth)!==null&&Z!==void 0?Z:t.innerWidth,windowHeight:(D=A.windowHeight)!==null&&D!==void 0?D:t.innerHeight,scrollX:(z=A.scrollX)!==null&&z!==void 0?z:t.pageXOffset,scrollY:(eA=A.scrollY)!==null&&eA!==void 0?eA:t.pageYOffset},o=new ie(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new hf(a,o),c=(tA=A.foreignObjectRendering)!==null&&tA!==void 0?tA:!1,g={allowTaint:(AA=A.allowTaint)!==null&&AA!==void 0?AA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),B=new qa(l,e,g),u=B.clonedReferenceElement,u?[4,B.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=_.sent(),Q=Xn(u)||pd(u)?Wl(u.ownerDocument):vr(l,u),C=Q.width,x=Q.height,U=Q.left,y=Q.top,L=Cf(l,u,A.backgroundColor),S={canvas:A.canvas,backgroundColor:L,scale:(aA=(dA=A.scale)!==null&&dA!==void 0?dA:t.devicePixelRatio)!==null&&aA!==void 0?aA:1,x:((q=A.x)!==null&&q!==void 0?q:0)+U,y:((lA=A.y)!==null&&lA!==void 0?lA:0)+y,width:(sA=A.width)!==null&&sA!==void 0?sA:Math.ceil(C),height:(H=A.height)!==null&&H!==void 0?H:Math.ceil(x)},c?(l.logger.debug("Document cloned, using foreign object rendering"),I=new Bf(l,S),[4,I.render(u)]):[3,3];case 2:return E=_.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+U+","+y+" with size "+C+"x"+x+" using computed rendering"),l.logger.debug("Starting DOM parsing"),h=Ei(l,u),L===h.styles.backgroundColor&&(h.styles.backgroundColor=se.TRANSPARENT),l.logger.debug("Starting renderer for element at "+S.x+","+S.y+" with size "+S.width+"x"+S.height),I=new sf(l,S),[4,I.render(h)];case 4:E=_.sent(),_.label=5;case 5:return(!((j=A.removeContainer)!==null&&j!==void 0)||j)&&(qa.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,E]}})})},Cf=function(e,A,r){var t=A.ownerDocument,n=t.documentElement?ot(e,getComputedStyle(t.documentElement).backgroundColor):se.TRANSPARENT,a=t.body?ot(e,getComputedStyle(t.body).backgroundColor):se.TRANSPARENT,s=typeof r=="string"?ot(e,r):r===null?se.TRANSPARENT:4294967295;return A===t.documentElement?we(n)?we(a)?s:a:n:s},rn={body:{background:"rgb(32, 32, 32)"},rbgcpInputLabel:{color:"rgb(212, 212, 212)"},rbgcpControlBtnWrapper:{background:"rgb(54, 54, 54)"},rbgcpInput:{border:"none",color:"white",background:"rgb(54, 54, 54)"},rbgcpControlBtn:{color:"rgb(212, 212, 212)"},rbgcpControlIcon:{stroke:"rgb(212, 212, 212)"},rbgcpControlIcon2:{fill:"rgb(212, 212, 212)"},rbgcpControlInput:{color:"white"},rbgcpControlBtnSelected:{background:"black",color:"#568cf5"},rbgcpDegreeIcon:{color:"rgb(212, 212, 212)"},rbgcpColorModelDropdown:{background:"rgb(32, 32, 32)"},rbgcpComparibleLabel:{color:"rgb(212, 212, 212)"}},IA=function(){return IA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},IA.apply(this,arguments)},Qf={body:{boxSizing:"border-box",background:"rgb(255, 255, 255)"},rbgcpControlBtn:{paddingLeft:"8px",paddingRight:"8px",lineHeight:"1",borderRadius:"4px",fontWeight:700,fontSize:"12px",height:"24px",transition:"all 160ms ease",display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0)",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0)",color:"rgb(86, 86, 86)"},rbgcpControlIcon:{stroke:"rgb(50, 49, 54)"},rbgcpControlIconBtn:{width:"30px",height:"24px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},rbgcpControlBtnWrapper:{height:"28px",background:"#e9e9f5",borderRadius:"6px",padding:"2px",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},rbgcpColorModelDropdown:{position:"absolute",right:"-2px",top:"34px",padding:"5px",background:"#e9e9f5",zIndex:1e8,borderRadius:"6px",boxShadow:"1px 1px 14px 1px rgba(0, 0, 0, 0.25)"},rbgcpEyedropperCover:{position:"fixed",left:"0px",top:"0px",zIndex:1e8,width:"100vw",height:"100vh",cursor:"copy"},rbgcpControlInput:{height:"24px",borderRadius:"4px",border:"none",outline:"none",textAlign:"center",width:"34px",fontWeight:500,color:"rgb(50, 49, 54)",fontSize:"13px",background:"transparent"},rbgcpInputLabel:{textAlign:"center",lineHeight:"1.2",fontWeight:700,color:"rgb(86, 86, 86)",fontSize:"11px"},rbgcpInput:{height:"32px",borderRadius:"6px",border:"1px solid #bebebe",width:"100%",padding:"2px",outline:"none",color:"black",fontWeight:400,textAlign:"center",background:"transparent",fontSize:"15px"},rbgcpHandle:{position:"absolute",border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 30ms linear",boxSizing:"border-box",willChange:"transform",outline:"none"},rbgcpCanvasWrapper:{borderRadius:"6px",overflow:"hidden",height:"294px"},rbgcpCheckered:{background:`linear-gradient(
- 45deg,
- rgba(0, 0, 0, 0.18) 25%,
- transparent 25%,
- transparent 75%,
- rgba(0, 0, 0, 0.18) 75%,
- rgba(0, 0, 0, 0.18) 0
- ),
- linear-gradient(
- 45deg,
- rgba(0, 0, 0, 0.18) 25%,
- transparent 25%,
- transparent 75%,
- rgba(0, 0, 0, 0.18) 75%,
- rgba(0, 0, 0, 0.18) 0
- ),
- white`,backgroundRepeat:"repeat, repeat",backgroundPosition:"0px 0, 7px 7px",transformOrigin:"0 0 0",backgroundOrigin:"padding-box, padding-box",backgroundClip:"border-box, border-box",backgroundSize:"14px 14px, 14px 14px",boxShadow:"none",textShadow:"none",transition:"none",transform:"scaleX(1) scaleY(1) scaleZ(1)",borderRadius:"10px"},rbgcpOpacityOverlay:{position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",borderRadius:"10px"},rbgcpGradientHandleWrap:{position:"absolute",zIndex:1e4,top:"-2px",outline:"none"},rbgcpGradientHandle:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"},rbgcpControlIcon2:{fill:"#323136"},rbgcpControlBtnSelected:{background:"white",color:"#568cf5",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0.2)"},rbgcpComparibleLabel:{color:"#323136"}},mf=function(e,A){var r=IA({},Qf);if(e)for(var t in rn)Object.prototype.hasOwnProperty.call(rn,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),rn[t]));for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),A[t]));return r},rs=function(e,A){return e?IA(IA({},A.rbgcpControlBtn),A.rbgcpControlBtnSelected):IA({},A.rbgcpControlBtn)},ut=function(e,A){return e?IA(IA({},A.rbgcpControlIconBtn),A.rbgcpControlBtnSelected):IA({},A.rbgcpControlIconBtn)},zt=function(e,A){return e?IA(IA(IA({},A.rbgcpControlBtn),A.rbgcpColorModelDropdownBtn),A.rbgcpControlBtnSelected):IA(IA({},A.rbgcpControlBtn),A.rbgcpColorModelDropdownBtn)},$A=function(){return $A=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},$A.apply(this,arguments)},vf=function(e){var A=e.color,r=BA().defaultStyles,t=A??"";return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:16}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:$A($A({fill:"none",strokeWidth:"1.4px"},r.rbgcpControlIcon),t&&{stroke:t}),d:"M15.6,7h0L7.78,14.86c-.37.37-1.61.38-2,.75s-.5,1.53-.76,2a3.53,3.53,0,0,1-.52.52,1.6,1.6,0,0,1-2.27-.06l-.32-.32a1.61,1.61,0,0,1-.06-2.27A3.25,3.25,0,0,1,2.4,15c.47-.26,1.65-.35,2-.73s.34-1.64.71-2c1.68-1.73,5.61-5.65,7.91-7.93h0l1.14,1.38L15.6,7Z"}),m.createElement("polygon",{strokeLinecap:"round",strokeLinejoin:"round",style:$A($A({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),points:"15.7 8.87 11.13 4.29 12.69 2.73 17.25 7.31 15.7 8.87"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:$A($A({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),d:"M18.18,3.71,16.36,5.53a1.33,1.33,0,0,1-1.88,0h0a1.34,1.34,0,0,1,0-1.89l1.81-1.82a1.34,1.34,0,0,1,1.89,0h0A1.34,1.34,0,0,1,18.18,3.71Z"}))},Uf=function(e){var A=e.onSelect,r=BA().defaultStyles,t=b.useState(null),n=t[0],a=t[1],s=b.useState(!1),o=s[0],l=s[1],c=b.useState(!1),g=c[0],B=c[1],u=function(){var C=document.getElementById("root");l(!0),wf(C).then(function(x){var U=document.createElement("canvas"),y=U.getContext("2d",{willReadFrequently:!0});C&&y&&(U.width=C.offsetWidth*2,U.height=C.offsetHeight*2,y.drawImage(x,0,0)),a(y)})},p=function(C){if(C.stopPropagation(),n){var x=C.pageX,U=C.pageY,y=x*2,L=U*2,S=n.getImageData(y,L,1,1).data;A("rgba(".concat(S[0],", ").concat(S[1],", ").concat(S[2],", 1)"))}B(!1),l(!1)},Q=function(){if(B(!0),!window.EyeDropper)u();else{var C=new window.EyeDropper,x=new window.AbortController;C.open({signal:x.signal}).then(function(U){var y=SA(U.sRGBHex),L=y.toRgb(),S=L.r,E=L.g,h=L.b;A("rgba(".concat(S,", ").concat(E,", ").concat(h,", 1)")),B(!1)}).catch(function(U){console.log(U),B(!1)})}};return m.createElement("div",null,m.createElement("div",{onClick:Q,id:"rbgcp-eyedropper-btn",style:$A($A({},r.rbgcpEyedropperBtn),ut(o,r))},m.createElement(vf,{color:g?"rgb(86, 140, 245)":""})),o&&m.createElement(Jl,null,m.createElement("div",{onClick:function(C){return p(C)},style:r.rbgcpEyedropperCover})))},Dn=function(){return Dn=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Dn.apply(this,arguments)},nn=function(e){var A=e.value,r=e.reffy,t=e.label,n=e.config,a=e.callback,s=e.squareWidth,o=e.openAdvanced,l=e.defaultStyles,c=e.pickerIdSuffix,g=n.barSize,B=b.useState(!1),u=B[0],p=B[1],Q=b.useState(2),C=Q[0],x=Q[1],U=A*(s-18);b.useEffect(function(){var h;x(((h=r?.current)===null||h===void 0?void 0:h.offsetTop)-2)},[o,r]);var y=function(){p(!1)},L=function(h){u&&a(Ge(h,g))},S=function(h){u||a(Ge(h,g))},E=function(){p(!0)};return b.useEffect(function(){var h=function(){y()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{style:{width:"100%",padding:"3px 0px 3px 0px"}},m.createElement("div",{onMouseMove:function(h){return L(h)},style:{cursor:"resize",position:"relative"},id:"rbgcp-advanced-bar-".concat(t,"-wrapper").concat(c)},m.createElement("div",{style:Dn({left:U,top:C},l.rbgcpHandle),id:"rbgcp-advanced-bar-".concat(t,"-handle").concat(c),onMouseDown:E,role:"button",tabIndex:0}),m.createElement("div",{style:{textAlign:"center",color:"#fff",fontSize:12,fontWeight:500,lineHeight:1,position:"absolute",left:"50%",transform:"translate(-50%, 0%)",top:C+2,zIndex:10,textShadow:"1px 1px 1px rgba(0,0,0,.6)"},id:"rbgcp-advanced-bar-".concat(t,"-label").concat(c),onMouseMove:function(h){return L(h)},onClick:function(h){return S(h)},tabIndex:0,role:"button",onKeyDown:function(){}},t),m.createElement("canvas",{ref:r,height:"14px",width:"".concat(s,"px"),onClick:function(h){return S(h)},style:{position:"relative",borderRadius:14},id:"rbgcp-advanced-bar-".concat(t,"-canvas").concat(c)})))},Ff=function(e){var A=e.openAdvanced,r=BA(),t=r.config,n=r.tinyColor,a=r.handleChange,s=r.squareWidth,o=r.hc,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.toHsl(),B=g.s,u=g.l,p=b.useRef(null),Q=b.useRef(null),C=b.useRef(null);hl(p,o?.h,u*100,s),wl(Q,o?.h,B*100,s),pl(C,o?.h,B*100,s);var x=function(L){var S=SA({h:o?.h,s:L/100,l:u}).toRgb(),E=S.r,h=S.g,I=S.b;a("rgba(".concat(E,",").concat(h,",").concat(I,",").concat(o?.a,")"))},U=function(L){var S=SA({h:o?.h,s:B,l:L/100}).toRgb(),E=S.r,h=S.g,I=S.b;a("rgba(".concat(E,",").concat(h,",").concat(I,",").concat(o?.a,")"))},y=function(L){var S=SA({h:o?.h,s:o?.s*100,v:L}).toRgb(),E=S.r,h=S.g,I=S.b;a("rgba(".concat(E,",").concat(h,",").concat(I,",").concat(o?.a,")"))};return m.createElement("div",{style:{width:"100%",height:A?98:0,transition:"all 120ms linear"},id:"rbgcp-advanced-controls-wrapper".concat(c)},m.createElement("div",{style:{paddingTop:11,display:A?"flex":"none",flexDirection:"column",justifyContent:"space-between",height:A?98:0,overflow:"hidden",transition:"height 100ms linear"},id:"rbgcp-advanced-controls-inner".concat(c)},m.createElement(nn,{value:B,reffy:p,config:t,label:"Saturation",callback:x,squareWidth:s,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),m.createElement(nn,{value:u,config:t,reffy:Q,label:"Lightness",callback:U,squareWidth:s,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c}),m.createElement(nn,{value:o?.v,config:t,reffy:C,label:"Brightness",callback:y,squareWidth:s,openAdvanced:A,defaultStyles:l,pickerIdSuffix:c})))},ye=function(){return ye=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},ye.apply(this,arguments)},bf=function(e){var A=e.openComparibles,r=BA(),t=r.tinyColor,n=r.handleChange,a=r.defaultStyles,s=r.pickerIdSuffix,o=t.analogous(),l=t.monochromatic(),c=t.triad(),g=t.tetrad(),B=function(u){var p=u.toRgb(),Q=p.r,C=p.g,x=p.b,U=p.a;n("rgba(".concat(Q,",").concat(C,",").concat(x,",").concat(U,")"))};return m.createElement("div",{style:{width:"100%",transition:"all 120ms linear",height:A?216:0},id:"rbgcp-comparible-colors-wrapper".concat(s)},m.createElement("div",{style:{paddingTop:11,display:A?"":"none",position:"relative"},id:"rbgcp-comparible-colors-inner".concat(s)},m.createElement("div",{style:ye({textAlign:"center",fontSize:13,fontWeight:600,position:"absolute",top:6.5,left:2},a.rbgcpComparibleLabel),id:"rbgcp-comparible-color-guide-label".concat(s)},"Color Guide"),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-analogous-colors-label".concat(s)},"Analogous"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex"},id:"rbgcp-comparible-analogous-colors".concat(s)},o?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-analogous-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-monochromatic-colors-label".concat(s)},"Monochromatic"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-monochromatic-colors".concat(s)},l?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-monochromatic-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-triad-colors-label".concat(s)},"Triad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-triad-colors".concat(s)},c?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-triad-color-".concat(p).concat(s),style:{width:"calc(100% / 3)",height:28,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:ye({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-tetrad-colors-label".concat(s)},"Tetrad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-tetrad-colors".concat(s)},g?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-tetrad-color-".concat(p).concat(s),style:{width:"25%",height:28,background:u.toHexString()},onClick:function(){return B(u)}})}))))},CA=function(){return CA=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},CA.apply(this,arguments)},yf=function(){var e=BA(),A=e.gradientType,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,s=A==="linear-gradient",o=A==="radial-gradient",l=function(){var g=t.split(/,(.+)/)[1];r("linear-gradient(90deg, ".concat(g))},c=function(){var g=t.split(/,(.+)/)[1];r("radial-gradient(circle, ".concat(g))};return m.createElement("div",{style:n.rbgcpControlBtnWrapper},m.createElement("div",{onClick:l,id:"rbgcp-linear-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),s&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Rl,{color:s?"#568CF5":""})),m.createElement("div",{onClick:c,id:"rbgcp-radial-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),o&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Nl,{color:o?"#568CF5":""})))},Ef=function(){var e=BA(),A=e.currentLeft,r=e.currentColor,t=e.defaultStyles,n=e.handleGradient,a=e.pickerIdSuffix,s=function(o){n(r,_e(parseInt(o),0,100))};return m.createElement("div",{style:CA(CA(CA(CA({},t.rbgcpControlBtnWrapper),t.rbgcpControlInputWrap),t.rbgcpStopInputWrap),{paddingLeft:8}),id:"rbgcp-stop-input-wrapper".concat(a)},m.createElement(Pl,null),m.createElement("input",{value:A,id:"rbgcp-stop-input".concat(a),onChange:function(o){return s(o.target.value)},style:CA(CA({},t.rbgcpControlInput),t.rbgcpStopInput)}))},xf=function(){var e=BA(),A=e.degrees,r=e.onChange,t=e.value,n=e.defaultStyles,a=e.pickerIdSuffix,s=function(o){var l=_e(o.target.value,0,360),c=t.split(/,(.+)/)[1];r("linear-gradient(".concat(l??0,"deg, ").concat(c))};return m.createElement("div",{style:CA(CA(CA({},n.rbgcpControlBtnWrapper),n.rbgcpControlInputWrap),n.rbgcpDegreeInputWrap),id:"rbgcp-degree-input-wrapper".concat(a)},m.createElement(Vl,null),m.createElement("input",{value:A,onChange:function(o){return s(o)},id:"rbgcp-degree-input".concat(a),style:CA(CA({},n.rbgcpControlInput),n.rbgcpDegreeInput)}),m.createElement("div",{style:CA(CA({},n.rbgcpDegreeIcon),{position:"absolute",right:A>99?0:A<10?7:3,top:1,fontWeight:400,fontSize:13})},"°"))},If=function(){var e=BA(),A=e.colors,r=e.selectedColor,t=e.createGradientStr,n=e.defaultStyles,a=e.pickerIdSuffix,s=function(){if(A?.length>2){var o=A?.map(function(c,g){return CA(CA({},c),{value:g===r-1?mr(c):vt(c)})}),l=o?.filter(function(c,g){return g!==r});t(l)}};return m.createElement("div",{onClick:s,style:CA(CA({},ut(!1,n)),{width:28}),id:"rbgcp-point-delete-btn".concat(a),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Ol,null))},ns=function(e){var A=e.hideGradientType,r=e.hideGradientAngle,t=e.hideGradientStop,n=BA(),a=n.gradientType,s=n.defaultStyles,o=n.pickerIdSuffix;return m.createElement("div",{style:CA(CA({},s.rbgcpControlBtnWrapper),{marginTop:12,marginBottom:-4,justifyContent:"space-between",paddingLeft:A?4:0}),id:"rbgcp-gradient-controls-wrap".concat(o)},!A&&m.createElement(yf,null),m.createElement("div",{style:{width:53}},!r&&a==="linear-gradient"&&m.createElement(xf,null)),!t&&m.createElement(Ef,null),m.createElement(If,null))},Ct=function(){return Ct=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Ct.apply(this,arguments)},Hf=function(e){var A,r,t=e.hideColorTypeBtns,n=e.setGradient,a=e.isGradient,s=e.setSolid,o=e.locales,l=BA(),c=l.defaultStyles,g=l.pickerIdSuffix;return t?m.createElement("div",{style:{width:1}}):m.createElement("div",{style:Ct({display:"flex",alignItems:"center"},c.rbgcpControlBtnWrapper),id:"rbgcp-color-type-btns".concat(g)},m.createElement("div",{onClick:s,id:"rbgcp-solid-btn".concat(g),style:rs(!a,c)},(A=o?.CONTROLS)===null||A===void 0?void 0:A.SOLID),m.createElement("div",{onClick:n,id:"rbgcp-gradient-btn".concat(g),style:rs(a??!1,c)},(r=o?.CONTROLS)===null||r===void 0?void 0:r.GRADIENT))},Sf=function(e){var A=e.openInputType,r=e.setOpenInputType,t=BA(),n=t.inputType,a=t.setInputType,s=t.defaultStyles,o=t.pickerIdSuffix,l=A?"visibility 0ms linear":"visibility 100ms linear 150ms",c=A?"z-index 0ms linear":"z-index 100ms linear 150ms",g=A?"opacity 120ms linear":"opacity 150ms linear 50ms",B=function(u,p){A&&(u.stopPropagation(),a(p),r(!1))};return m.createElement("div",{style:Ct({visibility:A?"visible":"hidden",zIndex:A?"":-100,opacity:A?1:0,transition:"".concat(g,", ").concat(l,", ").concat(c)},s.rbgcpColorModelDropdown),id:"rbgcp-color-model-dropdown".concat(o)},m.createElement("div",{id:"rbgcp-color-model-rgb-btn".concat(o),onClick:function(u){return B(u,"rgb")},style:zt(n==="rgb",s)},"RGB"),m.createElement("div",{id:"rbgcp-color-model-hsl-btn".concat(o),onClick:function(u){return B(u,"hsl")},style:zt(n==="hsl",s)},"HSL"),m.createElement("div",{id:"rbgcp-color-model-hsv-btn".concat(o),onClick:function(u){return B(u,"hsv")},style:zt(n==="hsv",s)},"HSV"),m.createElement("div",{id:"rbgcp-color-model-cmyk-btn".concat(o),onClick:function(u){return B(u,"cmyk")},style:zt(n==="cmyk",s)},"CMYK"))},Lf=function(e){var A,r,t=e.locales,n=e.hideEyeDrop,a=n===void 0?!1:n,s=e.hideAdvancedSliders,o=s===void 0?!1:s,l=e.hideColorGuide,c=l===void 0?!1:l,g=e.hideInputType,B=g===void 0?!1:g,u=e.hideColorTypeBtns,p=u===void 0?!1:u,Q=e.hideGradientControls,C=Q===void 0?!1:Q,x=e.hideGradientType,U=x===void 0?!1:x,y=e.hideGradientAngle,L=y===void 0?!1:y,S=e.hideGradientStop,E=S===void 0?!1:S,h=BA(),I=h.config,M=h.onChange,k=h.isGradient,R=h.handleChange,O=h.previous,Z=h.defaultStyles,D=h.pickerIdSuffix,z=I.defaultColor,eA=I.defaultGradient,tA=b.useState(!1),AA=tA[0],dA=tA[1],aA=b.useState(!1),q=aA[0],lA=aA[1],sA=b.useState(!1),H=sA[0],j=sA[1],_=a&&o&&c&&B,F=(A=O?.color)!==null&&A!==void 0?A:z,N=(r=O?.gradient)!==null&&r!==void 0?r:eA,T=function(){M(F)},G=function(){M(N)},J=a&&o&&c&&B,$=J&&p;return $?k&&!C?m.createElement(ns,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:E}):null:m.createElement("div",{style:{paddingBottom:4}},m.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},id:"rbgcp-controls-wrapper".concat(D)},m.createElement(Hf,{hideColorTypeBtns:p,setGradient:G,isGradient:k,setSolid:T,locales:t}),!J&&m.createElement("div",{style:Ct({display:_?"none":""},Z.rbgcpControlBtnWrapper),id:"rbgcp-control-rightside-wrapper".concat(D)},!a&&m.createElement(Uf,{onSelect:R}),!o&&m.createElement("div",{id:"rbgcp-advanced-btn".concat(D),onClick:function(){return j(!H)},style:ut(H,Z)},m.createElement(_l,{color:H?"#568CF5":""})),!c&&m.createElement("div",{style:ut(AA,Z),onClick:function(){return dA(!AA)},id:"rbgcp-comparibles-btn".concat(D)},m.createElement(jl,{color:AA?"#568CF5":""})),!B&&m.createElement("div",{id:"rbgcp-color-model-btn".concat(D),onClick:function(){return lA(!q)},style:ut(q,Z)},m.createElement(Gl,{color:q?"#568CF5":""}),m.createElement(Sf,{openInputType:q,setOpenInputType:lA})))),!o&&m.createElement(Ff,{openAdvanced:H}),!c&&m.createElement(bf,{openComparibles:AA}),k&&!C&&m.createElement(ns,{hideGradientType:U,hideGradientAngle:L,hideGradientStop:E}))},Ae=function(){return Ae=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Ae.apply(this,arguments)},as=function(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,a;t<n;t++)(a||!(t in A))&&(a||(a=Array.prototype.slice.call(A,0,t)),a[t]=A[t]);return e.concat(a||Array.prototype.slice.call(A))},kf=function(e){var A=e.left,r=e.i,t=e.setDragging,n=BA(),a=n.colors,s=n.squareWidth,o=n.selectedColor,l=n.defaultStyles,c=n.pickerIdSuffix,g=n.createGradientStr,B=o===r,u=(s-18)/100,p=function(C){var x=a?.map(function(U,y){return Ae(Ae({},U),{value:y===C?mr(U):vt(U)})});g(x)},Q=function(C){C.stopPropagation(),p(r),t(!0)};return m.createElement("div",{onMouseDown:function(C){return Q(C)},id:"rbgcp-gradient-handle-".concat(r).concat(c),style:Ae(Ae({},l.rbgcpGradientHandleWrap),{left:(A??0)*u})},m.createElement("div",{style:Ae(Ae({},l.rbgcpGradientHandle),B?{boxShadow:"0px 0px 5px 1px rgba(86, 140, 245,.95)",border:"2px solid white"}:{}),id:"rbgcp-gradient-handle-".concat(r,"-dot").concat(c)},B&&m.createElement("div",{style:{width:5,height:5,borderRadius:"50%",background:"white"},id:"rbgcp-gradient-handle-".concat(r,"-selected-dot").concat(c)})))},Mf=function(){var e=BA(),A=e.value,r=e.colors,t=e.config,n=e.squareWidth,a=e.currentColor,s=e.handleGradient,o=e.pickerIdSuffix,l=e.createGradientStr,c=t.barSize,g=b.useState(!1),B=g[0],u=g[1];function p(L){return L.replace(/(radial|linear)-gradient\([^,]+,/,"linear-gradient(90deg,")}var Q=function(L){var S,E=Ge(L,c),h=(S=as(as([],r.map(function(I){return Ae(Ae({},I),{value:vt(I)})}),!0),[{value:a,left:E}],!1))===null||S===void 0?void 0:S.sort(function(I,M){return I.left-M.left});l(h)},C=function(){u(!1)},x=function(L){B||(Q(L),u(!0))},U=function(L){B&&s(a,Ge(L,c))},y=function(){C()};return b.useEffect(function(){return window.addEventListener("mouseup",y),function(){window.removeEventListener("mouseup",y)}}),m.createElement("div",{style:{width:"100%",marginTop:17,marginBottom:4,position:"relative"},id:"rbgcp-gradient-bar".concat(o)},m.createElement("div",{style:{height:14,borderRadius:10,width:n,backgroundImage:p(A)},onMouseDown:function(L){return x(L)},onMouseMove:function(L){return U(L)},id:"rbgcp-gradient-bar-canvas".concat(o)}),r?.map(function(L,S){return m.createElement(kf,{i:S,left:L.left,key:"".concat(S,"-").concat(L),setDragging:u})}))},Kf=function(e){var A=e.locales,r=e.presets,t=e.hideHue,n=e.hideInputs,a=e.hidePresets,s=e.hideOpacity,o=e.hideEyeDrop,l=e.hideControls,c=e.hideInputType,g=e.hideColorGuide,B=e.hidePickerSquare,u=e.hideGradientType,p=e.hideGradientStop,Q=e.hideGradientAngle,C=e.hideColorTypeBtns,x=e.hideAdvancedSliders,U=e.hideGradientControls,y=BA(),L=y.isGradient,S=y.pickerIdSuffix;return m.createElement("div",{style:{userSelect:"none"},id:"rbgcp-color-picker".concat(S)},!B&&m.createElement(kl,null),!l&&m.createElement(Lf,{locales:A,hideEyeDrop:o,hideInputType:c,hideColorGuide:g,hideGradientType:u,hideGradientStop:p,hideColorTypeBtns:C,hideGradientAngle:Q,hideAdvancedSliders:x,hideGradientControls:U}),L&&m.createElement(Mf,null),!t&&m.createElement(Cl,null),!s&&m.createElement(Ml,null),!n&&m.createElement(xl,null),!a&&m.createElement(Dl,{presets:r}))},Qr=function(){return Qr=Object.assign||function(e){for(var A,r=1,t=arguments.length;r<t;r++){A=arguments[r];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},Qr.apply(this,arguments)};function Tf(e){var A=e.idSuffix,r=e.value,t=r===void 0?"rgba(175, 51, 242, 1)":r,n=e.onChange,a=e.hideControls,s=a===void 0?!1:a,o=e.hideInputs,l=o===void 0?!1:o,c=e.hideOpacity,g=c===void 0?!1:c,B=e.hidePresets,u=B===void 0?!1:B,p=e.hideHue,Q=p===void 0?!1:p,C=e.presets,x=C===void 0?[]:C,U=e.hideEyeDrop,y=U===void 0?!1:U,L=e.hideAdvancedSliders,S=L===void 0?!1:L,E=e.hideColorGuide,h=E===void 0?!1:E,I=e.hideInputType,M=I===void 0?!1:I,k=e.hideColorTypeBtns,R=k===void 0?!1:k,O=e.hideGradientType,Z=O===void 0?!1:O,D=e.hideGradientAngle,z=D===void 0?!1:D,eA=e.hideGradientStop,tA=eA===void 0?!1:eA,AA=e.hideGradientControls,dA=AA===void 0?!1:AA,aA=e.locales,q=aA===void 0?Kl:aA,lA=e.width,sA=lA===void 0?294:lA,H=e.height,j=H===void 0?294:H,_=e.style,F=_===void 0?{}:_,N=e.className,T=e.disableDarkMode,G=T===void 0?!1:T,J=e.disableLightMode,$=J===void 0?!1:J,pA=e.hidePickerSquare,f=pA===void 0?!1:pA,v=e.showHexAlpha,w=v===void 0?!1:v,K=e.config,W=K===void 0?{}:K,P=ll(t),oA=typeof window>"u"||G?!1:!!(window.matchMedia("(prefers-color-scheme: dark)").matches||$),fA=mf(oA,F),UA=oA?"-dark".concat(A?"-".concat(A):""):A?"-".concat(A):"";return m.createElement("div",{className:N,style:Qr(Qr({},fA.body),{width:sA})},m.createElement(dl,{value:P,onChange:n,squareWidth:sA,passedConfig:W,squareHeight:j,isDarkMode:oA,hideOpacity:g,showHexAlpha:w,defaultStyles:fA,pickerIdSuffix:UA},m.createElement(Kf,{hideControls:s,hideInputs:l,hidePresets:u,hideOpacity:g,hideHue:Q,presets:x,hideEyeDrop:y,hideAdvancedSliders:S,hideColorGuide:h,hideInputType:M,hideColorTypeBtns:R,hideGradientType:Z,hideGradientAngle:z,hideGradientStop:tA,hideGradientControls:dA,hidePickerSquare:f,locales:q})))}const an="rgb(0, 0, 0)",Df=()=>{const[e,A]=b.useState(localStorage.getItem("customBackgroundColour")||an),r=n=>{A(n),localStorage.setItem("customBackgroundColour",n),hA.emit("refresh","background")},t=()=>{A(an),localStorage.setItem("customBackgroundColour",an),RA(d.getMessage("toasts.reset")),hA.emit("refresh","background")};return i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.custom_colour")}),i.jsxs(cA,{children:[i.jsx(Tf,{value:e,onChange:r,hideEyeDrop:!0,hideColorGuide:!0,hidePresets:!0,hideAdvancedSliders:!1,hideColorTypeBtns:!1,hideInputType:!1,height:147}),i.jsx("div",{className:"colourReset",children:i.jsxs("span",{className:"link",onClick:()=>t(),children:[i.jsx(fe,{}),d.getMessage("modals.main.settings.buttons.reset")]})})]})]})};var Of=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],ze=(e,A)=>{var r="";for(let t=1;t<=A;t++){let n=Math.floor(e)/Math.pow(83,A-t)%83;r+=Of[Math.floor(n)]}return r},sn=e=>{let A=e/255;return A<=.04045?A/12.92:Math.pow((A+.055)/1.055,2.4)},on=e=>{let A=Math.max(0,Math.min(1,e));return A<=.0031308?Math.trunc(A*12.92*255+.5):Math.trunc((1.055*Math.pow(A,.4166666666666667)-.055)*255+.5)},Rf=e=>e<0?-1:1,ln=(e,A)=>Rf(e)*Math.pow(Math.abs(e),A),ss=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},is=4,Nf=(e,A,r,t)=>{let n=0,a=0,s=0,o=A*is;for(let c=0;c<A;c++){let g=is*c;for(let B=0;B<r;B++){let u=g+B*o,p=t(c,B);n+=p*sn(e[u]),a+=p*sn(e[u+1]),s+=p*sn(e[u+2])}}let l=1/(A*r);return[n*l,a*l,s*l]},_f=e=>{let A=on(e[0]),r=on(e[1]),t=on(e[2]);return(A<<16)+(r<<8)+t},Gf=(e,A)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(ln(e[0]/A,.5)*9+9.5)))),t=Math.floor(Math.max(0,Math.min(18,Math.floor(ln(e[1]/A,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(ln(e[2]/A,.5)*9+9.5))));return r*19*19+t*19+n},jf=(e,A,r,t,n)=>{if(t<1||t>9||n<1||n>9)throw new ss("BlurHash must have between 1 and 9 components");if(A*r*4!==e.length)throw new ss("Width and height must match the pixels array");let a=[];for(let B=0;B<n;B++)for(let u=0;u<t;u++){let p=u==0&&B==0?1:2,Q=Nf(e,A,r,(C,x)=>p*Math.cos(Math.PI*u*C/A)*Math.cos(Math.PI*B*x/r));a.push(Q)}let s=a[0],o=a.slice(1),l="",c=t-1+(n-1)*9;l+=ze(c,1);let g;if(o.length>0){let B=Math.max(...o.map(p=>Math.max(...p))),u=Math.floor(Math.max(0,Math.min(82,Math.floor(B*166-.5))));g=(u+1)/166,l+=ze(u,1)}else g=1,l+=ze(0,1);return l+=ze(_f(s),4),o.forEach(B=>{l+=ze(Gf(B,g),2)}),l},Vf=jf;async function os(e){return new Promise((A,r)=>{const t=new Image;t.onload=()=>{A({width:t.width,height:t.height}),typeof e!="string"&&URL.revokeObjectURL(t.src)},t.onerror=()=>r(new Error("Failed to load image")),typeof e=="string"?t.src=e:t.src=URL.createObjectURL(e)})}async function ls(e,A=4,r=3){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{try{const s=document.createElement("canvas"),o=s.getContext("2d"),l=64,c=Math.min(l/a.width,l/a.height);s.width=Math.floor(a.width*c),s.height=Math.floor(a.height*c),o.drawImage(a,0,0,s.width,s.height);const g=o.getImageData(0,0,s.width,s.height),B=Vf(g.data,g.width,g.height,A,r);typeof e!="string"&&URL.revokeObjectURL(a.src),t(B)}catch(s){n(s)}},a.onerror=()=>n(new Error("Failed to load image for blur hash")),typeof e=="string"?a.src=e:a.src=URL.createObjectURL(e)})}function cn(e){const A=e.split(",")[1];if(!A)return 0;const r=(A.match(/=/g)||[]).length;return Math.floor(A.length*3/4-r)}function cs(e,A){return e&&e.name?e.name:`Image ${A+1}`}function Pf(){const e={};return Object.keys(localStorage).forEach(A=>{e[A]=localStorage.getItem(A)}),new TextEncoder().encode(JSON.stringify(e)).length}function me(e){if(e===0)return"0 Bytes";if(!e)return"Unknown";const A=1024,r=["Bytes","KB","MB","GB"],t=Math.floor(Math.log(e)/Math.log(A));return Math.round(e/Math.pow(A,t)*10)/10+" "+r[t]}const Xf=({files:e,onConfirm:A,onCancel:r})=>{const[t,n]=b.useState(""),a=()=>{A(t.trim())};return i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.tag_images")}),i.jsx("button",{className:"closeModal",onClick:r,children:i.jsx(hs,{})})]}),i.jsxs("div",{className:"taggingModalContent",children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.tag_description",{count:e.length})}),i.jsxs("div",{className:"taggingInput",children:[i.jsx("label",{children:d.getMessage("modals.main.settings.sections.background.source.folder_name")}),i.jsx("input",{type:"text",placeholder:d.getMessage("modals.main.settings.sections.background.source.folder_placeholder"),value:t,onChange:s=>n(s.target.value),onKeyPress:s=>{s.key==="Enter"&&a()},autoFocus:!0})]})]}),i.jsxs("div",{className:"resetFooter",children:[i.jsx(vA,{type:"settings",onClick:r,label:d.getMessage("modals.main.settings.buttons.cancel")}),i.jsx(vA,{type:"settings",onClick:a,label:d.getMessage("modals.main.settings.buttons.continue")})]})]})},gn=e=>{try{localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(e.length))}catch{}},Gi=b.memo(()=>{const[e,A]=b.useState([]),[r,t]=b.useState(!1),[n,a]=b.useState([]),[s,o]=b.useState(!0),[l,c]=b.useState(!1),[g,B]=b.useState({current:0,total:0}),[u,p]=b.useState(!1),[Q,C]=b.useState(new Set),[x,U]=b.useState(localStorage.getItem("customImageSort")||"date_desc"),[y,L]=b.useState(!1),[S,E]=b.useState({usage:0,quota:0}),h=b.useRef(null),I=b.useRef(0),M=5e7;b.useEffect(()=>{(async()=>{if(navigator.storage&&navigator.storage.estimate)try{const N=await navigator.storage.estimate();E({usage:N.usage||0,quota:N.quota||M})}catch(N){console.warn("Could not get storage estimate:",N),E({usage:0,quota:M})}else E({usage:0,quota:M})})()},[e]),b.useEffect(()=>{(async()=>{try{await uo();const N=await ve();A(N),N.forEach(async T=>{if(!T.dimensions&&T.url&&!yt(T.url))try{const G=await os(T.url),J=await ls(T.url);await Bo(T.id,{dimensions:G,blurHash:J});const $=await ve();A($)}catch(G){console.warn("Could not extract metadata for existing image:",G)}})}catch(N){console.error("Error loading backgrounds:",N),RA(d.getMessage("toasts.error"))}finally{o(!1)}})()},[]);const k=b.useCallback(async(F,N,T,G=!1)=>{try{const J={url:N,name:T.name,uploadDate:Date.now(),dimensions:T.dimensions,fileSize:T.fileSize,folder:T.folder||"",blurHash:T.blurHash};await tr(J);const $=await ve();A($),gn($),G||hA.emit("refresh","background")}catch(J){console.error("Error saving background:",J),RA(d.getMessage("toasts.error"))}},[]),R=async(F,N="")=>{const T=e.reduce((J,$)=>$.url&&$.url.startsWith("data:")?J+cn($.url):J,0),G=S.quota||M;if(T/G>.9&&navigator.storage&&navigator.storage.persist)try{await navigator.storage.persist()&&console.log("Storage persistence granted")}catch(J){console.warn("Could not request storage persistence:",J)}if(yt(F.type)){if(T+F.size>G)throw new Error("no_storage");const J=new FileReader;return new Promise(($,pA)=>{J.onloadend=()=>{$({dataUrl:J.result,metadata:{name:cs(F,e.length),dimensions:null,fileSize:F.size,folder:N,blurHash:null}})},J.onerror=pA,J.readAsDataURL(F)})}else{const J=await $n.compressAccurately(F,{size:450,accuracy:.9}),$=S.quota||M;if(T+J.size>$)throw new Error("no_storage");const pA=await $n.filetoDataURL(J),[f,v]=await Promise.all([os(pA),ls(pA).catch(()=>null)]);return{dataUrl:pA,metadata:{name:cs(F,e.length),dimensions:f,fileSize:cn(pA),folder:N,blurHash:v}}}},O=async(F,N="")=>{c(!0),B({current:0,total:F.length});const T=[];for(let G=0;G<F.length;G++)try{const J=await R(F[G],N);await k(F[G],J.dataUrl,J.metadata,!0),B({current:G+1,total:F.length})}catch(J){if(J.message==="no_storage"){RA(d.getMessage("toasts.no_storage"));break}T.push(F[G].name)}T.length>0&&RA(d.getMessage("toasts.error")+`: ${T.join(", ")}`),hA.emit("refresh","background"),c(!1),B({current:0,total:0})},Z=async F=>{t(!1),await O(n,F),a([])},D=b.useCallback(async(F,N)=>{try{F==="add"?await tr(""):await io(N);const T=await ve();A(T),gn(T),C(new Set),hA.emit("refresh","backgroundrefresh")}catch(T){console.error("Error modifying background:",T),RA(d.getMessage("toasts.error"))}},[]),z=async()=>{if(Q.size!==0)try{const F=Array.from(Q).sort((T,G)=>G-T);await fo(F);const N=await ve();A(N),C(new Set),gn(N),hA.emit("refresh","backgroundrefresh"),RA(d.getMessage("toasts.deleted"))}catch(F){console.error("Error batch deleting:",F),RA(d.getMessage("toasts.error"))}},eA=F=>{const N=new Set(Q);N.has(F)?N.delete(F):N.add(F),C(N)},tA=F=>{U(F),localStorage.setItem("customImageSort",F)},AA=b.useCallback(()=>{document.getElementById("bg-input").click()},[]),dA=async F=>{F.length>1?(a(F),t(!0)):await O(F,"")},aA=[...e].sort((F,N)=>{switch(x){case"date_asc":return F.uploadDate-N.uploadDate;case"date_desc":return N.uploadDate-F.uploadDate;case"name_asc":return(F.name||"").localeCompare(N.name||"");case"name_desc":return(N.name||"").localeCompare(F.name||"");case"size_asc":return(F.fileSize||0)-(N.fileSize||0);case"size_desc":return(N.fileSize||0)-(F.fileSize||0);default:return 0}}),q=e.reduce((F,N)=>N.url&&N.url.startsWith("data:")?F+cn(N.url):F,0),lA=S.quota||M,sA=q/lA*100,H=Pf(),j=5242880;b.useEffect(()=>{const F=h.current;if(!F)return;const N=$=>{$.preventDefault(),$.stopPropagation()},T=$=>{$.preventDefault(),$.stopPropagation(),I.current++,$.dataTransfer.items&&$.dataTransfer.items.length>0&&p(!0)},G=$=>{$.preventDefault(),$.stopPropagation(),I.current--,I.current===0&&p(!1)},J=async $=>{$.preventDefault(),$.stopPropagation(),p(!1),I.current=0;const pA=Array.from($.dataTransfer.files);pA.length!==0&&(pA.length>1?(a(pA),t(!0)):await O(pA,""))};return F.ondragover=N,F.ondragenter=T,F.ondragleave=G,F.ondrop=J,()=>{F&&(F.ondragover=null,F.ondragenter=null,F.ondragleave=null,F.ondrop=null)}},[e.length,O]);const _=aA.filter(F=>F&&yt(F.url)).length>0;return s?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.loading")})]})}):l?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.uploading",{current:g.current,total:g.total})}),i.jsxs("span",{className:"subtitle",children:[Math.round(g.current/g.total*100),"%"]})]})}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`dropzone ${u?"dragging":""}`,ref:h,style:u?{outline:"2px dashed #ff5c25",outlineOffset:"-2px",backgroundColor:"rgba(255, 92, 37, 0.1)",transition:"all 0.2s ease"}:{},children:[i.jsxs("div",{className:"imagesTopBar",children:[i.jsxs("div",{className:"imagesTopBarTitle",children:[i.jsx(zn,{}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.custom_title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.custom_description")})]})]}),i.jsx("div",{className:"topbarbuttons",children:i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(oo,{}),label:d.getMessage("modals.main.settings.sections.background.source.upload")})})]}),i.jsxs("div",{className:"imagesControlBar",children:[i.jsxs("div",{className:"controlBarLeft",children:[i.jsxs("span",{className:"image-count",children:[e.length," ",e.length===1?"image":"images",i.jsxs("span",{className:"storage-info",children:[" ","· ",me(q)," / ",me(lA),sA>80&&navigator.storage&&navigator.storage.persist&&i.jsx(qn,{title:"Request persistent storage to prevent browser from automatically clearing your images",children:i.jsx("button",{className:"request-storage-link",onClick:async()=>{try{await navigator.storage.persist()?RA("Persistent storage granted - your images are protected from eviction"):RA("Persistent storage denied - images may be cleared if storage is low")}catch(F){console.error("Storage request error:",F),RA("Could not request persistent storage")}},children:"Protect images"})})]})]}),i.jsx("span",{className:"selection-separator",children:"·"}),Q.size>0?i.jsxs(i.Fragment,{children:[i.jsxs("span",{className:"selected-count",children:[Q.size," selected"]}),i.jsx("button",{className:"delete-link",onClick:z,children:"Delete"}),Q.size<e.length&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(e.map((N,T)=>T));C(F)},children:"Select all"}),Q.size===e.length&&i.jsx("button",{className:"select-all-link",onClick:()=>C(new Set),children:"Deselect all"})]}):e.length>0&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(e.map((N,T)=>T));C(F)},children:"Select all"})]}),i.jsx("div",{className:"controlBarRight",children:i.jsx(KA,{name:"customImageSort",category:"customImageSort",onChange:tA,items:[{value:"date_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_newest")},{value:"date_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_oldest")},{value:"name_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_asc")},{value:"name_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_desc")},{value:"size_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_small")},{value:"size_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_large")}]})})]}),i.jsx("div",{className:"dropzone-content",children:aA.length>0?i.jsx("div",{className:`images-grid ${Q.size>0?"selection-mode":""}`,children:aA.map(F=>{const N=e.findIndex(G=>G===F),T=F&&yt(F.url);return i.jsxs("div",{className:"image-card",onClick:G=>{G.target.closest(".delete-button")||eA(N)},children:[i.jsx("div",{className:"image-checkbox",children:i.jsx("input",{type:"checkbox",checked:Q.has(N),onChange:()=>eA(N)})}),i.jsxs("div",{className:"image-preview",children:[F.blurHash&&!T&&(()=>{const G=lo(F.blurHash,32,32);return G?i.jsx("div",{className:"blur-placeholder",style:{backgroundImage:`url(${G})`,filter:"blur(20px)",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}}):null})(),T?i.jsx("div",{className:"video-icon-wrapper",children:i.jsx(co,{className:"customvideoicon"})}):i.jsx("img",{alt:F.name||"Custom background",src:F.url,loading:"lazy",style:{position:"relative",zIndex:1}})]}),i.jsxs("div",{className:"image-metadata",children:[i.jsx("span",{className:"image-name",title:F.name,children:F.name||"Unnamed"}),i.jsxs("div",{className:"image-details",children:[F.dimensions&&i.jsxs("span",{className:"detail",children:[F.dimensions.width," × ",F.dimensions.height]}),F.fileSize&&i.jsx("span",{className:"detail",children:me(F.fileSize)}),F.folder&&i.jsx("span",{className:"detail folder-tag",children:F.folder})]})]}),i.jsx(qn,{title:d.getMessage("modals.main.settings.sections.background.source.remove"),children:i.jsx("button",{className:"delete-button",onClick:G=>{G.stopPropagation(),D("remove",N)},children:i.jsx(Bt,{})})})]},N)})}):i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(zn,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.drop_to_upload")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.formats",{list:"jpeg, png, webp, webm, gif, mp4, webm, ogg"})}),i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(go,{}),label:d.getMessage("modals.main.settings.sections.background.source.select")})]})})})]}),i.jsx(Ms,{id:"bg-input",accept:"image/jpeg, image/png, image/webp, image/webm, image/gif, video/mp4, video/webm, video/ogg",multiple:!0,loadFunction:async F=>{await dA(F)}}),_&&i.jsxs(i.Fragment,{children:[i.jsx(mA,{name:"backgroundVideoLoop",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.loop_video")}),i.jsx(mA,{name:"backgroundVideoMute",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.mute_video")})]}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a([])},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Xf,{files:n,onConfirm:Z,onCancel:()=>{t(!1),a([])}})}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>L(!1),isOpen:y,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.storage_info")}),i.jsx("button",{className:"closeModal",onClick:()=>L(!1),children:i.jsx(Bt,{})})]}),i.jsxs("div",{style:{padding:"20px"},children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.storage_description")}),i.jsxs("div",{style:{marginTop:"20px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Custom Backgrounds"}),i.jsxs("p",{className:"subtitle",children:[me(q)," / ",me(lA)," (",Math.round(sA),"%)"]})]}),i.jsxs("div",{style:{marginTop:"15px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Total localStorage Usage"}),i.jsxs("p",{className:"subtitle",children:[me(H)," / ",me(j)," (",Math.round(H/j*100),"%)"]}),i.jsx("p",{className:"subtitle",style:{marginTop:"8px",fontSize:"12px",opacity:.7},children:"Includes all Mue settings and custom images"})]})]}),i.jsx("div",{className:"resetFooter",children:i.jsx(vA,{type:"settings",onClick:()=>L(!1),label:d.getMessage("modals.main.settings.buttons.close")})})]})})]})});Gi.displayName="CustomSettings";const Jf=({usingImage:e})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.display"),subtitle:d.getMessage("modals.main.settings.sections.background.display_subtitle")}),i.jsxs(cA,{children:[i.jsx(mA,{name:"bgtransition",text:d.getMessage("modals.main.settings.sections.background.transition"),element:".other",disabled:!e}),i.jsx(mA,{name:"photoInformation",text:d.getMessage("modals.main.settings.sections.background.photo_information"),element:".other"}),i.jsx(mA,{name:"photoMap",text:d.getMessage("modals.main.settings.sections.background.show_map"),element:".other",disabled:!e})]})]});d.getMessage("modals.main.settings.sections.background.source.quality.original"),d.getMessage("modals.main.settings.sections.background.source.quality.high"),d.getMessage("modals.main.settings.sections.background.source.quality.normal"),d.getMessage("modals.main.settings.sections.background.source.quality.datasaver");const Wf=[{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.navbar.refresh_options.none")},{value:"grayscale",text:d.getMessage("modals.main.settings.sections.background.effects.filters.grayscale")},{value:"sepia",text:d.getMessage("modals.main.settings.sections.background.effects.filters.sepia")},{value:"invert",text:d.getMessage("modals.main.settings.sections.background.effects.filters.invert")},{value:"saturate",text:d.getMessage("modals.main.settings.sections.background.effects.filters.saturate")},{value:"contrast",text:d.getMessage("modals.main.settings.sections.background.effects.filters.contrast")}];function ji(){return[{value:"api",text:d.getMessage("wb.settings_bundled_photos")},{value:"custom",text:d.getMessage("modals.main.settings.sections.background.type.custom_image")},{value:"colour",text:d.getMessage("modals.main.settings.sections.background.type.custom_colour")},{value:"random_colour",text:d.getMessage("modals.main.settings.sections.background.type.random_colour")},{value:"random_gradient",text:d.getMessage("modals.main.settings.sections.background.type.random_gradient")}]}const Yf=({backgroundFilter:e,onFilterChange:A})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle")}),i.jsxs(cA,{children:[i.jsx(at,{title:d.getMessage("modals.main.settings.sections.background.effects.blur"),name:"blur",min:"0",max:"100",default:"0",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(at,{title:d.getMessage("modals.main.settings.sections.background.effects.brightness"),name:"brightness",min:"0",max:"100",default:"100",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.effects.filters.title"),name:"backgroundFilter",onChange:A,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo",items:Wf}),e!=="none"&&i.jsx(at,{title:d.getMessage("modals.main.settings.sections.background.effects.filters.amount"),name:"backgroundFilterAmount",min:"0",max:"100",default:"0",display:"%",marks:st.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"})]})]}),Zf=({backgroundType:e,onTypeChange:A})=>i.jsxs(rA,{final:e==="random_colour"||e==="random_gradient",children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:A,category:"background",items:ji()})})]}),gs=({icon:e,title:A,subtitle:r,onClick:t,action:n})=>i.jsxs("div",{className:"moreSettings",onClick:t,children:[i.jsxs("div",{className:"left",children:[i.jsx(e,{}),i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:A}),i.jsx("span",{className:"subtitle",children:r})]})]}),i.jsx("div",{className:"action",children:n||i.jsx(fs,{})})]}),Vi=b.memo(({currentSubSection:e,onSubSectionChange:A,sectionName:r})=>{const[t,n]=b.useState(localStorage.getItem("backgroundType")||"api"),[a,s]=b.useState(localStorage.getItem("backgroundFilter")||"none"),o=["colour","random_colour","random_gradient"].includes(t);b.useEffect(()=>{o&&e!=="source"&&A("source",r)},[o,e,A,r]);const l=()=>{switch(t){case"custom":return i.jsx(Gi,{});case"colour":return i.jsx(Df,{});default:return null}},c=t!=="colour"&&t!=="random_colour"&&t!=="random_gradient",g=t==="api"||t==="custom",B=()=>e==="effects"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.effects.title"),goBack:()=>A(null,r)}):e==="source"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.source.title"),goBack:()=>A(null,r)}):i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),setting:"background",category:"background",visibilityToggle:!0});return i.jsxs(i.Fragment,{children:[B(),!e&&i.jsxs(i.Fragment,{children:[i.jsx(gs,{icon:ho,title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle"),onClick:()=>A("source",r),action:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:u=>{n(u),u==="custom"&&hA.emit("refresh","background")},category:"background",items:ji()})}),g&&i.jsx(gs,{icon:wo,title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle"),onClick:()=>A("effects",r)})]}),!e&&g&&i.jsx(Jf,{usingImage:c}),e==="source"&&i.jsxs(i.Fragment,{children:[i.jsx(Zf,{backgroundType:t,onTypeChange:n}),l()]}),g&&e==="effects"&&i.jsx(Yf,{backgroundFilter:a,onFilterChange:u=>s(u)})]})});Vi.displayName="BackgroundOptions";function zf(){const e=[{value:"ask",text:d.getMessage("wb.ask")},{value:"act",text:d.getMessage("wb.act")},...po()?[{value:"search",text:d.getMessage("wb.search")}]:[]];return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_taskbox"),setting:"taskBox",category:"widgets",visibilityToggle:!0}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("wb.settings_default_mode"),subtitle:d.getMessage("wb.settings_taskbox_sub")}),i.jsx(cA,{children:i.jsx(KA,{name:"taskBoxMode",category:"widgets",items:e})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("wb.settings_recent")}),i.jsx(cA,{children:i.jsx(Qs,{name:"recentChats",category:"widgets"})})]})]})}const qf=["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"];function $f({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const[t,n]=b.useState(!1),a="modals.main.settings.sections.advanced",s=()=>localStorage.getItem("welcomePreview")!=="true"?i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.data"),subtitle:d.getMessage("modals.main.settings.sections.advanced.data_description")}),i.jsxs("div",{className:"resetDataButtonsLayout",children:[i.jsx(vA,{onClick:()=>n(!0),icon:i.jsx(mo,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{onClick:()=>xo(),icon:i.jsx(vo,{}),label:d.getMessage("modals.main.settings.buttons.export")}),i.jsx(vA,{onClick:()=>document.getElementById("file-input").click(),icon:i.jsx(Uo,{}),label:d.getMessage("modals.main.settings.buttons.import")})]}),i.jsx(Ms,{id:"file-input",accept:"application/json",type:"settings",loadFunction:c=>Io(c)})]}):i.jsx("div",{className:"emptyItems",children:i.jsx("div",{className:"emptyMessage",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx(Fo,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.description")})]})})}),o=e==="data";let l;return o?l=i.jsx(TA,{title:d.getMessage(`${a}.title`),secondaryTitle:d.getMessage(`${a}.data`),goBack:()=>A(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage(`${a}.title`),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsxs(i.Fragment,{children:[i.jsx(s,{}),i.jsx(dt,{closeTimeoutMS:100,onRequestClose:()=>n(!1),isOpen:t,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(Co,{modalClose:()=>n(!1)})})]}):i.jsxs(i.Fragment,{children:[i.jsx(Rn,{title:d.getMessage(`${a}.data`),subtitle:d.getMessage(`${a}.data_subtitle`),onClick:()=>A("data",r),icon:i.jsx(Qo,{})}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.timezone.title"),subtitle:d.getMessage("modals.main.settings.sections.advanced.timezone.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"timezone",category:"timezone",items:[{value:"auto",text:d.getMessage("modals.main.settings.sections.advanced.timezone.automatic")},...qf.map(c=>({value:c,text:c}))]})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.tab_name"),subtitle:d.getMessage("modals.main.settings.sections.advanced.tab_name_subtitle")}),i.jsx(cA,{children:i.jsx(nr,{name:"tabName",default:d.getMessage("tabname"),category:"other"})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.custom_css"),subtitle:d.getMessage("modals.main.settings.sections.advanced.custom_css_subtitle")}),i.jsx(cA,{children:i.jsx(nr,{name:"customcss",textarea:!0,category:"other",customcss:!0})})]})]})]})}function Ah({currentSubSection:e,onSubSectionChange:A,sectionName:r}){const t=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.theme.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.theme.description")}),i.jsx(cA,{children:i.jsx(Bn,{name:"theme",options:[{name:d.getMessage("modals.main.settings.sections.appearance.theme.auto"),value:"auto"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.light"),value:"light"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.dark"),value:"dark"}],category:"other"})})]}),n=()=>{const c="modals.main.settings.sections.appearance.font.weight";return i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.font.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.font.description")}),i.jsxs(cA,{children:[i.jsx(nr,{title:d.getMessage("modals.main.settings.sections.appearance.font.custom"),name:"font",upperCaseFirst:!0,category:"other"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.weight.title"),name:"fontweight",category:"other",items:[{value:"100",text:d.getMessage(c+".thin")},{value:"200",text:d.getMessage(c+".extra_light")},{value:"300",text:d.getMessage(c+".light")},{value:"400",text:d.getMessage(c+".normal")},{value:"500",text:d.getMessage(c+".medium")},{value:"600",text:d.getMessage(c+".semi_bold")},{value:"700",text:d.getMessage(c+".bold")},{value:"800",text:d.getMessage(c+".extra_bold")}]}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.style.title"),name:"fontstyle",category:"other",items:[{value:"normal",text:d.getMessage("modals.main.settings.sections.appearance.font.style.normal")},{value:"italic",text:d.getMessage("modals.main.settings.sections.appearance.font.style.italic")},{value:"oblique",text:d.getMessage("modals.main.settings.sections.appearance.font.style.oblique")}]})]})]})},a=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.style.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.style.description")}),i.jsx(cA,{children:i.jsx(Bn,{name:"widgetStyle",element:".other",options:[{name:d.getMessage("modals.main.settings.sections.appearance.style.legacy"),value:"legacy"},{name:d.getMessage("modals.main.settings.sections.appearance.style.new"),value:"new"}],category:"widgets"})})]}),s=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description")}),i.jsxs(cA,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.title"),name:"textBorder",category:"other",items:[{value:"new",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.new")},{value:"true",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.old")},{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.none")}]}),i.jsx(mA,{text:d.getMessage("modals.main.settings.sections.appearance.accessibility.animations"),name:"animations",category:"other"}),i.jsx(at,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.toast_duration"),name:"toastDisplayTime",default:"2500",step:"100",min:"500",max:"5000",marks:st.toast,display:" "+d.getMessage("modals.main.settings.sections.appearance.accessibility.milliseconds")})]})]}),o=e==="accessibility";let l;return o?l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),goBack:()=>A(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsx(s,{}):i.jsxs(i.Fragment,{children:[i.jsx(Rn,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description"),icon:i.jsx(bo,{}),onClick:()=>A("accessibility",r)}),i.jsx(t,{}),i.jsx(n,{}),i.jsx(a,{})]})]})}const eh=b.memo(Ah),th=`BSD 3-Clause License
-
-Copyright (c) 2019-2026 The Mue Authors
-Copyright (c) 2018-2019 David Ralph
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-3. Neither the name of the copyright holder nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-`;function rh(){const e=Object.keys(yo),{MUE_REPO_URL:A,MUE_VERSION:r,REPO_URL:t,WEBSITE_URL:n}=d.constants;return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_credits")}),i.jsx(rA,{children:i.jsx(nA,{title:"WebBrain",subtitle:"The WebBrain new tab is free software, licensed GPL-3.0-or-later, and makes no network requests of its own."})}),i.jsx(rA,{children:i.jsx(nA,{title:`Based on Mue ${r}`,subtitle:i.jsxs(i.Fragment,{children:["Derived from ",i.jsx("a",{href:A,target:"_blank",rel:"noreferrer",children:"Mue"})," by The Mue Authors and David Ralph, used under the BSD-3-Clause license reproduced below. Mue is not affiliated with or endorsing WebBrain."]})})}),i.jsx(rA,{children:i.jsx(nA,{title:d.getMessage("wb.settings_bundled_photos"),subtitle:`${e.join(", ")}. Offline images shipped with Mue (Unsplash, Pexels and Pixabay).`})}),i.jsx(rA,{children:i.jsx(nA,{title:"Fonts and icons",subtitle:"Inter, Lexend Deca and Montserrat (SIL Open Font License); Material Design icons via react-icons."})}),i.jsx(rA,{final:!0,children:i.jsx(nA,{title:"Mue license",subtitle:i.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},children:th})})}),i.jsxs("p",{style:{opacity:.7,fontSize:"0.85rem"},children:[i.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:n.replace("https://","")})," · ",i.jsx("a",{href:t,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})}function nh(){return i.jsx("span",{className:"greeting preview",children:"Good Morning"})}const ah=b.memo(nh),sh=b.lazy(()=>Eo(()=>import("./index-IXgZpYJT.js"),__vite__mapDeps([0,1,2]),import.meta.url));function ih(){return localStorage.getItem("timeType")==="analogue"?i.jsx(b.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx("div",{className:"clockBackground",children:i.jsx(sh,{className:"analogclock clock-container",value:"2022-10-07T17:00:00+00:00",size:50})})}):localStorage.getItem("timeType")==="percentageComplete"?i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"68%"}):localStorage.getItem("timeType")==="verticalClock"?i.jsxs("span",{className:"vertical-clock clock-container",style:{fontSize:"30px"},children:[i.jsx("div",{className:"hour",children:"10"}),i.jsx("div",{className:"minute",children:"23"})]}):i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"10:24"})}const oh=b.memo(ih);function lh(e){return On({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(e)}function ch(e){return On({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"},child:[]}]})(e)}function gh(e){return On({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17.625 1.499c-2.32 0-4.354 1.203-5.625 3.03-1.271-1.827-3.305-3.03-5.625-3.03C3.129 1.499 0 4.253 0 8.249c0 4.275 3.068 7.847 5.828 10.227a33.14 33.14 0 0 0 5.616 3.876l.028.017.008.003-.001.003c.163.085.342.126.521.125.179.001.358-.041.521-.125l-.001-.003.008-.003.028-.017a33.14 33.14 0 0 0 5.616-3.876C20.932 16.096 24 12.524 24 8.249c0-3.996-3.129-6.75-6.375-6.75zm-.919 15.275a30.766 30.766 0 0 1-4.703 3.316l-.004-.002-.004.002a30.955 30.955 0 0 1-4.703-3.316c-2.677-2.307-5.047-5.298-5.047-8.523 0-2.754 2.121-4.5 4.125-4.5 2.06 0 3.914 1.479 4.544 3.684.143.495.596.797 1.086.796.49.001.943-.302 1.085-.796.63-2.205 2.484-3.684 4.544-3.684 2.004 0 4.125 1.746 4.125 4.5 0 3.225-2.37 6.216-5.048 8.523z"},child:[]}]})(e)}function uh(){return i.jsx("div",{className:"quickLinksSkeleton",children:i.jsxs("div",{className:"circles",children:[i.jsx("div",{children:i.jsx(lh,{})}),i.jsx("div",{children:i.jsx(ch,{})}),i.jsx("div",{children:i.jsx(gh,{})})]})})}const Bh=b.memo(uh);function dh(){return i.jsx("span",{className:"date",children:"Thursday January 1st"})}const fh=b.memo(dh);function hh(){return i.jsx("h2",{className:"message",children:i.jsxs("span",{children:["Message",i.jsx("br",{})]})})}const wh=b.memo(hh),ph={greeting:d.getMessage("modals.main.settings.sections.greeting.title"),time:d.getMessage("modals.main.settings.sections.time.title"),quicklinks:d.getMessage("modals.main.settings.sections.quicklinks.title"),date:d.getMessage("modals.main.settings.sections.date.title"),message:d.getMessage("modals.main.settings.sections.message.title")},Ch=({id:e})=>{const{attributes:A,listeners:r,setNodeRef:t,transform:n,transition:a}=vs({id:e}),s={transform:Us.Transform.toString(n),transition:a};return i.jsxs("li",{ref:t,style:s,...A,...r,className:"sortableItem",children:[ph[e],i.jsx(ms,{})]})},Qh=()=>{const[e,A]=b.useState(()=>JSON.parse(localStorage.getItem("order"))||["greeting","time","quicklinks","date","message"]),r=Fs(ar(Es),ar(ys,{coordinateGetter:bs})),t=s=>{const{active:o,over:l}=s;l&&o.id!==l.id&&A(c=>{const g=c.indexOf(o.id),B=c.indexOf(l.id);return Ls(c,g,B)})},n=s=>s==="quicklinks"?localStorage.getItem("quicklinksenabled")==="true":localStorage.getItem(s)==="true",a=s=>{switch(s){case"greeting":return i.jsx(ah,{});case"time":return i.jsx(oh,{});case"quicklinks":return i.jsx(Bh,{});case"date":return i.jsx(fh,{});case"message":return i.jsx(wh,{});default:return null}};return b.useEffect(()=>{localStorage.setItem("order",JSON.stringify(e)),d.stats.postEvent("setting","Widget order"),hA.emit("refresh","widgets")},[e]),i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"mainTitle",children:d.getMessage("modals.main.marketplace.product.overview")}),i.jsxs("div",{className:"overviewGrid",children:[i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.welcome.buttons.preview")}),i.jsx("div",{className:"tabPreview",children:i.jsx("div",{className:"previewItem",style:{maxWidth:"50%"},children:e.map((s,o)=>n(s)?i.jsx("div",{className:"previewItem",children:a(s)},`item-${s}`):null)})})]}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.order.title")}),i.jsx(xs,{sensors:r,collisionDetection:Is,onDragEnd:t,children:i.jsx(Hs,{items:e,strategy:Ss,children:i.jsx("ul",{className:"sortableContainer",children:e.map(s=>n(s)?i.jsx(Ch,{id:s},s):null)})})})]})]})]})},us=[{label:"modals.main.marketplace.product.overview",name:"order",component:Qh},{label:"modals.main.settings.sections.appearance.navbar.title",name:"navbar",component:Vo},{label:"modals.main.settings.sections.greeting.title",name:"greeting",component:Jo},{label:"modals.main.settings.sections.time.title",name:"time",component:Wo},{label:"modals.main.settings.sections.quicklinks.title",name:"quicklinks",component:$o},{label:"modals.main.settings.sections.date.title",name:"date",component:Yo},{label:"modals.main.settings.sections.message.title",name:"message",component:Al},{label:"modals.main.settings.sections.background.title",name:"background",component:Vi},{label:"wb.settings_taskbox",name:"taskbox",component:zf},{label:"modals.main.settings.sections.appearance.title",name:"appearance",component:eh},{label:"modals.main.settings.sections.advanced.title",name:"advanced",component:$f},{label:"wb.settings_credits",name:"credits",component:rh}];function mh(e){const A=Qt(),r=b.useMemo(()=>us.map(t=>({...t,translatedLabel:A(t.label)})),[A]);return i.jsx(No,{changeTab:t=>e.changeTab(t),current:"settings",currentTab:e.currentTab,onSectionChange:e.onSectionChange,onSubSectionChange:e.onSubSectionChange,currentSubSection:e.currentSubSection,deepLinkData:e.deepLinkData,navigationTrigger:e.navigationTrigger,sections:us,children:r.map(({label:t,name:n,component:a,translatedLabel:s})=>i.jsx("div",{label:s,name:n,children:i.jsx(a,{currentSubSection:e.currentSubSection,onSubSectionChange:e.onSubSectionChange,sectionName:n})},n))})}const Uh=b.memo(mh);export{Uh as default};
diff --git a/src/chrome/newtab/assets/index-CdhTpdYh.js b/src/firefox/newtab/assets/index-CEGyrx1j.js
similarity index 97%
rename from src/chrome/newtab/assets/index-CdhTpdYh.js
rename to src/firefox/newtab/assets/index-CEGyrx1j.js
index 1c05248d2..2cbd50a63 100644
--- a/src/chrome/newtab/assets/index-CdhTpdYh.js
+++ b/src/firefox/newtab/assets/index-CEGyrx1j.js
@@ -1,4 +1,4 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Clock-okasD9hI.css","./Settings-DPCKRiko.js","./Settings-BkGHEXAt.css"])))=>i.map(i=>d[i]);
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Clock-okasD9hI.css","./Settings-CuZKKPjT.js","./Settings-BkGHEXAt.css"])))=>i.map(i=>d[i]);
var XT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Em(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function ES(o){if(Object.prototype.hasOwnProperty.call(o,"__esModule"))return o;var n=o.default;if(typeof n=="function"){var u=function l(){var d=!1;try{d=this instanceof l}catch{}return d?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};u.prototype=n.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(o).forEach(function(l){var d=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(u,l,d.get?d:{enumerable:!0,get:function(){return o[l]}})}),u}var Kc={exports:{}},zs={};var b_;function jS(){if(b_)return zs;b_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function u(l,d,c){var f=null;if(c!==void 0&&(f=""+c),d.key!==void 0&&(f=""+d.key),"key"in d){c={};for(var p in d)p!=="key"&&(c[p]=d[p])}else c=d;return d=c.ref,{$$typeof:o,type:l,key:f,ref:d!==void 0?d:null,props:c}}return zs.Fragment=n,zs.jsx=u,zs.jsxs=u,zs}var y_;function DS(){return y_||(y_=1,Kc.exports=jS()),Kc.exports}var w=DS();const Lv="wbnt:";function Iv(o,n=Lv){const u=()=>{const d=[];for(let c=0;c<o.length;c+=1){const f=o.key(c);f!=null&&f.startsWith(n)&&d.push(f.slice(n.length))}return d},l={getItem:d=>o.getItem(n+String(d)),setItem:(d,c)=>o.setItem(n+String(d),String(c)),removeItem:d=>o.removeItem(n+String(d)),clear:()=>u().forEach(d=>o.removeItem(n+d)),key:d=>u()[d]??null};return new Proxy(Object.create(null),{get(d,c){if(c==="length")return u().length;if(Object.prototype.hasOwnProperty.call(l,c))return l[c];if(typeof c!="string")return;const f=o.getItem(n+c);return f===null?void 0:f},set(d,c,f){return typeof c!="string"?!1:(o.setItem(n+c,String(f)),!0)},deleteProperty(d,c){return typeof c=="string"&&o.removeItem(n+c),!0},has(d,c){return Object.prototype.hasOwnProperty.call(l,c)||c==="length"||typeof c=="string"&&o.getItem(n+c)!==null},ownKeys:()=>u(),getOwnPropertyDescriptor(d,c){if(typeof c!="string")return;const f=o.getItem(n+c);return f===null?void 0:{value:f,enumerable:!0,configurable:!0,writable:!0}}})}function OS(o=globalThis){const n=o.localStorage,u=Iv(n);return Object.defineProperty(o,"localStorage",{configurable:!0,get:()=>u}),{real:n,shim:u}}function qS(){const o=new Map;return{get length(){return o.size},key:n=>[...o.keys()][n]??null,getItem:n=>o.has(String(n))?o.get(String(n)):null,setItem:(n,u)=>{o.set(String(n),String(u))},removeItem:n=>{o.delete(String(n))},clear:()=>o.clear()}}let Ll=null;try{const o=`${Lv}__probe`;window.localStorage.setItem(o,"1");const n=window.localStorage.getItem(o);if(window.localStorage.removeItem(o),n!=="1")throw new Error("localStorage did not keep a value");Ll=OS(window).real}catch{try{const o=qS(),n=Iv(o);Object.defineProperty(window,"localStorage",{configurable:!0,get:()=>n})}catch{}Ll=null}var Yc={exports:{}},Ts={},Wc={exports:{}},Qc={};var k_;function RS(){return k_||(k_=1,(function(o){function n(I,T){var K=I.length;I.push(T);e:for(;0<K;){var ie=K-1>>>1,ne=I[ie];if(0<d(ne,T))I[ie]=T,I[K]=ne,K=ie;else break e}}function u(I){return I.length===0?null:I[0]}function l(I){if(I.length===0)return null;var T=I[0],K=I.pop();if(K!==T){I[0]=K;e:for(var ie=0,ne=I.length,ye=ne>>>1;ie<ye;){var Ce=2*(ie+1)-1,Ve=I[Ce],j=Ce+1,te=I[j];if(0>d(Ve,K))j<ne&&0>d(te,Ve)?(I[ie]=te,I[j]=K,ie=j):(I[ie]=Ve,I[Ce]=K,ie=Ce);else if(j<ne&&0>d(te,K))I[ie]=te,I[j]=K,ie=j;else break e}}return T}function d(I,T){var K=I.sortIndex-T.sortIndex;return K!==0?K:I.id-T.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;o.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();o.unstable_now=function(){return f.now()-p}}var h=[],y=[],_=1,g=null,b=3,S=!1,C=!1,z=!1,A=!1,E=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function G(I){for(var T=u(y);T!==null;){if(T.callback===null)l(y);else if(T.startTime<=I)l(y),T.sortIndex=T.expirationTime,n(h,T);else break;T=u(y)}}function Z(I){if(z=!1,G(I),!C)if(u(h)!==null)C=!0,H||(H=!0,ee());else{var T=u(y);T!==null&&Y(Z,T.startTime-I)}}var H=!1,D=-1,q=5,V=-1;function $(){return A?!0:!(o.unstable_now()-V<q)}function W(){if(A=!1,H){var I=o.unstable_now();V=I;var T=!0;try{e:{C=!1,z&&(z=!1,x(D),D=-1),S=!0;var K=b;try{t:{for(G(I),g=u(h);g!==null&&!(g.expirationTime>I&&$());){var ie=g.callback;if(typeof ie=="function"){g.callback=null,b=g.priorityLevel;var ne=ie(g.expirationTime<=I);if(I=o.unstable_now(),typeof ne=="function"){g.callback=ne,G(I),T=!0;break t}g===u(h)&&l(h),G(I)}else l(h);g=u(h)}if(g!==null)T=!0;else{var ye=u(y);ye!==null&&Y(Z,ye.startTime-I),T=!1}}break e}finally{g=null,b=K,S=!1}T=void 0}}finally{T?ee():H=!1}}}var ee;if(typeof L=="function")ee=function(){L(W)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,X=ae.port2;ae.port1.onmessage=W,ee=function(){X.postMessage(null)}}else ee=function(){E(W,0)};function Y(I,T){D=E(function(){I(o.unstable_now())},T)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(I){I.callback=null},o.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<I?Math.floor(1e3/I):5},o.unstable_getCurrentPriorityLevel=function(){return b},o.unstable_next=function(I){switch(b){case 1:case 2:case 3:var T=3;break;default:T=b}var K=b;b=T;try{return I()}finally{b=K}},o.unstable_requestPaint=function(){A=!0},o.unstable_runWithPriority=function(I,T){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var K=b;b=I;try{return T()}finally{b=K}},o.unstable_scheduleCallback=function(I,T,K){var ie=o.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ie+K:ie):K=ie,I){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=K+ne,I={id:_++,callback:T,priorityLevel:I,startTime:K,expirationTime:ne,sortIndex:-1},K>ie?(I.sortIndex=K,n(y,I),u(h)===null&&I===u(y)&&(z?(x(D),D=-1):z=!0,Y(Z,K-ie))):(I.sortIndex=ne,n(h,I),C||S||(C=!0,H||(H=!0,ee()))),I},o.unstable_shouldYield=$,o.unstable_wrapCallback=function(I){var T=b;return function(){var K=b;b=T;try{return I.apply(this,arguments)}finally{b=K}}}})(Qc)),Qc}var w_;function BS(){return w_||(w_=1,Wc.exports=RS()),Wc.exports}var Zc={exports:{}},be={};var S_;function LS(){if(S_)return be;S_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.for("react.view_transition"),S=Symbol.iterator;function C(j){return j===null||typeof j!="object"?null:(j=S&&j[S]||j["@@iterator"],typeof j=="function"?j:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,E={};function x(j,te,se){this.props=j,this.context=te,this.refs=E,this.updater=se||z}x.prototype.isReactComponent={},x.prototype.setState=function(j,te){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,te,"setState")},x.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function L(){}L.prototype=x.prototype;function G(j,te,se){this.props=j,this.context=te,this.refs=E,this.updater=se||z}var Z=G.prototype=new L;Z.constructor=G,A(Z,x.prototype),Z.isPureReactComponent=!0;var H=Array.isArray;function D(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function $(j,te,se){var ce=se.ref;return{$$typeof:o,type:j,key:te,ref:ce!==void 0?ce:null,props:se}}function W(j,te){return $(j.type,te,j.props)}function ee(j){return typeof j=="object"&&j!==null&&j.$$typeof===o}function ae(j){var te={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(se){return te[se]})}var X=/\/+/g;function Y(j,te){return typeof j=="object"&&j!==null&&j.key!=null?ae(""+j.key):te.toString(36)}function I(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(D,D):(j.status="pending",j.then(function(te){j.status==="pending"&&(j.status="fulfilled",j.value=te)},function(te){j.status==="pending"&&(j.status="rejected",j.reason=te)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function T(j,te,se,ce,ke){var we=typeof j;(we==="undefined"||we==="boolean")&&(j=null);var me=!1;if(j===null)me=!0;else switch(we){case"bigint":case"string":case"number":me=!0;break;case"object":switch(j.$$typeof){case o:case n:me=!0;break;case _:return me=j._init,T(me(j._payload),te,se,ce,ke)}}if(me)return ke=ke(j),me=ce===""?"."+Y(j,0):ce,H(ke)?(se="",me!=null&&(se=me.replace(X,"$&/")+"/"),T(ke,te,se,"",function(At){return At})):ke!=null&&(ee(ke)&&(ke=W(ke,se+(ke.key==null||j&&j.key===ke.key?"":(""+ke.key).replace(X,"$&/")+"/")+me)),te.push(ke)),1;me=0;var ue=ce===""?".":ce+":";if(H(j))for(var fe=0;fe<j.length;fe++)ce=j[fe],we=ue+Y(ce,fe),me+=T(ce,te,se,we,ke);else if(fe=C(j),typeof fe=="function")for(j=fe.call(j),fe=0;!(ce=j.next()).done;)ce=ce.value,we=ue+Y(ce,fe++),me+=T(ce,te,se,we,ke);else if(we==="object"){if(typeof j.then=="function")return T(I(j),te,se,ce,ke);throw te=String(j),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return me}function K(j,te,se){if(j==null)return j;var ce=[],ke=0;return T(j,ce,"","",function(we){return te.call(se,we,ke++)}),ce}function ie(j){if(j._status===-1){var te=j._result,se=te();se.then(function(ce){(j._status===0||j._status===-1)&&(j._status=1,j._result=ce,se.status===void 0&&(se.status="fulfilled",se.value=ce))},function(ce){(j._status===0||j._status===-1)&&(j._status=2,j._result=ce,se.status===void 0&&(se.status="rejected",se.reason=ce))}),j._status===-1&&(j._status=0,j._result=se)}if(j._status===1)return j._result.default;throw j._result}var ne=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)};function ye(j){var te=q.T,se={};se.types=te!==null?te.types:null,q.T=se;try{var ce=j(),ke=q.S;ke!==null&&ke(se,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(D,ne)}catch(we){ne(we)}finally{te!==null&&se.types!==null&&(te.types=se.types),q.T=te}}function Ce(j){var te=q.T;if(te!==null){var se=te.types;se===null?te.types=[j]:se.indexOf(j)===-1&&se.push(j)}else ye(Ce.bind(null,j))}var Ve={map:K,forEach:function(j,te,se){K(j,function(){te.apply(this,arguments)},se)},count:function(j){var te=0;return K(j,function(){te++}),te},toArray:function(j){return K(j,function(te){return te})||[]},only:function(j){if(!ee(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return be.Activity=g,be.Children=Ve,be.Component=x,be.Fragment=u,be.Profiler=d,be.PureComponent=G,be.StrictMode=l,be.Suspense=h,be.ViewTransition=b,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,be.__COMPILER_RUNTIME={__proto__:null,c:function(j){return q.H.useMemoCache(j)}},be.addTransitionType=Ce,be.cache=function(j){return function(){return j.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(j,te,se){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ce=A({},j.props),ke=j.key;if(te!=null)for(we in te.key!==void 0&&(ke=""+te.key),te)!V.call(te,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&te.ref===void 0||(ce[we]=te[we]);var we=arguments.length-2;if(we===1)ce.children=se;else if(1<we){for(var me=Array(we),ue=0;ue<we;ue++)me[ue]=arguments[ue+2];ce.children=me}return $(j.type,ke,ce)},be.createContext=function(j){return j={$$typeof:f,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:c,_context:j},j},be.createElement=function(j,te,se){var ce,ke={},we=null;if(te!=null)for(ce in te.key!==void 0&&(we=""+te.key),te)V.call(te,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(ke[ce]=te[ce]);var me=arguments.length-2;if(me===1)ke.children=se;else if(1<me){for(var ue=Array(me),fe=0;fe<me;fe++)ue[fe]=arguments[fe+2];ke.children=ue}if(j&&j.defaultProps)for(ce in me=j.defaultProps,me)ke[ce]===void 0&&(ke[ce]=me[ce]);return $(j,we,ke)},be.createRef=function(){return{current:null}},be.forwardRef=function(j){return{$$typeof:p,render:j}},be.isValidElement=ee,be.lazy=function(j){return{$$typeof:_,_payload:{_status:-1,_result:j},_init:ie}},be.memo=function(j,te){return{$$typeof:y,type:j,compare:te===void 0?null:te}},be.startTransition=ye,be.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},be.use=function(j){return q.H.use(j)},be.useActionState=function(j,te,se){return q.H.useActionState(j,te,se)},be.useCallback=function(j,te){return q.H.useCallback(j,te)},be.useContext=function(j){return q.H.useContext(j)},be.useDebugValue=function(){},be.useDeferredValue=function(j,te){return q.H.useDeferredValue(j,te)},be.useEffect=function(j,te){return q.H.useEffect(j,te)},be.useEffectEvent=function(j){return q.H.useEffectEvent(j)},be.useId=function(){return q.H.useId()},be.useImperativeHandle=function(j,te,se){return q.H.useImperativeHandle(j,te,se)},be.useInsertionEffect=function(j,te){return q.H.useInsertionEffect(j,te)},be.useLayoutEffect=function(j,te){return q.H.useLayoutEffect(j,te)},be.useMemo=function(j,te){return q.H.useMemo(j,te)},be.useOptimistic=function(j,te){return q.H.useOptimistic(j,te)},be.useReducer=function(j,te,se){return q.H.useReducer(j,te,se)},be.useRef=function(j){return q.H.useRef(j)},be.useState=function(j){return q.H.useState(j)},be.useSyncExternalStore=function(j,te,se){return q.H.useSyncExternalStore(j,te,se)},be.useTransition=function(){return q.H.useTransition()},be.version="19.3.1",be}var M_;function Ws(){return M_||(M_=1,Zc.exports=LS()),Zc.exports}var Xc={exports:{}},Mt={};var A_;function IS(){if(A_)return Mt;A_=1;var o=Ws();function n(_){var g="https://react.dev/errors/"+_;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+_+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var l={d:{f:u,r:function(){throw Error(n(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},d=Symbol.for("react.portal"),c=Symbol.for("react.recoverable"),f=Symbol.for("react.optimistic_key");function p(_,g,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:S==null?null:S===f?f:""+S,children:_,containerInfo:g,implementation:b}}var h=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(_,g){if(_==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Mt.browser=function(_){return{$$typeof:c,_reason:_}},Mt.createPortal=function(_,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return p(_,g,null,b)},Mt.flushSync=function(_){var g=h.T,b=l.p;try{if(h.T=null,l.p=2,_)return _()}finally{h.T=g,l.p=b,l.d.f()}},Mt.preconnect=function(_,g){typeof _=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(_,g))},Mt.prefetchDNS=function(_){typeof _=="string"&&l.d.D(_)},Mt.preinit=function(_,g){if(typeof _=="string"&&g&&typeof g.as=="string"){var b=g.as,S=y(b,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,z=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?l.d.S(_,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:z}):b==="script"&&l.d.X(_,{crossOrigin:S,integrity:C,fetchPriority:z,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Mt.preinitModule=function(_,g){if(typeof _=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=y(g.as,g.crossOrigin);l.d.M(_,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}}else g==null&&l.d.M(_)},Mt.preload=function(_,g){if(typeof _=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,S=y(b,g.crossOrigin);l.d.L(_,b,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Mt.preloadModule=function(_,g){if(typeof _=="string")if(g){var b=y(g.as,g.crossOrigin);l.d.m(_,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}else l.d.m(_)},Mt.requestFormReset=function(_){l.d.r(_)},Mt.unstable_batchedUpdates=function(_,g){return _(g)},Mt.useFormState=function(_,g,b){return h.H.useFormState(_,g,b)},Mt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Mt.version="19.3.1",Mt}var C_;function jm(){if(C_)return Xc.exports;C_=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(n){console.error(n)}}return o(),Xc.exports=IS(),Xc.exports}var x_;function US(){if(x_)return Ts;x_=1;var o=BS(),n=Ws(),u=jm();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(l(188))}function y(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,i=t;;){var s=a.return;if(s===null)break;var r=s.alternate;if(r===null){if(i=s.return,i!==null){a=i;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===a)return h(s),e;if(r===i)return h(s),t;r=r.sibling}throw Error(l(188))}if(a.return!==i.return)a=s,i=r;else{for(var m=!1,v=s.child;v;){if(v===a){m=!0,a=s,i=r;break}if(v===i){m=!0,i=s,a=r;break}v=v.sibling}if(!m){for(v=r.child;v;){if(v===a){m=!0,a=r,i=s;break}if(v===i){m=!0,i=r,a=s;break}v=v.sibling}if(!m)throw Error(l(189))}}if(a.alternate!==i)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}function g(e,t,a,i,s,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,i,s,r)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&g(e.child,t,a,i,s,r))return!0;e=e.sibling}return!1}function b(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function S(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function C(e){var t=[null,null],a=b(e);return a===null||z(t,e,a.child,{foundSelf:!1}),t}function z(e,t,a,i){for(;a!==null;){if(a===t)i.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(i.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&z(e,t,a.child,i))return!0;a=a.sibling}return!1}function A(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(l(559))}}var E=null,x=null;function L(e,t,a){return e===a?!0:e===t?(E=e,!0):!1}function G(e,t,a){return e===a?(x=e,!1):e===t?(x!==null&&(E=e),!0):!1}function Z(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function H(e,t,a){for(var i=0,s=e;s;s=a(s))i++;s=0;for(var r=t;r;r=a(r))s++;for(;0<i-s;)e=a(e),i--;for(;0<s-i;)t=a(t),s--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var D=Object.assign,q=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Ce=Symbol.for("react.legacy_hidden"),Ve=Symbol.for("react.memo_cache_sentinel"),j=Symbol.for("react.view_transition"),te=Symbol.for("react.recoverable"),se=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Symbol.for("react.client.reference");function we(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case ae:return"Profiler";case ee:return"StrictMode";case T:return"Suspense";case K:return"SuspenseList";case ye:return"Activity";case j:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case $:return"Portal";case Y:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}var me=Array.isArray,ue=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,At={pending:!1,data:null,method:null,action:null},Qt=[],Zt=-1;function _t(e){return{current:e}}function tt(e){0>Zt||(e.current=Qt[Zt],Qt[Zt]=null,Zt--)}function Le(e,t){Zt++,Qt[Zt]=e.current,e.current=t}var Bt=_t(null),Lt=_t(null),Xt=_t(null),Xa=_t(null);function Jo(e,t){switch(Le(Xt,t),Le(Lt,e),Le(Bt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?zh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=zh(t),e=Th(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}tt(Bt),Le(Bt,e)}function Ja(){tt(Bt),tt(Lt),tt(Xt)}function On(e){var t=e.memoizedState;t!==null&&(yn._currentValue=t.memoizedState,Le(Xa,e)),t=Bt.current;var a=Th(t,e.type);t!==a&&(Le(Lt,e),Le(Bt,a))}function Ni(e){Lt.current===e&&(tt(Bt),tt(Lt)),Xa.current===e&&(tt(Xa),yn._currentValue=At)}var Da,$a;function It(e){if(Da===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Da=t&&t[1]||"",$a=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Da+e+$a}var Ei=!1;function la(e,t){if(!e||Ei)return"";Ei=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(oe){var O=oe}Reflect.construct(e,[],J)}else{try{J.call()}catch(oe){O=oe}J=!1;try{var P=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),J=!0,new e}finally{J&&(P!==void 0?Object.defineProperty(e.prototype,"props",P):delete e.prototype.props)}}}else{try{throw Error()}catch(oe){O=oe}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(oe){if(oe&&O&&typeof oe.stack=="string")return[oe.stack,O.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=i.DetermineComponentFrameRoot(),m=r[0],v=r[1];if(m&&v){var M=m.split(`
@@ -847,7 +847,7 @@ Not: "{category}" kategorisine ait görselleri beğenmediyseniz, arka plan kayna
Примітка: якщо вам не подобаються "{category}" зображення, ви можете вимкнути цю категорію у налаштуваннях джерела фону.`,confirm:"Підтвердити"},search:"Пошук",quicklinks:{new:"Нове посилання",edit:"Редагувати посилання",name:"Ім'я",url:"URL",icon:"Іконка (необов'язково)",add:"Додати",name_error:"Необхідно вказати ім'я",url_error:"Необхідно вказати URL-адресу"},date:{week:"Тиждень"},weather:{not_found:"Не знайдено",meters:"{amount} метрів",extra_information:"Додаткова інформація",feels_like:"Відчувається як {amount}"},quote:{link_tooltip:"Відкрити у Вікіпедії",share:"Поділитися",copy:"Скопіювати",favourite:"Улюблене",unfavourite:"Неулюблене"},navbar:{tooltips:{refresh:"Оновити"},notes:{title:"Примітки",placeholder:"Введіть тут"},todo:{title:"Todo",pin:"Прикріпити",add:"Додати",no_todos:"Немає Todos"},apps:{title:"Додатки",no_apps:"Не знайдено жодного посилання на додаток"}}},LM=JSON.parse(`{"main":{"title":"Параметри","loading":"Завантаження...","file_upload_error":"Розмір файлу більше 2 МБ","navbar":{"settings":"Налаштування","library":"Доповнення","discover":"Маркетплейс"},"error_boundary":{"title":"Помилка","message":"Не вдалося завантажити цей компонент Mue","report_error":"Надіслати звіт про помилку","sent":"Відправлено!","refresh":"Оновити"},"settings":{"enabled":"Увімкнено","open_knowledgebase":"Відкрита база знань","additional_settings":"Додаткові налаштування","reminder":{"title":"ЗАМІТКА","message":"Щоб всі зміни набули чинності, сторінку необхідно оновити."},"sections":{"header":{"more_info":"Більше інформації","report_issue":"Повідомити про проблему","enabled":"Виберіть, показувати цей віджет чи ні","size":"Повзунок для керування розміром віджету"},"time":{"title":"Час","format":"Формат","type":"Тип","type_subtitle":"Виберіть, чи відображати час у цифровому форматі, аналоговому форматі або у відсотках від завершення дня","digital":{"title":"Цифровий","subtitle":"Змініть вигляд цифрового годинника","seconds":"Секунди","twentyfourhour":"24 години","twelvehour":"12 годин","zero":"Додатковий нуль"},"analogue":{"title":"Аналоговий","subtitle":"Змініть вигляд аналогового годинника","second_hand":"Секундна стрілка","minute_hand":"Хвилинна стрілка","hour_hand":"Годинникова стрілка","hour_marks":"Годинникові мітки","minute_marks":"Хвилинні мітки","round_clock":"Закруглений фон"},"percentage_complete":"Відсоток виконання","vertical_clock":{"title":"Вертикальний годинник","change_hour_colour":"Змінити колір тексту годинника","change_minute_colour":"Змінити колір хвилинного тексту","change_second_colour":"Змінити другий колір тексту"}},"date":{"title":"Дата","week_number":"Номер тижня","day_of_week":"День тижня","datenth":"Дата n-та","type":{"short":"Коротка","long":"Довга","subtitle":"Відображати дату в довгій чи в короткій формі"},"type_settings":"Налаштування та формат відображення для вибраного типу дати","short_date":"Коротка дата","short_format":"Короткий формат","long_format":"Довгий формат","short_separator":{"title":"Короткий сепаратор","dots":"Крапки","dash":"Тире","gaps":"Пробіли","slashes":"Слеши"}},"quote":{"title":"Цитата","additional":"Інші налаштування для налаштування стилю віджету котирувань","author_link":"Посилання на автора","author_details":"Інформація про автора","custom":"Користувацька цитата","custom_subtitle":"Встановіть свої власні користувацьки цитати","no_quotes":"Без лапок","author":"Автор","custom_buttons":"Кнопки","custom_author":"Користувацький автор","author_img":"Показати зображення автора","add":"Додати цитату","source_subtitle":"Виберіть, звідки отримувати цитати","buttons":{"title":"Кнопки","subtitle":"Виберіть, які кнопки показувати на цитаті","copy":"Скопіювати","tweet":"Твітнути","favourite":"Улюблене"}},"greeting":{"title":"Привітання","events":"Події","events_description":"Керуйте подіями на Mue, такими як дні народження.","enable_events":"Показувати повідомлення в особливі дні","default":"Привітання за замовчуванням","name":"Ім'я для привітання","birthday":"День народження","birthday_subtitle":"Показувати привітання з днем народження, коли твій день народження","birthday_age":"Рік народження","birthday_date":"Дата народження","additional":"Налаштування відображення привітання","custom":"Користувацькі події","event_name":"Назва події","day":"День","month":"Місяць","no_events":"Немає подій","no_events_description":"Додати кілька подій","add_event":"Додати подію"},"background":{"title":"Фон","transition":"Затухаючий перехід","photo_information":"Показати інформацію про фото","show_map":"Показувати карту місцезнаходження на інформації про фото, якщо вона доступна","categories":"Категорії","buttons":{"title":"Кнопки","view":"Перегляд","favourite":"Улюблені","download":"Завантажити'"},"effects":{"title":"Ефекти","subtitle":"Додати ефекти до фонових зображень","blur":"Розмиття","brightness":"Яскравість","filters":{"title":"Фільтр фону","amount":"Кількість фільтрів","grayscale":"Відтінки сірого","sepia":"Сепія","invert":"Негатив","saturate":"Насиченість","contrast":"Контраст"}},"type":{"title":"Тип","api":"API","custom_image":"Користувацьке зображення","custom_colour":"Користувацький колір/градієнт","random_colour":"Випадковий колір","random_gradient":"Випадковий градієнт"},"unsplash":{"title":"Колекція(ї) Unsplash","subtitle":"Виберіть колекцію(ї), яку ви хочете використати для фону","id":"Ідентифікатор(и) колекції","id_subtitle":"Введіть список ідентифікаторів Unsplash через кому"},"source":{"title":"Джерело","subtitle":"Виберіть, звідки взяти фонові зображення","api":"API для фону","custom_background":"Користувацький фон","custom_colour":"Користувацький колір фону","upload":"Вавантажити","add_colour":"Додати колір","add_background":"Додати фон","drop_to_upload":"Перетягніть для завантаження","formats":"Доступні формати: {list}","select":"Або виберіть","add_url":"Додати URL","disabled":"Вимкнено","loop_video":"Циклічне відео","mute_video":"Вимкнути звук відео","quality":{"title":"Якість","original":"Original","high":"Висока якість","normal":"Нормальна якість","datasaver":"Data Saver"},"custom_title":"Користувацькі зображення","custom_description":"Виберіть зображення з вашего локального комп'ютера","remove":"Видалити зображення","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Відображати","display_subtitle":"Зміна способу завантаження фону та інформації про фотографію","api":"Налаштування API","api_subtitle":"Варіанти отримання зображення із зовнішнього сервісу (API)"},"search":{"title":"Пошук","additional":"Додаткові параметри відображення та функціональності пошукового віджета","search_engine":"Пошукова система","search_engine_subtitle":"Виберіть пошукову систему в рядку пошуку","custom":"Користувацька URL-адреса пошуку","autocomplete":"Автозаповнення","autocomplete_provider":"Провайдер автозаповнення","autocomplete_provider_subtitle":"Пошукова система для автоматичного заповнення випадаючих результатів","voice_search":"Голосовий пошук","dropdown":"Випадаючий список пошуку","focus":"Фокус на відкритій вкладці","chrome_policy_warning":"У версії 7.2 можливість вибору пошукової системи в Mue була видалена відповідно до нових вимог Chrome Web Store. Тепер Mue використовує пошукову систему, встановлену за замовчуванням у вашому браузері. Ви можете змінити її в налаштуваннях Chrome."},"weather":{"title":"Погода","location":"Місцезнаходження","auto":"Auto","widget_type":"Тип віджету","temp_format":{"title":"Формат температури","celsius":"Цельсії","fahrenheit":"Фаренгейт","kelvin":"Кельвін"},"extra_info":{"title":"Extra information","show_location":"Показати розташування","show_description":"Показати опис","weather_description":"Опис погоди","cloudiness":"Хмарність","humidity":"Вологість","visibility":"Видимість","wind_speed":"Швидкість вітру","wind_direction":"Напрямок вітру","min_temp":"Мінімальна температура","max_temp":"Максимальна температура","atmospheric_pressure":"Атмосферний тиск"},"options":{"basic":"Базовий","standard":"Стандартний","expanded":"Розширений","custom":"Свій"},"custom_settings":"Користувацькі налаштування"},"quicklinks":{"title":"Швидкі посилання","additional":"Додаткові налаштування відображення швидких посилань і функцій","open_new":"Відкрити в новій вкладці","tooltip":"Спливаюча підказка","text_only":"Показувати тільки текст","add_link":"Додати посилання","no_quicklinks":"Немає швидких посилань","edit":"Редагувати","style":"Стиль","options":{"icon":"Іконка","text_only":"Тільки текст","metro":"Метро"},"styling":"Стиль швидких посилань","styling_description":"Налаштувати зовнішній вигляд швидких посилань"},"message":{"title":"Message","add":"Add message","messages":"Повідомлення","text":"Текст","no_messages":"Немає повідомлень","add_some":"Йдемо далі і додайте ще.","content":"Зміст повідомлення"},"appearance":{"title":"Оформлення","style":{"title":"Стиль віджетів","description":"Обирайте між двома стилями: застарілим (доступний для користувачів попередніх версій 7.0) та наш стильний і сучасний стиль.","legacy":"Застаріле","new":"Новий"},"theme":{"title":"Theme","description":"Змінити тему віджетів і модальних вікон Mue","auto":"Автоматично","light":"Світла","dark":"Темна"},"navbar":{"title":"Навігаційна панель","widgets":"Віджети навігаційної панелі","notes":"Примітки","refresh":"Оновити","refresh_subtitle":"Виберіть, що буде оновлюватися, коли ви натискаєте кнопку \\"Оновити\\"","hover":"Відображення тільки при наведенні","additional":"Налаштуйте стиль навігаційної панелі та кнопки, які ви хочете відображати","refresh_options":{"none":"None","page":"Сторінка"},"apps_subtitle":"Створіть ярлик для інших сайтів, які ви часто використовуєте."},"font":{"title":"Шрифт","description":"Змінити шрифт, який використовується у Mue","custom":"Користувацький шрифт","google":"Імпорт з Google Fonts","weight":{"title":"Товщина шрифту","thin":"Тонкий","extra_light":"Дуже тонкий","light":"Світло","normal":"Нормальний","medium":"Medium","semi_bold":"Напівжирний","bold":"Жирний","extra_bold":"Дуже жирний"},"style":{"title":"Стиль шрифту","normal":"Normal","italic":"Italic","oblique":"Курсив"}},"accessibility":{"title":"Доступність","description":"Налаштування спеціальних можливостей для Mue","animations":"Анімації","text_shadow":{"title":"Тінь тексту віджета","new":"Новий","old":"Старий","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Тривалість підказки","milliseconds":"мілісекунди"}},"order":{"title":"Порядок віджетів"},"advanced":{"title":"Додатково","offline_mode":"Офлайн режим","offline_subtitle":"Якщо ввімкнено, всі запити до онлайн-сервісів будуть вимкнені.","data":"Data","data_description":"Виберіть, чи потрібно експортувати налаштування Mue на комп'ютер, імпортувати існуючий файл налаштувань або скинути налаштування до значень за замовчуванням","data_subtitle":"Керуйте своїми даними на Mue.","reset_modal":{"title":"ПОПЕРЕДЖЕННЯ","question":"Ви хочете скинути Mue?","information":"Це призведе до видалення всіх даних. Якщо ви хочете зберегти свої дані та налаштування, будь ласка, спочатку експортуйте їх.","cancel":"Скасувати"},"customisation":"Кастомізація","custom_css":"Користувацький CSS","custom_css_subtitle":"Налаштуйте стиль Mue під себе за допомогою каскадних таблиць стилів (CSS).","custom_js":"Користувацький JS","tab_name":"Назва вкладки","tab_name_subtitle":"Змініть назву вкладки, яка з'являється у вашому браузері","timezone":{"title":"Часовий пояс","subtitle":"Виберіть часовий пояс зі списку замість автоматично встановленого на вашому комп'ютері","automatic":"Автоматичний"},"experimental_warning":"Зверніть увагу, що команда Mue не зможе надати підтримку, якщо у вас увімкнено експериментальний режим. Будь ласка, спочатку вимкніть його і перевірте, чи проблема не зникне, перш ніж звертатися до служби підтримки.","preview_data_disabled":{"title":"Налаштування даних вимкнено","description":"Налаштування даних вимкнено в режимі попереднього перегляду. Вийдіть із режиму попереднього перегляду, щоб скористатися цією функцією."}},"stats":{"title":"Статистика","sections":{"tabs_opened":"Відкриті вкладки","backgrounds_favourited":"Улюблені фони","backgrounds_downloaded":"Завантажені фони","quotes_favourited":"Улюблені цитати","quicklinks_added":"Додано швидкі посилання","settings_changed":"Змінено налаштування","addons_installed":"Встановлені доповнення"},"usage":"Статистика використання","achievements":"Досягнення","achievement_unlocked":"Досягнення розблоковано:{name}","unlocked":"{count} Розблоковано","locked":"Закрито","clear_modal":{"question":"Ви хочете очистити свою статистику?","information":"Це очистить усі досягнення та статистику використання."}},"experimental":{"title":"Експериментальний","warning":"Ці налаштування не були повністю протестовані/реалізовані і можуть працювати некоректно!","developer":"Developer"},"language":{"title":"Мова","quote":"Мова цитат","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Журнал змін","by":"Автор {author}"},"about":{"title":"О нас","version":{"title":"Версія","checking_update":"Перевірка наявності оновлень","update_available":"Доступне оновлення","no_update":"Оновлення не доступне","offline_mode":"Не вдається перевірити наявність оновлень в автономному режимі","error":{"title":"Не вдалося отримати інформацію про оновлення","description":"Виникла помилка"}},"contact_us":"Зв'яжіться з нами","support_mue":"Підтримайте Mue","support_subtitle":"Оскільки Mue є повністю безкоштовним, ми покладаємося на пожертви, щоб покрити рахунки за сервер і фінансувати розробку","support_donate":"Пожертвувати","form_button":"Форма","resources_used":{"title":"Використані ресурси","bg_images":"Офлайн фонові зображення"},"contributors":"Учасники","supporters":"Підтримка","no_supporters":"Наразі підтримки Муе немає","photographers":"Фотографи","curators":"Творці доповнень"}},"buttons":{"reset":"Скинути","import":"Імпорт","export":"Експорт","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"від {author}","all":"Усе","learn_more":"Дізнатися більше","photo_packs":"Набори фото","quote_packs":"Набори цитат","preset_settings":"Пресети налаштувань","no_items":"У цій категорії немає елементів","collection":"Колекція","explore_collection":"Дослідити колекцію","add_all":"Додати все до Муе","collections":"Колекції","cant_find":"Не можете знайти те, що шукаєте?","knowledgebase_one":"Завітайте на сторінку","knowledgebase_two":"база знань","knowledgebase_three":"щоб створити свій власний.","installing":"Встановлення","product":{"overview":"Огляд","information":"Інформація","last_updated":"Останнє оновлення","description":"Опис","details":"Деталі","more_from_curator":"Більше схоже на це від {name}","show_more":"Показати більше","show_less":"Показати менше","show_all":"Показати всі","showing":"Показати","no_images":"Ні. Зображення","no_quotes":"Ні. Цитати","version":"Версія","created_by":"Створено","updated_at":"Оновлено на","part_of":"Частина","explore":"Дослідити","buttons":{"addtomue":"Додати до","remove":"Видалити","update_addon":"Оновлення доповнення","back":"Назад","report":"Звіт","not_available_preview":"Недоступно в режимі попереднього перегляду"},"not_in_language":"Це доповнення недоступне вашою мовою","third_party_api":"Це доповнення використовує сторонній API","sideload_warning":"Це доповнення було завантажено збоку.","setting":"Налаштування'","value":"Значення"},"offline":{"title":"Схоже, ти не в мережі","description":"Будь ласка, підключіться до Інтернету"}},"addons":{"added":"Додано","check_updates":"Перевірте наявність оновлень","no_updates":"Оновлення не доступні","updates_available":"Доступні оновлення {amount}","empty":{"title":"Порожньо","description":"Аддони не встановлені"},"sideload":{"title":"Додаткове завантаження","description":"Встановіть аддон Mue, якого немає на маркетплейсі, зі свого комп'ютера","failed":"Не вдалося підвантажити аддон","errors":{"no_name":"Ім'я не вказано","no_author":"Автор не вказаний","no_type":"Тип не вказано","invalid_photos":"Об'єкт з недійсними фотографіями","invalid_quotes":"Неправильний об'єкт лапок"}},"sort":{"title":"Сортування","newest":"Встановлені (найновіші)","a_z":"За алфавітом (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Створити","moved_title":"Створення доповнення переїхало!","moved_description":"Після оновлення 7.1 створення аддонів було перенесено у веб-інтерфейс","moved_button":"Незабаром...."}}},"update":{"title":"Оновлення","offline":{"title":"Офлайн","description":"Неможливо отримати журнали оновлень в автономному режимі"},"error":{"title":"Помилка","description":"Не вдалося підключитися до сервера"}},"welcome":{"tip":"Коротка порада","sections":{"intro":{"title":"Ласкаво просимо до Mue Tab","description":"Дякуємо, що встановили Mue, сподіваємося, вам сподобається наше розширення.","notices":{"discord_title":"Приєднуйтесь до нашого Discord","discord_description":"Поспілкуйтеся зі спільнотою та розробниками Mue","discord_join":"Приєднатися","github_title":"Зробіть свій внесок на GitHub","github_description":"Повідомляйте про помилки, додавайте функції або зробіть пожертву","github_open":"Відкрито"}},"language":{"title":"Виберіть свою мову","description":"Mue може відображатися мовами, переліченими нижче. Ви також можете додавати нові переклади на нашій сторінці"},"theme":{"title":"Виберіть тему","description":"Mue доступний як у світлій, так і у темній темах, або може бути автоматично встановлений залежно від теми вашої системи.","tip":"За допомогою налаштувань Авто буде використано тему, встановлену на вашому комп'ютері. Цей параметр впливає на модальності і деякі віджети, що відображаються на екрані, такі як погода і нотатки."},"style":{"title":"Виберіть стиль","description":"Наразі Mue пропонує вибір між старим дизайном та нещодавно випущеним сучасним дизайном.","legacy":"Спадщина","modern":"Сучасний"},"settings":{"title":"Налаштування імпорту","description":"Встановлюєте Mue на новий пристрій? Не соромтеся імпортувати свої старі налаштування!","tip":"Ви можете експортувати свої старі налаштування, перейшовши на вкладку \\"Додатково\\" у вашому старому налаштуванні Mue. Потім вам потрібно натиснути кнопку експорту, яка завантажить JSON-файл. Ви можете завантажити цей файл сюди, щоб перенести ваші налаштування та уподобання з попередньої інсталяції Mue."},"privacy":{"title":"Параметри конфіденційності","description":"Увімкніть налаштування для додаткового захисту вашої конфіденційності за допомогою Mue.","offline_mode_description":"Увімкнення офлайн-режиму вимкне всі запити до будь-яких сервісів. Це призведе до вимкнення онлайн-фону, онлайн-котирувань, біржі, погоди, швидких посилань, журналу змін та деякої інформації про вкладки.","links":{"title":"Посилання","privacy_policy":"Політика конфіденційності","source_code":"Вихідний код"}},"final":{"title":"Останній крок","description":"Ваш досвід роботи з Mue Tab ось-ось почнеться.","changes":"Зміни","changes_description":"Щоб змінити налаштування пізніше, натисніть на іконку налаштувань у верхньому правому куті вкладки.","imported":"Імпортовані налаштування {amount}"}},"buttons":{"next":"Далі","preview":"Попередній перегляд","previous":"Попередні","close":"Закрити","finish":"Фініш"},"preview":{"description":"Наразі ви перебуваєте в режимі попереднього перегляду. Після закриття цієї вкладки налаштування буде скинуто.","continue":"Продовжити налаштування"}},"share":{"copy_link":"Скопіювати посилання","email":"Електронна пошта"}}`),IM={quote:"Скопійовані квоти",notes:"Нотатки скопійовано",reset:"Скидання успішно виконано",installed:"Успішно встановлено",uninstalled:"Успішно видалено",updated:"Успішно оновлено",error:"Щось пішло не так",imported:"Успішно імпортовано",no_storage:"Недостатньо місця для зберігання",link_copied:"Посилання скопійовано",stats_reset:"Статистику скинуто"},Sb={tabname:RM,widgets:BM,modals:LM,toasts:IM},UM="Tab mới",PM={greeting:{morning:"Chào buổi sáng",afternoon:"Chào buổi chiều",evening:"Chào buổi tối",christmas:"Merry Christmas",newyear:"Happy New Year",halloween:"Happy Halloween",birthday:"Happy Birthday"},background:{credit:"Photo by",unsplash:"on Unsplash",information:"Information",download:"Download",downloads:"Downloads",views:"Views",likes:"Likes",location:"Location",camera:"Camera",resolution:"Resolution",source:"Source",category:"Category",exclude:"Don't show again",exclude_confirm:`Are you sure you don't want to see this image again?
Note: if you don't like "{category}" images, you can deselect the category in the background source settings.`,confirm:"Confirm"},search:"Search",quicklinks:{new:"New Link",edit:"Edit Link",name:"Name",url:"URL",icon:"Icon (optional)",add:"Add",name_error:"Must provide name",url_error:"Must provide URL"},date:{week:"Week"},weather:{not_found:"Not Found",meters:"{amount} metres",extra_information:"Extra Information",feels_like:"Feels like {amount}"},quote:{link_tooltip:"Open on Wikipedia",share:"Share",copy:"Copy",favourite:"Favourite",unfavourite:"Unfavourite"},navbar:{tooltips:{refresh:"Refresh"},notes:{title:"Notes",placeholder:"Type here"},todo:{title:"Todo",pin:"Pin",add:"Add",no_todos:"No Todos"},apps:{title:"Apps",no_apps:"No app links found"}}},HM=JSON.parse(`{"main":{"title":"Options","loading":"Loading...","file_upload_error":"File is over 2MB","navbar":{"settings":"Settings","library":"Library","discover":"Discover"},"error_boundary":{"title":"Error","message":"Failed to load this component of Mue","report_error":"Send Error Report","sent":"Sent!","refresh":"Refresh"},"settings":{"enabled":"Enabled","open_knowledgebase":"Open Knowledgebase","additional_settings":"Additional Settings","reminder":{"title":"NOTICE","message":"In order for all of the changes to take place, the page must be refreshed."},"sections":{"header":{"more_info":"More info","report_issue":"Report Issue","enabled":"Choose whether or not to show this widget","size":"Slider to control how large the widget is"},"time":{"title":"Time","format":"Format","type":"Type","type_subtitle":"Choose whether to display the time in digital format, analogue format, or a percentage completion of the day","digital":{"title":"Digital","subtitle":"Change how the digital clock looks","seconds":"Seconds","twentyfourhour":"24 Hour","twelvehour":"12 hour","zero":"Zero-padded"},"analogue":{"title":"Analogue","subtitle":"Change how the analogue clock looks","second_hand":"Seconds hand","minute_hand":"Minutes hand","hour_hand":"Hours hand","hour_marks":"Hour marks","minute_marks":"Minute marks","round_clock":"Rounded background"},"percentage_complete":"Percentage complete","vertical_clock":{"title":"Vertical Clock","change_hour_colour":"Change hour text colour","change_minute_colour":"Change minute text colour","change_second_colour":"Change second text colour"}},"date":{"title":"Date","week_number":"Week number","day_of_week":"Day of week","datenth":"Date nth","type":{"short":"Short","long":"Long","subtitle":"Whether to display the date in long form or short form"},"type_settings":"Display settings and format for the selected date type","short_date":"Short date","short_format":"Short format","long_format":"Long format","short_separator":{"title":"Short separator","dots":"Dots","dash":"Dash","gaps":"Gaps","slashes":"Slashes"}},"quote":{"title":"Quote","additional":"Other settings to customise the style of the quote widget","author_link":"Author link","author_details":"Author details","custom":"Custom quote","custom_subtitle":"Set your own custom quotes","no_quotes":"No quotes","author":"Author","custom_buttons":"Buttons","custom_author":"Custom author","author_img":"Show author image","add":"Add quote","source_subtitle":"Choose where to get quotes from","buttons":{"title":"Buttons","subtitle":"Choose which buttons to show on the quote","copy":"Copy","tweet":"Tweet","favourite":"Favourite"}},"greeting":{"title":"Greeting","events":{"0":"E","1":"v","2":"e","3":"n","4":"t","5":"s","title":"Events"},"events_description":"Control events on Mue such as birthdays.","enable_events":"Show messages on special days","default":"Default greeting message","name":"Name for greeting","birthday":"Birthday","birthday_subtitle":"Show a Happy Birthday message when it is your birthday","birthday_age":"Birthday age","birthday_date":"Birthday date","additional":"Settings for the greeting display","custom":"Custom events","event_name":"Event Name","day":"Day","month":"Month","no_events":"No Events","no_events_description":"Add Some Events","add_event":"Add Event"},"background":{"title":"Background","transition":"Fade-in transition","photo_information":"Show photo information","show_map":"Show location map on photo information if available","categories":"Categories","buttons":{"title":"Buttons","view":"Maximise","favourite":"Favourite","download":"Download"},"effects":{"title":"Effects","subtitle":"Add effects to the background images","blur":"Adjust blur","brightness":"Adjust brightness","filters":{"title":"Background filter","amount":"Filter amount","grayscale":"Grayscale","sepia":"Sepia","invert":"Invert","saturate":"Saturate","contrast":"Contrast"}},"type":{"title":"Type","api":"API","custom_image":"Custom image","custom_colour":"Custom colour/gradient","random_colour":"Random colour","random_gradient":"Random gradient"},"unsplash":{"title":"Unsplash Collection(s)","subtitle":"Select the collection(s) you want to use for your background","id":"Collection ID(s)","id_subtitle":"Enter a comma separated list of Unsplash IDs"},"source":{"title":"Source","subtitle":"Select where to get background images from","api":"Background API","custom_background":"Custom background","custom_colour":"Custom background colour","upload":"Upload","add_colour":"Add colour","add_background":"Add background","drop_to_upload":"Drop to upload","formats":"Available formats: {list}","select":"Or Select","add_url":"Add URL","disabled":"Disabled","loop_video":"Loop video","mute_video":"Mute video","quality":{"title":"Quality","original":"Original","high":"High Quality","normal":"Normal Quality","datasaver":"Data Saver"},"custom_title":"Custom Images","custom_description":"Select images from your local computer","remove":"Remove Image","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Display","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"Search","additional":"Additional options for search widget display and functionality","search_engine":"Search Engine","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"Custom Search URL","autocomplete":"Autocomplete","autocomplete_provider":"Autocomplete Provider","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"Voice search","dropdown":"Search Dropdown","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"Weather","location":"Location","auto":"Auto","widget_type":"Widget Type","temp_format":{"title":"Temperature format","celsius":"Celsius","fahrenheit":"Fahrenheit","kelvin":"Kelvin"},"extra_info":{"title":"Extra information","show_location":"Show location","show_description":"Show description","weather_description":"Weather description","cloudiness":"Cloudiness","humidity":"Humidity","visibility":"Visibility","wind_speed":"Wind speed","wind_direction":"Wind direction","min_temp":"Minimum temperature","max_temp":"Maximum temperature","atmospheric_pressure":"Atmospheric pressure"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"Quick Links","additional":"Additional settings for quick links display and functions","open_new":"Open in new tab","tooltip":"Tooltip","text_only":"Show text only","add_link":"Add Link","no_quicklinks":"No quick links","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"Message","add":"Add message","messages":"Messages","text":"Text","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"Appearance","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"Theme","description":"Change the theme of the Mue widgets and modals","auto":"Auto","light":"Light","dark":"Dark"},"navbar":{"title":"Navbar","widgets":"Navbar Widgets","notes":"Notes","refresh":"Refresh","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"None","page":"Page"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"Font","description":"Change the font used in Mue","custom":"Custom font","google":"Import from Google Fonts","weight":{"title":"Font weight","thin":"Thin","extra_light":"Extra Light","light":"Light","normal":"Normal","medium":"Medium","semi_bold":"Semi-Bold","bold":"Bold","extra_bold":"Extra-Bold"},"style":{"title":"Font style","normal":"Normal","italic":"Italic","oblique":"Oblique"}},"accessibility":{"title":"Accessibility","description":"Make Mue comfortable and accessible","animations":"Animations","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Toast Duration","milliseconds":"milliseconds"}},"order":{"title":"Widget Order"},"advanced":{"title":"Advanced","offline_mode":"Offline mode","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"Data","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Manage your data on Mue.","reset_modal":{"title":"WARNING","question":"Do you want to reset Mue?","information":"This will delete all data. If you wish to keep your data and preferences, please export them first.","cancel":"Cancel"},"customisation":"Customisation","custom_css":"Custom CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"Custom JS","tab_name":"Tab name","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"Time Zone","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"Automatic"},"experimental_warning":"Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"Stats","sections":{"tabs_opened":"Tabs opened","backgrounds_favourited":"Backgrounds favourited","backgrounds_downloaded":"Backgrounds downloaded","quotes_favourited":"Quotes favourited","quicklinks_added":"Quicklinks added","settings_changed":"Settings changed","addons_installed":"Add-ons installed"},"usage":"Usage Stats","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"Experimental","warning":"These settings have not been fully tested/implemented and may not work correctly!","developer":"Developer"},"language":{"title":"Language","quote":"Quote language","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Change Log","by":"By {author}"},"about":{"title":"About","version":{"title":"Version","checking_update":"Checking for update","update_available":"Update available","no_update":"No update available","offline_mode":"Cannot check for update in offline mode","error":{"title":"Failed to get update information","description":"An error occured"}},"contact_us":"Contact Us","support_mue":"Support Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"Resources used","bg_images":"Offline background images"},"contributors":"Contributors","supporters":"Supporters","no_supporters":"There are currently no Mue supporters","photographers":"Photographers","curators":"Add-on creators"}},"buttons":{"reset":"Reset","import":"Import","export":"Export","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"Photo Packs","quote_packs":"Quote Packs","preset_settings":"Preset Settings","no_items":"No items in this category","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"Overview","information":"Information","last_updated":"Last Updated","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"Version","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"Add To","remove":"Remove","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"Looks like you're offline","description":"Please connect to the internet"}},"addons":{"added":"Added","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"Empty","description":"No addons are installed"},"sideload":{"title":"Sideload","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"Sort","newest":"Installed (Newest)","a_z":"Alphabetical (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Create","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Coming Soon...."}}},"update":{"title":"Update","offline":{"title":"Offline","description":"Cannot get update logs while in offline mode"},"error":{"title":"Error","description":"Could not connect to the server"}},"welcome":{"tip":"Quick Tip","sections":{"intro":{"title":"Welcome to Mue Tab","description":"Thank you for installing Mue, we hope you enjoy your time with our extension.","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"Choose your language","description":"Mue can be displayed the languages listed below. You can also add new translations on our"},"theme":{"title":"Select a theme","description":"Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.","tip":"Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"Import Settings","description":"Installing Mue on a new device? Feel free to import your old settings!","tip":"You can export your old settings by navigating to the Advanced tab in your old Mue setup. Then you need to click the export button which will download the JSON file. You can upload this file here to carry across your settings and preferences from your previous Mue installation."},"privacy":{"title":"Privacy Options","description":"Enable settings to further protect your privacy with Mue.","offline_mode_description":"Enabling offline mode will disable all requests to any service. This will result in online backgrounds, online quotes, marketplace, weather, quick links, change log and some about tab information to be disabled.","links":{"title":"Links","privacy_policy":"Privacy Policy","source_code":"Source Code"}},"final":{"title":"Final step","description":"Your Mue Tab experience is about to begin.","changes":"Changes","changes_description":"To change settings later click on the settings icon in the top right corner of your tab.","imported":"Imported {amount} settings"}},"buttons":{"next":"Next","preview":"Preview","previous":"Previous","close":"Close","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),FM={quote:"Quote copied",notes:"Notes copied",reset:"Reset successfully",installed:"Successfully installed",uninstalled:"Successfully removed",updated:"Successfully updated",error:"Something went wrong",imported:"Successfully imported",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Mb={tabname:UM,widgets:PM,modals:HM,toasts:FM},VM="新标签页",GM={greeting:{morning:"早上好",afternoon:"下午好",evening:"晚上好",christmas:"圣诞节快乐",newyear:"新年快乐",halloween:"万圣节快乐",birthday:"生日快乐"},background:{credit:"图像作者:",unsplash:"@ Unsplash",information:"信息",download:"下载",downloads:"下载",views:"风景",likes:"喜爱",location:"地点",camera:"摄影",resolution:"分辨率",source:"来源",category:"分类",exclude:"不再显示",exclude_confirm:`您确定不希望看到这张照片吗?
值得注意的是,如果你不喜欢 "{category}" 图片, 你可以在背景的来源设置中取消选择。`,confirm:"确认"},search:"搜索",quicklinks:{new:"新快捷方式",edit:"编辑链接",name:"名称",url:"链接",icon:"图标 (可选)",add:"添加",name_error:"请输入名称",url_error:"请输入链接"},date:{week:"周"},weather:{not_found:"未找到",meters:"{amount}米",extra_information:"更多信息",feels_like:"体感温度 {amount}"},quote:{link_tooltip:"在维基百科中打开",share:"分享",copy:"复制",favourite:"收藏",unfavourite:"不感兴趣"},navbar:{tooltips:{refresh:"刷新"},notes:{title:"便签",placeholder:"请键入内容"},todo:{title:"计划任务",pin:"固定",add:"添加",no_todos:"未找到任务"},apps:{title:"应用",no_apps:"未找到应用链接"}}},KM=JSON.parse(`{"main":{"title":"选项","loading":"载入中...","file_upload_error":"大小超过了 2MB","navbar":{"settings":"设置","library":"我的插件","discover":"插件市场"},"error_boundary":{"title":"错误","message":"无法载入该Mue组件","report_error":"发送错误报告","sent":"已发送!","refresh":"刷新"},"settings":{"enabled":"已启用","open_knowledgebase":"打开知识库","additional_settings":"更多设置","reminder":{"title":"注意","message":"刷新页面后设置才会生效"},"sections":{"header":{"more_info":"更多信息","report_issue":"报告 Issue","enabled":"选择是否显示此小部件","size":"滑动以控制该小部件的大小"},"time":{"title":"时间","format":"格式","type":"类型","type_subtitle":"选择时间显示类型(数字、模拟或百分比)","digital":{"title":"数字时钟","subtitle":"选择数字时钟的样式","seconds":"显示秒","twentyfourhour":"使用 24 小时制","twelvehour":"使用 12 小时制","zero":"加零补足两位数字"},"analogue":{"title":"模拟时钟","subtitle":"选择模拟时钟的样式","second_hand":"秒针","minute_hand":"分针","hour_hand":"时针","hour_marks":"时钟刻度","minute_marks":"分钟刻度","round_clock":"Rounded background"},"percentage_complete":"今天过去了%几","vertical_clock":{"title":"垂直时钟","change_hour_colour":"选择小时数颜色","change_minute_colour":"选择分钟数颜色","change_second_colour":"选择秒钟数颜色"}},"date":{"title":"显示日期","week_number":"第n周","day_of_week":"星期n","datenth":"添加th后缀","type":{"short":"短格式","long":"长格式","subtitle":"选择日期显示格式(短格式或长格式)"},"type_settings":"所选日期类型的显示设置和格式","short_date":"简写日期","short_format":"简写格式","long_format":"长格式","short_separator":{"title":"简写分隔","dots":"点","dash":"横杠","gaps":"空格","slashes":"斜杠"}},"quote":{"title":"名言警句","additional":"名言警句小部件的其他设置","author_link":"出处链接","author_details":"作者详情","custom":"自定义名言","custom_subtitle":"自定义名言","no_quotes":"没有名言","author":"作者","custom_buttons":"按钮","custom_author":"自定义出处","author_img":"显示作者图片","add":"继续添加名言","source_subtitle":"选择名言来源","buttons":{"title":"下方按钮","subtitle":"选择名言下显示的按钮","copy":"显示复制按钮","tweet":"显示发推按钮","favourite":"显示收藏按钮"}},"greeting":{"title":"问候","events":"节日问候","events_description":"设定 Mue 上的时间,如生日","enable_events":"在特定的事件显示节日问候","default":"常规问候","name":"您在问候中的名字","birthday":"生日","birthday_subtitle":"在您的生日时祝您生日快了","birthday_age":"显示年龄","birthday_date":"生日日期","additional":"设置显示的问候","custom":"自定义事件","event_name":"时间名","day":"日","month":"月","no_events":"没有事件","no_events_description":"试着添加一些事件","add_event":"添加事件"},"background":{"title":"背景","transition":"过渡动画","photo_information":"显示图片信息","show_map":"在图片信息内显示位置信息 (如果可用)","categories":"分类","buttons":{"title":"显示顶部按钮","view":"仅显示背景","favourite":"收藏","download":"下载"},"effects":{"title":"背景特效","subtitle":"为背景图片添加特效","blur":"模糊程度","brightness":"更改亮度","filters":{"title":"背景滤镜","amount":"数值","grayscale":"灰度","sepia":"相片","invert":"反色","saturate":"饱和度","contrast":"对比度"}},"type":{"title":"来源","api":"网络图像库API","custom_image":"自定义图像/视频","custom_colour":"自定义纯色背景","random_colour":"随机纯色背景","random_gradient":"随机渐变色背景"},"unsplash":{"title":"Unsplash 分类(s)","subtitle":"选择背景的分类","id":"分类 ID","id_subtitle":"输入 Unsplash 分类 ID,以英文逗号分隔"},"source":{"title":"来源","subtitle":"选择背景图片来与那","api":"背景来源","custom_background":"自定义背景 (支持图片/视频)","custom_colour":"自定义背景颜色","upload":"选择","add_colour":"添加颜色","add_background":"继续添加背景","drop_to_upload":"拖拽到此处上传","formats":"支持的格式: {list}","select":"或者选择文件","add_url":"添加 URL","disabled":"已禁用","loop_video":"循环播放","mute_video":"静音","quality":{"title":"画质","original":"原画","high":"高画质","normal":"普通画质","datasaver":"省流模式"},"custom_title":"自定义图片","custom_description":"从你的计算机本地选择图片","remove":"删除图片","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"显示","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"搜索栏","additional":"Additional options for search widget display and functionality","search_engine":"搜索引擎","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"自定义搜索链接","autocomplete":"搜索联想","autocomplete_provider":"联想功能提供引擎","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"语音搜索","dropdown":"搜索框左侧显示搜索引擎选择框","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"天气","location":"位置","auto":"自动定位","widget_type":"Widget Type","temp_format":{"title":"温度单位","celsius":"摄氏度","fahrenheit":"华氏度","kelvin":"开尔文"},"extra_info":{"title":"更多信息","show_location":"显示位置","show_description":"显示描述","weather_description":"Weather description","cloudiness":"云量","humidity":"湿度","visibility":"能见度","wind_speed":"风速","wind_direction":"风向","min_temp":"最低温度","max_temp":"最高温度","atmospheric_pressure":"大气压"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"快捷方式","additional":"Additional settings for quick links display and functions","open_new":"在新标签页打开","tooltip":"光标停留时下方显示标题","text_only":"仅显示标题","add_link":"Add Link","no_quicklinks":"No quicklinks","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Quick Links Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"消息","add":"继续添加消息","messages":"Messages","text":"文本","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"外观","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"主题","description":"Change the theme of the Mue widgets and modals","auto":"自动选择","light":"日间主题","dark":"夜间主题"},"navbar":{"title":"右上方功能键","widgets":"Navbar Widgets","notes":"便签","refresh":"刷新键","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"不显示","page":"页面"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"字体","description":"Change the font used in Mue","custom":"自定义字体","google":"从 Google Fonts 导入","weight":{"title":"字体粗细","thin":"极细","extra_light":"细字","light":"较细","normal":"一般","medium":"中等","semi_bold":"较粗","bold":"粗体","extra_bold":"加粗"},"style":{"title":"字体样式","normal":"常规","italic":"意大利斜体","oblique":"伪斜体"}},"accessibility":{"title":"无障碍设定","description":"Accessibility settings for Mue","animations":"动画效果","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"小部件缩放","toast_duration":"窗口弹出时间长度","milliseconds":"毫秒"}},"order":{"title":"小部件顺序"},"advanced":{"title":"高级","offline_mode":"启用离线模式","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"数据和设置","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","reset_modal":{"title":"警告","question":"您想要重置 Mue 的所有设置吗?","information":"本操作将删除所有数据。若您想保留数据及设置,请先将其导出。","cancel":"取消"},"customisation":"自定义","custom_css":"自定义 CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"自定义 JS","tab_name":"新标签页名称","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"时区","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"自动"},"experimental_warning":"请注意 Mue 团队无法提供实验性功能的支持。若您遇到问题,请先关闭实验性功能,再寻求帮助。","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"统计","sections":{"tabs_opened":"页面打开次数","backgrounds_favourited":"收藏的背景","backgrounds_downloaded":"下载过背景","quotes_favourited":"收藏的名言警句","quicklinks_added":"添加的快捷方式","settings_changed":"更改的设置","addons_installed":"添加的插件"},"usage":"启用统计","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"实验性功能","warning":"以下设置仍未完成编写或测试,可能无法正常运作!","developer":"开发者"},"language":{"title":"语言","quote":"名言语言","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"更新日志","by":"By {author}"},"about":{"title":"关于","version":{"title":"版本","checking_update":"正在检查更新……","update_available":"可下载更新","no_update":"无可下载更新","offline_mode":"离线模式下不能检查更新","error":{"title":"获取更新信息失败","description":"错误"}},"contact_us":"联系我们","support_mue":"支持 Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"使用资源","bg_images":"离线背景"},"contributors":"贡献者","supporters":"支持者","no_supporters":"There are currently no Mue supporters","photographers":"背景摄影者","curators":"Add-on creators"}},"buttons":{"reset":"重置","import":"导入","export":"导出","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"图片包","quote_packs":"名言包","preset_settings":"预设设定","no_items":"本类别为空","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"总览","information":"信息","last_updated":"更新日期","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"版本","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"添加至 Mue","remove":"卸载","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"您目前似乎离线","description":"请连接到互联网。"}},"addons":{"added":"已添加","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"这里空空如也","description":"请访问插件市场来添加插件。"},"sideload":{"title":"上传插件","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"排序","newest":"安装过 (从新到旧)","a_z":"首字母 (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"创建","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Get Started"}}},"update":{"title":"更新日志","offline":{"title":"离线模式已启用","description":"不能从官网获取更新日志"},"error":{"title":"错误","description":"无法连接到服务器"}},"welcome":{"tip":"快速提示","sections":{"intro":{"title":"欢迎使用 Mue 新标签插件","description":"感谢您的安装。祝您使用愉快。","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"更改语言","description":"Mue 支持以下语言。你也可以在这里添加新的翻译"},"theme":{"title":"选择一个主题","description":"Mue 支持日间和夜间主题,或者设置为自动选择,主题将跟随系统主题自动切换","tip":"使用自动选择将使用您的电脑的主题。这个设置也会影响设置界面和一些小组件的主题,比如天气和便签。"},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"导入设置","description":"在新设备上安装 Mue? 可以直接导入之前的设置!","tip":"您可以通过在之前设备上点击右上角的设置,打开高级选项卡,然后点击导出按钮,浏览器将自动下载一个 json 文件。你可以在上面点击导入按钮导入该 json 文件来导入你之前的设置和偏好。"},"privacy":{"title":"隐私设置","description":"进行一些设置来和 Mue 更好的保护您的隐私","offline_mode_description":"启用离线模式将会关闭所有服务的网络访问。该选项会关闭所有在线背景图片、在线名言警句、插件市场、天气、快捷方式、更新历史和一些关于信息的网络访问。","links":{"title":"链接","privacy_policy":"隐私政策","source_code":"源代码"}},"final":{"title":"最后一步","description":"马上即可开始使用 Mue!","changes":"更改的设置","changes_description":"如果需要进一步设置,点击右上角的设置图标即可弹出完整设置对话框。如果显示不正常,刷新即可。","imported":"导入{amount}设置"}},"buttons":{"next":"下一步","preview":"Preview","previous":"上一步","close":"关闭","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),YM={quote:"名言已复制",notes:"便签已复制",reset:"重置成功",installed:"安装成功",uninstalled:"卸载成功",updated:"Successfully updated",error:"发生错误",imported:"导入成功",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Ab={tabname:VM,widgets:GM,modals:KM,toasts:YM},WM="新分頁",QM={greeting:{morning:"早安",afternoon:"午安",evening:"晚安",christmas:"聖誕快樂",newyear:"新年快樂",halloween:"萬聖節快樂",birthday:"生日快樂"},background:{credit:"影像來自",unsplash:"在 Unsplash 上",information:"資訊",download:"下載",downloads:"下載",views:"檢視",likes:"喜歡",location:"地點",camera:"相機",resolution:"解析度",source:"來源",category:"類別",exclude:"不要再顯示",exclude_confirm:`你確定你不想再次看到此影像嗎?
-注意:如果你不喜歡「{category}」影像,你可以在背景來源設定中取消選擇該類別。`,confirm:"確認"},search:"搜尋",quicklinks:{new:"新增連結",edit:"編輯連結",name:"名稱",url:"網址",icon:"圖示(選擇性)",add:"增加",name_error:"必須提供名稱",url_error:"必須提供網址"},date:{week:"週"},weather:{not_found:"找不到",meters:"{amount} 公尺",extra_information:"額外資訊",feels_like:"感覺像 {amount}"},quote:{link_tooltip:"在維基百科上開啟",share:"分享",copy:"複製",favourite:"收藏",unfavourite:"取消收藏"},navbar:{tooltips:{refresh:"重新整理"},notes:{title:"筆記",placeholder:"在此輸入"},todo:{title:"待辦事項",pin:"釘選",add:"增加",no_todos:"無待辦事項"},apps:{title:"應用程式",no_apps:"找不到應用程式連結"}}},ZM=JSON.parse(`{"main":{"title":"選項","loading":"載入中…","file_upload_error":"檔案超過 2MB","navbar":{"settings":"設定","library":"附加元件","discover":"市場"},"error_boundary":{"title":"錯誤","message":"無法載入 Mue 的此元件","report_error":"傳送錯誤報告","sent":"已傳送!","refresh":"重新整理"},"settings":{"enabled":"已啟用","open_knowledgebase":"開啟知識庫","additional_settings":"附加設定","reminder":{"title":"注意","message":"為了使所有變更生效,必須重新整理頁面。"},"sections":{"header":{"more_info":"更多資訊","report_issue":"報告問題","enabled":"選擇是否顯示此小工具","size":"滑桿控制小部件的大小"},"time":{"title":"時間","format":"格式","type":"類型","type_subtitle":"選擇是否以數位格式、類比格式或當天完成百分比顯示時間","digital":{"title":"數位","subtitle":"變更數位時鐘的外觀","seconds":"秒","twentyfourhour":"24 小時制","twelvehour":"12 小時制","zero":"Zero-padded"},"analogue":{"title":"類比","subtitle":"變更類比時鐘的外觀","second_hand":"秒針","minute_hand":"分針","hour_hand":"時針","hour_marks":"小時刻度","minute_marks":"分鐘刻度","round_clock":"圓形背景"},"percentage_complete":"完成百分比","vertical_clock":{"title":"垂直時鐘","change_hour_colour":"變更小時文字顏色","change_minute_colour":"變更分鐘文字顏色","change_second_colour":"變更秒文字顏色"}},"date":{"title":"日期","week_number":"週數","day_of_week":"星期","datenth":"日期 th","type":{"short":"短","long":"長","subtitle":"Whether to display the date in long form or short form"},"type_settings":"Display settings and format for the selected date type","short_date":"Short date","short_format":"Short format","long_format":"Long format","short_separator":{"title":"Short separator","dots":"Dots","dash":"Dash","gaps":"Gaps","slashes":"Slashes"}},"quote":{"title":"Quote","additional":"Other settings to customise the style of the quote widget","author_link":"Author link","author_details":"作者詳細資訊","custom":"Custom quote","custom_subtitle":"Set your own custom quotes","no_quotes":"No quotes","author":"Author","custom_buttons":"Buttons","custom_author":"Custom author","author_img":"Show author image","add":"Add quote","source_subtitle":"Choose where to get quotes from","buttons":{"title":"Buttons","subtitle":"Choose which buttons to show on the quote","copy":"Copy","tweet":"Tweet","favourite":"Favourite"}},"greeting":{"title":"Greeting","events":{"0":"E","1":"v","2":"e","3":"n","4":"t","5":"s","title":"Events"},"events_description":"Control events on Mue such as birthdays.","enable_events":"Show messages on special days","default":"Default greeting message","name":"Name for greeting","birthday":"Birthday","birthday_subtitle":"Show a Happy Birthday message when it is your birthday","birthday_age":"Birthday age","birthday_date":"Birthday date","additional":"Settings for the greeting display","custom":"Custom events","event_name":"Event Name","day":"Day","month":"Month","no_events":"No Events","no_events_description":"Add Some Events","add_event":"Add Event"},"background":{"title":"Background","transition":"Fade-in transition","photo_information":"Show photo information","show_map":"Show location map on photo information if available","categories":"Categories","buttons":{"title":"Buttons","view":"Maximise","favourite":"Favourite","download":"Download"},"effects":{"title":"Effects","subtitle":"Add effects to the background images","blur":"Adjust blur","brightness":"Adjust brightness","filters":{"title":"Background filter","amount":"Filter amount","grayscale":"Grayscale","sepia":"Sepia","invert":"Invert","saturate":"Saturate","contrast":"Contrast"}},"type":{"title":"Type","api":"API","custom_image":"Custom image","custom_colour":"Custom colour/gradient","random_colour":"Random colour","random_gradient":"Random gradient"},"unsplash":{"title":"Unsplash Collection(s)","subtitle":"Select the collection(s) you want to use for your background","id":"Collection ID(s)","id_subtitle":"Enter a comma separated list of Unsplash IDs"},"source":{"title":"Source","subtitle":"Select where to get background images from","api":"Background API","custom_background":"Custom background","custom_colour":"Custom background colour","upload":"Upload","add_colour":"Add colour","add_background":"Add background","drop_to_upload":"Drop to upload","formats":"Available formats: {list}","select":"Or Select","add_url":"Add URL","disabled":"Disabled","loop_video":"Loop video","mute_video":"Mute video","quality":{"title":"Quality","original":"Original","high":"High Quality","normal":"Normal Quality","datasaver":"Data Saver"},"custom_title":"Custom Images","custom_description":"Select images from your local computer","remove":"Remove Image","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Display","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"Search","additional":"Additional options for search widget display and functionality","search_engine":"Search Engine","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"Custom Search URL","autocomplete":"Autocomplete","autocomplete_provider":"Autocomplete Provider","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"Voice search","dropdown":"Search Dropdown","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"Weather","location":"Location","auto":"Auto","widget_type":"Widget Type","temp_format":{"title":"Temperature format","celsius":"Celsius","fahrenheit":"Fahrenheit","kelvin":"Kelvin"},"extra_info":{"title":"Extra information","show_location":"Show location","show_description":"Show description","weather_description":"Weather description","cloudiness":"Cloudiness","humidity":"Humidity","visibility":"Visibility","wind_speed":"Wind speed","wind_direction":"Wind direction","min_temp":"Minimum temperature","max_temp":"Maximum temperature","atmospheric_pressure":"Atmospheric pressure"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"Quick Links","additional":"Additional settings for quick links display and functions","open_new":"Open in new tab","tooltip":"Tooltip","text_only":"Show text only","add_link":"Add Link","no_quicklinks":"No quick links","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"Message","add":"Add message","messages":"Messages","text":"Text","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"Appearance","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"Theme","description":"Change the theme of the Mue widgets and modals","auto":"Auto","light":"Light","dark":"Dark"},"navbar":{"title":"Navbar","widgets":"Navbar Widgets","notes":"Notes","refresh":"Refresh","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"None","page":"Page"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"Font","description":"Change the font used in Mue","custom":"Custom font","google":"Import from Google Fonts","weight":{"title":"Font weight","thin":"Thin","extra_light":"Extra Light","light":"Light","normal":"Normal","medium":"Medium","semi_bold":"Semi-Bold","bold":"Bold","extra_bold":"Extra-Bold"},"style":{"title":"Font style","normal":"Normal","italic":"Italic","oblique":"Oblique"}},"accessibility":{"title":"Accessibility","description":"Make Mue comfortable and accessible","animations":"Animations","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Toast Duration","milliseconds":"milliseconds"}},"order":{"title":"Widget Order"},"advanced":{"title":"Advanced","offline_mode":"Offline mode","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"Data","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Manage your data on Mue.","reset_modal":{"title":"WARNING","question":"Do you want to reset Mue?","information":"This will delete all data. If you wish to keep your data and preferences, please export them first.","cancel":"Cancel"},"customisation":"Customisation","custom_css":"Custom CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"Custom JS","tab_name":"Tab name","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"Time Zone","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"Automatic"},"experimental_warning":"Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"Stats","sections":{"tabs_opened":"Tabs opened","backgrounds_favourited":"Backgrounds favourited","backgrounds_downloaded":"Backgrounds downloaded","quotes_favourited":"Quotes favourited","quicklinks_added":"Quicklinks added","settings_changed":"Settings changed","addons_installed":"Add-ons installed"},"usage":"Usage Stats","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"Experimental","warning":"These settings have not been fully tested/implemented and may not work correctly!","developer":"Developer"},"language":{"title":"Language","quote":"Quote language","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Change Log","by":"By {author}"},"about":{"title":"About","version":{"title":"Version","checking_update":"Checking for update","update_available":"Update available","no_update":"No update available","offline_mode":"Cannot check for update in offline mode","error":{"title":"Failed to get update information","description":"An error occured"}},"contact_us":"Contact Us","support_mue":"Support Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"Resources used","bg_images":"Offline background images"},"contributors":"Contributors","supporters":"Supporters","no_supporters":"There are currently no Mue supporters","photographers":"Photographers","curators":"Add-on creators"}},"buttons":{"reset":"Reset","import":"Import","export":"Export","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"Photo Packs","quote_packs":"Quote Packs","preset_settings":"Preset Settings","no_items":"No items in this category","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"Overview","information":"Information","last_updated":"Last Updated","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"Version","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"Add To Mue","remove":"Remove","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"Looks like you're offline","description":"Please connect to the internet"}},"addons":{"added":"Added","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"Empty","description":"No addons are installed"},"sideload":{"title":"Sideload","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"Sort","newest":"Installed (Newest)","a_z":"Alphabetical (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Create","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Coming Soon...."}}},"update":{"title":"Update","offline":{"title":"Offline","description":"Cannot get update logs while in offline mode"},"error":{"title":"Error","description":"Could not connect to the server"}},"welcome":{"tip":"Quick Tip","sections":{"intro":{"title":"Welcome to Mue Tab","description":"Thank you for installing Mue, we hope you enjoy your time with our extension.","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"Choose your language","description":"Mue can be displayed the languages listed below. You can also add new translations on our"},"theme":{"title":"Select a theme","description":"Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.","tip":"Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"Import Settings","description":"Installing Mue on a new device? Feel free to import your old settings!","tip":"You can export your old settings by navigating to the Advanced tab in your old Mue setup. Then you need to click the export button which will download the JSON file. You can upload this file here to carry across your settings and preferences from your previous Mue installation."},"privacy":{"title":"Privacy Options","description":"Enable settings to further protect your privacy with Mue.","offline_mode_description":"Enabling offline mode will disable all requests to any service. This will result in online backgrounds, online quotes, marketplace, weather, quick links, change log and some about tab information to be disabled.","links":{"title":"Links","privacy_policy":"Privacy Policy","source_code":"Source Code"}},"final":{"title":"Final step","description":"Your Mue Tab experience is about to begin.","changes":"Changes","changes_description":"To change settings later click on the settings icon in the top right corner of your tab.","imported":"Imported {amount} settings"}},"buttons":{"next":"Next","preview":"Preview","previous":"Previous","close":"Close","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),XM={quote:"Quote copied",notes:"Notes copied",reset:"Reset successfully",installed:"Successfully installed",uninstalled:"Successfully removed",updated:"Successfully updated",error:"Something went wrong",imported:"Successfully imported",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Cb={tabname:WM,widgets:QM,modals:ZM,toasts:XM};function Dl(o){return new x0("en_GB",{ar:Wv,arz:Qv,az:Zv,azb:Xv,bn:Jv,de_DE:$v,el:eb,en_GB:tb,en_US:ab,es:ob,es_419:ib,et:nb,fa:sb,fr:rb,hu:lb,id_ID:ub,ja:db,lt:cb,lv:mb,nl:pb,no:fb,peo:gb,pt:hb,pt_BR:_b,ru:vb,sl:bb,sv:yb,ta:kb,tr_TR:wb,uk:Sb,vi:Mb,zh_CN:Ab,zh_Hant:Cb})}const JM={ar:Wv,arz:Qv,az:Zv,azb:Xv,bn:Jv,de_DE:$v,el:eb,en_GB:tb,en_US:ab,es:ob,es_419:ib,et:nb,fa:sb,fr:rb,hu:lb,id_ID:ub,ja:db,lt:cb,lv:mb,nl:pb,no:fb,peo:gb,pt:hb,pt_BR:_b,ru:vb,sl:bb,sv:yb,ta:kb,tr_TR:wb,uk:Sb,vi:Mb,zh_CN:Ab,zh_Hant:Cb},$M="https://webbrain.one",eA="https://webbrain.one/privacy",tA="https://github.com/esokullu/webbrain",aA="https://github.com/esokullu/webbrain/issues/new",oA="https://github.com/mue/mue",iA="7.6.0",nA="1.0.0",sA=Object.freeze(Object.defineProperty({__proto__:null,BUG_REPORT:aA,MUE_REPO_URL:oA,MUE_VERSION:iA,PRIVACY_URL:eA,REPO_URL:tA,VERSION:nA,WEBSITE_URL:$M},Symbol.toStringTag,{value:"Module"}));class rA{static async postEvent(){}static async tabLoad(){}}const pe={language:{},languagecode:"",stats:rA,constants:sA},lA={en:"en_GB",zh:"zh_CN",ar:"ar",bn:"bn",nl:"nl",fr:"fr",de:"de_DE",id:"id_ID",ja:"ja",fa:"fa",pt:"pt_BR",ru:"ru",es:"es",tr:"tr_TR",uk:"uk",vi:"vi"};function Dm(){let o;try{o=String(Ll?.getItem("wbLocale")||"").trim()}catch{o=""}return o||String(globalThis.navigator?.language||"en").slice(0,2).toLowerCase()}const uA=new Set(["ar","fa","he","ur"]);function dA(){const o=Dm(),n=String(o||"en").replace("_","-");return{lang:n,dir:uA.has(n.slice(0,2).toLowerCase())?"rtl":"ltr"}}function cA(){return lA[Dm()]||"en_GB"}const mA=["ask","act","search","placeholder_ask","placeholder_act","placeholder_search","go","act_hint","panel_failed","recent_title","recent_empty","recent_all","settings_taskbox","settings_taskbox_sub","settings_default_mode","settings_recent","settings_credits","settings_bundled_photos"],pA={en:["Ask","Act","Search","Ask WebBrain anything…","Tell WebBrain what to do…","Search or enter a URL","Go","WebBrain opens with your task ready. Press Enter there to run it.","Couldn't open the WebBrain panel. Click the WebBrain toolbar icon.","Recent chats","No chats yet","All history","Task box","Ask or act with WebBrain from the new tab.","Default mode","Show recent chats","Credits","Bundled photos"],es:["Preguntar","Actuar","Buscar","Pregunta lo que quieras a WebBrain…","Dile a WebBrain qué hacer…","Busca o escribe una URL","Ir","WebBrain se abre con tu tarea lista. Pulsa Intro allí para ejecutarla.","No se pudo abrir el panel de WebBrain. Haz clic en el icono de WebBrain de la barra.","Chats recientes","Aún no hay chats","Todo el historial","Cuadro de tareas","Pregunta o actúa con WebBrain desde la nueva pestaña.","Modo predeterminado","Mostrar chats recientes","Créditos","Fotos incluidas"],fr:["Demander","Agir","Rechercher","Posez n’importe quelle question à WebBrain…","Dites à WebBrain quoi faire…","Rechercher ou saisir une URL","OK","WebBrain s’ouvre avec votre tâche prête. Appuyez sur Entrée pour la lancer.","Impossible d’ouvrir le panneau WebBrain. Cliquez sur l’icône WebBrain de la barre d’outils.","Discussions récentes","Aucune discussion","Tout l’historique","Zone de tâche","Posez une question ou agissez avec WebBrain depuis le nouvel onglet.","Mode par défaut","Afficher les discussions récentes","Crédits","Photos incluses"],de:["Fragen","Handeln","Suchen","Frag WebBrain, was du willst…","Sag WebBrain, was zu tun ist…","Suchen oder URL eingeben","Los","WebBrain öffnet sich mit deiner Aufgabe. Drücke dort Enter, um sie auszuführen.","Das WebBrain-Panel konnte nicht geöffnet werden. Klicke auf das WebBrain-Symbol in der Symbolleiste.","Letzte Chats","Noch keine Chats","Gesamter Verlauf","Aufgabenfeld","Frage oder handle mit WebBrain direkt im neuen Tab.","Standardmodus","Letzte Chats anzeigen","Danksagungen","Mitgelieferte Fotos"],tr:["Sor","Yap","Ara","WebBrain’e her şeyi sor…","WebBrain’e ne yapacağını söyle…","Ara veya URL gir","Git","WebBrain, görevin hazır şekilde açılır. Çalıştırmak için orada Enter’a bas.","WebBrain paneli açılamadı. Araç çubuğundaki WebBrain simgesine tıkla.","Son sohbetler","Henüz sohbet yok","Tüm geçmiş","Görev kutusu","Yeni sekmeden WebBrain ile sor veya işlem yap.","Varsayılan mod","Son sohbetleri göster","Katkılar","Dahili fotoğraflar"],pt:["Perguntar","Agir","Pesquisar","Pergunte qualquer coisa ao WebBrain…","Diga ao WebBrain o que fazer…","Pesquise ou digite um URL","Ir","O WebBrain abre com sua tarefa pronta. Pressione Enter lá para executá-la.","Não foi possível abrir o painel do WebBrain. Clique no ícone do WebBrain na barra de ferramentas.","Conversas recentes","Ainda não há conversas","Todo o histórico","Caixa de tarefas","Pergunte ou aja com o WebBrain na nova guia.","Modo padrão","Mostrar conversas recentes","Créditos","Fotos incluídas"],ru:["Спросить","Действовать","Поиск","Спросите WebBrain о чём угодно…","Скажите WebBrain, что сделать…","Введите запрос или URL","Вперёд","WebBrain откроется с готовой задачей. Нажмите там Enter, чтобы запустить её.","Не удалось открыть панель WebBrain. Нажмите значок WebBrain на панели инструментов.","Недавние чаты","Чатов пока нет","Вся история","Поле задач","Спрашивайте и действуйте с WebBrain прямо на новой вкладке.","Режим по умолчанию","Показывать недавние чаты","Авторы и лицензии","Встроенные фото"],uk:["Запитати","Діяти","Пошук","Запитайте WebBrain про що завгодно…","Скажіть WebBrain, що зробити…","Введіть запит або URL","Вперед","WebBrain відкриється з готовим завданням. Натисніть там Enter, щоб запустити його.","Не вдалося відкрити панель WebBrain. Натисніть значок WebBrain на панелі інструментів.","Нещодавні чати","Чатів поки немає","Уся історія","Поле завдань","Запитуйте та виконуйте завдання з WebBrain просто на новій вкладці.","Режим за замовчуванням","Показувати нещодавні чати","Автори та ліцензії","Вбудовані фото"],zh:["提问","执行","搜索","向 WebBrain 提任何问题…","告诉 WebBrain 要做什么…","搜索或输入网址","前往","WebBrain 将带着你的任务打开。在那里按 Enter 即可运行。","无法打开 WebBrain 面板。请点击工具栏中的 WebBrain 图标。","最近的对话","还没有对话","全部历史","任务框","在新标签页中直接向 WebBrain 提问或下达任务。","默认模式","显示最近的对话","致谢","内置照片"],ja:["質問","実行","検索","WebBrain に何でも聞く…","WebBrain にやってほしいことを伝える…","検索または URL を入力","移動","タスクを入力した状態で WebBrain が開きます。そこで Enter を押すと実行されます。","WebBrain パネルを開けませんでした。ツールバーの WebBrain アイコンをクリックしてください。","最近のチャット","チャットはまだありません","すべての履歴","タスクボックス","新しいタブから WebBrain に質問したり操作を任せたりできます。","デフォルトのモード","最近のチャットを表示","クレジット","同梱の写真"],ko:["질문","실행","검색","WebBrain에게 무엇이든 물어보세요…","WebBrain에게 할 일을 알려주세요…","검색하거나 URL 입력","이동","작업이 입력된 상태로 WebBrain이 열립니다. 거기서 Enter를 누르면 실행됩니다.","WebBrain 패널을 열 수 없습니다. 도구 모음의 WebBrain 아이콘을 클릭하세요.","최근 대화","아직 대화가 없습니다","전체 기록","작업 상자","새 탭에서 바로 WebBrain에게 질문하거나 작업을 맡기세요.","기본 모드","최근 대화 표시","크레딧","기본 제공 사진"],ar:["اسأل","نفّذ","ابحث","اسأل WebBrain أي شيء…","أخبر WebBrain بما يجب فعله…","ابحث أو أدخل عنوان URL","انتقال","يفتح WebBrain ومعه مهمتك جاهزة. اضغط Enter هناك لتشغيلها.","تعذّر فتح لوحة WebBrain. انقر على أيقونة WebBrain في شريط الأدوات.","المحادثات الأخيرة","لا توجد محادثات بعد","السجل الكامل","مربع المهام","اسأل أو نفّذ مع WebBrain مباشرة من علامة التبويب الجديدة.","الوضع الافتراضي","إظهار المحادثات الأخيرة","الشكر والتقدير","الصور المضمّنة"],he:["שאלה","פעולה","חיפוש","שאלו את WebBrain כל דבר…","ספרו ל-WebBrain מה לעשות…","חפשו או הזינו כתובת URL","מעבר","WebBrain ייפתח כשהמשימה שלכם מוכנה. לחצו שם Enter כדי להריץ אותה.","לא ניתן היה לפתוח את לוח WebBrain. לחצו על סמל WebBrain בסרגל הכלים.","שיחות אחרונות","עדיין אין שיחות","כל ההיסטוריה","תיבת משימות","שאלו או פעלו עם WebBrain ישירות מהכרטיסייה החדשה.","מצב ברירת מחדל","הצגת שיחות אחרונות","קרדיטים","תמונות מובנות"],hi:["पूछें","करें","खोजें","WebBrain से कुछ भी पूछें…","WebBrain को बताएँ क्या करना है…","खोजें या URL दर्ज करें","जाएँ","WebBrain आपके कार्य के साथ खुलेगा। चलाने के लिए वहाँ Enter दबाएँ।","WebBrain पैनल नहीं खुल सका। टूलबार में WebBrain आइकन पर क्लिक करें।","हाल की चैट","अभी कोई चैट नहीं","पूरा इतिहास","कार्य बॉक्स","नए टैब से ही WebBrain से पूछें या काम करवाएँ।","डिफ़ॉल्ट मोड","हाल की चैट दिखाएँ","श्रेय","शामिल तस्वीरें"],id:["Tanya","Jalankan","Cari","Tanyakan apa saja ke WebBrain…","Beri tahu WebBrain apa yang harus dilakukan…","Cari atau masukkan URL","Buka","WebBrain terbuka dengan tugas Anda siap. Tekan Enter di sana untuk menjalankannya.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain di bilah alat.","Obrolan terbaru","Belum ada obrolan","Semua riwayat","Kotak tugas","Tanya atau jalankan tugas dengan WebBrain langsung dari tab baru.","Mode default","Tampilkan obrolan terbaru","Kredit","Foto bawaan"],ms:["Tanya","Laksana","Cari","Tanya apa sahaja kepada WebBrain…","Beritahu WebBrain apa yang perlu dilakukan…","Cari atau masukkan URL","Pergi","WebBrain dibuka dengan tugas anda sedia. Tekan Enter di sana untuk menjalankannya.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain pada bar alat.","Sembang terkini","Belum ada sembang","Semua sejarah","Kotak tugas","Tanya atau laksanakan tugas dengan WebBrain terus dari tab baharu.","Mod lalai","Tunjukkan sembang terkini","Kredit","Foto terbina dalam"],tl:["Magtanong","Gumawa","Maghanap","Magtanong ng kahit ano sa WebBrain…","Sabihin sa WebBrain kung ano ang gagawin…","Maghanap o maglagay ng URL","Pumunta","Magbubukas ang WebBrain na handa na ang iyong gawain. Pindutin ang Enter doon para patakbuhin ito.","Hindi mabuksan ang panel ng WebBrain. I-click ang icon ng WebBrain sa toolbar.","Mga kamakailang chat","Wala pang chat","Buong kasaysayan","Kahon ng gawain","Magtanong o mag-utos sa WebBrain mula mismo sa bagong tab.","Default na mode","Ipakita ang mga kamakailang chat","Mga kredito","Mga kasamang larawan"],pl:["Zapytaj","Wykonaj","Szukaj","Zapytaj WebBrain o cokolwiek…","Powiedz WebBrain, co ma zrobić…","Wyszukaj lub wpisz adres URL","Idź","WebBrain otworzy się z gotowym zadaniem. Naciśnij tam Enter, aby je uruchomić.","Nie udało się otworzyć panelu WebBrain. Kliknij ikonę WebBrain na pasku narzędzi.","Ostatnie czaty","Brak czatów","Cała historia","Pole zadań","Pytaj i zlecaj zadania WebBrain prosto z nowej karty.","Tryb domyślny","Pokaż ostatnie czaty","Autorzy i licencje","Dołączone zdjęcia"],th:["ถาม","ทำ","ค้นหา","ถามอะไรก็ได้กับ WebBrain…","บอก WebBrain ว่าต้องทำอะไร…","ค้นหาหรือป้อน URL","ไป","WebBrain จะเปิดพร้อมงานของคุณ กด Enter ที่นั่นเพื่อรัน","เปิดแผง WebBrain ไม่ได้ คลิกไอคอน WebBrain บนแถบเครื่องมือ","แชตล่าสุด","ยังไม่มีแชต","ประวัติทั้งหมด","ช่องงาน","ถามหรือสั่งงาน WebBrain ได้จากแท็บใหม่ทันที","โหมดเริ่มต้น","แสดงแชตล่าสุด","เครดิต","รูปภาพที่รวมมา"],vi:["Hỏi","Thực hiện","Tìm kiếm","Hỏi WebBrain bất cứ điều gì…","Nói với WebBrain cần làm gì…","Tìm kiếm hoặc nhập URL","Đi","WebBrain sẽ mở với tác vụ đã sẵn sàng. Nhấn Enter ở đó để chạy.","Không thể mở bảng WebBrain. Hãy nhấp vào biểu tượng WebBrain trên thanh công cụ.","Cuộc trò chuyện gần đây","Chưa có cuộc trò chuyện","Toàn bộ lịch sử","Hộp tác vụ","Hỏi hoặc giao việc cho WebBrain ngay từ tab mới.","Chế độ mặc định","Hiện cuộc trò chuyện gần đây","Ghi công","Ảnh đi kèm"],bn:["জিজ্ঞাসা","করুন","খুঁজুন","WebBrain-কে যেকোনো কিছু জিজ্ঞাসা করুন…","WebBrain-কে বলুন কী করতে হবে…","খুঁজুন বা URL লিখুন","যান","আপনার কাজ প্রস্তুত অবস্থায় WebBrain খুলবে। চালাতে সেখানে Enter চাপুন।","WebBrain প্যানেল খোলা যায়নি। টুলবারে WebBrain আইকনে ক্লিক করুন।","সাম্প্রতিক চ্যাট","এখনো কোনো চ্যাট নেই","সম্পূর্ণ ইতিহাস","টাস্ক বক্স","নতুন ট্যাব থেকেই WebBrain-কে জিজ্ঞাসা করুন বা কাজ দিন।","ডিফল্ট মোড","সাম্প্রতিক চ্যাট দেখান","কৃতজ্ঞতা","অন্তর্ভুক্ত ছবি"],fa:["بپرس","اجرا کن","جستجو","از WebBrain هر چیزی بپرسید…","به WebBrain بگویید چه کار کند…","جستجو کنید یا نشانی URL وارد کنید","برو","WebBrain با وظیفهٔ آمادهٔ شما باز می‌شود. برای اجرا، آن‌جا Enter را بزنید.","پنل WebBrain باز نشد. روی نماد WebBrain در نوار ابزار کلیک کنید.","گفتگوهای اخیر","هنوز گفتگویی نیست","کل تاریخچه","جعبهٔ وظیفه","از همین زبانهٔ جدید از WebBrain بپرسید یا کار بسپارید.","حالت پیش‌فرض","نمایش گفتگوهای اخیر","سپاس‌ها","عکس‌های همراه"],nl:["Vragen","Uitvoeren","Zoeken","Vraag WebBrain alles…","Zeg WebBrain wat te doen…","Zoek of voer een URL in","Ga","WebBrain opent met je taak klaar. Druk daar op Enter om te starten.","Het WebBrain-paneel kon niet worden geopend. Klik op het WebBrain-pictogram in de werkbalk.","Recente chats","Nog geen chats","Alle geschiedenis","Taakvak","Vraag of voer uit met WebBrain, direct vanaf het nieuwe tabblad.","Standaardmodus","Recente chats tonen","Met dank aan","Meegeleverde foto’s"]},ym=Object.fromEntries(Object.entries(pA).map(([o,n])=>[o,Object.fromEntries(mA.map((u,l)=>[`wb.${u}`,n[l]]))]));function ya(o,n=Dm()){return ym[n]?.[o]??ym.en[o]??o}const xb=o=>typeof o=="string"&&o.startsWith("wb.");function km(o=document.documentElement){const n=dA(),{lang:u,dir:l}=ym[n.lang]?n:{lang:"en",dir:"ltr"};return o.lang=u,o.dir=l,{lang:u,dir:l}}class _e{static listeners={};static register(n,u){this.listeners[n]||(this.listeners[n]=[]),u.first?this.listeners[n].unshift(u):this.listeners[n].push(u)}static on(n,u){const l=d=>u(d.detail);document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static emit(n,u){document.dispatchEvent(new CustomEvent(n,{detail:u}))}static off(n,u){if(typeof u!="function")return;const l=this.listeners[n]||[],d=l.filter(c=>c.callback===u||c.listener===u);d.forEach(c=>document.removeEventListener(n,c.listener,{capture:c.capture})),this.listeners[n]=l.filter(c=>!d.includes(c))}static once(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static prepend(n,u){const l=d=>u(d.detail);document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static prependOnce(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static getListeners(n){return this.listeners[n]||[]}static eventNames(){return Object.keys(this.listeners)}static removeAllListeners(){Object.keys(this.listeners).forEach(n=>{this.listeners[n].forEach(({listener:u,capture:l})=>{document.removeEventListener(n,u,{capture:l})})}),this.listeners={}}}const zb=k.createContext();function fA({children:o,initialLanguage:n}){const[u,l]=k.useState(n),d=k.useRef(Dl());k.useEffect(()=>{u!==n&&(d.current=Dl()),pe.language=d.current,pe.languagecode=u,km()},[u,n]);const c=k.useCallback(h=>{d.current=Dl(),pe.language=d.current,pe.languagecode=h,km();const y=localStorage.getItem("tabName"),_=d.current?.getMessage(u,"tabname");if(y===_||!y){const g=JM[h.replace("-","_")]?.tabname||d.current?.getMessage(h,"tabname")||"Mue";localStorage.setItem("tabName",g),document.title=g}localStorage.setItem("language",h),localStorage.removeItem("currentWeather"),l(h)},[u]),f=k.useCallback((h,y={})=>xb(h)?ya(h):d.current?d.current.getMessage(u,h,y):h,[u]);k.useEffect(()=>{const h=y=>{y?.language&&c(y.language)};return _e.on("languageChange",h),()=>{_e.off("languageChange",h)}},[c]),k.useEffect(()=>{pe.getMessage=(h,y={})=>f(h,y)},[f]);const p=k.useMemo(()=>({language:u,languagecode:u,changeLanguage:c,t:f}),[u,c,f]);return w.jsx(zb.Provider,{value:p,children:o})}function Tb(){const o=k.useContext(zb);if(!o)throw new Error("useTranslation must be used within a TranslationProvider");return o}function Qo(){const{t:o}=Tb();return o}function gA({info:o}){const n=Qo();return o.hidden===!0||!o.credit||localStorage.getItem("photoInformation")==="false"?null:w.jsx("div",{className:"photoInformation",style:{position:"absolute",left:"1rem",bottom:"1rem",padding:"4px 10px",borderRadius:"10px",fontSize:"0.8rem",color:"#fff",background:"rgba(0, 0, 0, 0.45)"},children:w.jsxs("span",{id:"credit",children:[n("widgets.background.credit")," ",o.credit]})})}const hA=k.memo(gA);var Nb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},j_=ve.createContext&&ve.createContext(Nb),_A=["attr","size","title"];function vA(o,n){if(o==null)return{};var u,l,d=bA(o,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(l=0;l<c.length;l++)u=c[l],n.indexOf(u)===-1&&{}.propertyIsEnumerable.call(o,u)&&(d[u]=o[u])}return d}function bA(o,n){if(o==null)return{};var u={};for(var l in o)if({}.hasOwnProperty.call(o,l)){if(n.indexOf(l)!==-1)continue;u[l]=o[l]}return u}function Il(){return Il=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var u=arguments[n];for(var l in u)({}).hasOwnProperty.call(u,l)&&(o[l]=u[l])}return o},Il.apply(null,arguments)}function D_(o,n){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);n&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),u.push.apply(u,l)}return u}function Ul(o){for(var n=1;n<arguments.length;n++){var u=arguments[n]!=null?arguments[n]:{};n%2?D_(Object(u),!0).forEach(function(l){yA(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):D_(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}function yA(o,n,u){return(n=kA(n))in o?Object.defineProperty(o,n,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[n]=u,o}function kA(o){var n=wA(o,"string");return typeof n=="symbol"?n:n+""}function wA(o,n){if(typeof o!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var l=u.call(o,n);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function Eb(o){return o&&o.map((n,u)=>ve.createElement(n.tag,Ul({key:u},n.attr),Eb(n.child)))}function le(o){return n=>ve.createElement(SA,Il({attr:Ul({},o.attr)},n),Eb(o.child))}function SA(o){var n=u=>{var l=o.attr,d=o.size,c=o.title,f=vA(o,_A),p=d||u.size||"1em",h;return u.className&&(h=u.className),o.className&&(h=(h?h+" ":"")+o.className),ve.createElement("svg",Il({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},u.attr,l,f,{className:h,style:Ul(Ul({color:o.color||u.color},u.style),o.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&ve.createElement("title",null,c),o.children)};return j_!==void 0?ve.createElement(j_.Consumer,null,u=>n(u)):n(Nb)}function MA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"4",r:"2"},child:[]},{tag:"path",attr:{d:"M15.89 8.11C15.5 7.72 14.83 7 13.53 7h-2.54C8.24 6.99 6 4.75 6 2H4c0 3.16 2.11 5.84 5 6.71V22h2v-6h2v6h2V10.05L18.95 14l1.41-1.41z"},child:[]}]})(o)}function $T(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 3H3c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5a2 2 0 0 0-2-2m0 14H3V5h18z"},child:[]}]})(o)}function eN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 10H7v2h10zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zm-5-5H7v2h7z"},child:[]}]})(o)}function Ls(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.96 7.96 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"},child:[]}]})(o)}function AA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"},child:[]}]})(o)}function jb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(o)}function Is(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(o)}function CA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(o)}function Om(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(o)}function tN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"},child:[]}]})(o)}function Db(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"},child:[]}]})(o)}function xA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"},child:[]}]})(o)}function zA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"},child:[]}]})(o)}function aN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"},child:[]}]})(o)}function TA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2m2 10H3v4c0 1.1.9 2 2 2h4v-2H5zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function NA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4z"},child:[]},{tag:"path",attr:{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 10-2.5-1.5L15 12V4h5z"},child:[]}]})(o)}function oN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"},child:[]}]})(o)}function iN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"},child:[]}]})(o)}function nN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"},child:[]}]})(o)}function EA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"},child:[]}]})(o)}function jA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"},child:[]}]})(o)}function Ob(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"},child:[]}]})(o)}function DA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4z"},child:[]}]})(o)}function sN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16zM4 15h16v-2H4z"},child:[]}]})(o)}function O_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"},child:[]}]})(o)}function qb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"},child:[]}]})(o)}function rN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11A4.99 4.99 0 0 0 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0"},child:[]}]})(o)}function OA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"},child:[]}]})(o)}function lN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"},child:[]}]})(o)}function qA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"},child:[]}]})(o)}function q_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0"},child:[]},{tag:"path",attr:{d:"M8 11h8v2H8zm12.1 1H22c0-2.76-2.24-5-5-5h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M19 12h-2v3h-3v2h3v3h2v-3h3v-2h-3z"},child:[]}]})(o)}function RA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function uN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"},child:[]}]})(o)}function BA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16z"},child:[]}]})(o)}function LA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8M6 13c0-1.65.67-3.15 1.76-4.24L6.34 7.34A8.01 8.01 0 0 0 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"},child:[]}]})(o)}function dN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95M12 19c-3.87 0-7-3.13-7-7 0-3.53 2.61-6.43 6-6.92V2.05c-5.06.5-9 4.76-9 9.95 0 5.52 4.47 10 9.99 10 3.31 0 6.24-1.61 8.06-4.09l-2.6-1.53A6.95 6.95 0 0 1 12 19"},child:[]}]})(o)}function IA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a9 9 0 0 0 0-18m0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"},child:[]}]})(o)}function cN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},child:[]}]})(o)}function mN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"},child:[]}]})(o)}function Rb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zM3 16h7v-2H3zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59z"},child:[]}]})(o)}function UA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2zM3 16h7v-2H3z"},child:[]}]})(o)}function PA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M19 3H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function HA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.87 15.07-2.54-2.51.03-.03A17.5 17.5 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"},child:[]}]})(o)}function pN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 10H6v-2h8zm4-4H6v-2h12z"},child:[]}]})(o)}function FA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"},child:[]}]})(o)}function qm(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},child:[]}]})(o)}function VA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function GA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"},child:[]}]})(o)}function KA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"},child:[]}]})(o)}function YA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"},child:[]}]})(o)}function WA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a6 6 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"},child:[]}]})(o)}function QA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 18 2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2"},child:[]}]})(o)}function R_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},child:[]}]})(o)}function fN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m9 7h-6v13h-2v-6h-2v6H9V9H3V7h18z"},child:[]}]})(o)}function B_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"},child:[]}]})(o)}function ZA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"},child:[]}]})(o)}function gN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zM11.5 9.5 9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"},child:[]}]})(o)}function hN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"},child:[]}]})(o)}function _N(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"},child:[]}]})(o)}function XA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18.62 18h-5.24l2-4H13V6h8v7.24zm-2-2h.76L19 12.76V8h-4v4h3.62zm-8 2H3.38l2-4H3V6h8v7.24zm-2-2h.76L9 12.76V8H5v4h3.62z"},child:[]}]})(o)}function JA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16zM7 9h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z"},child:[]}]})(o)}function $A(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-4.51 2.11.26 2.79-2.74.62-1.43 2.41L12 18.82l-2.58 1.11-1.43-2.41-2.74-.62.26-2.8L3.66 12l1.85-2.12-.26-2.78 2.74-.61 1.43-2.41L12 5.18l2.58-1.11 1.43 2.41 2.74.62-.26 2.79L20.34 12zM11 15h2v2h-2zm0-8h2v6h-2z"},child:[]}]})(o)}function vN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5 9.65 9.65 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6m-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14M2.01 3.87l2.68 2.68A11.74 11.74 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13m-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53"},child:[]}]})(o)}function bN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0 1 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"},child:[]}]})(o)}function eC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.6.6 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},child:[]}]})(o)}function tC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10.5 4.5c.28 0 .5.22.5.5v2h6v6h2c.28 0 .5.22.5.5s-.22.5-.5.5h-2v6h-2.12c-.68-1.75-2.39-3-4.38-3s-3.7 1.25-4.38 3H4v-2.12c1.75-.68 3-2.39 3-4.38S5.76 9.8 4.01 9.12L4 7h6V5c0-.28.22-.5.5-.5m0-2A2.5 2.5 0 0 0 8 5H4c-1.1 0-1.99.9-1.99 2v3.8h.29c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-.3c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7v.3H17c1.1 0 2-.9 2-2v-4a2.5 2.5 0 0 0 0-5V7c0-1.1-.9-2-2-2h-4a2.5 2.5 0 0 0-2.5-2.5"},child:[]}]})(o)}function aC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"},child:[]}]})(o)}function oC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"},child:[]}]})(o)}const Yo={SETTINGS:"settings"},Re={SETTINGS:zA,LIBRARY:QA,TASKBOX:Ob,DISCOVER:GA,NAVBAR:AA,GREETING:MA,TIME:IA,QUOTE:XA,QUICKLINKS:OA,DATE:YA,MESSAGE:JA,BACKGROUND:ZA,SEARCH:qm,WEATHER:jA,APPEARANCE:DA,LANGUAGE:HA,ADVANCED:eC,EXPERIMENTAL:WA,STATS:oC,CHANGELOG:$A,ABOUT:VA,ADDED:tC,CREATE:RA,OVERVIEW:PA,COLLECTIONS:NA},Fe={OVERVIEW:"modals.main.marketplace.product.overview",SETTINGS:"modals.main.navbar.settings",LIBRARY:"modals.main.navbar.library",DISCOVER:"modals.main.navbar.discover",NAVBAR:"modals.main.settings.sections.appearance.navbar.title",GREETING:"modals.main.settings.sections.greeting.title",TIME:"modals.main.settings.sections.time.title",QUICKLINKS:"modals.main.settings.sections.quicklinks.title",QUOTE:"modals.main.settings.sections.quote.title",DATE:"modals.main.settings.sections.date.title",MESSAGE:"modals.main.settings.sections.message.title",BACKGROUND:"modals.main.settings.sections.background.title",SEARCH:"modals.main.settings.sections.search.title",WEATHER:"modals.main.settings.sections.weather.title",APPEARANCE:"modals.main.settings.sections.appearance.title",LANGUAGE:"modals.main.settings.sections.language.title",ADVANCED:"modals.main.settings.sections.advanced.title",STATS:"modals.main.settings.sections.stats.title",EXPERIMENTAL:"modals.main.settings.sections.experimental.title",CHANGELOG:"modals.main.settings.sections.changelog.title",ABOUT:"modals.main.settings.sections.about.title",ADDED:"modals.main.addons.added",CREATE:"modals.main.addons.create.title",ALL_MARKETPLACE:"modals.main.marketplace.all",PHOTO_PACKS:"modals.main.marketplace.photo_packs",QUOTE_PACKS:"modals.main.marketplace.quote_packs",PRESET_SETTINGS:"modals.main.marketplace.preset_settings",COLLECTIONS:"modals.main.marketplace.collections"},yN=(o,n)=>({[n.getMessage(Fe.OVERVIEW)]:Re.OVERVIEW,[n.getMessage(Fe.SETTINGS)]:Re.SETTINGS,[n.getMessage(Fe.LIBRARY)]:Re.LIBRARY,[n.getMessage(Fe.DISCOVER)]:Re.DISCOVER,[n.getMessage(Fe.NAVBAR)]:Re.NAVBAR,[n.getMessage(Fe.GREETING)]:Re.GREETING,[n.getMessage(Fe.TIME)]:Re.TIME,[n.getMessage(Fe.QUICKLINKS)]:Re.QUICKLINKS,[n.getMessage(Fe.QUOTE)]:Re.QUOTE,[n.getMessage(Fe.DATE)]:Re.DATE,[n.getMessage(Fe.MESSAGE)]:Re.MESSAGE,[n.getMessage(Fe.BACKGROUND)]:Re.BACKGROUND,[n.getMessage(Fe.SEARCH)]:Re.SEARCH,[n.getMessage(Fe.WEATHER)]:Re.WEATHER,[n.getMessage(Fe.APPEARANCE)]:Re.APPEARANCE,[n.getMessage(Fe.LANGUAGE)]:Re.LANGUAGE,[n.getMessage(Fe.ADVANCED)]:Re.ADVANCED,[n.getMessage(Fe.STATS)]:Re.STATS,[n.getMessage(Fe.EXPERIMENTAL)]:Re.EXPERIMENTAL,[n.getMessage(Fe.CHANGELOG)]:Re.CHANGELOG,[n.getMessage(Fe.ABOUT)]:Re.ABOUT,[n.getMessage("wb.settings_credits")]:Re.ABOUT,[n.getMessage("wb.settings_taskbox")]:Re.TASKBOX,[n.getMessage(Fe.ADDED)]:Re.ADDED,[n.getMessage(Fe.CREATE)]:Re.CREATE,[n.getMessage(Fe.ALL_MARKETPLACE)]:Re.LIBRARY,[n.getMessage(Fe.PHOTO_PACKS)]:Re.BACKGROUND,[n.getMessage(Fe.QUOTE_PACKS)]:Re.QUOTE,[n.getMessage(Fe.PRESET_SETTINGS)]:Re.ADVANCED,[n.getMessage(Fe.COLLECTIONS)]:Re.COLLECTIONS})[o],iC=[{tab:Yo.SETTINGS,icon:Re.SETTINGS,messageKey:"modals.main.navbar.settings"}],kN=["modals.main.settings.sections.appearance.title","modals.main.settings.sections.advanced.title"],Pl=(o=window.location.hash)=>{if(!o||o==="#")return null;const[n,u,l]=o.slice(1).split("/");return n!==Yo.SETTINGS?null:{tab:n,section:u||void 0,subSection:l||void 0}},Hl=(o,n=!0)=>{window.history.pushState?n?window.history.pushState(null,null,o):window.history.replaceState(null,null,o):window.location.hash=o},nC=()=>Pl()!==null,sC="MueCustomBackgrounds",rC=1,zt="backgrounds";function Ti(){return new Promise((o,n)=>{const u=indexedDB.open(sC,rC);u.onerror=()=>n(u.error),u.onsuccess=()=>o(u.result),u.onupgradeneeded=l=>{const d=l.target.result;d.objectStoreNames.contains(zt)||d.createObjectStore(zt,{keyPath:"id",autoIncrement:!0}).createIndex("url","url",{unique:!1})}})}async function Bb(){try{const l=(await Ti()).transaction(zt,"readonly").objectStore(zt).getAll();return new Promise((d,c)=>{l.onsuccess=()=>{const f=l.result;d(f.map(p=>typeof p.url=="string"&&!p.name?{id:p.id,url:p.url,name:`Image ${p.id}`,uploadDate:p.createdAt||Date.now(),dimensions:null,fileSize:null,folder:"",blurHash:null}:p))},l.onerror=()=>c(l.error)})}catch(o){return console.error("Error getting backgrounds from IndexedDB:",o),[]}}async function lC(){return(await Bb()).map(n=>n.url||n)}async function uC(o){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt),d=typeof o=="string"?{url:o,name:"Image",uploadDate:Date.now(),folder:""}:{...o,uploadDate:o.uploadDate||Date.now()},c=l.add(d);return new Promise((f,p)=>{c.onsuccess=()=>f(c.result),c.onerror=()=>p(c.error)})}async function wN(o){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt),d=l.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result;if(p[o]){const h=l.delete(p[o].id);h.onsuccess=()=>c(),h.onerror=()=>f(h.error)}else c()},d.onerror=()=>f(d.error)})}async function SN(o){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt),d=l.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result,h=o.filter(g=>p[g]).map(g=>p[g].id);let y=0;const _=h.length;if(_===0){c();return}h.forEach(g=>{const b=l.delete(g);b.onsuccess=()=>{y++,y===_&&c()},b.onerror=()=>f(b.error)})},d.onerror=()=>f(d.error)})}async function Lb(){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt).clear();return new Promise((d,c)=>{l.onsuccess=()=>d(),l.onerror=()=>c(l.error)})}async function dC(){const l=(await Ti()).transaction(zt,"readonly").objectStore(zt).count();return new Promise((d,c)=>{l.onsuccess=()=>d(l.result),l.onerror=()=>c(l.error)})}async function MN(o,n){const d=(await Ti()).transaction(zt,"readwrite").objectStore(zt),c=d.get(o);return new Promise((f,p)=>{c.onsuccess=()=>{const h=c.result;if(h){Object.assign(h,n),h.updatedAt=Date.now();const y=d.put(h);y.onsuccess=()=>f(),y.onerror=()=>p(y.error)}else p(new Error("Background not found"))},c.onerror=()=>p(c.error)})}async function AN(){try{const o=localStorage.getItem("customBackground");if(!o||o==="null"||o==="[]")return!1;let n=[];try{n=JSON.parse(o),Array.isArray(n)||(n=[o])}catch{n=[o]}if(n=n.filter(l=>l&&l.trim()!==""),n.length===0||await dC()>0)return!1;try{for(const l of n)await uC(l)}catch(l){try{await Lb()}catch{}throw l}return console.log(`Migrated ${n.length} backgrounds from localStorage to IndexedDB`),localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(n.length)),localStorage.setItem("customBackgroundMigrated","true"),!0}catch(o){return console.error("Error migrating backgrounds:",o),!1}}function cC({photoInfo:o,currentAPI:n,url:u}){const l=localStorage.getItem("backgroundType")==="custom",[d,c]=k.useState([]),[f,p]=k.useState(!0);k.useEffect(()=>{(async()=>{if(l)try{const g=await lC();c(g||[])}catch(g){console.error("Failed to load custom backgrounds:",g),c([])}p(!1)})()},[l,u]);const h=l&&!f&&(!d||d.length===0),y=()=>{Hl("#settings/background/source"),_e.emit("modal","openMainModal")};return w.jsxs(w.Fragment,{children:[w.jsx("div",{id:"backgroundImage"}),h&&w.jsxs("div",{style:{position:"absolute",bottom:"20px",left:"20px",color:"white",background:"rgba(0, 0, 0, 0.6)",padding:"20px 30px",borderRadius:"10px",zIndex:1},children:[w.jsx("h2",{style:{margin:"0 0 10px 0",fontSize:"20px"},children:pe.getMessage("widgets.background.no_images_title")||"No Custom Images"}),w.jsx("p",{style:{margin:"0 0 15px 0",fontSize:"14px",opacity:.9},children:pe.getMessage("widgets.background.no_images_description")||"Please add custom images in the Background settings"}),w.jsx("button",{onClick:y,style:{background:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white",padding:"10px 20px",borderRadius:"5px",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"all 0.2s"},onMouseOver:_=>{_.target.style.background="rgba(255, 255, 255, 0.3)"},onMouseOut:_=>{_.target.style.background="rgba(255, 255, 255, 0.2)"},children:pe.getMessage("widgets.background.add_images_button")||"Add Images"})]}),o?.credit&&w.jsx(hA,{info:o,api:n,url:u})]})}const mC=k.memo(cC),L_=()=>({muted:localStorage.getItem("backgroundVideoMute")==="true",loop:localStorage.getItem("backgroundVideoLoop")==="true"});function pC({url:o,filterStyle:n}){const[{muted:u,loop:l},d]=k.useState(L_);return k.useEffect(()=>{const c=f=>{f==="backgroundvideo"&&d(L_())};return _e.on("refresh",c),()=>_e.off("refresh",c)},[]),w.jsx("video",{autoPlay:!0,muted:u,loop:l,style:n,id:"backgroundVideo",children:w.jsx("source",{src:o})},o)}const fC=k.memo(pC);function gC(){const[o,n]=k.useState({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!1,offline:!1,photographerURL:"",photoURL:""}}),u=k.useCallback(d=>{n(c=>({...c,...d,photoInfo:{...c.photoInfo,...d.photoInfo||{}}}))},[]),l=k.useCallback(()=>{n({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!0}})},[]);return{backgroundData:o,updateBackground:u,resetBackground:l}}const hC={photo:[5]},$c={"Ryan Hutton":{photo:[1]},"Francesco De Tommaso":{photo:[2]},"Andy Vu":{photo:[3]},"Sergi Ferrete":{photo:[4]},Pixabay:hC};function Ib(o){const n=Object.keys($c),u=n[Math.floor(Math.random()*n.length)],d={url:`src/assets/offline-images/${$c[u].photo[Math.floor(Math.random()*$c[u].photo.length)]}.webp`,type:o,photoInfo:{offline:!0,credit:u}};return localStorage.setItem("currentBackground",JSON.stringify(d)),d}function _C(o){const n=()=>"#000000".replace(/0/g,()=>(~~(Math.random()*16)).toString(16));let u=`background:${n()};`;if(o==="random_gradient"){const l=["to right","to left","to bottom","to top","to bottom right","to bottom left","to top right","to top left"];u=`background:linear-gradient(${l[Math.floor(Math.random()*l.length)]}, ${n()}, ${n()});`}return{type:"colour",style:u}}function Ub(o){return o.startsWith("data:video/")||o.startsWith("video/")||o.endsWith(".mp4")||o.endsWith(".webm")||o.endsWith(".ogg")}const Pb=(o,n=null)=>{const u=localStorage.getItem(o);if(u===null||u==="null")return n;try{const l=JSON.parse(u);return l!==null?l:n}catch{return n}};async function vC(){const o=localStorage.getItem("offlineMode")==="true"||localStorage.getItem("showWelcome")==="true",n=Pb("favourite");if(n)return n.type==="random_colour"||n.type==="random_gradient"?{type:"colour",style:`background:${n.url}`}:{url:n.url,photoInfo:{...n,url:n.url}};const u=localStorage.getItem("backgroundType");switch(u){case"api":return yC();case"colour":return bC();case"random_colour":case"random_gradient":return _C(u);case"custom":return await kC(o);default:return null}}function bC(){return{type:"colour",style:`background: ${localStorage.getItem("customBackgroundColour")||"rgb(0,0,0)"}`}}function yC(){return{...Ib("api"),currentAPI:localStorage.getItem("backgroundAPI")||"mue"}}async function kC(o){let n=await Bb();if(!n||n.length===0){const c=Pb("customBackground",[]);c&&c.length>0&&(n=c.map(f=>({url:f,photoInfo:{hidden:!0}})))}if(!n||n.length===0)return null;const u=n[Math.floor(Math.random()*n.length)];if(!u)return null;const l=u.url||u;if(o&&!l.startsWith("data:"))return Ib("custom");const d={url:l,type:"custom",video:Ub(l),photoInfo:{hidden:!0,blur_hash:u.blurHash||null}};try{localStorage.setItem("currentBackground",JSON.stringify({type:"custom",video:d.video,photoInfo:d.photoInfo}))}catch(c){console.warn("Could not save currentBackground to localStorage:",c)}return d}function wC(o,n){const u=k.useRef(0),l=k.useCallback(async()=>{const c=++u.current,f=()=>c!==u.current;try{if(localStorage.getItem("welcomeTab")){const y=localStorage.getItem("welcomeImage");if(y){o(JSON.parse(y));return}}const h=await vC();if(f())return;h&&o(h)}catch(p){console.error("Failed to load background:",p)}},[o]),d=k.useCallback(()=>{n(),l()},[l,n]);return k.useEffect(()=>{const c=localStorage.getItem("backgroundchange");(!localStorage.getItem("backgroundStartTime")||c==="refresh")&&localStorage.setItem("backgroundStartTime",Date.now()),l()},[l]),{loadBackground:l,refreshBackground:d}}async function SC(o){try{const n=await fetch(o,{mode:"cors",credentials:"omit"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const u=await n.blob();return URL.createObjectURL(u)}catch{return null}}const MC="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",Ol=(o,n,u)=>{let l=0;for(;n<u;)l=l*83+MC.indexOf(o[n++]);return l},Hb=Math.pow,js=Math.PI,Fb=3294.6,Vb=269.025,AC=o=>o>10.31475?Hb(o/Vb+.052132,2.4):o/Fb,CC=o=>~~(o>1227e-8?Vb*Hb(o,.416666)-13.025:o*Fb+1),Fl=4096,Gb=new Uint8ClampedArray(Fl+1);for(let o=0;o<=Fl;o++)Gb[o]=CC(o/Fl);const em=o=>o<=0?0:o>=1?255:Gb[o*Fl+.5|0],Ds=o=>(o<0?-1:1)*o*o,I_=o=>{for(o+=js/2;o>js;)o-=js*2;const n=1.27323954*o-.405284735*Ds(o);return .225*(Ds(n)-n)+n};function xC(o){const n=Ol(o,2,6);return[n>>16,n>>8&255,n&255]}function zC(o,n,u,l){const d=Ol(o,0,1),c=d%9+1,f=~~(d/9)+1,p=c*f;let h,y,_,g,b,S,C,z,A,E,x,L;const G=(Ol(o,1,2)+1)/13446*(l|1),Z=new Float64Array(p*3),H=xC(o);for(h=0;h<3;h++)Z[h]=AC(H[h]);for(h=1;h<p;h++)L=Ol(o,4+h*2,6+h*2),Z[h*3]=Ds(~~(L/361)-9)*G,Z[h*3+1]=Ds(~~(L/19)%19-9)*G,Z[h*3+2]=Ds(L%19-9)*G;const D=new Float64Array(f*u),q=new Float64Array(c*n);for(y=0;y<f;y++)for(g=0;g<u;g++)D[y*u+g]=I_(js*g*y/u);for(h=0;h<c;h++)for(_=0;_<n;_++)q[h*n+_]=I_(js*_*h/n);const V=n*4,$=new Uint8ClampedArray(V*u),W=new Float64Array(c*3);for(g=0;g<u;g++){for(h=0;h<c;h++){for(b=S=C=0,y=0;y<f;y++)A=D[y*u+g],E=(h+y*c)*3,b+=Z[E]*A,S+=Z[E+1]*A,C+=Z[E+2]*A;W[h*3]=b,W[h*3+1]=S,W[h*3+2]=C}for(_=0;_<n;_++){for(b=S=C=0,h=0;h<c;h++)z=q[h*n+_],E=h*3,b+=W[E]*z,S+=W[E+1]*z,C+=W[E+2]*z;x=4*_+g*V,$[x]=em(b),$[x+1]=em(S),$[x+2]=em(C),$[x+3]=255}}return $}function TC(o,n=32,u=32){try{const l=document.createElement("canvas");l.width=n,l.height=u;const d=l.getContext("2d"),c=d.createImageData(n,u);return c.data.set(zC(o,n,u)),d.putImageData(c,0,0),l.toDataURL()}catch(l){return console.error("Failed to generate blur hash:",l),null}}function Rm(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px) brightness(${n}%)`;return u&&u!=="none"&&(d+=` ${u}(${l}%)`),d}function Bm(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px)`;u&&u!=="none"&&(d+=` ${u}(${l}%)`);const f=(100-parseInt(n,10))/100;return{backdropFilter:d,WebkitBackdropFilter:d,backgroundColor:`rgba(0, 0, 0, ${f})`}}const Kb=()=>document.documentElement.dataset.bgMaximised==="true",NC={backdropFilter:"",WebkitBackdropFilter:"",backgroundColor:""},U_=1200;function EC(o){const n=k.useRef(null);k.useEffect(()=>{if(o.video)return;const u=document.getElementById("backgroundImage");if(!u)return;let l=!1,d=null;return(async()=>{if(o.url){const f=localStorage.getItem("bgtransition")!=="false",p=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!f||p){u.style.background=`url(${o.url})`,document.querySelector(".photoInformation")?.style.setProperty("display","flex");return}let h=document.getElementById("backgroundOverlay");if(h||(h=document.createElement("div"),h.id="backgroundOverlay",u.parentNode.insertBefore(h,u.nextSibling)),o.photoInfo?.colour&&(u.style.backgroundColor=o.photoInfo.colour),o.photoInfo?.blur_hash){const b=TC(o.photoInfo.blur_hash,64,64);b&&(u.style.backgroundImage=`url(${b})`)}const y=await SC(o.url);if(l){y&&URL.revokeObjectURL(y);return}const _=y||o.url;y&&(n.current&&URL.revokeObjectURL(n.current),n.current=y);const g=new Image;if(g.src=_,await new Promise(b=>{g.onload=b,g.onerror=b}),l)return;h.style.transition="none",h.style.opacity="0",h.style.backgroundImage="",h.offsetHeight,h.style.backgroundImage=`url(${_})`,h.offsetHeight,h.style.transition=`opacity ${U_/1e3}s ease-in-out`,h.offsetHeight,h.style.opacity="1",d=setTimeout(()=>{u.style.backgroundImage=`url(${_})`,h.style.opacity="0",h.style.backgroundImage=""},U_+100)}else o.style?u.setAttribute("style",o.style):u.style.backgroundImage=""})(),()=>{l=!0,clearTimeout(d),n.current&&(URL.revokeObjectURL(n.current),n.current=null);const f=document.getElementById("backgroundOverlay");f&&f.remove()}},[o.url,o.style,o.video,o.photoInfo])}function jC(o){return k.useMemo(()=>({WebkitFilter:Kb()?"blur(0px) brightness(100%)":Rm()}),[o])}function DC(o){return k.useMemo(()=>Kb()?NC:Bm(),[o])}function OC(o,n){k.useEffect(()=>{const u=c=>{c==="welcomeLanguage"?localStorage.setItem("welcomeImage",JSON.stringify(o)):c==="background"?l():["backgroundwelcome","backgroundrefresh"].includes(c)?n():c==="backgroundeffect"&&d()},l=()=>{const c=document.getElementById(o.video?"backgroundVideo":"backgroundImage"),f=document.querySelector(".photoInformation");if(!(localStorage.getItem("background")!=="false")){c?.style.setProperty("display","none"),o.photoInfo?.hidden||f?.style.setProperty("display","none");return}c?.style.setProperty("display","block"),o.photoInfo?.hidden||f?.style.setProperty("display","flex");const h=localStorage.getItem("backgroundType");(h!==o.type&&!(o.photoInfo?.offline&&h===o.type)||o.type==="api"&&localStorage.getItem("backgroundAPI")!==o.currentAPI||h==="custom"&&o.type!=="custom"||h==="colour"||o.photoInfo?.pun&&JSON.parse(localStorage.getItem("backgroundExclude")||"[]").includes(o.photoInfo.pun))&&n()},d=()=>{if(document.documentElement.dataset.bgMaximised!=="true")if(o.video){const c=Rm(),f=document.getElementById("backgroundVideo");f&&(f.style.webkitFilter=c)}else{const c=document.getElementById("backgroundFilterOverlay");if(c){const f=Bm();c.style.backdropFilter=f.backdropFilter,c.style.webkitBackdropFilter=f.WebkitBackdropFilter,c.style.backgroundColor=f.backgroundColor}}};return _e.on("refresh",u),()=>_e.off("refresh",u)},[o,n])}function qC(){const{backgroundData:o,updateBackground:n,resetBackground:u}=gC(),{refreshBackground:l}=wC(n,u),d=jC(o),c=DC(o);return EC(o),OC(o,l),w.jsxs(w.Fragment,{children:[o.video?w.jsx(fC,{url:o.url,filterStyle:d}):w.jsx(mC,{photoInfo:o.photoInfo,currentAPI:o.currentAPI,url:o.url}),w.jsx("div",{id:"backgroundFilterOverlay",style:c})]})}const RC=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),BC=function(o,n){return new URL(o,n).href},P_={},Lm=function(n,u,l){let d=Promise.resolve();if(u&&u.length>0){let y=function(_){return Promise.all(_.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const f=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),h=p?.nonce||p?.getAttribute("nonce");d=y(u.map(_=>{if(_=BC(_,l),_ in P_)return;P_[_]=!0;const g=_.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(l)for(let C=f.length-1;C>=0;C--){const z=f[C];if(z.href===_&&(!g||z.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":RC,g||(S.as="script"),S.crossOrigin="",S.href=_,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((C,z)=>{S.addEventListener("load",C),S.addEventListener("error",()=>z(new Error(`Unable to preload CSS for ${_}`)))})}))}function c(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return d.then(f=>{for(const p of f||[])p.status==="rejected"&&c(p.reason);return n().catch(c)})};function Yb(o){if(o>3&&o<21)return o+"th";switch(o%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd";default:return o+"th"}}function Im(o,n){return new Date((typeof o=="string"?new Date(o):o).toLocaleString("en-US",{timeZone:n}))}function Wb(){const o=localStorage.getItem("language")?.replace(/_/g,"-")||"en-GB",n={ar:"arab",fa:"arabext",bn:"beng",hi:"deva",mr:"deva",ne:"deva",ta:"tamldec"},u=o.split("-")[0];return n[u]?`${o}-u-nu-${n[u]}`:o}function LC(o){if(localStorage.getItem("localeFormatting")==="false")return Math.round(o*100)+"%";try{return new Intl.NumberFormat(Wb(),{style:"percent",maximumFractionDigits:0}).format(o)}catch{return Math.round(o*100)+"%"}}function Es(o){if(localStorage.getItem("localeFormatting")==="false")return String(o);try{const u=typeof o=="string"?parseInt(o,10):o;return isNaN(u)?String(o):new Intl.NumberFormat(Wb(),{useGrouping:!1}).format(u)}catch{return String(o)}}const IC=k.lazy(()=>Lm(()=>import("./index-IXgZpYJT.js"),[],import.meta.url));function UC({time:o}){const n=u=>localStorage.getItem(u)==="true";return w.jsx(k.Suspense,{fallback:w.jsx(w.Fragment,{}),children:w.jsx("div",{className:`clockBackground ${n("roundClock")?"round":""}`,children:w.jsx(IC,{className:"analogclock clock-container",value:o,size:1.5*Number(localStorage.getItem("zoomClock")||100),renderMinuteMarks:n("minuteMarks"),renderHourMarks:n("hourMarks"),renderSecondHand:n("secondHand"),renderMinuteHand:n("minuteHand"),renderHourHand:n("hourHand")})})})}function PC({finalHour:o,finalMinute:n,finalSeconds:u}){const l=localStorage.getItem("hourColour")||"#fff",d=localStorage.getItem("minuteColour")||"#fff",c=localStorage.getItem("secondColour")||"#fff";return w.jsxs("span",{className:"vertical-clock clock-container",children:[w.jsx("div",{className:"hour",style:{color:l},children:o}),w.jsx("div",{className:"minute",style:{color:d},children:n}),w.jsx("div",{className:"seconds",style:{color:c},children:u})]})}const Yt=o=>String(o).split("").map(u=>Es(u)).join(""),HC=()=>{const[o]=k.useState(localStorage.getItem("timeType")),[n,u]=k.useState(""),[l,d]=k.useState(""),[c,f]=k.useState(""),[p,h]=k.useState(""),[y,_]=k.useState(""),[g,b]=k.useState("block"),[S,C]=k.useState("4em"),z=k.useRef(void 0),A=(E=localStorage.getItem("seconds")==="true"||localStorage.getItem("timeType")==="analogue"?1e3-Date.now()%1e3:6e4-Date.now()%6e4)=>{z.current=setTimeout(()=>{let x=new Date;const L=localStorage.getItem("timezone");switch(L&&L!=="auto"&&(x=Im(x,L)),localStorage.getItem("timeType")){case"percentageComplete":u(LC(x.getHours()/24)),_("");break;case"analogue":Lm(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),u(x);break;default:{let G,Z="";const H=localStorage.getItem("zero");if(localStorage.getItem("seconds")==="true"){const D=("00"+x.getSeconds()).slice(-2);Z=`:${Yt(D)}`,h(Yt(D))}else h("");if(localStorage.getItem("timeformat")==="twentyfourhour"){const D=("00"+x.getMinutes()).slice(-2);if(H==="true"){const q=("00"+x.getHours()).slice(-2);G=`${Yt(q)}:${Yt(D)}${Z}`,d(Yt(q)),f(Yt(D))}else{const q=x.getHours();G=`${Es(q)}:${Yt(D)}${Z}`,d(Es(q)),f(Yt(D))}u(G),_("")}else{let D=x.getHours();D>12?D-=12:D===0&&(D=12);const q=("00"+x.getMinutes()).slice(-2);if(H==="true"){const V=("00"+D).slice(-2);G=`${Yt(V)}:${Yt(q)}${Z}`,d(Yt(V)),f(Yt(q))}else G=`${Es(D)}:${Yt(q)}${Z}`,d(Es(D)),f(Yt(q));u(G),_(x.getHours()>11?"PM":"AM")}break}}A()},E)};return k.useEffect(()=>{const E=x=>{if(x==="clock"||x==="timezone"){if(localStorage.getItem("time")==="false"){b("none");return}clearTimeout(z.current),z.current=null,A(0),b("block"),C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`)}};return localStorage.getItem("timeType")!=="analogue"&&C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`),A(0),_e.on("refresh",E),()=>{_e.off("refresh",E),z.current&&clearTimeout(z.current)}},[]),localStorage.getItem("timeType")==="analogue"?w.jsx(UC,{time:n}):localStorage.getItem("timeType")==="verticalClock"?w.jsx(PC,{finalHour:l,finalMinute:c,finalSeconds:p}):w.jsxs("span",{className:"clock clock-container",style:{display:g,fontSize:S},children:[n,w.jsx("span",{className:"ampm",children:y})]})},FC=(o,n)=>{if(!(localStorage.getItem("events")!=="false"))return n;const l=o.getMonth(),d=o.getDate(),f=JSON.parse(localStorage.getItem("customEvents")||"[]").find(p=>p.month-1===l&&p.date===d);return f&&(n=f.name),n},H_=o=>{const n=Date.now()-o.getTime(),u=new Date(n);return Math.abs(u.getUTCFullYear()-1970)},VC=()=>{const o=Qo(),[n,u]=k.useState(""),[l,d]=k.useState("block"),[c,f]=k.useState("1.6em"),p=k.useRef(),h=k.useRef(null),y=(_=6e4-Date.now()%6e4)=>{h.current=setTimeout(()=>{let g=new Date;const b=localStorage.getItem("timezone");b&&b!=="auto"&&(g=Im(g,b));const S=g.getHours();let C;switch(!0){case S<12:C=o("widgets.greeting.morning");break;case S<18:C=o("widgets.greeting.afternoon");break;default:C=o("widgets.greeting.evening");break}const z=localStorage.getItem("defaultGreetingMessage");z==="false"?C="":C=FC(g,C);let A="";const E=localStorage.getItem("greetingName");typeof E=="string"&&E.replace(/\s/g,"").length>0&&(A=`, ${E.trim()}`);const x=localStorage.getItem("birthdayenabled");if(z==="false"&&x!=="true"&&(A=A.replace(",","")),x==="true"){const L=new Date(localStorage.getItem("birthday"));if(L.getDate()===g.getDate()&&L.getMonth()===g.getMonth())if(localStorage.getItem("birthdayage")==="true"&&H_(L)!==0){const G=o("widgets.greeting.birthday").split(" ");C=`${G[0]} ${Yb(H_(L))} ${G[1]}`}else C=o("widgets.greeting.birthday")}u(`${C}${A}`),y()},_)};return k.useEffect(()=>{const _=b=>{if(b==="greeting"||b==="timezone"){const S=localStorage.getItem("greeting"),C=localStorage.getItem("zoomGreeting");d(S==="false"?"none":"block"),f(`${1.6*Number((C||100)/100)}em`),S!=="false"&&(h.current&&clearTimeout(h.current),y(0))}},g=localStorage.getItem("zoomGreeting");return f(`${1.6*Number((g||100)/100)}em`),y(0),_e.on("refresh",_),()=>{_e.off("refresh",_),h.current&&clearTimeout(h.current)}},[o]),w.jsx("span",{className:"greeting",ref:p,style:{display:l,fontSize:c},children:n})},GC="wbNewtabHandoff:",au=o=>`${GC}${o}`,KC=4e3,ou=()=>typeof browser<"u"&&typeof browser?.sidebarAction?.open=="function",Us=()=>ou()?browser:typeof chrome<"u"&&chrome?.runtime?.id?chrome:null;let Vl=null;async function YC(){let o=null;try{o=await Us()?.tabs?.getCurrent?.()??null}catch{o=null}return o?.id!=null&&await ZC(Us(),o.id),Vl=o,Vl}function WC({text:o,mode:n,tabId:u,now:l=Date.now()}){return{id:`nt-${l}-${Math.random().toString(36).slice(2,8)}`,tabId:u,text:String(o).slice(0,KC),mode:n==="act"?"act":"ask",createdAt:l}}const Qb=16e4,Wo=new Map;function Zb(o){let n;const u=new Promise(d=>{n=d}),l=()=>{Wo.get(o)?.promise===u&&Wo.delete(o),n()};return Wo.set(o,{promise:u,release:l}),l}const QC=o=>Wo.has(o);function F_(o=Vl){return Wo.get(o?.id)?.promise??Promise.resolve()}async function ZC(o,n,u=Date.now()){if(!o?.storage?.local?.get||Wo.has(n))return!1;const l=au(n);let d;try{d=(await o.storage.local.get(l))?.[l]}catch{return!1}if(!d||Wo.has(n))return!1;const c=Qb-(u-Number(d.createdAt||0));return c>0?(Xb(o,n,Zb(n),c),!0):!1}function Xb(o,n,u,l=Qb){const d=au(n);let c;const f=(h,y)=>{(!y||y==="local")&&h?.[d]&&!h[d].newValue&&p()};function p(){clearTimeout(c),o.storage.onChanged?.removeListener?.(f),u()}c=setTimeout(p,l),o.storage.onChanged?.addListener?.(f),Promise.resolve(o.storage.local.get?.(d)).then(h=>{h?.[d]||p()}).catch(()=>{})}function XC({text:o,mode:n},u=Us(),l=Vl){if(!u||l?.id==null)return Promise.reject(new Error("Extension API unavailable"));if(Wo.has(l.id))return Promise.reject(new Error("Previous task is still being handed over"));const d=ou();if(!d&&!u.sidePanel?.open)return Promise.reject(new Error("Side panel API unavailable"));const c=Zb(l.id),f=WC({text:o,mode:n,tabId:l.id});let p,h;try{p=Promise.resolve(u.storage.local.set({[au(l.id)]:f})),d?h=u.sidebarAction.open():(Promise.resolve(u.sidePanel.setOptions({tabId:l.id,path:"src/ui/sidepanel.html",enabled:!0})).catch(()=>{}),h=u.sidePanel.open({tabId:l.id}))}catch(y){h=Promise.reject(y),p??=Promise.resolve()}return Promise.all([p,h]).then(()=>(Xb(u,l.id,c),Promise.resolve(u.runtime.sendMessage({type:"WB_NEWTAB_PANEL_OPENED",tabId:l.id})).catch(()=>{}),!0),async y=>{throw await p.catch(()=>{}),await JC(u,l.id,f.id),c(),y})}async function JC(o,n,u){const l=au(n);try{const d=(await o.storage.local.get(l))?.[l];(!d||d.id===u)&&await o.storage.local.remove(l)}catch{}}function $C(o=Us()){return ou()?typeof o?.search?.search=="function":typeof o?.search?.query=="function"}const V_=new Set(["http:","https:"]);function ex(o){const n=String(o||"").trim();if(!n||/\s/.test(n))return null;try{const u=new URL(n);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n))return V_.has(u.protocol)?u.href:null}catch{}if(/^(localhost|(\d{1,3}\.){3}\d{1,3}|([a-z0-9-]+\.)+[a-z]{2,})(:\d+)?([/?#]\S*)?$/i.test(n))try{const u=new URL(`https://${n}`);return V_.has(u.protocol)?u.href:null}catch{return null}return null}async function tx(o,n=Us(),u=l=>window.location.assign(l)){const l=ex(o);if(l)return u(l),!0;if(ou()&&n?.search?.search)return await n.search.search({query:o,disposition:"CURRENT_TAB"}),!0;if(n?.search?.query)return await n.search.query({text:o,disposition:"CURRENT_TAB"}),!0;throw new Error("Search API unavailable")}const ax=[{id:"ask",icon:BA},{id:"act",icon:Ob},{id:"search",icon:qm}],Jb=()=>ax.filter(o=>o.id!=="search"||$C()),ox=()=>{const o=localStorage.getItem("taskBoxMode");return Jb().some(n=>n.id===o)?o:"ask"};function ix(){const[o,n]=k.useState(ox),[u,l]=k.useState(""),[d,c]=k.useState(""),[f,p]=k.useState(!1),h=k.useRef(null),y=k.useRef(!1);k.useEffect(()=>{let g=!0;return YC().then(b=>{g&&b?.id!=null&&QC(b.id)&&(p(!0),F_(b).then(()=>g&&p(!1)))}),localStorage.getItem("taskBoxFocus")!=="false"&&h.current?.focus(),()=>{g=!1}},[]);const _=g=>{g.preventDefault();const b=u.trim();if(!(!b||f||y.current)){if(c(""),o==="search"){tx(b).catch(()=>c(ya("wb.panel_failed")));return}y.current=!0,p(!0),XC({text:b,mode:o}).then(()=>(l(""),F_())).catch(()=>c(ya("wb.panel_failed"))).finally(()=>{y.current=!1,p(!1),h.current?.focus()})}};return w.jsxs("div",{className:"taskBox",children:[w.jsxs("form",{className:"taskBoxForm",onSubmit:_,children:[w.jsx("input",{ref:h,className:"taskBoxInput",type:"text",value:u,maxLength:4e3,autoComplete:"off",spellCheck:!1,placeholder:ya(`wb.placeholder_${o}`),"aria-label":ya(`wb.placeholder_${o}`),disabled:f,onChange:g=>l(g.target.value)}),w.jsx("button",{className:"taskBoxGo",type:"submit","aria-label":ya("wb.go"),disabled:f||!u.trim(),children:w.jsx(Db,{})})]}),w.jsx("div",{className:"taskBoxModes",role:"radiogroup",children:Jb().map(({id:g,icon:b})=>w.jsxs("button",{type:"button",role:"radio","aria-checked":o===g,className:o===g?"taskBoxMode active":"taskBoxMode",onClick:()=>{n(g),h.current?.focus()},children:[w.jsx(b,{}),w.jsx("span",{children:ya(`wb.${g}`)})]},g))}),o==="act"&&w.jsx("span",{className:"taskBoxHint",children:ya("wb.act_hint")}),d&&w.jsx("span",{className:"taskBoxHint taskBoxError",role:"alert",children:d})]})}const G_="webbrain_chat_history",tm="records";async function nx(o=4,n=globalThis.indexedDB){if(!n?.databases)return[];if(!(await n.databases()).some(d=>d.name===G_))return[];const l=await new Promise((d,c)=>{const f=n.open(G_);f.onupgradeneeded=()=>f.transaction.abort(),f.onsuccess=()=>d(f.result),f.onerror=()=>c(f.error),f.onblocked=()=>c(new Error("blocked"))});try{return l.objectStoreNames.contains(tm)?await new Promise((d,c)=>{const f=[],p=l.transaction([tm],"readonly").objectStore(tm),y=(p.indexNames.contains("updatedAt")?p.index("updatedAt"):p).openCursor(null,"prev");y.onsuccess=()=>{const _=y.result;if(!_||f.length>=o)return d(f);const{id:g,title:b,url:S,updatedAt:C}=_.value;f.push({id:g,title:String(b||"").slice(0,140),url:String(S||""),updatedAt:C}),_.continue()},y.onerror=()=>c(y.error)}):[]}finally{l.close()}}const K_="../src/ui/history.html";function sx(){const[o,n]=k.useState(null);return k.useEffect(()=>{let u=!1;return nx(4).then(l=>!u&&n(l)).catch(()=>!u&&n([])),()=>{u=!0}},[]),o===null?null:w.jsxs("div",{className:"recentChats",children:[w.jsxs("div",{className:"recentChatsHeader",children:[w.jsx("span",{children:ya("wb.recent_title")}),w.jsx("a",{href:K_,children:ya("wb.recent_all")})]}),o.length===0?w.jsx("span",{className:"recentChatsEmpty",children:ya("wb.recent_empty")}):w.jsx("ul",{children:o.map(u=>w.jsx("li",{children:w.jsx("a",{href:`${K_}?id=${encodeURIComponent(u.id)}`,children:u.title||u.url})},u.id))})]})}const wm=Math.min,An=Math.max,Gl=Math.round,ho=o=>({x:o,y:o}),rx={left:"right",right:"left",bottom:"top",top:"bottom"};function lx(o,n,u){return An(o,wm(n,u))}function iu(o,n){return typeof o=="function"?o(n):o}function zn(o){return o.split("-")[0]}function nu(o){return o.split("-")[1]}function $b(o){return o==="x"?"y":"x"}function ey(o){return o==="y"?"height":"width"}function Ko(o){const n=o[0];return n==="t"||n==="b"?"y":"x"}function ty(o){return $b(Ko(o))}function ux(o,n,u){u===void 0&&(u=!1);const l=nu(o),d=ty(o),c=ey(d);let f=d==="x"?l===(u?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Kl(f)),[f,Kl(f)]}function dx(o){const n=Kl(o);return[Sm(o),n,Sm(n)]}function Sm(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}const Y_=["left","right"],W_=["right","left"],cx=["top","bottom"],mx=["bottom","top"];function px(o,n,u){switch(o){case"top":case"bottom":return u?n?W_:Y_:n?Y_:W_;case"left":case"right":return n?cx:mx;default:return[]}}function fx(o,n,u,l){const d=nu(o);let c=px(zn(o),u==="start",l);return d&&(c=c.map(f=>f+"-"+d),n&&(c=c.concat(c.map(Sm)))),c}function Kl(o){const n=zn(o);return rx[n]+o.slice(n.length)}function gx(o){var n,u,l,d;return{top:(n=o.top)!=null?n:0,right:(u=o.right)!=null?u:0,bottom:(l=o.bottom)!=null?l:0,left:(d=o.left)!=null?d:0}}function hx(o){return typeof o!="number"?gx(o):{top:o,right:o,bottom:o,left:o}}function Yl(o){const{x:n,y:u,width:l,height:d}=o;return{width:l,height:d,top:u,left:n,right:n+l,bottom:u+d,x:n,y:u}}function Q_(o,n,u){let{reference:l,floating:d}=o;const c=Ko(n),f=ty(n),p=ey(f),h=zn(n),y=c==="y",_=l.x+l.width/2-d.width/2,g=l.y+l.height/2-d.height/2,b=l[p]/2-d[p]/2;let S;switch(h){case"top":S={x:_,y:l.y-d.height};break;case"bottom":S={x:_,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y:g};break;case"left":S={x:l.x-d.width,y:g};break;default:S={x:l.x,y:l.y}}const C=nu(n);return C&&(S[f]+=b*(C==="end"?1:-1)*(u&&y?-1:1)),S}async function _x(o,n){var u;n===void 0&&(n={});const{x:l,y:d,platform:c,rects:f,elements:p,strategy:h}=o,{boundary:y="clippingAncestors",rootBoundary:_="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=iu(n,o),C=hx(S),A=p[b?g==="floating"?"reference":"floating":g],E=Yl(await c.getClippingRect({element:(u=await(c.isElement==null?void 0:c.isElement(A)))==null||u?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:y,rootBoundary:_,strategy:h})),x=g==="floating"?{x:l,y:d,width:f.floating.width,height:f.floating.height}:f.reference,L=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),G=await(c.isElement==null?void 0:c.isElement(L))&&await(c.getScale==null?void 0:c.getScale(L))||{x:1,y:1},Z=Yl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:x,offsetParent:L,strategy:h}):x);return{top:(E.top-Z.top+C.top)/G.y,bottom:(Z.bottom-E.bottom+C.bottom)/G.y,left:(E.left-Z.left+C.left)/G.x,right:(Z.right-E.right+C.right)/G.x}}const vx=50,bx=async(o,n,u)=>{const{placement:l="bottom",strategy:d="absolute",middleware:c=[],platform:f}=u,p=f.detectOverflow?f:{...f,detectOverflow:_x},h=await(f.isRTL==null?void 0:f.isRTL(n));let y=await f.getElementRects({reference:o,floating:n,strategy:d}),{x:_,y:g}=Q_(y,l,h),b=l,S=0;const C={};for(let z=0;z<c.length;z++){const A=c[z];if(!A)continue;const{name:E,fn:x}=A,{x:L,y:G,data:Z,reset:H}=await x({x:_,y:g,initialPlacement:l,placement:b,strategy:d,middlewareData:C,rects:y,platform:p,elements:{reference:o,floating:n}});_=L??_,g=G??g,C[E]={...C[E],...Z},H&&S<vx&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(y=H.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:d}):H.rects),{x:_,y:g}=Q_(y,b,h)),z=-1)}return{x:_,y:g,placement:b,strategy:d,middlewareData:C}},yx=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var u,l;const{placement:d,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:y}=n,{mainAxis:_=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:z=!0,...A}=iu(o,n);if((u=c.arrow)!=null&&u.alignmentOffset)return{};const E=zn(d),x=Ko(p),L=zn(p)===p,G=await(h.isRTL==null?void 0:h.isRTL(y.floating)),Z=b||(L||!z?[Kl(p)]:dx(p)),H=C!=="none";!b&&H&&Z.push(...fx(p,z,C,G));const D=[p,...Z],q=await h.detectOverflow(n,A),V=[];let $=((l=c.flip)==null?void 0:l.overflows)||[];if(_&&V.push(q[E]),g){const X=ux(d,f,G);V.push(q[X[0]],q[X[1]])}if($=[...$,{placement:d,overflows:V}],!V.every(X=>X<=0)){var W,ee;const X=(((W=c.flip)==null?void 0:W.index)||0)+1,Y=D[X];if(Y&&(!(g==="alignment"?x!==Ko(Y):!1)||$.every(K=>Ko(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:Y}};let I=(ee=$.filter(T=>T.overflows[0]<=0).sort((T,K)=>T.overflows[1]-K.overflows[1])[0])==null?void 0:ee.placement;if(!I)switch(S){case"bestFit":{var ae;const T=(ae=$.filter(K=>{if(H){const ie=Ko(K.placement);return ie===x||ie==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ie=>ie>0).reduce((ie,ne)=>ie+ne,0)]).sort((K,ie)=>K[1]-ie[1])[0])==null?void 0:ae[0];T&&(I=T);break}case"initialPlacement":I=p;break}if(d!==I)return{reset:{placement:I}}}return{}}}},kx=new Set(["left","top"]);async function wx(o,n){const{placement:u,platform:l,elements:d}=o,c=await(l.isRTL==null?void 0:l.isRTL(d.floating)),f=zn(u),p=nu(u),h=Ko(u)==="y",y=kx.has(f)?-1:1,_=c&&h?-1:1,g=iu(n,o);let{mainAxis:b,crossAxis:S,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return p&&typeof C=="number"&&(S=p==="end"?C*-1:C),h?{x:S*_,y:b*y}:{x:b*y,y:S*_}}const Sx=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var u,l;const{x:d,y:c,placement:f,middlewareData:p}=n,h=await wx(n,o);return f===((u=p.offset)==null?void 0:u.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:d+h.x,y:c+h.y,data:{...h,placement:f}}}}},Mx=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:u,y:l,placement:d,platform:c}=n,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:x=>{let{x:L,y:G}=x;return{x:L,y:G}}},...y}=iu(o,n),_={x:u,y:l},g=await c.detectOverflow(n,y),b=Ko(d),S=$b(b);let C=_[S],z=_[b];const A=(x,L)=>lx(L+g[x==="y"?"top":"left"],L,L-g[x==="y"?"bottom":"right"]);f&&(C=A(S,C)),p&&(z=A(b,z));const E=h.fn({...n,[S]:C,[b]:z});return{...E,data:{x:E.x-u,y:E.y-l,enabled:{[S]:f,[b]:p}}}}}};function su(){return typeof window<"u"}function Tn(o){return ay(o)?(o.nodeName||"").toLowerCase():"#document"}function ra(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Zo(o){var n;return(n=(ay(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function ay(o){return su()?o instanceof Node||o instanceof ra(o).Node:!1}function Wa(o){return su()?o instanceof Element||o instanceof ra(o).Element:!1}function Xo(o){return su()?o instanceof HTMLElement||o instanceof ra(o).HTMLElement:!1}function Z_(o){return!su()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof ra(o).ShadowRoot}function ru(o){const{overflow:n,overflowX:u,overflowY:l,display:d}=Qa(o);return/auto|scroll|overlay|hidden|clip/.test(n+l+u)&&d!=="inline"&&d!=="contents"}function Ax(o){return/^(table|td|th)$/.test(Tn(o))}function lu(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}const Cx=/transform|translate|scale|rotate|perspective|filter/,xx=/paint|layout|strict|content/,Si=o=>!!o&&o!=="none";let am;function Um(o){const n=Wa(o)?Qa(o):o;return Si(n.transform)||Si(n.translate)||Si(n.scale)||Si(n.rotate)||Si(n.perspective)||!Pm()&&(Si(n.backdropFilter)||Si(n.filter))||Cx.test(n.willChange||"")||xx.test(n.contain||"")}function zx(o){let n=zi(o);for(;Xo(n)&&!Ps(n);){if(Um(n))return n;if(lu(n))return null;n=zi(n)}return null}function Pm(){return am==null&&(am=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),am}function Ps(o){return/^(html|body|#document)$/.test(Tn(o))}function Qa(o){return ra(o).getComputedStyle(o)}function uu(o){return Wa(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function zi(o){if(Tn(o)==="html")return o;const n=o.assignedSlot||o.parentNode||Z_(o)&&o.host||Zo(o);return Z_(n)?n.host:n}function oy(o){const n=zi(o);return Ps(n)?(o.ownerDocument||o).body:Xo(n)&&ru(n)?n:oy(n)}function iy(o,n,u){var l;n===void 0&&(n=[]);const d=oy(o),c=d===((l=o.ownerDocument)==null?void 0:l.body),f=ra(d);return c?(Mm(f),n.concat(f,f.visualViewport||[],ru(d)?d:[],[])):n.concat(d,iy(d,[]))}function Mm(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function ny(o){const n=Qa(o);let u=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const d=Xo(o),c=d?o.offsetWidth:u,f=d?o.offsetHeight:l,p=Gl(u)!==c||Gl(l)!==f;return p&&(u=c,l=f),{width:u,height:l,$:p}}function sy(o){return Wa(o)?o:o.contextElement}function Cn(o){const n=sy(o);if(!Xo(n))return ho(1);const u=n.getBoundingClientRect(),{width:l,height:d,$:c}=ny(n);let f=(c?Gl(u.width):u.width)/l,p=(c?Gl(u.height):u.height)/d;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const Tx=ho(0);function ry(o){const n=ra(o);return!Pm()||!n.visualViewport?Tx:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Nx(o,n,u){return n===void 0&&(n=!1),!!u&&n&&u===ra(o)}function Hs(o,n,u,l){n===void 0&&(n=!1),u===void 0&&(u=!1);const d=o.getBoundingClientRect(),c=sy(o);let f=ho(1);n&&(l?Wa(l)&&(f=Cn(l)):f=Cn(o));const p=Nx(c,u,l)?ry(c):ho(0);let h=(d.left+p.x)/f.x,y=(d.top+p.y)/f.y,_=d.width/f.x,g=d.height/f.y;if(c&&l){const b=ra(c),S=Wa(l)?ra(l):l;let C=b,z=Mm(C);for(;z&&S!==C;){const A=Cn(z),E=z.getBoundingClientRect(),x=Qa(z),L=E.left+(z.clientLeft+parseFloat(x.paddingLeft))*A.x,G=E.top+(z.clientTop+parseFloat(x.paddingTop))*A.y;h*=A.x,y*=A.y,_*=A.x,g*=A.y,h+=L,y+=G,C=ra(z),z=Mm(C)}}return Yl({width:_,height:g,x:h,y})}function du(o,n){const u=uu(o).scrollLeft;return n?n.left+u:Hs(Zo(o)).left+u}function ly(o,n){const u=o.getBoundingClientRect(),l=u.left+n.scrollLeft-du(o,u),d=u.top+n.scrollTop;return{x:l,y:d}}function Ex(o){let{elements:n,rect:u,offsetParent:l,strategy:d}=o;const c=d==="fixed",f=Zo(l),p=n?lu(n.floating):!1;if(l===f||p&&c)return u;let h={scrollLeft:0,scrollTop:0},y=ho(1);const _=ho(0),g=Xo(l);if((g||!c)&&((Tn(l)!=="body"||ru(f))&&(h=uu(l)),g)){const S=Hs(l);y=Cn(l),_.x=S.x+l.clientLeft,_.y=S.y+l.clientTop}const b=f&&!g&&!c?ly(f,h):ho(0);return{width:u.width*y.x,height:u.height*y.y,x:u.x*y.x-h.scrollLeft*y.x+_.x+b.x,y:u.y*y.y-h.scrollTop*y.y+_.y+b.y}}function jx(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function Dx(o){const n=uu(o),u=o.ownerDocument.body,l=An(o.scrollWidth,o.clientWidth,u.scrollWidth,u.clientWidth),d=An(o.scrollHeight,o.clientHeight,u.scrollHeight,u.clientHeight);let c=-n.scrollLeft+du(o);const f=-n.scrollTop;return Qa(u).direction==="rtl"&&(c+=An(o.clientWidth,u.clientWidth)-l),{width:l,height:d,x:c,y:f}}const Ox=25;function qx(o,n,u){u===void 0&&(u="viewport");const l=u==="layoutViewport",d=ra(o),c=Zo(o),f=d.visualViewport;let p=c.clientWidth,h=c.clientHeight,y=0,_=0;if(f){const b=!Pm()||n==="fixed";l?b||(y=-f.offsetLeft,_=-f.offsetTop):(p=f.width,h=f.height,b&&(y=f.offsetLeft,_=f.offsetTop))}if(du(c)<=0){const b=c.ownerDocument,S=b.body,C=getComputedStyle(S),z=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,A=Math.abs(c.clientWidth-S.clientWidth-z),E=getComputedStyle(c).scrollbarGutter==="stable both-edges"?A/2:A;E<=Ox&&(p-=E)}return{width:p,height:h,x:y,y:_}}function Rx(o,n){const u=Hs(o,!0,n==="fixed"),l=u.top+o.clientTop,d=u.left+o.clientLeft,c=Cn(o),f=o.clientWidth*c.x,p=o.clientHeight*c.y,h=d*c.x,y=l*c.y;return{width:f,height:p,x:h,y}}function X_(o,n,u){let l;if(n==="viewport"||n==="layoutViewport")l=qx(o,u,n);else if(n==="document")l=Dx(Zo(o));else if(Wa(n))l=Rx(n,u);else{const d=ry(o);l={x:n.x-d.x,y:n.y-d.y,width:n.width,height:n.height}}return Yl(l)}function Bx(o,n){const u=n.get(o);if(u)return u;let l=iy(o,[]).filter(p=>Wa(p)&&Tn(p)!=="body"),d=null;const c=Qa(o).position==="fixed";let f=c?zi(o):o;for(;Wa(f)&&!Ps(f);){const p=Qa(f),h=Um(f),y=d?d.position:c?"fixed":"";!h&&(y==="fixed"||y==="absolute"&&p.position==="static")?l=l.filter(g=>g!==f):d=p,f=zi(f)}return n.set(o,l),l}function Lx(o){let{element:n,boundary:u,rootBoundary:l,strategy:d}=o;const f=[...u==="clippingAncestors"?lu(n)?[]:Bx(n,this._c):[].concat(u),l],p=X_(n,f[0],d);let h=p.top,y=p.right,_=p.bottom,g=p.left;for(let b=1;b<f.length;b++){const S=X_(n,f[b],d);h=An(S.top,h),y=wm(S.right,y),_=wm(S.bottom,_),g=An(S.left,g)}return{width:y-g,height:_-h,x:g,y:h}}function Ix(o){const{width:n,height:u}=ny(o);return{width:n,height:u}}function Ux(o,n,u){const l=Xo(n),d=Zo(n),c=u==="fixed",f=Hs(o,!0,c,n);let p={scrollLeft:0,scrollTop:0};const h=ho(0);if((l||!c)&&((Tn(n)!=="body"||ru(d))&&(p=uu(n)),l)){const b=Hs(n,!0,c,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}!l&&d&&(h.x=du(d));const y=d&&!l&&!c?ly(d,p):ho(0),_=f.left+p.scrollLeft-h.x-y.x,g=f.top+p.scrollTop-h.y-y.y;return{x:_,y:g,width:f.width,height:f.height}}function om(o){return Qa(o).position==="static"}function J_(o,n){if(!Xo(o)||Qa(o).position==="fixed")return null;if(n)return n(o);let u=o.offsetParent;return Zo(o)===u&&(u=u.ownerDocument.body),u}function uy(o,n){const u=ra(o);if(lu(o))return u;if(!Xo(o)){let d=zi(o);for(;d&&!Ps(d);){if(Wa(d)&&!om(d))return d;d=zi(d)}return u}let l=J_(o,n);for(;l&&Ax(l)&&om(l);)l=J_(l,n);return l&&Ps(l)&&om(l)&&!Um(l)?u:l||zx(o)||u}const Px=async function(o){const n=this.getOffsetParent||uy,u=this.getDimensions,l=await u(o.floating);return{reference:Ux(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Hx(o){return Qa(o).direction==="rtl"}const Fx={convertOffsetParentRelativeRectToViewportRelativeRect:Ex,getDocumentElement:Zo,getClippingRect:Lx,getOffsetParent:uy,getElementRects:Px,getClientRects:jx,getDimensions:Ix,getScale:Cn,isElement:Wa,isRTL:Hx},Vx=Sx,Gx=Mx,Kx=yx,Yx=(o,n,u)=>{const l=new Map,d=u??{},c={...Fx,...d.platform,_c:l};return bx(o,n,{...d,platform:c})};var Mn=jm(),Wx=typeof document<"u",Qx=function(){},ql=Wx?k.useLayoutEffect:Qx;function Wl(o,n){if(o===n)return!0;if(typeof o!=typeof n)return!1;if(typeof o=="function"&&o.toString()===n.toString())return!0;let u,l,d;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(u=o.length,u!==n.length)return!1;for(l=u;l--!==0;)if(!Wl(o[l],n[l]))return!1;return!0}if(d=Object.keys(o),u=d.length,u!==Object.keys(n).length)return!1;for(l=u;l--!==0;)if(!{}.hasOwnProperty.call(n,d[l]))return!1;for(l=u;l--!==0;){const c=d[l];if(!(c==="_owner"&&o.$$typeof)&&!Wl(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function dy(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function $_(o,n){const u=dy(o);return Math.round(n*u)/u}function im(o){const n=k.useRef(o);return ql(()=>{n.current=o}),n}function cu(o){o===void 0&&(o={});const{placement:n="bottom",strategy:u="absolute",middleware:l=[],platform:d,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:y}=o,[_,g]=k.useState({x:0,y:0,strategy:u,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=k.useState(l);Wl(b,l)||S(l);const[C,z]=k.useState(null),[A,E]=k.useState(null),x=k.useCallback(K=>{K!==H.current&&(H.current=K,z(K))},[]),L=k.useCallback(K=>{K!==D.current&&(D.current=K,E(K))},[]),G=c||C,Z=f||A,H=k.useRef(null),D=k.useRef(null),q=k.useRef(_),V=h!=null,$=im(h),W=im(d),ee=im(y),ae=k.useCallback(()=>{if(!H.current||!D.current)return;const K={placement:n,strategy:u,middleware:b};W.current&&(K.platform=W.current),Yx(H.current,D.current,K).then(ie=>{const ne={...ie,isPositioned:ee.current!==!1};X.current&&!Wl(q.current,ne)&&(q.current=ne,Mn.flushSync(()=>{g(ne)}))})},[b,n,u,W,ee]);ql(()=>{y===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[y]);const X=k.useRef(!1);ql(()=>(X.current=!0,()=>{X.current=!1}),[]),ql(()=>{if(G&&(H.current=G),Z&&(D.current=Z),G&&Z){if($.current)return $.current(G,Z,ae);ae()}},[G,Z,ae,$,V]);const Y=k.useMemo(()=>({reference:H,floating:D,setReference:x,setFloating:L}),[x,L]),I=k.useMemo(()=>({reference:G,floating:Z}),[G,Z]),T=k.useMemo(()=>{const K={position:u,left:0,top:0};if(!I.floating)return K;const ie=$_(I.floating,_.x),ne=$_(I.floating,_.y);return p?{...K,transform:"translate("+ie+"px, "+ne+"px)",...dy(I.floating)>=1.5&&{willChange:"transform"}}:{position:u,left:ie,top:ne}},[u,p,I.floating,_.x,_.y]);return k.useMemo(()=>({..._,update:ae,refs:Y,elements:I,floatingStyles:T}),[_,ae,Y,I,T])}const Zx=(o,n)=>{const u=Vx(o);return{name:u.name,fn:u.fn,options:[o,n]}},mu=(o,n)=>{const u=Gx(o);return{name:u.name,fn:u.fn,options:[o,n]}},Xx=(o,n)=>{const u=Kx(o);return{name:u.name,fn:u.fn,options:[o,n]}};function Jx({children:o,title:n,style:u,placement:l,subtitle:d}){const[c,f]=k.useState(!1),[p,h]=k.useState(!1),[y,_]=k.useState(null),g=k.useRef(`tooltip-${Math.random()}`),b=k.useRef(null),{x:S,y:C,refs:z,strategy:A,placement:E}=cu({placement:l||"bottom",middleware:[Xx(),Zx(15),mu()],elements:{reference:y}}),x=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},L=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},G=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},Z=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},H=()=>!c&&!p?"initial":p?"close":"open";return w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"tooltip",style:u,onMouseEnter:x,onMouseLeave:L,onFocus:G,onBlur:Z,ref:_,"aria-describedby":g.current,children:o}),(c||p)&&w.jsxs("span",{ref:z.setFloating,style:{position:A,top:C??"",left:S??"",display:"flex",flexFlow:"column"},className:"tooltipTitle","data-status":H(),"data-placement":E,children:[n,w.jsx("span",{style:{fontSize:"8px"},children:d})]})]})}const ht=k.memo(Jx),Fs=k.forwardRef(({icon:o,label:n,type:u,iconPlacement:l,onClick:d,active:c,disabled:f,tooltipTitle:p,tooltipKey:h,href:y,style:_},g)=>{let b;switch(u){case"settings":b="btn-settings";break;case"secondary":b="btn-secondary";break;case"icon":b="btn-icon";break;case"navigation":b="btn-navigation";break;case"collection":b="btn-collection";break;case"linkIconButton":b="btn-icon";break;case"linkButton":b="btn-settings";break;default:b="btn-default"}l==="right"&&(b+=" flowReverse"),c&&(b+=` ${b}-active`);const S=w.jsxs("button",{className:b,onClick:d,ref:g,disabled:f,style:_,children:[o,n]}),C=w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:y,style:_,target:"_blank",rel:"noopener noreferrer",children:[o,n]}),z=w.jsx(ht,{title:p,children:w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:y,target:"_blank",rel:"noopener noreferrer",style:_,children:[o,n]})},h);switch(u){case"linkIconButton":return z;case"linkButton":return C;case"icon":return w.jsx(ht,{title:p,children:S},h);default:return S}});Fs.displayName="Button";function $x({urlError:o,iconError:n,addLink:u,closeModal:l,edit:d,editData:c,editLink:f}){const[p,h]=k.useState(d?c.name:""),[y,_]=k.useState(d?c.url:""),[g,b]=k.useState(d?c.icon:"");return w.jsxs("div",{className:"addLinkModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:d?pe.getMessage("widgets.quicklinks.edit"):pe.getMessage("widgets.quicklinks.new")}),w.jsx(ht,{title:pe.getMessage("modals.welcome.buttons.close"),children:w.jsx("div",{className:"close",onClick:()=>l(),children:w.jsx(Is,{})})})]}),w.jsxs("div",{className:"quicklinkModalTextbox",children:[w.jsx("input",{type:"text",className:"text-field-input",placeholder:pe.getMessage("widgets.quicklinks.name"),value:p,onChange:S=>h(S.target.value.replace(/(\r\n|\n|\r)/gm,"")),style:{gridColumn:"span 2"}}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:pe.getMessage("widgets.quicklinks.url"),value:y,onChange:S=>_(S.target.value.replace(/(\r\n|\n|\r)/gm,""))}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:pe.getMessage("widgets.quicklinks.icon"),value:g,onChange:S=>b(S.target.value.replace(/(\r\n|\n|\r)/gm,""))})]}),w.jsxs("div",{className:"addFooter",children:[w.jsxs("span",{className:"dropdown-error",children:[n," ",o]}),d?w.jsx(Fs,{type:"settings",onClick:()=>f(c,p,y,g),icon:w.jsx(q_,{}),label:pe.getMessage("modals.main.settings.sections.quicklinks.edit")}):w.jsx(Fs,{type:"settings",onClick:()=>u(p,y,g),icon:w.jsx(q_,{}),label:pe.getMessage("widgets.quicklinks.add")})]})]})}const CN=k.memo($x),e2=[{name:"time",value:!0},{name:"greeting",value:!0},{name:"background",value:!0},{name:"quote",value:!1},{name:"searchBar",value:!1},{name:"blur",value:0},{name:"brightness",value:90},{name:"zero",value:!0},{name:"events",value:!0},{name:"customBackground",value:""},{name:"greetingName",value:""},{name:"defaultGreetingMessage",value:!0},{name:"backgroundAPI",value:"mue"},{name:"copyButton",value:!1},{name:"installed",value:[]},{name:"searchEngine",value:"duckduckgo"},{name:"refresh",value:!1},{name:"view",value:!0},{name:"favouriteEnabled",value:!0},{name:"quoteShareButton",value:!1},{name:"favouriteQuoteEnabled",value:!1},{name:"showWelcome",value:!1},{name:"date",value:"false"},{name:"timeType",value:"digital"},{name:"dateFormat",value:"DMY"},{name:"shortFormat",value:"dots"},{name:"toastDisplayTime",value:2500},{name:"fontstyle",value:"normal"},{name:"fontweight",value:400},{name:"order",value:'["greeting", "time", "quicklinks", "date", "message"]'},{name:"theme",value:"auto"},{name:"backgroundType",value:"api"},{name:"timeformat",value:"twentyfourhour"},{name:"experimental",value:!1},{name:"debugtimeout",value:0},{name:"quicklinks",value:"[]"},{name:"quicklinksenabled",value:!1},{name:"weatherEnabled",value:!1},{name:"weatherType",value:2},{name:"tempformat",value:"celsius"},{name:"authorImg",value:!0},{name:"authorLink",value:!0},{name:"bgtransition",value:!0},{name:"backgroundVideoLoop",value:!0},{name:"backgroundVideoMute",value:!0},{name:"quicklinkstooltip",value:!0},{name:"notesEnabled",value:!0},{name:"showlocation",value:!0},{name:"minuteHand",value:!0},{name:"hourHand",value:!0},{name:"datezero",value:!0},{name:"autocompleteProvider",value:"google"},{name:"quoteType",value:"quote_pack"},{name:"backgroundFilter",value:"none"},{name:"apiQuality",value:"high"},{name:"photoInformation",value:!0},{name:"backgroundFilterAmount",value:0},{name:"stats",value:!1},{name:"statsData",value:"{}"},{name:"localeFormatting",value:!0},{name:"offlineMode",value:!0},{name:"animations",value:!0},{name:"textBorder",value:"new"},{name:"widgetStyle",value:"new"},{name:"backgroundExclude",value:"[]"},{name:"photoMap",value:!0},{name:"appsEnabled",value:!1},{name:"applinks",value:"[]"},{name:"customEvents",value:'[{"id":"widgets.greeting.christmas","name":"Merry Christmas","month":12,"date":25},{"id":"widgets.greeting.newyear","name":"Happy New Year","month":1,"date":1},{"id":"widgets.greeting.halloween","name":"Happy Halloween","month":10,"date":31}]'},{name:"authorDetails",value:!0},{name:"taskBox",value:!0},{name:"taskBoxMode",value:"ask"},{name:"taskBoxFocus",value:!0},{name:"recentChats",value:!1}],t2=[{name:"العربية",value:"ar"},{name:"مصرى",value:"arz"},{name:"Azərbaycan",value:"az"},{name:"تۆرکجه",value:"azb"},{name:"Bahasa Indonesia",value:"id_ID"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de_DE"},{name:"Ελληνικά",value:"el"},{name:"English (UK)",value:"en_GB"},{name:"English (US)",value:"en_US"},{name:"Español",value:"es"},{name:"Español (Latinoamérica)",value:"es_419"},{name:"Eesti",value:"et"},{name:"فارسی",value:"fa"},{name:"Français",value:"fr"},{name:"Magyar",value:"hu"},{name:"日本語",value:"ja"},{name:"Lietuvių",value:"lt"},{name:"Latviešu",value:"lv"},{name:"Nederlands",value:"nl"},{name:"Norsk",value:"no"},{name:"𐎱𐎠𐎼𐎿",value:"peo"},{name:"Pусский",value:"ru"},{name:"Português",value:"pt"},{name:"Português (Brasil)",value:"pt_BR"},{name:"Português (Portugal)",value:"pt_PT"},{name:"Slovenščina",value:"sl"},{name:"Svenska",value:"sv"},{name:"தமிழ்",value:"ta"},{name:"Türkçe",value:"tr_TR"},{name:"Українська",value:"uk"},{name:"Tiếng Việt",value:"vi"},{name:"中文 (简体)",value:"zh_CN"},{name:"中文 (繁體)",value:"zh_Hant"}];function Am(o){localStorage.clear(),e2.forEach(l=>localStorage.setItem(l.name,l.value));const n=t2.map(({value:l})=>l),u=navigator.languages&&navigator.languages.find(l=>l.replace("-","_")&&n.includes(l))||navigator.language.replace("-","_");n.includes(u)?localStorage.setItem("language",u):localStorage.setItem("language","en_GB"),localStorage.setItem("tabName",pe.getMessage("tabname")),o&&localStorage.setItem("showWelcome",!1),localStorage.setItem("firstRun",!0)}function a2(o,n="file",u="text/json"){typeof o=="object"&&(o=JSON.stringify(o,void 0,4));const l=new Blob([o],{type:u}),d=document.createEvent("MouseEvents"),c=document.createElement("a");c.href=window.URL.createObjectURL(l),c.download=n,c.dataset.downloadurl=[u,c.download,c.href].join(":"),d.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(d)}function nm(o){switch(localStorage.getItem("theme")){case"dark":document.body.classList.add("dark"),document.body.classList.remove("light");break;case"auto":window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.classList.add("dark"):(document.body.classList.remove("dark"),document.body.classList.add("light"));break;default:document.body.classList.add("light"),document.body.classList.remove("dark")}document.title=localStorage.getItem("tabName")||pe.getMessage("tabname"),o===!0&&["customcss","customfont"].forEach(c=>{try{document.head.removeChild(document.getElementById(c))}catch{}}),localStorage.getItem("animations")==="false"?document.body.classList.add("no-animations"):document.body.classList.remove("no-animations");const n=localStorage.getItem("textBorder");n==="true"?["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.add("textBorder")}catch{}}):["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.remove("textBorder")}catch{}}),n==="none"?document.getElementById("center").classList.add("no-textBorder"):document.getElementById("center").classList.remove("no-textBorder");const u=localStorage.getItem("customcss");u&&document.head.insertAdjacentHTML("beforeend",'<style id="customcss">'+u+"</style>");const l=localStorage.getItem("font");l&&document.head.insertAdjacentHTML("beforeend",`
+注意:如果你不喜歡「{category}」影像,你可以在背景來源設定中取消選擇該類別。`,confirm:"確認"},search:"搜尋",quicklinks:{new:"新增連結",edit:"編輯連結",name:"名稱",url:"網址",icon:"圖示(選擇性)",add:"增加",name_error:"必須提供名稱",url_error:"必須提供網址"},date:{week:"週"},weather:{not_found:"找不到",meters:"{amount} 公尺",extra_information:"額外資訊",feels_like:"感覺像 {amount}"},quote:{link_tooltip:"在維基百科上開啟",share:"分享",copy:"複製",favourite:"收藏",unfavourite:"取消收藏"},navbar:{tooltips:{refresh:"重新整理"},notes:{title:"筆記",placeholder:"在此輸入"},todo:{title:"待辦事項",pin:"釘選",add:"增加",no_todos:"無待辦事項"},apps:{title:"應用程式",no_apps:"找不到應用程式連結"}}},ZM=JSON.parse(`{"main":{"title":"選項","loading":"載入中…","file_upload_error":"檔案超過 2MB","navbar":{"settings":"設定","library":"附加元件","discover":"市場"},"error_boundary":{"title":"錯誤","message":"無法載入 Mue 的此元件","report_error":"傳送錯誤報告","sent":"已傳送!","refresh":"重新整理"},"settings":{"enabled":"已啟用","open_knowledgebase":"開啟知識庫","additional_settings":"附加設定","reminder":{"title":"注意","message":"為了使所有變更生效,必須重新整理頁面。"},"sections":{"header":{"more_info":"更多資訊","report_issue":"報告問題","enabled":"選擇是否顯示此小工具","size":"滑桿控制小部件的大小"},"time":{"title":"時間","format":"格式","type":"類型","type_subtitle":"選擇是否以數位格式、類比格式或當天完成百分比顯示時間","digital":{"title":"數位","subtitle":"變更數位時鐘的外觀","seconds":"秒","twentyfourhour":"24 小時制","twelvehour":"12 小時制","zero":"Zero-padded"},"analogue":{"title":"類比","subtitle":"變更類比時鐘的外觀","second_hand":"秒針","minute_hand":"分針","hour_hand":"時針","hour_marks":"小時刻度","minute_marks":"分鐘刻度","round_clock":"圓形背景"},"percentage_complete":"完成百分比","vertical_clock":{"title":"垂直時鐘","change_hour_colour":"變更小時文字顏色","change_minute_colour":"變更分鐘文字顏色","change_second_colour":"變更秒文字顏色"}},"date":{"title":"日期","week_number":"週數","day_of_week":"星期","datenth":"日期 th","type":{"short":"短","long":"長","subtitle":"Whether to display the date in long form or short form"},"type_settings":"Display settings and format for the selected date type","short_date":"Short date","short_format":"Short format","long_format":"Long format","short_separator":{"title":"Short separator","dots":"Dots","dash":"Dash","gaps":"Gaps","slashes":"Slashes"}},"quote":{"title":"Quote","additional":"Other settings to customise the style of the quote widget","author_link":"Author link","author_details":"作者詳細資訊","custom":"Custom quote","custom_subtitle":"Set your own custom quotes","no_quotes":"No quotes","author":"Author","custom_buttons":"Buttons","custom_author":"Custom author","author_img":"Show author image","add":"Add quote","source_subtitle":"Choose where to get quotes from","buttons":{"title":"Buttons","subtitle":"Choose which buttons to show on the quote","copy":"Copy","tweet":"Tweet","favourite":"Favourite"}},"greeting":{"title":"Greeting","events":{"0":"E","1":"v","2":"e","3":"n","4":"t","5":"s","title":"Events"},"events_description":"Control events on Mue such as birthdays.","enable_events":"Show messages on special days","default":"Default greeting message","name":"Name for greeting","birthday":"Birthday","birthday_subtitle":"Show a Happy Birthday message when it is your birthday","birthday_age":"Birthday age","birthday_date":"Birthday date","additional":"Settings for the greeting display","custom":"Custom events","event_name":"Event Name","day":"Day","month":"Month","no_events":"No Events","no_events_description":"Add Some Events","add_event":"Add Event"},"background":{"title":"Background","transition":"Fade-in transition","photo_information":"Show photo information","show_map":"Show location map on photo information if available","categories":"Categories","buttons":{"title":"Buttons","view":"Maximise","favourite":"Favourite","download":"Download"},"effects":{"title":"Effects","subtitle":"Add effects to the background images","blur":"Adjust blur","brightness":"Adjust brightness","filters":{"title":"Background filter","amount":"Filter amount","grayscale":"Grayscale","sepia":"Sepia","invert":"Invert","saturate":"Saturate","contrast":"Contrast"}},"type":{"title":"Type","api":"API","custom_image":"Custom image","custom_colour":"Custom colour/gradient","random_colour":"Random colour","random_gradient":"Random gradient"},"unsplash":{"title":"Unsplash Collection(s)","subtitle":"Select the collection(s) you want to use for your background","id":"Collection ID(s)","id_subtitle":"Enter a comma separated list of Unsplash IDs"},"source":{"title":"Source","subtitle":"Select where to get background images from","api":"Background API","custom_background":"Custom background","custom_colour":"Custom background colour","upload":"Upload","add_colour":"Add colour","add_background":"Add background","drop_to_upload":"Drop to upload","formats":"Available formats: {list}","select":"Or Select","add_url":"Add URL","disabled":"Disabled","loop_video":"Loop video","mute_video":"Mute video","quality":{"title":"Quality","original":"Original","high":"High Quality","normal":"Normal Quality","datasaver":"Data Saver"},"custom_title":"Custom Images","custom_description":"Select images from your local computer","remove":"Remove Image","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Display","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"Search","additional":"Additional options for search widget display and functionality","search_engine":"Search Engine","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"Custom Search URL","autocomplete":"Autocomplete","autocomplete_provider":"Autocomplete Provider","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"Voice search","dropdown":"Search Dropdown","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"Weather","location":"Location","auto":"Auto","widget_type":"Widget Type","temp_format":{"title":"Temperature format","celsius":"Celsius","fahrenheit":"Fahrenheit","kelvin":"Kelvin"},"extra_info":{"title":"Extra information","show_location":"Show location","show_description":"Show description","weather_description":"Weather description","cloudiness":"Cloudiness","humidity":"Humidity","visibility":"Visibility","wind_speed":"Wind speed","wind_direction":"Wind direction","min_temp":"Minimum temperature","max_temp":"Maximum temperature","atmospheric_pressure":"Atmospheric pressure"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"Quick Links","additional":"Additional settings for quick links display and functions","open_new":"Open in new tab","tooltip":"Tooltip","text_only":"Show text only","add_link":"Add Link","no_quicklinks":"No quick links","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"Message","add":"Add message","messages":"Messages","text":"Text","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"Appearance","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"Theme","description":"Change the theme of the Mue widgets and modals","auto":"Auto","light":"Light","dark":"Dark"},"navbar":{"title":"Navbar","widgets":"Navbar Widgets","notes":"Notes","refresh":"Refresh","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"None","page":"Page"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"Font","description":"Change the font used in Mue","custom":"Custom font","google":"Import from Google Fonts","weight":{"title":"Font weight","thin":"Thin","extra_light":"Extra Light","light":"Light","normal":"Normal","medium":"Medium","semi_bold":"Semi-Bold","bold":"Bold","extra_bold":"Extra-Bold"},"style":{"title":"Font style","normal":"Normal","italic":"Italic","oblique":"Oblique"}},"accessibility":{"title":"Accessibility","description":"Make Mue comfortable and accessible","animations":"Animations","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Toast Duration","milliseconds":"milliseconds"}},"order":{"title":"Widget Order"},"advanced":{"title":"Advanced","offline_mode":"Offline mode","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"Data","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Manage your data on Mue.","reset_modal":{"title":"WARNING","question":"Do you want to reset Mue?","information":"This will delete all data. If you wish to keep your data and preferences, please export them first.","cancel":"Cancel"},"customisation":"Customisation","custom_css":"Custom CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"Custom JS","tab_name":"Tab name","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"Time Zone","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"Automatic"},"experimental_warning":"Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"Stats","sections":{"tabs_opened":"Tabs opened","backgrounds_favourited":"Backgrounds favourited","backgrounds_downloaded":"Backgrounds downloaded","quotes_favourited":"Quotes favourited","quicklinks_added":"Quicklinks added","settings_changed":"Settings changed","addons_installed":"Add-ons installed"},"usage":"Usage Stats","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"Experimental","warning":"These settings have not been fully tested/implemented and may not work correctly!","developer":"Developer"},"language":{"title":"Language","quote":"Quote language","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Change Log","by":"By {author}"},"about":{"title":"About","version":{"title":"Version","checking_update":"Checking for update","update_available":"Update available","no_update":"No update available","offline_mode":"Cannot check for update in offline mode","error":{"title":"Failed to get update information","description":"An error occured"}},"contact_us":"Contact Us","support_mue":"Support Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"Resources used","bg_images":"Offline background images"},"contributors":"Contributors","supporters":"Supporters","no_supporters":"There are currently no Mue supporters","photographers":"Photographers","curators":"Add-on creators"}},"buttons":{"reset":"Reset","import":"Import","export":"Export","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"Photo Packs","quote_packs":"Quote Packs","preset_settings":"Preset Settings","no_items":"No items in this category","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"Overview","information":"Information","last_updated":"Last Updated","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"Version","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"Add To Mue","remove":"Remove","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"Looks like you're offline","description":"Please connect to the internet"}},"addons":{"added":"Added","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"Empty","description":"No addons are installed"},"sideload":{"title":"Sideload","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"Sort","newest":"Installed (Newest)","a_z":"Alphabetical (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Create","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Coming Soon...."}}},"update":{"title":"Update","offline":{"title":"Offline","description":"Cannot get update logs while in offline mode"},"error":{"title":"Error","description":"Could not connect to the server"}},"welcome":{"tip":"Quick Tip","sections":{"intro":{"title":"Welcome to Mue Tab","description":"Thank you for installing Mue, we hope you enjoy your time with our extension.","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"Choose your language","description":"Mue can be displayed the languages listed below. You can also add new translations on our"},"theme":{"title":"Select a theme","description":"Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.","tip":"Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"Import Settings","description":"Installing Mue on a new device? Feel free to import your old settings!","tip":"You can export your old settings by navigating to the Advanced tab in your old Mue setup. Then you need to click the export button which will download the JSON file. You can upload this file here to carry across your settings and preferences from your previous Mue installation."},"privacy":{"title":"Privacy Options","description":"Enable settings to further protect your privacy with Mue.","offline_mode_description":"Enabling offline mode will disable all requests to any service. This will result in online backgrounds, online quotes, marketplace, weather, quick links, change log and some about tab information to be disabled.","links":{"title":"Links","privacy_policy":"Privacy Policy","source_code":"Source Code"}},"final":{"title":"Final step","description":"Your Mue Tab experience is about to begin.","changes":"Changes","changes_description":"To change settings later click on the settings icon in the top right corner of your tab.","imported":"Imported {amount} settings"}},"buttons":{"next":"Next","preview":"Preview","previous":"Previous","close":"Close","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),XM={quote:"Quote copied",notes:"Notes copied",reset:"Reset successfully",installed:"Successfully installed",uninstalled:"Successfully removed",updated:"Successfully updated",error:"Something went wrong",imported:"Successfully imported",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Cb={tabname:WM,widgets:QM,modals:ZM,toasts:XM};function Dl(o){return new x0("en_GB",{ar:Wv,arz:Qv,az:Zv,azb:Xv,bn:Jv,de_DE:$v,el:eb,en_GB:tb,en_US:ab,es:ob,es_419:ib,et:nb,fa:sb,fr:rb,hu:lb,id_ID:ub,ja:db,lt:cb,lv:mb,nl:pb,no:fb,peo:gb,pt:hb,pt_BR:_b,ru:vb,sl:bb,sv:yb,ta:kb,tr_TR:wb,uk:Sb,vi:Mb,zh_CN:Ab,zh_Hant:Cb})}const JM={ar:Wv,arz:Qv,az:Zv,azb:Xv,bn:Jv,de_DE:$v,el:eb,en_GB:tb,en_US:ab,es:ob,es_419:ib,et:nb,fa:sb,fr:rb,hu:lb,id_ID:ub,ja:db,lt:cb,lv:mb,nl:pb,no:fb,peo:gb,pt:hb,pt_BR:_b,ru:vb,sl:bb,sv:yb,ta:kb,tr_TR:wb,uk:Sb,vi:Mb,zh_CN:Ab,zh_Hant:Cb},$M="https://webbrain.one",eA="https://webbrain.one/privacy",tA="https://github.com/esokullu/webbrain",aA="https://github.com/esokullu/webbrain/issues/new",oA="https://github.com/mue/mue",iA="7.6.0",nA="1.0.0",sA=Object.freeze(Object.defineProperty({__proto__:null,BUG_REPORT:aA,MUE_REPO_URL:oA,MUE_VERSION:iA,PRIVACY_URL:eA,REPO_URL:tA,VERSION:nA,WEBSITE_URL:$M},Symbol.toStringTag,{value:"Module"}));class rA{static async postEvent(){}static async tabLoad(){}}const pe={language:{},languagecode:"",stats:rA,constants:sA},lA={en:"en_GB",zh:"zh_CN",ar:"ar",bn:"bn",nl:"nl",fr:"fr",de:"de_DE",id:"id_ID",ja:"ja",fa:"fa",pt:"pt_BR",ru:"ru",es:"es",tr:"tr_TR",uk:"uk",vi:"vi"};function Dm(){let o;try{o=String(Ll?.getItem("wbLocale")||"").trim()}catch{o=""}return o||String(globalThis.navigator?.language||"en").slice(0,2).toLowerCase()}const uA=new Set(["ar","fa","he","ur"]);function dA(){const o=Dm(),n=String(o||"en").replace("_","-");return{lang:n,dir:uA.has(n.slice(0,2).toLowerCase())?"rtl":"ltr"}}function cA(){return lA[Dm()]||"en_GB"}const mA=["ask","act","search","placeholder_ask","placeholder_act","placeholder_search","go","act_hint","panel_failed","recent_title","recent_empty","recent_all","settings_taskbox","settings_taskbox_sub","settings_default_mode","settings_recent","settings_credits","settings_bundled_photos"],pA={en:["Ask","Act","Search","Ask WebBrain anything…","Tell WebBrain what to do…","Search or enter a URL","Go","WebBrain opens with your task ready. Press Enter there to run it.","Couldn't open the WebBrain panel. Click the WebBrain toolbar icon.","Recent chats","No chats yet","All history","Task box","Ask or act with WebBrain from the new tab.","Default mode","Show recent chats","Credits","Bundled photos"],es:["Preguntar","Actuar","Buscar","Pregunta lo que quieras a WebBrain…","Dile a WebBrain qué hacer…","Busca o escribe una URL","Ir","WebBrain se abre con tu tarea lista. Pulsa Intro allí para ejecutarla.","No se pudo abrir el panel de WebBrain. Haz clic en el icono de WebBrain de la barra.","Chats recientes","Aún no hay chats","Todo el historial","Cuadro de tareas","Pregunta o actúa con WebBrain desde la nueva pestaña.","Modo predeterminado","Mostrar chats recientes","Créditos","Fotos incluidas"],fr:["Demander","Agir","Rechercher","Posez n’importe quelle question à WebBrain…","Dites à WebBrain quoi faire…","Rechercher ou saisir une URL","OK","WebBrain s’ouvre avec votre tâche prête. Appuyez sur Entrée pour la lancer.","Impossible d’ouvrir le panneau WebBrain. Cliquez sur l’icône WebBrain de la barre d’outils.","Discussions récentes","Aucune discussion","Tout l’historique","Zone de tâche","Posez une question ou agissez avec WebBrain depuis le nouvel onglet.","Mode par défaut","Afficher les discussions récentes","Crédits","Photos incluses"],de:["Fragen","Handeln","Suchen","Frag WebBrain, was du willst…","Sag WebBrain, was zu tun ist…","Suchen oder URL eingeben","Los","WebBrain öffnet sich mit deiner Aufgabe. Drücke dort Enter, um sie auszuführen.","Das WebBrain-Panel konnte nicht geöffnet werden. Klicke auf das WebBrain-Symbol in der Symbolleiste.","Letzte Chats","Noch keine Chats","Gesamter Verlauf","Aufgabenfeld","Frage oder handle mit WebBrain direkt im neuen Tab.","Standardmodus","Letzte Chats anzeigen","Danksagungen","Mitgelieferte Fotos"],tr:["Sor","Yap","Ara","WebBrain’e her şeyi sor…","WebBrain’e ne yapacağını söyle…","Ara veya URL gir","Git","WebBrain, görevin hazır şekilde açılır. Çalıştırmak için orada Enter’a bas.","WebBrain paneli açılamadı. Araç çubuğundaki WebBrain simgesine tıkla.","Son sohbetler","Henüz sohbet yok","Tüm geçmiş","Görev kutusu","Yeni sekmeden WebBrain ile sor veya işlem yap.","Varsayılan mod","Son sohbetleri göster","Katkılar","Dahili fotoğraflar"],pt:["Perguntar","Agir","Pesquisar","Pergunte qualquer coisa ao WebBrain…","Diga ao WebBrain o que fazer…","Pesquise ou digite um URL","Ir","O WebBrain abre com sua tarefa pronta. Pressione Enter lá para executá-la.","Não foi possível abrir o painel do WebBrain. Clique no ícone do WebBrain na barra de ferramentas.","Conversas recentes","Ainda não há conversas","Todo o histórico","Caixa de tarefas","Pergunte ou aja com o WebBrain na nova guia.","Modo padrão","Mostrar conversas recentes","Créditos","Fotos incluídas"],ru:["Спросить","Действовать","Поиск","Спросите WebBrain о чём угодно…","Скажите WebBrain, что сделать…","Введите запрос или URL","Вперёд","WebBrain откроется с готовой задачей. Нажмите там Enter, чтобы запустить её.","Не удалось открыть панель WebBrain. Нажмите значок WebBrain на панели инструментов.","Недавние чаты","Чатов пока нет","Вся история","Поле задач","Спрашивайте и действуйте с WebBrain прямо на новой вкладке.","Режим по умолчанию","Показывать недавние чаты","Авторы и лицензии","Встроенные фото"],uk:["Запитати","Діяти","Пошук","Запитайте WebBrain про що завгодно…","Скажіть WebBrain, що зробити…","Введіть запит або URL","Вперед","WebBrain відкриється з готовим завданням. Натисніть там Enter, щоб запустити його.","Не вдалося відкрити панель WebBrain. Натисніть значок WebBrain на панелі інструментів.","Нещодавні чати","Чатів поки немає","Уся історія","Поле завдань","Запитуйте та виконуйте завдання з WebBrain просто на новій вкладці.","Режим за замовчуванням","Показувати нещодавні чати","Автори та ліцензії","Вбудовані фото"],zh:["提问","执行","搜索","向 WebBrain 提任何问题…","告诉 WebBrain 要做什么…","搜索或输入网址","前往","WebBrain 将带着你的任务打开。在那里按 Enter 即可运行。","无法打开 WebBrain 面板。请点击工具栏中的 WebBrain 图标。","最近的对话","还没有对话","全部历史","任务框","在新标签页中直接向 WebBrain 提问或下达任务。","默认模式","显示最近的对话","致谢","内置照片"],ja:["質問","実行","検索","WebBrain に何でも聞く…","WebBrain にやってほしいことを伝える…","検索または URL を入力","移動","タスクを入力した状態で WebBrain が開きます。そこで Enter を押すと実行されます。","WebBrain パネルを開けませんでした。ツールバーの WebBrain アイコンをクリックしてください。","最近のチャット","チャットはまだありません","すべての履歴","タスクボックス","新しいタブから WebBrain に質問したり操作を任せたりできます。","デフォルトのモード","最近のチャットを表示","クレジット","同梱の写真"],ko:["질문","실행","검색","WebBrain에게 무엇이든 물어보세요…","WebBrain에게 할 일을 알려주세요…","검색하거나 URL 입력","이동","작업이 입력된 상태로 WebBrain이 열립니다. 거기서 Enter를 누르면 실행됩니다.","WebBrain 패널을 열 수 없습니다. 도구 모음의 WebBrain 아이콘을 클릭하세요.","최근 대화","아직 대화가 없습니다","전체 기록","작업 상자","새 탭에서 바로 WebBrain에게 질문하거나 작업을 맡기세요.","기본 모드","최근 대화 표시","크레딧","기본 제공 사진"],ar:["اسأل","نفّذ","ابحث","اسأل WebBrain أي شيء…","أخبر WebBrain بما يجب فعله…","ابحث أو أدخل عنوان URL","انتقال","يفتح WebBrain ومعه مهمتك جاهزة. اضغط Enter هناك لتشغيلها.","تعذّر فتح لوحة WebBrain. انقر على أيقونة WebBrain في شريط الأدوات.","المحادثات الأخيرة","لا توجد محادثات بعد","السجل الكامل","مربع المهام","اسأل أو نفّذ مع WebBrain مباشرة من علامة التبويب الجديدة.","الوضع الافتراضي","إظهار المحادثات الأخيرة","الشكر والتقدير","الصور المضمّنة"],he:["שאלה","פעולה","חיפוש","שאלו את WebBrain כל דבר…","ספרו ל-WebBrain מה לעשות…","חפשו או הזינו כתובת URL","מעבר","WebBrain ייפתח כשהמשימה שלכם מוכנה. לחצו שם Enter כדי להריץ אותה.","לא ניתן היה לפתוח את לוח WebBrain. לחצו על סמל WebBrain בסרגל הכלים.","שיחות אחרונות","עדיין אין שיחות","כל ההיסטוריה","תיבת משימות","שאלו או פעלו עם WebBrain ישירות מהכרטיסייה החדשה.","מצב ברירת מחדל","הצגת שיחות אחרונות","קרדיטים","תמונות מובנות"],hi:["पूछें","करें","खोजें","WebBrain से कुछ भी पूछें…","WebBrain को बताएँ क्या करना है…","खोजें या URL दर्ज करें","जाएँ","WebBrain आपके कार्य के साथ खुलेगा। चलाने के लिए वहाँ Enter दबाएँ।","WebBrain पैनल नहीं खुल सका। टूलबार में WebBrain आइकन पर क्लिक करें।","हाल की चैट","अभी कोई चैट नहीं","पूरा इतिहास","कार्य बॉक्स","नए टैब से ही WebBrain से पूछें या काम करवाएँ।","डिफ़ॉल्ट मोड","हाल की चैट दिखाएँ","श्रेय","शामिल तस्वीरें"],id:["Tanya","Jalankan","Cari","Tanyakan apa saja ke WebBrain…","Beri tahu WebBrain apa yang harus dilakukan…","Cari atau masukkan URL","Buka","WebBrain terbuka dengan tugas Anda siap. Tekan Enter di sana untuk menjalankannya.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain di bilah alat.","Obrolan terbaru","Belum ada obrolan","Semua riwayat","Kotak tugas","Tanya atau jalankan tugas dengan WebBrain langsung dari tab baru.","Mode default","Tampilkan obrolan terbaru","Kredit","Foto bawaan"],ms:["Tanya","Laksana","Cari","Tanya apa sahaja kepada WebBrain…","Beritahu WebBrain apa yang perlu dilakukan…","Cari atau masukkan URL","Pergi","WebBrain dibuka dengan tugas anda sedia. Tekan Enter di sana untuk menjalankannya.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain pada bar alat.","Sembang terkini","Belum ada sembang","Semua sejarah","Kotak tugas","Tanya atau laksanakan tugas dengan WebBrain terus dari tab baharu.","Mod lalai","Tunjukkan sembang terkini","Kredit","Foto terbina dalam"],tl:["Magtanong","Gumawa","Maghanap","Magtanong ng kahit ano sa WebBrain…","Sabihin sa WebBrain kung ano ang gagawin…","Maghanap o maglagay ng URL","Pumunta","Magbubukas ang WebBrain na handa na ang iyong gawain. Pindutin ang Enter doon para patakbuhin ito.","Hindi mabuksan ang panel ng WebBrain. I-click ang icon ng WebBrain sa toolbar.","Mga kamakailang chat","Wala pang chat","Buong kasaysayan","Kahon ng gawain","Magtanong o mag-utos sa WebBrain mula mismo sa bagong tab.","Default na mode","Ipakita ang mga kamakailang chat","Mga kredito","Mga kasamang larawan"],pl:["Zapytaj","Wykonaj","Szukaj","Zapytaj WebBrain o cokolwiek…","Powiedz WebBrain, co ma zrobić…","Wyszukaj lub wpisz adres URL","Idź","WebBrain otworzy się z gotowym zadaniem. Naciśnij tam Enter, aby je uruchomić.","Nie udało się otworzyć panelu WebBrain. Kliknij ikonę WebBrain na pasku narzędzi.","Ostatnie czaty","Brak czatów","Cała historia","Pole zadań","Pytaj i zlecaj zadania WebBrain prosto z nowej karty.","Tryb domyślny","Pokaż ostatnie czaty","Autorzy i licencje","Dołączone zdjęcia"],th:["ถาม","ทำ","ค้นหา","ถามอะไรก็ได้กับ WebBrain…","บอก WebBrain ว่าต้องทำอะไร…","ค้นหาหรือป้อน URL","ไป","WebBrain จะเปิดพร้อมงานของคุณ กด Enter ที่นั่นเพื่อรัน","เปิดแผง WebBrain ไม่ได้ คลิกไอคอน WebBrain บนแถบเครื่องมือ","แชตล่าสุด","ยังไม่มีแชต","ประวัติทั้งหมด","ช่องงาน","ถามหรือสั่งงาน WebBrain ได้จากแท็บใหม่ทันที","โหมดเริ่มต้น","แสดงแชตล่าสุด","เครดิต","รูปภาพที่รวมมา"],vi:["Hỏi","Thực hiện","Tìm kiếm","Hỏi WebBrain bất cứ điều gì…","Nói với WebBrain cần làm gì…","Tìm kiếm hoặc nhập URL","Đi","WebBrain sẽ mở với tác vụ đã sẵn sàng. Nhấn Enter ở đó để chạy.","Không thể mở bảng WebBrain. Hãy nhấp vào biểu tượng WebBrain trên thanh công cụ.","Cuộc trò chuyện gần đây","Chưa có cuộc trò chuyện","Toàn bộ lịch sử","Hộp tác vụ","Hỏi hoặc giao việc cho WebBrain ngay từ tab mới.","Chế độ mặc định","Hiện cuộc trò chuyện gần đây","Ghi công","Ảnh đi kèm"],bn:["জিজ্ঞাসা","করুন","খুঁজুন","WebBrain-কে যেকোনো কিছু জিজ্ঞাসা করুন…","WebBrain-কে বলুন কী করতে হবে…","খুঁজুন বা URL লিখুন","যান","আপনার কাজ প্রস্তুত অবস্থায় WebBrain খুলবে। চালাতে সেখানে Enter চাপুন।","WebBrain প্যানেল খোলা যায়নি। টুলবারে WebBrain আইকনে ক্লিক করুন।","সাম্প্রতিক চ্যাট","এখনো কোনো চ্যাট নেই","সম্পূর্ণ ইতিহাস","টাস্ক বক্স","নতুন ট্যাব থেকেই WebBrain-কে জিজ্ঞাসা করুন বা কাজ দিন।","ডিফল্ট মোড","সাম্প্রতিক চ্যাট দেখান","কৃতজ্ঞতা","অন্তর্ভুক্ত ছবি"],fa:["بپرس","اجرا کن","جستجو","از WebBrain هر چیزی بپرسید…","به WebBrain بگویید چه کار کند…","جستجو کنید یا نشانی URL وارد کنید","برو","WebBrain با وظیفهٔ آمادهٔ شما باز می‌شود. برای اجرا، آن‌جا Enter را بزنید.","پنل WebBrain باز نشد. روی نماد WebBrain در نوار ابزار کلیک کنید.","گفتگوهای اخیر","هنوز گفتگویی نیست","کل تاریخچه","جعبهٔ وظیفه","از همین زبانهٔ جدید از WebBrain بپرسید یا کار بسپارید.","حالت پیش‌فرض","نمایش گفتگوهای اخیر","سپاس‌ها","عکس‌های همراه"],nl:["Vragen","Uitvoeren","Zoeken","Vraag WebBrain alles…","Zeg WebBrain wat te doen…","Zoek of voer een URL in","Ga","WebBrain opent met je taak klaar. Druk daar op Enter om te starten.","Het WebBrain-paneel kon niet worden geopend. Klik op het WebBrain-pictogram in de werkbalk.","Recente chats","Nog geen chats","Alle geschiedenis","Taakvak","Vraag of voer uit met WebBrain, direct vanaf het nieuwe tabblad.","Standaardmodus","Recente chats tonen","Met dank aan","Meegeleverde foto’s"]},ym=Object.fromEntries(Object.entries(pA).map(([o,n])=>[o,Object.fromEntries(mA.map((u,l)=>[`wb.${u}`,n[l]]))]));function ya(o,n=Dm()){return ym[n]?.[o]??ym.en[o]??o}const xb=o=>typeof o=="string"&&o.startsWith("wb.");function km(o=document.documentElement){const n=dA(),{lang:u,dir:l}=ym[n.lang]?n:{lang:"en",dir:"ltr"};return o.lang=u,o.dir=l,{lang:u,dir:l}}class _e{static listeners={};static register(n,u){this.listeners[n]||(this.listeners[n]=[]),u.first?this.listeners[n].unshift(u):this.listeners[n].push(u)}static on(n,u){const l=d=>u(d.detail);document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static emit(n,u){document.dispatchEvent(new CustomEvent(n,{detail:u}))}static off(n,u){if(typeof u!="function")return;const l=this.listeners[n]||[],d=l.filter(c=>c.callback===u||c.listener===u);d.forEach(c=>document.removeEventListener(n,c.listener,{capture:c.capture})),this.listeners[n]=l.filter(c=>!d.includes(c))}static once(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static prepend(n,u){const l=d=>u(d.detail);document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static prependOnce(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static getListeners(n){return this.listeners[n]||[]}static eventNames(){return Object.keys(this.listeners)}static removeAllListeners(){Object.keys(this.listeners).forEach(n=>{this.listeners[n].forEach(({listener:u,capture:l})=>{document.removeEventListener(n,u,{capture:l})})}),this.listeners={}}}const zb=k.createContext();function fA({children:o,initialLanguage:n}){const[u,l]=k.useState(n),d=k.useRef(Dl());k.useEffect(()=>{u!==n&&(d.current=Dl()),pe.language=d.current,pe.languagecode=u,km()},[u,n]);const c=k.useCallback(h=>{d.current=Dl(),pe.language=d.current,pe.languagecode=h,km();const y=localStorage.getItem("tabName"),_=d.current?.getMessage(u,"tabname");if(y===_||!y){const g=JM[h.replace("-","_")]?.tabname||d.current?.getMessage(h,"tabname")||"Mue";localStorage.setItem("tabName",g),document.title=g}localStorage.setItem("language",h),localStorage.removeItem("currentWeather"),l(h)},[u]),f=k.useCallback((h,y={})=>xb(h)?ya(h):d.current?d.current.getMessage(u,h,y):h,[u]);k.useEffect(()=>{const h=y=>{y?.language&&c(y.language)};return _e.on("languageChange",h),()=>{_e.off("languageChange",h)}},[c]),k.useEffect(()=>{pe.getMessage=(h,y={})=>f(h,y)},[f]);const p=k.useMemo(()=>({language:u,languagecode:u,changeLanguage:c,t:f}),[u,c,f]);return w.jsx(zb.Provider,{value:p,children:o})}function Tb(){const o=k.useContext(zb);if(!o)throw new Error("useTranslation must be used within a TranslationProvider");return o}function Qo(){const{t:o}=Tb();return o}function gA({info:o}){const n=Qo();return o.hidden===!0||!o.credit||localStorage.getItem("photoInformation")==="false"?null:w.jsx("div",{className:"photoInformation",style:{position:"absolute",left:"1rem",bottom:"1rem",padding:"4px 10px",borderRadius:"10px",fontSize:"0.8rem",color:"#fff",background:"rgba(0, 0, 0, 0.45)"},children:w.jsxs("span",{id:"credit",children:[n("widgets.background.credit")," ",o.credit]})})}const hA=k.memo(gA);var Nb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},j_=ve.createContext&&ve.createContext(Nb),_A=["attr","size","title"];function vA(o,n){if(o==null)return{};var u,l,d=bA(o,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(l=0;l<c.length;l++)u=c[l],n.indexOf(u)===-1&&{}.propertyIsEnumerable.call(o,u)&&(d[u]=o[u])}return d}function bA(o,n){if(o==null)return{};var u={};for(var l in o)if({}.hasOwnProperty.call(o,l)){if(n.indexOf(l)!==-1)continue;u[l]=o[l]}return u}function Il(){return Il=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var u=arguments[n];for(var l in u)({}).hasOwnProperty.call(u,l)&&(o[l]=u[l])}return o},Il.apply(null,arguments)}function D_(o,n){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);n&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),u.push.apply(u,l)}return u}function Ul(o){for(var n=1;n<arguments.length;n++){var u=arguments[n]!=null?arguments[n]:{};n%2?D_(Object(u),!0).forEach(function(l){yA(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):D_(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}function yA(o,n,u){return(n=kA(n))in o?Object.defineProperty(o,n,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[n]=u,o}function kA(o){var n=wA(o,"string");return typeof n=="symbol"?n:n+""}function wA(o,n){if(typeof o!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var l=u.call(o,n);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function Eb(o){return o&&o.map((n,u)=>ve.createElement(n.tag,Ul({key:u},n.attr),Eb(n.child)))}function le(o){return n=>ve.createElement(SA,Il({attr:Ul({},o.attr)},n),Eb(o.child))}function SA(o){var n=u=>{var l=o.attr,d=o.size,c=o.title,f=vA(o,_A),p=d||u.size||"1em",h;return u.className&&(h=u.className),o.className&&(h=(h?h+" ":"")+o.className),ve.createElement("svg",Il({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},u.attr,l,f,{className:h,style:Ul(Ul({color:o.color||u.color},u.style),o.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&ve.createElement("title",null,c),o.children)};return j_!==void 0?ve.createElement(j_.Consumer,null,u=>n(u)):n(Nb)}function MA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"4",r:"2"},child:[]},{tag:"path",attr:{d:"M15.89 8.11C15.5 7.72 14.83 7 13.53 7h-2.54C8.24 6.99 6 4.75 6 2H4c0 3.16 2.11 5.84 5 6.71V22h2v-6h2v6h2V10.05L18.95 14l1.41-1.41z"},child:[]}]})(o)}function $T(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 3H3c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5a2 2 0 0 0-2-2m0 14H3V5h18z"},child:[]}]})(o)}function eN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 10H7v2h10zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zm-5-5H7v2h7z"},child:[]}]})(o)}function Ls(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.96 7.96 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"},child:[]}]})(o)}function AA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"},child:[]}]})(o)}function jb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(o)}function Is(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(o)}function CA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(o)}function Om(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(o)}function tN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"},child:[]}]})(o)}function Db(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"},child:[]}]})(o)}function xA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"},child:[]}]})(o)}function zA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"},child:[]}]})(o)}function aN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"},child:[]}]})(o)}function TA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2m2 10H3v4c0 1.1.9 2 2 2h4v-2H5zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function NA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4z"},child:[]},{tag:"path",attr:{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 10-2.5-1.5L15 12V4h5z"},child:[]}]})(o)}function oN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"},child:[]}]})(o)}function iN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"},child:[]}]})(o)}function nN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"},child:[]}]})(o)}function EA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"},child:[]}]})(o)}function jA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"},child:[]}]})(o)}function Ob(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"},child:[]}]})(o)}function DA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4z"},child:[]}]})(o)}function sN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16zM4 15h16v-2H4z"},child:[]}]})(o)}function O_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"},child:[]}]})(o)}function qb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"},child:[]}]})(o)}function rN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11A4.99 4.99 0 0 0 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0"},child:[]}]})(o)}function OA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"},child:[]}]})(o)}function lN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"},child:[]}]})(o)}function qA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"},child:[]}]})(o)}function q_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0"},child:[]},{tag:"path",attr:{d:"M8 11h8v2H8zm12.1 1H22c0-2.76-2.24-5-5-5h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M19 12h-2v3h-3v2h3v3h2v-3h3v-2h-3z"},child:[]}]})(o)}function RA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function uN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"},child:[]}]})(o)}function BA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16z"},child:[]}]})(o)}function LA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8M6 13c0-1.65.67-3.15 1.76-4.24L6.34 7.34A8.01 8.01 0 0 0 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"},child:[]}]})(o)}function dN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95M12 19c-3.87 0-7-3.13-7-7 0-3.53 2.61-6.43 6-6.92V2.05c-5.06.5-9 4.76-9 9.95 0 5.52 4.47 10 9.99 10 3.31 0 6.24-1.61 8.06-4.09l-2.6-1.53A6.95 6.95 0 0 1 12 19"},child:[]}]})(o)}function IA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a9 9 0 0 0 0-18m0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"},child:[]}]})(o)}function cN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},child:[]}]})(o)}function mN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"},child:[]}]})(o)}function Rb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zM3 16h7v-2H3zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59z"},child:[]}]})(o)}function UA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2zM3 16h7v-2H3z"},child:[]}]})(o)}function PA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M19 3H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function HA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.87 15.07-2.54-2.51.03-.03A17.5 17.5 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"},child:[]}]})(o)}function pN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 10H6v-2h8zm4-4H6v-2h12z"},child:[]}]})(o)}function FA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"},child:[]}]})(o)}function qm(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},child:[]}]})(o)}function VA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function GA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"},child:[]}]})(o)}function KA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"},child:[]}]})(o)}function YA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"},child:[]}]})(o)}function WA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a6 6 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"},child:[]}]})(o)}function QA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 18 2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2"},child:[]}]})(o)}function R_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},child:[]}]})(o)}function fN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m9 7h-6v13h-2v-6h-2v6H9V9H3V7h18z"},child:[]}]})(o)}function B_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"},child:[]}]})(o)}function ZA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"},child:[]}]})(o)}function gN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zM11.5 9.5 9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"},child:[]}]})(o)}function hN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"},child:[]}]})(o)}function _N(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"},child:[]}]})(o)}function XA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18.62 18h-5.24l2-4H13V6h8v7.24zm-2-2h.76L19 12.76V8h-4v4h3.62zm-8 2H3.38l2-4H3V6h8v7.24zm-2-2h.76L9 12.76V8H5v4h3.62z"},child:[]}]})(o)}function JA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16zM7 9h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z"},child:[]}]})(o)}function $A(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-4.51 2.11.26 2.79-2.74.62-1.43 2.41L12 18.82l-2.58 1.11-1.43-2.41-2.74-.62.26-2.8L3.66 12l1.85-2.12-.26-2.78 2.74-.61 1.43-2.41L12 5.18l2.58-1.11 1.43 2.41 2.74.62-.26 2.79L20.34 12zM11 15h2v2h-2zm0-8h2v6h-2z"},child:[]}]})(o)}function vN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5 9.65 9.65 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6m-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14M2.01 3.87l2.68 2.68A11.74 11.74 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13m-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53"},child:[]}]})(o)}function bN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0 1 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"},child:[]}]})(o)}function eC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.6.6 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},child:[]}]})(o)}function tC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10.5 4.5c.28 0 .5.22.5.5v2h6v6h2c.28 0 .5.22.5.5s-.22.5-.5.5h-2v6h-2.12c-.68-1.75-2.39-3-4.38-3s-3.7 1.25-4.38 3H4v-2.12c1.75-.68 3-2.39 3-4.38S5.76 9.8 4.01 9.12L4 7h6V5c0-.28.22-.5.5-.5m0-2A2.5 2.5 0 0 0 8 5H4c-1.1 0-1.99.9-1.99 2v3.8h.29c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-.3c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7v.3H17c1.1 0 2-.9 2-2v-4a2.5 2.5 0 0 0 0-5V7c0-1.1-.9-2-2-2h-4a2.5 2.5 0 0 0-2.5-2.5"},child:[]}]})(o)}function aC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"},child:[]}]})(o)}function oC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"},child:[]}]})(o)}const Yo={SETTINGS:"settings"},Re={SETTINGS:zA,LIBRARY:QA,TASKBOX:Ob,DISCOVER:GA,NAVBAR:AA,GREETING:MA,TIME:IA,QUOTE:XA,QUICKLINKS:OA,DATE:YA,MESSAGE:JA,BACKGROUND:ZA,SEARCH:qm,WEATHER:jA,APPEARANCE:DA,LANGUAGE:HA,ADVANCED:eC,EXPERIMENTAL:WA,STATS:oC,CHANGELOG:$A,ABOUT:VA,ADDED:tC,CREATE:RA,OVERVIEW:PA,COLLECTIONS:NA},Fe={OVERVIEW:"modals.main.marketplace.product.overview",SETTINGS:"modals.main.navbar.settings",LIBRARY:"modals.main.navbar.library",DISCOVER:"modals.main.navbar.discover",NAVBAR:"modals.main.settings.sections.appearance.navbar.title",GREETING:"modals.main.settings.sections.greeting.title",TIME:"modals.main.settings.sections.time.title",QUICKLINKS:"modals.main.settings.sections.quicklinks.title",QUOTE:"modals.main.settings.sections.quote.title",DATE:"modals.main.settings.sections.date.title",MESSAGE:"modals.main.settings.sections.message.title",BACKGROUND:"modals.main.settings.sections.background.title",SEARCH:"modals.main.settings.sections.search.title",WEATHER:"modals.main.settings.sections.weather.title",APPEARANCE:"modals.main.settings.sections.appearance.title",LANGUAGE:"modals.main.settings.sections.language.title",ADVANCED:"modals.main.settings.sections.advanced.title",STATS:"modals.main.settings.sections.stats.title",EXPERIMENTAL:"modals.main.settings.sections.experimental.title",CHANGELOG:"modals.main.settings.sections.changelog.title",ABOUT:"modals.main.settings.sections.about.title",ADDED:"modals.main.addons.added",CREATE:"modals.main.addons.create.title",ALL_MARKETPLACE:"modals.main.marketplace.all",PHOTO_PACKS:"modals.main.marketplace.photo_packs",QUOTE_PACKS:"modals.main.marketplace.quote_packs",PRESET_SETTINGS:"modals.main.marketplace.preset_settings",COLLECTIONS:"modals.main.marketplace.collections"},yN=(o,n)=>({[n.getMessage(Fe.OVERVIEW)]:Re.OVERVIEW,[n.getMessage(Fe.SETTINGS)]:Re.SETTINGS,[n.getMessage(Fe.LIBRARY)]:Re.LIBRARY,[n.getMessage(Fe.DISCOVER)]:Re.DISCOVER,[n.getMessage(Fe.NAVBAR)]:Re.NAVBAR,[n.getMessage(Fe.GREETING)]:Re.GREETING,[n.getMessage(Fe.TIME)]:Re.TIME,[n.getMessage(Fe.QUICKLINKS)]:Re.QUICKLINKS,[n.getMessage(Fe.QUOTE)]:Re.QUOTE,[n.getMessage(Fe.DATE)]:Re.DATE,[n.getMessage(Fe.MESSAGE)]:Re.MESSAGE,[n.getMessage(Fe.BACKGROUND)]:Re.BACKGROUND,[n.getMessage(Fe.SEARCH)]:Re.SEARCH,[n.getMessage(Fe.WEATHER)]:Re.WEATHER,[n.getMessage(Fe.APPEARANCE)]:Re.APPEARANCE,[n.getMessage(Fe.LANGUAGE)]:Re.LANGUAGE,[n.getMessage(Fe.ADVANCED)]:Re.ADVANCED,[n.getMessage(Fe.STATS)]:Re.STATS,[n.getMessage(Fe.EXPERIMENTAL)]:Re.EXPERIMENTAL,[n.getMessage(Fe.CHANGELOG)]:Re.CHANGELOG,[n.getMessage(Fe.ABOUT)]:Re.ABOUT,[n.getMessage("wb.settings_credits")]:Re.ABOUT,[n.getMessage("wb.settings_taskbox")]:Re.TASKBOX,[n.getMessage(Fe.ADDED)]:Re.ADDED,[n.getMessage(Fe.CREATE)]:Re.CREATE,[n.getMessage(Fe.ALL_MARKETPLACE)]:Re.LIBRARY,[n.getMessage(Fe.PHOTO_PACKS)]:Re.BACKGROUND,[n.getMessage(Fe.QUOTE_PACKS)]:Re.QUOTE,[n.getMessage(Fe.PRESET_SETTINGS)]:Re.ADVANCED,[n.getMessage(Fe.COLLECTIONS)]:Re.COLLECTIONS})[o],iC=[{tab:Yo.SETTINGS,icon:Re.SETTINGS,messageKey:"modals.main.navbar.settings"}],kN=["modals.main.settings.sections.appearance.title","modals.main.settings.sections.advanced.title"],Pl=(o=window.location.hash)=>{if(!o||o==="#")return null;const[n,u,l]=o.slice(1).split("/");return n!==Yo.SETTINGS?null:{tab:n,section:u||void 0,subSection:l||void 0}},Hl=(o,n=!0)=>{window.history.pushState?n?window.history.pushState(null,null,o):window.history.replaceState(null,null,o):window.location.hash=o},nC=()=>Pl()!==null,sC="MueCustomBackgrounds",rC=1,zt="backgrounds";function Ti(){return new Promise((o,n)=>{const u=indexedDB.open(sC,rC);u.onerror=()=>n(u.error),u.onsuccess=()=>o(u.result),u.onupgradeneeded=l=>{const d=l.target.result;d.objectStoreNames.contains(zt)||d.createObjectStore(zt,{keyPath:"id",autoIncrement:!0}).createIndex("url","url",{unique:!1})}})}async function Bb(){try{const l=(await Ti()).transaction(zt,"readonly").objectStore(zt).getAll();return new Promise((d,c)=>{l.onsuccess=()=>{const f=l.result;d(f.map(p=>typeof p.url=="string"&&!p.name?{id:p.id,url:p.url,name:`Image ${p.id}`,uploadDate:p.createdAt||Date.now(),dimensions:null,fileSize:null,folder:"",blurHash:null}:p))},l.onerror=()=>c(l.error)})}catch(o){return console.error("Error getting backgrounds from IndexedDB:",o),[]}}async function lC(){return(await Bb()).map(n=>n.url||n)}async function uC(o){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt),d=typeof o=="string"?{url:o,name:"Image",uploadDate:Date.now(),folder:""}:{...o,uploadDate:o.uploadDate||Date.now()},c=l.add(d);return new Promise((f,p)=>{c.onsuccess=()=>f(c.result),c.onerror=()=>p(c.error)})}async function wN(o){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt),d=l.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result;if(p[o]){const h=l.delete(p[o].id);h.onsuccess=()=>c(),h.onerror=()=>f(h.error)}else c()},d.onerror=()=>f(d.error)})}async function SN(o){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt),d=l.getAll();return new Promise((c,f)=>{d.onsuccess=()=>{const p=d.result,h=o.filter(g=>p[g]).map(g=>p[g].id);let y=0;const _=h.length;if(_===0){c();return}h.forEach(g=>{const b=l.delete(g);b.onsuccess=()=>{y++,y===_&&c()},b.onerror=()=>f(b.error)})},d.onerror=()=>f(d.error)})}async function Lb(){const l=(await Ti()).transaction(zt,"readwrite").objectStore(zt).clear();return new Promise((d,c)=>{l.onsuccess=()=>d(),l.onerror=()=>c(l.error)})}async function dC(){const l=(await Ti()).transaction(zt,"readonly").objectStore(zt).count();return new Promise((d,c)=>{l.onsuccess=()=>d(l.result),l.onerror=()=>c(l.error)})}async function MN(o,n){const d=(await Ti()).transaction(zt,"readwrite").objectStore(zt),c=d.get(o);return new Promise((f,p)=>{c.onsuccess=()=>{const h=c.result;if(h){Object.assign(h,n),h.updatedAt=Date.now();const y=d.put(h);y.onsuccess=()=>f(),y.onerror=()=>p(y.error)}else p(new Error("Background not found"))},c.onerror=()=>p(c.error)})}async function AN(){try{const o=localStorage.getItem("customBackground");if(!o||o==="null"||o==="[]")return!1;let n=[];try{n=JSON.parse(o),Array.isArray(n)||(n=[o])}catch{n=[o]}if(n=n.filter(l=>l&&l.trim()!==""),n.length===0||await dC()>0)return!1;try{for(const l of n)await uC(l)}catch(l){try{await Lb()}catch{}throw l}return console.log(`Migrated ${n.length} backgrounds from localStorage to IndexedDB`),localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(n.length)),localStorage.setItem("customBackgroundMigrated","true"),!0}catch(o){return console.error("Error migrating backgrounds:",o),!1}}function cC({photoInfo:o,currentAPI:n,url:u}){const l=localStorage.getItem("backgroundType")==="custom",[d,c]=k.useState([]),[f,p]=k.useState(!0);k.useEffect(()=>{(async()=>{if(l)try{const g=await lC();c(g||[])}catch(g){console.error("Failed to load custom backgrounds:",g),c([])}p(!1)})()},[l,u]);const h=l&&!f&&(!d||d.length===0),y=()=>{Hl("#settings/background/source"),_e.emit("modal","openMainModal")};return w.jsxs(w.Fragment,{children:[w.jsx("div",{id:"backgroundImage"}),h&&w.jsxs("div",{style:{position:"absolute",bottom:"20px",left:"20px",color:"white",background:"rgba(0, 0, 0, 0.6)",padding:"20px 30px",borderRadius:"10px",zIndex:1},children:[w.jsx("h2",{style:{margin:"0 0 10px 0",fontSize:"20px"},children:pe.getMessage("widgets.background.no_images_title")||"No Custom Images"}),w.jsx("p",{style:{margin:"0 0 15px 0",fontSize:"14px",opacity:.9},children:pe.getMessage("widgets.background.no_images_description")||"Please add custom images in the Background settings"}),w.jsx("button",{onClick:y,style:{background:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white",padding:"10px 20px",borderRadius:"5px",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"all 0.2s"},onMouseOver:_=>{_.target.style.background="rgba(255, 255, 255, 0.3)"},onMouseOut:_=>{_.target.style.background="rgba(255, 255, 255, 0.2)"},children:pe.getMessage("widgets.background.add_images_button")||"Add Images"})]}),o?.credit&&w.jsx(hA,{info:o,api:n,url:u})]})}const mC=k.memo(cC),L_=()=>({muted:localStorage.getItem("backgroundVideoMute")==="true",loop:localStorage.getItem("backgroundVideoLoop")==="true"});function pC({url:o,filterStyle:n}){const[{muted:u,loop:l},d]=k.useState(L_);return k.useEffect(()=>{const c=f=>{f==="backgroundvideo"&&d(L_())};return _e.on("refresh",c),()=>_e.off("refresh",c)},[]),w.jsx("video",{autoPlay:!0,muted:u,loop:l,style:n,id:"backgroundVideo",children:w.jsx("source",{src:o})},o)}const fC=k.memo(pC);function gC(){const[o,n]=k.useState({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!1,offline:!1,photographerURL:"",photoURL:""}}),u=k.useCallback(d=>{n(c=>({...c,...d,photoInfo:{...c.photoInfo,...d.photoInfo||{}}}))},[]),l=k.useCallback(()=>{n({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!0}})},[]);return{backgroundData:o,updateBackground:u,resetBackground:l}}const hC={photo:[5]},$c={"Ryan Hutton":{photo:[1]},"Francesco De Tommaso":{photo:[2]},"Andy Vu":{photo:[3]},"Sergi Ferrete":{photo:[4]},Pixabay:hC};function Ib(o){const n=Object.keys($c),u=n[Math.floor(Math.random()*n.length)],d={url:`src/assets/offline-images/${$c[u].photo[Math.floor(Math.random()*$c[u].photo.length)]}.webp`,type:o,photoInfo:{offline:!0,credit:u}};return localStorage.setItem("currentBackground",JSON.stringify(d)),d}function _C(o){const n=()=>"#000000".replace(/0/g,()=>(~~(Math.random()*16)).toString(16));let u=`background:${n()};`;if(o==="random_gradient"){const l=["to right","to left","to bottom","to top","to bottom right","to bottom left","to top right","to top left"];u=`background:linear-gradient(${l[Math.floor(Math.random()*l.length)]}, ${n()}, ${n()});`}return{type:"colour",style:u}}function Ub(o){return o.startsWith("data:video/")||o.startsWith("video/")||o.endsWith(".mp4")||o.endsWith(".webm")||o.endsWith(".ogg")}const Pb=(o,n=null)=>{const u=localStorage.getItem(o);if(u===null||u==="null")return n;try{const l=JSON.parse(u);return l!==null?l:n}catch{return n}};async function vC(){const o=localStorage.getItem("offlineMode")==="true"||localStorage.getItem("showWelcome")==="true",n=Pb("favourite");if(n)return n.type==="random_colour"||n.type==="random_gradient"?{type:"colour",style:`background:${n.url}`}:{url:n.url,photoInfo:{...n,url:n.url}};const u=localStorage.getItem("backgroundType");switch(u){case"api":return yC();case"colour":return bC();case"random_colour":case"random_gradient":return _C(u);case"custom":return await kC(o);default:return null}}function bC(){return{type:"colour",style:`background: ${localStorage.getItem("customBackgroundColour")||"rgb(0,0,0)"}`}}function yC(){return{...Ib("api"),currentAPI:localStorage.getItem("backgroundAPI")||"mue"}}async function kC(o){let n=await Bb();if(!n||n.length===0){const c=Pb("customBackground",[]);c&&c.length>0&&(n=c.map(f=>({url:f,photoInfo:{hidden:!0}})))}if(!n||n.length===0)return null;const u=n[Math.floor(Math.random()*n.length)];if(!u)return null;const l=u.url||u;if(o&&!l.startsWith("data:"))return Ib("custom");const d={url:l,type:"custom",video:Ub(l),photoInfo:{hidden:!0,blur_hash:u.blurHash||null}};try{localStorage.setItem("currentBackground",JSON.stringify({type:"custom",video:d.video,photoInfo:d.photoInfo}))}catch(c){console.warn("Could not save currentBackground to localStorage:",c)}return d}function wC(o,n){const u=k.useRef(0),l=k.useCallback(async()=>{const c=++u.current,f=()=>c!==u.current;try{if(localStorage.getItem("welcomeTab")){const y=localStorage.getItem("welcomeImage");if(y){o(JSON.parse(y));return}}const h=await vC();if(f())return;h&&o(h)}catch(p){console.error("Failed to load background:",p)}},[o]),d=k.useCallback(()=>{n(),l()},[l,n]);return k.useEffect(()=>{const c=localStorage.getItem("backgroundchange");(!localStorage.getItem("backgroundStartTime")||c==="refresh")&&localStorage.setItem("backgroundStartTime",Date.now()),l()},[l]),{loadBackground:l,refreshBackground:d}}async function SC(o){try{const n=await fetch(o,{mode:"cors",credentials:"omit"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const u=await n.blob();return URL.createObjectURL(u)}catch{return null}}const MC="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",Ol=(o,n,u)=>{let l=0;for(;n<u;)l=l*83+MC.indexOf(o[n++]);return l},Hb=Math.pow,js=Math.PI,Fb=3294.6,Vb=269.025,AC=o=>o>10.31475?Hb(o/Vb+.052132,2.4):o/Fb,CC=o=>~~(o>1227e-8?Vb*Hb(o,.416666)-13.025:o*Fb+1),Fl=4096,Gb=new Uint8ClampedArray(Fl+1);for(let o=0;o<=Fl;o++)Gb[o]=CC(o/Fl);const em=o=>o<=0?0:o>=1?255:Gb[o*Fl+.5|0],Ds=o=>(o<0?-1:1)*o*o,I_=o=>{for(o+=js/2;o>js;)o-=js*2;const n=1.27323954*o-.405284735*Ds(o);return .225*(Ds(n)-n)+n};function xC(o){const n=Ol(o,2,6);return[n>>16,n>>8&255,n&255]}function zC(o,n,u,l){const d=Ol(o,0,1),c=d%9+1,f=~~(d/9)+1,p=c*f;let h,y,_,g,b,S,C,z,A,E,x,L;const G=(Ol(o,1,2)+1)/13446*(l|1),Z=new Float64Array(p*3),H=xC(o);for(h=0;h<3;h++)Z[h]=AC(H[h]);for(h=1;h<p;h++)L=Ol(o,4+h*2,6+h*2),Z[h*3]=Ds(~~(L/361)-9)*G,Z[h*3+1]=Ds(~~(L/19)%19-9)*G,Z[h*3+2]=Ds(L%19-9)*G;const D=new Float64Array(f*u),q=new Float64Array(c*n);for(y=0;y<f;y++)for(g=0;g<u;g++)D[y*u+g]=I_(js*g*y/u);for(h=0;h<c;h++)for(_=0;_<n;_++)q[h*n+_]=I_(js*_*h/n);const V=n*4,$=new Uint8ClampedArray(V*u),W=new Float64Array(c*3);for(g=0;g<u;g++){for(h=0;h<c;h++){for(b=S=C=0,y=0;y<f;y++)A=D[y*u+g],E=(h+y*c)*3,b+=Z[E]*A,S+=Z[E+1]*A,C+=Z[E+2]*A;W[h*3]=b,W[h*3+1]=S,W[h*3+2]=C}for(_=0;_<n;_++){for(b=S=C=0,h=0;h<c;h++)z=q[h*n+_],E=h*3,b+=W[E]*z,S+=W[E+1]*z,C+=W[E+2]*z;x=4*_+g*V,$[x]=em(b),$[x+1]=em(S),$[x+2]=em(C),$[x+3]=255}}return $}function TC(o,n=32,u=32){try{const l=document.createElement("canvas");l.width=n,l.height=u;const d=l.getContext("2d"),c=d.createImageData(n,u);return c.data.set(zC(o,n,u)),d.putImageData(c,0,0),l.toDataURL()}catch(l){return console.error("Failed to generate blur hash:",l),null}}function Rm(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px) brightness(${n}%)`;return u&&u!=="none"&&(d+=` ${u}(${l}%)`),d}function Bm(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px)`;u&&u!=="none"&&(d+=` ${u}(${l}%)`);const f=(100-parseInt(n,10))/100;return{backdropFilter:d,WebkitBackdropFilter:d,backgroundColor:`rgba(0, 0, 0, ${f})`}}const Kb=()=>document.documentElement.dataset.bgMaximised==="true",NC={backdropFilter:"",WebkitBackdropFilter:"",backgroundColor:""},U_=1200;function EC(o){const n=k.useRef(null);k.useEffect(()=>{if(o.video)return;const u=document.getElementById("backgroundImage");if(!u)return;let l=!1,d=null;return(async()=>{if(o.url){const f=localStorage.getItem("bgtransition")!=="false",p=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!f||p){u.style.background=`url(${o.url})`,document.querySelector(".photoInformation")?.style.setProperty("display","flex");return}let h=document.getElementById("backgroundOverlay");if(h||(h=document.createElement("div"),h.id="backgroundOverlay",u.parentNode.insertBefore(h,u.nextSibling)),o.photoInfo?.colour&&(u.style.backgroundColor=o.photoInfo.colour),o.photoInfo?.blur_hash){const b=TC(o.photoInfo.blur_hash,64,64);b&&(u.style.backgroundImage=`url(${b})`)}const y=await SC(o.url);if(l){y&&URL.revokeObjectURL(y);return}const _=y||o.url;y&&(n.current&&URL.revokeObjectURL(n.current),n.current=y);const g=new Image;if(g.src=_,await new Promise(b=>{g.onload=b,g.onerror=b}),l)return;h.style.transition="none",h.style.opacity="0",h.style.backgroundImage="",h.offsetHeight,h.style.backgroundImage=`url(${_})`,h.offsetHeight,h.style.transition=`opacity ${U_/1e3}s ease-in-out`,h.offsetHeight,h.style.opacity="1",d=setTimeout(()=>{u.style.backgroundImage=`url(${_})`,h.style.opacity="0",h.style.backgroundImage=""},U_+100)}else o.style?u.setAttribute("style",o.style):u.style.backgroundImage=""})(),()=>{l=!0,clearTimeout(d),n.current&&(URL.revokeObjectURL(n.current),n.current=null);const f=document.getElementById("backgroundOverlay");f&&f.remove()}},[o.url,o.style,o.video,o.photoInfo])}function jC(o){return k.useMemo(()=>({WebkitFilter:Kb()?"blur(0px) brightness(100%)":Rm()}),[o])}function DC(o){return k.useMemo(()=>Kb()?NC:Bm(),[o])}function OC(o,n){k.useEffect(()=>{const u=c=>{c==="welcomeLanguage"?localStorage.setItem("welcomeImage",JSON.stringify(o)):c==="background"?l():["backgroundwelcome","backgroundrefresh"].includes(c)?n():c==="backgroundeffect"&&d()},l=()=>{const c=document.getElementById(o.video?"backgroundVideo":"backgroundImage"),f=document.querySelector(".photoInformation");if(!(localStorage.getItem("background")!=="false")){c?.style.setProperty("display","none"),o.photoInfo?.hidden||f?.style.setProperty("display","none");return}c?.style.setProperty("display","block"),o.photoInfo?.hidden||f?.style.setProperty("display","flex");const h=localStorage.getItem("backgroundType");(h!==o.type&&!(o.photoInfo?.offline&&h===o.type)||o.type==="api"&&localStorage.getItem("backgroundAPI")!==o.currentAPI||h==="custom"&&o.type!=="custom"||h==="colour"||o.photoInfo?.pun&&JSON.parse(localStorage.getItem("backgroundExclude")||"[]").includes(o.photoInfo.pun))&&n()},d=()=>{if(document.documentElement.dataset.bgMaximised!=="true")if(o.video){const c=Rm(),f=document.getElementById("backgroundVideo");f&&(f.style.webkitFilter=c)}else{const c=document.getElementById("backgroundFilterOverlay");if(c){const f=Bm();c.style.backdropFilter=f.backdropFilter,c.style.webkitBackdropFilter=f.WebkitBackdropFilter,c.style.backgroundColor=f.backgroundColor}}};return _e.on("refresh",u),()=>_e.off("refresh",u)},[o,n])}function qC(){const{backgroundData:o,updateBackground:n,resetBackground:u}=gC(),{refreshBackground:l}=wC(n,u),d=jC(o),c=DC(o);return EC(o),OC(o,l),w.jsxs(w.Fragment,{children:[o.video?w.jsx(fC,{url:o.url,filterStyle:d}):w.jsx(mC,{photoInfo:o.photoInfo,currentAPI:o.currentAPI,url:o.url}),w.jsx("div",{id:"backgroundFilterOverlay",style:c})]})}const RC=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),BC=function(o,n){return new URL(o,n).href},P_={},Lm=function(n,u,l){let d=Promise.resolve();if(u&&u.length>0){let y=function(_){return Promise.all(_.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const f=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),h=p?.nonce||p?.getAttribute("nonce");d=y(u.map(_=>{if(_=BC(_,l),_ in P_)return;P_[_]=!0;const g=_.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(l)for(let C=f.length-1;C>=0;C--){const z=f[C];if(z.href===_&&(!g||z.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":RC,g||(S.as="script"),S.crossOrigin="",S.href=_,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((C,z)=>{S.addEventListener("load",C),S.addEventListener("error",()=>z(new Error(`Unable to preload CSS for ${_}`)))})}))}function c(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return d.then(f=>{for(const p of f||[])p.status==="rejected"&&c(p.reason);return n().catch(c)})};function Yb(o){if(o>3&&o<21)return o+"th";switch(o%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd";default:return o+"th"}}function Im(o,n){return new Date((typeof o=="string"?new Date(o):o).toLocaleString("en-US",{timeZone:n}))}function Wb(){const o=localStorage.getItem("language")?.replace(/_/g,"-")||"en-GB",n={ar:"arab",fa:"arabext",bn:"beng",hi:"deva",mr:"deva",ne:"deva",ta:"tamldec"},u=o.split("-")[0];return n[u]?`${o}-u-nu-${n[u]}`:o}function LC(o){if(localStorage.getItem("localeFormatting")==="false")return Math.round(o*100)+"%";try{return new Intl.NumberFormat(Wb(),{style:"percent",maximumFractionDigits:0}).format(o)}catch{return Math.round(o*100)+"%"}}function Es(o){if(localStorage.getItem("localeFormatting")==="false")return String(o);try{const u=typeof o=="string"?parseInt(o,10):o;return isNaN(u)?String(o):new Intl.NumberFormat(Wb(),{useGrouping:!1}).format(u)}catch{return String(o)}}const IC=k.lazy(()=>Lm(()=>import("./index-WbVrDO2P.js"),[],import.meta.url));function UC({time:o}){const n=u=>localStorage.getItem(u)==="true";return w.jsx(k.Suspense,{fallback:w.jsx(w.Fragment,{}),children:w.jsx("div",{className:`clockBackground ${n("roundClock")?"round":""}`,children:w.jsx(IC,{className:"analogclock clock-container",value:o,size:1.5*Number(localStorage.getItem("zoomClock")||100),renderMinuteMarks:n("minuteMarks"),renderHourMarks:n("hourMarks"),renderSecondHand:n("secondHand"),renderMinuteHand:n("minuteHand"),renderHourHand:n("hourHand")})})})}function PC({finalHour:o,finalMinute:n,finalSeconds:u}){const l=localStorage.getItem("hourColour")||"#fff",d=localStorage.getItem("minuteColour")||"#fff",c=localStorage.getItem("secondColour")||"#fff";return w.jsxs("span",{className:"vertical-clock clock-container",children:[w.jsx("div",{className:"hour",style:{color:l},children:o}),w.jsx("div",{className:"minute",style:{color:d},children:n}),w.jsx("div",{className:"seconds",style:{color:c},children:u})]})}const Yt=o=>String(o).split("").map(u=>Es(u)).join(""),HC=()=>{const[o]=k.useState(localStorage.getItem("timeType")),[n,u]=k.useState(""),[l,d]=k.useState(""),[c,f]=k.useState(""),[p,h]=k.useState(""),[y,_]=k.useState(""),[g,b]=k.useState("block"),[S,C]=k.useState("4em"),z=k.useRef(void 0),A=(E=localStorage.getItem("seconds")==="true"||localStorage.getItem("timeType")==="analogue"?1e3-Date.now()%1e3:6e4-Date.now()%6e4)=>{z.current=setTimeout(()=>{let x=new Date;const L=localStorage.getItem("timezone");switch(L&&L!=="auto"&&(x=Im(x,L)),localStorage.getItem("timeType")){case"percentageComplete":u(LC(x.getHours()/24)),_("");break;case"analogue":Lm(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),u(x);break;default:{let G,Z="";const H=localStorage.getItem("zero");if(localStorage.getItem("seconds")==="true"){const D=("00"+x.getSeconds()).slice(-2);Z=`:${Yt(D)}`,h(Yt(D))}else h("");if(localStorage.getItem("timeformat")==="twentyfourhour"){const D=("00"+x.getMinutes()).slice(-2);if(H==="true"){const q=("00"+x.getHours()).slice(-2);G=`${Yt(q)}:${Yt(D)}${Z}`,d(Yt(q)),f(Yt(D))}else{const q=x.getHours();G=`${Es(q)}:${Yt(D)}${Z}`,d(Es(q)),f(Yt(D))}u(G),_("")}else{let D=x.getHours();D>12?D-=12:D===0&&(D=12);const q=("00"+x.getMinutes()).slice(-2);if(H==="true"){const V=("00"+D).slice(-2);G=`${Yt(V)}:${Yt(q)}${Z}`,d(Yt(V)),f(Yt(q))}else G=`${Es(D)}:${Yt(q)}${Z}`,d(Es(D)),f(Yt(q));u(G),_(x.getHours()>11?"PM":"AM")}break}}A()},E)};return k.useEffect(()=>{const E=x=>{if(x==="clock"||x==="timezone"){if(localStorage.getItem("time")==="false"){b("none");return}clearTimeout(z.current),z.current=null,A(0),b("block"),C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`)}};return localStorage.getItem("timeType")!=="analogue"&&C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`),A(0),_e.on("refresh",E),()=>{_e.off("refresh",E),z.current&&clearTimeout(z.current)}},[]),localStorage.getItem("timeType")==="analogue"?w.jsx(UC,{time:n}):localStorage.getItem("timeType")==="verticalClock"?w.jsx(PC,{finalHour:l,finalMinute:c,finalSeconds:p}):w.jsxs("span",{className:"clock clock-container",style:{display:g,fontSize:S},children:[n,w.jsx("span",{className:"ampm",children:y})]})},FC=(o,n)=>{if(!(localStorage.getItem("events")!=="false"))return n;const l=o.getMonth(),d=o.getDate(),f=JSON.parse(localStorage.getItem("customEvents")||"[]").find(p=>p.month-1===l&&p.date===d);return f&&(n=f.name),n},H_=o=>{const n=Date.now()-o.getTime(),u=new Date(n);return Math.abs(u.getUTCFullYear()-1970)},VC=()=>{const o=Qo(),[n,u]=k.useState(""),[l,d]=k.useState("block"),[c,f]=k.useState("1.6em"),p=k.useRef(),h=k.useRef(null),y=(_=6e4-Date.now()%6e4)=>{h.current=setTimeout(()=>{let g=new Date;const b=localStorage.getItem("timezone");b&&b!=="auto"&&(g=Im(g,b));const S=g.getHours();let C;switch(!0){case S<12:C=o("widgets.greeting.morning");break;case S<18:C=o("widgets.greeting.afternoon");break;default:C=o("widgets.greeting.evening");break}const z=localStorage.getItem("defaultGreetingMessage");z==="false"?C="":C=FC(g,C);let A="";const E=localStorage.getItem("greetingName");typeof E=="string"&&E.replace(/\s/g,"").length>0&&(A=`, ${E.trim()}`);const x=localStorage.getItem("birthdayenabled");if(z==="false"&&x!=="true"&&(A=A.replace(",","")),x==="true"){const L=new Date(localStorage.getItem("birthday"));if(L.getDate()===g.getDate()&&L.getMonth()===g.getMonth())if(localStorage.getItem("birthdayage")==="true"&&H_(L)!==0){const G=o("widgets.greeting.birthday").split(" ");C=`${G[0]} ${Yb(H_(L))} ${G[1]}`}else C=o("widgets.greeting.birthday")}u(`${C}${A}`),y()},_)};return k.useEffect(()=>{const _=b=>{if(b==="greeting"||b==="timezone"){const S=localStorage.getItem("greeting"),C=localStorage.getItem("zoomGreeting");d(S==="false"?"none":"block"),f(`${1.6*Number((C||100)/100)}em`),S!=="false"&&(h.current&&clearTimeout(h.current),y(0))}},g=localStorage.getItem("zoomGreeting");return f(`${1.6*Number((g||100)/100)}em`),y(0),_e.on("refresh",_),()=>{_e.off("refresh",_),h.current&&clearTimeout(h.current)}},[o]),w.jsx("span",{className:"greeting",ref:p,style:{display:l,fontSize:c},children:n})},GC="wbNewtabHandoff:",au=o=>`${GC}${o}`,KC=4e3,ou=()=>typeof browser<"u"&&typeof browser?.sidebarAction?.open=="function",Us=()=>ou()?browser:typeof chrome<"u"&&chrome?.runtime?.id?chrome:null;let Vl=null;async function YC(){let o=null;try{o=await Us()?.tabs?.getCurrent?.()??null}catch{o=null}return o?.id!=null&&await ZC(Us(),o.id),Vl=o,Vl}function WC({text:o,mode:n,tabId:u,now:l=Date.now()}){return{id:`nt-${l}-${Math.random().toString(36).slice(2,8)}`,tabId:u,text:String(o).slice(0,KC),mode:n==="act"?"act":"ask",createdAt:l}}const Qb=16e4,Wo=new Map;function Zb(o){let n;const u=new Promise(d=>{n=d}),l=()=>{Wo.get(o)?.promise===u&&Wo.delete(o),n()};return Wo.set(o,{promise:u,release:l}),l}const QC=o=>Wo.has(o);function F_(o=Vl){return Wo.get(o?.id)?.promise??Promise.resolve()}async function ZC(o,n,u=Date.now()){if(!o?.storage?.local?.get||Wo.has(n))return!1;const l=au(n);let d;try{d=(await o.storage.local.get(l))?.[l]}catch{return!1}if(!d||Wo.has(n))return!1;const c=Qb-(u-Number(d.createdAt||0));return c>0?(Xb(o,n,Zb(n),c),!0):!1}function Xb(o,n,u,l=Qb){const d=au(n);let c;const f=(h,y)=>{(!y||y==="local")&&h?.[d]&&!h[d].newValue&&p()};function p(){clearTimeout(c),o.storage.onChanged?.removeListener?.(f),u()}c=setTimeout(p,l),o.storage.onChanged?.addListener?.(f),Promise.resolve(o.storage.local.get?.(d)).then(h=>{h?.[d]||p()}).catch(()=>{})}function XC({text:o,mode:n},u=Us(),l=Vl){if(!u||l?.id==null)return Promise.reject(new Error("Extension API unavailable"));if(Wo.has(l.id))return Promise.reject(new Error("Previous task is still being handed over"));const d=ou();if(!d&&!u.sidePanel?.open)return Promise.reject(new Error("Side panel API unavailable"));const c=Zb(l.id),f=WC({text:o,mode:n,tabId:l.id});let p,h;try{p=Promise.resolve(u.storage.local.set({[au(l.id)]:f})),d?h=u.sidebarAction.open():(Promise.resolve(u.sidePanel.setOptions({tabId:l.id,path:"src/ui/sidepanel.html",enabled:!0})).catch(()=>{}),h=u.sidePanel.open({tabId:l.id}))}catch(y){h=Promise.reject(y),p??=Promise.resolve()}return Promise.all([p,h]).then(()=>(Xb(u,l.id,c),Promise.resolve(u.runtime.sendMessage({type:"WB_NEWTAB_PANEL_OPENED",tabId:l.id})).catch(()=>{}),!0),async y=>{throw await p.catch(()=>{}),await JC(u,l.id,f.id),c(),y})}async function JC(o,n,u){const l=au(n);try{const d=(await o.storage.local.get(l))?.[l];(!d||d.id===u)&&await o.storage.local.remove(l)}catch{}}function $C(o=Us()){return ou()?typeof o?.search?.search=="function":typeof o?.search?.query=="function"}const V_=new Set(["http:","https:"]);function ex(o){const n=String(o||"").trim();if(!n||/\s/.test(n))return null;try{const u=new URL(n);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n))return V_.has(u.protocol)?u.href:null}catch{}if(/^(localhost|(\d{1,3}\.){3}\d{1,3}|([a-z0-9-]+\.)+[a-z]{2,})(:\d+)?([/?#]\S*)?$/i.test(n))try{const u=new URL(`https://${n}`);return V_.has(u.protocol)?u.href:null}catch{return null}return null}async function tx(o,n=Us(),u=l=>window.location.assign(l)){const l=ex(o);if(l)return u(l),!0;if(ou()&&n?.search?.search)return await n.search.search({query:o,disposition:"CURRENT_TAB"}),!0;if(n?.search?.query)return await n.search.query({text:o,disposition:"CURRENT_TAB"}),!0;throw new Error("Search API unavailable")}const ax=[{id:"ask",icon:BA},{id:"act",icon:Ob},{id:"search",icon:qm}],Jb=()=>ax.filter(o=>o.id!=="search"||$C()),ox=()=>{const o=localStorage.getItem("taskBoxMode");return Jb().some(n=>n.id===o)?o:"ask"};function ix(){const[o,n]=k.useState(ox),[u,l]=k.useState(""),[d,c]=k.useState(""),[f,p]=k.useState(!1),h=k.useRef(null),y=k.useRef(!1);k.useEffect(()=>{let g=!0;return YC().then(b=>{g&&b?.id!=null&&QC(b.id)&&(p(!0),F_(b).then(()=>g&&p(!1)))}),localStorage.getItem("taskBoxFocus")!=="false"&&h.current?.focus(),()=>{g=!1}},[]);const _=g=>{g.preventDefault();const b=u.trim();if(!(!b||f||y.current)){if(c(""),o==="search"){tx(b).catch(()=>c(ya("wb.panel_failed")));return}y.current=!0,p(!0),XC({text:b,mode:o}).then(()=>(l(""),F_())).catch(()=>c(ya("wb.panel_failed"))).finally(()=>{y.current=!1,p(!1),h.current?.focus()})}};return w.jsxs("div",{className:"taskBox",children:[w.jsxs("form",{className:"taskBoxForm",onSubmit:_,children:[w.jsx("input",{ref:h,className:"taskBoxInput",type:"text",value:u,maxLength:4e3,autoComplete:"off",spellCheck:!1,placeholder:ya(`wb.placeholder_${o}`),"aria-label":ya(`wb.placeholder_${o}`),disabled:f,onChange:g=>l(g.target.value)}),w.jsx("button",{className:"taskBoxGo",type:"submit","aria-label":ya("wb.go"),disabled:f||!u.trim(),children:w.jsx(Db,{})})]}),w.jsx("div",{className:"taskBoxModes",role:"radiogroup",children:Jb().map(({id:g,icon:b})=>w.jsxs("button",{type:"button",role:"radio","aria-checked":o===g,className:o===g?"taskBoxMode active":"taskBoxMode",onClick:()=>{n(g),h.current?.focus()},children:[w.jsx(b,{}),w.jsx("span",{children:ya(`wb.${g}`)})]},g))}),o==="act"&&w.jsx("span",{className:"taskBoxHint",children:ya("wb.act_hint")}),d&&w.jsx("span",{className:"taskBoxHint taskBoxError",role:"alert",children:d})]})}const G_="webbrain_chat_history",tm="records";async function nx(o=4,n=globalThis.indexedDB){if(!n?.databases)return[];if(!(await n.databases()).some(d=>d.name===G_))return[];const l=await new Promise((d,c)=>{const f=n.open(G_);f.onupgradeneeded=()=>f.transaction.abort(),f.onsuccess=()=>d(f.result),f.onerror=()=>c(f.error),f.onblocked=()=>c(new Error("blocked"))});try{return l.objectStoreNames.contains(tm)?await new Promise((d,c)=>{const f=[],p=l.transaction([tm],"readonly").objectStore(tm),y=(p.indexNames.contains("updatedAt")?p.index("updatedAt"):p).openCursor(null,"prev");y.onsuccess=()=>{const _=y.result;if(!_||f.length>=o)return d(f);const{id:g,title:b,url:S,updatedAt:C}=_.value;f.push({id:g,title:String(b||"").slice(0,140),url:String(S||""),updatedAt:C}),_.continue()},y.onerror=()=>c(y.error)}):[]}finally{l.close()}}const K_="../src/ui/history.html";function sx(){const[o,n]=k.useState(null);return k.useEffect(()=>{let u=!1;return nx(4).then(l=>!u&&n(l)).catch(()=>!u&&n([])),()=>{u=!0}},[]),o===null?null:w.jsxs("div",{className:"recentChats",children:[w.jsxs("div",{className:"recentChatsHeader",children:[w.jsx("span",{children:ya("wb.recent_title")}),w.jsx("a",{href:K_,children:ya("wb.recent_all")})]}),o.length===0?w.jsx("span",{className:"recentChatsEmpty",children:ya("wb.recent_empty")}):w.jsx("ul",{children:o.map(u=>w.jsx("li",{children:w.jsx("a",{href:`${K_}?id=${encodeURIComponent(u.id)}`,children:u.title||u.url})},u.id))})]})}const wm=Math.min,An=Math.max,Gl=Math.round,ho=o=>({x:o,y:o}),rx={left:"right",right:"left",bottom:"top",top:"bottom"};function lx(o,n,u){return An(o,wm(n,u))}function iu(o,n){return typeof o=="function"?o(n):o}function zn(o){return o.split("-")[0]}function nu(o){return o.split("-")[1]}function $b(o){return o==="x"?"y":"x"}function ey(o){return o==="y"?"height":"width"}function Ko(o){const n=o[0];return n==="t"||n==="b"?"y":"x"}function ty(o){return $b(Ko(o))}function ux(o,n,u){u===void 0&&(u=!1);const l=nu(o),d=ty(o),c=ey(d);let f=d==="x"?l===(u?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Kl(f)),[f,Kl(f)]}function dx(o){const n=Kl(o);return[Sm(o),n,Sm(n)]}function Sm(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}const Y_=["left","right"],W_=["right","left"],cx=["top","bottom"],mx=["bottom","top"];function px(o,n,u){switch(o){case"top":case"bottom":return u?n?W_:Y_:n?Y_:W_;case"left":case"right":return n?cx:mx;default:return[]}}function fx(o,n,u,l){const d=nu(o);let c=px(zn(o),u==="start",l);return d&&(c=c.map(f=>f+"-"+d),n&&(c=c.concat(c.map(Sm)))),c}function Kl(o){const n=zn(o);return rx[n]+o.slice(n.length)}function gx(o){var n,u,l,d;return{top:(n=o.top)!=null?n:0,right:(u=o.right)!=null?u:0,bottom:(l=o.bottom)!=null?l:0,left:(d=o.left)!=null?d:0}}function hx(o){return typeof o!="number"?gx(o):{top:o,right:o,bottom:o,left:o}}function Yl(o){const{x:n,y:u,width:l,height:d}=o;return{width:l,height:d,top:u,left:n,right:n+l,bottom:u+d,x:n,y:u}}function Q_(o,n,u){let{reference:l,floating:d}=o;const c=Ko(n),f=ty(n),p=ey(f),h=zn(n),y=c==="y",_=l.x+l.width/2-d.width/2,g=l.y+l.height/2-d.height/2,b=l[p]/2-d[p]/2;let S;switch(h){case"top":S={x:_,y:l.y-d.height};break;case"bottom":S={x:_,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y:g};break;case"left":S={x:l.x-d.width,y:g};break;default:S={x:l.x,y:l.y}}const C=nu(n);return C&&(S[f]+=b*(C==="end"?1:-1)*(u&&y?-1:1)),S}async function _x(o,n){var u;n===void 0&&(n={});const{x:l,y:d,platform:c,rects:f,elements:p,strategy:h}=o,{boundary:y="clippingAncestors",rootBoundary:_="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=iu(n,o),C=hx(S),A=p[b?g==="floating"?"reference":"floating":g],E=Yl(await c.getClippingRect({element:(u=await(c.isElement==null?void 0:c.isElement(A)))==null||u?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:y,rootBoundary:_,strategy:h})),x=g==="floating"?{x:l,y:d,width:f.floating.width,height:f.floating.height}:f.reference,L=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),G=await(c.isElement==null?void 0:c.isElement(L))&&await(c.getScale==null?void 0:c.getScale(L))||{x:1,y:1},Z=Yl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:x,offsetParent:L,strategy:h}):x);return{top:(E.top-Z.top+C.top)/G.y,bottom:(Z.bottom-E.bottom+C.bottom)/G.y,left:(E.left-Z.left+C.left)/G.x,right:(Z.right-E.right+C.right)/G.x}}const vx=50,bx=async(o,n,u)=>{const{placement:l="bottom",strategy:d="absolute",middleware:c=[],platform:f}=u,p=f.detectOverflow?f:{...f,detectOverflow:_x},h=await(f.isRTL==null?void 0:f.isRTL(n));let y=await f.getElementRects({reference:o,floating:n,strategy:d}),{x:_,y:g}=Q_(y,l,h),b=l,S=0;const C={};for(let z=0;z<c.length;z++){const A=c[z];if(!A)continue;const{name:E,fn:x}=A,{x:L,y:G,data:Z,reset:H}=await x({x:_,y:g,initialPlacement:l,placement:b,strategy:d,middlewareData:C,rects:y,platform:p,elements:{reference:o,floating:n}});_=L??_,g=G??g,C[E]={...C[E],...Z},H&&S<vx&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(y=H.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:d}):H.rects),{x:_,y:g}=Q_(y,b,h)),z=-1)}return{x:_,y:g,placement:b,strategy:d,middlewareData:C}},yx=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var u,l;const{placement:d,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:y}=n,{mainAxis:_=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:z=!0,...A}=iu(o,n);if((u=c.arrow)!=null&&u.alignmentOffset)return{};const E=zn(d),x=Ko(p),L=zn(p)===p,G=await(h.isRTL==null?void 0:h.isRTL(y.floating)),Z=b||(L||!z?[Kl(p)]:dx(p)),H=C!=="none";!b&&H&&Z.push(...fx(p,z,C,G));const D=[p,...Z],q=await h.detectOverflow(n,A),V=[];let $=((l=c.flip)==null?void 0:l.overflows)||[];if(_&&V.push(q[E]),g){const X=ux(d,f,G);V.push(q[X[0]],q[X[1]])}if($=[...$,{placement:d,overflows:V}],!V.every(X=>X<=0)){var W,ee;const X=(((W=c.flip)==null?void 0:W.index)||0)+1,Y=D[X];if(Y&&(!(g==="alignment"?x!==Ko(Y):!1)||$.every(K=>Ko(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:Y}};let I=(ee=$.filter(T=>T.overflows[0]<=0).sort((T,K)=>T.overflows[1]-K.overflows[1])[0])==null?void 0:ee.placement;if(!I)switch(S){case"bestFit":{var ae;const T=(ae=$.filter(K=>{if(H){const ie=Ko(K.placement);return ie===x||ie==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ie=>ie>0).reduce((ie,ne)=>ie+ne,0)]).sort((K,ie)=>K[1]-ie[1])[0])==null?void 0:ae[0];T&&(I=T);break}case"initialPlacement":I=p;break}if(d!==I)return{reset:{placement:I}}}return{}}}},kx=new Set(["left","top"]);async function wx(o,n){const{placement:u,platform:l,elements:d}=o,c=await(l.isRTL==null?void 0:l.isRTL(d.floating)),f=zn(u),p=nu(u),h=Ko(u)==="y",y=kx.has(f)?-1:1,_=c&&h?-1:1,g=iu(n,o);let{mainAxis:b,crossAxis:S,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return p&&typeof C=="number"&&(S=p==="end"?C*-1:C),h?{x:S*_,y:b*y}:{x:b*y,y:S*_}}const Sx=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var u,l;const{x:d,y:c,placement:f,middlewareData:p}=n,h=await wx(n,o);return f===((u=p.offset)==null?void 0:u.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:d+h.x,y:c+h.y,data:{...h,placement:f}}}}},Mx=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:u,y:l,placement:d,platform:c}=n,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:x=>{let{x:L,y:G}=x;return{x:L,y:G}}},...y}=iu(o,n),_={x:u,y:l},g=await c.detectOverflow(n,y),b=Ko(d),S=$b(b);let C=_[S],z=_[b];const A=(x,L)=>lx(L+g[x==="y"?"top":"left"],L,L-g[x==="y"?"bottom":"right"]);f&&(C=A(S,C)),p&&(z=A(b,z));const E=h.fn({...n,[S]:C,[b]:z});return{...E,data:{x:E.x-u,y:E.y-l,enabled:{[S]:f,[b]:p}}}}}};function su(){return typeof window<"u"}function Tn(o){return ay(o)?(o.nodeName||"").toLowerCase():"#document"}function ra(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Zo(o){var n;return(n=(ay(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function ay(o){return su()?o instanceof Node||o instanceof ra(o).Node:!1}function Wa(o){return su()?o instanceof Element||o instanceof ra(o).Element:!1}function Xo(o){return su()?o instanceof HTMLElement||o instanceof ra(o).HTMLElement:!1}function Z_(o){return!su()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof ra(o).ShadowRoot}function ru(o){const{overflow:n,overflowX:u,overflowY:l,display:d}=Qa(o);return/auto|scroll|overlay|hidden|clip/.test(n+l+u)&&d!=="inline"&&d!=="contents"}function Ax(o){return/^(table|td|th)$/.test(Tn(o))}function lu(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}const Cx=/transform|translate|scale|rotate|perspective|filter/,xx=/paint|layout|strict|content/,Si=o=>!!o&&o!=="none";let am;function Um(o){const n=Wa(o)?Qa(o):o;return Si(n.transform)||Si(n.translate)||Si(n.scale)||Si(n.rotate)||Si(n.perspective)||!Pm()&&(Si(n.backdropFilter)||Si(n.filter))||Cx.test(n.willChange||"")||xx.test(n.contain||"")}function zx(o){let n=zi(o);for(;Xo(n)&&!Ps(n);){if(Um(n))return n;if(lu(n))return null;n=zi(n)}return null}function Pm(){return am==null&&(am=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),am}function Ps(o){return/^(html|body|#document)$/.test(Tn(o))}function Qa(o){return ra(o).getComputedStyle(o)}function uu(o){return Wa(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function zi(o){if(Tn(o)==="html")return o;const n=o.assignedSlot||o.parentNode||Z_(o)&&o.host||Zo(o);return Z_(n)?n.host:n}function oy(o){const n=zi(o);return Ps(n)?(o.ownerDocument||o).body:Xo(n)&&ru(n)?n:oy(n)}function iy(o,n,u){var l;n===void 0&&(n=[]);const d=oy(o),c=d===((l=o.ownerDocument)==null?void 0:l.body),f=ra(d);return c?(Mm(f),n.concat(f,f.visualViewport||[],ru(d)?d:[],[])):n.concat(d,iy(d,[]))}function Mm(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function ny(o){const n=Qa(o);let u=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const d=Xo(o),c=d?o.offsetWidth:u,f=d?o.offsetHeight:l,p=Gl(u)!==c||Gl(l)!==f;return p&&(u=c,l=f),{width:u,height:l,$:p}}function sy(o){return Wa(o)?o:o.contextElement}function Cn(o){const n=sy(o);if(!Xo(n))return ho(1);const u=n.getBoundingClientRect(),{width:l,height:d,$:c}=ny(n);let f=(c?Gl(u.width):u.width)/l,p=(c?Gl(u.height):u.height)/d;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const Tx=ho(0);function ry(o){const n=ra(o);return!Pm()||!n.visualViewport?Tx:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Nx(o,n,u){return n===void 0&&(n=!1),!!u&&n&&u===ra(o)}function Hs(o,n,u,l){n===void 0&&(n=!1),u===void 0&&(u=!1);const d=o.getBoundingClientRect(),c=sy(o);let f=ho(1);n&&(l?Wa(l)&&(f=Cn(l)):f=Cn(o));const p=Nx(c,u,l)?ry(c):ho(0);let h=(d.left+p.x)/f.x,y=(d.top+p.y)/f.y,_=d.width/f.x,g=d.height/f.y;if(c&&l){const b=ra(c),S=Wa(l)?ra(l):l;let C=b,z=Mm(C);for(;z&&S!==C;){const A=Cn(z),E=z.getBoundingClientRect(),x=Qa(z),L=E.left+(z.clientLeft+parseFloat(x.paddingLeft))*A.x,G=E.top+(z.clientTop+parseFloat(x.paddingTop))*A.y;h*=A.x,y*=A.y,_*=A.x,g*=A.y,h+=L,y+=G,C=ra(z),z=Mm(C)}}return Yl({width:_,height:g,x:h,y})}function du(o,n){const u=uu(o).scrollLeft;return n?n.left+u:Hs(Zo(o)).left+u}function ly(o,n){const u=o.getBoundingClientRect(),l=u.left+n.scrollLeft-du(o,u),d=u.top+n.scrollTop;return{x:l,y:d}}function Ex(o){let{elements:n,rect:u,offsetParent:l,strategy:d}=o;const c=d==="fixed",f=Zo(l),p=n?lu(n.floating):!1;if(l===f||p&&c)return u;let h={scrollLeft:0,scrollTop:0},y=ho(1);const _=ho(0),g=Xo(l);if((g||!c)&&((Tn(l)!=="body"||ru(f))&&(h=uu(l)),g)){const S=Hs(l);y=Cn(l),_.x=S.x+l.clientLeft,_.y=S.y+l.clientTop}const b=f&&!g&&!c?ly(f,h):ho(0);return{width:u.width*y.x,height:u.height*y.y,x:u.x*y.x-h.scrollLeft*y.x+_.x+b.x,y:u.y*y.y-h.scrollTop*y.y+_.y+b.y}}function jx(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function Dx(o){const n=uu(o),u=o.ownerDocument.body,l=An(o.scrollWidth,o.clientWidth,u.scrollWidth,u.clientWidth),d=An(o.scrollHeight,o.clientHeight,u.scrollHeight,u.clientHeight);let c=-n.scrollLeft+du(o);const f=-n.scrollTop;return Qa(u).direction==="rtl"&&(c+=An(o.clientWidth,u.clientWidth)-l),{width:l,height:d,x:c,y:f}}const Ox=25;function qx(o,n,u){u===void 0&&(u="viewport");const l=u==="layoutViewport",d=ra(o),c=Zo(o),f=d.visualViewport;let p=c.clientWidth,h=c.clientHeight,y=0,_=0;if(f){const b=!Pm()||n==="fixed";l?b||(y=-f.offsetLeft,_=-f.offsetTop):(p=f.width,h=f.height,b&&(y=f.offsetLeft,_=f.offsetTop))}if(du(c)<=0){const b=c.ownerDocument,S=b.body,C=getComputedStyle(S),z=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,A=Math.abs(c.clientWidth-S.clientWidth-z),E=getComputedStyle(c).scrollbarGutter==="stable both-edges"?A/2:A;E<=Ox&&(p-=E)}return{width:p,height:h,x:y,y:_}}function Rx(o,n){const u=Hs(o,!0,n==="fixed"),l=u.top+o.clientTop,d=u.left+o.clientLeft,c=Cn(o),f=o.clientWidth*c.x,p=o.clientHeight*c.y,h=d*c.x,y=l*c.y;return{width:f,height:p,x:h,y}}function X_(o,n,u){let l;if(n==="viewport"||n==="layoutViewport")l=qx(o,u,n);else if(n==="document")l=Dx(Zo(o));else if(Wa(n))l=Rx(n,u);else{const d=ry(o);l={x:n.x-d.x,y:n.y-d.y,width:n.width,height:n.height}}return Yl(l)}function Bx(o,n){const u=n.get(o);if(u)return u;let l=iy(o,[]).filter(p=>Wa(p)&&Tn(p)!=="body"),d=null;const c=Qa(o).position==="fixed";let f=c?zi(o):o;for(;Wa(f)&&!Ps(f);){const p=Qa(f),h=Um(f),y=d?d.position:c?"fixed":"";!h&&(y==="fixed"||y==="absolute"&&p.position==="static")?l=l.filter(g=>g!==f):d=p,f=zi(f)}return n.set(o,l),l}function Lx(o){let{element:n,boundary:u,rootBoundary:l,strategy:d}=o;const f=[...u==="clippingAncestors"?lu(n)?[]:Bx(n,this._c):[].concat(u),l],p=X_(n,f[0],d);let h=p.top,y=p.right,_=p.bottom,g=p.left;for(let b=1;b<f.length;b++){const S=X_(n,f[b],d);h=An(S.top,h),y=wm(S.right,y),_=wm(S.bottom,_),g=An(S.left,g)}return{width:y-g,height:_-h,x:g,y:h}}function Ix(o){const{width:n,height:u}=ny(o);return{width:n,height:u}}function Ux(o,n,u){const l=Xo(n),d=Zo(n),c=u==="fixed",f=Hs(o,!0,c,n);let p={scrollLeft:0,scrollTop:0};const h=ho(0);if((l||!c)&&((Tn(n)!=="body"||ru(d))&&(p=uu(n)),l)){const b=Hs(n,!0,c,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}!l&&d&&(h.x=du(d));const y=d&&!l&&!c?ly(d,p):ho(0),_=f.left+p.scrollLeft-h.x-y.x,g=f.top+p.scrollTop-h.y-y.y;return{x:_,y:g,width:f.width,height:f.height}}function om(o){return Qa(o).position==="static"}function J_(o,n){if(!Xo(o)||Qa(o).position==="fixed")return null;if(n)return n(o);let u=o.offsetParent;return Zo(o)===u&&(u=u.ownerDocument.body),u}function uy(o,n){const u=ra(o);if(lu(o))return u;if(!Xo(o)){let d=zi(o);for(;d&&!Ps(d);){if(Wa(d)&&!om(d))return d;d=zi(d)}return u}let l=J_(o,n);for(;l&&Ax(l)&&om(l);)l=J_(l,n);return l&&Ps(l)&&om(l)&&!Um(l)?u:l||zx(o)||u}const Px=async function(o){const n=this.getOffsetParent||uy,u=this.getDimensions,l=await u(o.floating);return{reference:Ux(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Hx(o){return Qa(o).direction==="rtl"}const Fx={convertOffsetParentRelativeRectToViewportRelativeRect:Ex,getDocumentElement:Zo,getClippingRect:Lx,getOffsetParent:uy,getElementRects:Px,getClientRects:jx,getDimensions:Ix,getScale:Cn,isElement:Wa,isRTL:Hx},Vx=Sx,Gx=Mx,Kx=yx,Yx=(o,n,u)=>{const l=new Map,d=u??{},c={...Fx,...d.platform,_c:l};return bx(o,n,{...d,platform:c})};var Mn=jm(),Wx=typeof document<"u",Qx=function(){},ql=Wx?k.useLayoutEffect:Qx;function Wl(o,n){if(o===n)return!0;if(typeof o!=typeof n)return!1;if(typeof o=="function"&&o.toString()===n.toString())return!0;let u,l,d;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(u=o.length,u!==n.length)return!1;for(l=u;l--!==0;)if(!Wl(o[l],n[l]))return!1;return!0}if(d=Object.keys(o),u=d.length,u!==Object.keys(n).length)return!1;for(l=u;l--!==0;)if(!{}.hasOwnProperty.call(n,d[l]))return!1;for(l=u;l--!==0;){const c=d[l];if(!(c==="_owner"&&o.$$typeof)&&!Wl(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function dy(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function $_(o,n){const u=dy(o);return Math.round(n*u)/u}function im(o){const n=k.useRef(o);return ql(()=>{n.current=o}),n}function cu(o){o===void 0&&(o={});const{placement:n="bottom",strategy:u="absolute",middleware:l=[],platform:d,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:y}=o,[_,g]=k.useState({x:0,y:0,strategy:u,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=k.useState(l);Wl(b,l)||S(l);const[C,z]=k.useState(null),[A,E]=k.useState(null),x=k.useCallback(K=>{K!==H.current&&(H.current=K,z(K))},[]),L=k.useCallback(K=>{K!==D.current&&(D.current=K,E(K))},[]),G=c||C,Z=f||A,H=k.useRef(null),D=k.useRef(null),q=k.useRef(_),V=h!=null,$=im(h),W=im(d),ee=im(y),ae=k.useCallback(()=>{if(!H.current||!D.current)return;const K={placement:n,strategy:u,middleware:b};W.current&&(K.platform=W.current),Yx(H.current,D.current,K).then(ie=>{const ne={...ie,isPositioned:ee.current!==!1};X.current&&!Wl(q.current,ne)&&(q.current=ne,Mn.flushSync(()=>{g(ne)}))})},[b,n,u,W,ee]);ql(()=>{y===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[y]);const X=k.useRef(!1);ql(()=>(X.current=!0,()=>{X.current=!1}),[]),ql(()=>{if(G&&(H.current=G),Z&&(D.current=Z),G&&Z){if($.current)return $.current(G,Z,ae);ae()}},[G,Z,ae,$,V]);const Y=k.useMemo(()=>({reference:H,floating:D,setReference:x,setFloating:L}),[x,L]),I=k.useMemo(()=>({reference:G,floating:Z}),[G,Z]),T=k.useMemo(()=>{const K={position:u,left:0,top:0};if(!I.floating)return K;const ie=$_(I.floating,_.x),ne=$_(I.floating,_.y);return p?{...K,transform:"translate("+ie+"px, "+ne+"px)",...dy(I.floating)>=1.5&&{willChange:"transform"}}:{position:u,left:ie,top:ne}},[u,p,I.floating,_.x,_.y]);return k.useMemo(()=>({..._,update:ae,refs:Y,elements:I,floatingStyles:T}),[_,ae,Y,I,T])}const Zx=(o,n)=>{const u=Vx(o);return{name:u.name,fn:u.fn,options:[o,n]}},mu=(o,n)=>{const u=Gx(o);return{name:u.name,fn:u.fn,options:[o,n]}},Xx=(o,n)=>{const u=Kx(o);return{name:u.name,fn:u.fn,options:[o,n]}};function Jx({children:o,title:n,style:u,placement:l,subtitle:d}){const[c,f]=k.useState(!1),[p,h]=k.useState(!1),[y,_]=k.useState(null),g=k.useRef(`tooltip-${Math.random()}`),b=k.useRef(null),{x:S,y:C,refs:z,strategy:A,placement:E}=cu({placement:l||"bottom",middleware:[Xx(),Zx(15),mu()],elements:{reference:y}}),x=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},L=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},G=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},Z=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},H=()=>!c&&!p?"initial":p?"close":"open";return w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"tooltip",style:u,onMouseEnter:x,onMouseLeave:L,onFocus:G,onBlur:Z,ref:_,"aria-describedby":g.current,children:o}),(c||p)&&w.jsxs("span",{ref:z.setFloating,style:{position:A,top:C??"",left:S??"",display:"flex",flexFlow:"column"},className:"tooltipTitle","data-status":H(),"data-placement":E,children:[n,w.jsx("span",{style:{fontSize:"8px"},children:d})]})]})}const ht=k.memo(Jx),Fs=k.forwardRef(({icon:o,label:n,type:u,iconPlacement:l,onClick:d,active:c,disabled:f,tooltipTitle:p,tooltipKey:h,href:y,style:_},g)=>{let b;switch(u){case"settings":b="btn-settings";break;case"secondary":b="btn-secondary";break;case"icon":b="btn-icon";break;case"navigation":b="btn-navigation";break;case"collection":b="btn-collection";break;case"linkIconButton":b="btn-icon";break;case"linkButton":b="btn-settings";break;default:b="btn-default"}l==="right"&&(b+=" flowReverse"),c&&(b+=` ${b}-active`);const S=w.jsxs("button",{className:b,onClick:d,ref:g,disabled:f,style:_,children:[o,n]}),C=w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:y,style:_,target:"_blank",rel:"noopener noreferrer",children:[o,n]}),z=w.jsx(ht,{title:p,children:w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:y,target:"_blank",rel:"noopener noreferrer",style:_,children:[o,n]})},h);switch(u){case"linkIconButton":return z;case"linkButton":return C;case"icon":return w.jsx(ht,{title:p,children:S},h);default:return S}});Fs.displayName="Button";function $x({urlError:o,iconError:n,addLink:u,closeModal:l,edit:d,editData:c,editLink:f}){const[p,h]=k.useState(d?c.name:""),[y,_]=k.useState(d?c.url:""),[g,b]=k.useState(d?c.icon:"");return w.jsxs("div",{className:"addLinkModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:d?pe.getMessage("widgets.quicklinks.edit"):pe.getMessage("widgets.quicklinks.new")}),w.jsx(ht,{title:pe.getMessage("modals.welcome.buttons.close"),children:w.jsx("div",{className:"close",onClick:()=>l(),children:w.jsx(Is,{})})})]}),w.jsxs("div",{className:"quicklinkModalTextbox",children:[w.jsx("input",{type:"text",className:"text-field-input",placeholder:pe.getMessage("widgets.quicklinks.name"),value:p,onChange:S=>h(S.target.value.replace(/(\r\n|\n|\r)/gm,"")),style:{gridColumn:"span 2"}}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:pe.getMessage("widgets.quicklinks.url"),value:y,onChange:S=>_(S.target.value.replace(/(\r\n|\n|\r)/gm,""))}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:pe.getMessage("widgets.quicklinks.icon"),value:g,onChange:S=>b(S.target.value.replace(/(\r\n|\n|\r)/gm,""))})]}),w.jsxs("div",{className:"addFooter",children:[w.jsxs("span",{className:"dropdown-error",children:[n," ",o]}),d?w.jsx(Fs,{type:"settings",onClick:()=>f(c,p,y,g),icon:w.jsx(q_,{}),label:pe.getMessage("modals.main.settings.sections.quicklinks.edit")}):w.jsx(Fs,{type:"settings",onClick:()=>u(p,y,g),icon:w.jsx(q_,{}),label:pe.getMessage("widgets.quicklinks.add")})]})]})}const CN=k.memo($x),e2=[{name:"time",value:!0},{name:"greeting",value:!0},{name:"background",value:!0},{name:"quote",value:!1},{name:"searchBar",value:!1},{name:"blur",value:0},{name:"brightness",value:90},{name:"zero",value:!0},{name:"events",value:!0},{name:"customBackground",value:""},{name:"greetingName",value:""},{name:"defaultGreetingMessage",value:!0},{name:"backgroundAPI",value:"mue"},{name:"copyButton",value:!1},{name:"installed",value:[]},{name:"searchEngine",value:"duckduckgo"},{name:"refresh",value:!1},{name:"view",value:!0},{name:"favouriteEnabled",value:!0},{name:"quoteShareButton",value:!1},{name:"favouriteQuoteEnabled",value:!1},{name:"showWelcome",value:!1},{name:"date",value:"false"},{name:"timeType",value:"digital"},{name:"dateFormat",value:"DMY"},{name:"shortFormat",value:"dots"},{name:"toastDisplayTime",value:2500},{name:"fontstyle",value:"normal"},{name:"fontweight",value:400},{name:"order",value:'["greeting", "time", "quicklinks", "date", "message"]'},{name:"theme",value:"auto"},{name:"backgroundType",value:"api"},{name:"timeformat",value:"twentyfourhour"},{name:"experimental",value:!1},{name:"debugtimeout",value:0},{name:"quicklinks",value:"[]"},{name:"quicklinksenabled",value:!1},{name:"weatherEnabled",value:!1},{name:"weatherType",value:2},{name:"tempformat",value:"celsius"},{name:"authorImg",value:!0},{name:"authorLink",value:!0},{name:"bgtransition",value:!0},{name:"backgroundVideoLoop",value:!0},{name:"backgroundVideoMute",value:!0},{name:"quicklinkstooltip",value:!0},{name:"notesEnabled",value:!0},{name:"showlocation",value:!0},{name:"minuteHand",value:!0},{name:"hourHand",value:!0},{name:"datezero",value:!0},{name:"autocompleteProvider",value:"google"},{name:"quoteType",value:"quote_pack"},{name:"backgroundFilter",value:"none"},{name:"apiQuality",value:"high"},{name:"photoInformation",value:!0},{name:"backgroundFilterAmount",value:0},{name:"stats",value:!1},{name:"statsData",value:"{}"},{name:"localeFormatting",value:!0},{name:"offlineMode",value:!0},{name:"animations",value:!0},{name:"textBorder",value:"new"},{name:"widgetStyle",value:"new"},{name:"backgroundExclude",value:"[]"},{name:"photoMap",value:!0},{name:"appsEnabled",value:!1},{name:"applinks",value:"[]"},{name:"customEvents",value:'[{"id":"widgets.greeting.christmas","name":"Merry Christmas","month":12,"date":25},{"id":"widgets.greeting.newyear","name":"Happy New Year","month":1,"date":1},{"id":"widgets.greeting.halloween","name":"Happy Halloween","month":10,"date":31}]'},{name:"authorDetails",value:!0},{name:"taskBox",value:!0},{name:"taskBoxMode",value:"ask"},{name:"taskBoxFocus",value:!0},{name:"recentChats",value:!1}],t2=[{name:"العربية",value:"ar"},{name:"مصرى",value:"arz"},{name:"Azərbaycan",value:"az"},{name:"تۆرکجه",value:"azb"},{name:"Bahasa Indonesia",value:"id_ID"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de_DE"},{name:"Ελληνικά",value:"el"},{name:"English (UK)",value:"en_GB"},{name:"English (US)",value:"en_US"},{name:"Español",value:"es"},{name:"Español (Latinoamérica)",value:"es_419"},{name:"Eesti",value:"et"},{name:"فارسی",value:"fa"},{name:"Français",value:"fr"},{name:"Magyar",value:"hu"},{name:"日本語",value:"ja"},{name:"Lietuvių",value:"lt"},{name:"Latviešu",value:"lv"},{name:"Nederlands",value:"nl"},{name:"Norsk",value:"no"},{name:"𐎱𐎠𐎼𐎿",value:"peo"},{name:"Pусский",value:"ru"},{name:"Português",value:"pt"},{name:"Português (Brasil)",value:"pt_BR"},{name:"Português (Portugal)",value:"pt_PT"},{name:"Slovenščina",value:"sl"},{name:"Svenska",value:"sv"},{name:"தமிழ்",value:"ta"},{name:"Türkçe",value:"tr_TR"},{name:"Українська",value:"uk"},{name:"Tiếng Việt",value:"vi"},{name:"中文 (简体)",value:"zh_CN"},{name:"中文 (繁體)",value:"zh_Hant"}];function Am(o){localStorage.clear(),e2.forEach(l=>localStorage.setItem(l.name,l.value));const n=t2.map(({value:l})=>l),u=navigator.languages&&navigator.languages.find(l=>l.replace("-","_")&&n.includes(l))||navigator.language.replace("-","_");n.includes(u)?localStorage.setItem("language",u):localStorage.setItem("language","en_GB"),localStorage.setItem("tabName",pe.getMessage("tabname")),o&&localStorage.setItem("showWelcome",!1),localStorage.setItem("firstRun",!0)}function a2(o,n="file",u="text/json"){typeof o=="object"&&(o=JSON.stringify(o,void 0,4));const l=new Blob([o],{type:u}),d=document.createEvent("MouseEvents"),c=document.createElement("a");c.href=window.URL.createObjectURL(l),c.download=n,c.dataset.downloadurl=[u,c.download,c.href].join(":"),d.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(d)}function nm(o){switch(localStorage.getItem("theme")){case"dark":document.body.classList.add("dark"),document.body.classList.remove("light");break;case"auto":window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.classList.add("dark"):(document.body.classList.remove("dark"),document.body.classList.add("light"));break;default:document.body.classList.add("light"),document.body.classList.remove("dark")}document.title=localStorage.getItem("tabName")||pe.getMessage("tabname"),o===!0&&["customcss","customfont"].forEach(c=>{try{document.head.removeChild(document.getElementById(c))}catch{}}),localStorage.getItem("animations")==="false"?document.body.classList.add("no-animations"):document.body.classList.remove("no-animations");const n=localStorage.getItem("textBorder");n==="true"?["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.add("textBorder")}catch{}}):["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.remove("textBorder")}catch{}}),n==="none"?document.getElementById("center").classList.add("no-textBorder"):document.getElementById("center").classList.remove("no-textBorder");const u=localStorage.getItem("customcss");u&&document.head.insertAdjacentHTML("beforeend",'<style id="customcss">'+u+"</style>");const l=localStorage.getItem("font");l&&document.head.insertAdjacentHTML("beforeend",`
<style id='customfont'>
* {
font-family: '${l}', 'Lexend Deca', 'Inter', sans-serif !important;
@@ -855,7 +855,7 @@ Note: if you don't like "{category}" images, you can deselect the category in th
font-style: ${localStorage.getItem("fontstyle")};
}
</style>
- `),localStorage.getItem("applinks")===null&&localStorage.setItem("applinks",JSON.stringify([])),localStorage.getItem("appsEnabled")===null&&localStorage.setItem("showWelcome",!1)}function o2(){const o=Object.keys(localStorage);if(o.length===0)return Am();const n={};o.forEach(u=>{n[u]=localStorage.getItem(u)}),localStorage.clear(),Am(),Object.keys(n).forEach(u=>{localStorage.setItem(u,n[u])})}function i2({modalClose:o}){const n=async()=>{pe.stats.postEvent("setting","Reset");try{await Lb()}catch{}Am("reset"),window.location.reload()};return w.jsxs("div",{className:"smallModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.title")}),w.jsx(ht,{title:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),children:w.jsx("div",{className:"close",onClick:o,children:w.jsx(Is,{})})})]}),w.jsx("span",{className:"title",children:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.question")}),w.jsx("span",{className:"subtitle",children:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.information")}),w.jsxs("div",{className:"resetFooter",children:[w.jsx(Fs,{type:"secondary",onClick:o,icon:w.jsx(Is,{}),label:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),w.jsx(Fs,{type:"settings",onClick:()=>n(),icon:w.jsx(LA,{}),label:pe.getMessage("modals.main.settings.buttons.reset")})]})]})}const xN=k.memo(i2),ev={[Yo.SETTINGS]:{itemCount:16,dividerPositions:[10,12],textWidths:[80,100,70,90,85,75,80,95,90,75,85,90,85,80,70,95]},[Yo.DISCOVER]:{itemCount:5,dividerPositions:[0],textWidths:[60,95,95,110,90]},[Yo.LIBRARY]:{itemCount:0,dividerPositions:[],textWidths:[]}},n2=({currentTab:o=Yo.SETTINGS})=>{const n=ev[o]||ev[Yo.SETTINGS];return n.itemCount===0?null:w.jsx("div",{className:"sidebarSkeleton",children:Array.from({length:n.itemCount}).map((u,l)=>{const d=n.dividerPositions.includes(l),c=n.textWidths[l]||80;return w.jsxs("div",{children:[w.jsxs("div",{className:"skeletonItem",children:[w.jsx("div",{className:"iconPlaceholder pulse"}),w.jsx("div",{className:"textPlaceholder pulse",style:{width:`${c}px`}})]}),d&&w.jsx("hr",{className:"skeletonDivider"})]},l)})})},s2=({currentTab:o})=>w.jsxs("div",{style:{display:"flex",width:"100%",minHeight:"100%"},children:[w.jsx("div",{className:"modalSidebar",children:w.jsx(n2,{currentTab:o})}),w.jsx("div",{className:"modalTabContent",children:w.jsx("div",{className:"emptyItems",children:w.jsx("div",{className:"emptyMessage",children:w.jsxs("div",{className:"loaderHolder",children:[w.jsx("div",{id:"loader"}),w.jsx("span",{className:"subtitle",children:pe.getMessage("modals.main.loading")})]})})})})]}),r2=""+new URL("webbrain-rEIJfo36.png",import.meta.url).href;function l2({currentTab:o,currentSection:n,currentSectionName:u,currentSubSection:l,onSubSectionChange:d,onClose:c,onBack:f,onForward:p,canGoBack:h,canGoForward:y}){const _=Qo(),g=iC.find(({tab:z})=>z===o),b=g?_(g.messageKey):"",S=(z,A)=>{if(!z||!A)return z;const E=`modals.main.settings.sections.${A}.${z}.title`,x=_(E);return!x||x===E?z.charAt(0).toUpperCase()+z.slice(1):x},C=[];return b&&(C.push({label:b,onClick:null}),n&&(C.push({label:n,onClick:l?()=>d(null):null}),l&&C.push({label:S(l,u),onClick:null}))),w.jsxs("div",{className:"modalTopBar",children:[w.jsxs("div",{className:"topBarLeft",children:[w.jsxs("div",{className:"navigationButtons",children:[w.jsx(ht,{title:"Back",children:w.jsx("button",{className:"navButton",onClick:f,disabled:!h,"aria-label":"Navigate back",children:w.jsx(xA,{})})},"backTooltip"),w.jsx(ht,{title:"Forward",children:w.jsx("button",{className:"navButton",onClick:p,disabled:!y,"aria-label":"Navigate forward",children:w.jsx(Db,{})})},"forwardTooltip")]}),w.jsx("img",{src:r2,alt:"WebBrain",className:"topBarLogo",draggable:!1}),C.length>0&&w.jsx("nav",{className:"breadcrumbs","aria-label":"Breadcrumb navigation",children:C.map((z,A)=>{const E=A===C.length-1,x=z.onClick!==null;return w.jsxs("span",{className:"breadcrumb-segment",children:[x?w.jsx("span",{className:"breadcrumb-item breadcrumb-clickable",onClick:z.onClick,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),z.onClick())},role:"button",tabIndex:0,"aria-label":`Navigate to ${z.label}`,children:z.label}):w.jsx("span",{className:`breadcrumb-item ${E?"breadcrumb-current":""}`,"aria-current":E?"page":void 0,children:z.label}),!E&&w.jsx(CA,{className:"breadcrumb-separator","aria-hidden":"true"})]},A)})})]}),w.jsx("div",{className:"topBarRight",children:w.jsx(ht,{title:_("modals.welcome.buttons.close"),children:w.jsx("span",{className:"closeModal",onClick:c,children:w.jsx(Is,{})})},"closeTooltip")})]})}const u2=k.lazy(()=>Lm(()=>import("./Settings-DPCKRiko.js"),__vite__mapDeps([1,2]),import.meta.url));function d2({modalClose:o,deepLinkData:n}){const u=Yo.SETTINGS,[l,d]=k.useState(""),[c,f]=k.useState(""),[p,h]=k.useState(n?.subSection||null),[y,_]=k.useState(null);k.useEffect(()=>{n?.section&&(_({type:"settings-section",data:n.section,timestamp:Date.now()}),n.subSection&&h(n.subSection))},[n]),k.useEffect(()=>()=>{window.location.hash&&window.history.replaceState(null,null,window.location.pathname)},[]),k.useEffect(()=>{const S=()=>{const C=window.location.hash?Pl(window.location.hash):null;C?.section?(_({type:"settings-section",data:C.section,timestamp:Date.now()}),h(C.subSection||null)):window.location.hash||o?.()};return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[o]);const g=(S,C)=>{d(S),f(C),h(null),C&&Hl(`#${u}/${C}`,!1)},b=(S,C)=>{h(S),C&&Hl(S?`#${u}/${C}/${S}`:`#${u}/${C}`)};return w.jsxs("div",{className:"frame",children:[w.jsx(l2,{currentTab:u,currentSection:l,currentSectionName:c,currentSubSection:p,onSubSectionChange:b,onClose:o,onBack:()=>window.history.back(),onForward:()=>window.history.forward(),canGoBack:!0,canGoForward:!0}),w.jsx("div",{style:{flex:1,display:"flex",overflow:"hidden",minHeight:0},children:w.jsx(k.Suspense,{fallback:w.jsx(s2,{currentTab:u}),children:w.jsx(u2,{currentTab:u,changeTab:()=>{},deepLinkData:n,onSectionChange:g,onSubSectionChange:b,currentSubSection:p,navigationTrigger:y},u)})})]})}const c2=k.memo(d2),tv=["#3b6ea8","#2f8f83","#a85a3b","#7a4fa3","#a38a2f","#b0425b","#4a7f3a","#456b8f"];function cy(o,n=""){let u;try{u=new URL(o).hostname.replace(/^www\./,"")}catch{u=String(o||"")}const l=(n||u||"?").trim(),d=(Array.from(l)[0]||"?").toUpperCase().replace(/[&<>"']/g,"?");let c=0;for(const h of u)c=c*31+h.charCodeAt(0)>>>0;const p=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="${tv[c%tv.length]}"/><text x="32" y="43" font-family="sans-serif" font-size="32" font-weight="600" text-anchor="middle" fill="#fff">${d}</text></svg>`;return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`}const av=()=>{try{const o=localStorage.getItem("quicklinks");if(!o)return[];const n=JSON.parse(o);return Array.isArray(n)?n:[]}catch(o){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",o),[]}},my=k.memo(()=>{const[o,n]=k.useState(av()),[u,l]=k.useState(0),d=k.useRef(null),c=k.useCallback(_=>{if(!_)return;const g=localStorage.getItem("zoomQuicklinks")||100;for(const b of _.getElementsByTagName("span"))b.style.fontSize=`${14*Number(g/100)}px`;if(localStorage.getItem("quickLinksStyle")!=="text")for(const b of _.getElementsByTagName("img"))b.style.height=`${30*Number(g/100)}px`},[]);k.useEffect(()=>{const _=g=>{if(g==="quicklinks"){if(localStorage.getItem("quicklinksenabled")==="false"){d.current&&(d.current.style.display="none");return}d.current&&(d.current.style.display="flex"),n(av()),l(Date.now())}};return _e.on("refresh",_),c(d.current),()=>{_e.off("refresh",_)}},[c]),k.useEffect(()=>{c(d.current)},[o,u,c]);let f,p=null;localStorage.getItem("quicklinksnewtab")==="true"&&(f="_blank",p="noopener noreferrer");const h=localStorage.getItem("quicklinkstooltip"),y=(_,g)=>{if(localStorage.getItem("quickLinksStyle")==="text")return w.jsx("a",{className:"quicklinkstext",href:_.url,target:f,rel:p,draggable:!1,children:_.name},`quicklink-${_.key}-${g}`);const b=_.icon||cy(_.url,_.name);if(localStorage.getItem("quickLinksStyle")==="metro")return w.jsxs("a",{className:"quickLinksMetro",href:_.url,target:f,rel:p,draggable:!1,children:[w.jsx("img",{src:b,alt:_.name,draggable:!1}),w.jsx("span",{className:"subtitle",children:_.name})]},`quicklink-${_.key}-${g}`);const S=w.jsx("a",{href:_.url,target:f,rel:p,draggable:!1,children:w.jsx("img",{src:b,alt:_.name,draggable:!1})},`quicklink-${_.key}-${g}`);return h==="true"?w.jsx(ht,{title:_.name,placement:"bottom",children:S},`quicklink-${_.key}-${g}`):S};return w.jsx("div",{className:"quicklinkscontainer",ref:d,children:o&&o.map((_,g)=>y(_,g))})});my.displayName="QuickLinks";const m2=()=>{const[o,n]=k.useState(""),[u,l]=k.useState(null),[d,c]=k.useState("block"),[f,p]=k.useState("1em"),h=k.useRef(),y=g=>{const b=new Date(g.valueOf()),S=(b.getDay()+6)%7;b.setDate(b.getDate()-S+3);const C=b.valueOf();b.setMonth(0,1),b.getDay()!==4&&b.setMonth(0,1+(4-b.getDay()+7)%7),l(`${pe.getMessage("widgets.date.week")} ${1+Math.ceil((C-b)/6048e5)}`)},_=()=>{let g=new Date;const b=localStorage.getItem("timezone");if(b&&b!=="auto"&&(g=Im(g,b)),localStorage.getItem("weeknumber")==="true"?y(g):l(null),localStorage.getItem("dateType")==="short"){const S=g.getDate(),C=g.getMonth()+1,z=g.getFullYear(),A=localStorage.getItem("datezero")==="true";let E=A?("00"+S).slice(-2):S,x=A?("00"+C).slice(-2):C,L=z;switch(localStorage.getItem("dateFormat")){case"MDY":{const[Z,H]=[E,x];E=H,x=Z;break}case"YMD":{const Z=E;E=L,L=Z;break}}let G;switch(localStorage.getItem("shortFormat")){case"dots":G=`${E}.${x}.${L}`;break;case"dash":G=`${E}-${x}-${L}`;break;case"gaps":G=`${E} - ${x} - ${L}`;break;case"slashes":G=`${E}/${x}/${L}`;break}n(G)}else{const S=pe.languagecode.split("_")[0],C=localStorage.getItem("datenth")==="true"?Yb(g.getDate()):g.getDate(),z=localStorage.getItem("dayofweek")==="true"?g.toLocaleDateString(S,{weekday:"long"}):"",A=g.toLocaleDateString(S,{month:"long"}),E=g.getFullYear();let x;switch(localStorage.getItem("longFormat")){case"MDY":x=`${A} ${C}, ${E}${z?`, ${z}`:""}`;break;case"YMD":x=`${E} ${A} ${C}${z?`, ${z}`:""}`;break;default:x=`${C} ${A} ${E}${z?`, ${z}`:""}`;break}n(x)}};return k.useEffect(()=>{const g=S=>{if(S==="date"||S==="timezone"){if(localStorage.getItem("date")==="false"){c("none");return}c("block"),p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_()}};p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_();const b=setInterval(_,6e4);return _e.on("refresh",g),()=>{clearInterval(b),_e.off("refresh",g)}},[]),w.jsxs("span",{className:"date",ref:h,style:{display:d,fontSize:f},children:[o,w.jsx("br",{}),u]})},ov=()=>{try{const o=JSON.parse(localStorage.getItem("messages"));return Array.isArray(o)?o.filter(n=>typeof n=="string"&&n!==""):[]}catch{return[]}},p2=()=>{const[o,n]=k.useState(""),[u,l]=k.useState("none"),[d,c]=k.useState("1em"),f=k.useRef();return k.useEffect(()=>{const p=y=>{if(y==="message"){const _=ov();n(S=>_.includes(S)?S:_.length>0?_[Math.floor(Math.random()*_.length)]:"");const g=localStorage.getItem("message"),b=localStorage.getItem("zoomMessage");l(g==="false"||_.length===0?"none":"block"),c(`${1*Number((b||100)/100)}em`)}},h=ov();return h.length>0&&(n(h[Math.floor(Math.random()*h.length)]),l("block")),_e.on("refresh",p),()=>{_e.off("refresh",p)}},[]),w.jsx("h2",{className:"message",ref:f,style:{display:u,fontSize:d},children:o.split(/\r?\n/).map(p=>w.jsxs("span",{children:[p,w.jsx("br",{})]},p))})};function Nn(){localStorage.setItem("showReminder",!0);const o=document.querySelector(".reminder-info");o&&(o.style.display="flex"),_e.emit("reminder")}const f2=k.memo(o=>{const[n,u]=k.useState(localStorage.getItem(o.name)||o.default),l=k.useRef(null),d=k.useCallback(p=>{let h=p.target.value;if(h=Number(h),h>o.max&&(h=o.max),h<o.min&&(h=o.min),localStorage.setItem(o.name,h),u(h),o.element&&!document.querySelector(o.element)){Nn();return}_e.emit("refresh",o.category)},[o]),c=k.useCallback(()=>{l.current&&cancelAnimationFrame(l.current);const p=Number(n),h=Number(o.default||0),y=300,_=performance.now(),g=b=>{const S=b-_,C=Math.min(S/y,1),z=1-Math.pow(1-C,3),A=p+(h-p)*z,E=Math.round(A/(Number(o.step)||1))*(Number(o.step)||1);localStorage.setItem(o.name,E),u(E),C<1?l.current=requestAnimationFrame(g):(localStorage.setItem(o.name,h),u(h),_e.emit("refresh",o.category))};l.current=requestAnimationFrame(g),De(pe.getMessage("toasts.reset"))},[n,o]),f=(Number(n)-Number(o.min))/(Number(o.max)-Number(o.min))*100;return w.jsxs("div",{className:"slider-container",children:[w.jsxs("div",{className:"slider-header",children:[w.jsx("span",{className:"slider-value",children:Number(n)}),w.jsxs("span",{className:"slider-reset",onClick:c,children:[w.jsx(Ls,{}),pe.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsxs("div",{className:"slider-wrapper",children:[w.jsx("input",{type:"range",className:"slider-input",value:Number(n),onChange:d,min:Number(o.min),max:Number(o.max),step:Number(o.step)||1,style:{"--slider-percentage":`${f}%`},"aria-label":o.title,"aria-valuemin":Number(o.min),"aria-valuemax":Number(o.max),"aria-valuenow":Number(n),disabled:o.disabled||!1}),o.marks&&o.marks.length>0&&w.jsx("div",{className:"slider-marks",children:o.marks.map(p=>w.jsx("span",{className:"slider-mark",style:{left:`${(p.value-Number(o.min))/(Number(o.max)-Number(o.min))*100}%`},children:p.label},p.value))})]})]})});f2.displayName="SliderComponent";const g2=({children:o})=>w.jsx("div",{id:"widgets",children:o}),iv=()=>{try{const o=JSON.parse(localStorage.getItem("order"));return Array.isArray(o)?o:[]}catch{return[]}},Mi=o=>localStorage.getItem(o)==="true",h2=()=>{const[o,n]=k.useState(iv),u=k.useMemo(()=>({time:Mi("time")&&w.jsx(HC,{}),greeting:Mi("greeting")&&w.jsx(VC,{}),date:Mi("date")&&w.jsx(m2,{}),quicklinks:Mi("quicklinksenabled")?w.jsx(my,{}):null,message:Mi("message")&&w.jsx(p2,{})}),[o]);return k.useEffect(()=>{const l=d=>{d==="widgets"&&n(iv())};return _e.on("refresh",l),()=>{_e.off("refresh",l)}},[]),w.jsxs(g2,{children:[o.map((l,d)=>w.jsx(k.Fragment,{children:u[l]},d)),Mi("taskBox")&&w.jsx(ix,{}),Mi("recentChats")&&w.jsx(sx,{})]})};var xl={exports:{}},Vo={},sm={exports:{}},rm,nv;function _2(){if(nv)return rm;nv=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return rm=o,rm}var lm,sv;function v2(){if(sv)return lm;sv=1;var o=_2();function n(){}function u(){}return u.resetWarningCache=n,lm=function(){function l(f,p,h,y,_,g){if(g!==o){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}l.isRequired=l;function d(){return l}var c={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:d,element:l,elementType:l,instanceOf:d,node:l,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:u,resetWarningCache:n};return c.PropTypes=c,c},lm}var rv;function py(){return rv||(rv=1,sm.exports=v2()()),sm.exports}var zl={exports:{}},ba={},Tl={exports:{}},lv;function fy(){return lv||(lv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var u="none",l="contents",d=/^(input|select|textarea|button|object|iframe)$/;function c(g,b){return b.getPropertyValue("overflow")!=="visible"||g.scrollWidth<=0&&g.scrollHeight<=0}function f(g){var b=g.offsetWidth<=0&&g.offsetHeight<=0;if(b&&!g.innerHTML)return!0;try{var S=window.getComputedStyle(g),C=S.getPropertyValue("display");return b?C!==l&&c(g,S):C===u}catch{return console.warn("Failed to inspect element style"),!1}}function p(g){for(var b=g,S=g.getRootNode&&g.getRootNode();b&&b!==document.body;){if(S&&b===S&&(b=S.host.parentNode),f(b))return!1;b=b.parentNode}return!0}function h(g,b){var S=g.nodeName.toLowerCase(),C=d.test(S)&&!g.disabled||S==="a"&&g.href||b;return C&&p(g)}function y(g){var b=g.getAttribute("tabindex");b===null&&(b=void 0);var S=isNaN(b);return(S||b>=0)&&h(g,!S)}function _(g){var b=[].slice.call(g.querySelectorAll("*"),0).reduce(function(S,C){return S.concat(C.shadowRoot?_(C.shadowRoot):[C])},[]);return b.filter(y)}o.exports=n.default})(Tl,Tl.exports)),Tl.exports}var uv;function b2(){if(uv)return ba;uv=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.resetState=f,ba.log=p,ba.handleBlur=h,ba.handleFocus=y,ba.markForFocusLater=_,ba.returnFocus=g,ba.popWithoutFocus=b,ba.setupScopedFocus=S,ba.teardownScopedFocus=C;var o=fy(),n=u(o);function u(z){return z&&z.__esModule?z:{default:z}}var l=[],d=null,c=!1;function f(){l=[]}function p(){}function h(){c=!0}function y(){if(c){if(c=!1,!d)return;setTimeout(function(){if(!d.contains(document.activeElement)){var z=(0,n.default)(d)[0]||d;z.focus()}},0)}}function _(){l.push(document.activeElement)}function g(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,A=null;try{l.length!==0&&(A=l.pop(),A.focus({preventScroll:z}));return}catch{console.warn(["You tried to return focus to",A,"but it is not in the DOM anymore"].join(" "))}}function b(){l.length>0&&l.pop()}function S(z){d=z,window.addEventListener?(window.addEventListener("blur",h,!1),document.addEventListener("focus",y,!0)):(window.attachEvent("onBlur",h),document.attachEvent("onFocus",y))}function C(){d=null,window.addEventListener?(window.removeEventListener("blur",h),document.removeEventListener("focus",y)):(window.detachEvent("onBlur",h),document.detachEvent("onFocus",y))}return ba}var Nl={exports:{}},dv;function y2(){return dv||(dv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var u=fy(),l=d(u);function d(p){return p&&p.__esModule?p:{default:p}}function c(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return p.activeElement.shadowRoot?c(p.activeElement.shadowRoot):p.activeElement}function f(p,h){var y=(0,l.default)(p);if(!y.length){h.preventDefault();return}var _=void 0,g=h.shiftKey,b=y[0],S=y[y.length-1],C=c();if(p===C){if(!g)return;_=S}if(S===C&&!g&&(_=b),b===C&&g&&(_=S),_){h.preventDefault(),_.focus();return}var z=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),A=z!=null&&z[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(A){var E=y.indexOf(C);if(E>-1&&(E+=g?-1:1),_=y[E],typeof _>"u"){h.preventDefault(),_=g?S:b,_.focus();return}h.preventDefault(),_.focus()}}o.exports=n.default})(Nl,Nl.exports)),Nl.exports}var Ea={},um,cv;function k2(){if(cv)return um;cv=1;var o=function(){};return um=o,um}var Ya={},dm={exports:{}};var mv;function w2(){return mv||(mv=1,(function(o){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),u={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};o.exports?o.exports=u:window.ExecutionEnvironment=u})()})(dm)),dm.exports}var pv;function Hm(){if(pv)return Ya;pv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.canUseDOM=Ya.SafeNodeList=Ya.SafeHTMLCollection=void 0;var o=w2(),n=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var l=n.default,d=l.canUseDOM?window.HTMLElement:{};return Ya.SafeHTMLCollection=l.canUseDOM?window.HTMLCollection:{},Ya.SafeNodeList=l.canUseDOM?window.NodeList:{},Ya.canUseDOM=l.canUseDOM,Ya.default=d,Ya}var fv;function gy(){if(fv)return Ea;fv=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.resetState=c,Ea.log=f,Ea.assertNodeList=p,Ea.setElement=h,Ea.validateElement=y,Ea.hide=_,Ea.show=g,Ea.documentNotReadyOrSSRTesting=b;var o=k2(),n=l(o),u=Hm();function l(S){return S&&S.__esModule?S:{default:S}}var d=null;function c(){d&&(d.removeAttribute?d.removeAttribute("aria-hidden"):d.length!=null?d.forEach(function(S){return S.removeAttribute("aria-hidden")}):document.querySelectorAll(d).forEach(function(S){return S.removeAttribute("aria-hidden")})),d=null}function f(){}function p(S,C){if(!S||!S.length)throw new Error("react-modal: No elements were found for selector "+C+".")}function h(S){var C=S;if(typeof C=="string"&&u.canUseDOM){var z=document.querySelectorAll(C);p(z,C),C=z}return d=C||d,d}function y(S){var C=S||d;return C?Array.isArray(C)||C instanceof HTMLCollection||C instanceof NodeList?C:[C]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function _(S){var C=!0,z=!1,A=void 0;try{for(var E=y(S)[Symbol.iterator](),x;!(C=(x=E.next()).done);C=!0){var L=x.value;L.setAttribute("aria-hidden","true")}}catch(G){z=!0,A=G}finally{try{!C&&E.return&&E.return()}finally{if(z)throw A}}}function g(S){var C=!0,z=!1,A=void 0;try{for(var E=y(S)[Symbol.iterator](),x;!(C=(x=E.next()).done);C=!0){var L=x.value;L.removeAttribute("aria-hidden")}}catch(G){z=!0,A=G}finally{try{!C&&E.return&&E.return()}finally{if(z)throw A}}}function b(){d=null}return Ea}var Ai={},gv;function S2(){if(gv)return Ai;gv=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.resetState=l,Ai.log=d;var o={},n={};function u(y,_){y.classList.remove(_)}function l(){var y=document.getElementsByTagName("html")[0];for(var _ in o)u(y,o[_]);var g=document.body;for(var b in n)u(g,n[b]);o={},n={}}function d(){}var c=function(_,g){return _[g]||(_[g]=0),_[g]+=1,g},f=function(_,g){return _[g]&&(_[g]-=1),g},p=function(_,g,b){b.forEach(function(S){c(g,S),_.add(S)})},h=function(_,g,b){b.forEach(function(S){f(g,S),g[S]===0&&_.remove(S)})};return Ai.add=function(_,g){return p(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai.remove=function(_,g){return h(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai}var Sn={},hv;function hy(){if(hv)return Sn;hv=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.log=l,Sn.resetState=d;function o(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var n=function c(){var f=this;o(this,c),this.register=function(p){f.openInstances.indexOf(p)===-1&&(f.openInstances.push(p),f.emit("register"))},this.deregister=function(p){var h=f.openInstances.indexOf(p);h!==-1&&(f.openInstances.splice(h,1),f.emit("deregister"))},this.subscribe=function(p){f.subscribers.push(p)},this.emit=function(p){f.subscribers.forEach(function(h){return h(p,f.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},u=new n;function l(){console.log("portalOpenInstances ----------"),console.log(u.openInstances.length),u.openInstances.forEach(function(c){return console.log(c)}),console.log("end portalOpenInstances ----------")}function d(){u=new n}return Sn.default=u,Sn}var Ns={},_v;function M2(){if(_v)return Ns;_v=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.resetState=f,Ns.log=p;var o=hy(),n=u(o);function u(_){return _&&_.__esModule?_:{default:_}}var l=void 0,d=void 0,c=[];function f(){for(var _=[l,d],g=0;g<_.length;g++){var b=_[g];b&&b.parentNode&&b.parentNode.removeChild(b)}l=d=null,c=[]}function p(){console.log("bodyTrap ----------"),console.log(c.length);for(var _=[l,d],g=0;g<_.length;g++){var b=_[g],S=b||{};console.log(S.nodeName,S.className,S.id)}console.log("edn bodyTrap ----------")}function h(){c.length!==0&&c[c.length-1].focusContent()}function y(_,g){!l&&!d&&(l=document.createElement("div"),l.setAttribute("data-react-modal-body-trap",""),l.style.position="absolute",l.style.opacity="0",l.setAttribute("tabindex","0"),l.addEventListener("focus",h),d=l.cloneNode(),d.addEventListener("focus",h)),c=g,c.length>0?(document.body.firstChild!==l&&document.body.insertBefore(l,document.body.firstChild),document.body.lastChild!==d&&document.body.appendChild(d)):(l.parentElement&&l.parentElement.removeChild(l),d.parentElement&&d.parentElement.removeChild(d))}return n.default.subscribe(y),Ns}var vv;function A2(){return vv||(vv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var u=Object.assign||function(X){for(var Y=1;Y<arguments.length;Y++){var I=arguments[Y];for(var T in I)Object.prototype.hasOwnProperty.call(I,T)&&(X[T]=I[T])}return X},l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},d=(function(){function X(Y,I){for(var T=0;T<I.length;T++){var K=I[T];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(Y,K.key,K)}}return function(Y,I,T){return I&&X(Y.prototype,I),T&&X(Y,T),Y}})(),c=Ws(),f=py(),p=Z(f),h=b2(),y=G(h),_=y2(),g=Z(_),b=gy(),S=G(b),C=S2(),z=G(C),A=Hm(),E=Z(A),x=hy(),L=Z(x);M2();function G(X){if(X&&X.__esModule)return X;var Y={};if(X!=null)for(var I in X)Object.prototype.hasOwnProperty.call(X,I)&&(Y[I]=X[I]);return Y.default=X,Y}function Z(X){return X&&X.__esModule?X:{default:X}}function H(X,Y){if(!(X instanceof Y))throw new TypeError("Cannot call a class as a function")}function D(X,Y){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:X}function q(X,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);X.prototype=Object.create(Y&&Y.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(X,Y):X.__proto__=Y)}var V={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},$=function(Y){return Y.code==="Tab"||Y.keyCode===9},W=function(Y){return Y.code==="Escape"||Y.keyCode===27},ee=0,ae=(function(X){q(Y,X);function Y(I){H(this,Y);var T=D(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,I));return T.setOverlayRef=function(K){T.overlay=K,T.props.overlayRef&&T.props.overlayRef(K)},T.setContentRef=function(K){T.content=K,T.props.contentRef&&T.props.contentRef(K)},T.afterClose=function(){var K=T.props,ie=K.appElement,ne=K.ariaHideApp,ye=K.htmlOpenClassName,Ce=K.bodyOpenClassName,Ve=K.parentSelector,j=Ve&&Ve().ownerDocument||document;Ce&&z.remove(j.body,Ce),ye&&z.remove(j.getElementsByTagName("html")[0],ye),ne&&ee>0&&(ee-=1,ee===0&&S.show(ie)),T.props.shouldFocusAfterRender&&(T.props.shouldReturnFocusAfterClose?(y.returnFocus(T.props.preventScroll),y.teardownScopedFocus()):y.popWithoutFocus()),T.props.onAfterClose&&T.props.onAfterClose(),L.default.deregister(T)},T.open=function(){T.beforeOpen(),T.state.afterOpen&&T.state.beforeClose?(clearTimeout(T.closeTimer),T.setState({beforeClose:!1})):(T.props.shouldFocusAfterRender&&(y.setupScopedFocus(T.node),y.markForFocusLater()),T.setState({isOpen:!0},function(){T.openAnimationFrame=requestAnimationFrame(function(){T.setState({afterOpen:!0}),T.props.isOpen&&T.props.onAfterOpen&&T.props.onAfterOpen({overlayEl:T.overlay,contentEl:T.content})})}))},T.close=function(){T.props.closeTimeoutMS>0?T.closeWithTimeout():T.closeWithoutTimeout()},T.focusContent=function(){return T.content&&!T.contentHasFocus()&&T.content.focus({preventScroll:!0})},T.closeWithTimeout=function(){var K=Date.now()+T.props.closeTimeoutMS;T.setState({beforeClose:!0,closesAt:K},function(){T.closeTimer=setTimeout(T.closeWithoutTimeout,T.state.closesAt-Date.now())})},T.closeWithoutTimeout=function(){T.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},T.afterClose)},T.handleKeyDown=function(K){$(K)&&(0,g.default)(T.content,K),T.props.shouldCloseOnEsc&&W(K)&&(K.stopPropagation(),T.requestClose(K))},T.handleOverlayOnClick=function(K){T.shouldClose===null&&(T.shouldClose=!0),T.shouldClose&&T.props.shouldCloseOnOverlayClick&&(T.ownerHandlesClose()?T.requestClose(K):T.focusContent()),T.shouldClose=null},T.handleContentOnMouseUp=function(){T.shouldClose=!1},T.handleOverlayOnMouseDown=function(K){!T.props.shouldCloseOnOverlayClick&&K.target==T.overlay&&K.preventDefault()},T.handleContentOnClick=function(){T.shouldClose=!1},T.handleContentOnMouseDown=function(){T.shouldClose=!1},T.requestClose=function(K){return T.ownerHandlesClose()&&T.props.onRequestClose(K)},T.ownerHandlesClose=function(){return T.props.onRequestClose},T.shouldBeClosed=function(){return!T.state.isOpen&&!T.state.beforeClose},T.contentHasFocus=function(){return document.activeElement===T.content||T.content.contains(document.activeElement)},T.buildClassName=function(K,ie){var ne=(typeof ie>"u"?"undefined":l(ie))==="object"?ie:{base:V[K],afterOpen:V[K]+"--after-open",beforeClose:V[K]+"--before-close"},ye=ne.base;return T.state.afterOpen&&(ye=ye+" "+ne.afterOpen),T.state.beforeClose&&(ye=ye+" "+ne.beforeClose),typeof ie=="string"&&ie?ye+" "+ie:ye},T.attributesFromObject=function(K,ie){return Object.keys(ie).reduce(function(ne,ye){return ne[K+"-"+ye]=ie[ye],ne},{})},T.state={afterOpen:!1,beforeClose:!1},T.shouldClose=null,T.moveFromContentToOverlay=null,T}return d(Y,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(T,K){this.props.isOpen&&!T.isOpen?this.open():!this.props.isOpen&&T.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!K.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var T=this.props,K=T.appElement,ie=T.ariaHideApp,ne=T.htmlOpenClassName,ye=T.bodyOpenClassName,Ce=T.parentSelector,Ve=Ce&&Ce().ownerDocument||document;ye&&z.add(Ve.body,ye),ne&&z.add(Ve.getElementsByTagName("html")[0],ne),ie&&(ee+=1,S.hide(K)),L.default.register(this)}},{key:"render",value:function(){var T=this.props,K=T.id,ie=T.className,ne=T.overlayClassName,ye=T.defaultStyles,Ce=T.children,Ve=ie?{}:ye.content,j=ne?{}:ye.overlay;if(this.shouldBeClosed())return null;var te={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:u({},j,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},se=u({id:K,ref:this.setContentRef,style:u({},Ve,this.props.style.content),className:this.buildClassName("content",ie),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",u({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),ce=this.props.contentElement(se,Ce);return this.props.overlayElement(te,ce)}}]),Y})(c.Component);ae.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},ae.propTypes={isOpen:p.default.bool.isRequired,defaultStyles:p.default.shape({content:p.default.object,overlay:p.default.object}),style:p.default.shape({content:p.default.object,overlay:p.default.object}),className:p.default.oneOfType([p.default.string,p.default.object]),overlayClassName:p.default.oneOfType([p.default.string,p.default.object]),parentSelector:p.default.func,bodyOpenClassName:p.default.string,htmlOpenClassName:p.default.string,ariaHideApp:p.default.bool,appElement:p.default.oneOfType([p.default.instanceOf(E.default),p.default.instanceOf(A.SafeHTMLCollection),p.default.instanceOf(A.SafeNodeList),p.default.arrayOf(p.default.instanceOf(E.default))]),onAfterOpen:p.default.func,onAfterClose:p.default.func,onRequestClose:p.default.func,closeTimeoutMS:p.default.number,shouldFocusAfterRender:p.default.bool,shouldCloseOnOverlayClick:p.default.bool,shouldReturnFocusAfterClose:p.default.bool,preventScroll:p.default.bool,role:p.default.string,contentLabel:p.default.string,aria:p.default.object,data:p.default.object,children:p.default.node,shouldCloseOnEsc:p.default.bool,overlayRef:p.default.func,contentRef:p.default.func,id:p.default.string,overlayElement:p.default.func,contentElement:p.default.func,testId:p.default.string},n.default=ae,o.exports=n.default})(zl,zl.exports)),zl.exports}function _y(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function vy(o){function n(u){var l=this.constructor.getDerivedStateFromProps(o,u);return l??null}this.setState(n.bind(this))}function by(o,n){try{var u=this.props,l=this.state;this.props=o,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(u,l)}finally{this.props=u,this.state=l}}_y.__suppressDeprecationWarning=!0;vy.__suppressDeprecationWarning=!0;by.__suppressDeprecationWarning=!0;function C2(o){var n=o.prototype;if(!n||!n.isReactComponent)throw new Error("Can only polyfill class components");if(typeof o.getDerivedStateFromProps!="function"&&typeof n.getSnapshotBeforeUpdate!="function")return o;var u=null,l=null,d=null;if(typeof n.componentWillMount=="function"?u="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(u="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?l="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(l="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?d="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(d="UNSAFE_componentWillUpdate"),u!==null||l!==null||d!==null){var c=o.displayName||o.name,f=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
+ `),localStorage.getItem("applinks")===null&&localStorage.setItem("applinks",JSON.stringify([])),localStorage.getItem("appsEnabled")===null&&localStorage.setItem("showWelcome",!1)}function o2(){const o=Object.keys(localStorage);if(o.length===0)return Am();const n={};o.forEach(u=>{n[u]=localStorage.getItem(u)}),localStorage.clear(),Am(),Object.keys(n).forEach(u=>{localStorage.setItem(u,n[u])})}function i2({modalClose:o}){const n=async()=>{pe.stats.postEvent("setting","Reset");try{await Lb()}catch{}Am("reset"),window.location.reload()};return w.jsxs("div",{className:"smallModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.title")}),w.jsx(ht,{title:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),children:w.jsx("div",{className:"close",onClick:o,children:w.jsx(Is,{})})})]}),w.jsx("span",{className:"title",children:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.question")}),w.jsx("span",{className:"subtitle",children:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.information")}),w.jsxs("div",{className:"resetFooter",children:[w.jsx(Fs,{type:"secondary",onClick:o,icon:w.jsx(Is,{}),label:pe.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),w.jsx(Fs,{type:"settings",onClick:()=>n(),icon:w.jsx(LA,{}),label:pe.getMessage("modals.main.settings.buttons.reset")})]})]})}const xN=k.memo(i2),ev={[Yo.SETTINGS]:{itemCount:16,dividerPositions:[10,12],textWidths:[80,100,70,90,85,75,80,95,90,75,85,90,85,80,70,95]},[Yo.DISCOVER]:{itemCount:5,dividerPositions:[0],textWidths:[60,95,95,110,90]},[Yo.LIBRARY]:{itemCount:0,dividerPositions:[],textWidths:[]}},n2=({currentTab:o=Yo.SETTINGS})=>{const n=ev[o]||ev[Yo.SETTINGS];return n.itemCount===0?null:w.jsx("div",{className:"sidebarSkeleton",children:Array.from({length:n.itemCount}).map((u,l)=>{const d=n.dividerPositions.includes(l),c=n.textWidths[l]||80;return w.jsxs("div",{children:[w.jsxs("div",{className:"skeletonItem",children:[w.jsx("div",{className:"iconPlaceholder pulse"}),w.jsx("div",{className:"textPlaceholder pulse",style:{width:`${c}px`}})]}),d&&w.jsx("hr",{className:"skeletonDivider"})]},l)})})},s2=({currentTab:o})=>w.jsxs("div",{style:{display:"flex",width:"100%",minHeight:"100%"},children:[w.jsx("div",{className:"modalSidebar",children:w.jsx(n2,{currentTab:o})}),w.jsx("div",{className:"modalTabContent",children:w.jsx("div",{className:"emptyItems",children:w.jsx("div",{className:"emptyMessage",children:w.jsxs("div",{className:"loaderHolder",children:[w.jsx("div",{id:"loader"}),w.jsx("span",{className:"subtitle",children:pe.getMessage("modals.main.loading")})]})})})})]}),r2=""+new URL("webbrain-rEIJfo36.png",import.meta.url).href;function l2({currentTab:o,currentSection:n,currentSectionName:u,currentSubSection:l,onSubSectionChange:d,onClose:c,onBack:f,onForward:p,canGoBack:h,canGoForward:y}){const _=Qo(),g=iC.find(({tab:z})=>z===o),b=g?_(g.messageKey):"",S=(z,A)=>{if(!z||!A)return z;const E=`modals.main.settings.sections.${A}.${z}.title`,x=_(E);return!x||x===E?z.charAt(0).toUpperCase()+z.slice(1):x},C=[];return b&&(C.push({label:b,onClick:null}),n&&(C.push({label:n,onClick:l?()=>d(null,u):null}),l&&C.push({label:S(l,u),onClick:null}))),w.jsxs("div",{className:"modalTopBar",children:[w.jsxs("div",{className:"topBarLeft",children:[w.jsxs("div",{className:"navigationButtons",children:[w.jsx(ht,{title:"Back",children:w.jsx("button",{className:"navButton",onClick:f,disabled:!h,"aria-label":"Navigate back",children:w.jsx(xA,{})})},"backTooltip"),w.jsx(ht,{title:"Forward",children:w.jsx("button",{className:"navButton",onClick:p,disabled:!y,"aria-label":"Navigate forward",children:w.jsx(Db,{})})},"forwardTooltip")]}),w.jsx("img",{src:r2,alt:"WebBrain",className:"topBarLogo",draggable:!1}),C.length>0&&w.jsx("nav",{className:"breadcrumbs","aria-label":"Breadcrumb navigation",children:C.map((z,A)=>{const E=A===C.length-1,x=z.onClick!==null;return w.jsxs("span",{className:"breadcrumb-segment",children:[x?w.jsx("span",{className:"breadcrumb-item breadcrumb-clickable",onClick:z.onClick,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),z.onClick())},role:"button",tabIndex:0,"aria-label":`Navigate to ${z.label}`,children:z.label}):w.jsx("span",{className:`breadcrumb-item ${E?"breadcrumb-current":""}`,"aria-current":E?"page":void 0,children:z.label}),!E&&w.jsx(CA,{className:"breadcrumb-separator","aria-hidden":"true"})]},A)})})]}),w.jsx("div",{className:"topBarRight",children:w.jsx(ht,{title:_("modals.welcome.buttons.close"),children:w.jsx("span",{className:"closeModal",onClick:c,children:w.jsx(Is,{})})},"closeTooltip")})]})}const u2=k.lazy(()=>Lm(()=>import("./Settings-CuZKKPjT.js"),__vite__mapDeps([1,2]),import.meta.url));function d2({modalClose:o,deepLinkData:n}){const u=Yo.SETTINGS,[l,d]=k.useState(""),[c,f]=k.useState(""),[p,h]=k.useState(n?.subSection||null),[y,_]=k.useState(null);k.useEffect(()=>{n?.section&&(_({type:"settings-section",data:n.section,timestamp:Date.now()}),n.subSection&&h(n.subSection))},[n]),k.useEffect(()=>()=>{window.location.hash&&window.history.replaceState(null,null,window.location.pathname)},[]),k.useEffect(()=>{const S=()=>{const C=window.location.hash?Pl(window.location.hash):null;C?.section?(_({type:"settings-section",data:C.section,timestamp:Date.now()}),h(C.subSection||null)):window.location.hash||o?.()};return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[o]);const g=(S,C,{fromHistory:z=!1}={})=>{d(S),f(C),!z&&(h(null),C&&Hl(`#${u}/${C}`,!1))},b=(S,C)=>{h(S),C&&Hl(S?`#${u}/${C}/${S}`:`#${u}/${C}`)};return w.jsxs("div",{className:"frame",children:[w.jsx(l2,{currentTab:u,currentSection:l,currentSectionName:c,currentSubSection:p,onSubSectionChange:b,onClose:o,onBack:()=>window.history.back(),onForward:()=>window.history.forward(),canGoBack:!0,canGoForward:!0}),w.jsx("div",{style:{flex:1,display:"flex",overflow:"hidden",minHeight:0},children:w.jsx(k.Suspense,{fallback:w.jsx(s2,{currentTab:u}),children:w.jsx(u2,{currentTab:u,changeTab:()=>{},deepLinkData:n,onSectionChange:g,onSubSectionChange:b,currentSubSection:p,navigationTrigger:y},u)})})]})}const c2=k.memo(d2),tv=["#3b6ea8","#2f8f83","#a85a3b","#7a4fa3","#a38a2f","#b0425b","#4a7f3a","#456b8f"];function cy(o,n=""){let u;try{u=new URL(o).hostname.replace(/^www\./,"")}catch{u=String(o||"")}const l=(n||u||"?").trim(),d=(Array.from(l)[0]||"?").toUpperCase().replace(/[&<>"']/g,"?");let c=0;for(const h of u)c=c*31+h.charCodeAt(0)>>>0;const p=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="${tv[c%tv.length]}"/><text x="32" y="43" font-family="sans-serif" font-size="32" font-weight="600" text-anchor="middle" fill="#fff">${d}</text></svg>`;return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`}const av=()=>{try{const o=localStorage.getItem("quicklinks");if(!o)return[];const n=JSON.parse(o);return Array.isArray(n)?n:[]}catch(o){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",o),[]}},my=k.memo(()=>{const[o,n]=k.useState(av()),[u,l]=k.useState(0),d=k.useRef(null),c=k.useCallback(_=>{if(!_)return;const g=localStorage.getItem("zoomQuicklinks")||100;for(const b of _.getElementsByTagName("span"))b.style.fontSize=`${14*Number(g/100)}px`;if(localStorage.getItem("quickLinksStyle")!=="text")for(const b of _.getElementsByTagName("img"))b.style.height=`${30*Number(g/100)}px`},[]);k.useEffect(()=>{const _=g=>{if(g==="quicklinks"){if(localStorage.getItem("quicklinksenabled")==="false"){d.current&&(d.current.style.display="none");return}d.current&&(d.current.style.display="flex"),n(av()),l(Date.now())}};return _e.on("refresh",_),c(d.current),()=>{_e.off("refresh",_)}},[c]),k.useEffect(()=>{c(d.current)},[o,u,c]);let f,p=null;localStorage.getItem("quicklinksnewtab")==="true"&&(f="_blank",p="noopener noreferrer");const h=localStorage.getItem("quicklinkstooltip"),y=(_,g)=>{if(localStorage.getItem("quickLinksStyle")==="text")return w.jsx("a",{className:"quicklinkstext",href:_.url,target:f,rel:p,draggable:!1,children:_.name},`quicklink-${_.key}-${g}`);const b=_.icon||cy(_.url,_.name);if(localStorage.getItem("quickLinksStyle")==="metro")return w.jsxs("a",{className:"quickLinksMetro",href:_.url,target:f,rel:p,draggable:!1,children:[w.jsx("img",{src:b,alt:_.name,draggable:!1}),w.jsx("span",{className:"subtitle",children:_.name})]},`quicklink-${_.key}-${g}`);const S=w.jsx("a",{href:_.url,target:f,rel:p,draggable:!1,children:w.jsx("img",{src:b,alt:_.name,draggable:!1})},`quicklink-${_.key}-${g}`);return h==="true"?w.jsx(ht,{title:_.name,placement:"bottom",children:S},`quicklink-${_.key}-${g}`):S};return w.jsx("div",{className:"quicklinkscontainer",ref:d,children:o&&o.map((_,g)=>y(_,g))})});my.displayName="QuickLinks";const m2=()=>{const[o,n]=k.useState(""),[u,l]=k.useState(null),[d,c]=k.useState("block"),[f,p]=k.useState("1em"),h=k.useRef(),y=g=>{const b=new Date(g.valueOf()),S=(b.getDay()+6)%7;b.setDate(b.getDate()-S+3);const C=b.valueOf();b.setMonth(0,1),b.getDay()!==4&&b.setMonth(0,1+(4-b.getDay()+7)%7),l(`${pe.getMessage("widgets.date.week")} ${1+Math.ceil((C-b)/6048e5)}`)},_=()=>{let g=new Date;const b=localStorage.getItem("timezone");if(b&&b!=="auto"&&(g=Im(g,b)),localStorage.getItem("weeknumber")==="true"?y(g):l(null),localStorage.getItem("dateType")==="short"){const S=g.getDate(),C=g.getMonth()+1,z=g.getFullYear(),A=localStorage.getItem("datezero")==="true";let E=A?("00"+S).slice(-2):S,x=A?("00"+C).slice(-2):C,L=z;switch(localStorage.getItem("dateFormat")){case"MDY":{const[Z,H]=[E,x];E=H,x=Z;break}case"YMD":{const Z=E;E=L,L=Z;break}}let G;switch(localStorage.getItem("shortFormat")){case"dots":G=`${E}.${x}.${L}`;break;case"dash":G=`${E}-${x}-${L}`;break;case"gaps":G=`${E} - ${x} - ${L}`;break;case"slashes":G=`${E}/${x}/${L}`;break}n(G)}else{const S=pe.languagecode.split("_")[0],C=localStorage.getItem("datenth")==="true"?Yb(g.getDate()):g.getDate(),z=localStorage.getItem("dayofweek")==="true"?g.toLocaleDateString(S,{weekday:"long"}):"",A=g.toLocaleDateString(S,{month:"long"}),E=g.getFullYear();let x;switch(localStorage.getItem("longFormat")){case"MDY":x=`${A} ${C}, ${E}${z?`, ${z}`:""}`;break;case"YMD":x=`${E} ${A} ${C}${z?`, ${z}`:""}`;break;default:x=`${C} ${A} ${E}${z?`, ${z}`:""}`;break}n(x)}};return k.useEffect(()=>{const g=S=>{if(S==="date"||S==="timezone"){if(localStorage.getItem("date")==="false"){c("none");return}c("block"),p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_()}};p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_();const b=setInterval(_,6e4);return _e.on("refresh",g),()=>{clearInterval(b),_e.off("refresh",g)}},[]),w.jsxs("span",{className:"date",ref:h,style:{display:d,fontSize:f},children:[o,w.jsx("br",{}),u]})},ov=()=>{try{const o=JSON.parse(localStorage.getItem("messages"));return Array.isArray(o)?o.filter(n=>typeof n=="string"&&n!==""):[]}catch{return[]}},p2=()=>{const[o,n]=k.useState(""),[u,l]=k.useState("none"),[d,c]=k.useState("1em"),f=k.useRef();return k.useEffect(()=>{const p=y=>{if(y==="message"){const _=ov();n(S=>_.includes(S)?S:_.length>0?_[Math.floor(Math.random()*_.length)]:"");const g=localStorage.getItem("message"),b=localStorage.getItem("zoomMessage");l(g==="false"||_.length===0?"none":"block"),c(`${1*Number((b||100)/100)}em`)}},h=ov();return h.length>0&&(n(h[Math.floor(Math.random()*h.length)]),l("block")),_e.on("refresh",p),()=>{_e.off("refresh",p)}},[]),w.jsx("h2",{className:"message",ref:f,style:{display:u,fontSize:d},children:o.split(/\r?\n/).map(p=>w.jsxs("span",{children:[p,w.jsx("br",{})]},p))})};function Nn(){localStorage.setItem("showReminder",!0);const o=document.querySelector(".reminder-info");o&&(o.style.display="flex"),_e.emit("reminder")}const f2=k.memo(o=>{const[n,u]=k.useState(localStorage.getItem(o.name)||o.default),l=k.useRef(null),d=k.useCallback(p=>{let h=p.target.value;if(h=Number(h),h>o.max&&(h=o.max),h<o.min&&(h=o.min),localStorage.setItem(o.name,h),u(h),o.element&&!document.querySelector(o.element)){Nn();return}_e.emit("refresh",o.category)},[o]),c=k.useCallback(()=>{l.current&&cancelAnimationFrame(l.current);const p=Number(n),h=Number(o.default||0),y=300,_=performance.now(),g=b=>{const S=b-_,C=Math.min(S/y,1),z=1-Math.pow(1-C,3),A=p+(h-p)*z,E=Math.round(A/(Number(o.step)||1))*(Number(o.step)||1);localStorage.setItem(o.name,E),u(E),C<1?l.current=requestAnimationFrame(g):(localStorage.setItem(o.name,h),u(h),_e.emit("refresh",o.category))};l.current=requestAnimationFrame(g),De(pe.getMessage("toasts.reset"))},[n,o]),f=(Number(n)-Number(o.min))/(Number(o.max)-Number(o.min))*100;return w.jsxs("div",{className:"slider-container",children:[w.jsxs("div",{className:"slider-header",children:[w.jsx("span",{className:"slider-value",children:Number(n)}),w.jsxs("span",{className:"slider-reset",onClick:c,children:[w.jsx(Ls,{}),pe.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsxs("div",{className:"slider-wrapper",children:[w.jsx("input",{type:"range",className:"slider-input",value:Number(n),onChange:d,min:Number(o.min),max:Number(o.max),step:Number(o.step)||1,style:{"--slider-percentage":`${f}%`},"aria-label":o.title,"aria-valuemin":Number(o.min),"aria-valuemax":Number(o.max),"aria-valuenow":Number(n),disabled:o.disabled||!1}),o.marks&&o.marks.length>0&&w.jsx("div",{className:"slider-marks",children:o.marks.map(p=>w.jsx("span",{className:"slider-mark",style:{left:`${(p.value-Number(o.min))/(Number(o.max)-Number(o.min))*100}%`},children:p.label},p.value))})]})]})});f2.displayName="SliderComponent";const g2=({children:o})=>w.jsx("div",{id:"widgets",children:o}),iv=()=>{try{const o=JSON.parse(localStorage.getItem("order"));return Array.isArray(o)?o:[]}catch{return[]}},Mi=o=>localStorage.getItem(o)==="true",h2=()=>{const[o,n]=k.useState(iv),u=k.useMemo(()=>({time:Mi("time")&&w.jsx(HC,{}),greeting:Mi("greeting")&&w.jsx(VC,{}),date:Mi("date")&&w.jsx(m2,{}),quicklinks:Mi("quicklinksenabled")?w.jsx(my,{}):null,message:Mi("message")&&w.jsx(p2,{})}),[o]);return k.useEffect(()=>{const l=d=>{d==="widgets"&&n(iv())};return _e.on("refresh",l),()=>{_e.off("refresh",l)}},[]),w.jsxs(g2,{children:[o.map((l,d)=>w.jsx(k.Fragment,{children:u[l]},d)),Mi("taskBox")&&w.jsx(ix,{}),Mi("recentChats")&&w.jsx(sx,{})]})};var xl={exports:{}},Vo={},sm={exports:{}},rm,nv;function _2(){if(nv)return rm;nv=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return rm=o,rm}var lm,sv;function v2(){if(sv)return lm;sv=1;var o=_2();function n(){}function u(){}return u.resetWarningCache=n,lm=function(){function l(f,p,h,y,_,g){if(g!==o){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}l.isRequired=l;function d(){return l}var c={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:d,element:l,elementType:l,instanceOf:d,node:l,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:u,resetWarningCache:n};return c.PropTypes=c,c},lm}var rv;function py(){return rv||(rv=1,sm.exports=v2()()),sm.exports}var zl={exports:{}},ba={},Tl={exports:{}},lv;function fy(){return lv||(lv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var u="none",l="contents",d=/^(input|select|textarea|button|object|iframe)$/;function c(g,b){return b.getPropertyValue("overflow")!=="visible"||g.scrollWidth<=0&&g.scrollHeight<=0}function f(g){var b=g.offsetWidth<=0&&g.offsetHeight<=0;if(b&&!g.innerHTML)return!0;try{var S=window.getComputedStyle(g),C=S.getPropertyValue("display");return b?C!==l&&c(g,S):C===u}catch{return console.warn("Failed to inspect element style"),!1}}function p(g){for(var b=g,S=g.getRootNode&&g.getRootNode();b&&b!==document.body;){if(S&&b===S&&(b=S.host.parentNode),f(b))return!1;b=b.parentNode}return!0}function h(g,b){var S=g.nodeName.toLowerCase(),C=d.test(S)&&!g.disabled||S==="a"&&g.href||b;return C&&p(g)}function y(g){var b=g.getAttribute("tabindex");b===null&&(b=void 0);var S=isNaN(b);return(S||b>=0)&&h(g,!S)}function _(g){var b=[].slice.call(g.querySelectorAll("*"),0).reduce(function(S,C){return S.concat(C.shadowRoot?_(C.shadowRoot):[C])},[]);return b.filter(y)}o.exports=n.default})(Tl,Tl.exports)),Tl.exports}var uv;function b2(){if(uv)return ba;uv=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.resetState=f,ba.log=p,ba.handleBlur=h,ba.handleFocus=y,ba.markForFocusLater=_,ba.returnFocus=g,ba.popWithoutFocus=b,ba.setupScopedFocus=S,ba.teardownScopedFocus=C;var o=fy(),n=u(o);function u(z){return z&&z.__esModule?z:{default:z}}var l=[],d=null,c=!1;function f(){l=[]}function p(){}function h(){c=!0}function y(){if(c){if(c=!1,!d)return;setTimeout(function(){if(!d.contains(document.activeElement)){var z=(0,n.default)(d)[0]||d;z.focus()}},0)}}function _(){l.push(document.activeElement)}function g(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,A=null;try{l.length!==0&&(A=l.pop(),A.focus({preventScroll:z}));return}catch{console.warn(["You tried to return focus to",A,"but it is not in the DOM anymore"].join(" "))}}function b(){l.length>0&&l.pop()}function S(z){d=z,window.addEventListener?(window.addEventListener("blur",h,!1),document.addEventListener("focus",y,!0)):(window.attachEvent("onBlur",h),document.attachEvent("onFocus",y))}function C(){d=null,window.addEventListener?(window.removeEventListener("blur",h),document.removeEventListener("focus",y)):(window.detachEvent("onBlur",h),document.detachEvent("onFocus",y))}return ba}var Nl={exports:{}},dv;function y2(){return dv||(dv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var u=fy(),l=d(u);function d(p){return p&&p.__esModule?p:{default:p}}function c(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return p.activeElement.shadowRoot?c(p.activeElement.shadowRoot):p.activeElement}function f(p,h){var y=(0,l.default)(p);if(!y.length){h.preventDefault();return}var _=void 0,g=h.shiftKey,b=y[0],S=y[y.length-1],C=c();if(p===C){if(!g)return;_=S}if(S===C&&!g&&(_=b),b===C&&g&&(_=S),_){h.preventDefault(),_.focus();return}var z=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),A=z!=null&&z[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(A){var E=y.indexOf(C);if(E>-1&&(E+=g?-1:1),_=y[E],typeof _>"u"){h.preventDefault(),_=g?S:b,_.focus();return}h.preventDefault(),_.focus()}}o.exports=n.default})(Nl,Nl.exports)),Nl.exports}var Ea={},um,cv;function k2(){if(cv)return um;cv=1;var o=function(){};return um=o,um}var Ya={},dm={exports:{}};var mv;function w2(){return mv||(mv=1,(function(o){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),u={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};o.exports?o.exports=u:window.ExecutionEnvironment=u})()})(dm)),dm.exports}var pv;function Hm(){if(pv)return Ya;pv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.canUseDOM=Ya.SafeNodeList=Ya.SafeHTMLCollection=void 0;var o=w2(),n=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var l=n.default,d=l.canUseDOM?window.HTMLElement:{};return Ya.SafeHTMLCollection=l.canUseDOM?window.HTMLCollection:{},Ya.SafeNodeList=l.canUseDOM?window.NodeList:{},Ya.canUseDOM=l.canUseDOM,Ya.default=d,Ya}var fv;function gy(){if(fv)return Ea;fv=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.resetState=c,Ea.log=f,Ea.assertNodeList=p,Ea.setElement=h,Ea.validateElement=y,Ea.hide=_,Ea.show=g,Ea.documentNotReadyOrSSRTesting=b;var o=k2(),n=l(o),u=Hm();function l(S){return S&&S.__esModule?S:{default:S}}var d=null;function c(){d&&(d.removeAttribute?d.removeAttribute("aria-hidden"):d.length!=null?d.forEach(function(S){return S.removeAttribute("aria-hidden")}):document.querySelectorAll(d).forEach(function(S){return S.removeAttribute("aria-hidden")})),d=null}function f(){}function p(S,C){if(!S||!S.length)throw new Error("react-modal: No elements were found for selector "+C+".")}function h(S){var C=S;if(typeof C=="string"&&u.canUseDOM){var z=document.querySelectorAll(C);p(z,C),C=z}return d=C||d,d}function y(S){var C=S||d;return C?Array.isArray(C)||C instanceof HTMLCollection||C instanceof NodeList?C:[C]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function _(S){var C=!0,z=!1,A=void 0;try{for(var E=y(S)[Symbol.iterator](),x;!(C=(x=E.next()).done);C=!0){var L=x.value;L.setAttribute("aria-hidden","true")}}catch(G){z=!0,A=G}finally{try{!C&&E.return&&E.return()}finally{if(z)throw A}}}function g(S){var C=!0,z=!1,A=void 0;try{for(var E=y(S)[Symbol.iterator](),x;!(C=(x=E.next()).done);C=!0){var L=x.value;L.removeAttribute("aria-hidden")}}catch(G){z=!0,A=G}finally{try{!C&&E.return&&E.return()}finally{if(z)throw A}}}function b(){d=null}return Ea}var Ai={},gv;function S2(){if(gv)return Ai;gv=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.resetState=l,Ai.log=d;var o={},n={};function u(y,_){y.classList.remove(_)}function l(){var y=document.getElementsByTagName("html")[0];for(var _ in o)u(y,o[_]);var g=document.body;for(var b in n)u(g,n[b]);o={},n={}}function d(){}var c=function(_,g){return _[g]||(_[g]=0),_[g]+=1,g},f=function(_,g){return _[g]&&(_[g]-=1),g},p=function(_,g,b){b.forEach(function(S){c(g,S),_.add(S)})},h=function(_,g,b){b.forEach(function(S){f(g,S),g[S]===0&&_.remove(S)})};return Ai.add=function(_,g){return p(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai.remove=function(_,g){return h(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai}var Sn={},hv;function hy(){if(hv)return Sn;hv=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.log=l,Sn.resetState=d;function o(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var n=function c(){var f=this;o(this,c),this.register=function(p){f.openInstances.indexOf(p)===-1&&(f.openInstances.push(p),f.emit("register"))},this.deregister=function(p){var h=f.openInstances.indexOf(p);h!==-1&&(f.openInstances.splice(h,1),f.emit("deregister"))},this.subscribe=function(p){f.subscribers.push(p)},this.emit=function(p){f.subscribers.forEach(function(h){return h(p,f.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},u=new n;function l(){console.log("portalOpenInstances ----------"),console.log(u.openInstances.length),u.openInstances.forEach(function(c){return console.log(c)}),console.log("end portalOpenInstances ----------")}function d(){u=new n}return Sn.default=u,Sn}var Ns={},_v;function M2(){if(_v)return Ns;_v=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.resetState=f,Ns.log=p;var o=hy(),n=u(o);function u(_){return _&&_.__esModule?_:{default:_}}var l=void 0,d=void 0,c=[];function f(){for(var _=[l,d],g=0;g<_.length;g++){var b=_[g];b&&b.parentNode&&b.parentNode.removeChild(b)}l=d=null,c=[]}function p(){console.log("bodyTrap ----------"),console.log(c.length);for(var _=[l,d],g=0;g<_.length;g++){var b=_[g],S=b||{};console.log(S.nodeName,S.className,S.id)}console.log("edn bodyTrap ----------")}function h(){c.length!==0&&c[c.length-1].focusContent()}function y(_,g){!l&&!d&&(l=document.createElement("div"),l.setAttribute("data-react-modal-body-trap",""),l.style.position="absolute",l.style.opacity="0",l.setAttribute("tabindex","0"),l.addEventListener("focus",h),d=l.cloneNode(),d.addEventListener("focus",h)),c=g,c.length>0?(document.body.firstChild!==l&&document.body.insertBefore(l,document.body.firstChild),document.body.lastChild!==d&&document.body.appendChild(d)):(l.parentElement&&l.parentElement.removeChild(l),d.parentElement&&d.parentElement.removeChild(d))}return n.default.subscribe(y),Ns}var vv;function A2(){return vv||(vv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var u=Object.assign||function(X){for(var Y=1;Y<arguments.length;Y++){var I=arguments[Y];for(var T in I)Object.prototype.hasOwnProperty.call(I,T)&&(X[T]=I[T])}return X},l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},d=(function(){function X(Y,I){for(var T=0;T<I.length;T++){var K=I[T];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(Y,K.key,K)}}return function(Y,I,T){return I&&X(Y.prototype,I),T&&X(Y,T),Y}})(),c=Ws(),f=py(),p=Z(f),h=b2(),y=G(h),_=y2(),g=Z(_),b=gy(),S=G(b),C=S2(),z=G(C),A=Hm(),E=Z(A),x=hy(),L=Z(x);M2();function G(X){if(X&&X.__esModule)return X;var Y={};if(X!=null)for(var I in X)Object.prototype.hasOwnProperty.call(X,I)&&(Y[I]=X[I]);return Y.default=X,Y}function Z(X){return X&&X.__esModule?X:{default:X}}function H(X,Y){if(!(X instanceof Y))throw new TypeError("Cannot call a class as a function")}function D(X,Y){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:X}function q(X,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);X.prototype=Object.create(Y&&Y.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(X,Y):X.__proto__=Y)}var V={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},$=function(Y){return Y.code==="Tab"||Y.keyCode===9},W=function(Y){return Y.code==="Escape"||Y.keyCode===27},ee=0,ae=(function(X){q(Y,X);function Y(I){H(this,Y);var T=D(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,I));return T.setOverlayRef=function(K){T.overlay=K,T.props.overlayRef&&T.props.overlayRef(K)},T.setContentRef=function(K){T.content=K,T.props.contentRef&&T.props.contentRef(K)},T.afterClose=function(){var K=T.props,ie=K.appElement,ne=K.ariaHideApp,ye=K.htmlOpenClassName,Ce=K.bodyOpenClassName,Ve=K.parentSelector,j=Ve&&Ve().ownerDocument||document;Ce&&z.remove(j.body,Ce),ye&&z.remove(j.getElementsByTagName("html")[0],ye),ne&&ee>0&&(ee-=1,ee===0&&S.show(ie)),T.props.shouldFocusAfterRender&&(T.props.shouldReturnFocusAfterClose?(y.returnFocus(T.props.preventScroll),y.teardownScopedFocus()):y.popWithoutFocus()),T.props.onAfterClose&&T.props.onAfterClose(),L.default.deregister(T)},T.open=function(){T.beforeOpen(),T.state.afterOpen&&T.state.beforeClose?(clearTimeout(T.closeTimer),T.setState({beforeClose:!1})):(T.props.shouldFocusAfterRender&&(y.setupScopedFocus(T.node),y.markForFocusLater()),T.setState({isOpen:!0},function(){T.openAnimationFrame=requestAnimationFrame(function(){T.setState({afterOpen:!0}),T.props.isOpen&&T.props.onAfterOpen&&T.props.onAfterOpen({overlayEl:T.overlay,contentEl:T.content})})}))},T.close=function(){T.props.closeTimeoutMS>0?T.closeWithTimeout():T.closeWithoutTimeout()},T.focusContent=function(){return T.content&&!T.contentHasFocus()&&T.content.focus({preventScroll:!0})},T.closeWithTimeout=function(){var K=Date.now()+T.props.closeTimeoutMS;T.setState({beforeClose:!0,closesAt:K},function(){T.closeTimer=setTimeout(T.closeWithoutTimeout,T.state.closesAt-Date.now())})},T.closeWithoutTimeout=function(){T.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},T.afterClose)},T.handleKeyDown=function(K){$(K)&&(0,g.default)(T.content,K),T.props.shouldCloseOnEsc&&W(K)&&(K.stopPropagation(),T.requestClose(K))},T.handleOverlayOnClick=function(K){T.shouldClose===null&&(T.shouldClose=!0),T.shouldClose&&T.props.shouldCloseOnOverlayClick&&(T.ownerHandlesClose()?T.requestClose(K):T.focusContent()),T.shouldClose=null},T.handleContentOnMouseUp=function(){T.shouldClose=!1},T.handleOverlayOnMouseDown=function(K){!T.props.shouldCloseOnOverlayClick&&K.target==T.overlay&&K.preventDefault()},T.handleContentOnClick=function(){T.shouldClose=!1},T.handleContentOnMouseDown=function(){T.shouldClose=!1},T.requestClose=function(K){return T.ownerHandlesClose()&&T.props.onRequestClose(K)},T.ownerHandlesClose=function(){return T.props.onRequestClose},T.shouldBeClosed=function(){return!T.state.isOpen&&!T.state.beforeClose},T.contentHasFocus=function(){return document.activeElement===T.content||T.content.contains(document.activeElement)},T.buildClassName=function(K,ie){var ne=(typeof ie>"u"?"undefined":l(ie))==="object"?ie:{base:V[K],afterOpen:V[K]+"--after-open",beforeClose:V[K]+"--before-close"},ye=ne.base;return T.state.afterOpen&&(ye=ye+" "+ne.afterOpen),T.state.beforeClose&&(ye=ye+" "+ne.beforeClose),typeof ie=="string"&&ie?ye+" "+ie:ye},T.attributesFromObject=function(K,ie){return Object.keys(ie).reduce(function(ne,ye){return ne[K+"-"+ye]=ie[ye],ne},{})},T.state={afterOpen:!1,beforeClose:!1},T.shouldClose=null,T.moveFromContentToOverlay=null,T}return d(Y,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(T,K){this.props.isOpen&&!T.isOpen?this.open():!this.props.isOpen&&T.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!K.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var T=this.props,K=T.appElement,ie=T.ariaHideApp,ne=T.htmlOpenClassName,ye=T.bodyOpenClassName,Ce=T.parentSelector,Ve=Ce&&Ce().ownerDocument||document;ye&&z.add(Ve.body,ye),ne&&z.add(Ve.getElementsByTagName("html")[0],ne),ie&&(ee+=1,S.hide(K)),L.default.register(this)}},{key:"render",value:function(){var T=this.props,K=T.id,ie=T.className,ne=T.overlayClassName,ye=T.defaultStyles,Ce=T.children,Ve=ie?{}:ye.content,j=ne?{}:ye.overlay;if(this.shouldBeClosed())return null;var te={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:u({},j,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},se=u({id:K,ref:this.setContentRef,style:u({},Ve,this.props.style.content),className:this.buildClassName("content",ie),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",u({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),ce=this.props.contentElement(se,Ce);return this.props.overlayElement(te,ce)}}]),Y})(c.Component);ae.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},ae.propTypes={isOpen:p.default.bool.isRequired,defaultStyles:p.default.shape({content:p.default.object,overlay:p.default.object}),style:p.default.shape({content:p.default.object,overlay:p.default.object}),className:p.default.oneOfType([p.default.string,p.default.object]),overlayClassName:p.default.oneOfType([p.default.string,p.default.object]),parentSelector:p.default.func,bodyOpenClassName:p.default.string,htmlOpenClassName:p.default.string,ariaHideApp:p.default.bool,appElement:p.default.oneOfType([p.default.instanceOf(E.default),p.default.instanceOf(A.SafeHTMLCollection),p.default.instanceOf(A.SafeNodeList),p.default.arrayOf(p.default.instanceOf(E.default))]),onAfterOpen:p.default.func,onAfterClose:p.default.func,onRequestClose:p.default.func,closeTimeoutMS:p.default.number,shouldFocusAfterRender:p.default.bool,shouldCloseOnOverlayClick:p.default.bool,shouldReturnFocusAfterClose:p.default.bool,preventScroll:p.default.bool,role:p.default.string,contentLabel:p.default.string,aria:p.default.object,data:p.default.object,children:p.default.node,shouldCloseOnEsc:p.default.bool,overlayRef:p.default.func,contentRef:p.default.func,id:p.default.string,overlayElement:p.default.func,contentElement:p.default.func,testId:p.default.string},n.default=ae,o.exports=n.default})(zl,zl.exports)),zl.exports}function _y(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function vy(o){function n(u){var l=this.constructor.getDerivedStateFromProps(o,u);return l??null}this.setState(n.bind(this))}function by(o,n){try{var u=this.props,l=this.state;this.props=o,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(u,l)}finally{this.props=u,this.state=l}}_y.__suppressDeprecationWarning=!0;vy.__suppressDeprecationWarning=!0;by.__suppressDeprecationWarning=!0;function C2(o){var n=o.prototype;if(!n||!n.isReactComponent)throw new Error("Can only polyfill class components");if(typeof o.getDerivedStateFromProps!="function"&&typeof n.getSnapshotBeforeUpdate!="function")return o;var u=null,l=null,d=null;if(typeof n.componentWillMount=="function"?u="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(u="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?l="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(l="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?d="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(d="UNSAFE_componentWillUpdate"),u!==null||l!==null||d!==null){var c=o.displayName||o.name,f=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
`+c+" uses "+f+" but also contains the following legacy lifecycles:"+(u!==null?`
`+u:"")+(l!==null?`
diff --git a/src/chrome/newtab/assets/index-IXgZpYJT.js b/src/firefox/newtab/assets/index-WbVrDO2P.js
similarity index 99%
rename from src/chrome/newtab/assets/index-IXgZpYJT.js
rename to src/firefox/newtab/assets/index-WbVrDO2P.js
index 4c301453f..cd77795a1 100644
--- a/src/chrome/newtab/assets/index-IXgZpYJT.js
+++ b/src/firefox/newtab/assets/index-WbVrDO2P.js
@@ -1,2 +1,2 @@
-import{j as m,d as J,aA as de}from"./index-CdhTpdYh.js";function Y(e){if(e instanceof Date)return e.getHours();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[0];if(t){const r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}}throw new Error(`Failed to get hours from date: ${e}.`)}function w(e){if(e instanceof Date)return e.getMinutes();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[1]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get minutes from date: ${e}.`)}function y(e){if(e instanceof Date)return e.getSeconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[2]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get seconds from date: ${e}.`)}function M(e){if(e instanceof Date)return e.getMilliseconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const r=(n[2]||"0").split(".")[1]||"0",o=Number.parseInt(r,10);if(!Number.isNaN(o))return o}}throw new Error(`Failed to get seconds from date: ${e}.`)}function S(e){var n=e.angle,t=n===void 0?0:n,r=e.name,o=e.length,i=o===void 0?100:o,c=e.oppositeLength,a=c===void 0?10:c,l=e.width,s=l===void 0?1:l;return m.jsx("div",{className:"react-clock__hand react-clock__".concat(r,"-hand"),style:{transform:"rotate(".concat(t,"deg)")},children:m.jsx("div",{className:"react-clock__hand__body react-clock__".concat(r,"-hand__body"),style:{width:"".concat(s,"px"),top:"".concat(50-i/2,"%"),bottom:"".concat(50-a/2,"%")}})})}var q=J.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.width,l=a===void 0?1:a;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__body react-clock__".concat(c,"-mark__body"),style:{width:"".concat(l,"px"),top:0,bottom:"".concat(100-i/2,"%")}})})}),le=J.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.number;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__number",style:{transform:"rotate(-".concat(r,"deg)"),top:"".concat(i/2,"%")},children:a})})});const fe=(e,n,t,r)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;const o=Object.getOwnPropertyDescriptor(e,t),i=Object.getOwnPropertyDescriptor(n,t);!me(o,i)&&r||Object.defineProperty(e,t,i)},me=function(e,n){return e===void 0||e.configurable||e.writable===n.writable&&e.enumerable===n.enumerable&&e.configurable===n.configurable&&(e.writable||e.value===n.value)},ge=(e,n)=>{const t=Object.getPrototypeOf(n);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t)},he=(e,n)=>`/* Wrapped ${e}*/
+import{j as m,d as J,aA as de}from"./index-CEGyrx1j.js";function Y(e){if(e instanceof Date)return e.getHours();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[0];if(t){const r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}}throw new Error(`Failed to get hours from date: ${e}.`)}function w(e){if(e instanceof Date)return e.getMinutes();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[1]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get minutes from date: ${e}.`)}function y(e){if(e instanceof Date)return e.getSeconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[2]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get seconds from date: ${e}.`)}function M(e){if(e instanceof Date)return e.getMilliseconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const r=(n[2]||"0").split(".")[1]||"0",o=Number.parseInt(r,10);if(!Number.isNaN(o))return o}}throw new Error(`Failed to get seconds from date: ${e}.`)}function S(e){var n=e.angle,t=n===void 0?0:n,r=e.name,o=e.length,i=o===void 0?100:o,c=e.oppositeLength,a=c===void 0?10:c,l=e.width,s=l===void 0?1:l;return m.jsx("div",{className:"react-clock__hand react-clock__".concat(r,"-hand"),style:{transform:"rotate(".concat(t,"deg)")},children:m.jsx("div",{className:"react-clock__hand__body react-clock__".concat(r,"-hand__body"),style:{width:"".concat(s,"px"),top:"".concat(50-i/2,"%"),bottom:"".concat(50-a/2,"%")}})})}var q=J.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.width,l=a===void 0?1:a;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__body react-clock__".concat(c,"-mark__body"),style:{width:"".concat(l,"px"),top:0,bottom:"".concat(100-i/2,"%")}})})}),le=J.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.number;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__number",style:{transform:"rotate(-".concat(r,"deg)"),top:"".concat(i/2,"%")},children:a})})});const fe=(e,n,t,r)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;const o=Object.getOwnPropertyDescriptor(e,t),i=Object.getOwnPropertyDescriptor(n,t);!me(o,i)&&r||Object.defineProperty(e,t,i)},me=function(e,n){return e===void 0||e.configurable||e.writable===n.writable&&e.enumerable===n.enumerable&&e.configurable===n.configurable&&(e.writable||e.value===n.value)},ge=(e,n)=>{const t=Object.getPrototypeOf(n);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t)},he=(e,n)=>`/* Wrapped ${e}*/
${n}`,pe=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),ve=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),be=(e,n,t)=>{const r=t===""?"":`with ${t.trim()}() `,o=he.bind(null,r,n.toString());Object.defineProperty(o,"name",ve);const{writable:i,enumerable:c,configurable:a}=pe;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:c,configurable:a})};function Ne(e,n,{ignoreNonConfigurable:t=!1}={}){const{name:r}=e;for(const o of Reflect.ownKeys(n))fe(e,n,o,t);return ge(e,n),be(e,n,r),e}const v=2147483647,ke=new WeakMap,H=new WeakMap,we=new WeakMap;function ye(e,n){const t=e.get(n);if(t){if(t.maxAge<=Date.now()){e.delete(n);return}return t}}function K(e,{cacheKey:n,cache:t=new Map,maxAge:r}={}){if(r===0)return e;if(typeof r=="number"&&Number.isFinite(r)){if(r>v)throw new TypeError(`The \`maxAge\` option cannot exceed ${v}.`);if(r<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const o=function(...i){const c=n?n(i):i[0],a=ye(t,c);if(a)return a.data;const l=e.apply(this,i),s=typeof r=="function"?r(...i):r;if(s!==void 0&&s!==Number.POSITIVE_INFINITY){if(!Number.isFinite(s))throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(s<=0)return l;if(s>v)throw new TypeError(`The \`maxAge\` function result cannot exceed ${v}.`)}if(t.set(c,{data:l,maxAge:s===void 0||s===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:Date.now()+s}),s!==void 0&&s!==Number.POSITIVE_INFINITY){const g=setTimeout(()=>{t.delete(c),H.get(o)?.delete(g)},s);g.unref?.();const h=H.get(o)??new Set;h.add(g),H.set(o,h)}return l};return Ne(o,e,{ignoreNonConfigurable:!0}),ke.set(o,t),we.set(o,n??(i=>i[0])),o}function Me(e){return typeof e=="string"}function Se(e,n,t){return t.indexOf(e)===n}function He(e){return e.toLowerCase()===e}function A(e){return e.indexOf(",")===-1?e:e.split(",")}function O(e){if(!e)return e;if(e==="C"||e==="posix"||e==="POSIX")return"en-US";if(e.indexOf(".")!==-1){var n=e.split(".")[0],t=n===void 0?"":n;return O(t)}if(e.indexOf("@")!==-1){var r=e.split("@")[0],t=r===void 0?"":r;return O(t)}if(e.indexOf("-")===-1||!He(e))return e;var o=e.split("-"),i=o[0],c=o[1],a=c===void 0?"":c;return"".concat(i,"-").concat(a.toUpperCase())}function Oe(e){var n=e===void 0?{}:e,t=n.useFallbackLocale,r=t===void 0?!0:t,o=n.fallbackLocale,i=o===void 0?"en-US":o,c=[];if(typeof navigator<"u"){for(var a=navigator.languages||[],l=[],s=0,g=a;s<g.length;s++){var h=g[s];l=l.concat(A(h))}var p=navigator.language,b=p&&A(p);c=c.concat(l,b)}return r&&c.push(i),c.filter(Me).map(O).filter(Se)}var xe=K(Oe,{cacheKey:JSON.stringify});function Le(e){return xe(e)[0]||null}var Ie=K(Le,{cacheKey:JSON.stringify});function je(e,n){return n.toLocaleString(e||Ie()||void 0)}function _e(e){return e!==null&&e!==!1&&!Number.isNaN(Number(e))}function Pe(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Math.max.apply(Math,e.filter(_e))}function Fe(e){var n=e.className,t=e.formatHour,r=t===void 0?je:t,o=e.hourHandLength,i=o===void 0?50:o,c=e.hourHandOppositeLength,a=e.hourHandWidth,l=a===void 0?4:a,s=e.hourMarksLength,g=s===void 0?10:s,h=e.hourMarksWidth,p=h===void 0?3:h,b=e.locale,x=e.minuteHandLength,R=x===void 0?70:x,X=e.minuteHandOppositeLength,L=e.minuteHandWidth,B=L===void 0?2:L,I=e.minuteMarksLength,j=I===void 0?6:I,_=e.minuteMarksWidth,G=_===void 0?1:_,P=e.renderHourMarks,N=P===void 0?!0:P,T=e.renderMinuteHand,F=T===void 0?!0:T,W=e.renderMinuteMarks,E=W===void 0?!0:W,Q=e.renderNumbers,C=e.renderSecondHand,$=C===void 0?!0:C,U=e.secondHandLength,Z=U===void 0?90:U,ee=e.secondHandOppositeLength,V=e.secondHandWidth,ne=V===void 0?1:V,z=e.size,D=z===void 0?150:z,k=e.useMillisecondPrecision,u=e.value;function te(){if(!E)return null;for(var f=[],d=1;d<=60;d+=1){var ue=N&&!(d%5);ue||f.push(m.jsx(q,{angle:d*6,length:j,name:"minute",width:G},"minute_".concat(d)))}return f}function re(){if(!N)return null;for(var f=[],d=1;d<=12;d+=1)f.push(m.jsx(q,{angle:d*30,length:g,name:"hour",width:p},"hour_".concat(d)));return f}function oe(){if(!Q)return null;for(var f=[],d=1;d<=12;d+=1)f.push(m.jsx(le,{angle:d*30,length:Pe(N&&g,E&&j,0),name:"number",number:r(b,d)},"number_".concat(d)));return f}function ie(){return m.jsxs("div",{className:"react-clock__face",children:[te(),re(),oe()]})}function ce(){var f=u?Y(u)*30+w(u)/2+y(u)/120+(k?M(u)/12e4:0):0;return m.jsx(S,{angle:f,length:i,name:"hour",oppositeLength:c,width:l})}function se(){if(!F)return null;var f=u?Y(u)*360+w(u)*6+y(u)/10+(k?M(u)/1e4:0):0;return m.jsx(S,{angle:f,length:R,name:"minute",oppositeLength:X,width:B})}function ae(){if(!$)return null;var f=u?w(u)*360+y(u)*6+(k?M(u)*.006:0):0;return m.jsx(S,{angle:f,length:Z,name:"second",oppositeLength:ee,width:ne})}return m.jsxs("time",{className:de("react-clock",n),dateTime:u instanceof Date?u.toLocaleTimeString("en",{hourCycle:"h23",hour:"2-digit",minute:F?"2-digit":void 0,second:$?"2-digit":void 0}):u||void 0,style:{width:D,height:D},children:[ie(),ce(),se(),ae()]})}export{Fe as Clock,Fe as default};
diff --git a/src/firefox/newtab/index.html b/src/firefox/newtab/index.html
index a78a04101..f6e1a52c4 100644
--- a/src/firefox/newtab/index.html
+++ b/src/firefox/newtab/index.html
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" sizes="16x16" href="../icons/icon16.png" />
<title>New Tab</title>
- <script type="module" crossorigin src="./assets/index-CdhTpdYh.js"></script>
+ <script type="module" crossorigin src="./assets/index-CEGyrx1j.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BmeAAROj.css">
</head>
<body>
diff --git a/test/newtab.mjs b/test/newtab.mjs
index b0bfb592e..d74dd0796 100644
--- a/test/newtab.mjs
+++ b/test/newtab.mjs
@@ -1271,7 +1271,9 @@ test('importSettings restores uploaded backgrounds atomically and rolls back on
]) {
assert.equal(await mod.importSettings(JSON.stringify(bad)), false, JSON.stringify(bad));
}
- assert.equal(globalThis.__toasts.length, 13);
+ assert.equal(await mod.importSettings(JSON.stringify({ quicklinks: '[null]' })), false);
+ assert.equal(await mod.importSettings(JSON.stringify({ quicklinks: '[{"name":"x"}]' })), false);
+ assert.equal(globalThis.__toasts.length, 15);
assert.equal(globalThis.__reloads, 0);
assert.deepEqual(mod.db.rows.map((r) => r.url), ['data:keep'], 'nothing was touched');
assert.equal(await mod.importSettings(JSON.stringify({
@@ -1390,3 +1392,13 @@ test('round-30: leaving the settings route with Back closes the modal', () => {
assert.match(src, /else if \(!window\.location\.hash\) \{[^}]*modalClose\?\.\(\);/);
assert.match(src, /\[modalClose\]\);/);
});
+
+test('round-31: history navigation keeps the breadcrumb in step; breadcrumb click updates the route', () => {
+ const read = (f) => readFileSync(nt(f), 'utf8');
+ assert.match(read('components/Elements/MainModal/backend/Tabs.jsx'), /onSectionChange\?\.\(label, section\.name, \{ fromHistory: true \}\)/);
+ const main = read('components/Elements/MainModal/Main.jsx');
+ assert.match(main, /\{ fromHistory = false \} = \{\}/);
+ assert.match(main, /if \(fromHistory\) return;/);
+ assert.match(read('components/Elements/MainModal/components/ModalTopBar.jsx'), /onSubSectionChange\(null, currentSectionName\)/);
+ assert.match(read('utils/settings/import.js'), /quicklinks: \(e\) => isObject\(e\)/);
+});